:root {
  --black: #050505;
  --black-soft: #0b0b0c;
  --gold: #f5c84b;
  --gold-bright: #ffe486;
  --gold-deep: #ad7821;
  --gold-muted: rgba(245, 200, 75, 0.2);
  --text-dark: #090806;
  --line: rgba(255, 219, 116, 0.24);
  --panel: rgba(14, 13, 11, 0.74);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 210, 89, 0.24), transparent 30rem),
    radial-gradient(circle at 14% 70%, rgba(173, 120, 33, 0.18), transparent 22rem),
    radial-gradient(circle at 88% 70%, rgba(255, 228, 134, 0.11), transparent 20rem),
    linear-gradient(160deg, #030303 0%, #0b0b0c 56%, #020202 100%);
  color: #f8efd7;
  font-family: "Inter", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  isolation: isolate;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

body::after {
  background:
    linear-gradient(115deg, transparent 8%, rgba(255, 223, 127, 0.08) 18%, transparent 31%),
    linear-gradient(290deg, transparent 22%, rgba(173, 120, 33, 0.08) 41%, transparent 58%);
  opacity: 0.85;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.language-switch {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 3;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.language-option {
  min-width: 44px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 239, 198, 0.78);
  cursor: pointer;
  font: 800 12px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.08em;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.language-option:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.language-option.is-active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-deep));
  color: var(--text-dark);
  box-shadow:
    0 8px 22px rgba(245, 200, 75, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.page-shell {
  display: grid;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-x: clip;
  place-items: center;
  padding: 96px 18px 34px;
}

.links-stage {
  position: relative;
  display: grid;
  width: min(100%, 460px);
  padding-top: clamp(188px, 43vw, 245px);
}

.portrait-layer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: clamp(360px, 116vw, 610px);
  height: clamp(260px, 68vw, 330px);
  pointer-events: none;
  transform: translateX(-50%);
}

.portrait-glow {
  position: absolute;
  left: 50%;
  bottom: clamp(2px, 4vw, 22px);
  width: clamp(292px, 92vw, 520px);
  height: clamp(245px, 74vw, 360px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 240, 154, 0.96) 0%, rgba(255, 210, 72, 0.58) 28%, rgba(173, 120, 33, 0.24) 54%, transparent 73%);
  filter: blur(20px);
  opacity: 0.98;
  transform: translateX(-50%);
}

.portrait-image {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 7vw, 54px);
  width: clamp(294px, 84vw, 520px);
  max-width: none;
  transform: translateX(-50%);
  filter:
    drop-shadow(0 24px 38px rgba(0, 0, 0, 0.52))
    drop-shadow(0 0 30px rgba(255, 213, 92, 0.24));
  user-select: none;
}

.links-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 220, 124, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(210, 151, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.links-list {
  display: grid;
  gap: 12px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 246, 196, 0.58);
  border-radius: 14px;
  background:
    linear-gradient(135deg, #fff0a3 0%, #f2c54b 28%, #bd8428 55%, #ffe27d 78%, #d29b31 100%);
  background-size: 180% 180%;
  box-shadow:
    0 15px 34px rgba(0, 0, 0, 0.32),
    0 0 26px rgba(245, 200, 75, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(82, 48, 6, 0.2);
  color: var(--text-dark);
  text-decoration: none;
  transform: translateY(12px);
  opacity: 0;
  animation: rise-in 560ms cubic-bezier(0.2, 0.78, 0.22, 1) forwards;
  transition:
    background-position 360ms ease,
    box-shadow 240ms ease,
    transform 240ms ease,
    border-color 240ms ease;
}

.link-card::before {
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.38), transparent 20% 68%, rgba(255, 255, 255, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%);
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
}

.link-card::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(9, 8, 6, 0.82);
  border-right: 2px solid rgba(9, 8, 6, 0.82);
  content: "";
  transform: rotate(45deg);
  justify-self: end;
}

.link-card:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.link-icon,
.link-copy,
.link-text {
  position: relative;
  z-index: 1;
}

.link-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.link-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(12, 9, 4, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.95), rgba(30, 20, 7, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 124, 0.22),
    0 8px 18px rgba(75, 44, 6, 0.22);
  color: var(--gold-bright);
}

.link-icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  filter: drop-shadow(0 0 6px rgba(255, 228, 134, 0.24));
}

.link-card[data-key="youtube"] .link-icon svg {
  width: 22px;
  height: 22px;
}

.link-card[data-key="community"] .link-icon svg {
  width: 20px;
  height: 20px;
  transform: translate(-0.5px, 0.5px);
}

.link-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font: 800 14px/1.26 "Manrope", "Inter", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.link-badge {
  display: inline-grid;
  min-height: 16px;
  align-items: center;
  padding: 3px 6px 2px;
  border: 1px solid rgba(255, 235, 166, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(12, 10, 5, 0.96), rgba(30, 20, 7, 0.94));
  box-shadow:
    0 7px 16px rgba(73, 43, 8, 0.22),
    inset 0 1px 0 rgba(255, 235, 166, 0.16);
  color: var(--gold-bright);
  font: 800 8px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.link-card.is-featured {
  min-height: 72px;
  border-color: rgba(255, 250, 218, 0.82);
  background:
    linear-gradient(135deg, #fff7c8 0%, #ffdc69 24%, #d99a2f 49%, #ffe98e 72%, #c98c2b 100%);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    0 0 38px rgba(255, 218, 105, 0.3),
    0 0 90px rgba(245, 200, 75, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(82, 48, 6, 0.18);
}

.link-card.is-featured .link-text {
  font-size: 13px;
  line-height: 1.16;
  letter-spacing: 0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .language-option:hover {
    color: #fff1be;
    transform: translateY(-1px);
  }

  .link-card:hover {
    background-position: 100% 0;
    border-color: rgba(255, 249, 213, 0.9);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.42),
      0 0 34px rgba(255, 218, 105, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      inset 0 -1px 0 rgba(82, 48, 6, 0.18);
    transform: translateY(-2px) scale(1.018);
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .links-stage {
    padding-top: 176px;
  }

  .links-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .link-card {
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 10px;
    min-height: 70px;
    padding: 13px 12px;
    border-radius: 12px;
  }

  .link-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .link-text {
    font-size: 13px;
    letter-spacing: 0.03em;
  }
}

@media (min-width: 768px) {
  body {
    background:
      linear-gradient(160deg, #030303 0%, #080807 58%, #020202 100%);
  }

  body::after {
    display: none;
  }

  .page-shell {
    padding-top: 110px;
  }

  .links-stage {
    padding-top: 252px;
  }

  .portrait-glow {
    bottom: 18px;
    width: 430px;
    height: 320px;
    opacity: 0.72;
  }

  .portrait-image {
    bottom: 8px;
    width: 420px;
  }

  .links-panel {
    padding: 16px;
  }

  .link-card::before {
    display: none;
  }

  .links-list {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
