/* ModGameLab: site styles. System fonts only, no external requests. */

:root {
  --navy-950: #050c1b;
  --navy-900: #081631;
  --navy-850: #0b1d3d;
  --navy-800: #0f2550;
  --navy-700: #173468;
  --blue-600: #1f6bff;
  --blue-500: #3a86ff;
  --blue-400: #63a4ff;
  --aqua-300: #6fe3ff;
  --aqua-200: #bdf3ff;
  --sun-400: #ffcb45;
  --sun-500: #ffb703;
  --green-500: #22c55e;
  --amber-400: #fbbf24;
  --foam-50: #f5f8fe;
  --foam-100: #eaf0fb;
  --line: #dbe4f3;
  --ink-900: #0c1730;
  --ink-700: #2a3956;
  --ink-500: #56688a;
  --on-dark: #eef4ff;
  --on-dark-muted: #a9b9d6;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-card: 0 1px 2px rgba(12, 23, 48, 0.06), 0 14px 34px -14px rgba(12, 23, 48, 0.2);
  --shadow-glow: 0 40px 80px -28px rgba(31, 107, 255, 0.55);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --font-display: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--foam-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--blue-600); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-500); }

:focus-visible { outline: 3px solid var(--aqua-300); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--sun-400); color: var(--ink-900);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 12, 27, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; }
.brand-word span { color: var(--aqua-300); }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(111, 227, 255, 0.14); color: #fff; }
.nav-lang a { border: 1px solid rgba(255, 255, 255, 0.18); margin-left: 6px; }
.nav-lang .icon { width: 1.1em; height: 1.1em; color: var(--aqua-300); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: #fff; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; position: relative; width: 18px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-open .nav-toggle-bar { background: transparent; }
  .nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-wrap: wrap; }
  .js .site-nav { display: none; width: 100%; padding: 0 0 14px; }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { padding: 13px 14px; border-radius: 12px; }
  .js .nav-lang a { margin: 6px 0 0; }
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn-sun {
  background: linear-gradient(180deg, #ffd864, var(--sun-500));
  color: #1d1300;
  box-shadow: 0 10px 24px -10px rgba(255, 183, 3, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-sun:hover { color: #1d1300; box-shadow: 0 14px 30px -10px rgba(255, 183, 3, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn-ink { background: var(--ink-900); color: #fff; }
.btn-ink:hover { color: #fff; background: var(--navy-800); }
.btn-outline { color: var(--ink-900); border-color: #c4d1e8; background: #fff; }
.btn-outline:hover { color: var(--ink-900); border-color: var(--blue-400); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 22px 8px 16px; border-radius: 16px;
  background: #0a1226; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, background-color 0.2s ease;
}
a.store-btn:hover { color: #fff; background: #13213f; transform: translateY(-1px); }
.store-btn .icon { width: 26px; height: 26px; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.12; }
.store-btn small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.78; }
.store-btn strong { font-family: var(--font-display); font-size: 1.16rem; font-weight: 800; }
.store-btn.is-soon { background: transparent; border: 1.5px dashed rgba(255, 255, 255, 0.34); box-shadow: none; color: var(--on-dark); }
.on-light .store-btn.is-soon { color: var(--ink-700); border-color: #b5c4dd; }
.store-buttons.center { justify-content: center; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.text-link .icon { transition: transform 0.2s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-dark {
  color: var(--on-dark);
  background:
    radial-gradient(900px 520px at 88% 0%, rgba(58, 134, 255, 0.24), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--blue-600);
}
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--aqua-300); }

.lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--ink-700); max-width: 62ch; }
.section-dark .lead, .hero .lead, .page-hero .lead { color: var(--on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head .lead:last-child { margin-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--on-dark);
  padding: clamp(52px, 8vw, 100px) 0 clamp(76px, 10vw, 128px);
  background:
    radial-gradient(1000px 620px at 92% -18%, rgba(58, 134, 255, 0.46), transparent 60%),
    radial-gradient(720px 520px at -12% 112%, rgba(111, 227, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(36px, 6vw, 76px);
}
.hero-copy .btn-row, .hero-copy .store-buttons { margin-top: 30px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px; list-style: none; color: var(--on-dark-muted); font-size: 0.95rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: var(--aqua-300); }

.hero-art { position: relative; }
.frame {
  position: relative; border-radius: var(--radius-xl); padding: 2px;
  background: linear-gradient(140deg, rgba(111, 227, 255, 0.9), rgba(58, 134, 255, 0.35) 42%, rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow-glow);
}
.frame img { width: 100%; border-radius: calc(var(--radius-xl) - 2px); }

/* Two overlapping game posters on the studio home page. */
.poster-stack { position: relative; padding: 0 0 22% 0; }
.poster-stack .frame { width: 84%; }
.poster-stack .frame + .frame { position: absolute; right: 0; bottom: 0; }
.poster-stack .frame:first-child { transform: rotate(-3deg); }
.poster-stack .frame:last-child { transform: rotate(2.5deg); box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.7); }

.hero-chip {
  position: absolute; z-index: 2; right: 18px; bottom: -18px;
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; color: var(--ink-900); font-weight: 700; font-size: 0.86rem;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.55);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
.dot.is-amber { background: var(--amber-400); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22); }

.game-hero-title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-hero-title h1 { margin: 0; }
.game-hero-title .eyebrow { margin-bottom: 6px; }
.app-icon { flex: none; width: 76px; }
.app-icon img { border-radius: 23%; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.55); }
.app-icon.lg { width: clamp(80px, 9vw, 104px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; list-style: none; }
.chips li {
  padding: 7px 13px; border-radius: 999px; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--on-dark);
}

.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -80px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 6%, rgba(255, 255, 255, 0.3) 7% 24%, rgba(170, 230, 255, 0.07) 50%, rgba(170, 230, 255, 0.26) 66%, rgba(170, 230, 255, 0) 71%);
  border: 1px solid rgba(205, 242, 255, 0.55);
  box-shadow: inset 0 0 10px rgba(111, 227, 255, 0.28), 0 0 14px rgba(111, 227, 255, 0.12);
  animation: rise linear infinite;
}
.bubble:nth-child(1) { left: 4%;  width: 26px; height: 26px; animation-duration: 15s; animation-delay: -3s; }
.bubble:nth-child(2) { left: 13%; width: 14px; height: 14px; animation-duration: 11s; animation-delay: -8s; }
.bubble:nth-child(3) { left: 24%; width: 38px; height: 38px; animation-duration: 19s; animation-delay: -12s; }
.bubble:nth-child(4) { left: 37%; width: 18px; height: 18px; animation-duration: 13s; animation-delay: -1s; }
.bubble:nth-child(5) { left: 51%; width: 30px; height: 30px; animation-duration: 17s; animation-delay: -6s; }
.bubble:nth-child(6) { left: 63%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -4s; }
.bubble:nth-child(7) { left: 74%; width: 44px; height: 44px; animation-duration: 21s; animation-delay: -15s; }
.bubble:nth-child(8) { left: 86%; width: 20px; height: 20px; animation-duration: 14s; animation-delay: -9s; }
.bubble:nth-child(9) { left: 94%; width: 28px; height: 28px; animation-duration: 18s; animation-delay: -2s; }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { transform: translate3d(24px, -900px, 0); opacity: 0; }
}

/* ---------- Game cards (home) ---------- */

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.game-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(12, 23, 48, 0.06), 0 26px 48px -20px rgba(12, 23, 48, 0.32); }
.game-card-media { position: relative; }
.game-card-media img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.game-card .card-status {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 14px;
  padding: 6px 12px; border-radius: 999px;
  background: #e6f7ed; color: #12663a; font-weight: 700; font-size: 0.84rem;
}
.game-card .card-status.is-soon { background: #fff4d6; color: #845300; }
.game-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 3vw, 32px); }
.game-card-head { display: flex; align-items: center; gap: 14px; margin: -58px 0 16px; }
.game-card-head .app-icon { width: 74px; }
.game-card-head .app-icon img { border: 3px solid #fff; }
.game-card-head h3 { margin: 26px 0 0; font-size: 1.5rem; }
.game-card p { color: var(--ink-700); }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 22px; list-style: none; }
.game-card .tags li { padding: 5px 11px; border-radius: 999px; background: var(--foam-100); color: var(--ink-700); font-size: 0.84rem; font-weight: 600; }
.game-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: auto; }

