/* ═══════════════════════════════════════════════════════════════
   IPA STORE — cinematic design system
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #05060a;
  --bg-2: #0a0c13;
  --surface: #0f121c;
  --surface-2: #161a27;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #eef1f7;
  --muted: #8a92a6;
  --dim: #5b6275;
  --cyan: #3df5ff;
  --magenta: #ff3daa;
  --violet: #8b5cff;
  --gold: #ffc85a;
  --ok: #3ddc97;
  --warn: #ffb547;
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 50%, var(--magenta) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2,.7,.1,1);
  --wrap: 1240px;
  --topbar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h3, .h3 { font-size: 1.05rem; }
code, pre { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: .88em; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--magenta); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ── Buttons, chips, tags ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary { background: var(--grad); color: #05060a; box-shadow: 0 8px 30px -8px rgba(61,245,255,.5), 0 8px 40px -12px rgba(255,61,170,.5); position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(61,245,255,.6), 0 14px 50px -12px rgba(255,61,170,.6); }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1.02rem; }
.ghero-cta .btn-ghost { height: 40px; padding: 0 20px; font-size: .86rem; }
.btn-block { width: 100%; margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 3px 9px; border-radius: 6px; background: rgba(61,245,255,.1); color: var(--cyan); }
.pill { font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: rgba(61,220,151,.15); color: var(--ok); font-weight: 600; }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--cyan); font-weight: 600; margin: 0 0 10px; }
.badge-warn { display: inline-block; padding: 6px 12px; border-radius: 8px; background: rgba(255,181,71,.12); color: var(--warn); font-size: .85rem; font-weight: 600; }

/* ── Top bar ────────────────────────────────────────────────── */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topbar); transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.topbar.solid, body:not(.is-home) .topbar { background: rgba(5,6,10,.72); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; }
.brand-text b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(61,245,255,.35)) drop-shadow(0 0 18px rgba(255,61,170,.2)); transition: transform .4s var(--ease), filter .4s; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.08); filter: drop-shadow(0 0 14px rgba(61,245,255,.6)) drop-shadow(0 0 24px rgba(255,61,170,.45)); }
.foot .brand-mark { width: 48px; height: 48px; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav > a, .nav-item > a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: .2s; }
.mainnav > a:hover, .nav-item > a:hover, .mainnav a.on { color: var(--text); background: rgba(255,255,255,.06); }
.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: -20px; display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  width: 640px; padding: 22px; border-radius: var(--radius); background: rgba(12,14,22,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px #000;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: .9rem; color: var(--muted); }
.mega a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.mega a span { width: 20px; text-align: center; color: var(--cyan); }
.mega-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--dim); margin: 0 0 8px 10px; }
.mega-genres { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.mega-genres .mega-h { grid-column: 1/-1; }
.mega-guides { grid-template-columns: 1fr 1fr; width: 620px; }
.mega-guides a { flex-direction: column; align-items: flex-start; gap: 2px; }
.mega-guides .tag { font-size: .6rem; padding: 1px 6px; }
.guide-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.guide-links a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.guide-links a:hover { border-color: rgba(61,245,255,.45); transform: translateY(-2px); }

.topsearch { position: relative; margin-left: auto; display: flex; align-items: center; width: 280px; height: 42px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .25s; }
.topsearch:focus-within { border-color: rgba(61,245,255,.5); background: rgba(255,255,255,.09); width: 340px; }
.topsearch svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.topsearch input, .bigsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: .92rem; padding-left: 10px; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: rgba(12,14,22,.98); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 6px; box-shadow: 0 20px 60px -10px #000; z-index: 5; }
.suggest a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; }
.suggest a:hover, .suggest a.hl { background: rgba(255,255,255,.07); }
.suggest img { width: 36px; height: 36px; border-radius: 9px; }
.suggest b { display: block; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.suggest small { color: var(--muted); font-size: .76rem; }
.suggest .all { justify-content: center; color: var(--cyan); font-size: .85rem; }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.06); border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.menu-btn i { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.menu-open .menu-btn i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ── Reveal on scroll ───────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ═══ HERO ═══════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--topbar) + 40px) 0 80px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg-img { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(28px) saturate(1.4) brightness(.55); opacity: 0; transform: scale(1.15); transition: opacity 1.6s var(--ease); }
.hero-bg-img.on { opacity: 1; animation: kenburns 14s linear forwards; }
@keyframes kenburns { from { transform: scale(1.15) translate(0,0); } to { transform: scale(1.3) translate(-2%, -2%); } }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 80% 60% at 70% 40%, transparent 0%, rgba(5,6,10,.5) 60%, var(--bg) 100%),
  linear-gradient(90deg, var(--bg) 0%, rgba(5,6,10,.7) 40%, transparent 70%),
  linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.letterbox { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 3; transition: height 1.4s var(--ease); }
