/* ============================================================
   YMobilApp — Game Studio Website
   Shared stylesheet (homepage, privacy policy, terms of service)
   Blue brand theme with light / dark mode support
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — vivid azure blue (matches studio banner) */
  --brand: #00a3e8;
  --brand-2: #0072ff;
  --brand-cyan: #00c6fb;
  --brand-grad: linear-gradient(135deg, #00c6fb 0%, #0072ff 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(0,198,251,.14), rgba(0,114,255,.14));

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #eef6fd;
  --bg-hero: linear-gradient(160deg, #e8f5ff 0%, #f7fbff 60%, #ffffff 100%);
  --surface: #ffffff;
  --card: #ffffff;
  --text: #0e1a2b;
  --text-muted: #55677f;
  --heading: #0b1524;
  --border: #e3ebf3;
  --border-strong: #cfdbe8;
  --shadow-sm: 0 2px 8px rgba(16, 42, 76, .06);
  --shadow-md: 0 12px 30px rgba(16, 42, 76, .10);
  --shadow-lg: 0 24px 60px rgba(16, 42, 76, .16);
  --chip-bg: #e7f3fd;
  --chip-text: #0072ff;
  --footer-bg: #0b1524;
  --footer-text: #aebfd4;

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-lg: 22px;
  --nav-h: 68px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Poppins', var(--font-body);
}

html[data-theme="dark"] {
  --bg: #0a1120;
  --bg-alt: #0e1728;
  --bg-hero: radial-gradient(1200px 600px at 80% -10%, rgba(0,114,255,.18), transparent 60%),
             linear-gradient(160deg, #0c1526 0%, #0a1120 100%);
  --surface: #0e1728;
  --card: #121d33;
  --text: #dbe6f5;
  --text-muted: #8ea3c0;
  --heading: #f2f7ff;
  --border: #1f2d47;
  --border-strong: #2a3b5a;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .55);
  --chip-bg: rgba(0,163,232,.14);
  --chip-text: #4dc4ff;
  --footer-bg: #060b16;
  --footer-text: #8ea3c0;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}

a { color: var(--brand-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-2);
  background: var(--chip-bg);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { color: var(--text-muted); font-size: 1.06rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn i { font-size: 1.05em; }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 22px rgba(0,114,255,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,114,255,.45); color:#fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.24); color:#fff; transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 11px;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0,114,255,.4);
}
.brand span b { color: var(--brand-2); }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
  padding: 9px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-2); background: var(--chip-bg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .2s, border-color .2s, transform .2s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); transform: rotate(-12deg); }
.theme-toggle .fa-sun { display: none; }
html[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg-hero); overflow: hidden; padding: 92px 0 84px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 34px 34px;
  opacity: .5;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 18px; }
.hero h1 .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.16rem; color: var(--text-muted); max-width: 540px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-head); font-size: 1.7rem; color: var(--heading); display: block; line-height: 1; }
.hero-stats .stat span { font-size: .88rem; color: var(--text-muted); }

/* Hero visual — floating phone with app grid */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: 260px; aspect-ratio: 9/18.5;
  background: var(--card);
  border: 8px solid var(--heading);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  padding: 18px 14px;
  position: relative;
  animation: float 6s ease-in-out infinite;
}
html[data-theme="dark"] .phone { border-color: #1f2d47; }
.phone::before { content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%); width:80px; height:6px; background: var(--border-strong); border-radius:99px; }
.phone-screen { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.phone-app { aspect-ratio: 1; border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.phone-app img { width: 100%; height: 100%; object-fit: cover; }
.phone-app.ph { display:grid; place-items:center; color: var(--brand); font-size: 1.3rem; background: var(--brand-grad-soft); }

.float-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.float-badge i { color: var(--brand); font-size: 1.2rem; }
.float-badge.b1 { top: 12%; left: -14px; animation-delay: .6s; }
.float-badge.b2 { bottom: 14%; right: -18px; animation-delay: 1.4s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Games grid ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.game-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.game-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-alt); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-cover img { transform: scale(1.06); }
.game-cover::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.28), transparent 55%); }
.game-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(0,0,0,.55); color:#fff;
  font-size: .74rem; font-weight: 600; letter-spacing:.04em;
  padding: 5px 11px; border-radius: 99px;
  display:inline-flex; align-items:center; gap:6px;
  backdrop-filter: blur(4px);
}
.game-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.game-head { display: flex; align-items: center; gap: 14px; }
.game-icon {
  width: 60px; height: 60px; border-radius: 15px; overflow: hidden; flex-shrink: 0;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  margin-top: -46px; position: relative; z-index: 3; background:#fff;
}
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-head h3 { font-size: 1.18rem; margin: 0; }
.game-head .dev { font-size: .82rem; color: var(--text-muted); }
.game-desc { color: var(--text-muted); font-size: .95rem; margin: 0; flex: 1; }
.game-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: .74rem; font-weight: 600; color: var(--chip-text); background: var(--chip-bg); padding: 4px 10px; border-radius: 8px; }
.game-foot { margin-top: 4px; }
.btn-gplay {
  display: inline-flex; align-items: center; gap: 10px; width: 100%;
  justify-content: center;
  background: var(--brand-grad); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 12px 18px; border-radius: 12px;
  transition: transform .18s, box-shadow .18s;
}
.btn-gplay:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,114,255,.4); color:#fff; }
.btn-gplay i { font-size: 1.3rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brand-grad-soft); color: var(--brand-2); font-size: 1.5rem; margin-bottom: 18px;
}
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--brand-grad); color: #fff; border-radius: var(--radius-lg); padding: 46px 30px; box-shadow: var(--shadow-md); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-row .s b { font-family: var(--font-head); font-size: 2.3rem; display: block; line-height: 1.1; }
.stats-row .s span { opacity: .9; font-size: .95rem; }
.stats-row .s i { font-size: 1.4rem; opacity: .85; margin-bottom: 8px; display:block; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden;
  background: var(--brand-grad); color: #fff;
  border-radius: var(--radius-lg); padding: 60px 40px; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-box::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(600px 300px at 100% 0, rgba(255,255,255,.18), transparent 60%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-box p { max-width: 560px; margin: 0 auto 26px; opacity: .95; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 42px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-about p { color: var(--footer-text); font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--footer-text); font-size: .94rem; }
.footer-col a:hover { color: var(--brand-cyan); padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--footer-text); font-size: 1.05rem; transition: all .2s;
}
.footer-social a:hover { background: var(--brand-grad); color: #fff; transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .88rem;
}
.footer-bottom a { color: var(--footer-text); }
.footer-bottom a:hover { color: var(--brand-cyan); }

/* ---------- Legal / document pages ---------- */
.doc-hero { background: var(--bg-hero); padding: 60px 0 46px; border-bottom: 1px solid var(--border); }
.doc-hero .eyebrow { margin-bottom: 14px; }
.doc-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.doc-hero p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }
.doc-updated { display:inline-flex; align-items:center; gap:8px; margin-top:16px; font-size:.9rem; color: var(--text-muted); background: var(--chip-bg); padding:6px 14px; border-radius:99px; }
.doc-updated i { color: var(--brand); }