/* ---------- Cards and features ---------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.section-alt .card { background: var(--foam-50); box-shadow: none; }
.card p { margin: 0; color: var(--ink-500); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px;
  background: linear-gradient(150deg, var(--aqua-200), #dfe9ff); color: var(--blue-600);
}
.card-icon .icon { width: 26px; height: 26px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature-card { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.feature-card h3 { margin-bottom: 14px; }
.feature-card ul { display: grid; gap: 10px; list-style: none; }
.feature-card li { position: relative; padding-left: 22px; color: var(--ink-700); }
.feature-card li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500); box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.18);
}

.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.info-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); }
.info-item .card-icon { width: 46px; height: 46px; margin: 0; }
.info-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.info-item p { margin: 0; color: var(--ink-500); font-size: 0.97rem; }

/* ---------- Gallery and lightbox ---------- */

.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 620px); gap: 20px;
  margin: 0 calc(-1 * var(--gutter)); padding: 6px var(--gutter) 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); list-style: none;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.gallery-track:focus-visible { outline-offset: -3px; }
.gallery-item { scroll-snap-align: start; }
.gallery-item a {
  display: block; overflow: hidden; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.75);
}
.gallery-item img { width: 100%; transition: transform 0.4s ease; }
.gallery-item a:hover img { transform: scale(1.02); }
.gallery-caption { margin: 12px 4px 0; color: var(--on-dark-muted); font-size: 0.95rem; }
.gallery-caption strong { margin-right: 6px; color: #fff; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.gallery-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #fff;
}
.gallery-btn:hover { background: rgba(255, 255, 255, 0.14); }
.gallery-btn[disabled] { opacity: 0.35; cursor: default; }