.letterbox.top { top: 0; } .letterbox.bottom { bottom: 0; }
.intro .letterbox { height: 50vh; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); margin: 0 0 24px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero-title { font-size: clamp(2rem, 4.6vw, 4.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line.grad { font-size: .75em; padding-bottom: .08em; }
.hero-sub { font-size: 1.12rem; color: #b9c0d0; max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-social { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.hero-social span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.hero-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line-2); backdrop-filter: blur(12px); transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.hero-social svg { width: 19px; height: 19px; fill: currentColor; }
.hero-social a:hover, .hero-social a:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,.12); border-color: rgba(61,245,255,.5); box-shadow: 0 8px 24px -8px rgba(61,245,255,.55), 0 8px 30px -12px rgba(255,61,170,.55); }
@keyframes nsIn { from { opacity: 0; transform: translateX(-16px); } }

.hero-stage { position: relative; height: min(620px, 70vh); perspective: 1400px; }
.phones { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.phones.on { opacity: 1; }
/* iPhone frame image on top; the screenshot sits in its screen cut-out (insets and radii measured from the PNG) */
.phone { position: absolute; top: 50%; left: 50%; margin: 0; width: 42%; aspect-ratio: 333/679; border-radius: 18.6% / 9.1%;
  box-shadow: 0 40px 80px -20px #000, 0 0 60px -20px var(--cyan);
  transition: transform 1.2s var(--ease); }
.phone img { position: absolute; top: 2.21%; left: 5.41%; width: 89.48%; height: 95.43%; object-fit: cover; border-radius: 14.8% / 7.1%; background: #111; }
.phone::after { content: ''; position: absolute; inset: 0; background: url('../img/iphone-frame.png') center / 100% 100% no-repeat; pointer-events: none; }
.phone.p0 { transform: translate(-50%,-50%) translateZ(80px); z-index: 3; }
.phone.p1 { transform: translate(-118%,-46%) rotateY(18deg) rotateZ(-6deg) scale(.86); z-index: 2; filter: brightness(.7); }
.phone.p2 { transform: translate(18%,-54%) rotateY(-18deg) rotateZ(6deg) scale(.86); z-index: 1; filter: brightness(.7); }
.phones:not(.on) .phone.p0 { transform: translate(-50%,-40%) translateZ(0) scale(.9); }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--text); border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── Marquee ────────────────────────────────────────────────── */
.marquee {
  position: relative; overflow: hidden; padding: 22px 0;
  background: linear-gradient(90deg, rgba(61,245,255,.04), rgba(139,92,255,.06) 50%, rgba(255,61,170,.04)), var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  width: min(100% - 48px, var(--wrap) - 48px); margin-inline: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; padding-left: 36px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: 'Bebas Neue', var(--display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; padding-top: .08em;
  color: rgba(238,241,247,.92); text-shadow: 0 0 28px rgba(139,92,255,.25);
}
.marquee span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px rgba(238,241,247,.38); text-shadow: none; }
.marquee i {
  font-style: normal; font-size: 1rem; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,61,170,.6));
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ───────────────────────────────────────────────── */
.sec { padding: 64px 0; position: relative; }
.sec-mini { padding: 24px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin: 0; }
.see { color: var(--cyan); font-size: .9rem; font-weight: 600; white-space: nowrap; }
.see:hover { text-decoration: underline; }

/* Film strip */
.filmstrip { display: flex; gap: 18px; overflow-x: auto; padding: 8px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 24px; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.filmstrip::-webkit-scrollbar { display: none; }
.filmstrip.dragging { cursor: grabbing; scroll-snap-type: none; }
.filmstrip.autoscroll { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; scroll-snap-type: none;-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
/* Touch screens: a mask on a scrolling element repaints every frame and makes swiping laggy, so no fade there. */
.filmstrip.autoscroll { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px), (pointer: coarse) { .filmstrip.autoscroll { -webkit-mask-image: none; mask-image: none; } .frame { will-change: auto; } }
.frame { flex: none; width: 230px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.frame:hover { transform: translateY(-6px); border-color: rgba(61,245,255,.35); }
.frame-img { display: block; aspect-ratio: 9/14; background: var(--surface-2); overflow: hidden; position: relative; }
.frame-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, transparent 40%); }
.frame-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.frame:hover .frame-img img { transform: scale(1.06); }
.frame-info { display: flex; gap: 10px; align-items: center; padding: 0 14px 14px; margin-top: -26px; position: relative; }
.frame-info img { width: 44px; height: 44px; border-radius: 11px; border: 2px solid var(--surface); flex: none; }
.frame-info b { display: block; font-size: .88rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.frame-info small { color: var(--muted); font-size: .74rem; }

/* SEO copy (home) */
.seo-intro { max-width: 820px; margin-bottom: 32px; }
.seo-intro h2 { margin: 6px 0 14px; }
.seo-intro p:not(.kicker) { color: #c7cddb; font-size: 1.05rem; line-height: 1.7; margin: 0; }
.seo-intro strong { color: var(--text); }
.seo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.seo-card { grid-column: span 3; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, transform .3s var(--ease); }
.seo-card:nth-child(3), .seo-card:nth-child(4), .seo-card:nth-child(5) { grid-column: span 2; }
.seo-card:hover { border-color: rgba(139,92,255,.5); transform: translateY(-3px); }
.seo-card h3 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 8px; }
.seo-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.seo-card a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(61,245,255,.35); text-underline-offset: 3px; }
.seo-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--cyan); font-size: 1.15rem; }
.seo-safe { background: linear-gradient(160deg, rgba(61,245,255,.07), rgba(139,92,255,.07)), var(--surface); border-color: rgba(61,245,255,.25); }
.seo-faq { max-width: 860px; margin: 56px auto 0; }
.seo-faq .faq { margin-top: 0; display: grid; gap: 10px; }
.seo-faq .faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 20px; transition: border-color .3s; }
.seo-faq .faq details[open] { border-color: rgba(139,92,255,.5); }
.seo-faq .faq summary { padding-right: 32px; }
@media (max-width: 900px) { .seo-card, .seo-card:nth-child(n) { grid-column: span 6; } }
@media (min-width: 901px) and (max-width: 1100px) { .seo-card:nth-child(3), .seo-card:nth-child(4), .seo-card:nth-child(5) { grid-column: span 3; } .seo-card:nth-child(5) { grid-column: span 6; } }

/* How it works (home) */
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.how-grid > * { min-width: 0; }
.how-card { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, transform .3s var(--ease); }
.how-card:hover { border-color: rgba(139,92,255,.5); transform: translateY(-3px); }
.how-no { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--grad); color: #05060a; font-family: var(--display); font-weight: 700; }
.how-card h3 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 6px; }
.how-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.how-card p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) { .how-grid { grid-template-columns: 1fr; } }

/* Why use us (home) */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why-grid > * { min-width: 0; }
.why-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, transform .3s var(--ease); }
.why-card:hover { border-color: rgba(139,92,255,.5); transform: translateY(-3px); }
.why-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--cyan); font-size: 1.15rem; }
.why-card h3 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 6px; }
.why-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.why-card p a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }

/* Genre cards (home) */
.genre-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.genre-cards > * { min-width: 0; }
.gnr { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s; }
.gnr:hover { transform: translateY(-3px); border-color: rgba(139,92,255,.5); background: var(--surface-2); box-shadow: 0 14px 30px -14px rgba(139,92,255,.5); }
.gnr-thumb { position: relative; flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.gnr-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2); transition: transform .6s var(--ease); }
.gnr:hover .gnr-thumb img { transform: scale(1.12); }
.gnr-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(5,6,10,.55); }
.gnr-thumb em { position: relative; z-index: 1; font-style: normal; font-size: 1.35rem; line-height: 1; color: var(--cyan); }
.gnr-txt { flex: 1; min-width: 0; }
.gnr-txt b { display: block; font-family: var(--display); font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnr-txt small { color: var(--muted); font-size: .82rem; }
.gnr-go { color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.gnr:hover .gnr-go { transform: translateX(3px); color: var(--cyan); }
@media (max-width: 1000px) { .genre-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .genre-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gnr { gap: 10px; padding-right: 10px; } .gnr-go { display: none; } .gnr-thumb { width: 40px; height: 40px; } .gnr-thumb em { font-size: 1.1rem; } .gnr-txt b { font-size: .78rem; white-space: normal; overflow-wrap: break-word; } .gnr-txt small { font-size: .76rem; } }

/* Genre posters */
.posters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.posters-all { grid-template-columns: repeat(6, 1fr); }
.poster { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; transform-style: preserve-3d; }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); filter: saturate(1.2); }
.poster:hover img { transform: scale(1.08); }
.poster:hover { box-shadow: 0 30px 60px -20px rgba(139,92,255,.5); }
.poster-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,10,.95) 0%, rgba(5,6,10,.2) 60%, transparent); }
.poster-txt { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.poster-txt em { font-style: normal; display: block; font-size: 1.4rem; color: var(--cyan); }
.poster-txt b { display: block; font-family: var(--display); font-size: 1.25rem; }
.posters-all .poster-txt b { font-size: 1rem; }
.poster-txt small { color: var(--muted); }

/* Top 10 */
.top10-sec { background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(139,92,255,.12), transparent); }
.top10 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; counter-reset: none; }
.top10 > li, .ggrid > *, .shelves3 > *, .academy-grid > *, .posters > * { min-width: 0; }
.top10 a { display: flex; align-items: center; gap: 16px; padding: 12px 8px; border-bottom: 1px solid var(--line); transition: .3s; border-radius: 12px; }
.top10 a:hover { background: rgba(255,255,255,.03); }
.rank { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; width: 70px; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.35); transition: .3s; flex: none; }
.top10 a:hover .rank { -webkit-text-stroke-color: var(--cyan); text-shadow: 0 0 30px rgba(61,245,255,.4); }
.top10 img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.t10-info { flex: 1; min-width: 0; }
.t10-info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t10-info small { color: var(--muted); font-size: .82rem; }
.t10-rate { color: var(--gold); font-weight: 600; font-size: .9rem; }

/* Shelves & game cards */
.shelves3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.shelf .sec-head { margin-bottom: 8px; }
.shelf .sec-head h2 { font-size: 1.05rem; }
.ggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.gcard { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; border-bottom: 1px solid var(--line); transition: background .25s; }
.gcard:hover { background: rgba(255,255,255,.04); }
.gcard-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; background: var(--surface-2); box-shadow: 0 6px 20px -8px #000; }
.gcard-body { flex: 1; min-width: 0; }
.gcard-name { display: block; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-dev { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard-meta { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: .74rem; margin-top: 2px; }
.gcard-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.gcard-rate { color: var(--gold); font-size: .8rem; font-weight: 600; flex: none; }

/* Academy / guides */
.academy { overflow: hidden; }
.academy-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 50% 60% at 85% 20%, rgba(255,61,170,.14), transparent),
  radial-gradient(ellipse 50% 60% at 10% 90%, rgba(61,245,255,.1), transparent); }
.academy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.acard:hover { transform: translateY(-4px); border-color: rgba(255,61,170,.35); }
.acard-no { position: absolute; top: 14px; right: 20px; font-family: var(--display); font-size: 3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); }
.acard .tag { align-self: flex-start; }
.acard b { font-family: var(--display); font-size: 1.1rem; line-height: 1.25; padding-right: 50px; }
.acard > span:not(.tag):not(.acard-no) { color: var(--muted); font-size: .9rem; }
.acard em { font-style: normal; color: var(--magenta); font-weight: 600; font-size: .88rem; margin-top: auto; }
.guide-strip { padding: 48px 0; }
.gstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gdcard { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: .3s; }
.gdcard:hover { border-color: rgba(61,245,255,.35); transform: translateY(-3px); }
.gdcard .tag { align-self: flex-start; }
.gdcard b { font-size: .98rem; line-height: 1.3; }
.gdcard span:last-child { color: var(--muted); font-size: .84rem; line-height: 1.5; }

/* Devices */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.device { display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: .4s var(--ease); }
.device:hover { border-color: rgba(61,245,255,.3); transform: translateY(-4px); }
.device b { display: block; font-family: var(--display); font-size: 1.4rem; margin-bottom: 6px; }
.device small { color: var(--muted); font-size: .92rem; }
.device-img { flex: none; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)) drop-shadow(0 0 22px rgba(61,245,255,.25)); transition: transform .5s var(--ease); }
.device-img.iphone { width: 72px; }
.device-img.ipad { width: 150px; }
.device:hover .device-img { transform: translateY(-4px) rotate(-3deg); }

