/* Offline Game Hub — website styles */
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 800; font-display: swap; src: url(../fonts/outfit-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 900; font-display: swap; src: url(../fonts/outfit-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  --bg: #0a0820; --bg2: #120e30; --surface: rgba(255,255,255,.05); --surface2: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.1); --border2: rgba(255,255,255,.18);
  --text: #f5f3ff; --dim: #b3abdc; --faint: #7f77ad;
  --violet: #8b5cf6; --pink: #ff4fa3; --teal: #19d3c5; --amber: #ffc53d; --lime: #7ee04a;
  --grad: linear-gradient(135deg, #8b5cf6, #ff4fa3);
  --grad-text: linear-gradient(90deg, #ffe45c, #ff9f1c 35%, #ff4fa3 70%, #b98bff);
  --display: Outfit, "Segoe UI", system-ui, sans-serif;
  --body: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --r: 22px; --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

/* background */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(800px 600px at 110% 20%, rgba(255,79,163,.2), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(25,211,197,.14), transparent 60%), var(--bg); }
.bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 15%, transparent 70%); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.4); background: rgba(10,8,32,.7); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 20px -4px rgba(139,92,246,.8); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--dim); padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-links a.btn, .nav-links a.btn:hover { color: #fff; background: var(--grad); margin-left: 6px; }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 12px; font-size: 20px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 17px; padding: 14px 24px; border-radius: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 12px 30px -10px rgba(255,79,163,.7), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(255,79,163,.85), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost { color: var(--text); background: var(--surface2); border-color: var(--border2); }
.btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-sm { font-size: 15px; padding: 10px 16px; border-radius: 12px; }
.btn .soon { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(255,197,61,.18); color: var(--amber); }

/* hero */
.hero { padding: 80px 0 60px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--border2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.hero h1 { font-size: clamp(46px, 6.6vw, 86px); font-weight: 900; margin-top: 22px; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--dim); max-width: 540px; margin: 22px 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; color: var(--dim); font-weight: 600; font-size: 14.5px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; flex: none; }

.wall-stage { position: relative; height: 560px; perspective: 1400px; }
.wall { position: absolute; inset: -40px -120px -40px 0; transform: rotateY(-20deg) rotateX(8deg) rotateZ(-5deg); transform-style: preserve-3d;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent), linear-gradient(transparent, #000 10%, #000 88%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 85%, transparent); }
.wall-col { position: absolute; top: 0; display: flex; flex-direction: column; gap: 18px; animation: drift 38s linear infinite; }
.wall-col:nth-child(2) { animation-duration: 46s; animation-direction: reverse; }
.wall-col:nth-child(3) { animation-duration: 42s; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wall-card { width: 220px; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(0,0,0,.9), 0 0 0 2px rgba(255,255,255,.14); text-decoration: none; }
.wall-card svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: reduce) { .wall-col { animation: none; } html { scroll-behavior: auto; } }

/* stats */
.stats { padding: 10px 0 40px; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 40px; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--dim); font-weight: 600; font-size: 14px; }
.stat:nth-child(1) b { color: var(--violet); } .stat:nth-child(2) b { color: var(--pink); } .stat:nth-child(3) b { color: var(--amber); } .stat:nth-child(4) b { color: var(--teal); } .stat:nth-child(5) b { color: var(--lime); }

/* sections */
section { padding: 70px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 900; margin-top: 16px; }
.sec-head p { color: var(--dim); font-size: 18px; margin: 16px 0 0; }

/* games */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.tab { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--dim); background: var(--surface); border: 1px solid var(--border); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.tab:hover { color: var(--text); border-color: var(--border2); }
.tab.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255,79,163,.7); }
.tab .n { opacity: .7; margin-left: 4px; font-size: 13px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.game { position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r); overflow: hidden; background: #151036; border: 1px solid var(--border); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.game:hover { transform: translateY(-6px); border-color: var(--border2); box-shadow: 0 26px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(139,92,246,.4); }
.game .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.game .art svg { width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.game:hover .art svg { transform: scale(1.08); }
.game .play { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1c1640; font-size: 16px; padding-left: 3px; box-shadow: 0 10px 22px -6px rgba(0,0,0,.6); opacity: 0; transform: translateY(8px) scale(.85); transition: all .25s; }
.game:hover .play, .game:focus-visible .play { opacity: 1; transform: none; }
.game .new { position: absolute; left: 10px; top: 10px; font-family: var(--display); font-weight: 900; font-size: 11px; letter-spacing: .1em; padding: 4px 9px; border-radius: 8px; color: #2a1600; background: linear-gradient(135deg, #ffe45c, #ffb13d); }
.game .body { padding: 14px 16px 16px; }
.game h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.game p { margin: 6px 0 10px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.chip { display: inline-block; font-family: var(--display); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.c-puzzle { color: #19d3c5; border-color: rgba(25,211,197,.35); background: rgba(25,211,197,.08); }
.c-arcade { color: #ff4fa3; border-color: rgba(255,79,163,.35); background: rgba(255,79,163,.08); }
.c-board { color: #ffc53d; border-color: rgba(255,197,61,.35); background: rgba(255,197,61,.08); }
.c-casual { color: #7ee04a; border-color: rgba(126,224,74,.35); background: rgba(126,224,74,.08); }
.center { text-align: center; margin-top: 34px; }

/* gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(780px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 24px; scrollbar-width: thin; }
.gallery img { width: 100%; border-radius: 20px; scroll-snap-align: center; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9), 0 0 0 1px var(--border2); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--border2); transform: translateY(-3px); }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; font-weight: 800; }
.feature p { color: var(--dim); margin: 8px 0 0; font-size: 15.5px; }

/* privacy band */
.band { border-radius: 30px; padding: 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(255,79,163,.12)); border: 1px solid var(--border2); }
.band h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; }
.band p { color: var(--dim); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.checks li::before { content: "✓"; flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; color: #0b2a14; background: linear-gradient(135deg, #7ee04a, #34d399); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 800; font-size: 19px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--dim); }

/* final cta */
.final { text-align: center; padding: 90px 0; }
.final h2 { font-size: clamp(38px, 5vw, 64px); font-weight: 900; }
.final p { color: var(--dim); font-size: 18px; margin: 16px 0 30px; }
.final .cta-row { justify-content: center; }

/* doc pages */
.doc { padding: 60px 0 80px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 900; }
.doc .meta { color: var(--faint); margin-top: 12px; font-weight: 600; }
.doc h2 { font-size: 26px; font-weight: 800; margin: 42px 0 12px; }
.doc h3 { font-size: 19px; font-weight: 800; margin: 24px 0 8px; }
.doc p, .doc li { color: #d9d4f5; font-size: 16.5px; }
.doc ul { padding-left: 22px; }
.doc a { color: #ff8fc6; }
.doc a.btn-primary { color: #fff; }
.doc a.btn-ghost { color: var(--text); }
.doc code { background: var(--surface2); padding: 2px 7px; border-radius: 6px; font-size: .92em; }
.card { border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); padding: 26px; }
.summary-card { margin-top: 30px; }
.summary-card ul { margin: 10px 0 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.contact .card h2 { margin-top: 0; font-size: 22px; }
.mail { font-family: var(--display); font-weight: 800; font-size: 21px; word-break: break-all; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; background: var(--grad); color: #fff; font-size: 15px; margin-top: 2px; }
pre.tpl { white-space: pre-wrap; background: rgba(0,0,0,.3); border: 1px solid var(--border); padding: 18px; border-radius: 14px; color: #d9d4f5; font-size: 14.5px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--faint); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--dim); font-weight: 600; }
footer a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .wall-stage { height: 380px; }
  .stats .wrap { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; background: rgba(10,8,32,.97); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .menu-btn { display: inline-grid; place-items: center; }
  .hero { padding-top: 44px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .game p { display: none; }
  section { padding: 50px 0; }
}
