.links {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 2vh, 14px);
  width: 100%;
}

.card::after,
.social::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -65%;
  width: 65%;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.05) 46%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.05) 54%,
    rgba(255, 255, 255, 0) 62%,
    transparent 100%
  );
  z-index: 2;
  transform: translateX(0);
  animation: glossSweep 8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes glossSweep {
  0%, 35%   { transform: translateX(0); }
  72%, 100% { transform: translateX(265%); }
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  min-height: 74px;
  border-radius: 20px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 35%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 14px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  translate: 0 24px;
  scale: 0.96;
  animation: cardEnter 0.8s var(--ease-pop) forwards;
  transition:
    transform 240ms var(--ease-pop),
    border-color 240ms var(--ease-out),
    background 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

@keyframes cardEnter {
  0%   { opacity: 0; translate: 0 24px; scale: 0.96; filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; translate: 0 0;    scale: 1; filter: blur(0); }
}

.links > .card:nth-child(1) { animation-delay: 0.14s; }
.links > .card:nth-child(2) { animation-delay: 0.22s; }
.links > .card:nth-child(3) { animation-delay: 0.30s; }
.links > .card:nth-child(4) { animation-delay: 0.38s; }
.links > .card:nth-child(5) { animation-delay: 0.46s; }
.links > .card:nth-child(6) { animation-delay: 0.54s; }
.links > .card:nth-child(7) { animation-delay: 0.62s; }

.card__shine {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 80% 60% at 0% -20%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 120%, rgba(255, 138, 61, 0.18) 0%, transparent 60%);
  opacity: 0.85;
  animation: ambientBreath 7s ease-in-out infinite;
  transition: opacity 240ms var(--ease-out);
}

@keyframes ambientBreath {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1; }
}

.card:hover {
  translate: 0 -2px;
  border-color: rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 35%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(255, 255, 255, 0.10);
}

.card:hover .card__shine { opacity: 1; }

.card:active {
  translate: 0 1px;
  scale: 0.985;
  transition-duration: 80ms;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 6px 14px rgba(0, 0, 0, 0.45);
}

.card__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--ink);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.card__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.card__sub {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.20em;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card__sub--feature {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 215, 175, 0.92);
  text-transform: none;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card__main {
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 800;
  letter-spacing: 0.005em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card__arrow {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 700;
  color: rgba(245, 242, 255, 0.55);
  transition: transform 240ms var(--ease-out), color 240ms var(--ease-out);
}
.card:hover .card__arrow {
  transform: translateX(4px);
  color: rgba(255, 200, 160, 0.95);
}

.card--disabled {
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 6px 18px rgba(0, 0, 0, 0.30);
}

.card--disabled .card__icon,
.card--disabled .card__main,
.card--disabled .card__sub {
  color: rgba(245, 242, 255, 0.42);
}

.card--disabled .card__shine { opacity: 0.25; }

.card__badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(245, 242, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-height: 820px) and (orientation: landscape),
       (max-height: 600px) {
  .links { gap: 10px; }
  .card { min-height: 60px; padding: 8px 16px; gap: 12px; border-radius: 18px; }
  .card__icon { width: 24px; height: 24px; }
  .card__sub:not(.card__sub--feature) { display: none; }
  .card__sub--feature { font-size: 10.5px; -webkit-line-clamp: 1; }
  .card__main { font-size: 14px; }
  .card__arrow { font-size: 18px; }
}

@media (max-height: 680px) and (orientation: landscape),
       (max-height: 480px) {
  .links { gap: 8px; }
  .card { min-height: 56px; padding: 6px 14px; gap: 10px; border-radius: 16px; }
  .card__icon { width: 22px; height: 22px; }
  .card__sub--feature { font-size: var(--text-2xs); letter-spacing: 0; }
  .card__main { font-size: 13.5px; }
  .card__arrow { font-size: 16px; }
}
