/* Verity Horror for Minecraft: found-footage / VHS theme.
   CRT overlays (scanlines, noise, tracking bar, static bursts), chroma-split footage, ticking timecode,
   flashlight that follows the pointer over dark footage, typewriter captions, mods as evidence tapes.
   Motion is transform/opacity (plus mask-position for the flashlight); all of it stops with prefers-reduced-motion. */
:root {
  --black: #000; --ink: #0a0a0a; --panel: #111; --panel-2: #181818; --edge: #2a2a2a; --edge-l: #3a3a3a;
  --phos: #d7ffb8; --amber: #ffb000; --red: #ff2a2a; --cyan: #4ff2ff; --prose: #e6e6e6; --muted: #8f8f8f;
  --mono: 'Share Tech Mono', monospace; --type: 'Special Elite', serif; --body: 'Inter', system-ui, sans-serif;
  --wrap: 1160px; --gutter: clamp(16px, 4vw, 40px); --fx: 50%; --fy: 50%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--prose); font-family: var(--body); font-size: 17px; line-height: 1.55; 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 { margin: 0; line-height: 1.05; }
h2 { font-family: var(--type); font-weight: 400; font-size: clamp(30px, 4.4vw, 54px); color: #fff; text-shadow: 2px 0 var(--red), -2px 0 var(--cyan), 0 6px 30px rgba(0,0,0,.8); }
h3 { font-size: 18px; color: #fff; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 34px; }
.red { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.no-js .reveal { opacity: 1 !important; transform: none !important; }
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.head { margin-bottom: 30px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--amber); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sub { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 12px; }
.sub b { color: var(--prose); }

/* ---------- CRT overlays ---------- */
.crt { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.crt > div { position: absolute; inset: 0; }
.scan { background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); opacity: .45; }
.noise { opacity: .045; mix-blend-mode: screen; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  animation: noise .5s steps(5) infinite; }
.tracking { height: 90px; inset: auto 0; top: -120px; background: linear-gradient(transparent, rgba(255,255,255,.08) 40%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.08) 60%, transparent); opacity: 0; }
.tracking.on { animation: track 1.1s linear 1; }
.static { opacity: 0; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); mix-blend-mode: screen; }
.static.on { animation: staticburst .16s steps(2) 1; }
.crt-edge { box-shadow: inset 0 0 90px rgba(0,0,0,.7); }
body.tracking-hit .footage .base, body.tracking-hit .mod-img img, body.tracking-hit .clip img { animation: jitter .3s steps(3) 1; }
body.tracking-hit .chroma.r { translate: 8px 0 !important; } body.tracking-hit .chroma.b { translate: -8px 0 !important; }

/* ---------- Buttons ---------- */
.store { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 10px; background: #fff; color: #000; padding: 10px 18px 10px 14px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s; white-space: nowrap; position: relative; overflow: hidden; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.6), 0 0 0 2px var(--amber); }
.store:active { transform: translateY(1px); }
.store-ico { width: 22px; height: 26px; }
.store > span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; font-size: 18px; }
.store > span small { font-size: 10px; font-weight: 500; opacity: .75; }
.store-lg { padding: 14px 26px 14px 20px; background: var(--red); color: #fff; box-shadow: 0 12px 40px rgba(255,42,42,.45); }
.store-lg::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%); transform: translateX(-70%); animation: glint 3.4s ease-in-out infinite; pointer-events: none; }
.store-lg:hover { box-shadow: 0 16px 50px rgba(255,42,42,.6), 0 0 0 2px #fff; }
.store-lg .store-ico { width: 26px; height: 30px; }
.store-lg > span { font-size: 21px; }
.store-sm { padding: 7px 12px 7px 10px; }
.store-sm .store-ico { width: 16px; height: 19px; }
.store-sm > span { font-size: 14px; }
.store-sm > span small { font-size: 8px; }
.ghost { font-family: var(--mono); font-size: 15px; letter-spacing: 1px; color: var(--phos); padding: 14px 4px; border-bottom: 1px dashed rgba(215,255,184,.4); transition: border-color .2s; animation: flicker 6s steps(10) infinite; }
.ghost:hover { border-color: var(--phos); }

/* ---------- Top bar: deck ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter); transition: background .3s, box-shadow .3s; }
.topbar.solid { background: rgba(0,0,0,.88); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 16px; letter-spacing: 2px; color: #fff; line-height: 1.1; }
.brand img { border-radius: 4px; filter: contrast(1.1); }
.brand small { display: block; font-family: var(--body); font-size: 11px; letter-spacing: 0; color: var(--muted); }
.deck { display: none; gap: 18px; margin-left: 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--phos); }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--red); }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: livepulse 1s steps(2) infinite; }
.topbar .store { margin-left: auto; }
@media (min-width: 900px) { .deck { display: flex; } }

/* ---------- Footage (hero + final) ---------- */
.footage { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.footage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.footage img.cabin { object-position: 50% 15%; }
.footage .base { filter: contrast(1.12) saturate(.75) brightness(.95); animation: kenburns 24s ease-in-out infinite alternate; }
.footage .chroma { mix-blend-mode: screen; opacity: .22; animation: kenburns 24s ease-in-out infinite alternate; transition: translate .2s; }
.footage .chroma.r { filter: url(#none) brightness(1) saturate(0); background: var(--red); mix-blend-mode: screen; translate: 3px 0; filter: sepia(1) saturate(8) hue-rotate(-50deg) brightness(.6); }
.footage .chroma.b { translate: -3px 0; filter: sepia(1) saturate(8) hue-rotate(170deg) brightness(.6); }
.dark { position: absolute; inset: 0; background: rgba(0,0,0,.86);
  -webkit-mask-image: radial-gradient(circle 320px at var(--fx) var(--fy), transparent 0, rgba(0,0,0,.4) 45%, #000 100%);
  mask-image: radial-gradient(circle 320px at var(--fx) var(--fy), transparent 0, rgba(0,0,0,.4) 45%, #000 100%); }
.dark.still { -webkit-mask-image: none; mask-image: none; background: rgba(0,0,0,.72); }
.osd { position: absolute; font-family: var(--mono); font-size: clamp(12px, 1.3vw, 16px); letter-spacing: 2px; color: var(--phos); text-shadow: 0 0 8px rgba(215,255,184,.6), 2px 0 rgba(255,0,0,.4), -2px 0 rgba(0,255,255,.4); padding: 14px 16px; }
.osd.tl { left: 0; top: 0; } .osd.tr { right: 0; top: 0; }
.hero .osd.tl, .hero .osd.tr { top: 64px; } .osd.bl { left: 0; bottom: 0; } .osd.br { right: 0; bottom: 0; }
.osd.red { color: var(--red); }
.eyes { position: absolute; display: flex; gap: 10px; opacity: 0; transition: opacity .6s; }
.eyes.open { opacity: 1; }
.eyes i { width: 8px; height: 6px; background: var(--amber); box-shadow: 0 0 10px var(--amber), 0 0 22px rgba(255,176,0,.6); animation: blink 4s steps(1) infinite; }
.e1 { left: 7%; top: 60%; } .e2 { left: 90%; top: 30%; transform: scale(.7); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
@media (hover: hover) { .hero, .hero a, .hero button { cursor: none; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-inner { max-width: 640px; margin-inline: auto; text-align: center; }
.hero-inner .cta-row, .hero-inner .proof { justify-content: center; }
.hero-inner .lead { margin-inline: auto; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.monitor { background: rgba(0,0,0,.72); border: 1px solid var(--edge-l); border-radius: 6px; padding: 14px; backdrop-filter: blur(6px); box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(215,255,184,.08); position: relative; overflow: hidden; }
.monitor::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); pointer-events: none; }
.mon-head { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--phos); padding-bottom: 10px; border-bottom: 1px dashed rgba(215,255,184,.25); margin-bottom: 8px; }
.mon-head b { font-weight: 400; color: var(--amber); }
.mon-cam { margin-left: auto; color: var(--muted); }
.popular { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.popular a { display: grid; grid-template-columns: 28px 64px 1fr auto; align-items: center; gap: 10px; padding: 6px; border-radius: 4px; transition: background .2s; }
.popular a:hover { background: rgba(255,176,0,.08); }
.popular em { font-family: var(--mono); font-style: normal; color: var(--muted); font-size: 14px; text-align: center; }
.popular li:first-child em { color: var(--amber); }
.popular img { width: 64px; height: 40px; object-fit: cover; border-radius: 3px; border: 1px solid var(--edge-l); filter: contrast(1.1) saturate(.85); }
.popular b { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popular span { display: block; font-family: var(--mono); font-size: 12px; color: var(--phos); letter-spacing: .5px; }
.popular i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; padding: 4px 7px; background: var(--phos); color: #000; }
.popular i.p { background: var(--amber); }
.mon-foot { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(215,255,184,.25); font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--amber); text-align: right; }
.mon-foot:hover { color: #fff; }
@media (max-width: 999px) { .monitor { max-width: 560px; margin-inline: auto; } }
.tag { font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--amber); margin-bottom: 18px; }
.h1 { font-family: var(--type); font-weight: 400; font-size: clamp(30px, 5.4vw, 66px); color: #fff; line-height: 1.1; text-shadow: 3px 0 var(--red), -3px 0 var(--cyan), 0 6px 30px rgba(0,0,0,.9); min-height: 2.2em; }
.type::after { content: "▌"; color: var(--phos); animation: caret 1s steps(2) infinite; margin-left: 2px; }
.appname { font-family: var(--mono); font-size: clamp(16px, 2vw, 22px); letter-spacing: 3px; text-transform: uppercase; color: var(--phos); margin-top: 14px; }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; clip-path: inset(0 0 100% 0); }
.glitch::before { color: var(--cyan); animation: glitch 4s steps(1) infinite; text-shadow: none; }
.glitch::after { color: var(--red); animation: glitch 4s steps(1) infinite reverse; text-shadow: none; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--prose); max-width: 560px; margin-top: 18px; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.lead b { color: #fff; }
.lead b.js-stat { font-family: var(--mono); font-size: 1.3em; color: var(--amber); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 26px; }
.proof { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); font-family: var(--mono); letter-spacing: 1px; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: "▸"; color: var(--amber); }
.proof b { color: #fff; font-size: 18px; }
.hint { margin-top: 26px; font-family: var(--type); font-size: 15px; color: var(--muted); }
.torchcur { position: fixed; left: 0; top: 0; width: 34px; height: 34px; translate: -50% -50%; pointer-events: none; z-index: 95; display: none; will-change: transform;
  background: url(images/cursor-smiley.png) center/contain no-repeat; border-radius: 50%;
  filter: drop-shadow(0 0 8px rgba(255,217,59,.85)) drop-shadow(0 0 20px rgba(255,217,59,.4)); animation: torchbob 1.6s ease-in-out infinite; }
@keyframes torchbob { 50% { scale: 1.06; } }
.hero:hover ~ .torchcur, body.torch .torchcur { display: block; }
@media (hover: none) { .hero { cursor: auto; } .dark { -webkit-mask-image: radial-gradient(circle 60vw at 70% 40%, transparent 0, rgba(0,0,0,.4) 45%, #000 100%); mask-image: radial-gradient(circle 60vw at 70% 40%, transparent 0, rgba(0,0,0,.4) 45%, #000 100%); } }

/* ---------- Tapes ---------- */
.tape-grid { display: grid; gap: 16px; }
.tape { display: grid; grid-template-columns: 1fr 150px; gap: 14px; background: #161616; border: 1px solid var(--edge-l); border-radius: 6px; padding: 14px; box-shadow: 0 2px 0 #000, 0 20px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .25s, box-shadow .25s; position: relative; }
.tape::before { content: ""; position: absolute; left: 14px; right: 14px; top: 6px; height: 3px; background: repeating-linear-gradient(90deg, #333 0 6px, #000 6px 12px); }
.tape:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 0 #000, 0 30px 50px rgba(0,0,0,.6), 0 0 0 1px var(--amber); }
.label { background: #f3eedd; color: #111; padding: 12px; border-radius: 3px; font-family: var(--type); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(0,0,0,.08) 22px 23px); }
.label span { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--red); }
.label b { display: block; font-size: 28px; margin: 4px 0 2px; letter-spacing: 2px; }
.label small { display: block; font-size: 13px; color: #333; line-height: 1.4; }
.window { position: relative; background: #000; border-radius: 4px; overflow: hidden; border: 1px solid #000; }
.window img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: contrast(1.1) saturate(.8); transition: filter .3s; }
.tape:hover .window img { filter: contrast(1.1) saturate(1); }
.reel { position: absolute; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; border: 5px solid rgba(255,255,255,.85); background: #111; animation: spin 2.4s linear infinite; }
.reel::before { content: ""; position: absolute; left: 50%; top: -2px; width: 2px; height: 20px; background: rgba(255,255,255,.85); translate: -50% 0; }
.reel.l { left: 10px; } .reel.r { right: 10px; animation-direction: reverse; }
.tape:hover .reel { animation-duration: .8s; }
@media (min-width: 760px) { .tape-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tape { grid-template-columns: 1fr; } .window { aspect-ratio: 4/3; } }

/* ---------- Footage strip ---------- */
.footage-sec { background: #050505; }
.strip-wrap { position: relative; }
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px var(--gutter) 20px; }
.strip::-webkit-scrollbar { display: none; }
.clip { position: relative; flex: 0 0 min(88%, 820px); scroll-snap-align: center; margin: 0; border-radius: 6px; overflow: hidden; background: #000; border: 1px solid var(--edge); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.clip img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: contrast(1.15) saturate(.7) brightness(.75); transition: filter .6s, transform 6s linear; }
.clip.on img { filter: contrast(1.15) saturate(.85) brightness(.95); transform: scale(1.06); }
.clip::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 2px, transparent 2px 4px), linear-gradient(to top, rgba(0,0,0,.9) 0, transparent 55%); pointer-events: none; }
.clip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 1; }
.clip figcaption b { display: block; font-family: var(--type); font-size: clamp(26px, 3.4vw, 44px); color: #fff; text-shadow: 2px 0 var(--red), -2px 0 var(--cyan); }
.clip .tw { display: block; font-family: var(--mono); font-size: clamp(13px, 1.3vw, 16px); color: var(--phos); margin-top: 8px; min-height: 2.4em; letter-spacing: .5px; }
.clip .store { margin-top: 14px; }
.strip-btn { position: absolute; top: 40%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; border: 1px solid var(--edge-l); font-size: 28px; line-height: 1; display: none; }
.strip-btn.prev { left: 10px; } .strip-btn.next { right: 10px; }
.strip-btn:hover { border-color: var(--amber); color: var(--amber); }
.strip-dots { display: flex; justify-content: center; gap: 8px; }
.strip-dots i { width: 28px; height: 4px; background: var(--edge-l); }
.strip-dots i.on { background: var(--red); box-shadow: 0 0 8px var(--red); }
@media (min-width: 900px) { .strip-btn { display: block; } .strip { padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); } }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; background: #000; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); overflow: hidden; }
.ticker-label { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: #000; background: var(--phos); padding: 12px 14px; flex: none; z-index: 1; }
.ticker-view { overflow: hidden; flex: 1; }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 22px; font-family: var(--mono); font-size: 15px; color: var(--prose); border-right: 1px solid var(--edge); letter-spacing: .5px; }
.ticker a span { color: var(--phos); font-size: 13px; }
.ticker a span::before { content: "⬇ "; }
.ticker a:hover b { color: var(--amber); }

/* ---------- Tabs + mods (evidence) ---------- */
.tabs-wrap { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; font-family: var(--mono); font-size: 13px; letter-spacing: 1px; padding: 10px 14px; background: var(--panel); color: var(--muted); border: 1px solid var(--edge); border-radius: 4px; transition: .2s; }
.tab:hover { color: #fff; border-color: var(--edge-l); }
.tab[aria-selected="true"] { background: var(--amber); color: #000; border-color: var(--amber); }
.tabs-arrow { flex: none; width: 36px; height: 36px; background: var(--panel); color: #fff; border: 1px solid var(--edge); border-radius: 4px; font-size: 22px; line-height: 1; }
.tabs-arrow:disabled { opacity: .3; cursor: default; }
.tabs-wrap.no-scroll .tabs-arrow { display: none; }
.mod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mod { display: block; min-width: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; animation: cardIn .5s both; animation-delay: var(--d, 0ms); }
.mod:hover { transform: translateY(-5px); border-color: var(--amber); box-shadow: 0 24px 50px rgba(0,0,0,.6); }
.mod-img { position: relative; aspect-ratio: 16/9; background: #000 url(images/logo.jpg) center/40% no-repeat; overflow: hidden; }
.mod-img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(.8); transition: transform .6s, filter .3s; }
.mod-img img.broken { opacity: 0; }
.mod:hover .mod-img img { transform: scale(1.08); filter: contrast(1.1) saturate(1); }
.mod-img::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 2px, transparent 2px 4px), linear-gradient(to top, rgba(0,0,0,.6), transparent 50%); pointer-events: none; }
.rank { position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 13px; padding: 4px 8px; background: rgba(0,0,0,.8); color: var(--phos); border: 1px solid rgba(215,255,184,.3); }
.rank.top { background: var(--amber); color: #000; border-color: var(--amber); }
.price { position: absolute; right: 10px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; padding: 4px 8px; color: #000; background: var(--phos); }
.price.prem { background: var(--amber); }
.mod-body { padding: 12px 14px 14px; }
.mod-cat { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.mod h3 { font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.mod-meta .dl { color: var(--phos); display: inline-flex; align-items: center; gap: 4px; }
.mod-meta .get { margin-left: auto; color: var(--amber); }
.mod-meta .get i { font-style: normal; display: inline-block; transition: transform .2s; }
.mod:hover .get i { transform: translateX(4px); }
@media (min-width: 700px) { .mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* ---------- Channels (categories) with flashlight ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat { position: relative; display: block; min-width: 0; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--edge); transition: transform .25s, border-color .25s; --fx: 50%; --fy: 50%; }
.cat:hover { transform: translateY(-4px); border-color: var(--amber); }
.cat-thumb { position: absolute; inset: 0; background: #000; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.25) saturate(.6) contrast(1.1); transition: filter .5s, transform .7s; }
.cat-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 150px at var(--fx) var(--fy), rgba(255,220,160,.32), transparent 70%); opacity: 0; transition: opacity .3s; mix-blend-mode: screen; }
.cat:hover .cat-thumb::after { opacity: 1; }
.cat:hover .cat-thumb img { filter: brightness(.7) saturate(.9) contrast(1.1); transform: scale(1.06); }
.cat-thumb img.broken { opacity: 0; }
.cat-txt { position: absolute; inset: auto 0 0; padding: 14px; background: linear-gradient(to top, rgba(0,0,0,.95), transparent); }
.cat-ico { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(0,0,0,.7); border: 1px solid rgba(215,255,184,.3); color: var(--phos); }
.cat-ico svg { width: 18px; height: 18px; }
.cat h3 { font-family: var(--type); font-weight: 400; font-size: 22px; }
.cat p { color: var(--muted); font-size: 12px; margin-top: 4px; font-family: var(--mono); }
.cat-tag { position: absolute; left: 10px; top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; padding: 4px 8px; background: var(--red); color: #fff; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* ---------- Install (sticky phone) ---------- */
.sticky-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.steps { display: grid; gap: 14px; min-width: 0; }
.stp { display: flex; gap: 14px; text-align: left; background: var(--panel); color: inherit; border: 1px solid var(--edge); border-radius: 6px; padding: 16px; opacity: .5; transition: opacity .3s, transform .3s, border-color .3s; position: relative; overflow: hidden; }
.stp.on { opacity: 1; transform: translateX(6px); border-color: var(--amber); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.step-n { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-family: var(--mono); font-size: 16px; background: var(--panel-2); color: var(--amber); border: 1px solid var(--edge-l); }
.stp.on .step-n { background: var(--amber); color: #000; }
.stp-txt b { display: block; font-weight: 700; font-size: 16px; color: #fff; }
.stp-txt small { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.stp-bar { display: none; }
.phone-stick { position: sticky; top: 96px; display: flex; justify-content: center; }
.phone { position: relative; width: min(100%, 290px); aspect-ratio: 9/18.5; background: #000; border: 3px solid #2a2a2a; border-radius: 32px; box-shadow: 0 0 0 2px #000, 0 24px 50px rgba(0,0,0,.7); overflow: hidden; }
.notch { position: absolute; left: 50%; top: 10px; width: 90px; height: 24px; background: #000; border-radius: 14px; transform: translateX(-50%); z-index: 3; }
.phone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0e0e12; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s; }
.phone > img.on { opacity: 1; transform: none; }
.stepnum { position: absolute; right: 12px; bottom: 12px; z-index: 3; font-family: var(--mono); font-size: 16px; padding: 8px 12px; background: var(--amber); color: #000; }
@media (min-width: 900px) { .sticky-grid { grid-template-columns: 1fr 360px; align-items: start; } .steps { gap: 20px; padding: 8vh 0; } .steps .stp { min-height: 120px; } }
@media (max-width: 899px) { .phone-stick { position: relative; top: 0; order: -1; } .steps { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 10px; } .steps::-webkit-scrollbar { display: none; } .stp { scroll-snap-align: center; opacity: 1; } .stp.on { transform: none; } }

/* ---------- Live ---------- */
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.live { background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; padding: 20px 14px; text-align: center; position: relative; overflow: hidden; }
.live::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px); pointer-events: none; }
.live b { display: block; font-family: var(--mono); font-size: clamp(36px, 4vw, 52px); color: var(--phos); line-height: 1; text-shadow: 0 0 18px rgba(215,255,184,.5); }
.live span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; font-family: var(--mono); letter-spacing: .5px; }
@media (min-width: 760px) { .live-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.two { display: grid; gap: 16px; margin-top: 16px; }
.panel { background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; padding: 20px; }
.panel h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--amber); margin-bottom: 14px; font-weight: 400; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 32px 1fr auto; gap: 6px 10px; align-items: center; font-weight: 600; font-size: 14px; }
.bars li > div { grid-column: 1 / -1; }
.flag { width: 32px; height: 32px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--edge-l); color: var(--phos); font-family: var(--mono); font-size: 12px; }
.flag svg { width: 16px; height: 16px; }
.bars .pct { font-family: var(--mono); font-size: 18px; color: var(--phos); }
.track { display: block; height: 8px; background: #000; border: 1px solid var(--edge); overflow: hidden; }
.fill { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--phos) 0 6px, #9ad17a 6px 8px); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
#bars .fill { background: repeating-linear-gradient(90deg, var(--amber) 0 6px, #cc8c00 6px 8px); }

/* ---------- FAQ ---------- */
.faq details { background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 700; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; font-size: 22px; color: var(--amber); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 18px 18px; color: var(--muted); font-size: 15px; }

/* ---------- Final ---------- */
.final { position: relative; padding: clamp(90px, 14vw, 160px) 0; text-align: center; overflow: hidden; isolation: isolate; }
.final h2 { font-size: clamp(30px, 5.4vw, 70px); }
.final .kicker { justify-content: center; }
.final .sub { margin: 18px auto 28px; font-family: var(--mono); font-size: 18px; color: var(--phos); letter-spacing: 1px; }
.final-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.qr { display: flex; align-items: center; gap: 12px; background: #fff; color: #000; padding: 8px 14px 8px 8px; text-align: left; font-size: 13px; line-height: 1.3; border-radius: 6px; }
.qr p b { font-weight: 800; }
.fine { margin-top: 20px; color: var(--muted); font-size: 13px; }

/* ---------- Footer + sticky ---------- */
.footer { padding: 36px 0 110px; background: #000; border-top: 1px solid var(--edge); }
.legal { font-size: 12px; color: var(--muted); max-width: 820px; line-height: 1.5; margin-bottom: 10px; font-family: var(--mono); }
.legal.links a { color: var(--prose); text-decoration: underline; text-underline-offset: 3px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(0,0,0,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--red); transform: translateY(110%); transition: transform .35s; }
.sticky-cta.show { transform: none; }
.sticky-cta > div { flex: 1; min-width: 0; line-height: 1.2; }
.sticky-cta b { display: block; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta span { font-size: 12px; color: var(--muted); }
@media (min-width: 900px) { .sticky-cta { display: none; } .footer { padding-bottom: 40px; } }

/* ---------- Reveal + particles ---------- */
.reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), filter .6s; transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.px { position: fixed; z-index: 60; width: 6px; height: 6px; pointer-events: none; animation: burst .75s ease-out forwards; }
body.shake { animation: shake .25s linear; }

/* ---------- Keyframes ---------- */
@keyframes noise { 0% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); } 40% { transform: translate(3%,-5%); } 60% { transform: translate(-2%,-2%); } 80% { transform: translate(4%,2%); } 100% { transform: translate(0,0); } }
@keyframes track { from { transform: translateY(0); opacity: .9; } to { transform: translateY(calc(100vh + 240px)); opacity: .6; } }
@keyframes staticburst { 0% { opacity: .45; } 50% { opacity: .25; } 100% { opacity: 0; } }
@keyframes jitter { 0% { transform: translate(0,0); } 33% { transform: translate(-6px, 2px) skewX(2deg); } 66% { transform: translate(5px, -2px) skewX(-2deg); } 100% { transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes flicker { 0%,100% { opacity: 1; } 8% { opacity: .85; } 9% { opacity: 1; } 42% { opacity: 1; } 43% { opacity: .55; } 44% { opacity: 1; } 71% { opacity: .9; } 72% { opacity: 1; } }
@keyframes glitch { 0%,89%,100% { clip-path: inset(0 0 100% 0); transform: none; } 90% { clip-path: inset(10% 0 60% 0); transform: translate(-4px, 0); } 92% { clip-path: inset(50% 0 20% 0); transform: translate(4px, 0); } 94% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 0); } 96% { clip-path: inset(0 0 100% 0); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 94%,98% { transform: scaleY(.1); } }
@keyframes livepulse { 50% { opacity: .2; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes glint { 0%, 55% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 3px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .noise, .static, .tracking { display: none; }
  .dark { -webkit-mask-image: none; mask-image: none; background: rgba(0,0,0,.6); }
}

/* ---------- Hero phone (recovered device) ---------- */
.hero-phone { position: relative; height: 600px; display: none; perspective: 1200px; }
.phone-tag { position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--phos); display: flex; align-items: center; gap: 8px; }
.hero-phone .phone { position: absolute; left: 50%; top: 32px; width: 272px; height: 560px; margin-left: -136px; transition: transform .25s ease-out; transform-style: preserve-3d; animation: floaty 7s ease-in-out infinite; box-shadow: 0 0 0 2px #000, 0 40px 70px rgba(0,0,0,.8), 0 0 60px rgba(215,255,184,.1); }
.phone-head { display: flex; align-items: center; gap: 8px; padding: 46px 14px 10px; font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: #fff; border-bottom: 1px solid #222; }
.phone-head img { border-radius: 6px; }
.pdot { width: 8px; height: 8px; background: var(--red); margin-left: auto; box-shadow: 0 0 8px var(--red); animation: livepulse 1s steps(2) infinite; display: inline-block; border-radius: 50%; }
.phone-feed { height: calc(100% - 86px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.feed { animation: feed 26s linear infinite; padding: 10px 12px; }
.feed .ah { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--amber); margin: 8px 0; }
.feed .ar { display: grid; grid-template-columns: 16px 48px 1fr auto; align-items: center; gap: 8px; padding: 6px; margin-bottom: 6px; background: var(--panel); border: 1px solid var(--edge); border-radius: 4px; }
.feed .ar em { font-family: var(--mono); font-style: normal; color: var(--muted); font-size: 13px; }
.feed .ar img { width: 48px; height: 32px; object-fit: cover; border-radius: 3px; filter: contrast(1.1) saturate(.85); }
.feed .ar b { display: block; font-size: 11px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 118px; }
.feed .ar span { font-size: 10px; color: var(--phos); font-family: var(--mono); }
.feed .ar i { font-style: normal; font-family: var(--mono); font-size: 9px; padding: 4px 6px; background: var(--phos); color: #000; }
.feed .ar i.p { background: var(--amber); }
.achips { display: flex; gap: 6px; flex-wrap: wrap; }
.achips span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 5px 8px; background: var(--panel-2); border: 1px solid var(--edge); color: var(--prose); font-family: var(--mono); }
.achips svg { width: 12px; height: 12px; color: var(--amber); }
.float-badge { position: absolute; right: 0; bottom: 40px; background: rgba(0,0,0,.85); border: 1px solid rgba(255,176,0,.4); padding: 12px 16px; backdrop-filter: blur(8px); animation: floaty 6s ease-in-out infinite 1s; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.float-badge b { display: block; font-family: var(--mono); font-size: 34px; color: var(--amber); line-height: 1; }
.float-badge span { font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 1px; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (min-width: 1000px) { .hero-phone { display: block; } }

/* ---------- Hero phone v2: looks like the real app (light UI, green Install), with depth + glare ---------- */
.hero-phone { height: 640px; }
.hero-phone .phone { top: 36px; width: 276px; height: 580px; margin-left: -138px; background: #f6f4ef; border: 8px solid #141414; border-radius: 40px; box-shadow: 0 0 0 2px #2a2a2a, 0 50px 80px rgba(0,0,0,.85), 0 0 90px rgba(255,176,0,.12); transform: rotateY(-9deg) rotateX(3deg); }
.hero-phone .phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 38%, transparent 62%, rgba(255,255,255,.05) 100%); pointer-events: none; z-index: 4; }
.hero-phone .notch { top: 8px; width: 96px; height: 26px; }
.hero-phone .phone-head { padding: 44px 14px 10px; background: #f6f4ef; color: #111; font-family: var(--body); font-weight: 800; font-size: 15px; letter-spacing: 0; border-bottom: 1px solid #e6e2d8; }
.hero-phone .phone-head::after { content: "Horror packs"; margin-left: auto; font-weight: 600; font-size: 11px; color: #2e7d4f; background: #e3f3e8; padding: 4px 8px; border-radius: 999px; }
.hero-phone .pdot { display: none; }
.hero-phone .phone-feed { background: #f6f4ef; height: calc(100% - 82px); -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
.hero-phone .feed { padding: 8px 10px; }
.hero-phone .feed .ah { font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: 0; color: #111; margin: 10px 2px 8px; }
.hero-phone .feed .ar { grid-template-columns: 14px 46px minmax(0, 1fr) auto; gap: 8px; padding: 7px 8px; background: #fff; border: 1px solid #e6e2d8; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.hero-phone .feed .ar em { color: #9a958c; font-size: 11px; font-family: var(--body); font-weight: 700; }
.hero-phone .feed .ar img { width: 46px; height: 32px; border-radius: 6px; filter: none; }
.hero-phone .feed .ar div { min-width: 0; }
.hero-phone .feed .ar b { color: #111; font-size: 11.5px; max-width: none; }
.hero-phone .feed .ar span { color: #6b665e; font-family: var(--body); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hero-phone .feed .ar i { font-family: var(--body); font-weight: 800; font-size: 10px; padding: 6px 9px; border-radius: 8px; background: #2e7d4f; color: #fff; letter-spacing: 0; }
.hero-phone .feed .ar i.p { background: #ffb000; color: #111; }
.hero-phone .achips span { background: #fff; border-color: #e6e2d8; color: #111; font-family: var(--body); font-weight: 600; border-radius: 999px; }
.hero-phone .achips svg { color: #2e7d4f; }
.hero-phone .float-badge { right: auto; left: -10px; bottom: 90px; border-color: rgba(255,176,0,.5); }
.phone-tag { top: 4px; }
.hero-phone .phone-tag::after { content: ""; display: block; }
.hero-phone .phone-shadow { position: absolute; left: 50%; bottom: 10px; width: 240px; height: 30px; margin-left: -120px; background: radial-gradient(ellipse, rgba(255,176,0,.35), transparent 70%); filter: blur(10px); }

/* ---------- Hero v3: centered copy, popular "evidence" cards floating left and right ---------- */
.hero-grid { grid-template-columns: 1fr; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 30px; } }
.hero-inner { max-width: 680px; }
.hero-side { display: grid; gap: 18px; align-content: center; }
.hero-side.left { justify-items: end; } .hero-side.right { justify-items: start; }
.ecard { position: relative; display: block; width: 100%; max-width: 250px; background: #111; border: 1px solid var(--edge-l); border-radius: 6px; overflow: hidden; box-shadow: 0 2px 0 #000, 0 24px 50px rgba(0,0,0,.7); transition: transform .3s, border-color .3s, box-shadow .3s; animation: floaty 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hero-side.left .ecard { transform: rotate(-3deg) translateX(6px); } .hero-side.right .ecard { transform: rotate(3deg) translateX(-6px); }
.hero-side .ecard:nth-child(2) { transform: rotate(1.5deg); }
.ecard:hover { transform: rotate(0) scale(1.05) !important; border-color: var(--amber); box-shadow: 0 2px 0 #000, 0 30px 60px rgba(0,0,0,.8), 0 0 30px rgba(255,176,0,.25); z-index: 2; }
.ecard .shot { position: relative; aspect-ratio: 16/9; background: #000; }
.ecard .shot img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) saturate(.85); }
.ecard .shot::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 2px, transparent 2px 4px), linear-gradient(to top, rgba(0,0,0,.6), transparent 50%); }
.ecard .rk { position: absolute; left: 8px; top: 8px; z-index: 1; font-family: var(--mono); font-size: 11px; padding: 3px 7px; background: var(--amber); color: #000; }
.ecard .pr { position: absolute; right: 8px; top: 8px; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; padding: 3px 7px; background: var(--phos); color: #000; }
.ecard .pr.p { background: var(--red); color: #fff; }
.ecard .meta { padding: 9px 10px 10px; }
.ecard .meta b { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard .meta span { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; color: var(--phos); letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ecard .meta span i { font-style: normal; color: var(--muted); }
.hero-side .side-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--amber); display: flex; align-items: center; gap: 6px; }
@media (max-width: 1099px) { .hero-side { grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scrollbar-width: none; padding: 6px 2px 12px; justify-items: stretch; } .hero-side::-webkit-scrollbar { display: none; } .hero-side.left { display: none; } .hero-side .ecard { transform: none; max-width: none; animation: none; } .hero-side .side-tag { grid-column: 1 / -1; } }

/* hero v4: copy only, centered */
.hero-grid { grid-template-columns: 1fr !important; }
.hero-inner { max-width: 760px; }

/* ---------- Hero v5: small popular cards scattered around the copy ---------- */
.scatter { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.scatter .ecard { position: absolute; width: 150px; max-width: none; pointer-events: auto; animation: floaty 8s ease-in-out infinite; animation-delay: var(--d, 0s); transform: rotate(var(--r, 0deg)); box-shadow: 0 2px 0 #000, 0 18px 40px rgba(0,0,0,.75); }
.scatter .ecard .meta { padding: 7px 8px 8px; }
.scatter .ecard .meta b { font-size: 11px; }
.scatter .ecard .meta span { font-size: 10px; }
.scatter .ecard .rk { font-size: 10px; padding: 2px 6px; }
.scatter .ecard .pr { font-size: 9px; padding: 2px 6px; }
.scatter .ecard:hover { transform: rotate(0) scale(1.12) !important; z-index: 3; }
.scatter .p1 { left: 6%; top: 17%; --r: -7deg; --d: 0s; }
.scatter .p2 { left: 17%; top: 48%; --r: 4deg; --d: 1.3s; }
.scatter .p3 { left: 8%; top: 70%; --r: -3deg; --d: 2.1s; }
.scatter .p4 { right: 7%; top: 14%; --r: 6deg; --d: .7s; }
.scatter .p5 { right: 18%; top: 43%; --r: -5deg; --d: 1.9s; }
.scatter .p6 { right: 6%; top: 69%; --r: 3deg; --d: 2.8s; }
@media (min-width: 1200px) { .scatter { display: block; } }
@media (min-width: 1500px) { .scatter .ecard { width: 170px; } }
.hero-inner { position: relative; z-index: 1; }

/* scatter cards v2: picture, rank and name only, smaller */
.scatter .ecard { width: 118px; }
@media (min-width: 1500px) { .scatter .ecard { width: 132px; } }
.scatter .ecard .pr, .scatter .ecard .meta span { display: none; }
.scatter .ecard .meta { padding: 6px 8px 7px; }
.scatter .ecard .meta b { font-size: 10.5px; }
.scatter .ecard .rk { font-size: 9px; padding: 2px 5px; left: 6px; top: 6px; }
.scatter .p1 { left: 7%; top: 18%; } .scatter .p2 { left: 19%; top: 46%; } .scatter .p3 { left: 9%; top: 70%; }
.scatter .p4 { right: 8%; top: 16%; } .scatter .p5 { right: 20%; top: 44%; } .scatter .p6 { right: 7%; top: 68%; }

/* header v2: brand + highlighted App Store button only */
.topbar .store { background: var(--red); color: #fff; padding: 9px 16px 9px 12px; box-shadow: 0 8px 26px rgba(255,42,42,.5), 0 0 0 1px rgba(255,255,255,.15); animation: hdrglow 2.2s ease-in-out infinite alternate; }
.topbar .store:hover { box-shadow: 0 10px 32px rgba(255,42,42,.7), 0 0 0 2px #fff; }
.topbar .store > span { font-size: 15px; }
.topbar .store > span small { font-size: 9px; opacity: .9; }
.topbar .store .store-ico { width: 18px; height: 21px; }
.topbar .store::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%); transform: translateX(-70%); animation: glint 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes hdrglow { from { box-shadow: 0 8px 26px rgba(255,42,42,.35), 0 0 0 1px rgba(255,255,255,.15); } to { box-shadow: 0 8px 34px rgba(255,42,42,.75), 0 0 0 1px rgba(255,255,255,.25); } }

/* smiley trail */
.torchcur.ball { width: calc(30px - var(--k) * 4px); height: calc(30px - var(--k) * 4px); opacity: calc(.9 - var(--k) * .15); z-index: 94; animation: none; filter: drop-shadow(0 0 6px rgba(255,217,59,.6)); }

/* cursor = app icon face */
.torchcur { background-image: url(images/cursor-smiley.png?v=48); }

/* hero sizing: fill large screens */
.hero-inner { max-width: 860px; }
.h1 { font-size: clamp(32px, 5.2vw, 84px); min-height: 2.3em; }
.tag { font-size: clamp(12px, 1vw, 16px); }
.appname { font-size: clamp(16px, 1.6vw, 26px); }
.lead { font-size: clamp(17px, 1.35vw, 23px); max-width: 720px; margin-top: 22px; }
.cta-row { margin-top: 32px; gap: 18px 30px; }
.store-lg { padding: 16px 30px 16px 22px; }
.store-lg > span { font-size: 24px; }
.store-lg > span small { font-size: 11px; }
.store-lg .store-ico { width: 30px; height: 34px; }
.ghost { font-size: clamp(14px, 1.1vw, 18px); }
.proof { font-size: clamp(13px, 1vw, 16px); margin-top: 30px; gap: 10px 26px; }
.proof b { font-size: clamp(16px, 1.3vw, 22px); }
.hint { font-size: clamp(14px, 1.05vw, 17px); margin-top: 30px; }
.osd { font-size: clamp(12px, 1vw, 17px); }
@media (min-width: 1500px) { .scatter .ecard { width: 165px; } .scatter .ecard .meta b { font-size: 12px; } }
@media (min-width: 1800px) { .scatter .ecard { width: 190px; } .scatter .ecard .meta b { font-size: 13px; } .scatter .p1 { left: 8%; top: 18%; } .scatter .p3 { left: 10%; top: 66%; } .scatter .p4 { right: 9%; top: 16%; } .scatter .p6 { right: 8%; top: 64%; } }

/* scatter cards: bigger */
.scatter .ecard { width: 160px; }
.scatter .ecard .meta b { font-size: 12px; }
@media (min-width: 1500px) { .scatter .ecard { width: 200px; } .scatter .ecard .meta b { font-size: 13px; } .scatter .ecard .rk { font-size: 10px; padding: 3px 6px; } }
@media (min-width: 1800px) { .scatter .ecard { width: 230px; } .scatter .ecard .meta b { font-size: 14px; } .scatter .ecard .meta { padding: 8px 10px 9px; } .scatter .p1 { left: 6%; top: 14%; } .scatter .p2 { left: 17%; top: 44%; } .scatter .p3 { left: 7%; top: 70%; } .scatter .p4 { right: 6%; top: 12%; } .scatter .p5 { right: 17%; top: 42%; } .scatter .p6 { right: 6%; top: 68%; } }

/* more eyes in the dark: amber and red */
.eyes.red i { background: var(--red); box-shadow: 0 0 10px var(--red), 0 0 22px rgba(255,42,42,.6); }
.e3 { left: 14%; top: 28%; transform: scale(.8); } .e4 { left: 30%; top: 62%; transform: scale(.6); } .e5 { left: 46%; top: 20%; transform: scale(.5); }
.e6 { left: 60%; top: 72%; transform: scale(.7); } .e7 { left: 76%; top: 58%; transform: scale(.55); } .e8 { left: 93%; top: 76%; transform: scale(.9); }
.e3 i { animation-delay: .7s; } .e4 i { animation-delay: 1.9s; } .e5 i { animation-delay: 2.6s; } .e6 i { animation-delay: .3s; } .e7 i { animation-delay: 3.2s; } .e8 i { animation-delay: 1.4s; }

/* ---------- Playback guide: full-size steps ---------- */
.proofstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 0 0 28px; padding: 12px 16px; background: rgba(215,255,184,.05); border: 1px solid rgba(215,255,184,.25); border-left: 3px solid var(--phos); font-family: var(--mono); font-size: 13px; letter-spacing: 1px; color: var(--phos); }
.proofstrip b { font-weight: 400; color: #fff; }
.proofstrip b .js-count { color: var(--amber); font-size: 18px; }
.proofstrip small { margin-left: auto; color: var(--muted); }
.guide { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.gstep { display: grid; gap: 18px; align-items: center; background: #0d0d0d; border: 1px solid var(--edge-l); border-radius: 6px; padding: 16px; position: relative; overflow: hidden; }
.gstep::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px); pointer-events: none; }
.gshot { position: relative; background: #000; border-radius: 4px; overflow: hidden; border: 1px solid #222; aspect-ratio: 4/3; display: grid; place-items: center; }
.gshot img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; filter: contrast(1.04); }
.gshot .osd { padding: 10px 12px; font-size: 12px; }
.gtxt { position: relative; }
.gnum { display: inline-grid; place-items: center; width: 46px; height: 46px; font-family: var(--mono); font-size: 20px; background: var(--amber); color: #000; border-radius: 4px; margin-bottom: 14px; box-shadow: 0 4px 0 #000; }
.gtxt h3 { font-family: var(--type); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); color: #fff; text-shadow: 2px 0 var(--red), -2px 0 var(--cyan); line-height: 1.1; }
.gtxt p { color: var(--prose); font-size: clamp(15px, 1.2vw, 18px); margin-top: 12px; max-width: 520px; }
.gtxt .tip { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--phos); border: 1px dashed rgba(215,255,184,.35); padding: 6px 10px; }
@media (min-width: 900px) { .gstep { grid-template-columns: 1.05fr 1fr; gap: 30px; padding: 20px; } .gstep:nth-child(even) .gshot { order: 2; } .gstep:nth-child(even) .gtxt { text-align: right; } .gstep:nth-child(even) .gtxt p { margin-left: auto; } }
.gstep.reveal { transition-delay: 0s; }

/* ---------- Install stepper (one step at a time) ---------- */
.three { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.three li { display: flex; gap: 12px; align-items: flex-start; background: #0d0d0d; border: 1px solid var(--edge-l); border-radius: 6px; padding: 14px; }
.three b { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--amber); color: #000; font-family: var(--mono); font-size: 16px; border-radius: 4px; }
.three strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.three span { font-size: 13px; color: var(--muted); }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide { display: grid; gap: 20px; background: #0d0d0d; border: 1px solid var(--edge-l); border-radius: 6px; padding: 18px; position: relative; overflow: hidden; }
.guide::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px); pointer-events: none; }
.guide-side { position: relative; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; }
.stages button { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; padding: 8px 12px; background: #161616; color: var(--muted); border: 1px solid var(--edge-l); border-radius: 4px; transition: .2s; }
.stages button.on { background: var(--phos); color: #000; border-color: var(--phos); }
.guide-text { display: flex; gap: 14px; align-items: flex-start; min-height: 120px; }
.guide-text .num { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--amber); color: #000; font-family: var(--mono); font-size: 20px; border-radius: 4px; box-shadow: 0 4px 0 #000; }
.guide-text h3 { font-family: var(--type); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: #fff; text-shadow: 2px 0 var(--red), -2px 0 var(--cyan); }
.guide-text p { color: var(--prose); font-size: clamp(15px, 1.1vw, 17px); margin-top: 8px; max-width: 480px; }
.guide-text.swap h3, .guide-text.swap p { animation: gtin .35s ease both; }
@keyframes gtin { from { opacity: 0; transform: translateY(8px); } }
.xp { height: 8px; background: #000; border: 1px solid var(--edge-l); overflow: hidden; }
.xp i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--phos) 0 6px, #9ad17a 6px 8px); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.guide-ctl { display: flex; align-items: center; gap: 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; background: #161616; color: #fff; border: 1px solid var(--edge-l); font-size: 22px; line-height: 1; }
.round:hover { border-color: var(--amber); color: var(--amber); }
.pips { display: flex; gap: 6px; flex-wrap: wrap; }
.pips button { width: 34px; height: 34px; border-radius: 50%; background: #161616; color: var(--muted); border: 1px solid var(--edge-l); font-family: var(--mono); font-size: 13px; }
.pips button.on { background: var(--red); color: #fff; border-color: var(--red); }
.guide-stage { position: relative; background: #000; border-radius: 4px; overflow: hidden; border: 1px solid #222; aspect-ratio: 4/3; }
.guide-stage .gs { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s; background: #0a0a0a; }
.guide-stage .gs.on { opacity: 1; }
.guide-stage .osd { padding: 10px 12px; font-size: 12px; z-index: 1; }
.guide-stage .zoom { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.75); color: #fff; border: 1px solid var(--edge-l); font-size: 18px; }
.guide-stage .zoom:hover { border-color: var(--amber); color: var(--amber); }
@media (min-width: 900px) { .guide { grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 24px; } }
.glb { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.94); display: grid; place-items: center; }
.glb img { max-width: min(92vw, 900px); max-height: 82vh; object-fit: contain; border: 1px solid #333; }
.glb p { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--phos); }
.glb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: #161616; color: #fff; border: 1px solid var(--edge-l); font-size: 26px; line-height: 1; }
.glb-x { right: 18px; top: 18px; } .glb-p { left: 18px; top: 50%; } .glb-n { right: 18px; top: 50%; }

.glb[hidden] { display: none; }

/* troubleshooting panel */
.howfix { margin-top: 24px; background: #0d0d0d; border: 1px solid var(--edge-l); border-left: 3px solid var(--red); border-radius: 6px; padding: 20px 22px; }
.howfix .kicker { color: var(--red); margin-bottom: 14px; }
.howfix dl { margin: 0; display: grid; gap: 14px; }
.howfix dt { font-weight: 700; color: #fff; margin-bottom: 4px; }
.howfix dd { margin: 0; color: var(--muted); font-size: 14px; }
@media (min-width: 760px) { .howfix dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 30px; } }

/* ---------- Stats wall: CCTV monitors ---------- */
.statwall { position: relative; padding: 0 0 40px; margin-top: -60px; z-index: 2; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mon { position: relative; background: #050505; border: 2px solid #1e1e1e; border-radius: 10px; padding: 6px; box-shadow: 0 0 0 1px #000, 0 20px 40px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.04); }
.mon-bar { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); padding: 2px 6px 6px; }
.mon-bar .rec { color: var(--red); gap: 5px; }
.mon-bar .rec i { width: 7px; height: 7px; }
.mon-body { position: relative; border-radius: 6px; overflow: hidden; padding: 16px 14px 14px; background: radial-gradient(ellipse at 50% 40%, rgba(215,255,184,.10), transparent 70%), #0b0f0a; box-shadow: inset 0 0 30px rgba(0,0,0,.9); display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.mon-body::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.35) 0 2px, transparent 2px 4px); pointer-events: none; }
.mon-body::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(215,255,184,.08), transparent); animation: monroll 5s linear infinite; animation-delay: calc(var(--i) * -1s); pointer-events: none; }
.mon-ico { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,42,42,.4); border-radius: 6px; color: var(--red); background: rgba(255,42,42,.06); animation: flicker 6s steps(10) infinite; animation-delay: calc(var(--i) * .8s); }
.mon-ico svg { width: 22px; height: 22px; }
.mon-body b { font-family: var(--mono); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; color: var(--phos); text-shadow: 0 0 14px rgba(215,255,184,.55), 2px 0 rgba(255,0,0,.35), -2px 0 rgba(0,255,255,.35); }
.mon-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin-top: 6px; }
.mon:hover { border-color: rgba(255,176,0,.5); }
@keyframes monroll { to { top: 130%; } }
@media (min-width: 760px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 759px) { .wall .mon:last-child { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { .mon-body::after { display: none; } }

/* ---------- Stats: VCR deck with red LED counters ---------- */
.statwall { display: none; }
.vcr-sec { padding-top: 0; }
.vcr { position: relative; border-radius: 10px; padding: 14px 18px 12px; background: linear-gradient(180deg, #2a2a2c 0%, #18181a 18%, #121214 100%); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.6), 0 30px 60px rgba(0,0,0,.7); }
.vcr::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px); pointer-events: none; }
.vcr-top { display: flex; align-items: center; gap: 16px; padding: 0 4px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.vcr-brand { font-family: var(--type); font-size: 20px; color: #cfcfcf; letter-spacing: 1px; } .vcr-brand b { color: var(--red); font-weight: 400; }
.vcr-model { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: #7a7a7a; }
.vcr-slot { margin-left: auto; width: min(240px, 30%); height: 14px; background: #050505; border-radius: 3px; box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255,255,255,.06); }
.vcr-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.led-cell { background: #070303; border-radius: 6px; padding: 12px 12px 10px; box-shadow: inset 0 0 0 1px #000, inset 0 0 22px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05); }
.led { position: relative; font-family: var(--mono); font-size: clamp(30px, 3vw, 46px); line-height: 1; letter-spacing: 3px; text-align: right; }
.led .ghost { position: absolute; right: 0; top: 0; color: rgba(255,42,42,.07); }
.led b { position: relative; font-weight: 400; color: #ff3b30; text-shadow: 0 0 6px rgba(255,59,48,.9), 0 0 18px rgba(255,59,48,.45); animation: ledflick 7s steps(1) infinite; animation-delay: calc(var(--i) * 1.3s); }
.led-cell p { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #bdbdbd; border-top: 1px dashed rgba(255,255,255,.08); padding-top: 8px; }
.led-cell p small { color: #6f6f6f; font-size: 10px; }
.vcr-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.vcr-btn { min-width: 38px; height: 22px; padding: 0 8px; display: grid; place-items: center; font-size: 10px; color: #9a9a9a; background: linear-gradient(#3a3a3c, #232325); border-radius: 3px; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 0 #000; }
.vcr-btn.on { color: var(--phos); text-shadow: 0 0 6px var(--phos); }
.vcr-btn.rec { color: var(--red); }
.vcr-note { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #6f6f6f; }
@keyframes ledflick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .55; } 98% { opacity: 1; } 99% { opacity: .7; } }
@media (min-width: 760px) { .vcr-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .vcr-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .vcr { padding: 16px 22px 14px; } }
@media (max-width: 759px) { .vcr-panel .led-cell:last-child { grid-column: span 2; } .vcr-model, .vcr-note { display: none; } }

/* ---------- Install guide v3: step-1 pack page mock ---------- */
.guide-stage { aspect-ratio: auto; height: clamp(340px, 34vw, 470px); }
.gmock { display: grid; place-items: center; padding: 26px 16px 16px; background: radial-gradient(ellipse at 50% 30%, #1a1a1a, #070707); }
.pp { width: min(100%, 330px); max-height: 100%; background: #f6f4ef; color: #111; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 0 6px #141414; font-family: var(--body); }
.pp-hero { position: relative; aspect-ratio: 16/9; background: #000; }
.pp-hero img { width: 100%; height: 100%; object-fit: cover; }
.pp-rank { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 4px 8px; background: var(--amber); color: #000; border-radius: 6px; }
.pp-thumbs { display: flex; gap: 6px; justify-content: center; margin-top: -18px; position: relative; padding: 0 10px; }
.pp-thumbs img { width: 40px; height: 30px; object-fit: cover; border-radius: 7px; border: 2px solid #f6f4ef; opacity: .7; }
.pp-thumbs img.on { opacity: 1; border-color: #2e7d4f; }
.pp-body { padding: 10px 14px 14px; }
.pp-tag { font-size: 11px; font-weight: 700; color: #2e7d4f; }
.pp h4, .pp h3 { margin: 2px 0 10px; font-size: 18px; line-height: 1.2; }
.pp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pp-stats div { background: #fff; border: 1px solid #e6e2d8; border-radius: 10px; padding: 7px 6px; text-align: center; }
.pp-stats b { display: block; font-size: 14px; }
.pp-stats span { font-size: 9px; color: #7a756c; text-transform: uppercase; letter-spacing: .4px; }
.pp-btn { margin-top: 12px; text-align: center; padding: 11px; background: #2e7d4f; color: #fff; font-weight: 800; border-radius: 12px; outline: 3px solid #e11; outline-offset: 3px; animation: ppulse 1.4s ease-in-out infinite; }
@keyframes ppulse { 50% { outline-color: rgba(238,17,17,.35); } }
.guide-stage .zoom[hidden] { display: none; }

/* header v3: bigger */
.topbar { padding: 14px var(--gutter); gap: 22px; }
.brand { font-size: clamp(18px, 1.5vw, 24px); gap: 14px; letter-spacing: 3px; }
.brand img { width: clamp(44px, 3.4vw, 56px); height: clamp(44px, 3.4vw, 56px); border-radius: 10px; }
.brand small { font-size: clamp(12px, .9vw, 14px); margin-top: 3px; letter-spacing: .5px; }
.topbar .store { padding: 11px 20px 11px 15px; border-radius: 10px; }
.topbar .store > span { font-size: clamp(16px, 1.25vw, 20px); }
.topbar .store > span small { font-size: clamp(9px, .7vw, 11px); }
.topbar .store .store-ico { width: 22px; height: 26px; }
.hero .osd.tl, .hero .osd.tr { top: clamp(78px, 6vw, 96px); }

.ticker a span::before { content: "· "; }

/* mods right under the counters */
.vcr-sec { padding-bottom: 24px; }
#mods { padding-top: 34px; }

.vcr-sec { padding-bottom: 8px; }
#mods { padding-top: 20px; }

/* order: hero > mods > counters > ticker */
#mods { padding-top: clamp(56px, 7vw, 90px); padding-bottom: 30px; }
.vcr-sec { padding-top: 0; padding-bottom: 40px; }

/* ---------- Top packs: 3D coverflow ---------- */
#modGrid { display: none; }
.cflow { position: relative; height: clamp(470px, 40vw, 560px); margin-top: 8px; perspective: 1400px; overflow: hidden; border-radius: 8px; }
.cf-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cf-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(.35) saturate(.8); transform: scale(1.2); transition: opacity .6s; }
.cf-bg::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px), radial-gradient(ellipse at 50% 50%, transparent 30%, #000 85%); }
.cf-stage { position: absolute; inset: 0; z-index: 1; transform-style: preserve-3d; }
.cf-card { position: absolute; left: 50%; top: 50%; width: clamp(260px, 26vw, 360px); margin-left: calc(clamp(260px, 26vw, 360px) / -2); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s, filter .6s; background: #0d0d0d; border: 1px solid var(--edge-l); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.8); cursor: pointer; translate: 0 -50%; }
.cf-card.c { cursor: default; border-color: rgba(255,176,0,.6); box-shadow: 0 30px 70px rgba(0,0,0,.85), 0 0 40px rgba(255,176,0,.18); }
.cf-shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #000; }
.cf-shot .fill { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(14px) brightness(.6); }
.cf-shot .main { position: relative; width: 100%; height: 100%; object-fit: cover; }
.cf-shot::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px), linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); pointer-events: none; }
.cf-tag { position: absolute; left: 10px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; padding: 5px 9px; background: rgba(0,0,0,.8); color: var(--phos); border: 1px solid rgba(215,255,184,.35); }
.cf-card.c .cf-tag { background: var(--amber); color: #000; border-color: var(--amber); }
.cf-price { position: absolute; right: 10px; top: 10px; z-index: 1; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; padding: 5px 9px; background: var(--phos); color: #000; }
.cf-price.p { background: var(--red); color: #fff; }
.cf-rec { position: absolute; left: 10px; bottom: 8px; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--phos); text-shadow: 0 0 6px rgba(215,255,184,.6); }
.cf-body { padding: 14px 14px 16px; }
.cf-cat { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--amber); }
.cf-body h3 { font-family: var(--type); font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); color: #fff; margin: 6px 0 12px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cf-stats div { background: #151515; border: 1px solid var(--edge); border-radius: 6px; padding: 8px; }
.cf-stats b { display: block; font-family: var(--mono); font-size: 17px; color: #fff; }
.cf-stats b.g { color: var(--phos); }
.cf-stats span { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.cf-get { display: block; margin-top: 12px; text-align: center; padding: 12px; font-weight: 800; letter-spacing: 1px; color: #fff; background: var(--red); border-radius: 8px; box-shadow: 0 8px 24px rgba(255,42,42,.4); transition: transform .2s; }
.cf-get:hover { transform: translateY(-2px); }
.cf-card:not(.c) .cf-body { opacity: .55; }
.cf-card:not(.c) .cf-get { pointer-events: none; }
.cf-nav { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; border: 1px solid var(--edge-l); font-size: 28px; line-height: 1; }
.cf-nav:hover { border-color: var(--amber); color: var(--amber); }
.cf-nav.prev { left: 12px; } .cf-nav.next { right: 12px; }
.cf-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.cf-dots i { width: 22px; height: 4px; background: var(--edge-l); cursor: pointer; transition: background .3s, width .3s; }
.cf-dots i.on { width: 38px; background: var(--red); box-shadow: 0 0 8px var(--red); }
@media (max-width: 700px) { .cflow { height: 500px; } .cf-nav { width: 40px; height: 40px; font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .cf-card { transition: none; } }

.cflow { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }
.cf-stats span { white-space: nowrap; }

#mods { overflow-x: clip; }
html { overflow-x: clip; }

/* coverflow: every card fully readable */
.cf-card:not(.c) .cf-body { opacity: 1; }
.cf-card:not(.c) .cf-get { pointer-events: auto; }
.cf-card { box-shadow: 0 24px 50px rgba(0,0,0,.85), -12px 0 30px rgba(0,0,0,.6); }

/* ---------- Top packs: flat slider (replaces the 3D coverflow) ---------- */
.cflow { height: auto; perspective: none; overflow: visible; margin: 10px 0 0 !important; border-radius: 0; }
.cf-stage { position: relative; inset: auto; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; transform-style: flat; }
.cf-stage::-webkit-scrollbar { display: none; }
.cf-card, .cf-card.c { position: relative; left: auto; top: auto; margin: 0; translate: none; transform: none !important; opacity: 1 !important; filter: none !important; flex: 0 0 calc((100% - 54px) / 4); width: auto; scroll-snap-align: start; cursor: default; border-color: var(--edge-l); box-shadow: 0 18px 40px rgba(0,0,0,.6); transition: transform .25s, border-color .25s, box-shadow .25s; }
.cf-card:hover { transform: translateY(-6px) !important; border-color: rgba(255,176,0,.6); box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 30px rgba(255,176,0,.15); }
.cf-card .cf-tag { background: rgba(0,0,0,.8); color: var(--phos); border-color: rgba(215,255,184,.35); }
.cf-card:nth-child(-n+3) .cf-tag { background: var(--amber); color: #000; border-color: var(--amber); }
.cf-body h3 { font-size: clamp(16px, 1.25vw, 20px); }
.cf-nav { top: 38%; }
.cf-nav.prev { left: -58px; } .cf-nav.next { right: -58px; }
.cf-nav:disabled { opacity: .25; cursor: default; }
@media (max-width: 1290px) { .cf-nav.prev { left: -6px; } .cf-nav.next { right: -6px; } }
@media (max-width: 1100px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 760px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 18px) / 2); } }
@media (max-width: 480px) { .cf-card, .cf-card.c { flex-basis: 82%; } .cf-nav { display: none; } }
/* category tabs: all visible, wrapped and centred */
#mods .tabs { flex-wrap: wrap; justify-content: center; overflow: visible; gap: 8px; }
#mods .tab { padding: 10px 16px; font-size: 13px; }
@media (max-width: 760px) { #mods .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; } }

/* ---------- Slider: full width, 5 cards per view ---------- */
.cflow { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding: 0 clamp(16px, 4vw, 72px); }
.cf-stage { gap: 20px; }
.cf-card, .cf-card.c { flex-basis: calc((100% - 80px) / 5); }
.cf-nav.prev { left: clamp(4px, 1.2vw, 20px); } .cf-nav.next { right: clamp(4px, 1.2vw, 20px); }
.cf-nav { z-index: 6; background: rgba(0,0,0,.85); }
.cf-body h3 { font-size: clamp(16px, 1.15vw, 21px); }
.cf-stats b { font-size: clamp(15px, 1.05vw, 19px); }
.cf-get { padding: 13px; font-size: clamp(13px, .9vw, 16px); }
@media (max-width: 1400px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 60px) / 4); } }
@media (max-width: 1100px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 760px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 480px) { .cf-card, .cf-card.c { flex-basis: 82%; } }

/* ---------- Top packs: centred header, one-line filter with slide buttons, light highlights ---------- */
#mods .head { text-align: center; max-width: 900px; margin: 0 auto 26px; }
#mods .head .kicker { justify-content: center; }
#mods .head .sub { margin-inline: auto; }
#mods .tabs-wrap { max-width: min(1180px, 100%); margin: 0 auto 26px; gap: 10px; }
#mods .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-behavior: smooth; padding: 6px 4px; }
#mods .tabs-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #141414; border: 1px solid var(--edge-l); color: #fff; font-size: 22px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.04); }
#mods .tabs-arrow:not(:disabled):hover { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 14px rgba(255,176,0,.35); }
#mods .tabs-wrap.no-scroll .tabs-arrow { display: none; }
#mods .tabs-wrap.no-scroll .tabs { justify-content: center; }
#mods .tab { white-space: nowrap; background: #121212; border: 1px solid #2c2c2c; color: #b9b9b9; transition: color .2s, border-color .2s, box-shadow .2s, background .2s; }
#mods .tab:hover { color: #fff; border-color: rgba(255,176,0,.45); box-shadow: 0 0 12px rgba(255,176,0,.18); }
#mods .tab[aria-selected="true"] { background: var(--amber); color: #000; border-color: #ffd36b; box-shadow: 0 0 0 1px rgba(255,211,107,.6), 0 0 20px rgba(255,176,0,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.cf-card, .cf-card.c { border: 1px solid rgba(255,176,0,.22); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03), inset 0 1px 0 rgba(255,255,255,.08); background: linear-gradient(180deg, #151515, #0c0c0c); }
.cf-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.07), transparent 35%); }
.cf-card:hover { border-color: rgba(255,196,80,.75); box-shadow: 0 24px 50px rgba(0,0,0,.7), 0 0 0 1px rgba(255,196,80,.35), 0 0 34px rgba(255,176,0,.3); }
.cf-card:nth-child(-n+3) { border-color: rgba(255,176,0,.45); box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 22px rgba(255,176,0,.14); }

/* ---------- Top packs: readable, full-width category filter ---------- */
#mods .head .sub { max-width: 820px; font-size: clamp(15px, 1.05vw, 18px); text-wrap: balance; }
#mods .tabs-wrap { max-width: none; margin: 0 calc(50% - 50vw) 28px; padding: 0 clamp(16px, 4vw, 72px); }
#mods .tabs { gap: 10px; padding: 8px 4px; }
#mods .tab { font-family: var(--body); font-size: clamp(14px, .95vw, 16px); font-weight: 600; letter-spacing: .2px; padding: 11px 20px; border-radius: 999px; color: #d6d6d6; background: #141414; border: 1px solid #333; }
#mods .tab[aria-selected="true"] { color: #111; font-weight: 800; }
#mods .tabs-arrow { width: 44px; height: 44px; }

/* card stats: icons instead of labels (same data as the verity site: downloads, views, MC) */
.cf-stats.ico { display: flex; gap: 6px; }
.cf-stats.ico div { flex: 1; display: grid; place-items: center; padding: 10px 6px; }
.cf-stats.ico b { font-size: clamp(14px, 1vw, 18px); white-space: nowrap; }
.cf-stats.ico b.v { color: #9fd3ff; }

/* sort switch: most installed / most viewed */
.cf-sort { display: flex; justify-content: center; gap: 0; margin: -6px auto 18px; width: max-content; padding: 4px; background: #111; border: 1px solid #2e2e2e; border-radius: 999px; }
.cf-sort button { font-family: var(--body); font-weight: 700; font-size: clamp(13px, .9vw, 15px); padding: 9px 18px; border-radius: 999px; background: transparent; color: #bdbdbd; border: 0; transition: background .2s, color .2s, box-shadow .2s; }
.cf-sort button:hover { color: #fff; }
.cf-sort button.on { background: var(--red); color: #fff; box-shadow: 0 0 18px rgba(255,42,42,.45); }

/* slider cards: picture, rank, category, name, MC version, button */
.cf-mc { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; color: var(--muted); margin: -4px 0 2px; }
.cf-body h3 { margin-bottom: 8px; }

/* slider cards: readable type */
.cf-body { padding: 16px 16px 18px; }
.cf-cat { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--amber); margin-bottom: 4px; }
.cf-body h3 { font-family: var(--body); font-weight: 800; font-size: clamp(16px, 1.1vw, 20px); letter-spacing: 0; line-height: 1.25; color: #fff; text-shadow: none; margin: 2px 0 6px; }
.cf-mc { font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: .2px; color: #a9a9a9; margin: 0 0 4px; }
.cf-get { font-family: var(--body); font-size: clamp(14px, .95vw, 16px); letter-spacing: .4px; }

/* counters just above the footer */
.vcr-sec { padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 70px); background: #050505; border-top: 1px solid var(--edge); }

/* hide the page scrollbar (scrolling still works) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ---------- Category strip: fixed, evenly aligned row ---------- */
.ticker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.ticker-label { display: flex; align-items: center; justify-content: center; padding: 0 20px; font-size: 13px; }
.ticker-view { overflow-x: auto; scrollbar-width: none; }
.ticker-view::-webkit-scrollbar { display: none; }
.ticker-track { display: grid !important; grid-template-columns: repeat(9, minmax(150px, 1fr)); width: 100% !important; }
.ticker a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 10px; text-align: center; border-right: 1px solid var(--edge); transition: background .2s; }
.ticker a:last-child { border-right: 0; }
.ticker a:hover { background: rgba(255,176,0,.07); }
.ticker a b { font-family: var(--body); font-weight: 700; font-size: clamp(13px, .85vw, 15px); color: #eee; white-space: nowrap; }
.ticker a span { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--phos); }
.ticker a span::before { content: none !important; }
@media (max-width: 760px) { .ticker-label { padding: 0 12px; font-size: 11px; } .ticker-track { grid-template-columns: repeat(9, 140px); } }

.ticker-track { grid-template-columns: repeat(10, minmax(130px, 1fr)); }
.ticker a.all { background: rgba(255,176,0,.1); }
.ticker a.all b { color: var(--amber); }
@media (max-width: 760px) { .ticker-track { grid-template-columns: repeat(10, 130px); } }

/* ---------- Category strip v3: slow auto-scroll, equal cells, pause on hover ---------- */
.ticker { position: relative; z-index: 2; }
.ticker-label { position: relative; z-index: 3; box-shadow: 8px 0 14px rgba(0,0,0,.8); }
.ticker-view { overflow: hidden !important; position: relative; z-index: 1; }
.ticker-track { display: flex !important; width: max-content !important; grid-template-columns: none !important; animation: stripscroll 45s linear infinite !important; }
.ticker a { flex: 0 0 220px; width: 220px; }
.ticker a:last-child { border-right: 1px solid var(--edge); }
.ticker:hover .ticker-track { animation-play-state: paused !important; }
@keyframes stripscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) { .ticker a { flex-basis: 160px; width: 160px; } .ticker-track { animation-duration: 35s !important; } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none !important; } .ticker-view { overflow-x: auto !important; } }

/* ---------- Category strip v4: clean edges, one-line cells ---------- */
.ticker { background: #070707; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.ticker-label { padding: 0 22px; font-size: 13px; letter-spacing: 2px; }
.ticker-view { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%); }
.ticker a { flex-direction: row; gap: 10px; padding: 16px 14px; flex-basis: 240px; width: 240px; border-right: 1px solid #1f1f1f; }
.ticker a b { font-size: clamp(14px, .9vw, 16px); font-weight: 700; color: #f1f1f1; }
.ticker a span { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0; color: #0b0b0b; background: var(--phos); padding: 3px 8px; border-radius: 999px; }
.ticker a.all { background: rgba(255,176,0,.1); }
.ticker a.all span { background: var(--amber); }
@media (max-width: 760px) { .ticker a { flex-basis: 190px; width: 190px; padding: 13px 10px; } .ticker-label { padding: 0 12px; font-size: 11px; } }

.ticker a span { white-space: nowrap; flex: none; }
.ticker a b { white-space: nowrap; }

/* strip v5: content-sized cells, equal spacing */
.ticker a { flex: 0 0 auto; width: auto; padding: 16px 34px; justify-content: center; align-items: center; }
.ticker-label { min-height: 56px; }
@media (max-width: 760px) { .ticker a { flex-basis: auto; width: auto; padding: 13px 22px; } }

/* equal space above and below the category strip */
#mods { padding-bottom: 0 !important; }
#mods .center { margin-bottom: 0; }
.ticker { margin-top: 64px; margin-bottom: 0; }
#categories { padding-top: 64px !important; }

/* strip -> install guide spacing */
#how { padding-top: 64px !important; }

.ticker-label { letter-spacing: 2px; }

/* ---------- All mods ---------- */
.allmods { padding-top: 64px !important; }
.allmods .head { text-align: center; max-width: 820px; margin: 0 auto 24px; }
.allmods .head .kicker { justify-content: center; }
.allmods .head .sub { margin-inline: auto; }
.allmods .head .sub b { color: var(--amber); }
.am-bar { display: flex; gap: 12px; max-width: 760px; margin: 0 auto 16px; }
.am-search { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #121212; border: 1px solid #333; border-radius: 999px; color: var(--muted); }
.am-search svg { width: 18px; height: 18px; flex: none; }
.am-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font: 500 15px var(--body); padding: 13px 0; }
.am-search:focus-within { border-color: var(--amber); box-shadow: 0 0 14px rgba(255,176,0,.25); }
#amSort { background: #121212; color: #ddd; border: 1px solid #333; border-radius: 999px; padding: 0 16px; font: 600 14px var(--body); }
.am-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 24px; }
.am-cats button { font: 600 13px var(--body); padding: 8px 14px; border-radius: 999px; background: #141414; color: #cfcfcf; border: 1px solid #333; }
.am-cats button i { font-style: normal; color: var(--muted); margin-left: 4px; }
.am-cats button.on { background: var(--amber); color: #111; border-color: #ffd36b; box-shadow: 0 0 16px rgba(255,176,0,.4); }
.am-cats button.on i { color: #3a2a00; }
.am-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.am-card { display: block; background: #121212; border: 1px solid #2a2a2a; border-radius: 10px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.am-card:hover { transform: translateY(-4px); border-color: rgba(255,176,0,.6); box-shadow: 0 16px 34px rgba(0,0,0,.6), 0 0 22px rgba(255,176,0,.15); }
.am-img { position: relative; display: block; aspect-ratio: 16/10; background: #000 url(images/logo.jpg) center/30% no-repeat; overflow: hidden; }
.am-img img { width: 100%; height: 100%; object-fit: cover; }
.am-img.noimg img { opacity: 0; }
.am-new { position: absolute; left: 8px; top: 8px; font: 800 10px var(--body); letter-spacing: 1px; padding: 4px 8px; border-radius: 6px; background: var(--red); color: #fff; }
.am-body { display: block; padding: 10px 12px 12px; }
.am-body small { display: block; font: 700 11px var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--amber); }
.am-body strong { display: block; margin-top: 4px; font: 700 14px/1.3 var(--body); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-body em { display: block; margin-top: 4px; font: 500 12px var(--body); font-style: normal; color: #9a9a9a; }
.am-more { font: 700 15px var(--body); padding: 13px 26px; border-radius: 999px; background: #161616; color: #fff; border: 1px solid #3a3a3a; }
.am-more:hover { border-color: var(--amber); color: var(--amber); }
.am-more[hidden] { display: none; }
.am-empty { text-align: center; color: var(--muted); margin-top: 20px; }
@media (max-width: 1200px) { .am-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) { .am-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .am-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .am-bar { flex-direction: column; } #amSort { padding: 12px 16px; } }
#how { padding-top: 80px !important; }

/* all mods v2: 4 per row, popular-style filter pills */
.am-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.am-cats { gap: 10px; margin-bottom: 28px; }
.am-cats button { font: 600 clamp(14px, .95vw, 16px) var(--body); padding: 11px 20px; color: #d6d6d6; background: #141414; border: 1px solid #333; }
.am-cats button:hover { color: #fff; border-color: rgba(255,176,0,.45); box-shadow: 0 0 12px rgba(255,176,0,.18); }
.am-cats button.on { color: #111; font-weight: 800; box-shadow: 0 0 0 1px rgba(255,211,107,.6), 0 0 20px rgba(255,176,0,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.am-body strong { font-size: 15px; }
.am-more { display: inline-block; margin-top: 8px; }
.am-store { background: var(--red); border-color: var(--red); box-shadow: 0 10px 30px rgba(255,42,42,.4); }
.am-store:hover { color: #fff; border-color: #fff; }
.am-store[hidden] { display: none; }
@media (max-width: 900px) { .am-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* all mods v3: one-line filter with slide buttons, bigger cards */
.am-catwrap { display: flex; align-items: center; gap: 10px; max-width: 1400px; margin: 0 auto 28px; }
.am-catwrap .am-cats { flex: 1; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; margin: 0; padding: 6px 4px; }
.am-catwrap .am-cats::-webkit-scrollbar { display: none; }
.am-catwrap .am-cats button { flex: none; white-space: nowrap; }
.am-catwrap .tabs-arrow { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #141414; border: 1px solid var(--edge-l); color: #fff; font-size: 22px; }
.am-catwrap .tabs-arrow:disabled { opacity: .3; cursor: default; }
.am-catwrap .tabs-arrow:not(:disabled):hover { border-color: var(--amber); color: var(--amber); }
.am-catwrap.fits .tabs-arrow { display: none; }
.am-catwrap.fits .am-cats { justify-content: center; }
.allmods > .wrap { width: min(1400px, 100% - var(--gutter) * 2); }
.am-grid { max-width: 1400px; gap: 24px; }
.am-body { padding: 14px 16px 16px; }
.am-body small { font-size: 12px; }
.am-body strong { font-size: clamp(15px, 1.1vw, 18px); }
.am-body em { font-size: 13px; }

/* all mods: full width like the popular slider */
.allmods > .wrap { width: calc(100% - 2 * clamp(16px, 4vw, 72px)); max-width: none; }
.am-grid, .am-catwrap { max-width: none; }

/* all mods cards: same look as the popular-mods cards */
.am-card { border: 1px solid rgba(255,176,0,.22); background: linear-gradient(180deg, #151515, #0c0c0c); box-shadow: 0 18px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.am-body { padding: 16px 16px 18px; }
.am-body small { font: 700 12px var(--body); letter-spacing: 1.2px; }
.am-body strong { font: 800 clamp(16px, 1.1vw, 20px)/1.25 var(--body); margin: 4px 0 6px; }
.am-body em { font: 500 13px var(--body); color: #a9a9a9; }
.am-get { display: block; margin-top: 14px; text-align: center; padding: 12px; font: 800 clamp(14px, .95vw, 16px) var(--body); letter-spacing: .4px; color: #fff; background: var(--red); border-radius: 8px; box-shadow: 0 8px 24px rgba(255,42,42,.4); transition: transform .2s; }
.am-card:hover .am-get { transform: translateY(-2px); }

/* all mods v6: 4 per row, smaller cards */
.am-grid, .am-catwrap { max-width: 1240px; margin-left: auto; margin-right: auto; }
.am-grid { gap: 18px; }
.am-body { padding: 12px 14px 14px; }
.am-body small { font-size: 11px; }
.am-body strong { font-size: 16px; margin: 3px 0 4px; }
.am-body em { font-size: 12px; }
.am-get { margin-top: 12px; padding: 10px; font-size: 14px; }

/* all mods v8: plain text tabs with ‹ › arrows always shown */
.am-catwrap { max-width: 1240px; border-bottom: 1px solid #262626; margin-bottom: 26px; }
.am-catwrap .am-cats { gap: 4px; padding: 0; justify-content: flex-start; }
.am-cats button, .am-cats button:hover, .am-cats button.on { background: none; border: 0; border-radius: 0; box-shadow: none; }
.am-cats button { position: relative; font: 600 15px var(--body); color: #9a9a9a; padding: 14px 16px; }
.am-cats button:hover { color: #fff; }
.am-cats button.on { color: var(--amber); font-weight: 700; }
.am-cats button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--amber); }
.am-catwrap .tabs-arrow { display: grid; width: 34px; height: 34px; font-size: 18px; background: #141414; border: 1px solid #333; }
.am-catwrap.fits .am-cats { justify-content: center; }
.am-catwrap.fits .tabs-arrow { display: none; } /* arrows only when tabs overflow */

/* smooth tabs: one sliding underline + cards fade in on switch */
.am-catwrap .am-cats { position: relative; }
.am-cats button.on::after { display: none; }
.am-cats button { transition: color .25s ease; }
.am-ind { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--amber); pointer-events: none; transition: transform .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1); }
.am-card { animation: amIn .45s cubic-bezier(.2,.7,.2,1) backwards; }
.am-card:nth-child(4n+2) { animation-delay: .05s; } .am-card:nth-child(4n+3) { animation-delay: .1s; } .am-card:nth-child(4n+4) { animation-delay: .15s; }
@keyframes amIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-card { animation: none; } .am-ind { transition: none; } }

/* app in numbers v2: clean stat band, placed before All mods */
.nstats { padding: 56px 0 0 !important; }
.nstats > .wrap { max-width: 1240px; }
.ns-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #262626; border-radius: 14px; background: linear-gradient(180deg, #121212, #0b0b0b); overflow: hidden; }
.ns-cell { position: relative; padding: 26px 20px 24px; text-align: center; }
.ns-cell + .ns-cell::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #262626; }
.ns-cell b { display: block; font: 800 clamp(30px, 2.6vw, 44px)/1 var(--body); color: #fff; letter-spacing: -.5px; }
.ns-cell p { margin: 10px 0 2px; font: 700 13px var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--amber); }
.ns-cell small { font: 500 13px var(--body); color: #8a8a8a; }
.ns-note { margin: 12px 0 0; text-align: center; font: 500 12px var(--body); color: #6f6f6f; }
@media (max-width: 900px) { .ns-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ns-cell:nth-child(4)::before { display: none; } .ns-cell:nth-child(n+4) { border-top: 1px solid #262626; } }
@media (max-width: 560px) { .ns-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ns-cell::before { display: none; } .ns-cell:nth-child(n+3) { border-top: 1px solid #262626; } .ns-cell:nth-child(odd) { border-right: 1px solid #262626; } .ns-cell:last-child { grid-column: 1 / -1; border-right: 0; } }
.allmods { padding-top: 56px !important; }

/* categories strip now sits above Most popular: equal space around it */
#mods { padding-top: 64px !important; }
.nstats { padding-bottom: 0 !important; }

/* ---------- install guide v2: simple step list + screenshot ---------- */
#how > .wrap { max-width: 1240px; }
#how .head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
#how .head .kicker { justify-content: center; }
#how .head .sub { margin-inline: auto; }
#how .guide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; padding: 0; border: 0; background: none; box-shadow: none; }
#how .guide::before, #how .guide::after { display: none; }
#how .guide-side { padding: 0; }
.gsteps { list-style: none; margin: 0; padding: 0; position: relative; }
.gsteps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: #262626; }
.gsteps li { margin: 0; }
.gsteps button { position: relative; display: flex; gap: 16px; width: 100%; text-align: left; padding: 9px 12px 9px 0; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 10px; }
.gsteps b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #111; border: 2px solid #2e2e2e; font: 700 15px var(--body); color: #8a8a8a; transition: background .25s, border-color .25s, color .25s; }
.gsteps span { display: block; padding-top: 2px; min-width: 0; }
.gsteps strong { display: block; font: 700 16px/1.3 var(--body); color: #bdbdbd; transition: color .25s; }
.gsteps em { display: block; font: 600 11px var(--body); font-style: normal; letter-spacing: 1.2px; text-transform: uppercase; color: #6a6a6a; margin-top: 3px; }
.gsteps small { display: block; max-height: 0; overflow: hidden; opacity: 0; font: 400 14px/1.55 var(--body); color: #a9a9a9; transition: max-height .35s ease, opacity .3s ease, margin .3s; }
.gsteps button:hover strong { color: #fff; }
.gsteps button:hover b { border-color: #555; color: #ddd; }
.gsteps button.on b { background: var(--amber); border-color: var(--amber); color: #111; box-shadow: 0 0 0 5px rgba(255,176,0,.15); }
.gsteps button.on strong { color: #fff; font-size: 18px; }
.gsteps button.on em { color: var(--amber); }
.gsteps button.on small { max-height: 90px; opacity: 1; margin-top: 8px; }
#how .guide-stage { position: sticky; top: 90px; aspect-ratio: 4/3; border-radius: 18px; background: #0b0b0b; border: 1px solid #262626; box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; }
#how .guide-stage .osd { display: none; }
#how .guide-stage .gs { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease; }
#how .guide-stage .gs.on { opacity: 1; }
#how .guide-stage .zoom { z-index: 3; }
@media (max-width: 900px) {
  #how .guide { grid-template-columns: 1fr; }
  #how .guide-stage { position: relative; top: 0; order: -1; }
}
#how .head { max-width: 1000px; }
#how .guide-stage { margin: 0 !important; align-self: start; }
#how .guide { min-height: 0; }

/* ---------- install guide v3: big screenshot, caption, step chips ---------- */
#how .guide.g3 { display: block; max-width: 980px; margin: 0 auto; padding: 0; border: 0; background: none; box-shadow: none; min-height: 0; }
#how .g3 .guide-stage { position: relative !important; top: auto; aspect-ratio: 684 / 477; width: 100%; border-radius: 18px; overflow: hidden; background: #0b0b0b; border: 1px solid #2a2a2a; box-shadow: 0 30px 70px rgba(0,0,0,.65); }
#how .g3 .guide-stage::before { content: ""; position: absolute; inset: -30px; background: var(--bg, none) center/cover no-repeat; filter: blur(26px) brightness(.45); }
#how .g3 .guide-stage .gs { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease; z-index: 1; }
#how .g3 .guide-stage .gs.on { opacity: 1; }
#how .g3 .gnav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
#how .g3 .gnav:hover { background: var(--amber); border-color: var(--amber); color: #111; }
#how .g3 .gprev { left: 14px; } #how .g3 .gnext { right: 14px; }
#how .g3 .zoom { z-index: 3; }
#how .g3 .guide-side { display: block; padding: 0; margin-top: 26px; }
#how .g3 .guide-text { display: flex; gap: 18px; align-items: flex-start; min-height: 104px; }
#how .g3 .guide-text .num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--amber); color: #111; font: 800 22px var(--body); box-shadow: none; }
#how .g3 .gwhere { margin: 0 0 4px; font: 700 12px var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--amber); }
#how .g3 .guide-text h3 { margin: 0 0 6px; font: 800 clamp(20px, 1.6vw, 26px)/1.2 var(--body); color: #fff; text-shadow: none; }
#how .g3 .guide-text p#gText { margin: 0; font: 400 16px/1.55 var(--body); color: #b5b5b5; }
#how .g3 .xp { height: 4px; margin: 20px 0 18px; border-radius: 4px; background: #222; overflow: hidden; border: 0; }
#how .g3 .xp i { display: block; height: 100%; background: var(--amber); border-radius: 4px; transition: width .4s ease; }
.gchips { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gchips::-webkit-scrollbar { display: none; }
.gchips li { flex: none; }
.gchips button { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #121212; border: 1px solid #2a2a2a; color: #9a9a9a; font: 600 13px var(--body); white-space: nowrap; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.gchips b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #222; color: #ccc; font: 700 12px var(--body); }
.gchips button:hover { color: #fff; border-color: #444; }
.gchips button.on { color: #fff; border-color: var(--amber); background: rgba(255,176,0,.08); }
.gchips button.on b { background: var(--amber); color: #111; }
@media (max-width: 700px) { #how .g3 .gnav { width: 38px; height: 38px; font-size: 20px; } #how .g3 .guide-text .num { width: 42px; height: 42px; font-size: 18px; } }
#how #stages[hidden] { display: none !important; }
#how .g3 .guide-stage::before { filter: blur(24px) brightness(.6) saturate(1.1); }
#how .gchips { display: none !important; } /* step chips removed */
#how .g3 .xp { margin-bottom: 0; }
#how .g3 .gwhere, #how .g3 .xp { display: none !important; } /* step label and progress line removed */
#how .g3 .guide-text { min-height: 0; align-items: center; }
#how .guide.g3 { margin-bottom: 48px; }
#how .g3 .guide-text > div, #how .g3 .guide-text p#gText, #how .g3 .guide-text h3 { max-width: none; flex: 1; }

/* install guide: blurred copy of the screenshot fills the empty sides */
#how .g3 .guide-stage::before { display: none; }
#how .g3 .gbg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(30px) brightness(.55) saturate(1.15); transform: scale(1.05); z-index: 0; pointer-events: none; transition: opacity .4s; }
#how .g3 .guide-stage .gs { z-index: 1; }
#how .g3 .guide-stage .gs { background: transparent !important; }
#how .g3 .gbg { max-width: none !important; max-height: none !important; left: -40px; top: -40px; right: auto; bottom: auto; width: calc(100% + 80px); height: calc(100% + 80px); transform: none; }
#how .g3 .guide-stage .gs.on { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 0 50px rgba(0,0,0,.7); }
#how .g3 .gbg { filter: blur(30px) brightness(.32) saturate(1.1); }

/* QR card: dark glass card, QR keeps its own small white tile */
.qr { background: rgba(12,12,12,.78); color: #fff; border: 1px solid rgba(255,255,255,.14); padding: 10px 18px 10px 10px; border-radius: 12px; backdrop-filter: blur(8px); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.qr #qrCode { background: #fff; padding: 6px; border-radius: 8px; line-height: 0; }
.qr p { color: #bdbdbd; font-size: 13px; }
.qr p b { color: #fff; }
#how .g3 .gbg { display: none !important; } /* plain dark sides, no blurred fill */
#how .g3 .guide-stage { background: #000 !important; }
#how .g3 .guide-stage { height: auto !important; min-height: 0 !important; aspect-ratio: 684 / 477; }
#how .guide.g3 { max-width: 860px; }

/* page-wide TV overlay removed: no white tracking band, grain, scan lines or flashes */
.crt { display: none !important; }
body.tracking-hit .footage .base, body.tracking-hit .mod-img img, body.tracking-hit .clip img { animation: none !important; }
body.tracking-hit .chroma.r, body.tracking-hit .chroma.b { translate: none !important; }
/* install box: horror scene behind the screenshot */
#how .g3 .guide-stage { background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.55) 50%, rgba(0,0,0,.25)), url(images/how-stage.jpg?v=2) center / cover no-repeat, #000 !important; }
/* screenshot sits inside the horror scene with space on every side */
#how .g3 .guide-stage .gs { inset: auto !important; top: 7% !important; left: 50% !important; height: 86% !important; width: auto !important; max-width: 84% !important; transform: translateX(-50%); border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 20px 50px rgba(0,0,0,.8) !important; }
#how .g3 .guide-stage .gmock { width: auto !important; aspect-ratio: 1; overflow: hidden; }
/* install section: horror night scene behind the whole section */
#how { position: relative; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 18%, rgba(0,0,0,.62) 60%, #000 100%), radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,.15), rgba(0,0,0,.75)), url(images/how-bg.jpg?v=2) center 30% / cover no-repeat, #000 !important; }
/* section bg = the castle scene; screenshot fills the box */
#how { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 16%, rgba(0,0,0,.55) 70%, #000 100%), url(images/how-stage.jpg?v=2) center / cover no-repeat, #000 !important; }
#how .g3 .guide-stage { background: #000 !important; }
#how .g3 .guide-stage .gs { top: 0 !important; left: 0 !important; height: 100% !important; width: 100% !important; max-width: none !important; transform: none !important; border-radius: 0; box-shadow: none !important; object-fit: contain; }
#how .g3 .guide-stage .gmock { left: 50% !important; width: auto !important; transform: translateX(-50%) !important; }
/* section bg: smiley figures in a red forest (no text) */
#how { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 18%, rgba(0,0,0,.6) 70%, #000 100%), url(images/how-bg2.jpg) center 20% / cover no-repeat, #000 !important; }
/* section bg: Verity at the cabin window (caption cropped off) */
#how { background: linear-gradient(180deg, #000 0px, rgba(0,0,0,.25) 36px, rgba(0,0,0,.55) 45%, #000 100%), url(images/how-bg3.jpg?v=8) center calc(40px - 15.8vw) / 100% auto no-repeat, #000 !important; }
#how .head .sub, #how .head .kicker { text-shadow: 0 0 6px #000, 0 2px 14px #000, 0 0 2px #000; color: #ddd; }
#how .head .kicker { color: var(--amber); }
/* blurred copy fills any empty space inside the box */
#how .g3 .gbg { display: block !important; left: -40px; top: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none !important; object-fit: cover; filter: blur(28px) brightness(.5) saturate(1.1); transform: none; z-index: 0; }
#how .g3 .gmock { padding: 0 !important; place-items: center; }
#how .g3 .gmock .pp { transform-origin: center; }
/* square iOS screens: phone card like step 1 */
#how .g3 .guide-stage img.gs.sq { top: 4% !important; height: 92% !important; left: 50% !important; width: auto !important; max-width: 80% !important; transform: translateX(-50%) !important; object-fit: contain; border-radius: 22px; border: 6px solid #111; box-shadow: 0 24px 60px rgba(0,0,0,.75) !important; background: #111 !important; }
#how .g3 .guide-stage img.gs.sq { top: 10% !important; height: 80% !important; }
#how .g3 .guide-stage img.gs.sq { border-width: 3px !important; border-radius: 18px; }
#how .g3 .gmock .pp { box-shadow: 0 20px 40px rgba(0,0,0,.6), 0 0 0 2.5px #141414; border-radius: 16px; }

/* ---------- Inside the app: App Store screenshots slider ---------- */
.appshots .head { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.appshots .head .kicker { justify-content: center; }
.appshots .head .sub { margin-inline: auto; }
.as-wrap { position: relative; }
.as-rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 10px calc(50% - min(980px, 84vw) / 2) 20px; }
.as-rail::-webkit-scrollbar { display: none; }
.as-slide { flex: none; width: min(980px, 84vw); margin: 0; scroll-snap-align: center; border-radius: 22px; overflow: hidden; border: 1px solid #2a2a2a; box-shadow: 0 30px 70px rgba(0,0,0,.65); opacity: .45; transform: scale(.94); transition: opacity .4s ease, transform .4s ease; }
.as-slide.on { opacity: 1; transform: none; }
.as-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1266 / 945; object-fit: cover; }
.as-btn { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, border-color .2s, color .2s; }
.as-btn:hover { background: var(--amber); border-color: var(--amber); color: #111; }
.as-prev { left: max(12px, calc(50% - min(980px, 84vw) / 2 - 64px)); }
.as-next { right: max(12px, calc(50% - min(980px, 84vw) / 2 - 64px)); }
.as-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.as-dots button { width: 22px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: #3a3a3a; cursor: pointer; transition: background .25s, width .25s; }
.as-dots button.on { width: 36px; background: var(--amber); }
@media (max-width: 700px) { .as-btn { width: 38px; height: 38px; font-size: 20px; } .as-slide { border-radius: 14px; } }
#how { padding-top: calc(27vw - 20px) !important; }
@media (max-width: 700px) { #how { padding-top: 34vw !important; } }
#how .g3 .guide-stage img.gs:not(.sq) { object-fit: cover !important; }
/* heading on top, face visible below it, box starts at the chest */
#how { padding-top: 56px !important; }
#how .head { margin-bottom: 0 !important; }
#how .guide.g3 { margin-top: max(24px, calc(32vw - 250px)) !important; }
@media (max-width: 700px) { #how { padding-top: 40px !important; } }
#how .guide.g3 { margin-top: max(calc(30vw - 202px), calc(14.2vw + 23px)) !important; }
#how .guide.g3 { margin-top: calc(14.2vw + 13px) !important; }
#how .guide.g3 { margin-top: max(16px, calc(14.2vw - 37px)) !important; }
#how .guide.g3 { margin-top: max(16px, calc(11.7vw + 8px)) !important; }
/* back to: face behind the kicker, heading over the body, box right after the text */
#how { padding-top: 80px !important; }
#how .head { margin-bottom: 36px !important; }
#how .guide.g3 { margin-top: 0 !important; }
/* face fills the top of the section, heading under the chin */
#how { padding-top: max(60px, calc(23vw - 40px)) !important; }
#how { padding-top: max(60px, calc(26vw - 20px)) !important; }
#how { padding-top: max(60px, calc(15vw - 10px)) !important; }
#how { padding-top: max(60px, calc(17.5vw - 10px)) !important; }
#how { padding-top: 80px !important; }
#how { padding-top: calc(50px + 6.2vw) !important; }

/* ---------- Most popular: haunted night background ---------- */
#mods { position: relative; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5,5,5,0) 78%, #050505 100%),
    url(images/haunt-ground.svg) center bottom / 100% auto no-repeat,
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(150,10,10,.07), transparent 70%),
    linear-gradient(180deg, #050505 0%, #060606 55%, #0d0909 88%, #120a0a 100%) !important; }
#mods::before { content: ""; position: absolute; top: -6px; right: -6px; width: 190px; height: 190px; background: url(images/haunt-web.svg) center / contain no-repeat; transform: scaleX(-1); pointer-events: none; z-index: 0; }
#mods::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 220px; pointer-events: none; z-index: 0; opacity: .5;
  background: radial-gradient(ellipse 30% 40% at 20% 80%, rgba(200,200,200,.12), transparent 70%), radial-gradient(ellipse 35% 45% at 70% 85%, rgba(200,200,200,.1), transparent 70%);
  animation: modsFog 16s ease-in-out infinite alternate; }
@keyframes modsFog { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
#mods > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #mods::after { animation: none; } }
@media (max-width: 700px) { #mods::before { width: 110px; height: 110px; } }
/* phone cards: no dark border, just rounded corners and a soft shadow */
#how .g3 .guide-stage img.gs.sq { border: 0 !important; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.7) !important; }
#how .g3 .gmock .pp { box-shadow: 0 20px 50px rgba(0,0,0,.7) !important; }
#mods::before { display: none !important; } /* no cobwebs */

/* ---------- light haunted background: numbers + All horror mods ---------- */
#stats, #all { position: relative; isolation: isolate; }
#stats { background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(150,10,10,.05), transparent 70%), #050505 !important; }
#all { background:
    linear-gradient(180deg, rgba(0,0,0,0) 72%, #000 100%),
    url(images/haunt-ground.svg) center bottom / 100% auto no-repeat,
    radial-gradient(ellipse 50% 30% at 50% 0%, rgba(150,10,10,.05), transparent 70%),
    linear-gradient(180deg, #050505 0%, #060606 70%, #0c0909 100%) !important; }
#all::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 260px; pointer-events: none; z-index: 0; opacity: .35;
  background: radial-gradient(ellipse 30% 40% at 25% 80%, rgba(200,200,200,.1), transparent 70%), radial-gradient(ellipse 35% 45% at 75% 85%, rgba(200,200,200,.08), transparent 70%);
  animation: modsFog 18s ease-in-out infinite alternate; }
#all > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { #all::after { animation: none; } }

/* ---------- watching eyes (whole site): blink on / off, red or yellow ---------- */
.watch { position: absolute; z-index: 2; width: 18px; height: 5px; pointer-events: none; animation: watchBlink 6s steps(1, end) infinite; }
.watch::before, .watch::after { content: ""; position: absolute; top: 0; width: 5px; height: 5px; background: currentColor; box-shadow: 0 0 6px currentColor, 0 0 12px currentColor; }
.watch::before { left: 0; } .watch::after { right: 0; }
.watch.rd { color: #ff2a2a; } .watch.yl { color: #ffc21a; }
@keyframes watchBlink { 0% { opacity: 0; } 12% { opacity: .9; } 46% { opacity: .9; } 48% { opacity: 0; } 50% { opacity: .9; } 70% { opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 700px) { .watch { display: none; } }
@media (prefers-reduced-motion: reduce) { .watch { animation: none; opacity: .6; } }
/* slider end cards: App Store button */
.as-cta { display: grid; place-items: center; text-align: center; background: radial-gradient(ellipse at 50% 40%, rgba(255,42,42,.12), transparent 70%), #0b0b0b; aspect-ratio: 1266 / 945; padding: 24px; }
.as-cta img { width: 96px !important; height: 96px !important; aspect-ratio: 1 !important; border-radius: 22px; margin: 0 auto 18px; }
.as-cta h3 { margin: 0 0 6px; font: 800 clamp(22px, 2vw, 32px)/1.2 var(--body); color: #fff; }
.as-cta p { margin: 0 0 22px; color: #9a9a9a; font: 500 15px var(--body); }

/* categories strip: blends into the page (no bright label, no solid band) */
.ticker { background: transparent !important; border-top: 1px solid rgba(255,255,255,.06) !important; border-bottom: 1px solid rgba(255,255,255,.06) !important; }
.ticker-label { background: #050505 !important; color: var(--amber) !important; border-right: 1px solid rgba(255,255,255,.08) !important; box-shadow: 12px 0 18px #050505; }
.ticker-view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track a { background: transparent !important; border-color: rgba(255,255,255,.06) !important; color: #bdbdbd !important; }
.ticker-track a:hover { color: var(--amber) !important; }
/* slider ends: only the App Store button, shown when that side would be empty */
.as-cta, .as-cta.on { background: none !important; border: 0 !important; box-shadow: none !important; transform: none !important; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.as-cta.near { opacity: 1; pointer-events: auto; }
.as-cta { place-items: center end !important; padding: 0 8px !important; }
.as-cta:last-child { place-items: center start !important; }
@media (max-width: 900px) { .as-cta { display: none !important; } }
.as-cta { padding: 0 !important; }
.as-cta > div { margin-right: max(0px, calc(((100vw - min(980px, 84vw)) / 2 - 24px) / 2 - 106px)); }
.as-cta:last-child > div { margin-right: 0; margin-left: max(0px, calc(((100vw - min(980px, 84vw)) / 2 - 24px) / 2 - 106px)); }
/* slider end: "Download here" + white App Store button */
.as-cta > div { text-align: center; }
.as-dl { margin: 0 0 12px; font: 700 13px var(--body); letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.as-cta .store { background: #fff !important; color: #111 !important; border-color: #fff !important; box-shadow: 0 10px 30px rgba(255,255,255,.12) !important; }
.as-cta .store small, .as-cta .store span { color: #111 !important; }
.as-cta .store .store-ico { fill: #111 !important; color: #111 !important; }
.as-cta .store:hover { background: var(--amber) !important; border-color: var(--amber) !important; }
/* "Download here": same style as the section labels (amber, typewriter font) */
.as-dl { font: 400 13px var(--mono) !important; letter-spacing: 3px !important; color: var(--amber) !important; text-shadow: 0 0 10px rgba(255,176,0,.35); }
.as-dl::before { content: "● "; color: var(--red); text-shadow: 0 0 8px var(--red); animation: blink 1.6s steps(1) infinite; }
.as-cta .store { box-shadow: 0 0 0 1px rgba(255,176,0,.35), 0 10px 30px rgba(255,42,42,.25) !important; }
.as-cta .store:hover { box-shadow: 0 0 0 1px var(--amber), 0 10px 30px rgba(255,176,0,.35) !important; }

/* iPad / iPhone switch for the screenshot slider */
.as-dev { display: flex; justify-content: center; gap: 4px; width: max-content; margin: -6px auto 22px; padding: 4px; border-radius: 999px; background: #111; border: 1px solid #262626; }
.as-dev button { font: 700 14px var(--body); color: #9a9a9a; background: none; border: 0; padding: 8px 22px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.as-dev button:hover { color: #fff; }
.as-dev button.on { background: var(--amber); color: #111; }
.as-rail.is-phone .as-slide:not(.as-cta) img { aspect-ratio: 1760 / 810; }
.as-rail.is-phone .as-cta { aspect-ratio: 1760 / 810; }
/* slider end: app icon + label + the site's red App Store button; side arrow hidden there */
.as-cta .as-logo { display: block; width: 72px !important; height: 72px !important; aspect-ratio: 1 !important; margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,176,0,.35), 0 12px 30px rgba(0,0,0,.6); }
.as-dl::before { content: none !important; }
.as-dl { margin-bottom: 14px !important; }
.as-cta .store, .as-cta .store:hover { background: var(--red) !important; border-color: var(--red) !important; color: #fff !important; box-shadow: 0 10px 30px rgba(255,42,42,.35) !important; }
.as-cta .store small, .as-cta .store span { color: #fff !important; }
.as-cta .store .store-ico { fill: #fff !important; color: #fff !important; }
.as-cta .store:hover { transform: translateY(-2px); }
.as-wrap.at-first .as-prev, .as-wrap.at-last .as-next { opacity: 0; pointer-events: none; }
.as-btn { transition: opacity .3s, background .2s, border-color .2s, color .2s; }
/* smooth iPad / iPhone switch: sliding pill + crossfade */
.as-dev { position: relative; }
.as-dev::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--amber); box-shadow: 0 0 16px rgba(255,176,0,.35); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.as-dev.ph::before { transform: translateX(100%); }
.as-dev button { position: relative; z-index: 1; min-width: 96px; transition: color .3s; }
.as-dev button.on { background: none !important; color: #111; }
.as-dev button:focus { outline: none; }
.as-dev button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.as-rail .as-slide:not(.as-cta) img { transition: opacity .28s ease; }
.as-rail.swap .as-slide:not(.as-cta) img { opacity: 0; }

/* ---------- Players right now: full redesign + haunted background ---------- */
#live { position: relative; isolation: isolate; overflow: hidden;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 14%, rgba(0,0,0,.62) 70%, #000 100%),
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,0,0,0), rgba(0,0,0,.6)),
    url(images/live-bg.jpg) center / cover no-repeat, #000 !important; }
#live::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 280px; z-index: 0; pointer-events: none; opacity: .4;
  background: radial-gradient(ellipse 30% 40% at 25% 80%, rgba(200,200,200,.1), transparent 70%), radial-gradient(ellipse 35% 45% at 75% 85%, rgba(200,200,200,.08), transparent 70%);
  animation: modsFog 18s ease-in-out infinite alternate; }
#live > .wrap { position: relative; z-index: 1; max-width: 1240px; }
#live .head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
#live .head .kicker { justify-content: center; }
#live .head .sub { margin-inline: auto; color: #b5b5b5; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: liveDot 1.4s ease-in-out infinite; }
@keyframes liveDot { 50% { opacity: .25; } }

#live .live-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
#live .live { position: relative; padding: 26px 22px 22px; text-align: left; border-radius: 16px; background: rgba(14,14,14,.82); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(0,0,0,.5); overflow: hidden; }
#live .live::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--amber); opacity: .85; }
#live .live:first-child::before { background: var(--red); box-shadow: 0 0 12px var(--red); }
#live .live b { display: block; font: 800 clamp(34px, 3vw, 46px)/1 var(--body) !important; color: #fff !important; text-shadow: none !important; letter-spacing: -.5px; }
#live .live span { display: block; margin-top: 10px; font: 500 14px/1.4 var(--body) !important; letter-spacing: 0 !important; color: #a9a9a9 !important; text-transform: none; }

#live .two { gap: 16px; }
#live .panel { padding: 24px 24px 18px; border-radius: 16px; background: rgba(14,14,14,.82); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
#live .panel h3 { font: 400 12px var(--mono) !important; letter-spacing: 2.5px; color: var(--amber); margin: 0 0 16px; }
#live .bars li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 4px 12px; padding: 9px 0; border: 0 !important; }
#live .bars li > div { grid-column: 1 / -1; }
#live .bars .flag { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,176,0,.1); color: var(--amber); border: 0 !important; font: 700 11px var(--body); }
#live .bars .flag svg { width: 16px; height: 16px; }
#live .bars .name { font: 600 15px var(--body); color: #eee; }
#live .bars .pct { font: 700 15px var(--body) !important; color: #fff !important; }
#live .bars .track { display: block; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07) !important; overflow: hidden; border: 0 !important; }
#live .bars .fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #b30000, var(--red) 40%, var(--amber)) !important; box-shadow: 0 0 10px rgba(255,42,42,.4); transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
#live .bars .fill::before, #live .bars .fill::after, #live .bars .track::before, #live .bars .track::after { display: none !important; }
@media (max-width: 900px) { #live .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { #live::after, .live-dot { animation: none; } }

/* ---------- Players right now v2: simple, no boxes ---------- */
#live .live-grid { gap: 0; margin: 0 auto 44px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
#live .live { background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; backdrop-filter: none; padding: 28px 16px; text-align: center; }
#live .live + .live { border-left: 1px solid rgba(255,255,255,.08) !important; }
#live .live::before { display: none !important; }
#live .live b { font-size: clamp(32px, 2.8vw, 44px) !important; }
#live .live:first-child b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; vertical-align: super; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: liveDot 1.4s ease-in-out infinite; }
#live .live span { font-size: 13px !important; color: #8f8f8f !important; }
#live .two { gap: 56px; }
#live .panel { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none; padding: 0 !important; border-radius: 0; }
#live .panel h3 { margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
#live .bars li { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; }
#live .bars .flag { display: none !important; }
#live .bars .name { font: 500 15px var(--body); color: #ddd; }
#live .bars .pct { font: 600 14px var(--body) !important; color: var(--amber) !important; }
#live .bars .track { height: 2px; border-radius: 2px; background: rgba(255,255,255,.06) !important; }
#live .bars .fill { background: var(--amber) !important; box-shadow: none !important; border-radius: 2px; }
@media (max-width: 900px) { #live .live:nth-child(3) { border-left: 0 !important; } #live .live:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); } #live .two { gap: 36px; } }
#live .head { margin-bottom: 40px; }

/* ---------- What players install: split bar + tiles ---------- */
#live .share { max-width: 980px; margin: 0 auto; }
.share-stack { display: flex; height: 14px; border-radius: 14px; overflow: hidden; gap: 3px; margin-bottom: 26px; box-shadow: 0 0 24px rgba(255,120,0,.18); }
.share-stack i { display: block; min-width: 6px; }
.share-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.share-tiles li { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; border-radius: 14px; background: rgba(12,12,12,.72); border: 1px solid rgba(255,255,255,.07); backdrop-filter: blur(4px); transition: border-color .25s, transform .25s; }
.share-tiles li:hover { border-color: var(--c); transform: translateY(-2px); }
.share-tiles .st-ico { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.share-tiles .st-ico svg { width: 20px; height: 20px; }
.share-tiles b { font: 800 28px/1 var(--body); color: #fff; }
.share-tiles .st-name { font: 500 14px var(--body); color: #a9a9a9; margin-top: 4px; }
@media (max-width: 800px) { .share-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .share-tiles { grid-template-columns: 1fr; } }

/* ---------- What players install: horror list (rank, name, %, blood trail) ---------- */
#live .share { max-width: 760px; }
.share-h { font: 400 12px var(--mono); letter-spacing: 2.5px; color: var(--amber); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
#live .bars.blood li { grid-template-columns: 34px 1fr auto; gap: 8px 14px; padding: 14px 0 16px; border-bottom: 1px dashed rgba(255,255,255,.06) !important; }
#live .bars.blood .rk { font: 400 13px var(--mono); color: #6f6f6f; letter-spacing: 1px; }
#live .bars.blood li:first-child .rk { color: var(--red); text-shadow: 0 0 8px rgba(255,42,42,.6); }
#live .bars.blood .name { font: 600 16px var(--body); color: #eaeaea; }
#live .bars.blood .pct { font: 400 15px var(--mono) !important; color: #ff4a4a !important; text-shadow: 0 0 10px rgba(255,42,42,.45); }
#live .bars.blood li > div { grid-column: 2 / -1; }
#live .bars.blood .track { height: 3px; background: rgba(255,255,255,.05) !important; overflow: visible; }
#live .bars.blood .fill { position: relative; background: linear-gradient(90deg, #4a0000, #a30000 50%, #ff2a2a) !important; box-shadow: 0 0 8px rgba(255,42,42,.45) !important; border-radius: 3px; }
#live .bars.blood .fill::after { content: "" !important; display: block !important; position: absolute; right: -3px; top: 1px; width: 6px; height: 9px; border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%; background: #ff2a2a; box-shadow: 0 0 8px #ff2a2a; animation: drip 2.6s ease-in infinite; }
#live .bars.blood li:nth-child(2) .fill::after { animation-delay: .5s; } #live .bars.blood li:nth-child(3) .fill::after { animation-delay: 1s; }
#live .bars.blood li:nth-child(4) .fill::after { animation-delay: 1.5s; } #live .bars.blood li:nth-child(5) .fill::after { animation-delay: 2s; } #live .bars.blood li:nth-child(6) .fill::after { animation-delay: .25s; }
@keyframes drip { 0%, 40% { transform: translateY(0) scaleY(1); opacity: 1; } 80% { transform: translateY(10px) scaleY(1.3); opacity: .9; } 100% { transform: translateY(14px) scaleY(.6); opacity: 0; } }
#live .bars.blood li:hover .name { color: #fff; }
#live .bars.blood li:hover .fill { box-shadow: 0 0 14px rgba(255,42,42,.8) !important; }
@media (prefers-reduced-motion: reduce) { #live .bars.blood .fill::after { animation: none; } }
#live .bars.blood { border-top: 1px solid rgba(255,255,255,.08); }
/* blood bars: real drop (forms at the bar end, stretches, falls, fades) */
#live .bars.blood .fill::after { right: -4px !important; top: 0 !important; width: 7px !important; height: 7px !important; border-radius: 0 50% 50% 50% !important; background: radial-gradient(circle at 60% 60%, #ff5a5a, #c40000 70%) !important; box-shadow: 0 0 6px rgba(255,42,42,.8) !important; transform-origin: 50% 0; animation: bloodDrop 3.2s cubic-bezier(.55,0,.8,.4) infinite !important; }
@keyframes bloodDrop {
  0%   { transform: translateY(-2px) rotate(45deg) scale(.2); opacity: 0; }
  12%  { transform: translateY(-1px) rotate(45deg) scale(.6); opacity: 1; }
  45%  { transform: translateY(0) rotate(45deg) scale(1); opacity: 1; }
  60%  { transform: translateY(2px) rotate(45deg) scale(1, 1.25); opacity: 1; }
  85%  { transform: translateY(22px) rotate(45deg) scale(.9); opacity: .9; }
  100% { transform: translateY(30px) rotate(45deg) scale(.6); opacity: 0; }
}
#live .bars.blood li:nth-child(2) .fill::after { animation-delay: .6s !important; }
#live .bars.blood li:nth-child(3) .fill::after { animation-delay: 1.3s !important; }
#live .bars.blood li:nth-child(4) .fill::after { animation-delay: 1.9s !important; }
#live .bars.blood li:nth-child(5) .fill::after { animation-delay: 2.5s !important; }
#live .bars.blood li:nth-child(6) .fill::after { animation-delay: .3s !important; }
/* small bead that stays at the bar end */
#live .bars.blood .fill::before { content: "" !important; display: block !important; position: absolute; right: -3px; top: -1px; width: 5px; height: 5px; border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 6px #ff2a2a; }

/* ---------- Worldwide: views by country ---------- */
.world { position: relative; background: radial-gradient(ellipse 45% 60% at 80% 50%, rgba(150,10,10,.08), transparent 70%), #000 !important; }
.world-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; max-width: 1180px; }
.world-text h2 { margin-top: 0; }
.world-text #wCount { color: var(--amber); }
.world-text .sub { color: #a9a9a9; }
.world-total { margin-top: 18px; color: #8f8f8f; font: 500 15px var(--body); }
.world-total b { color: #fff; font-weight: 800; }
.world-list { list-style: none; margin: 0; padding: 0; }
.world-list li { display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 8px; align-items: center; padding: 10px 0; }
.world-list .wc { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #111; border: 1px solid rgba(255,176,0,.3); color: var(--amber); font: 400 13px var(--mono); letter-spacing: 1px; }
.world-list .wn { font: 600 16px var(--body); color: #eee; }
.world-list .wv { font: 400 15px var(--mono); color: #ff4a4a; text-shadow: 0 0 8px rgba(255,42,42,.4); }
.world-list .wv small { font: 500 12px var(--body); color: #777; text-shadow: none; }
.world-list .wt { grid-column: 2 / -1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
.world-list .wf { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #5a0000, #c40000 50%, #ff2a2a); box-shadow: 0 0 8px rgba(255,42,42,.45); transition: width 1.2s cubic-bezier(.2,.7,.2,1) var(--d); }
.world-list.in .wf { width: var(--w); }
@media (max-width: 900px) { .world-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .world-list .wf { transition: none; width: var(--w); } }
.world-list li { grid-template-columns: 40px 1fr; }
.world-list li.wo .wc { font-size: 12px; color: #bbb; border-color: rgba(255,255,255,.15); }
.world-list li.wo .wn { color: #bbb; }
.world-list li.wo .wf { background: linear-gradient(90deg, #3a3a3a, #777) !important; box-shadow: none !important; }
/* bigger, clearer blood drop */
#live .bars.blood .fill::after { right: -5px !important; top: 1px !important; width: 10px !important; height: 10px !important; background: radial-gradient(circle at 65% 65%, #ff6b6b, #e00000 55%, #8a0000) !important; box-shadow: 0 0 10px rgba(255,42,42,.9), 0 0 3px #ff2a2a !important; animation: bloodDrop2 3.6s cubic-bezier(.6,0,.85,.35) infinite !important; }
@keyframes bloodDrop2 {
  0%   { transform: translateY(-3px) rotate(45deg) scale(.15); opacity: 0; }
  15%  { transform: translateY(-2px) rotate(45deg) scale(.55); opacity: 1; }
  50%  { transform: translateY(0) rotate(45deg) scale(.95); opacity: 1; }
  62%  { transform: translateY(3px) rotate(45deg) scale(1, 1.35); opacity: 1; }
  88%  { transform: translateY(34px) rotate(45deg) scale(.9); opacity: 1; }
  100% { transform: translateY(44px) rotate(45deg) scale(.5); opacity: 0; }
}
#live .bars.blood .fill::before { width: 6px !important; height: 6px !important; top: -1.5px !important; right: -3px !important; }
/* drop falls once when the section opens; no dot left behind */
#live .bars.blood .fill::before { display: none !important; }
#live .bars.blood .fill::after { opacity: 0; animation: none !important; }
#live .share.in .bars.blood .fill::after { animation: bloodDrop2 2.4s cubic-bezier(.6,0,.85,.35) 1 forwards !important; }
#live .share.in .bars.blood li:nth-child(1) .fill::after { animation-delay: 1.2s !important; }
#live .share.in .bars.blood li:nth-child(2) .fill::after { animation-delay: 1.45s !important; }
#live .share.in .bars.blood li:nth-child(3) .fill::after { animation-delay: 1.7s !important; }
#live .share.in .bars.blood li:nth-child(4) .fill::after { animation-delay: 1.95s !important; }
#live .share.in .bars.blood li:nth-child(5) .fill::after { animation-delay: 2.2s !important; }
#live .share.in .bars.blood li:nth-child(6) .fill::after { animation-delay: 2.45s !important; }
@media (prefers-reduced-motion: reduce) { #live .share.in .bars.blood .fill::after { animation: none !important; } }
/* smooth gravity drop: forms, hangs, falls to the next row, fades on landing */
@keyframes bloodDrop3 {
  0%   { transform: translateY(-3px) rotate(45deg) scale(.1); opacity: 0; animation-timing-function: ease-out; }
  30%  { transform: translateY(-1px) rotate(45deg) scale(.9); opacity: 1; animation-timing-function: ease-in-out; }
  45%  { transform: translateY(2px) rotate(45deg) scale(1, 1.3); opacity: 1; animation-timing-function: cubic-bezier(.45,0,.95,.6); }
  92%  { transform: translateY(62px) rotate(45deg) scale(.95, 1.15); opacity: 1; animation-timing-function: ease-out; }
  100% { transform: translateY(66px) rotate(45deg) scale(1.4, .4); opacity: 0; }
}
#live .share.in .bars.blood .fill::after { animation-name: bloodDrop3 !important; animation-duration: 2.8s !important; animation-timing-function: linear !important; }
#live .bars.blood li { grid-template-columns: 34px 1fr; }

/* ---------- responsive fixes (QA pass) ---------- */
.brand span { white-space: nowrap; }
@media (max-width: 600px) {
  .topbar .brand small { display: none; }
  .topbar .brand span { font-size: 14px; letter-spacing: 2px; }
  .topbar .brand img { width: 32px; height: 32px; }
}
.am-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-body strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#how .g3 .gmock { overflow: hidden; }
.qr[hidden] { display: none !important; }
#mods [data-cat][hidden] { display: none !important; }

/* ---------- QA: readable small text + finger-sized tap targets ---------- */
.store small { font-size: max(10px, .62em); }
.cf-tag { font-size: 12px !important; }
.ticker-label { font-size: 12px !important; }
.as-dots button { height: 24px !important; padding: 10px 0 !important; background-clip: content-box !important; }
.footer .links a { display: inline-block; padding: 10px 6px; }
.sticky-cta .store small { font-size: 10px !important; }
/* QA: consistent centred headings on single-column layouts; eyes only where there is empty margin */
@media (max-width: 900px) { .world-text { text-align: center; } .world-text .kicker { justify-content: center; } .world-text .sub { margin-inline: auto; } }
@media (max-width: 1200px) { .watch { display: none !important; } }
/* QA: button text never splits onto two lines on phones; sticky bar title fits */
.am-get, .cf-get, .cf-card .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .am-get { font-size: 12px !important; padding: 10px 6px !important; letter-spacing: .2px !important; }
  .am-body { padding: 10px 10px 12px !important; }
  .sticky-cta b { font-size: 13px; white-space: nowrap; }
  .sticky-cta span { font-size: 11px; }
}
@media (max-width: 360px) { .am-get { font-size: 11px !important; } }
.sticky-cta b em { font-style: normal; }
@media (max-width: 600px) { .xs-hide { display: none; } }
/* QA small phones (<=420px): header and hero top line never overlap */
@media (max-width: 420px) {
  .topbar .brand span { display: none; }
  .topbar .store-sm { transform: scale(.92); transform-origin: right center; }
  .hero .osd.tr { display: none; }
  .hero .osd { font-size: 11px; }
}
@media (max-width: 600px) and (min-width: 421px) { .hero .osd.tr { font-size: 11px; } }
/* phones: category filters swipe sideways, no arrow buttons */
@media (max-width: 700px) {
  .tabs-wrap .tabs-arrow, .am-catwrap .tabs-arrow { display: none !important; }
  .tabs-wrap { gap: 0 !important; }
  #mods .tabs, .am-catwrap .am-cats { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-inline: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  #mods .tabs::-webkit-scrollbar { display: none; }
  #mods .tabs > *, .am-catwrap .am-cats > * { flex: none; scroll-snap-align: start; }
}
/* phones: Most popular ends with breathing room; numbers band compact (3 + 2), fits one screen */
@media (max-width: 700px) {
  #mods { padding-bottom: 48px !important; }
  #stats { padding-top: 32px !important; }
  .ns-band { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  .ns-cell { grid-column: span 2; padding: 16px 6px 14px !important; border: 0 !important; }
  .ns-cell:nth-child(4), .ns-cell:nth-child(5) { grid-column: span 3; border-top: 1px solid #262626 !important; }
  .ns-cell::before { display: block !important; top: 20% !important; bottom: 20% !important; }
  .ns-cell:nth-child(1)::before, .ns-cell:nth-child(4)::before { display: none !important; }
  .ns-cell b { font-size: 24px !important; }
  .ns-cell p { font-size: 11px !important; letter-spacing: .6px !important; margin: 6px 0 2px !important; line-height: 1.25; }
  .ns-cell small { font-size: 11px !important; }
}
/* phones: filter rows start at the first tab ("All" fully visible), no snap jump */
@media (max-width: 700px) {
  #mods .tabs, .am-catwrap .am-cats { scroll-snap-type: none !important; scroll-padding-left: 0; padding-left: 0 !important; }
  .am-catwrap .am-cats button:first-child { padding-left: 4px; }
}
/* phones: All mods shows one card per row, full names */
@media (max-width: 520px) {
  .am-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .am-body { padding: 14px 16px 16px !important; }
  .am-body small { font-size: 12px !important; }
  .am-body strong { white-space: normal !important; font-size: 17px !important; line-height: 1.3 !important; }
  .am-get { font-size: 14px !important; padding: 12px !important; }
}
#get .footage .base.cabin { object-fit: cover; object-position: 63% 0%; }
.sticky-cta span { white-space: nowrap; }
/* every action button uses the same red style as the App Store button */
.hero .ghost, .am-more:not(.am-store) {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px !important; border-radius: 6px !important; border: 0 !important;
  background: var(--red) !important; color: #fff !important; text-decoration: none !important;
  font: 800 16px var(--body) !important; letter-spacing: .3px !important; text-shadow: none !important;
  box-shadow: 0 12px 40px rgba(255,42,42,.45) !important; transition: transform .2s, box-shadow .2s;
}
.hero .ghost::after, .hero .ghost::before { display: none !important; }
.hero .ghost:hover, .am-more:not(.am-store):hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(255,42,42,.6), 0 0 0 2px #fff !important; color: #fff !important; }
.hero .ghost { min-height: 69px !important; padding: 0 30px !important; font-size: 18px !important; }

/* screenshot preview (lightbox) */
.as-lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 64px 72px 56px; background: rgba(0,0,0,.92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease; }
.as-lb[hidden] { display: none !important; }
.as-lb.on { opacity: 1; }
.as-lb img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.8); transform: scale(.96); transition: transform .25s ease; }
.as-lb.on img { transform: none; }
.as-lb-x { position: absolute; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.as-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.as-lb-p { left: 14px; } .as-lb-n { right: 14px; }
.as-lb-x:hover, .as-lb-nav:hover { background: var(--amber); border-color: var(--amber); color: #111; }
.as-lb-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; margin: 0; font: 400 13px var(--mono); letter-spacing: 2px; color: var(--amber); }
@media (max-width: 700px) { .as-lb { padding: 64px 10px 56px; } .as-lb-nav { top: auto; bottom: 8px; transform: none; width: 42px; height: 42px; } .as-lb-p { left: 20%; } .as-lb-n { right: 20%; } .as-lb img { border-radius: 10px; } }
/* See the app: no fill, outline only */
.hero .ghost { background: transparent !important; border: 1px solid rgba(255,255,255,.35) !important; box-shadow: none !important; }
.hero .ghost:hover { background: rgba(255,255,255,.06) !important; border-color: #fff !important; box-shadow: none !important; }
/* info chips (final section) */
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px auto 26px; padding: 0; max-width: 720px; }
.chips li { padding: 9px 16px; border-radius: 12px; background: rgba(18,18,18,.75); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); font: 700 15px var(--body); color: #fff; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 500px) { .chips { gap: 8px; } .chips li { font-size: 13px; padding: 7px 12px; } }
#get .chips { max-width: 900px; width: max-content; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { #get .chips { width: auto; } }

/* ---------- scroll progress bar under the header ---------- */
.topbar { position: fixed; }
.scrollbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform: scaleX(0); transform-origin: left center; pointer-events: none;
  background: linear-gradient(90deg, #a30000, var(--red) 45%, var(--amber)); box-shadow: 0 0 10px rgba(255,60,30,.7); }
.scrollbar::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; translate: 0 -50%; border-radius: 50%; background: #ffd23b; box-shadow: 0 0 10px #ffb000; }

/* ---------- smiley back-to-top with progress ring + blast ---------- */
.totop { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: #0c0c0c; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 22px rgba(255,176,0,.25);
  opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .3s, transform .3s; }
.totop.on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop .tt-bg { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; }
.totop .tt-ring { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255,176,0,.8)); transition: stroke-dashoffset .1s linear; }
.totop img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(255,217,59,.7)); transition: transform .3s; }
.totop:hover img { transform: translateY(-3px) rotate(-8deg) scale(1.08); }
.totop.blast img { animation: ttBlast .5s ease-out; }
@keyframes ttBlast { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(12deg); } 100% { transform: scale(1); } }
.tt-px { position: fixed; z-index: 61; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 2px; pointer-events: none; animation: ttFly .85s cubic-bezier(.2,.7,.3,1) forwards; }
.tt-px.face { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: url(images/cursor-smiley.png?v=48) center / contain no-repeat; }
@keyframes ttFly { to { transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(.4); opacity: 0; } }
@media (max-width: 899px) { .totop { right: 14px; bottom: 84px; width: 54px; height: 54px; } .totop img { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .totop, .totop img { transition: none; } }

/* ---------- QA: button alignment + one size system ---------- */
/* slider arrows: 48px, centred on the cards / screenshot */
.cf-nav { top: calc(50% - 4px) !important; transform: translateY(-50%) !important; width: 48px !important; height: 48px !important; }
.cf-nav:hover { transform: translateY(-50%) scale(1.06) !important; }
#how .g3 .gnav, .as-btn { width: 48px !important; height: 48px !important; }
/* filter arrows: 40px everywhere */
.tabs-wrap .tabs-arrow, .am-catwrap .tabs-arrow { width: 40px !important; height: 40px !important; font-size: 20px !important; flex: none; }
/* close / prev / next in both previews: 48px, arrows centred on the picture area */
.as-lb-x, .glb-x { width: 48px !important; height: 48px !important; }
.as-lb-nav, .glb-p, .glb-n { width: 48px !important; height: 48px !important; }
.as-lb { padding: 60px 76px !important; }
.as-lb-nav { top: 50% !important; }
@media (max-width: 700px) {
  .cf-nav, #how .g3 .gnav, .as-btn { width: 40px !important; height: 40px !important; }
  .as-lb { padding: 60px 10px 76px !important; }
}
.as-lb img, .glb img { max-height: calc(100vh - 130px) !important; max-width: calc(100vw - 160px) !important; width: auto; height: auto; object-fit: contain; }
@media (max-width: 700px) { .as-lb img, .glb img { max-width: calc(100vw - 20px) !important; max-height: calc(100vh - 150px) !important; } }
.cf-nav { margin-top: 0 !important; }
.glb-p, .glb-n { transform: translateY(-50%) !important; }
#how .g3 .guide-stage .gs { image-rendering: auto; }
/* slider side download: only when the side gap is wide enough for it */
@media (max-width: 1539px) { .as-cta { visibility: hidden !important; pointer-events: none !important; } .as-wrap.at-first .as-prev, .as-wrap.at-last .as-next { opacity: .35 !important; pointer-events: none; } }
.ns-band:has(.ns-cell:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 700px) { .ns-band:has(.ns-cell:nth-child(3):last-child) .ns-cell { grid-column: auto !important; border-top: 0 !important; } .ns-band:has(.ns-cell:nth-child(3):last-child) .ns-cell:nth-child(n+2)::before { display: block !important; } }

/* =================== Interactive install demo (iPad + iPhone) =================== */
.idemo { max-width: 1180px; margin: 0 auto 56px; }
.id-tog { display: none; width: max-content; margin: 0 auto 18px; padding: 4px; gap: 4px; border-radius: 999px; background: #111; border: 1px solid #262626; }
.id-tog button { font: 700 14px var(--body); color: #9a9a9a; background: none; border: 0; padding: 8px 22px; border-radius: 999px; cursor: pointer; }
.id-tog button.on { background: var(--amber); color: #111; }
.id-stage { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 56px); min-height: 520px; }
.dv { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dv figcaption { font: 400 12px var(--mono); letter-spacing: 2px; color: #8a8a8a; text-transform: uppercase; }
.dv-frame { position: relative; background: linear-gradient(145deg, #2b2b2e, #121214); border-radius: 34px; padding: 14px; box-shadow: 0 0 0 1px #3a3a3d, 0 30px 70px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.06); transition: width .6s cubic-bezier(.4,0,.2,1), height .6s cubic-bezier(.4,0,.2,1); }
.dv-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #000; }
/* iPad: landscape 4:3 */
.dv.ipad .dv-frame { width: min(640px, 52vw); aspect-ratio: 4 / 3; height: auto; border-radius: 30px; padding: 16px; }
/* iPhone: portrait for app steps, landscape inside the game */
.dv.iphone .dv-frame { width: 236px; height: 486px; border-radius: 40px; padding: 11px; }
.dv.iphone .dv-screen { border-radius: 30px; }
.dv.iphone.land .dv-frame { width: 486px; height: 236px; }
.dv.iphone .dv-frame::before { content: ""; position: absolute; z-index: 5; left: 50%; top: 18px; width: 70px; height: 20px; translate: -50% 0; border-radius: 12px; background: #000; transition: all .6s; }
.dv.iphone.land .dv-frame::before { left: 18px; top: 50%; width: 20px; height: 70px; translate: 0 -50%; }
.scr { position: absolute; inset: 0; container-type: size; transition: opacity .18s ease; color: #111; font-family: var(--body); }
.scr.out { opacity: 0; }
.scr.app { font-size: min(5cqw, 2.55cqh); background: #f6f5f1; }
.scr.game { font-size: min(2.25cqw, 3.1cqh); color: #fff; }

/* finger + tap ripple */
.finger { position: absolute; left: 0; top: 0; z-index: 9; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 34%, rgba(255,255,255,.45) 35% 60%, transparent 62%); box-shadow: 0 4px 14px rgba(0,0,0,.45);
  transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .3s; }
.finger.show { opacity: 1; }
.finger.tapping { animation: fTap .42s ease-out; }
.finger.tapping::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--amber); animation: fRing .42s ease-out forwards; }
@keyframes fTap { 40% { scale: .78; } 100% { scale: 1; } }
@keyframes fRing { from { scale: .6; opacity: 1; } to { scale: 2.2; opacity: 0; } }
[data-tap] { position: relative; cursor: pointer; outline: 2px solid rgba(255,42,42,.9); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(255,42,42,.25); animation: tapGlow 1.4s ease-in-out infinite; }
@keyframes tapGlow { 50% { outline-color: rgba(255,176,0,.95); box-shadow: 0 0 0 6px rgba(255,176,0,.2); } }
[data-tap].pressed { transform: scale(.95); filter: brightness(.88); transition: transform .12s, filter .12s; }

/* ---------- app screens ---------- */
.a-page { position: absolute; inset: 0; background: #f6f5f1; display: flex; flex-direction: column; }
.a-page.dim::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.a-bar { display: flex; justify-content: space-between; align-items: center; padding: 2.4em 1.1em .6em; font-size: .9em; }
.a-bar b { font-weight: 800; }
.a-hero { position: relative; flex: none; height: 34%; background: #222 center / cover; }
.a-page.dim .a-hero { height: 100%; }
.a-hero em { position: absolute; left: .8em; top: .8em; font: 800 .6em var(--body); font-style: normal; background: var(--amber); color: #111; padding: .35em .7em; border-radius: .5em; }
.a-body { padding: 1em 1.1em; display: flex; flex-direction: column; gap: .55em; flex: 1; }
.a-tag { color: #1a7f3c; font-weight: 700; font-size: .7em; }
.a-body h4 { margin: 0; font: 800 1.15em/1.2 var(--body); color: #111; }
.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.a-stats div { background: #fff; border-radius: .6em; padding: .55em .3em; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.a-stats b { display: block; font-size: .85em; } .a-stats span { font-size: .6em; color: #777; }
.a-install { margin-top: auto; margin-bottom: 1.2em; text-align: center; background: #1f9d4c; color: #fff; font-weight: 800; padding: .85em; border-radius: .8em; font-size: .95em; }
.a-sheet, .a-share { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 1.2em 1.2em 0 0; padding: 1.2em 1.1em 1.6em; display: flex; flex-direction: column; gap: .6em; box-shadow: 0 -8px 30px rgba(0,0,0,.3); animation: sheetUp .35s ease-out; }
@keyframes sheetUp { from { transform: translateY(40%); opacity: 0; } }
.a-sheet-top, .a-file { display: flex; gap: .7em; align-items: center; }
.a-sheet-top img { width: 2.8em; height: 2.8em; border-radius: .6em; object-fit: cover; }
.a-sheet-top b, .a-file b { display: block; font-size: .85em; } .a-sheet-top small, .a-file small { font-size: .62em; color: #1a7f3c; }
.a-file small { color: #777; }
.a-sheet h5 { margin: .2em 0 0; font: 800 1.05em var(--body); color: #111; }
.a-sheet p { margin: 0; font-size: .68em; color: #666; line-height: 1.4; }
.a-btn { text-align: center; padding: .8em; border-radius: .7em; font-weight: 800; font-size: .85em; }
.a-btn.a-dark { background: #111; color: #fff; } .a-btn.a-light { background: #eaf5ee; color: #1a7f3c; }
.a-not { text-align: center; font-size: .7em; color: #888; }
.a-doc { width: 2.4em; height: 3em; display: grid; place-items: end center; padding-bottom: .3em; border-radius: .3em; background: #f1f1f1; border: 1px solid #ddd; font: 700 .42em var(--body); font-style: normal; color: #999; }
.a-apps { display: flex; gap: 1em; padding: .6em 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.a-app { display: flex; flex-direction: column; align-items: center; gap: .35em; font-size: .65em; padding: .3em; border-radius: .8em; }
.mc-ico { width: 4.4em; height: 4.4em; border-radius: 1em; overflow: hidden; display: block; background: #8a5a35; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.mc-ico i { position: absolute; inset: 0; background:
  linear-gradient(#6fbf3a 0 30%, transparent 30%),
  repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 12%, transparent 12% 25%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 12%, transparent 12% 25%); }
.a-more { width: 4.4em; height: 4.4em; border-radius: 1em; background: #f1f1f1; display: grid; place-items: center; color: #555; font-size: 1em; letter-spacing: .1em; }
.a-acts { display: flex; gap: 1.6em; }
.a-acts div { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.a-ic { width: 2.6em; height: 2.6em; border-radius: 50%; background: #f1f1f1; display: grid; place-items: center; font-size: .9em; }
.a-acts small { font-size: .6em; color: #444; }

/* ---------- game screens (drawn, no screenshots) ---------- */
.scr.game { background:
  linear-gradient(180deg, transparent 58%, rgba(0,0,0,.25) 100%),
  repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 6px, transparent 6px 12px),
  linear-gradient(180deg, #8fc5ff 0%, #c9b6f0 38%, #d99ad8 52%, #6fae4f 53%, #5d9a40 100%); }
.g-menu { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em; }
.g-logo { font: 900 3.4em/1 var(--mono); letter-spacing: .06em; color: #e8e8e8; text-shadow: .06em .06em 0 #555, .12em .12em 0 #333; text-align: center; }
.g-logo small { display: block; font-size: .22em; letter-spacing: .3em; color: #ffe066; text-shadow: 1px 1px 0 #333; margin-top: .4em; }
.g-btns { display: flex; flex-direction: column; gap: .45em; width: 34%; min-width: 11em; }
.g-btn { text-align: center; padding: .55em; background: #c6c6c6; color: #303030; border: .14em solid #1d1d1d; box-shadow: inset 0 -.2em 0 #8b8b8b, inset 0 .14em 0 #fff; font: 700 .95em var(--mono); }
.g-btn.play { background: #3c8527; color: #fff; box-shadow: inset 0 -.2em 0 #2a5e1b, inset 0 .14em 0 #6dbb4f; }
.g-btn.realms { background: #7350f0; color: #fff; box-shadow: inset 0 -.2em 0 #4d33b8, inset 0 .14em 0 #9a80ff; }
.g-toast { position: absolute; top: .6em; left: 50%; translate: -50% 0; z-index: 3; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .55em 1.1em; background: rgba(20,20,20,.92); color: #fff; border: .12em solid #555; font: 700 .9em var(--body); animation: toastIn .4s ease-out; }
@keyframes toastIn { from { translate: -50% -140%; } }
.g-panel { position: absolute; inset: 0; background: #313233; display: flex; flex-direction: column; }
.g-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .6em 1em; background: #e5e5e5; color: #222; font: 800 .95em var(--mono); letter-spacing: .08em; }
.g-head span:first-child { font-family: var(--body); letter-spacing: 0; font-weight: 600; }
.g-panel > .g-toast { top: 3em; }
.g-set { flex: 1; display: grid; grid-template-columns: 36% 1fr; min-height: 0; }
.g-set ul { list-style: none; margin: 0; padding: .6em .5em; background: #48494a; display: flex; flex-direction: column; gap: .18em; overflow: hidden; }
.g-set li { padding: .42em .6em; font: 600 .85em var(--body); color: #eee; border-bottom: 1px solid rgba(255,255,255,.06); }
.g-opts { padding: .8em 1em; display: flex; flex-direction: column; gap: .5em; }
.g-opts b { font: 800 .8em var(--mono); color: #fff; letter-spacing: .08em; margin-top: .3em; }
.g-opts p { margin: 0; height: 1.9em; background: #3d3e40; border-bottom: 1px solid #555; }
.g-rows { width: 72%; margin: 1.2em auto 0; display: flex; flex-direction: column; gap: .55em; }
.g-row { display: flex; justify-content: space-between; align-items: center; padding: .55em .8em; background: #d0d0d0; color: #222; border: .12em solid #1d1d1d; box-shadow: inset 0 -.18em 0 #8b8b8b; }
.g-row b { font: 800 .85em var(--mono); letter-spacing: .06em; }
.g-row span { font: 700 .9em var(--body); } .g-row i { font-style: normal; font-weight: 900; margin-left: .5em; }
.g-pack { display: flex; gap: .7em; align-items: center; padding: .5em; background: #48494a; border: .12em solid #1d1d1d; }
.g-pack img { width: 3.2em; height: 3.2em; object-fit: cover; }
.g-pack b { display: block; font-size: .95em; color: #fff; } .g-pack small { font-size: .72em; color: #ccc; }
.g-act { text-align: center; padding: .55em; background: #d0d0d0; color: #222; border: .12em solid #1d1d1d; box-shadow: inset 0 -.18em 0 #8b8b8b; font: 700 .9em var(--body); }
.g-empty { margin: 0; text-align: center; font: 800 .8em var(--mono); color: #fff; }

/* caption + controls */
.id-cap { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 30px auto 0; min-height: 96px; }
.id-num { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--amber); color: #111; font: 800 20px var(--body); }
.id-title { margin: 0 0 6px; font: 800 clamp(19px, 1.6vw, 24px)/1.2 var(--body); color: #fff; }
.id-text { margin: 0; font: 400 15px/1.55 var(--body); color: #b5b5b5; }
.id-hint { margin: 6px 0 0; font: 400 12px var(--mono); letter-spacing: 1px; color: var(--amber); opacity: .8; }
.id-ctl { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.id-steps { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.id-steps button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #333; background: #121212; color: #9a9a9a; font: 700 13px var(--body); cursor: pointer; transition: all .2s; }
.id-steps button.done { color: #ddd; border-color: #555; }
.id-steps button.on { background: var(--amber); border-color: var(--amber); color: #111; box-shadow: 0 0 14px rgba(255,176,0,.45); }
.id-nav, .id-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333; background: #121212; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.id-play { font-size: 12px; letter-spacing: -2px; }
.id-nav:hover, .id-play:hover, .id-steps button:hover { border-color: var(--amber); color: var(--amber); }
.id-steps button.on:hover { color: #111; }

@media (max-width: 980px) {
  .id-tog { display: flex; }
  .id-stage { min-height: 0; }
  .id-stage.show-ipad .dv.iphone, .id-stage.show-iphone .dv.ipad { display: none; }
  .dv.ipad .dv-frame { width: min(640px, 92vw); }
  .id-stage.show-iphone { min-height: 520px; }
}
@media (max-width: 520px) {
  .dv.iphone .dv-frame { width: 210px; height: 432px; } .dv.iphone.land .dv-frame { width: min(432px, 92vw); height: auto; aspect-ratio: 432 / 210; }
  .dv.ipad .dv-frame { padding: 10px; border-radius: 22px; } .dv.ipad .dv-screen { border-radius: 14px; }
  .id-steps button { width: 28px; height: 28px; font-size: 12px; }
  .id-cap { padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { [data-tap] { animation: none; } .finger { transition: none; } .dv-frame { transition: none; } }
/* app screens: header / picture / details, the Install button always fits */
.a-page { display: grid !important; grid-template-rows: auto minmax(0, 1fr) auto; }
.a-page.dim { grid-template-rows: 1fr; }
.a-hero { height: auto !important; min-height: 0; }
.a-body { padding: .9em 1.1em 1.2em; gap: .5em; }
.a-body h4 { font-size: 1em; }
.a-install { margin: .3em 0 0 !important; }
.dv.ipad .scr.app { font-size: min(2.4cqw, 3.2cqh); }
.dv.ipad .a-page { padding: 0 18%; background: #e9e7e1; }
.dv.ipad .a-page > * { background: #f6f5f1; }
.dv.ipad .a-sheet, .dv.ipad .a-share { left: 22%; right: 22%; bottom: 12%; border-radius: 1.2em; }
.id-play svg { display: block; margin: auto; }
.a-page { grid-template-columns: minmax(0, 1fr) !important; }
.a-page > * { min-width: 0; }
.scr.app { font-size: min(4.6cqw, 2.2cqh) !important; }
.dv.ipad .scr.app { font-size: min(1.8cqw, 2.4cqh) !important; }
.a-hero { min-height: 6em !important; }
.a-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.a-stats div { min-width: 0; overflow: hidden; }
.a-stats span { white-space: nowrap; }
/* size units come from the device screen */
.dv-screen { container-type: size; }
.scr { container-type: normal !important; }
.g-set li { padding: .32em .6em; }
.scr.app { font-size: min(6cqw, 2.8cqh) !important; }
.dv.ipad .scr.app { font-size: min(2.5cqw, 3.4cqh) !important; }
.scr.game { font-size: min(2.25cqw, 3.6cqh) !important; }
@media (max-width: 600px) {
  .id-ctl { gap: 8px; }
  .id-steps { order: -1; width: 100%; justify-content: center; gap: 4px; }
  .id-steps button { width: 28px; height: 28px; font-size: 12px; }
  .id-nav, .id-play { width: 44px; height: 44px; }
}
.dv.iphone.land .dv-frame::before { left: 14px; width: 14px; height: 54px; }
/* install demo: iPad / iPhone switch on every screen, one device at a time */
.id-tog { display: flex !important; margin-bottom: 22px; }
.id-stage { min-height: 0 !important; }
.id-stage.show-ipad .dv.iphone, .id-stage.show-iphone .dv.ipad { display: none !important; }
@media (min-width: 981px) {
  .dv.ipad .dv-frame { width: min(760px, 62vw); }
  .dv.iphone .dv-frame { width: 280px; height: 576px; }
  .dv.iphone.land .dv-frame { width: 640px; height: 311px; }
  .id-stage.show-iphone { min-height: 600px !important; }
}

/* ---------- real-looking devices ---------- */
.dv.ipad .dv-frame { padding: 20px !important; border-radius: 34px !important;
  background: #0b0b0c !important;
  box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 5px #9a9ba0, 0 0 0 6px #5d5e62, 0 30px 70px rgba(0,0,0,.75) !important; }
.dv.ipad .dv-screen { border-radius: 16px !important; }
.dv.ipad .dv-frame::before { content: ""; position: absolute; z-index: 6; left: 50%; top: 8px; width: 7px; height: 7px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #3a4a6a, #0a0a12 70%); box-shadow: 0 0 0 1px #222; }
.dv.ipad .dv-frame::after { content: ""; position: absolute; top: -7px; right: 70px; width: 46px; height: 3px; border-radius: 3px 3px 0 0; background: #8e8f94; box-shadow: -120px 0 0 #8e8f94, -64px 0 0 #8e8f94; }
.dv.iphone .dv-frame { background: #0b0b0c !important;
  box-shadow: 0 0 0 2px #1c1c1e, 0 0 0 5px #8d8f94, 0 0 0 6px #55565a, 0 30px 70px rgba(0,0,0,.75) !important; }
.dv.iphone .dv-frame::after { content: ""; position: absolute; left: -7px; top: 110px; width: 3px; height: 46px; border-radius: 3px 0 0 3px; background: #8d8f94; box-shadow: 0 60px 0 #8d8f94, 0 -40px 0 0 #8d8f94; transition: all .6s; }
.dv.iphone.land .dv-frame::after { left: 110px; top: auto; bottom: -7px; width: 46px; height: 3px; border-radius: 0 0 3px 3px; box-shadow: 60px 0 0 #8d8f94, -40px 0 0 #8d8f94; }

/* iPad app layout: full screen, picture left, details right */
.dv.ipad .a-page { padding: 0 !important; background: #f6f5f1 !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr) !important; }
.dv.ipad .a-page > :not(.a-hero) { background-color: transparent !important; }
.dv.ipad .a-bar { grid-column: 1 / -1; padding: 1.1em 1.4em .8em; border-bottom: 1px solid #e6e3dc; background: #fff !important; }
.dv.ipad .a-hero { grid-row: 2; grid-column: 1; height: auto !important; margin: 1.2em 0 1.2em 1.2em; border-radius: 1em; background-size: cover !important; background-position: 60% 30% !important; }
.dv.ipad .a-body { grid-row: 2; grid-column: 2; justify-content: center; padding: 1.4em 1.6em; gap: .8em; }
.dv.ipad .a-body h4 { font-size: 1.45em; }
.dv.ipad .a-page.dim { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
.dv.ipad .a-page.dim .a-hero { margin: 0; border-radius: 0; grid-column: 1; grid-row: 1; }
.a-hero { background-position: 60% 30% !important; }
/* slimmer device bodies */
.dv.ipad .dv-frame { padding: 11px !important; border-radius: 26px !important;
  box-shadow: 0 0 0 1px #2a2a2d, 0 0 0 3px #a3a4a9, 0 0 0 4px #5f6064, 0 26px 60px rgba(0,0,0,.7) !important; }
.dv.ipad .dv-screen { border-radius: 16px !important; }
.dv.ipad .dv-frame::before { top: 3px; width: 5px; height: 5px; }
.dv.ipad .dv-frame::after { top: -5px; height: 2px; }
.dv.iphone .dv-frame { padding: 7px !important; border-radius: 38px !important;
  box-shadow: 0 0 0 1px #2a2a2d, 0 0 0 3px #a3a4a9, 0 0 0 4px #5f6064, 0 26px 60px rgba(0,0,0,.7) !important; }
.dv.iphone .dv-screen { border-radius: 32px !important; }
.dv.iphone .dv-frame::after { left: -5px; width: 2px; }
.dv.iphone.land .dv-frame::after { left: 110px; bottom: -5px; width: 46px; height: 2px; }
/* tap finger: small see-through ring + dot, never hides the button */
.finger { width: 26px !important; height: 26px !important; margin: -13px 0 0 -13px !important;
  background: radial-gradient(circle, #fff 0 22%, rgba(255,255,255,.18) 24% 100%) !important;
  border: 2px solid rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.5) !important; }
[data-tap].pressed { filter: brightness(.92) !important; }

/* ---------- step 1 pack page (card style, real data) ---------- */
.p-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; color: #111; }
.p-hero { position: relative; flex: 1 1 auto; min-height: 0; background: #222 center / cover; border-radius: 0 0 1.2em 1.2em; }
.p-back, .p-like { position: absolute; top: 2.6em; width: 2em; height: 2em; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); font-style: normal; font-weight: 900; color: #1a9d3c; font-size: .95em; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.p-back { left: .9em; } .p-like { right: .9em; color: #e0245e; }
.p-tag { position: absolute; left: .9em; bottom: 3.9em; font: 800 .58em var(--body); background: var(--amber); color: #111; padding: .4em .8em; border-radius: .5em; }
.p-thumbs { position: absolute; left: 50%; bottom: .8em; translate: -50% 0; display: flex; gap: .35em; padding: .3em; border-radius: .8em; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.p-thumbs b { width: 2.6em; height: 2.6em; border-radius: .5em; background: #333 center / cover; border: .12em solid transparent; }
.p-thumbs b.on { border-color: #fff; }
.p-thumbs .p-more { display: grid; place-items: center; background: #3b3b3b; color: #fff; font-size: .75em; width: 3.4em; height: 3.4em; }
.p-info { flex: none; padding: .9em 1em 1.1em; display: flex; flex-direction: column; gap: .6em; }
.p-info .pt { margin: 0; font: 800 1.15em/1.2 var(--body); }
.p-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4em; }
.p-stats div { display: flex; align-items: center; gap: .4em; min-width: 0; }
.p-stats i { flex: none; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: .5em; font-style: normal; font-size: .8em; }
.ic-dl { background: #e7f0ff; color: #2563eb; } .ic-eye { background: #fde8ee; color: #e0245e; } .ic-mc { background: #fff4d6; color: #c58a00; }
.p-stats span { min-width: 0; } .p-stats small { display: block; font: 700 .5em var(--body); letter-spacing: .03em; color: #888; white-space: nowrap; }
.p-stats b { font: 800 .8em var(--body); }
.p-desc { margin: 0; font-size: .66em; line-height: 1.45; color: #666; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-desc em { font-style: normal; font-weight: 800; color: #1a9d3c; }
.p-btn { text-align: center; padding: .85em; border-radius: .6em; background: linear-gradient(180deg, #22c24a, #129a34); color: #fff; font: 900 .9em var(--body); letter-spacing: .04em; box-shadow: 0 .3em .8em rgba(18,154,52,.35); }
/* iPad: picture left, details right */
.dv.ipad .p-card { flex-direction: row; }
.dv.ipad .p-hero { flex: 1.25 1 0; border-radius: 0 1.2em 1.2em 0; }
.dv.ipad .p-info { flex: 1 1 0; justify-content: center; padding: 1.4em 1.6em; gap: .9em; }
.dv.ipad .p-info .pt { font-size: 1.45em; }
.dv.ipad .p-back, .dv.ipad .p-like { top: 1em; }
.p-tag { bottom: auto !important; top: 3.05em; left: 3.4em !important; }
.dv.ipad .p-tag { top: 1.45em; }

/* ---------- step 1 v2: aligned top row, face visible, iPad full-bleed with glass panel ---------- */
.p-tag { top: 2.85em !important; left: 50% !important; bottom: auto !important; translate: -50% 0; white-space: nowrap; }
.p-hero { background-position: 78% 22% !important; }
/* iPad: picture fills the whole screen, details float in a dark glass panel (no white block) */
.dv.ipad .p-card { background: #000; }
.dv.ipad .p-hero { position: absolute !important; inset: 0; border-radius: 0 !important; background-size: auto 100% !important; background-position: 100% 30% !important; }
.dv.ipad .p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.05) 45%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.75) 100%); }
.dv.ipad .p-back, .dv.ipad .p-like, .dv.ipad .p-tag, .dv.ipad .p-thumbs { z-index: 2; }
.dv.ipad .p-back { top: 1.2em; left: 1.2em; }
.dv.ipad .p-tag { top: 1.45em !important; left: 4em !important; translate: 0 0; }
.dv.ipad .p-like { top: 1.2em; right: auto; left: calc(58% - 3.4em); }
.dv.ipad .p-thumbs { left: 1.2em; bottom: 1.2em; translate: 0 0; }
.dv.ipad .p-info { position: absolute; z-index: 3; top: 1.2em; right: 1.2em; bottom: 1.2em; width: 40%; padding: 1.4em 1.4em; justify-content: center; gap: .9em;
  background: rgba(14,14,16,.78); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 1.1em; color: #fff; }
.dv.ipad .p-info .pt { color: #fff; font-size: 1.35em; }
.dv.ipad .p-stats { grid-template-columns: 1fr; gap: .55em; }
.dv.ipad .p-stats div { background: rgba(255,255,255,.06); border-radius: .6em; padding: .45em .55em; }
.dv.ipad .p-stats small { color: #9a9a9a; } .dv.ipad .p-stats b { color: #fff; }
.dv.ipad .p-desc { color: #bdbdbd; -webkit-line-clamp: 3; }
.dv.ipad .p-desc em { color: #39d16a; }
.dv.ipad .p-tag { left: 4.6em !important; top: 1.7em !important; }
.p-tag { font-size: .55em !important; }
.dv.iphone .p-tag, .p-card .p-tag { top: 2.6em; }
.dv.ipad .p-tag { left: calc(1.2em + 2em + 12px) !important; top: 1.2em !important; translate: 0 6px !important; font-size: inherit !important; }
.dv.ipad .p-tag { padding: .3em .7em; font-size: .62em !important; left: 62px !important; top: 23px !important; translate: 0 0 !important; }
/* iPad step-1 panel: white, same as iPhone */
.dv.ipad .p-info { background: rgba(255,255,255,.96) !important; color: #111 !important; border-color: rgba(255,255,255,.6) !important; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.dv.ipad .p-info .pt { color: #111 !important; }
.dv.ipad .p-stats div { background: #f3f3f1 !important; }
.dv.ipad .p-stats small { color: #888 !important; } .dv.ipad .p-stats b { color: #111 !important; }
.dv.ipad .p-desc { color: #666 !important; } .dv.ipad .p-desc em { color: #1a9d3c !important; }
/* iPad step-1 panel: compact, centred, stats in one row */
.dv.ipad .p-info { top: 50% !important; bottom: auto !important; translate: 0 -50%; width: 38% !important; padding: 1.5em 1.4em !important; gap: 1em !important; }
.dv.ipad .p-info .pt { font-size: 1.5em !important; }
.dv.ipad .p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: .5em !important; }
.dv.ipad .p-stats div { flex-direction: column; align-items: center; text-align: center; gap: .35em; padding: .7em .3em !important; border-radius: .7em; }
.dv.ipad .p-stats span { display: flex; flex-direction: column-reverse; align-items: center; gap: .1em; }
.dv.ipad .p-stats b { font-size: .95em; }
.dv.ipad .p-stats small { font-size: .48em; }
.dv.ipad .p-desc { -webkit-line-clamp: 3; font-size: .7em; }
.dv.ipad .p-btn { font-size: .95em; padding: .9em; }
.dv.iphone .p-tag { display: none !important; }
/* iPhone stats: icon on top, value and label centred, nothing cut */
.dv.iphone .p-stats { gap: .4em !important; }
.dv.iphone .p-stats div { flex-direction: column; align-items: center; text-align: center; gap: .25em; padding: .5em .2em; background: #f3f3f1; border-radius: .6em; }
.dv.iphone .p-stats span { display: flex; flex-direction: column-reverse; align-items: center; }
.dv.iphone .p-stats small { font-size: .46em; letter-spacing: 0; }
.dv.iphone .p-stats b { font-size: .85em; }
.dv.iphone .p-stats i { width: 1.7em; height: 1.7em; }
/* install demo: only side arrows (no number row / play button) */
.id-steps, .id-play, .id-ctl { display: none !important; }
.id-stage { position: relative; gap: 0 !important; }
.id-stage > .id-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 52px; height: 52px; font-size: 26px; border-radius: 50%;
  background: rgba(18,18,18,.85); border: 1px solid #3a3a3a; color: #fff; cursor: pointer; transition: background .2s, border-color .2s, color .2s, scale .15s; }
.id-stage > .id-nav:hover { background: var(--amber); border-color: var(--amber); color: #111; }
.id-stage > .id-nav:active { scale: .92; }
.id-stage > .id-prev { left: max(0px, calc(50% - min(760px, 62vw) / 2 - 84px)); }
.id-stage > .id-next { right: max(0px, calc(50% - min(760px, 62vw) / 2 - 84px)); }
.id-stage.show-iphone > .id-prev { left: calc(50% - 230px); } .id-stage.show-iphone > .id-next { right: calc(50% - 230px); }
.dv-screen { touch-action: pan-y; }
@media (max-width: 980px) {
  .id-stage > .id-prev { left: 4px !important; } .id-stage > .id-next { right: 4px !important; }
  .id-stage > .id-nav { width: 42px; height: 42px; font-size: 22px; }
}
.id-stage > .id-nav { top: calc(50% - 13px) !important; }
/* share sheet: proper file icon + full filename */
.a-doc { position: relative; flex: none; width: 2.5em !important; height: 3.1em !important; padding: 0 !important; border: 0 !important; border-radius: .35em !important;
  background: linear-gradient(225deg, transparent .55em, #f4f4f4 .55em) !important; box-shadow: 0 0 0 1px #d9d9d9 inset;
  display: flex !important; align-items: flex-end; justify-content: center; font: 800 .5em var(--body) !important; color: #fff !important; }
.a-doc::before { content: ""; position: absolute; top: 0; right: 0; width: .78em; height: .78em; background: linear-gradient(225deg, transparent 50%, #d6d6d6 50%); border-radius: 0 0 0 .15em; }
.a-doc::after { content: "MCPACK"; position: absolute; left: .25em; right: .25em; bottom: .55em; padding: .2em 0; border-radius: .25em; background: #3c8527; text-align: center; font-size: .78em; letter-spacing: .02em; }
.a-doc { font-size: 0 !important; } .a-doc::after { font: 800 6.5px/1.4 var(--body); }
.dv.ipad .a-doc::after { font-size: 8px; }
.a-file > div { min-width: 0; } .a-file b { word-break: break-all; white-space: normal; line-height: 1.25; }
.a-doc { font-size: 1em !important; color: transparent !important; overflow: hidden; }
.a-doc::after { color: #fff; }
/* Minecraft share-sheet icon: pixel grass block */
.mc-ico { background: url(images/grass-block.png) center / cover no-repeat !important; image-rendering: pixelated; border-radius: 1em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 .15em .4em rgba(0,0,0,.2); }
.mc-ico i { display: none !important; }
/* one device only: no iPad / iPhone switch */
.id-tog { display: none !important; }

/* Minecraft menu: real in-game panorama (Verity Totem pack), soft blur + slow pan, like the title screen */
.scr.game { background: #2b3a2b !important; }
.scr.game .g-menu::before { content: ""; position: absolute; inset: -6% -12%; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.05) 40%, rgba(0,0,0,.25)), url(images/mc-menu-bg.jpg) center 40% / cover no-repeat;
  animation: mcPan 22s ease-in-out infinite alternate; }
@keyframes mcPan { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.scr.game .g-menu { overflow: hidden; }
.scr.game .g-menu > * { position: relative; z-index: 1; }
.scr.game .g-menu > .g-toast { position: absolute; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .scr.game .g-menu::before { animation: none; } }

/* side arrows: flex items beside whichever device is showing (portrait or landscape) */
.id-stage { display: flex !important; align-items: center; justify-content: center; gap: 28px !important; }
.id-stage > .id-nav { position: static !important; translate: 0 -13px !important; flex: none; }
@media (max-width: 600px) { .id-stage { gap: 8px !important; } .id-stage > .id-nav { width: 38px; height: 38px; font-size: 20px; } }
/* Minecraft menu text: readable over the real picture */
.scr.game .g-menu::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 62% at 50% 50%, rgba(0,0,0,.45), rgba(0,0,0,.1) 70%, transparent); }
.scr.game .g-logo { font-size: 4.2em !important; color: #f1f1f1 !important; letter-spacing: .03em;
  -webkit-text-stroke: .035em #1c1c1c; text-shadow: .06em .06em 0 #6b6b6b, .1em .1em 0 #3a3a3a, .14em .14em 0 #1c1c1c, 0 0 .4em rgba(0,0,0,.6) !important; }
.scr.game .g-logo small { font: 700 .2em var(--mono) !important; letter-spacing: .28em !important; color: #ffe14d !important; -webkit-text-stroke: 0; text-shadow: .12em .12em 0 #3a3000, 0 0 .5em rgba(0,0,0,.8) !important; margin-top: .55em !important; }
.scr.game .g-btn { font-size: 1.05em !important; text-shadow: .08em .08em 0 rgba(0,0,0,.35); }
.scr.game .g-btn:not(.play):not(.realms) { text-shadow: none; }
.scr.game .g-toast { font-size: .95em !important; }
/* step change: screen slides left (next) or right (back) */
.scr { transition: none !important; }
.scr.out-fwd { animation: scrOutL .22s ease-in forwards; }
.scr.out-back { animation: scrOutR .22s ease-in forwards; }
.scr.in-fwd { animation: scrInR .32s cubic-bezier(.2,.8,.2,1); }
.scr.in-back { animation: scrInL .32s cubic-bezier(.2,.8,.2,1); }
@keyframes scrOutL { to { transform: translateX(-28%); opacity: 0; } }
@keyframes scrOutR { to { transform: translateX(28%); opacity: 0; } }
@keyframes scrInR { from { transform: translateX(28%); opacity: 0; } }
@keyframes scrInL { from { transform: translateX(-28%); opacity: 0; } }
.id-cap.cin-fwd { animation: capInR .35s cubic-bezier(.2,.8,.2,1); }
.id-cap.cin-back { animation: capInL .35s cubic-bezier(.2,.8,.2,1); }
@keyframes capInR { from { transform: translateX(24px); opacity: 0; } }
@keyframes capInL { from { transform: translateX(-24px); opacity: 0; } }
.dv-screen { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .scr.out-fwd, .scr.out-back, .scr.in-fwd, .scr.in-back, .id-cap { animation: none !important; } }
/* real Minecraft menu screenshots inside the device */
.g-real { position: absolute; inset: 0; background: #000; }
.g-real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.g-hot { position: absolute; left: 37.8%; width: 24.6%; height: 7%; border-radius: 2px; }
.g-hot-play { top: 43.8%; }
.g-hot-settings { top: 51.4%; }
.g-cover { position: absolute; left: 9%; right: 8.5%; top: 1%; height: 6.2%; display: flex; align-items: center; padding-left: 1.2%; background: #1b1b1b; border: 1px solid #555; color: #fff; font: 600 clamp(9px, 2.4cqw, 15px) var(--body); white-space: nowrap; overflow: hidden; }
/* whole screenshot always visible; blurred copy fills any side gap */
.g-blur { position: absolute; inset: -20px; background: center / cover no-repeat; filter: blur(16px) brightness(.55); }
.g-box { position: absolute; left: 50%; top: 50%; translate: -50% -50%; aspect-ratio: 1328 / 914; width: min(100cqw, calc(100cqh * 1328 / 914)); }
.g-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill !important; }
.g-cover { font-size: clamp(8px, 2.2cqh, 14px) !important; }
/* Minecraft menu: drawn pixel-art cherry grove (no screenshot) */
.scr.game .g-menu::before { background: url(images/mc-cherry.png?v=5) center 30% / cover no-repeat !important; image-rendering: pixelated; animation: mcPan 26s ease-in-out infinite alternate; }
.scr.game .g-menu::after { background: radial-gradient(ellipse 40% 55% at 50% 48%, rgba(0,0,0,.28), transparent 75%) !important; }
.scr.game .g-side { position: absolute !important; z-index: 1; padding: .3em .65em; background: #c6c6c6; color: #303030; border: .12em solid #1d1d1d; box-shadow: inset 0 -.18em 0 #8b8b8b, inset 0 .12em 0 #fff; font: 700 .72em var(--mono); white-space: nowrap; }
.scr.game .g-sign { left: 3%; bottom: 17%; } .scr.game .g-prof { left: 3%; bottom: 5%; } .scr.game .g-dress { right: 3%; bottom: 8%; }
.scr.game .g-ver { position: absolute !important; right: 2.5%; bottom: 1.8%; z-index: 1; font: 700 .62em var(--mono); color: #fff; text-shadow: .1em .1em 0 #000; }
/* Minecraft-style title text: blocky pixel letters, stone face, deep dark 3D edge (own styling, not the Mojang logo file) */
.scr.game .g-logo { font-family: 'Silkscreen', var(--mono) !important; font-weight: 700 !important; font-size: 3.6em !important; letter-spacing: .02em !important; line-height: 1 !important;
  color: transparent !important; -webkit-text-stroke: 0 !important;
  background: repeating-linear-gradient(0deg, #9c9c9c 0 .08em, #b8b8b8 .08em .16em, #8a8a8a .16em .22em), linear-gradient(180deg, #e9e9e9, #8f8f8f);
  background-blend-mode: multiply; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 .05em 0 #4a4a4a) drop-shadow(0 .05em 0 #2e2e2e) drop-shadow(0 .04em 0 #161616) drop-shadow(0 0 .02em #000) !important;
  text-shadow: none !important; }
.scr.game .g-logo small { display: block; font-family: var(--mono) !important; -webkit-background-clip: border-box; background: none; color: #ffe14d !important; filter: none; }
.scr.game .g-logo { background: linear-gradient(180deg, #f2f2f2 0%, #cfcfcf 45%, #a8a8a8 55%, #8e8e8e 100%) !important; -webkit-background-clip: text !important; background-clip: text !important;
  filter: drop-shadow(.03em .03em 0 #5b5b5b) drop-shadow(.03em .03em 0 #3c3c3c) drop-shadow(.025em .03em 0 #1e1e1e) drop-shadow(0 0 .04em rgba(0,0,0,.9)) !important; }
.scr.game .g-logo small { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: #ffe14d; }
/* settings rows with on/off switches */
.g-opts p { height: auto !important; display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .45em .6em; }
.g-opts p span { font: 600 .78em var(--body); color: #e6e6e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-sw { flex: none; position: relative; width: 2.6em; height: 1.2em; background: #1e1e1f; border: .12em solid #111; box-shadow: inset 0 .12em 0 rgba(0,0,0,.5); }
.g-sw::after { content: ""; position: absolute; top: .06em; left: .08em; width: 1em; height: .85em; background: #c6c6c6; border: .1em solid #111; box-shadow: inset 0 -.12em 0 #8b8b8b; transition: left .2s; }
.g-sw.on { background: #3c8527; }
.g-sw.on::after { left: calc(100% - 1.2em); }
/* all slider arrows: drawn chevron, exactly centred in a perfect circle */
.id-stage > .id-nav, .cf-nav, .as-btn, #how .g3 .gnav, .tabs-wrap .tabs-arrow, .am-catwrap .tabs-arrow, .as-lb-nav, .glb-p, .glb-n {
  font-size: 0 !important; color: #fff; display: grid !important; place-items: center; padding: 0 !important; line-height: 0 !important; aspect-ratio: 1; border-radius: 50% !important; }
.am-catwrap.fits .tabs-arrow { display: none !important; }
.id-stage > .id-nav::before, .cf-nav::before, .as-btn::before, #how .g3 .gnav::before, .tabs-wrap .tabs-arrow::before, .am-catwrap .tabs-arrow::before, .as-lb-nav::before, .glb-p::before, .glb-n::before {
  content: ""; width: 26%; height: 26%; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateX(-18%) rotate(-45deg); }
.id-stage > .id-prev::before, .cf-nav.prev::before, #cfPrev::before, .as-prev::before, #how .g3 .gprev::before, .tabs-wrap .prev::before, #tabsPrev::before, .am-prev::before, .as-lb-p::before, .glb-p::before {
  transform: translateX(18%) rotate(135deg); }
.id-stage > .id-nav::before, .cf-nav::before, .as-btn::before, #how .g3 .gnav::before, .tabs-wrap .tabs-arrow::before, .am-catwrap .tabs-arrow::before, .as-lb-nav::before, .glb-p::before, .glb-n::before { width: 11px !important; height: 11px !important; }
.id-stage > .id-nav { border-color: #4a4a4a !important; background: rgba(28,28,30,.92) !important; }
/* vector chevrons: path centred in its own box, so the arrow sits dead centre */
.id-stage > .id-nav::before, .cf-nav::before, .as-btn::before, #how .g3 .gnav::before, .tabs-wrap .tabs-arrow::before, .am-catwrap .tabs-arrow::before, .as-lb-nav::before, .glb-p::before, .glb-n::before {
  width: 16px !important; height: 16px !important; border: 0 !important; transform: none !important; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 3l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6 3l5 5-5 5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }
.id-stage > .id-prev::before, .cf-nav.prev::before, #cfPrev::before, .as-prev::before, #how .g3 .gprev::before, #tabsPrev::before, .am-prev::before, .as-lb-p::before, .glb-p::before { transform: scaleX(-1) !important; }
.id-stage > .id-nav, .cf-nav, .as-btn, #how .g3 .gnav, .tabs-wrap .tabs-arrow, .am-catwrap .tabs-arrow, .as-lb-nav, .glb-p, .glb-n { display: inline-flex !important; align-items: center !important; justify-content: center !important; }
.am-catwrap.fits .tabs-arrow { display: none !important; }
/* install demo: App Store button replaces the right arrow on the last step */
.id-stage > .id-store { display: none !important; flex: none; translate: 0 -13px; }
.id-stage.at-end > .id-next { display: none !important; }
.id-stage.at-end > .id-store { display: inline-grid !important; animation: storePop .35s ease-out; }
@keyframes storePop { from { opacity: 0; transform: translateX(-10px); } }
@media (max-width: 600px) { .id-stage.at-end > .id-store { padding: 9px 12px 9px 10px; } .id-stage.at-end > .id-store .store-ico { width: 18px; height: 22px; } .id-stage.at-end > .id-store span { font-size: 13px; } }
.am-catwrap .tabs-arrow.am-prev::before, .tabs-wrap .tabs-arrow.prev::before { transform: scaleX(-1) !important; }
/* iPhone Dynamic Island: slim pill with a camera lens; same in portrait and landscape */
.dv.iphone .dv-frame::before { width: 62px !important; height: 18px !important; top: 15px !important; left: 50% !important; translate: -50% 0 !important; border-radius: 10px !important;
  background: radial-gradient(circle at calc(100% - 9px) 50%, #2b3a5c 0 2.2px, #0d1424 2.4px 4px, #000 4.2px) !important; box-shadow: 0 0 0 1px rgba(255,255,255,.04); z-index: 6; }
.dv.iphone.land .dv-frame::before { width: 18px !important; height: 62px !important; left: 15px !important; top: 50% !important; translate: 0 -50% !important;
  background: radial-gradient(circle at 50% calc(100% - 9px), #2b3a5c 0 2.2px, #0d1424 2.4px 4px, #000 4.2px) !important; }
/* install demo: App Store button always visible, right side, vertically centred on the device */
.id-stage.at-end > .id-next { display: inline-flex !important; }
.id-stage > .id-store, .id-stage.at-end > .id-store { display: inline-grid !important; position: absolute !important; right: 0; top: 50%; translate: 0 calc(-50% - 13px) !important; animation: none; }
@media (max-width: 1180px) {
  .id-stage > .id-store, .id-stage.at-end > .id-store { position: static !important; translate: none !important; order: 9; flex-basis: 100%; max-width: max-content; margin: 18px auto 0; }
  .id-stage { flex-wrap: wrap; }
}
/* App Store button: right screen edge (32px in), vertically centred on the device; below the device on narrower screens */
@media (min-width: 1500px) { .id-stage > .id-store, .id-stage.at-end > .id-store { right: calc((min(1180px, 100%) - 100vw) / 2 + 32px) !important; } }
@media (max-width: 1499px) {
  .id-stage { flex-wrap: wrap; }
  .id-stage > .id-store, .id-stage.at-end > .id-store { position: static !important; translate: none !important; order: 9; flex-basis: 100%; max-width: max-content; margin: 18px auto 0; }
}
/* install demo download block: "Download here" + App Store button */
.id-stage > .id-store { display: none !important; }
.id-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.id-dl { margin: 0; font: 400 13px var(--mono); letter-spacing: 3px; text-transform: uppercase; color: var(--amber); text-shadow: 0 0 10px rgba(255,176,0,.35); }
@media (min-width: 1500px) { .id-stage > .id-cta { position: absolute; top: 50%; translate: 0 calc(-50% - 13px); } }
@media (max-width: 1499px) { .id-stage { flex-wrap: wrap; } .id-stage > .id-cta { order: 9; flex-basis: 100%; margin-top: 22px; } }
/* arrow row never wraps: ‹ device › on one line. Each device gets an explicit width AND height (no aspect-ratio:
   Safari mis-sizes the inner screen on aspect-ratio frames), capped to the stage width minus both arrows. */
.id-stage { flex-wrap: nowrap !important; container-type: inline-size; --cap: calc(100cqw - 164px); }
@media (max-width: 980px) { .id-stage { --cap: calc(100cqw - 144px); } }
@media (max-width: 600px) { .id-stage { --cap: calc(100cqw - 96px); } }
.id-stage > .dv { flex: none; }
.id-stage .dv .dv-frame { aspect-ratio: auto !important; }
@media (min-width: 981px) {
  .id-stage .dv.ipad .dv-frame { width: min(760px, 62vw, var(--cap)) !important; height: calc(min(760px, 62vw, var(--cap)) * 3 / 4) !important; }
  .id-stage .dv.iphone .dv-frame { width: min(280px, var(--cap)) !important; height: calc(min(280px, var(--cap)) * 576 / 280) !important; }
  .id-stage .dv.iphone.land .dv-frame { width: min(640px, var(--cap)) !important; height: calc(min(640px, var(--cap)) * 311 / 640) !important; }
}
@media (min-width: 521px) and (max-width: 980px) {
  .id-stage .dv.ipad .dv-frame { width: min(640px, 92vw, var(--cap)) !important; height: calc(min(640px, 92vw, var(--cap)) * 3 / 4) !important; }
  .id-stage .dv.iphone .dv-frame { width: min(236px, var(--cap)) !important; height: calc(min(236px, var(--cap)) * 486 / 236) !important; }
  .id-stage .dv.iphone.land .dv-frame { width: min(486px, var(--cap)) !important; height: calc(min(486px, var(--cap)) * 236 / 486) !important; }
}
@media (max-width: 520px) {
  .id-stage .dv.ipad .dv-frame { width: min(640px, 92vw, var(--cap)) !important; height: calc(min(640px, 92vw, var(--cap)) * 3 / 4) !important; }
  .id-stage .dv.iphone .dv-frame { width: min(210px, var(--cap)) !important; height: calc(min(210px, var(--cap)) * 432 / 210) !important; }
  .id-stage .dv.iphone.land .dv-frame { width: min(432px, 92vw, var(--cap)) !important; height: calc(min(432px, 92vw, var(--cap)) * 210 / 432) !important; }
}
.id-cta.id-cta { margin-top: 22px; }
@media (min-width: 1500px) { .id-stage > .id-cta { margin-top: 0; } }
/* store buttons per device: computers get App Store + Google Play side by side on the big buttons */
.store-pair { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; max-width: 100%; }
.store-play .store-ico { padding: 1px; }
/* Most popular: amber PILL tabs (owner's choice, 28 Nov 2026), in a bar the same width as the All-mods bar (never past the screen edge) */
#mods .tabs-wrap { max-width: 1240px !important; margin: 0 auto 26px !important; padding: 0 !important; gap: 10px; }
#mods .tabs { gap: 10px !important; padding: 8px 4px !important; justify-content: flex-start; }
#mods .tabs-wrap.no-scroll .tabs { justify-content: center; }
@media (min-width: 1300px) { #mods .tabs-wrap { width: 1240px; max-width: none !important; margin-left: 50% !important; translate: -50% 0; } }
/* Most popular slider: whole cards only (never a cut card) — 5 / 4 / 3 / 2 / 1 per screen; no page dots */
.cf-card, .cf-card.c { flex-basis: calc((100% - 80px) / 5); }
@media (max-width: 1599px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 60px) / 4); } }
@media (max-width: 1199px) { .cf-card, .cf-card.c { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 899px)  { .cf-card, .cf-card.c { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 519px)  { .cf-card, .cf-card.c { flex-basis: 100%; } }
#cfDots { display: none !important; }
/* stats strip on phones: one row per stat, everything on a single line (no 2-3 line labels) */
@media (max-width: 560px) {
  .ns-band, .ns-band:has(.ns-cell:nth-child(3):last-child) { grid-template-columns: 1fr !important; }
  .ns-band .ns-cell { grid-column: auto !important; display: flex !important; align-items: baseline; gap: 12px; text-align: left; white-space: nowrap; padding: 14px 18px !important; border: 0 !important; border-top: 1px solid #262626 !important; }
  .ns-band .ns-cell:first-child { border-top: 0 !important; }
  .ns-band .ns-cell::before { display: none !important; }
  .ns-band .ns-cell b { flex: none; min-width: 74px; font-size: 26px !important; }
  .ns-band .ns-cell p { margin: 0 !important; font-size: 12px !important; letter-spacing: 1px !important; }
  .ns-band .ns-cell small { margin-left: auto; font-size: 12px !important; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 560px) { .ns-band .ns-cell { min-width: 0; } }
@media (max-width: 400px) { .ns-band .ns-cell small { display: none !important; } }
/* install demo on phones: device uses the full width, ‹ › sit centred BELOW it (not beside it) */
@media (max-width: 600px) {
  .id-stage { flex-wrap: wrap !important; justify-content: center; row-gap: 14px; column-gap: 28px !important; --cap: calc(100cqw - 8px); }
  .id-stage > .dv { order: 0; flex: 0 0 100%; }
  .id-stage > .id-prev { order: 1; } .id-stage > .id-next { order: 2; }
  .id-stage > .id-nav { translate: none !important; }
}
/* iPhone corners scale with the phone (13.6% of its short side, like a real iPhone), so a small phone never looks like a pill */
.id-stage .dv.iphone:not(.land) .dv-frame { border-radius: 13.6% / 6.6% !important; }
.id-stage .dv.iphone.land .dv-frame { border-radius: 6.6% / 13.6% !important; }
.id-stage .dv.iphone:not(.land) .dv-screen { border-radius: 11.5% / 5.4% !important; }
.id-stage .dv.iphone.land .dv-screen { border-radius: 5.4% / 11.5% !important; }
/* "Inside the app" slider: one whole slide at a time (no slice of the next one); dots big enough to tap */
.as-rail { padding: 10px 0 20px !important; width: min(980px, 92vw); margin: 0 auto; }
.as-rail .as-slide { width: 100% !important; }
.as-dots button { width: 32px !important; height: 32px !important; padding: 14px 5px !important; background-clip: content-box !important; }
.as-dots button.on { width: 46px !important; }
/* phones: category bars have no ‹ › arrows; swipe the names, and a tapped name scrolls to the middle */
@media (max-width: 600px) {
  #tabsPrev, #tabsNext, #amPrev, #amNext { display: none !important; }
  #mods .tabs-wrap, .am-catwrap { gap: 0 !important; }
}
/* phones: the moving category strip shows only the names (no "CATEGORIES" label taking a third of the width) */
@media (max-width: 600px) { .ticker-label { display: none !important; } }
/* category bars: the glide is done in JS, so no CSS smooth-scroll / snap fighting it */
#mods .tabs, .am-catwrap .am-cats { scroll-behavior: auto !important; scroll-snap-type: none !important; }
/* phones: bigger app icon in the header */
@media (max-width: 600px) { .topbar .brand img { width: 44px !important; height: 44px !important; border-radius: 10px; } }
#mods .tabs, .am-catwrap .am-cats { padding-right: 6px !important; }
/* "Inside the app" slider: below 1100px there is no room beside the slide, so ‹ › sit centred BELOW it (never over the picture) */
@media (max-width: 1099px) {
  .as-wrap { padding-bottom: 58px; }
  .as-wrap .as-btn { top: auto !important; bottom: 4px; transform: none !important; }
  .as-wrap .as-prev { left: calc(50% - 54px) !important; right: auto !important; }
  .as-wrap .as-next { right: calc(50% - 54px) !important; left: auto !important; }
}
/* screenshot slider arrows: beside the (92vw / 980px) slide only when there is room; below it otherwise */
.as-prev { left: max(12px, calc(50% - min(980px, 92vw) / 2 - 64px)); }
.as-next { right: max(12px, calc(50% - min(980px, 92vw) / 2 - 64px)); }
@media (max-width: 1129px) {
  .as-wrap { padding-bottom: 58px; }
  .as-wrap .as-btn { top: auto !important; bottom: 4px; transform: none !important; }
  .as-wrap .as-prev { left: calc(50% - 54px) !important; right: auto !important; }
  .as-wrap .as-next { right: calc(50% - 54px) !important; left: auto !important; }
}
/* fullscreen viewers on phones: the picture fills the width, so ‹ › sit at the bottom beside the "1 / 5" counter, never on the picture */
@media (max-width: 700px) {
  .as-lb-nav, .glb-p, .glb-n { top: auto !important; bottom: 14px !important; transform: none !important; }
  .as-lb-p, .glb-p { left: calc(50% - 104px) !important; right: auto !important; }
  .as-lb-n, .glb-n { right: calc(50% - 104px) !important; left: auto !important; }
  .as-lb-c, .glb p { bottom: 29px !important; }
}
/* hero: store button(s) centred on one row, "See the app" centred BELOW them as a plain link (no border) */
.hero .cta-row { flex-direction: column !important; align-items: center !important; gap: 10px !important; }
.hero .cta-row .store-pair { justify-content: center; }
.hero .ghost, .hero .ghost:hover { border: 0 !important; background: none !important; box-shadow: none !important; }
.hero .ghost { min-height: 44px !important; padding: 0 16px !important; font-size: 17px !important; color: rgba(255,255,255,.85) !important; }
.hero .ghost:hover { color: var(--amber) !important; transform: none; }
/* Most popular: tab bar exactly as wide as the card slider under it (same full-width band and side padding) */
#mods .tabs-wrap { width: auto !important; max-width: none !important; translate: none !important; margin: 0 calc(50% - 50vw) 26px !important; padding: 0 clamp(16px, 4vw, 72px) !important; }
/* App Store rating line under the hero buttons */
.rating-line { margin: 14px 0 0; font: 500 15px var(--body); color: rgba(255,255,255,.8); text-align: center; }
.rating-line .stars { color: var(--amber); letter-spacing: 2px; margin-right: 4px; }
.rating-line b { color: #fff; font-weight: 800; }
/* rating stars: grey row with an amber row on top, cut to the rating (4.9 -> 98%) */
.stars-r { position: relative; display: inline-block; color: #4a4a4a; line-height: 1; vertical-align: -1px; margin-right: 6px; white-space: nowrap; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--amber); width: 100%; }
/* rating stars v2: five separate stars, each painted amber up to --f and grey after it (no overlay, so never 10 stars) */
.stars-r { position: static !important; display: inline-flex !important; gap: 2px; vertical-align: -3px; }
.stars-r i { font-style: normal; line-height: 1; background: linear-gradient(90deg, var(--amber) var(--f, 100%), #4a4a4a var(--f, 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.rating-line .stars-r { font-size: 26px; vertical-align: -4px; }   /* bigger stars in the hero */
.chips .stars-r { font-size: 18px; }
/* "Get the app" (computer) scrolls here: leave room for the sticky header */
#get { scroll-margin-top: 90px; }
/* Google Play buttons: the coloured Play logo straight on the button, same size as the Apple logo;
   a thin white outline (in the icon itself) keeps its red part visible on the red button */
.store-play .store-ico { background: none; padding: 0; }
/* Google Play buttons: red button like App Store; ONLY the logo sits on a white rounded square (owner's choice) */
.store.store-play .store-ico { background: #fff !important; border-radius: 9px; box-sizing: border-box; padding: 6px 5px 6px 7px !important; width: 36px !important; height: 36px !important; }
.store-sm.store-play .store-ico, .store-xs.store-play .store-ico { width: 24px !important; height: 24px !important; border-radius: 6px; padding: 4px 3px 4px 5px !important; }
/* Android screenshots are 16:9 */
.as-rail.is-android .as-slide:not(.as-cta) img, .as-rail.is-android .as-cta { aspect-ratio: 16 / 9; }
#asDev[hidden] { display: none !important; }
/* install demo on Android: an Android phone (Pixel / Galaxy style) instead of an iPhone */
.id-stage .dv.iphone.android:not(.land) .dv-frame { border-radius: 9% / 4.4% !important; }
.id-stage .dv.iphone.android.land .dv-frame { border-radius: 4.4% / 9% !important; }
.id-stage .dv.iphone.android:not(.land) .dv-screen { border-radius: 7% / 3.4% !important; }
.id-stage .dv.iphone.android.land .dv-screen { border-radius: 3.4% / 7% !important; }
/* punch-hole camera instead of the notch / island */
.dv.iphone.android .dv-frame::before { width: 11px !important; height: 11px !important; top: 16px !important; left: 50% !important; translate: -50% 0 !important; border-radius: 50% !important; background: radial-gradient(circle at 40% 40%, #2a3448, #000 65%) !important; box-shadow: 0 0 0 1.5px #1a1a1c !important; }
.dv.iphone.android.land .dv-frame::before { top: 50% !important; left: 16px !important; translate: 0 -50% !important; }
/* power + volume keys on the RIGHT side (top edge when the phone lies sideways) */
.dv.iphone.android .dv-frame::after { left: auto !important; right: -5px !important; top: 120px !important; bottom: auto !important; width: 2px !important; height: 64px !important; border-radius: 0 3px 3px 0 !important; box-shadow: 0 84px 0 0 #8d8f94 !important; }
.dv.iphone.android.land .dv-frame::after { right: auto !important; left: 120px !important; top: -5px !important; width: 64px !important; height: 2px !important; border-radius: 3px 3px 0 0 !important; box-shadow: 84px 0 0 0 #8d8f94 !important; }
/* links to the ranked guide pages (SEO: descriptive anchors inside body text) */
.guides { max-width: 760px; margin: 26px auto 0; text-align: center; color: #bdbdbd; font-size: 15px; line-height: 1.6; }
.guides a { color: var(--amber); font-weight: 700; }
/* footer legal links: " · " between the links left for this device */
.legal-sep > span + span::before { content: " · "; }

/* WCAG AA: white text on the red buttons needs 4.5:1. #ff2a2a gave 3.74:1, #d81b1b gives 5.1:1 (glow stays bright red) */
:root { --btn-red: #d81b1b; }
.store-lg, .topbar .store, .cf-get, .am-get, .am-store, .cat-tag, .am-new, .cf-price.p, .ecard .pr.p, .cf-sort button.on, .pips button.on { background-color: var(--btn-red); }
.am-store, .pips button.on { border-color: var(--btn-red); }
.as-cta .store, .as-cta .store:hover { background: var(--btn-red) !important; border-color: var(--btn-red) !important; }
/* AA contrast inside the install-demo phone and the All-mods "See more" button */
.p-stats small, .dv.ipad .p-stats small { color: #5f5f5f !important; }
.ic-eye { color: #b81a4a; } .ic-mc { color: #7d5800; }
.hero .ghost, .am-more:not(.am-store) { background: var(--btn-red) !important; }
.hero .ghost { color: #fff !important; }
.p-desc em { color: #127a2e !important; }

/* smoothness: looping animations pause while their section is off screen (main.js adds .anim-off) */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
/* phones/tablets: full-screen noise layer without blend mode (the blend re-blended the whole page every frame) */
@media (hover: none), (pointer: coarse) { .noise { mix-blend-mode: normal; opacity: .03; } }

/* keyboard users see where they are */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* hero typewriter without layout shift (tape.js heroType): phrases stacked in one grid cell, untyped letters invisible */
#typeLine.tw { display: inline-grid; }
#typeLine.tw::after { content: none; }
#typeLine .tw-l { grid-area: 1 / 1; }
#typeLine .tw-l.off, #typeLine .tw-rest { visibility: hidden; }
#typeLine .tw-c { position: relative; }
#typeLine .tw-c::after { content: "▌"; position: absolute; left: 2px; top: 0; color: var(--phos); animation: caret 1s steps(2) infinite; }

/* the red-button rule above uses !important display; hidden buttons must still hide (one button at a time: See more, then Show all) */
.am-more[hidden], .hero .ghost[hidden] { display: none !important; }