/* Prose */
.prose-wrap { max-width: 860px; margin: 0 auto; }
.prose { color: #c7cddb; font-size: 1.02rem; }
.prose h2 { color: var(--text); margin-top: 2em; }
.prose h3 { color: var(--text); margin-top: 1.6em; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(61,245,255,.35); text-underline-offset: 3px; }
.prose a.btn { color: #05060a; text-decoration: none; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: #e4c1ff; }
.prose pre { background: #080a11; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: #cfe8ff; }
.prose table, .vtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td, .vtable th, .vtable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .vtable th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 1em 0; }
.table-scroll table { margin: 0; }
.table-scroll tr:last-child td { border-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 0 0 0 48px !important; margin: 0 0 16px !important; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-size: .82rem; font-weight: 700; background: rgba(61,245,255,.1); color: var(--cyan); border: 1px solid rgba(61,245,255,.25); }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding: 12px 14px 12px 44px !important; margin: 0 0 8px !important; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.checks li::before { position: absolute; left: 14px; top: 12px; font-weight: 700; }
.checks .ok::before { content: '✓'; color: var(--ok); }
.checks .warn::before { content: '!'; color: var(--warn); }
.checks .info::before { content: 'i'; color: var(--cyan); font-style: italic; }
.note { margin: 1.5em 0; padding: 16px 18px 16px 20px; border-radius: 14px; border-left: 3px solid; font-size: .95rem; }
.note-tip { background: rgba(61,245,255,.06); border-color: var(--cyan); }
.note-warn { background: rgba(255,181,71,.07); border-color: var(--warn); }
.note-info { background: rgba(139,92,255,.08); border-color: var(--violet); }

/* FAQ */
.faq { margin-top: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; position: relative; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--cyan); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: #b9c0d0; }
.faq details > div a { color: var(--cyan); }

/* ═══ PAGE HEADERS ═══════════════════════════════════════════ */
.pagehead { position: relative; padding: calc(var(--topbar) + 48px) 0 48px; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.pagehead-bg { position: absolute; inset: -10%; z-index: -2; background-size: cover; background-position: center; filter: blur(40px) saturate(1.5) brightness(.4); transform: scale(1.1); }
.pagehead-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 50% 80% at 90% 0%, rgba(255,61,170,.16), transparent),
  radial-gradient(ellipse 50% 80% at 0% 100%, rgba(61,245,255,.1), transparent),
  linear-gradient(0deg, var(--bg), transparent 60%); }
.pagehead h1 { max-width: 900px; }
.lead { font-size: 1.1rem; color: #b9c0d0; max-width: 760px; margin: 0 0 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; font-size: .82rem; color: var(--dim); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--muted); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.pager a:hover { border-color: var(--line-2); }
.pager [aria-current] { background: var(--text); color: var(--bg); }
.pager .gap { background: none; border: 0; color: var(--dim); }
.empty-state { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.empty-state .big { font-size: 3rem; color: var(--cyan); margin: 0; }
.empty-state p { color: var(--muted); }

/* ═══ GAME PAGE ══════════════════════════════════════════════ */
.ghero { position: relative; padding: calc(var(--topbar) + 32px) 0 56px; overflow: hidden; isolation: isolate; }
.ghero-bg { position: absolute; inset: -10%; z-index: -2; background-size: cover; background-position: center; filter: blur(36px) saturate(1.5) brightness(.5); transform: scale(1.1); animation: kenburns 30s linear infinite alternate; }
.ghero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(5,6,10,.4) 60%, rgba(5,6,10,.6) 100%); }
.ghero-in { display: flex; gap: 40px; align-items: flex-start; }
.ghero-icon { width: 180px; height: 180px; border-radius: 40px; flex: none; box-shadow: 0 30px 60px -15px #000, 0 0 0 1px rgba(255,255,255,.1); }
.ghero-copy { flex: 1; min-width: 0; }
.ghero-copy .kicker a:hover { text-decoration: underline; }
.ghero h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); margin-bottom: 6px; }
.ghero-dev { color: var(--muted); margin: 0 0 22px; }
.ghero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 0; padding: 0; margin: 0 0 28px; }
.ghero-stats li { padding: 0 24px; border-left: 1px solid var(--line-2); }
.ghero-stats li:first-child { padding-left: 0; border: 0; }
.ghero-stats b { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.1rem; }
.ghero-stats small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.ghero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ghero-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.ghero-note a { color: var(--cyan); }
.stars { --p: 0%; display: inline-block; font-size: .8rem; letter-spacing: 1px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(255,255,255,.2) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: '★★★★★'; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 24px; }
.gsec { padding: 36px 0; border-bottom: 1px solid var(--line); }
.gsec h2 { font-size: 1.35rem; }
.gsec .prose h3, .gsec > h3 { font-size: 1rem; color: var(--text); margin-top: 1.4em; }
.gsec .prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.gsec .prose h4 { font-size: .95rem; color: var(--text); margin-top: 1.2em; }
.gsec .prose > :first-child { margin-top: 0; }
.gsec > p, .gsec > ol, .gsec > ul { color: #c7cddb; }
.gsec a { color: var(--cyan); }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
/* Fixed row height, width follows each image, so portrait and landscape shots can mix */
.shots a { flex: none; scroll-snap-align: start; height: 420px; min-width: 120px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shots img { display: block; width: auto; height: 100%; max-width: none; transition: transform .6s var(--ease); }
.shots a:hover img { transform: scale(1.04); }
.shots-frame { position: relative; }
.shots-nav { position: absolute; top: calc(50% - 5px); z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(12,14,22,.82); color: var(--text); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -8px #000; transform: translateY(-50%); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.shots-nav[hidden] { display: none; }
.shots-nav.prev { left: 10px; }
.shots-nav.next { right: 10px; }
.shots-nav:hover { background: rgba(22,26,40,.95); border-color: rgba(61,245,255,.45); transform: translateY(-50%) scale(1.08); }
.shots-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.clamp { max-height: 260px; overflow: hidden; position: relative; transition: max-height .6s var(--ease); }
.clamp.clamped::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(0deg, var(--bg), transparent); }
.clamp.open { max-height: none; }
.more { margin-top: 10px; background: none; border: 0; color: var(--cyan); font-weight: 600; padding: 0; }
.vtable tr.current td { background: rgba(61,245,255,.04); }

.game-side { position: relative; }
.infocard { position: relative; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); margin-top: 36px; }
.infocard dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 16px; font-size: .88rem; }
.infocard dt { color: var(--muted); }
.infocard dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.infocard dd a { color: var(--cyan); }
.toc { display: flex; flex-direction: column; margin-top: 20px; padding: 20px 24px; border-radius: 20px; border: 1px solid var(--line); }
.toc .h3 { margin-bottom: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); }
.toc a { padding: 6px 0 6px 12px; font-size: .88rem; color: var(--muted); border-left: 2px solid var(--line); transition: .2s; }
.toc a:hover, .toc a.on { color: var(--text); border-color: var(--cyan); }
.game-side .toc { position: sticky; top: calc(var(--topbar) + 20px); z-index: 1; background: var(--bg); }
.dlbar { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.92); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 40px 16px; animation: nsIn .3s; }
.lightbox img { max-height: 88vh; max-width: 92vw; width: auto; border-radius: 20px; box-shadow: 0 30px 80px #000; }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); font-size: 1.4rem; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 18px; right: auto; }

/* ═══ GUIDE PAGE ═════════════════════════════════════════════ */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.readbar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.guide-head .kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.guide-side .toc.sticky { position: sticky; top: calc(var(--topbar) + 24px); margin-top: 0; }
.guide-body > p:first-child { font-size: 1.12rem; color: var(--text); }
.guide-body h2 { padding-top: 12px; }
.guide-next { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

/* Search */
.bigsearch { position: relative; display: flex; gap: 10px; max-width: 640px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); margin: 16px 0; }
.bigsearch input { padding: 0; font-size: 1.05rem; }

/* 404 */
.notfound { padding: 120px 0 80px; text-align: center; }
.notfound .hero-cta { justify-content: center; }
.nf-search { margin: 20px auto 24px; text-align: left; }
.nf-h { margin: 56px 0 20px; font-size: 1.4rem; }
.notfound .ggrid { text-align: left; }
.nf-code { font-family: var(--display); font-size: clamp(6rem, 20vw, 14rem); font-weight: 800; line-height: 1; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }

/* ═══ FOOTER ═════════════════════════════════════════════════ */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; font-size: .9rem; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--muted); max-width: 300px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav a { color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot-h { font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 6px; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--dim); font-size: .8rem; }
.foot-bottom p { margin: 0; max-width: 680px; }
.foot-bottom nav { flex-direction: row; flex-wrap: wrap; gap: 16px; }