.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; padding: 56px 0 84px; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.doc-toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 14px; }
.doc-toc ul { list-style: none; margin: 0; padding: 0; }
.doc-toc li { margin-bottom: 2px; }
.doc-toc a { display: block; color: var(--text-muted); font-size: .9rem; padding: 7px 12px; border-radius: 9px; border-left: 2px solid transparent; transition: all .2s; }
.doc-toc a:hover, .doc-toc a.active { color: var(--brand-2); background: var(--chip-bg); border-left-color: var(--brand); }

.doc-content { max-width: 760px; }
.doc-content .intro-card {
  background: var(--brand-grad-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 36px;
  display: flex; gap: 16px; align-items: flex-start;
}
.doc-content .intro-card i { color: var(--brand-2); font-size: 1.4rem; margin-top: 3px; }
.doc-content .intro-card p { margin: 0; color: var(--text); font-size: .98rem; }

.doc-section { margin-bottom: 44px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-section h2 {
  font-size: 1.5rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.doc-section h2 .num {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; border-radius: 10px;
  font-size: .95rem; font-family: var(--font-head);
}
.doc-section h3 { font-size: 1.14rem; margin: 26px 0 10px; color: var(--brand-2); }
.doc-section p, .doc-section li { color: var(--text); font-size: 1rem; }
.doc-section p { margin: 0 0 14px; }
.doc-section ul, .doc-section ol { margin: 0 0 16px; padding-left: 6px; }
.doc-section li { margin-bottom: 9px; padding-left: 28px; position: relative; list-style: none; }
.doc-section li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 1px; color: var(--brand); font-size: .8rem;
}
.doc-section ol { counter-reset: item; }
.doc-section ol li::before { content: counter(item); counter-increment: item; font-family: var(--font-head); font-size: .72rem; font-weight: 700; top: 2px; left:2px; width:18px; height:18px; background: var(--brand-grad-soft); color: var(--brand-2); border-radius: 6px; display:grid; place-items:center; }
.doc-section strong { color: var(--heading); }
.doc-section a { text-decoration: underline; text-underline-offset: 3px; }

.doc-note {
  background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 16px 20px; margin: 18px 0;
}
.doc-note p { margin: 0; font-size: .95rem; }
.doc-note strong { color: var(--brand-2); }

.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: .94rem; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.doc-table th, .doc-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.doc-table th { background: var(--bg-alt); font-family: var(--font-head); font-size: .86rem; color: var(--heading); }
.doc-table tr:last-child td { border-bottom: none; }

.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); margin-top: 8px;
}
.contact-card .row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.contact-card .row:last-child { margin-bottom: 0; }
.contact-card .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-grad-soft); color: var(--brand-2); font-size: 1.1rem; flex-shrink: 0; }
.contact-card .row b { display: block; color: var(--heading); font-family: var(--font-head); font-size: .95rem; }
.contact-card .row span, .contact-card .row a { color: var(--text-muted); font-size: .95rem; }

/* ---------- Account deletion page ---------- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 12px; }
.method-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.method-card .m-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.method-card .m-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-size: 1.3rem; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,114,255,.35); }
.method-card .m-head h3 { margin: 0; font-size: 1.2rem; color: var(--heading); }
.method-card .m-head .m-tag { font-size: .8rem; color: var(--text-muted); }

.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-list li { position: relative; padding: 0 0 20px 46px; counter-increment: step; list-style: none; }
.step-list li:last-child { padding-bottom: 0; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px; background: var(--brand-grad-soft); color: var(--brand-2); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.step-list li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--border); }
.step-list li:last-child::after { display: none; }
.step-list li strong { display: block; color: var(--heading); margin-bottom: 2px; }
.step-list li span { color: var(--text-muted); font-size: .93rem; }
.step-list li .kbd { display: inline-flex; align-items: center; gap: 6px; background: var(--chip-bg); color: var(--chip-text); font-weight: 600; font-size: .82rem; padding: 2px 9px; border-radius: 7px; }

@media (max-width: 720px) {
  .method-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile nav panel ---------- */
.mobile-nav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .games-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .games-grid, .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 24px; }

  .mobile-nav {
    display: block; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 45;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%); transition: transform .3s ease;
    padding: 14px 22px 22px;
  }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { display: block; padding: 13px 8px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--border); }
  .mobile-nav a:last-child { border-bottom: none; }
}
