/* ========== Tokens ========== */
:root {
  --bg: #07090e;
  --bg-soft: #0c1018;
  --panel: rgba(16, 22, 34, 0.92);
  --panel-border: rgba(120, 140, 180, 0.16);
  --text: #eef2f8;
  --text-dim: #9aa6b8;
  --muted: #9aa6b8;
  --muted-2: #6f7c90;
  --accent: #e8a84d;
  --accent-2: #f0b85a;
  --accent-dark: #c4842e;
  --accent-glow: rgba(232, 168, 77, 0.35);
  --danger: #c23b3b;
  --header-h: 72px;
  --radius: 14px;
  --container: min(80%, 1400px);
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-display: "Russo One", "Manrope", sans-serif;
  --font-pixel: "Press Start 2P", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ========== Buttons ========== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.15s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  color: #0d0803;
  text-shadow: 0 1px 0 rgba(255, 220, 140, 0.35);
  background: linear-gradient(180deg, #e8a84d 0%, #c47a2a 100%);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow:
    0 2px 0 #8a5018,
    0 4px 12px rgba(200, 130, 40, 0.35),
    inset 0 1px 0 rgba(255, 220, 140, 0.4);
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow:
    0 3px 0 #8a5018,
    0 6px 16px rgba(200, 130, 40, 0.45),
    inset 0 1px 0 rgba(255, 220, 140, 0.5);
}

.btn--primary:active {
  transform: translateY(1px);
  filter: brightness(0.95);
  box-shadow:
    0 1px 0 #8a5018,
    0 2px 6px rgba(200, 130, 40, 0.25),
    inset 0 2px 4px rgba(60, 30, 0, 0.4);
}

.btn--play svg {
  width: 15px;
  height: 15px;
  color: #0d0803;
}

.btn--ghost {
  border: 1px solid rgba(140, 160, 190, 0.35);
  background: rgba(10, 14, 22, 0.55);
  color: var(--text);
  padding: 9px 16px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 700;
}

.btn--ghost:hover {
  border-color: rgba(232, 168, 77, 0.55);
  color: var(--accent);
}

.btn--outline {
  color: #d9b56a;
  border: 1px solid #4a5568;
  background: rgba(8, 10, 14, 0.72);
  padding: 12px 22px;
  font-size: 13px;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.btn--outline:hover {
  color: #efd29a;
  border-color: #6b7a90;
  background: rgba(14, 18, 26, 0.85);
}

.btn--outline .btn__play {
  width: 18px;
  height: 18px;
}

.btn--lg {
  padding: 15px 30px;
  font-size: 14px;
  min-height: 48px;
}

.btn--primary.btn--lg {
  padding: 15px 32px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* ========== Header ========== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  width: 100%;
  background: linear-gradient(180deg, #001024 0%, #000a14 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.header__inner {
  height: var(--header-h);
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
  transform: translateY(10px);
  user-select: none;
}

.logo__img {
  display: block;
  width: auto;
  height: 84px;
  object-fit: contain;
  object-position: left center;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(230, 236, 246, 0.78);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav__link--active {
  color: var(--accent);
  position: relative;
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 168, 77, 0.25) 8%,
    rgba(232, 168, 77, 0.9) 25%,
    rgba(232, 168, 77, 0.9) 75%,
    rgba(232, 168, 77, 0.25) 92%,
    transparent 100%
  );
  border-radius: 1px;
}

.nav__home {
  width: 14px;
  height: 14px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: end;
}

/* ---- Language switch ---- */
.lang-switch {
  position: relative;
  margin-right: 4px;
}
.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 5px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-switch__toggle:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.lang-switch__flag {
  font-size: 14px;
  line-height: 1;
}
.lang-switch__label {
  letter-spacing: 0.04em;
}
.lang-switch__arrow {
  width: 8px;
  height: 5px;
  color: currentColor;
  transition: transform 0.2s ease;
}
.lang-switch__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: rgba(16, 22, 34, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lang-switch__dropdown.is-open {
  display: block;
}
.lang-switch__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch__option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.lang-switch__option.is-active {
  color: var(--accent);
  background: rgba(232, 168, 77, 0.08);
}
.lang-switch__option .lang-switch__flag {
  font-size: 16px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(180, 195, 220, 0.22);
  background: rgba(10, 14, 22, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.burger:hover {
  border-color: rgba(232, 168, 77, 0.45);
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, display 0s 0.25s;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(88vw, 360px);
  height: 100dvh;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 28px;
  background:
    linear-gradient(180deg, rgba(22, 28, 42, 0.98) 0%, rgba(10, 13, 20, 0.98) 100%);
  border-left: 1px solid rgba(232, 168, 77, 0.18);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), display 0s 0.3s;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.menu__title {
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 16px;
}

.menu__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(180, 195, 220, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.menu__close svg {
  width: 18px;
  height: 18px;
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: auto;
}

.menu__link {
  display: block;
  padding: 14px 14px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: rgba(230, 236, 246, 0.88);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu__link:hover,
.menu__link:focus-visible {
  color: var(--accent);
  background: rgba(232, 168, 77, 0.08);
  border-color: rgba(232, 168, 77, 0.2);
}

.menu__footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu__footer .btn {
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease, display 0s 0s;
}

body.menu-open .menu {
  display: flex;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), display 0s 0s;
}
/* Ensure hidden attribute works despite author display:flex */
.menu[hidden],
.menu-backdrop[hidden] {
  display: none;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 70vh;
  padding: calc(var(--header-h) + 160px) 0 60px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: calc(var(--header-h) + 1px) 0 0 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  transform: scaleX(-1);
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 70%, rgba(7, 9, 14, 0.6) 90%, rgba(7, 9, 14, 0.92) 97%, var(--bg) 100%),
    url("assets/hero-full.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero__overlay {
  position: absolute;
  inset: calc(var(--header-h) + 1px) 0 0 0;
  width: 100%;
  border-radius: 0;
  background: radial-gradient(ellipse 50% 40% at 20% 55%, rgba(7, 9, 14, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  max-width: none;
  padding-top: 12px;
  padding-bottom: 24px;
  animation: contentIn 0.9s ease-out both;
}

.hero__copy {
  max-width: 560px;
  position: relative;
}

.hero__copy > .hero__title,
.hero__copy > .hero__text,
.hero__copy > .hero__cta,
.hero__copy > .hero__tags {
  max-width: 560px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-bottom: 14px;
  text-shadow: 0 0 40px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.95);
}

.hero__text {
  color: #fff;
  font-size: 15px;
  max-width: 420px;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 0 6px rgba(0,0,0,0.6);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 28px;
  width: fit-content;
  max-width: 560px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__cta .btn--hero-packs {
  width: 100%;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.hero__tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(220, 228, 240, 0.85);
  font-size: 12px;
  font-weight: 600;
}

.tag-icon {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
  flex-shrink: 0;
  box-shadow: none;
  border-radius: 0;
  position: relative;
}

.tag-icon--game {
  background:
    linear-gradient(#e8a84d, #e8a84d) 0 0 / 16px 2px no-repeat,
    linear-gradient(#e8a84d, #e8a84d) 0 14px / 16px 2px no-repeat,
    linear-gradient(#e8a84d, #e8a84d) 0 0 / 2px 16px no-repeat,
    linear-gradient(#e8a84d, #e8a84d) 14px 0 / 2px 16px no-repeat,
    linear-gradient(#e8a84d, #e8a84d) 4px 4px / 8px 8px no-repeat;
}

.tag-icon--platforms {
  background:
    linear-gradient(#e8a84d, #e8a84d) 1px 3px / 6px 10px no-repeat,
    linear-gradient(#e8a84d, #e8a84d) 9px 3px / 6px 10px no-repeat;
}

.tag-icon--community {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5ad67a;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes contentIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Panels ========== */
.panels {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: var(--container);
  margin-inline: auto;
  margin-top: 48px;
  padding: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  min-height: 320px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel__head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.panel__head a {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.panel__head a:hover {
  text-decoration: underline;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: start;
}

.news-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  image-rendering: auto;
}

.news-item h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.news-item p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  margin-bottom: 4px;
}

.news-item time {
  font-size: 10px;
  color: var(--muted-2);
}

/* Screenshots */
.shots__main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 16 / 10;
  background: #0a0e16;
  cursor: pointer;
}

.shots__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shots__main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.25s;
  pointer-events: none;
  z-index: 1;
}

.shots__main:hover::after {
  background: rgba(0,0,0,0.2);
}

.shots__expand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 2;
}

.shots__main:hover .shots__expand {
  opacity: 1;
}

.shots__expand svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}
.lightbox__arrow:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox__arrow--prev {
  left: 12px;
  border-radius: 8px;
}
.lightbox__arrow--next {
  right: 12px;
  border-radius: 8px;
}

/* Trailer lightbox */
.trailer-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trailer-lightbox[hidden] {
  display: none;
}

.trailer-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.trailer-lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.shots__row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.shots__nav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(180, 195, 220, 0.22);
  background: rgba(255, 255, 255, 0.04);
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}

.shots__nav:hover {
  color: var(--accent);
  border-color: rgba(232, 168, 77, 0.5);
}

.shots__thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shots__thumbs::-webkit-scrollbar {
  display: none;
}

.shots__thumb {
  flex: 0 0 100px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  background: none;
  padding: 0;
}

.shots__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shots__thumb.is-active,
.shots__thumb:hover {
  opacity: 1;
  border-color: var(--accent);
}

/* Social */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.social-item strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.social-item small {
  color: var(--muted-2);
  font-size: 11px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon--discord { background: #5865f2; color: #fff; }
.social-icon--vk { background: #0077ff; color: #fff; }
.social-icon--yt { background: #ff0033; color: #fff; }
.social-icon--x { background: #1da1f2; color: #fff; }

/* Stats */
.panel--stats {
  position: relative;
  overflow: hidden;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.stats-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.stats-list strong {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stats-icon {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
}

.stats-icon svg {
  width: 16px;
  height: 16px;
}

.stats-slime {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  opacity: 1;
  pointer-events: none;
  image-rendering: pixelated;
}

.stats-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted-2);
  position: relative;
  z-index: 1;
}

/* ========== Features ========== */
.features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: var(--container);
  margin-inline: auto;
  margin-top: 48px;
  padding: 18px 0 48px;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  text-align: left;
  padding: 8px 6px;
}

.feature__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  margin: 0;
  display: grid;
  place-items: center;
  align-self: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.feature:hover .feature__icon {
  transform: translateY(-3px) scale(1.05);
}

.feature__icon svg {
  width: 52px;
  height: 52px;
}

.feature h3 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 400;
  align-self: end;
}

.feature p {
  grid-column: 2;
  grid-row: 2;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  align-self: start;
}

/* ========== Footer ========== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--container);
  margin-inline: auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 12px;
}

.footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__info p {
  margin: 0;
}

.footer__legal {
  font-size: 11px;
  opacity: 0.75;
}

.footer__links a:hover {
  color: var(--muted);
}

/* ========== Responsive ========== */
@media (max-width: 1280px) {
  :root {
    --container: min(92%, 1400px);
  }

  .nav__link {
    padding: 8px 7px;
    font-size: 11px;
  }
}

@media (max-width: 1100px) {
  .nav--desktop {
    display: none;
  }

  .header__inner {
    grid-template-columns: auto 1fr;
  }

  .header__actions {
    justify-self: end;
  }

  .burger {
    display: inline-flex;
  }

  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --container: 94%;
    --header-h: 64px;
  }

  .logo {
    transform: none;
  }

  .logo__img {
    height: 48px;
  }

  .auth-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    width: min(92vw, 380px) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
  }

  .hero {
    padding: calc(var(--header-h) + 100px) 0 80px;
    align-items: center;
    min-height: 78vh;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__copy > .hero__title,
  .hero__copy > .hero__text,
  .hero__copy > .hero__cta,
  .hero__copy > .hero__tags {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .panels {
    margin-top: 32px;
  }

  .panel {
    min-height: 0;
  }

  .features {
    margin-top: 0;
    padding: 20px 0 28px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .btn--login span {
    display: none;
  }

  .btn--login {
    padding-inline: 12px;
  }

  .header__actions .btn--primary {
    padding-inline: 14px;
    font-size: 12px;
  }

  .logo__img {
    height: 64px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    width: 100%;
  }

  .hero__tags {
    gap: 12px 16px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    padding: 10px 4px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 100%);
  }

  .panels {
    grid-template-columns: 1fr;
    margin-top: -40px;
    gap: 12px;
  }

  .panel {
    padding: 14px;
  }

  .news-item {
    grid-template-columns: 52px 1fr;
  }

  .shots__row {
    grid-template-columns: 28px 1fr 28px;
  }

  .menu {
    width: min(100vw - 24px, 360px);
  }

  .menu__footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header__actions .btn--ghost.btn--login {
    display: none;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__text {
    font-size: 14px;
  }

  .social-item {
    padding: 8px;
  }
}


.feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-dim);
}
.feature__list li::before {
  content: '▸ ';
  color: var(--accent);
}



/* ---- Info dot + popover ---- */
.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(232, 168, 77, 0.2);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  margin-left: 3px;
  vertical-align: middle;
  transform: translateY(-2px);
  position: relative;
}
.info-dot-wrapper--muted .info-dot {
  background: rgba(120, 130, 150, 0.2);
  color: var(--muted);
}
.info-dot-wrapper--muted .info-dot:hover {
  background: rgba(120, 130, 150, 0.4);
}
.info-dot-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.info-popover {
  display: block;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.4s, opacity 0.3s 0.4s;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 16, 26, 0.99);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 12px 18px 16px;
  border-radius: 8px;
  border: 1px solid rgba(232, 168, 77, 0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 500;
  text-align: left;
  white-space: normal;
  word-break: break-word;
}
.info-popover strong {
  display: block;
  color: #f5d78a;
  font-size: 13px;
  line-height: 1.5;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(232, 168, 77, 0.25);
}
.info-popover b {
  color: var(--accent);
}
.popover-dash {
  color: var(--muted);
}
/* Scrollbar styling */
.info-popover::-webkit-scrollbar {
  width: 6px;
}
.info-popover::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}
.info-popover::-webkit-scrollbar-thumb {
  background: var(--muted-2);
  border-radius: 3px;
}
.info-popover::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.info-dot-wrapper:hover .info-popover,
.info-popover:hover {
  visibility: visible;
  opacity: 1;
  transition: visibility 0s 0s, opacity 0s;
}
/* Invisible buffer around popover — keeps it open when mouse is ~1cm away */
.info-popover::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -14px;
  z-index: -1;
}


.feature__list li {
  overflow: visible !important;
  white-space: nowrap;
}

/* ========== Auth Popup ========== */
.auth-wrapper {
  position: relative;
}

.auth-popup {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  background: rgba(12, 17, 28, 0.99);
  border: 1px solid rgba(232, 168, 77, 0.28);
  border-radius: 12px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(232, 168, 77, 0.08);
  z-index: 300;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  overflow: hidden;
  animation: authIn 0.2s ease-out;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-popup[hidden] {
  display: none;
}

/* Tabs */
.auth-popup__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-popup__tab {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
  font-family: var(--font-ui);
}

.auth-popup__tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.auth-popup__tab.is-active {
  color: var(--accent);
}

.auth-popup__tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 1px;
}

/* Form */
.auth-form {
  padding: 20px 24px 24px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form__field {
  margin-bottom: 16px;
}

.auth-form__field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-form__field input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-ui);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-form__field input:focus {
  border-color: rgba(232, 168, 77, 0.5);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(232, 168, 77, 0.08);
}

.auth-form__field input::placeholder {
  color: var(--muted-2);
}

.auth-form__field input:invalid:not(:placeholder-shown) {
  border-color: rgba(194, 59, 59, 0.5);
}

/* Password field with toggle */
.auth-form__password {
  position: relative;
}

.auth-form__password input {
  padding-right: 44px;
}

.auth-form__toggle-pw {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.auth-form__toggle-pw:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-form__toggle-pw svg {
  width: 16px;
  height: 16px;
}

/* Error message */
.auth-form__error {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 14px;
  min-height: 18px;
  line-height: 1.4;
}

/* Submit button */
.auth-form__submit {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
}

.auth-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* Success state */
.auth-popup__success {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-popup__success svg {
  width: 48px;
  height: 48px;
}

.auth-popup__success span {
  font-size: 15px;
  font-weight: 700;
  color: #5ad67a;
}

.auth-popup__success[hidden] {
  display: none;
}

/* Logged in state for button */
.btn--login.is-logged-in {
  border-color: rgba(90, 214, 122, 0.45);
  color: #5ad67a;
}

.btn--login.is-logged-in:hover {
  border-color: rgba(90, 214, 122, 0.7);
  color: #7ae89a;
}

/* User dropdown menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 200px;
  background: rgba(12, 16, 26, 0.99);
  border: 1px solid rgba(232, 168, 77, 0.25);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 300;
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.user-dropdown[hidden] {
  display: none;
}

.user-dropdown a[hidden],
.user-dropdown button[hidden] {
  display: none !important;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(232, 168, 77, 0.12);
  color: var(--accent);
}

.user-dropdown__icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.user-dropdown__divider {
  height: 1px;
  background: rgba(232, 168, 77, 0.15);
  margin: 4px 0;
}

.user-dropdown .btn--logout {
  color: #e05555;
}

.user-dropdown .btn--logout:hover {
  background: rgba(224, 85, 85, 0.12);
  color: #f07070;
}

/* Prevent layout shift when username replaces text */
.btn--login {
  min-width: 90px;
  justify-content: center;
}

/* Spinner */
.auth-form__spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 500px) {
  .auth-popup {
    width: calc(100vw - 32px);
    right: -8px;
  }
}

/* ========== Early Access Packs Modal ========== */
.packs-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 5, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.packs-overlay[hidden] {
  display: none;
}

.packs-modal {
  position: relative;
  width: 100%;
  max-width: 1100px;
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.98) 0%, rgba(8, 11, 18, 0.99) 100%);
  border: 1px solid rgba(232, 168, 77, 0.22);
  border-radius: 20px;
  padding: 48px 36px 40px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(232, 168, 77, 0.06);
  animation: packIn 0.35s ease-out;
}

@keyframes packIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.packs-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(180, 195, 220, 0.2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 10;
}

.packs-modal__close:hover {
  border-color: rgba(232, 168, 77, 0.5);
  color: var(--accent);
  background: rgba(232, 168, 77, 0.08);
}

.packs-modal__close svg {
  width: 18px;
  height: 18px;
}

.packs-modal__title {
  font-family: var(--font-display);
  font-size: 32px;
  text-align: center;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.packs-modal__sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 36px;
}

/* Pre-registration modal */
.prereg-modal {
  max-width: 560px;
}

/* Platform picker — round orange checkboxes in one row */
.prereg-platforms {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: space-between;
}

/* Higher specificity to override .auth-form__field label (display:block, uppercase) */
.prereg-platforms .prereg-platform-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-bottom: 0;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}

.prereg-platforms .prereg-platform-opt:hover {
  border-color: rgba(232, 168, 77, 0.5);
  background: rgba(232, 168, 77, 0.06);
}

.prereg-platforms .prereg-platform-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

.prereg-platform-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  border: 2px solid rgba(180, 195, 220, 0.4);
  background: transparent;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.prereg-platforms .prereg-platform-opt input:checked + .prereg-platform-dot {
  border-color: #e8a84d;
  background: radial-gradient(circle at center, #e8a84d 0%, #e8a84d 42%, transparent 48%);
  box-shadow: 0 0 8px rgba(232, 168, 77, 0.55);
}

.prereg-platforms .prereg-platform-label {
  font-size: 13px;
  color: var(--text);
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
  display: inline;
}

.prereg-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prereg-msg {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prereg-msg--ok {
  color: #5ad67a;
  border-color: rgba(90, 214, 122, 0.4);
  background: rgba(90, 214, 122, 0.08);
}

.prereg-msg--err {
  color: #e05555;
  border-color: rgba(224, 85, 85, 0.4);
  background: rgba(224, 85, 85, 0.08);
}

/* Grid */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Cards */
.pack-card {
  position: relative;
  background: rgba(20, 28, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pack-card--locked {
  pointer-events: none;
}

.pack-card--locked .pack-card__image,
.pack-card--locked .pack-card__name,
.pack-card--locked .pack-card__desc,
.pack-card--locked .pack-card__extra,
.pack-card--locked .pack-card__price,
.pack-card--locked .pack-card__custom {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.pack-card__lock-note {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px 0;
}

.pack-card--locked .pack-card__lock-note {
  opacity: 1;
  filter: none;
}

.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 168, 77, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(232, 168, 77, 0.08);
}

.pack-card--popular {
  border-color: rgba(232, 168, 77, 0.4);
  background: rgba(28, 22, 12, 0.9);
  box-shadow: 0 0 24px rgba(232, 168, 77, 0.1);
}

.pack-card--popular:hover {
  border-color: rgba(232, 168, 77, 0.6);
}

.pack-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #e8a84d, #c47a2a);
  color: #0d0803;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(200, 130, 40, 0.4);
  z-index: 2;
}

.pack-card__image {
  position: relative;
  height: 160px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pack-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.pack-card__support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-card__support-icon svg {
  width: 64px;
  height: 64px;
  opacity: 0.7;
}

.pack-card__price {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  padding: 4px 14px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(232, 168, 77, 0.25);
}

.pack-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  text-align: center;
  padding: 20px 20px 4px;
  letter-spacing: 0.04em;
}

.pack-card--popular .pack-card__name {
  color: var(--accent);
}

.pack-card__desc {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 20px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.pack-card__extra {
  text-align: center;
  color: var(--muted-2);
  font-size: 11px;
  padding: 0 20px;
  margin-bottom: 12px;
  line-height: 1.45;
  font-style: italic;
}

.pack-card__features {
  list-style: none;
  padding: 8px 20px 16px;
  flex: 1;
}

.pack-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.3;
}

.pack-card__features li:last-child {
  border-bottom: none;
}

.pack-card__features svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pack-card__features .info-dot-wrapper {
  margin-left: auto;
}

/* Ensure popovers escape card boundaries */
.pack-card,
.pack-card__features,
.pack-card__features li {
  overflow: visible !important;
}

.pack-card__features .info-popover {
  z-index: 600;
}

/* Raise hovered card above others so its popover isn't hidden */
.pack-card:hover {
  z-index: 10;
}

.pack-card__custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.pack-card__amount {
  width: 120px;
  padding: 10px 14px;
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(232, 168, 77, 0.3);
  border-radius: 8px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pack-card__amount:focus {
  border-color: rgba(232, 168, 77, 0.6);
  box-shadow: 0 0 0 3px rgba(232, 168, 77, 0.08);
}

.pack-card__currency {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
}

.pack-card__btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d0803;
  background: linear-gradient(180deg, #e8a84d 0%, #c47a2a 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 #8a5018, 0 4px 12px rgba(200, 130, 40, 0.35);
  transition: filter 0.2s, transform 0.15s;
}

.pack-card__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.pack-card__btn:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.pack-card__btn--support {
  background: linear-gradient(180deg, #8a6a3a 0%, #5a4520 100%);
  box-shadow: 0 2px 0 #3a2a10, 0 4px 12px rgba(120, 100, 40, 0.3);
}

.pack-card--support {
  border-style: dashed;
  border-color: rgba(232, 168, 77, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .packs-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .packs-modal {
    padding: 32px 20px 28px;
  }

  .packs-modal__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .packs-overlay {
    padding: 12px;
    align-items: flex-start;
  }

  .packs-modal {
    padding: 28px 14px 20px;
    border-radius: 14px;
  }

  .pack-card__name {
    font-size: 16px;
  }
}