/* ═══ RESPONSIVE ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ggrid { grid-template-columns: repeat(2, 1fr); }
  .posters-all { grid-template-columns: repeat(4, 1fr); }
  .shelves3 { grid-template-columns: 1fr 1fr; }
  .shelves3 .shelf:last-child { display: none; }
  .topsearch { width: 220px; }
  .topsearch:focus-within { width: 260px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-side { display: none; }
}
@media (max-width: 900px) {
  :root { --topbar: 60px; }
  .topbar-in { gap: 12px; }
  .brand-mark { flex: none; }
  .menu-btn { display: flex; flex: none; margin-left: 0; }
  .topsearch { margin-left: auto; width: auto; flex: 1; min-width: 0; max-width: 300px; }
  .topsearch:focus-within { width: auto; }
  .mainnav { position: fixed; inset: var(--topbar) 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 20px 40px; background: rgba(5,6,10,.98); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s var(--ease); }
  .menu-open .mainnav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .mainnav > a, .nav-item > a { font-size: 1.1rem; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .mega { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; display: grid; grid-template-columns: 1fr 1fr; padding: 8px 0 16px; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
  .mega-col:first-child { display: none; }
  .mega-genres { grid-column: 1/-1; }
  .mega-guides { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--topbar) + 32px); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-stage { height: 380px; margin-top: 40px; }
  .phone { width: auto; height: 86%; }
  .top10 { grid-template-columns: 1fr; }
  .posters { grid-template-columns: repeat(2, 1fr); }
  .posters-all { grid-template-columns: repeat(3, 1fr); }
  .academy-grid { grid-template-columns: 1fr 1fr; }
  .devices { grid-template-columns: 1fr; }
  .game-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .game-side { order: -1; }
  .infocard { position: static; }
  .game-side .toc { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; }
  .dlbar { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 10px 10px 10px 12px; border-radius: 20px;
    background: rgba(15,18,28,.9); backdrop-filter: blur(18px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px #000;
    transform: translateY(140%); transition: transform .4s var(--ease); }
  .dlbar.show { transform: none; }
  .dlbar img { width: 40px; height: 40px; border-radius: 10px; }
  .dlbar span { flex: 1; min-width: 0; }
  .dlbar b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dlbar small { color: var(--muted); font-size: .76rem; }
  .dlbar .btn { height: 40px; padding: 0 20px; }
  .is-game .foot { padding-bottom: 100px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand-text { display: none; }
  .ggrid, .shelves3, .academy-grid { grid-template-columns: 1fr; }
  .shelves3 .shelf:last-child { display: block; }
  .posters-all { grid-template-columns: repeat(2, 1fr); }
  .hero-stage { display: none; }
  .hero-sub { font-size: 1rem; }
  .sec { padding: 44px 0; }
  .sec-head { flex-wrap: wrap; align-items: flex-start; }
  .filmstrip { padding-inline: 16px; }
  .frame { width: 180px; }
  .rank { font-size: 2.6rem; width: 48px; }
  .ghero-in { flex-direction: column; gap: 20px; }
  .ghero-icon { width: 110px; height: 110px; border-radius: 26px; }
  .ghero-stats { gap: 14px 0; }
  .ghero-stats li { padding: 0 14px; }
  .ghero-cta .btn { flex: 1; }
  .shots a { height: 320px; }
  .device { flex-direction: column; align-items: flex-start; padding: 24px; }
  .foot-top { grid-template-columns: 1fr; }
  .bigsearch { border-radius: 20px; flex-wrap: wrap; padding: 12px; }
  .bigsearch .btn { width: 100%; }
}

/* Reduced motion: keep fades and the slideshow crossfade, drop anything that
   moves, zooms, loops or slides. */