.lightbox {
  width: min(96vw, 1320px); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(3, 8, 20, 0.94); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 16px; background: #000; }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--on-dark-muted); }
.lightbox-bar { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.lightbox .gallery-btn { background: rgba(255, 255, 255, 0.1); }

/* ---------- Showcase and call to action ---------- */

.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: clamp(34px, 6vw, 60px); border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(620px 320px at 92% 8%, rgba(111, 227, 255, 0.45), transparent 60%),
    linear-gradient(135deg, var(--blue-600), #1236a3);
  box-shadow: var(--shadow-glow);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.cta-band .cta-note { margin-top: 10px; font-size: 0.95rem; overflow-wrap: anywhere; }
.cta-band .cta-note a { color: #fff; }

/* ---------- Inner pages ---------- */

.page-hero {
  color: var(--on-dark);
  padding: clamp(46px, 7vw, 84px) 0 clamp(40px, 6vw, 70px);
  background:
    radial-gradient(800px 420px at 90% -30%, rgba(58, 134, 255, 0.42), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin-bottom: 0.3em; }
.page-hero .lead { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; list-style: none; font-size: 0.92rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.support-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(26px, 5vw, 56px); align-items: start; }
.contact-card { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.contact-card h2 { font-size: 1.45rem; }
.contact-card p { color: var(--ink-500); }
.contact-card .btn { width: 100%; }
.contact-card .mail-line { margin: 14px 0 0; font-size: 0.95rem; overflow-wrap: anywhere; }

.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { display: flex; align-items: center; gap: 12px; font-size: 1.55rem; margin-bottom: 18px; }
.faq-group > h2 .app-icon { width: 44px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 19px 56px 19px 22px;
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-700); }
.faq .answer p:last-child { margin-bottom: 0; }

.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.95rem; }
.toc-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-500); }
.toc ol { display: grid; gap: 2px; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 6px 14px; border-left: 2px solid transparent; color: var(--ink-500); text-decoration: none; }
.toc a:hover { color: var(--ink-900); border-left-color: var(--blue-500); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.55rem; margin: 2.1em 0 0.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--blue-500); }
.prose ul ul { margin: 0.4em 0 0; }
.doc-meta { display: inline-block; margin: 0 0 26px; padding: 6px 13px; border-radius: 999px; background: var(--foam-100); color: var(--ink-500); font-size: 0.9rem; }
.note { padding: 18px 20px; border-radius: var(--radius-md); background: var(--foam-100); border: 1px solid var(--line); color: var(--ink-700); }
.note p:last-child { margin-bottom: 0; }

.policy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 0 2em; padding: 0 !important; }
.policy-list li { margin: 0; }
.policy-list li::marker { content: none; }
.policy-link {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 18px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card);
  color: var(--ink-900); text-decoration: none; font-weight: 700;
}
.policy-link:hover { color: var(--ink-900); border-color: var(--blue-400); }
.policy-link .app-icon { width: 52px; }
.policy-link small { display: block; color: var(--ink-500); font-weight: 500; }
.policy-link .icon { margin-left: auto; color: var(--blue-600); }

/* ---------- 404 ---------- */

.not-found { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { color: #fff; }
.not-found .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer { padding: 58px 0 30px; background: var(--navy-950); color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.site-footer h2 { margin-bottom: 14px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: #fff; }
.site-footer ul { display: grid; gap: 8px; list-style: none; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover, .site-footer .brand { color: #fff; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .poster-stack { max-width: 620px; }
  .game-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .support-grid, .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .feature-grid, .info-list, .policy-list { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .hero-chip { right: 10px; bottom: -14px; font-size: 0.8rem; }
  .game-card-head h3 { font-size: 1.32rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .store-btn { flex: 1 1 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .game-hero-title { align-items: flex-start; }
}

@media (min-width: 961px) {
  .contact-card { position: sticky; top: calc(var(--header-h) + 24px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubbles { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