@media (prefers-reduced-motion: reduce) {
  .grain { display: none; }
  .hero-bg-img.on, .ghero-bg, .scroll-cue span, .marquee-track, .orbit,
  .app-shot, .app-logo-float, .app-final img, .gate-phone { animation: none; }
  .js .reveal { transform: none; filter: none; transition: opacity .8s ease; }
  .phone { transition: none; }
  .phones:not(.on) .phone.p0 { transform: translate(-50%,-50%) translateZ(80px); }
}

/* ═══ DOWNLOAD PAGE ══════════════════════════════════════════ */
.dlhero { position: relative; padding: calc(var(--topbar) + 32px) 0 64px; overflow: hidden; isolation: isolate; text-align: center; }
.dlhero .crumbs ol { justify-content: center; }
.dlhero-in { display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto; }
.dlhero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 0 0 8px; }
.dl-sub { color: var(--muted); margin: 0 0 28px; font-size: 1.02rem; }
.dl-ring { position: relative; width: 200px; height: 200px; margin: 8px 0 28px; display: grid; place-items: center; }
.dl-ring::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,255,.45), transparent 70%); filter: blur(24px); animation: pulse 3s infinite; }
.dl-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dl-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; }
.dl-prog { fill: none; stroke: url(#dlg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(61,245,255,.6)); }
.dl-ring.done .dl-prog { stroke-dashoffset: 0; }
.dl-ring.idle .dl-prog { stroke-dasharray: 18 82; stroke-dashoffset: 0; animation: spin 2.4s linear infinite; transform-origin: 60px 60px; opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl-ring img { position: relative; width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 24px 60px -12px #000, 0 0 0 1px rgba(255,255,255,.1); transition: transform .6s var(--ease); }
.dl-ring.done img { transform: scale(1.04); }
.dl-action { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 96px; }
.dl-wait { margin: 0; color: var(--muted); font-size: 1rem; }
.dl-wait b { display: inline-block; min-width: 1.2em; font-family: var(--display); color: var(--cyan); }
.dl-btn { animation: nsIn .6s var(--ease); min-width: 280px; }
.dl-hint { margin: 0; color: var(--muted); font-size: .88rem; }
.dl-hint a { color: var(--cyan); }
.dl-get { margin: 0; font-size: 1.05rem; color: #c7cddb; }
.dl-get b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.dl-soon { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px; border-radius: 999px; background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.3); color: var(--warn); font-weight: 600; }
.dl-soon .dot { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.dl-cta { justify-content: center; margin-top: 8px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }
.dl-grid > * { min-width: 0; }
.dl-card { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.dl-card .h3 { font-size: 1.1rem; margin-bottom: 18px; }
.dl-card a:not(.btn) { color: var(--cyan); }
.dl-info { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 0; font-size: .92rem; }
.dl-info dt { color: var(--muted); }
.dl-info dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }
.dl-info code, .dl-verify code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .82rem; color: #e4c1ff; }
.sha { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 14px; border-radius: 14px; background: #080a11; border: 1px solid var(--line); }
.sha span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--ok); }
.sha code { font-size: .76rem; color: #cfe8ff; word-break: break-all; line-height: 1.5; }
.copy { border: 1px solid var(--line-2); background: rgba(255,255,255,.06); border-radius: 10px; padding: 6px 12px; font-size: .8rem; font-weight: 600; }
.copy.ok { color: var(--ok); border-color: var(--ok); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.methods a { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text) !important; transition: .25s; }
.methods a:hover { border-color: rgba(61,245,255,.4); transform: translateY(-2px); }
.methods small { color: var(--muted); font-size: .76rem; }
.dl-verify { margin-top: 20px; }
.dl-verify th { width: 110px; }
@media (max-width: 900px) {
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dl-ring { width: 170px; height: 170px; }
  .dl-ring img { width: 124px; height: 124px; border-radius: 28px; }
  .dl-btn { min-width: 0; width: 100%; }
  .dl-action { width: 100%; }
  .dl-card { padding: 20px; }
  .methods { grid-template-columns: 1fr; }
  .sha { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dl-ring.idle .dl-prog { animation: none; } }

/* ═══ IPASTORE APP PAGE ══════════════════════════════════════ */

.apphero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--topbar) + 40px) 0 72px; overflow: hidden; isolation: isolate; }
.apphero-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 45% 55% at 72% 45%, rgba(139,92,255,.28), transparent 70%),
  radial-gradient(ellipse 35% 45% at 88% 20%, rgba(255,61,170,.18), transparent 70%),
  radial-gradient(ellipse 40% 50% at 10% 90%, rgba(61,245,255,.12), transparent 70%); }
.apphero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; width: 100%; }
.apphero .crumbs ol { margin-bottom: 28px; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 32px; }
.app-hint { flex-basis: 100%; margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.app-hint strong { color: var(--text); }
.app-chips { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; }
.app-chips li { padding: 0 22px; border-left: 1px solid var(--line-2); }
.app-chips li:first-child { padding-left: 0; border: 0; }
.app-chips b { display: block; font-family: var(--display); font-size: 1.05rem; }
.app-chips small { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }

.apphero-stage { position: relative; height: min(640px, 76vh); display: grid; place-items: center; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); animation: spin 40s linear infinite; }
.orbit::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit.o1 { width: 88%; aspect-ratio: 1; }
.orbit.o2 { width: 66%; aspect-ratio: 1; animation-duration: 28s; animation-direction: reverse; }
.orbit.o2::after { background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }
.orbit.o3 { width: 110%; aspect-ratio: 1; animation-duration: 60s; border-style: dashed; opacity: .6; }
.app-shot { position: relative; z-index: 1; width: auto; height: min(600px, 72vh); filter: drop-shadow(0 40px 60px rgba(0,0,0,.65)) drop-shadow(0 0 50px rgba(139,92,255,.45)); animation: shotFloat 7s ease-in-out infinite; }
@keyframes shotFloat { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.app-logo-float { position: absolute; z-index: 2; right: 2%; bottom: 8%; width: min(200px, 38%); height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(139,92,255,.55)); animation: logoFloat 6s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-18px) rotate(-4deg); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: 22px; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: rgba(61,245,255,.3); }
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; font-size: 1.3rem; color: var(--cyan); background: rgba(61,245,255,.08); border: 1px solid rgba(61,245,255,.2); }
.feature b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

.app-install { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.app-install > * { min-width: 0; }
.app-install .steps { margin: 24px 0; color: #c7cddb; }
.app-install a { color: var(--cyan); }
.app-install code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: #e4c1ff; font-size: .85em; }
.app-install .btn-block { margin-top: 20px; }

.app-final { text-align: center; padding: 80px 0 40px; background: radial-gradient(ellipse 40% 60% at 50% 60%, rgba(139,92,255,.18), transparent); }
.app-final img { margin: 0 auto 20px; filter: drop-shadow(0 0 24px rgba(61,245,255,.5)); animation: logoFloat 6s ease-in-out infinite; }
.app-final h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 24px; }

@media (max-width: 900px) {
  .apphero { min-height: auto; }
  .apphero-in, .app-install { grid-template-columns: 1fr; }
  .apphero-stage { height: 460px; order: 2; }
  .app-shot { height: 430px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .apphero-stage { height: 400px; }
  .app-shot { height: 370px; }
  .app-cta .btn { width: 100%; }
  .app-chips { gap: 12px 0; }
  .app-chips li { padding: 0 14px; }
}

/* ═══ OPEN ON IPHONE (device gate) ═══════════════════════════ */
.gate { position: relative; min-height: 100svh; padding: calc(var(--topbar) + 32px) 0 64px; overflow: hidden; isolation: isolate; }
.gate-in { max-width: 760px; }
.gate-card { padding: 48px; border-radius: 32px; text-align: center; background: linear-gradient(160deg, rgba(22,26,39,.8), rgba(10,12,19,.85));
  border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: 0 50px 100px -40px #000, 0 0 90px -40px rgba(139,92,255,.7); }
.gate-copy h1 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin-bottom: 14px; }
.gate-copy .lead { margin: 0 auto 28px; max-width: 540px; }
.gate-copy .lead strong { color: var(--text); }
.gate-copy .steps { display: inline-block; margin: 0 0 32px; text-align: left; color: #c7cddb; font-size: .98rem; }
.gate-copy .steps li:last-child { margin-bottom: 0 !important; }
/* Steps: number badge in its own column, first line centred on the badge, note underneath. */
.gate-steps { max-width: 480px; }
.gate-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; align-items: start;
  padding: 0 !important; margin: 0 0 22px !important; min-height: 0; line-height: 1.5; }
.gate-steps li::before { position: static; grid-row: 1 / span 2; width: 34px; height: 34px; }
.gate-steps .step-head { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 34px; }
.gate-steps small { grid-column: 2; display: block; margin-top: 6px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.gate-steps small b { color: #dfe4ee; font-weight: 600; }
.gate-search { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 16px 0 12px; border-radius: 999px;
  font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap;
  background: linear-gradient(#0c0e17, #0c0e17) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: 0 0 22px -8px rgba(61,245,255,.6); }
.gate-search svg { width: 15px; height: 15px; fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; }
.gate-art { position: relative; width: 280px; height: 210px; margin: 0 auto 26px; }
.gate-art::before { content: ""; position: absolute; inset: 20% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,255,.45), transparent 70%); filter: blur(28px); }
.gate-tablet, .gate-phone { position: absolute; height: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); }
.gate-tablet { left: 0; top: 18px; width: 220px; transform: rotate(-7deg); opacity: .85; }
.gate-phone { right: 6px; top: 0; width: 100px; z-index: 1; animation: logoFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.65)) drop-shadow(0 0 26px rgba(61,245,255,.35)); }
.gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .gate-card { padding: 32px 20px; border-radius: 24px; }
  .gate-art { transform: scale(.85); margin-bottom: 14px; }
  .gate-actions .btn { flex: 1; }
}

/* ═══ MOBILE POLISH ══════════════════════════════════════════
   Kept last so it wins over the page-specific blocks above. */
.mainnav > .menu-cta { display: none; }
.topsearch input { align-self: stretch; }
.see { padding: 10px 0; margin: -10px 0; }

@media (max-width: 900px) {
  /* Mobile menu: Browse + Genres, roomy tap targets, Download CTA */
  .mega { grid-template-columns: 1fr; gap: 12px; }
  .mega-col:first-child { display: block; }
  .mega a { min-height: 44px; }
  .mainnav > a.menu-cta, .mainnav > a.menu-cta:hover { display: flex; flex: none; height: 52px; margin-top: 24px; padding: 0 24px; border: 0; border-radius: 999px; font-size: 1rem; color: #05060a; background: var(--grad); }

  /* Heroes: one centered column */
  .hero-copy, .apphero-copy, .ghero-copy, .pagehead .wrap { text-align: center; }
  .crumbs ol, .hero-cta, .hero-social, .app-cta, .ghero-cta, .pagehead .chips, .guide-head .kicker { justify-content: center; }
  .guide-head .kicker { flex-wrap: wrap; }
  .hero-sub, .pagehead h1, .lead, .bigsearch { margin-inline: auto; }
  .ghero-in { flex-direction: column; align-items: center; gap: 20px; }
  .ghero-copy { width: 100%; }

  /* Stat rows as tiles, so wrapped rows never start with a divider */
  .ghero-stats, .app-chips { display: grid; gap: 10px; max-width: 560px; margin-inline: auto; }
  .ghero-stats { display: flex; flex-wrap: wrap; justify-content: center; }
  .ghero-stats li { flex: 0 1 calc((100% - 20px) / 3); min-width: 0; }
  .app-chips { grid-template-columns: repeat(4, 1fr); }
  .ghero-stats li, .ghero-stats li:first-child, .app-chips li, .app-chips li:first-child {
    display: flex; flex-direction: column; justify-content: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
  .ghero-stats b { justify-content: center; flex-wrap: wrap; gap: 2px 6px; white-space: nowrap; }

  /* Game page: content first, specs card after */
  .game-side { order: 0; }
}

@media (max-width: 640px) {
  .sec { padding: 40px 0; }
  .pagehead { padding: calc(var(--topbar) + 28px) 0 36px; }
  .js .reveal { filter: none; }
  .tag { font-size: .72rem; }
  .chip { flex: none; min-height: 40px; }

  /* Home hero */
  .hero { padding-bottom: 40px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn, .app-cta .btn, .ghero-cta .btn { width: 100%; max-width: 360px; flex: none; }
  .ghero-cta { flex-direction: column; align-items: center; }
  /* Phone order: App Store, IPA Game Store, How to install (one under the other, same width) */
  .ghero-cta .btn { order: 3; }
  .ghero-cta .btn-store { order: 1; }
  .ghero-cta .btn-get { order: 2; max-width: 300px; }
  .ghero-cta .btn-ghost { max-width: 240px; }
  .scroll-cue { display: none; }
  .hero-in { gap: 0; }
  .hero-stage { display: block; height: 280px; margin-top: 0; }
  .app-chips { grid-template-columns: 1fr 1fr; }
  .ghero-stats b { font-size: .95rem; }
  .orbit.o3 { max-width: 100%; }

  /* Film strip, posters, top 10 */
  .frame-info > span { min-width: 0; }
  .frame-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .poster-txt { left: 14px; right: 14px; bottom: 12px; }
  .poster-txt b { font-size: 1rem; hyphens: auto; overflow-wrap: anywhere; }
  .top10 a { gap: 12px; padding: 10px 4px; }
  .rank { font-size: 2rem; width: 32px; }
  .top10 img { width: 52px; height: 52px; border-radius: 13px; }
  .t10-info small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Shelves: 4 games each, the "See all" link covers the rest */
  .shelf > .gcard:nth-of-type(n+5) { display: none; }

  /* Home guides: swipeable row instead of a 6-card stack */
  .is-home .academy-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .is-home .academy-grid::-webkit-scrollbar { display: none; }
  .is-home .academy-grid > * { flex: 0 0 82%; scroll-snap-align: center; }

  /* Devices: compact rows */
  .device { flex-direction: row; align-items: center; gap: 20px; padding: 20px; }
  .device b { font-size: 1.15rem; }
  .device-img.iphone { width: 46px; }
  .device-img.ipad { width: 92px; }

  /* Category sort chips: one swipeable row */
  .toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .toolbar .chips::-webkit-scrollbar { display: none; }

  /* Footer: brand on top, link groups in two columns */
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand { grid-column: 1/-1; }
  .foot nav { gap: 2px; }
  .foot nav a { padding: 6px 0; }
  .foot-bottom { text-align: center; align-items: center; }
  .foot-bottom nav { justify-content: center; gap: 0 18px; }
}

/* ── Cookie consent ─────────────────────────────── */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: rgba(12,14,22,.97); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: 0 20px 60px -10px #000; backdrop-filter: blur(12px); font-size: .85rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--muted); }
.consent a { color: var(--cyan); }
.consent-btns { display: flex; gap: 8px; flex: none; }
.consent .btn { padding: 9px 16px; font-size: .82rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } .consent-btns .btn { flex: 1; } }

/* Native ad slot: keep it compact and centered */
#container-911b8b732262ab1a6da784c794f8780e { max-width: 560px; margin: 0 auto; overflow: hidden; }
/* Mobile: show all 4 ad cards in one row */
@media (max-width: 640px) {
  #container-911b8b732262ab1a6da784c794f8780e [class$="__stand"] { flex-wrap: nowrap !important; gap: 6px; }
  #container-911b8b732262ab1a6da784c794f8780e [class$="__bn-container"] { flex: 1 1 0 !important; width: auto !important; min-width: 0; padding: 0 !important; }
  #container-911b8b732262ab1a6da784c794f8780e [class$="__title"] { font-size: 10px !important; line-height: 1.25 !important; }
}

/* Glossy blue dot trailing the mouse cursor */
.cursor-dot{position:fixed;top:0;left:0;width:12px;height:12px;border-radius:50%;pointer-events:none;z-index:9999;opacity:0;transition:opacity .25s;background:#1e7bff;will-change:transform}
.cursor-dot.is-on{opacity:1}

/* ── Content update enhancements ─────────────────── */
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.hero-stats b { color: var(--text); font-weight: 600; }
.hero-stats .dot { color: var(--line-2); font-size: 1.1rem; user-select: none; }
@media (max-width: 820px) {
  .hero-stats { justify-content: center; font-size: .82rem; gap: 6px 10px; }
}

.sec-sub { color: var(--muted); font-size: .95rem; margin: 6px 0 0; line-height: 1.5; }

.apps-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  background: linear-gradient(135deg, rgba(255, 61, 170, 0.08), rgba(0, 240, 255, 0.05)), var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.apps-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent);
}
.apps-banner-copy { max-width: 680px; }
.apps-banner-copy h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 6px 0 8px; }
.apps-banner-copy p { color: var(--muted); margin: 0; line-height: 1.6; font-size: .96rem; }
.apps-banner .btn { flex-shrink: 0; }
@media (max-width: 768px) {
  .apps-banner { flex-direction: column; text-align: center; padding: 26px 20px; }
  .apps-banner-copy { margin-bottom: 8px; }
  .apps-banner .btn { width: 100%; max-width: 320px; }
}

