/* Buildings for Minecraft MC: sunny build-day theme.
   Sky blue → grass → dirt page, gold (coins) + grass green (CTA) + lava orange accents,
   pixel display font for headings only, chunky 2px dark outlines, slight block bevels. */
:root {
  --sky-1: #7ec8ff; --sky-2: #c9ecff; --sky-3: #f3fbff;
  --grass: #6cc349; --grass-d: #3c8527; --grass-x: #2a641c;
  --dirt: #8a5a2b; --dirt-d: #5d3b1a; --stone: #8f8f8f;
  --gold: #ffc42b; --gold-d: #c47d00; --gold-l: #ffe066;
  --lava: #ff7a1a; --blue: #1b5fd6; --blue-d: #0f3f98; --cyan: #4fd1e8;
  --ink: #171615; --ink-2: #3a3734; --mute: #6b6560;
  --paper: #fffaf0; --card: #ffffff; --line: #e9dfcf;
  --radius: 14px; --shadow: 0 10px 30px rgba(23, 22, 21, .12);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pixel: 'Pixelify Sans', var(--font);
  --nav-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 500 17px/1.55 var(--font); color: var(--ink); background: var(--paper); overflow-x: hidden; font-variant-ligatures: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); text-shadow: 0 3px 0 rgba(23,22,21,.12); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 34px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--pixel); font-weight: 600; color: var(--grass-d); text-transform: uppercase; letter-spacing: .12em; font-size: .95rem; margin-bottom: 10px; }
.sub { color: var(--mute); font-size: 1.08rem; max-width: 62ch; }
.sub.small { font-size: .95rem; margin-top: 10px; }
.section { padding: 84px 0; }
.section-head { margin-bottom: 34px; }
.section-head .sub { margin-top: 12px; }

/* ---------- Minecraft scrollbar + XP progress ---------- */
.sbar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: transparent; pointer-events: none; opacity: 0; transition: opacity .3s; }
.nav.solid .sbar { opacity: 1; background: #ece4d4; }
.xp { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold) 55%, #ff7a1a); box-shadow: 0 0 12px rgba(255,196,43,.9); transition: width .15s linear; }
.xp::after { content: ""; position: absolute; right: 0; top: -2px; bottom: -2px; width: 8px; background: #fff; box-shadow: 0 0 14px #ffb347; } } } }

/* ---------- Sliders ---------- */
.slider { position: relative; }
/* Arrows: a pair of grass-block buttons at the top right of each slider, next to the dots */
.sl-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: -52px 0 12px; position: relative; z-index: 3; }
.sl-btn { width: 44px; height: 44px; border: 2px solid var(--grass-x); background: var(--grass); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: inset -4px -4px 0 var(--grass-d), inset 4px 4px 0 #8adb67, 0 4px 0 var(--grass-x); text-shadow: 0 2px 0 rgba(0,0,0,.3); transition: transform .15s, filter .15s; }
.sl-btn:hover { filter: brightness(1.08); } .sl-btn:active { transform: translateY(3px); box-shadow: inset -4px -4px 0 var(--grass-d), inset 4px 4px 0 #8adb67, 0 1px 0 var(--grass-x); }
.sl-btn:disabled { opacity: .4; cursor: default; filter: grayscale(.6); }
.slider.no-scroll .sl-nav { visibility: hidden; }
.sl-dots { display: flex; gap: 8px; margin-right: 10px; }
.sl-dots i { width: 12px; height: 12px; background: var(--line); border: 2px solid var(--ink); cursor: pointer; transition: background .2s, transform .2s; }
.sl-dots i.on { background: var(--grass); transform: scale(1.2); }
.app .sl-dots i { border-color: #fff; background: rgba(255,255,255,.3); } .app .sl-dots i.on { background: var(--gold); }

/* ---------- Hero extras ---------- */
.blocks { position: absolute; inset: 0; overflow: hidden; }
.blocks i { position: absolute; top: -20px; display: block; border: 2px solid rgba(0,0,0,.35); box-shadow: inset -3px -3px 0 rgba(0,0,0,.2), inset 3px 3px 0 rgba(255,255,255,.3); opacity: .85; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translateY(-40px) rotate(0); } 100% { transform: translateY(110vh) rotate(360deg); } }
.scroll-cue { position: relative; z-index: 2; height: 0; text-align: center; }
.scroll-cue i { position: absolute; left: 50%; top: -96px; width: 26px; height: 42px; margin-left: -13px; border: 3px solid #fff; border-radius: 14px; opacity: .9; }
.scroll-cue i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: #fff; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(14px); opacity: .2; } }
.mod, .nmod, .cat { transform-style: preserve-3d; will-change: transform; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink); border-radius: 12px; padding: 9px 16px 9px 13px; line-height: 1; box-shadow: 0 4px 0 #000, var(--shadow); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.store:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #000, var(--shadow); }
.store:active { transform: translateY(2px); box-shadow: 0 2px 0 #000; }
.store-ico { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 800; font-size: 1.15rem; }
.store small { font-size: .68rem; font-weight: 600; opacity: .85; letter-spacing: .02em; }
.store-lg { padding: 12px 22px 12px 16px; }
.store-lg .store-ico { width: 32px; height: 32px; }
.store-lg span { font-size: 1.4rem; }
.store-light { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 4px 0 var(--gold-d), var(--shadow); }
.store-light:hover { box-shadow: 0 6px 0 var(--gold-d), var(--shadow); }
.ghost { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-d); text-decoration: none; padding: 12px 6px; }
.ghost:hover { text-decoration: underline; }
.more { background: var(--grass); color: #fff; border: 2px solid var(--grass-x); border-radius: 12px; padding: 11px 22px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 var(--grass-x); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.more:hover { background: #79cf58; }
.more:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--grass-x); }
.more[hidden] { display: none; }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 3vw, 32px); z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(255,250,240,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--pixel); font-weight: 700; font-size: 1.3rem; }
.brand img { border-radius: 10px; border: 2px solid var(--ink); }
.brand b { color: var(--grass-d); }
.nav-links { display: flex; gap: 18px; font-weight: 800; font-size: .95rem; white-space: nowrap; }
.brand span { white-space: nowrap; }
@media (max-width: 1100px) { .nav-links { gap: 12px; font-size: .88rem; } }
.nav-links a { position: relative; text-decoration: none; opacity: .85; transition: color .15s, opacity .15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--grass); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.on { opacity: 1; color: var(--grass-d); }
.nav:not(.solid) .nav-links a:hover, .nav:not(.solid) .nav-links a.on { color: #b3ff6b; }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .store-sm span { font-size: 1rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 40px) 0 0; background: #ffb020; overflow: hidden; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* In-game picture (Luxury Mansion Success) under the rays, slow zoom, gold tint fading to solid colour on the text side */
/* The picture shows as it is: no zoom, sharp, full colour. Only a soft shade behind the text column and under the header. */
.hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: saturate(1.1); }
.tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,14,10,.72) 0%, rgba(17,14,10,.55) 40%, rgba(17,14,10,.15) 58%, rgba(17,14,10,0) 75%), linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 80%, rgba(0,0,0,.35)); }
.hero .lead, .specs { text-shadow: 0 1px 3px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.7); }
/* Hero download button: gold block with a pulsing glow so it is the brightest thing on the dark picture */
.hero .store-lg { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 0 5px 0 var(--gold-d), 0 0 0 0 rgba(255,196,43,.6), 0 14px 34px rgba(0,0,0,.45); animation: pulse 2.4s ease-out infinite; }
.hero .store-lg:hover { background: var(--gold-l); box-shadow: 0 7px 0 var(--gold-d), 0 0 0 10px rgba(255,196,43,.25), 0 18px 40px rgba(0,0,0,.45); animation: none; }
.hero .store-lg small { opacity: .9; }
@keyframes pulse { 0% { box-shadow: 0 5px 0 var(--gold-d), 0 0 0 0 rgba(255,196,43,.65), 0 14px 34px rgba(0,0,0,.45); } 70% { box-shadow: 0 5px 0 var(--gold-d), 0 0 0 16px rgba(255,196,43,0), 0 14px 34px rgba(0,0,0,.45); } 100% { box-shadow: 0 5px 0 var(--gold-d), 0 0 0 0 rgba(255,196,43,0), 0 14px 34px rgba(0,0,0,.45); } }
.hero-pic { image-rendering: auto; }
.nav:not(.solid) .brand, .nav:not(.solid) .nav-links a { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.nav:not(.solid) .brand b { color: var(--gold); }
.nav:not(.solid) .store-sm { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 4px 0 var(--gold-d); }
.hero .lead, .specs { text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.tint::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 28%; left: -40%; background: linear-gradient(100deg, transparent, rgba(255,220,120,.18), transparent); transform: skewX(-12deg); animation: sweep 9s ease-in-out infinite; }
@keyframes sweep { 0%, 35% { left: -40%; } 85%, 100% { left: 120%; } }
.rays, .glow { display: none; }
.hero { background: #140f0a; }
.hero h1 { color: #fff; text-shadow: 3px 3px 0 var(--ink), 0 0 30px rgba(0,0,0,.5); }
.hero .swap { color: var(--gold); }
.hero .lead { color: #f3eee9; }
.specs { color: #f3ede4; text-shadow: 0 1px 0 rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.6); }
.hero .ghost { color: var(--gold-l); }
.proof li { background: rgba(255,255,255,.92); }
.rays { position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.22) 0 7deg, transparent 7deg 18deg); animation: spin 90s linear infinite; }
.rays.r2 { background: repeating-conic-gradient(from 9deg, rgba(255,120,20,.16) 0 5deg, transparent 5deg 24deg); animation-duration: 140s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.glow { position: absolute; left: 60%; top: 42%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.55), rgba(255,255,255,0) 65%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-bottom: 110px; }
.hero h1 { color: #fff; text-shadow: 3px 3px 0 var(--ink), 0 0 30px rgba(0,0,0,.5); }
.hero .swap { color: var(--gold); }
.hero .lead { font-weight: 700; color: #f3eee9; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 6px; font-weight: 800; font-size: .9rem; text-decoration: none; box-shadow: 0 3px 0 var(--ink); margin-bottom: 22px; }
.chip .new { background: var(--lava); color: #fff; border-radius: 999px; padding: 3px 9px; font-family: var(--pixel); letter-spacing: .08em; }
.chip .arrow { transition: transform .2s; } .chip:hover .arrow { transform: translateX(3px); }
.swap { display: inline-grid; color: var(--grass-d); text-align: left; }
.swap b { grid-area: 1/1; opacity: 0; transform: translateY(.5em) rotateX(-70deg); transition: opacity .5s, transform .5s; transform-origin: bottom; font-weight: inherit; }
.swap b.on { opacity: 1; transform: none; }
.lead { font-size: 1.22rem; margin-top: 20px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.specs { margin-top: 14px; font-size: .9rem; color: #f3ede4; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.6); }
.proof { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; }
.proof li { background: rgba(255,255,255,.9); white-space: nowrap; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 700; font-size: .95rem; box-shadow: 0 3px 0 var(--ink); }
.proof b { color: var(--blue-d); font-weight: 900; }

.hero-art { position: relative; height: 620px; perspective: 1400px; }
.hero-strip { display: none; }
.phone { position: absolute; left: 50%; top: 10px; width: 290px; margin-left: -145px; border-radius: 42px; border: 10px solid var(--ink); background: var(--ink); box-shadow: 0 30px 60px rgba(120,50,0,.4), 0 0 0 2px #333, 0 0 0 14px rgba(255,255,255,.25); transform: rotateY(-14deg) rotateX(6deg); animation: phone-in 1.2s cubic-bezier(.2,.8,.2,1) both, bob 7s ease-in-out 1.2s infinite; overflow: hidden; }
.phone img { border-radius: 32px; }
.notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: var(--ink); border-radius: 999px; z-index: 2; }
@keyframes phone-in { from { opacity: 0; transform: rotateY(-40deg) translateY(60px); } }
@keyframes bob { 50% { transform: rotateY(-14deg) rotateX(6deg) translateY(-12px); } }
.toast { position: absolute; left: 14px; right: 14px; top: 80px; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; box-shadow: 0 4px 0 var(--ink); opacity: 0; transform: translateY(-20px); z-index: 3; }
.toast svg { width: 26px; height: 26px; color: var(--grass-d); flex: none; }
.toast b { display: block; font-size: .9rem; line-height: 1.2; } .toast small { color: var(--mute); font-size: .78rem; }
.toast.show { animation: toast 3.4s ease both; }
@keyframes toast { 10%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-20px); } }
.float { position: absolute; width: 230px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 6px; box-shadow: 0 6px 0 var(--ink), var(--shadow); animation: hover 6s ease-in-out infinite; opacity: 0; }
.float.in { opacity: 1; }
.float img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 9px; }
.float b { display: block; font-size: .92rem; margin: 6px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float span { display: flex; gap: 8px; margin: 2px 4px 2px; font-size: .78rem; color: var(--mute); font-weight: 700; }
.float .tag { margin-left: auto; color: var(--grass-d); } .float .tag.coins { color: var(--gold-d); }
.f1 { left: -10px; top: 40px; animation-delay: -1s; }
.f2 { right: -20px; top: 180px; animation-delay: -3s; }
.f3 { left: 10px; bottom: 30px; animation-delay: -5s; }
@keyframes hover { 50% { transform: translateY(-10px) rotate(-1deg); } }
.badge-free { position: absolute; right: 10px; bottom: 60px; display: flex; align-items: center; gap: 8px; background: var(--gold); border: 2px solid var(--ink); border-radius: 14px; padding: 8px 14px; box-shadow: 0 5px 0 var(--gold-d); transform: rotate(4deg); animation: hover 5s ease-in-out -2s infinite; }
.badge-free b { font-family: var(--pixel); font-size: 2rem; line-height: 1; } .badge-free span { font-size: .8rem; font-weight: 900; line-height: 1.05; text-transform: uppercase; }

.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.ground .grass { position: absolute; inset: 0 0 auto 0; height: 46px; background: var(--grass); background-image: linear-gradient(90deg, rgba(0,0,0,.08) 50%, transparent 50%), linear-gradient(rgba(255,255,255,.12), transparent 60%); background-size: 32px 100%, 100% 100%; box-shadow: inset 0 -6px 0 var(--grass-d); }
.ground .grass::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: repeating-linear-gradient(90deg, var(--grass) 0 16px, transparent 16px 32px); }
.ground .dirt { position: absolute; inset: 46px 0 0 0; background: var(--dirt); background-image: radial-gradient(circle at 20% 40%, var(--dirt-d) 0 5px, transparent 6px), radial-gradient(circle at 70% 70%, var(--dirt-d) 0 4px, transparent 5px), radial-gradient(circle at 45% 20%, var(--stone) 0 3px, transparent 4px); background-size: 96px 64px, 128px 72px, 160px 80px; }

/* ---------- Stats: five white block cards with 3D ore cubes, standing on a grass strip ---------- */
.hero { padding-bottom: 70px; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: var(--grass); background-image: repeating-linear-gradient(90deg, transparent 0 16px, rgba(0,0,0,.12) 16px 32px); box-shadow: inset 0 -5px 0 var(--grass-d); z-index: 2; }
.hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 18px; height: 10px; background: repeating-linear-gradient(90deg, var(--grass) 0 12px, transparent 12px 28px); z-index: 2; }
.stats { position: relative; z-index: 3; background: var(--paper); padding: 0 0 20px; margin-top: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform: translateY(-46px); margin-bottom: -26px; }
.slot { --c: var(--lava); position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink), 0 16px 30px rgba(0,0,0,.18); text-align: center; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.slot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.slot:hover { transform: translateY(-5px); box-shadow: 0 11px 0 var(--ink), 0 22px 34px rgba(0,0,0,.2); }
.slot b { display: block; font-family: var(--pixel); font-size: 2.1rem; line-height: 1; color: var(--c); text-shadow: 2px 2px 0 rgba(23,22,21,.15); }
.slot small { display: block; font-size: .78rem; font-weight: 900; color: var(--ink-2); line-height: 1.15; text-transform: uppercase; letter-spacing: .03em; }
/* flat pixel block icon */
.ico { position: relative; width: 40px; height: 40px; flex: none; margin-top: 4px; display: grid; place-items: center; background: #2b2b2b; border: 2px solid var(--ink); box-shadow: inset -3px -3px 0 #111, inset 3px 3px 0 #555; }
.ico svg { width: 24px; height: 24px; shape-rendering: crispEdges; image-rendering: pixelated; animation: bobIco 2.4s ease-in-out infinite; }
@keyframes bobIco { 50% { transform: translateY(-3px); } }
.slot:nth-child(1) { --c: var(--lava); } .slot:nth-child(2) { --c: var(--blue); } .slot:nth-child(3) { --c: var(--gold-d); } .slot:nth-child(4) { --c: var(--grass-d); } .slot:nth-child(5) { --c: #1aa9c2; }

/* ---------- Trending ticker: the app's own "Search suggestions" row (blue UI, white chips with a trend arrow, coin-pill label) ---------- */
.ticker { display: flex; align-items: center; background: linear-gradient(var(--blue), var(--blue-d)); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); height: 64px; overflow: hidden; box-shadow: inset 0 2px 0 rgba(255,255,255,.25); }
.ticker-label { flex: none; margin: 0 14px 0 16px; padding: 0 14px 0 8px; height: 38px; display: flex; align-items: center; gap: 8px; font-family: var(--pixel); font-weight: 600; font-size: 1rem; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--gold-d); letter-spacing: .03em; white-space: nowrap; }
.ticker-view { overflow: hidden; flex: 1; mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 10px; width: max-content; padding: 0 10px; animation: marquee 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px 0 10px; height: 38px; margin: 13px 0; text-decoration: none; font-weight: 800; font-size: .95rem; color: var(--blue-d); white-space: nowrap; background: #fff; border: 2px solid #0e3b8f; border-radius: 10px; box-shadow: 0 3px 0 #0e3b8f; transition: transform .15s, background .15s; }
.ticker-track a:hover { transform: translateY(-2px); background: var(--gold-l); }
.ticker-track a i { font-style: normal; font-weight: 900; color: var(--lava); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Filter: every category on one line, as wooden signs on an oak-plank board ---------- */
.filter { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 10px 12px; border: 4px solid #4a2d12; border-radius: 6px; box-shadow: 0 6px 0 #4a2d12, inset 0 0 0 2px #b8803f;
  background: #9a6a36; background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(0,0,0,.18) 118px 122px), repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,.05) 14px 15px, rgba(0,0,0,.08) 15px 16px); }
.filter .sl-nav { order: 2; margin: 0; flex: none; }
.filter .sl-btn { width: 40px; height: 40px; font-size: 1.3rem; border-color: #3b3b3b; background: #8f8f8f; color: #fff; border-radius: 4px; box-shadow: inset -4px -4px 0 #5e5e5e, inset 4px 4px 0 #b7b7b7, 0 3px 0 #2b2b2b; text-shadow: 0 2px 0 #3b3b3b; }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; flex: 1; min-width: 0; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; scroll-snap-align: start; background: #d9a65d; color: #3a2210; border: 2px solid #4a2d12; border-radius: 4px; padding: 8px 14px; font-weight: 900; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s;
  box-shadow: inset 0 -4px 0 #a66f2f, inset 0 3px 0 #f1cf8a, 0 3px 0 #2f1a08; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.chip-btn:hover { transform: translateY(-2px); background: #e8b66b; }
.chip-btn.on { background: var(--grass); color: #fff; border-color: var(--grass-x); box-shadow: inset 0 -4px 0 var(--grass-d), inset 0 3px 0 #a9ea86, 0 3px 0 #1f4d0f, 0 0 14px rgba(103,196,74,.7); text-shadow: 0 1px 0 rgba(0,0,0,.4); }

/* Build cards: oak-plank frames like inventory slots, emerald Download block */
.mod-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; height: 38px; background: #2ec466; color: #fff; font-family: var(--pixel); font-weight: 400; font-size: 1rem; letter-spacing: .02em; border: 2px solid #0f6b35; border-radius: 4px; box-shadow: inset -4px -4px 0 #1a9a4d, inset 4px 4px 0 #6fe59b, 0 3px 0 #0a4a24; text-shadow: 0 2px 0 rgba(0,0,0,.35); transition: filter .15s, transform .15s; }
.mod-btn svg { width: 15px; height: 15px; }
.mod:hover .mod-btn { filter: brightness(1.12); transform: translateY(-1px); }
.mod-cat { color: #a66f2f; }
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mod { display: block; background: #f6e7c8; border: 4px solid #6b4423; border-radius: 6px; overflow: hidden; text-decoration: none; box-shadow: inset 0 0 0 2px #c48a4a, 0 6px 0 #3f2610; transition: transform .2s, box-shadow .2s; animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
.mod:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px #e0a85e, 0 11px 0 #3f2610, 0 18px 30px rgba(63,38,16,.3); }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(14px); } }
.mod-img { position: relative; aspect-ratio: 16/10; background: #d9e8f5; overflow: hidden; border-bottom: 3px solid #6b4423; }
.mod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mod:hover .mod-img img { transform: scale(1.06); }
.mod-img img.broken { opacity: 0; }
.rank { position: absolute; right: 8px; bottom: 8px; background: #2b2b2b; color: #fff; font-family: var(--pixel); font-size: .9rem; padding: 3px 8px; border-radius: 3px; border: 2px solid #111; box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #555; }
.rank.top { background: #2ec466; color: #fff; border-color: #0f6b35; box-shadow: inset -2px -2px 0 #1a9a4d, inset 2px 2px 0 #6fe59b; }
.price { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--grass); color: #fff; font-weight: 900; font-size: .8rem; padding: 3px 9px; border-radius: 3px; border: 2px solid var(--ink); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.price.coins { background: var(--gold); color: var(--ink); text-shadow: none; }
.price svg { width: 14px; height: 14px; }
.mod-body { padding: 12px 14px 14px; background: linear-gradient(#fbf1dc, #f1dfb9); }
.mod-cat { font-size: .75rem; font-weight: 900; color: var(--grass-d); text-transform: uppercase; letter-spacing: .06em; }
.mod h3 { font-family: var(--font); font-weight: 900; font-size: 1.02rem; margin: 3px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-meta { display: flex; gap: 12px; font-size: .82rem; color: var(--mute); font-weight: 800; }
.mod-meta svg { width: 13px; height: 13px; vertical-align: -1px; }
.mod-meta .mcv { margin-left: auto; background: #e6cf9f; border: 1px solid #c48a4a; border-radius: 3px; padding: 1px 7px; color: #3a2210; }

/* ---------- Just added rail ---------- */
.fresh { background: #f3e6cc; background-image: radial-gradient(circle at 12% 30%, rgba(255,255,255,.5) 0 2px, transparent 3px), radial-gradient(circle at 70% 80%, rgba(107,68,35,.12) 0 3px, transparent 4px); background-size: 140px 90px, 180px 120px; border-top: 4px solid #6b4423; }
.rail { display: flex; gap: 18px; overflow-x: auto; padding: 10px 0 24px; scrollbar-width: none; scroll-snap-type: x mandatory; --per: 4; }
.nmod { flex: none; width: calc((100% - 18px * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; display: block; text-decoration: none; background: #f6e7c8; border: 4px solid #6b4423; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 2px #c48a4a, 0 6px 0 #3f2610; animation: pop .5s cubic-bezier(.2,.8,.2,1) both; transition: transform .2s, box-shadow .2s; }
.nmod:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px #e0a85e, 0 10px 0 #3f2610, 0 16px 26px rgba(63,38,16,.3); }
.nmod-img { position: relative; display: block; aspect-ratio: 16/10; background: #d9e8f5; border-bottom: 3px solid #6b4423; overflow: hidden; }
.nmod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nmod:hover .nmod-img img { transform: scale(1.06); }
.newtag { position: absolute; top: 8px; left: 8px; background: var(--lava); color: #fff; font-family: var(--pixel); font-size: .85rem; padding: 3px 8px; border: 2px solid #7a2e00; border-radius: 3px; box-shadow: inset -2px -2px 0 #c44d00, inset 2px 2px 0 #ffb27a; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.nmod-body { display: block; padding: 10px 12px 12px; background: linear-gradient(#fbf1dc, #f1dfb9); }
.nmod-body b { display: block; font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 8px; }
.nmod-foot { display: flex; align-items: center; gap: 8px; }
.nmod-foot small { background: #e6cf9f; border: 1px solid #c48a4a; border-radius: 3px; padding: 1px 7px; font-weight: 800; font-size: .75rem; color: #3a2210; white-space: nowrap; }
.nmod-foot .mod-btn { flex: 1; margin: 0; height: 32px; font-size: .9rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.bx { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 0 var(--ink); }
.bx h3 { font-size: 1.15rem; margin-bottom: 4px; }
.bx > p { color: var(--mute); font-size: .92rem; }
.bx .small { font-size: .85rem; margin-top: 12px; color: var(--ink-2); }
.bx-donut { grid-column: span 3; grid-row: span 2; }
.bx-split { grid-column: span 3; }
.bx-types { grid-column: span 3; }
.bx-bars { grid-column: span 3; grid-row: span 2; }
.bx-ver { grid-column: span 2; }
.bx-lang { grid-column: span 2; }
.bx-act .small { color: #dbe7ff; }
.bx-act { grid-column: span 4; background: linear-gradient(135deg, var(--blue-d), var(--blue)); color: #fff; }
.bx-act h3 { color: var(--gold); }
.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; margin-top: 14px; }
.donut { width: 100%; }
.donut .seg { transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }
.donut .dn { font-family: var(--pixel); font-size: 18px; font-weight: 700; fill: var(--ink); }
.donut .dl { font-size: 8px; font-weight: 800; fill: var(--mute); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; font-weight: 800; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border: 2px solid var(--ink); flex: none; }
.legend b { margin-left: auto; font-family: var(--pixel); color: var(--ink-2); }
.split { display: flex; height: 44px; border: 2px solid var(--ink); overflow: hidden; margin-top: 14px; font-weight: 900; font-size: .9rem; }
.split span { display: flex; align-items: center; justify-content: center; gap: 5px; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.split-free { background: var(--grass); width: var(--p); flex: none; border-right: 2px solid var(--ink); }
.split-paid { background: var(--gold); flex: 1; color: var(--ink) !important; text-shadow: none !important; }
.split b { font-family: var(--pixel); font-size: 1.2rem; }
.types { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.types .t-head { display: flex; justify-content: space-between; font-size: .9rem; }
.types em { font-style: normal; font-family: var(--pixel); color: var(--blue-d); }
.types .track { display: block; height: 10px; background: var(--line); border: 1px solid #cdbfa8; overflow: hidden; margin: 4px 0; }
.types .fill { display: block; height: 100%; width: 0; background: var(--blue); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.types small { color: var(--mute); font-size: .8rem; }
.hbars { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.hbars li { display: grid; grid-template-columns: 150px 1fr 36px; gap: 10px; align-items: center; font-size: .88rem; font-weight: 800; }
.hbars .track { display: block; height: 14px; background: var(--line); border: 2px solid var(--ink); overflow: hidden; }
.hbars .fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lava), var(--gold)); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.hbars b { font-family: var(--pixel); text-align: right; }
.vers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vers span { background: var(--grass); color: #fff; border: 2px solid var(--grass-x); padding: 5px 10px; font-family: var(--pixel); font-weight: 600; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.langs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.langs li { background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .82rem; font-weight: 800; }
.acts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.acts b { display: block; font-family: var(--pixel); font-size: 1.6rem; line-height: 1; }
.acts span { font-size: .78rem; font-weight: 800; color: #dbe7ff; }

/* ---------- Why ---------- */
.why { background: linear-gradient(var(--paper), #fff5dd); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 0 var(--ink); }
.why-card i { display: grid; place-items: center; width: 48px; height: 48px; font-style: normal; font-size: 1.5rem; background: var(--gold-l); border: 2px solid var(--ink); margin-bottom: 12px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.why-card p { color: var(--mute); font-size: .92rem; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 30px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 5px 0 var(--ink); font-size: .95rem; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-family: var(--pixel); font-size: 1.05rem; background: var(--paper); }
.compare th:nth-child(2) { background: var(--grass); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.compare td:first-child { font-weight: 900; width: 20%; }
.compare td:nth-child(2) { font-weight: 800; color: var(--grass-x); }
.compare td:nth-child(3) { color: var(--mute); }
.compare tr:last-child td { border-bottom: 0; }

/* ---------- Hot this month ---------- */
.hot { background: #2a2320; color: #fff; position: relative; border-top: 6px solid #ff7a1a; box-shadow: inset 0 6px 0 #ffb347, inset 0 60px 80px -40px rgba(255,122,26,.45); }
.hot::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hot .wrap { position: relative; }
.hot h2 { color: #fff; } .hot .sub { color: #e2d6c8; } .hot .kicker { color: var(--gold); }
.hot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hot-list li { min-width: 0; }
.hot-list li { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
.hot-card { display: block; text-decoration: none; background: #3a3230; border: 4px solid #1a1412; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 2px #6b5a52, 0 6px 0 #0d0a09; transition: transform .2s, box-shadow .2s; }
.hot-card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 2px #ff9a4a, 0 11px 0 #0d0a09, 0 0 28px rgba(255,122,26,.45); }
.hot-img { position: relative; display: block; aspect-ratio: 16/10; background: #1a1412; border-bottom: 3px solid #1a1412; overflow: hidden; }
.hot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hot-card:hover .hot-img img { transform: scale(1.06); }
.hot-rank { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; background: var(--lava); color: #fff; font-family: var(--pixel); font-size: 1rem; padding: 3px 9px 3px 6px; border: 2px solid #7a2e00; border-radius: 3px; box-shadow: inset -2px -2px 0 #c44d00, inset 2px 2px 0 #ffb27a; }
.hot-rank svg { width: 16px; height: 16px; animation: flicker 1s steps(2) infinite; }
@keyframes flicker { 50% { transform: scaleY(.85) translateY(1px); opacity: .85; } }
.hot-body { display: block; padding: 10px 12px 12px; background: linear-gradient(#3f3734, #332b28); }
.hot-body .mod-cat { color: var(--gold); }
.hot-body b { display: block; color: #fff; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 8px; }
.hot-foot { display: flex; align-items: center; gap: 8px; }
.hot-foot .mod-btn { flex: 1; margin: 0; height: 32px; font-size: .9rem; }
.heat { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 900; color: #ffb27a; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.heat i { width: 6px; height: 12px; background: #5a4a44; border: 1px solid #1a1412; }
.heat.h0 i, .heat.h1 i:nth-child(-n+4), .heat.h2 i:nth-child(-n+3), .heat.h3 i:nth-child(-n+3), .heat.h4 i:nth-child(-n+2), .heat.h5 i:nth-child(-n+2), .heat.h6 i:first-child, .heat.h7 i:first-child { background: linear-gradient(var(--gold), var(--lava)); border-color: #7a2e00; }
.heat i:last-of-type { margin-right: 4px; }

/* ---------- Categories: one-line slider ---------- */
.cat-grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 0 24px; scrollbar-width: none; --per: 4; }
.cat-grid::-webkit-scrollbar { display: none; }
.cat { flex: none; width: calc((100% - 18px * (var(--per) - 1)) / var(--per)); scroll-snap-align: start; position: relative; display: flex; flex-direction: column; text-decoration: none; border: 4px solid #6b4423; border-radius: 6px; overflow: hidden; background: #f6e7c8; box-shadow: inset 0 0 0 2px #c48a4a, 0 6px 0 #3f2610; transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px #e0a85e, 0 10px 0 #3f2610, 0 16px 26px rgba(63,38,16,.3); }
.cat:nth-child(-n+3) .cat-thumb::after { content: 'TOP'; position: absolute; left: 8px; top: 8px; background: var(--gold); color: var(--ink); font-family: var(--pixel); font-size: .8rem; padding: 2px 8px; border: 2px solid #7a4e00; border-radius: 3px; box-shadow: inset -2px -2px 0 var(--gold-d), inset 2px 2px 0 var(--gold-l); }
.cat-thumb { position: relative; display: block; aspect-ratio: 16/9; background: #cfe4f7; overflow: hidden; border-bottom: 3px solid #6b4423; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover .cat-thumb img { transform: scale(1.05); }
.cat-body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 12px; background: linear-gradient(#fbf1dc, #f1dfb9); }
.cat h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat p { color: #5a4630; font-size: .85rem; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-foot { display: block; margin-top: auto; }
.cat-foot .mod-btn { margin: 0; height: 32px; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat .cnt { position: absolute; top: 8px; right: 8px; background: #2b2b2b; color: #fff; font-family: var(--pixel); font-size: .85rem; padding: 3px 8px; border-radius: 3px; border: 2px solid #111; box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #555; }

/* ---------- Inside the app ---------- */
/* Deepslate night: dark stone with a faint block grid, torch-gold captions */
.app { position: relative; background: #1d1b1a; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; color: #fff; overflow: hidden; }
.app::before { content: ''; position: absolute; left: 50%; top: 30%; width: 900px; height: 600px; margin-left: -450px; background: radial-gradient(ellipse, rgba(255,196,43,.22), transparent 65%); pointer-events: none; }
.app::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--grass) 0 16px, var(--grass-d) 16px 32px); }
.app .wrap { position: relative; }
.app .kicker { color: var(--gold); } .app .sub { color: #cfc8bf; }
.app .sl-btn { border-color: var(--gold-d); background: var(--gold); color: var(--ink); box-shadow: inset -4px -4px 0 var(--gold-d), inset 4px 4px 0 var(--gold-l), 0 4px 0 #7a4e00; text-shadow: none; }
.shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; padding: 10px 0 10px; width: min(1480px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.shots.reveal { transform: translateX(-50%) translateY(18px); } .shots.reveal.in { transform: translateX(-50%); }
.shots::-webkit-scrollbar, .rail::-webkit-scrollbar { display: none; }
.shots figure { margin: 0; text-align: center; min-width: 0; }
.shots img { width: 100%; height: auto; display: block; }
.shots img { border-radius: 22px; border: 4px solid #000; box-shadow: 0 0 0 2px #3a3634, 0 24px 40px rgba(0,0,0,.6), 0 0 60px rgba(255,196,43,.15); transition: transform .3s, box-shadow .3s; }
.shots figure:hover img { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 0 0 2px var(--gold), 0 30px 46px rgba(0,0,0,.6), 0 0 80px rgba(255,196,43,.35); }
.shots figcaption { font-family: var(--pixel); font-size: .95rem; margin-top: 12px; color: var(--gold); text-shadow: 0 0 12px rgba(255,196,43,.5); }
.app .sl-dots i { border-color: var(--gold-d); background: #3a3634; } .app .sl-dots i.on { background: var(--gold); }
.rails { margin-top: 30px; }
.rails h3 { font-family: var(--font); font-weight: 800; font-size: 1rem; color: #dbe7ff; margin-bottom: 12px; }
.rails ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rails li { background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .92rem; }
.rails li small { color: var(--gold); margin-left: 6px; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { display: flex; gap: 14px; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: 0 5px 0 var(--ink); }
.step-n { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-family: var(--pixel); font-size: 1.6rem; color: #fff; background: var(--grass); border: 2px solid var(--grass-x); box-shadow: inset -4px -4px 0 var(--grass-d), inset 4px 4px 0 #8adb67; text-shadow: 0 2px 0 rgba(0,0,0,.3); }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { color: var(--mute); font-size: .95rem; }
.reward { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; margin-top: 40px; background: linear-gradient(135deg, #fff2c7, #ffe08a); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 6px 0 var(--gold-d); }
.reward .kicker { color: var(--gold-d); }
.reward h3 { font-size: 1.6rem; margin-bottom: 10px; }
.reward p:not(.kicker) { color: var(--ink-2); }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.days li { background: #fff; border: 2px solid var(--ink); border-radius: 10px; text-align: center; padding: 8px 2px 6px; box-shadow: 0 3px 0 var(--ink); transition: transform .3s, background .3s; }
.days li small { display: block; font-size: .65rem; font-weight: 900; color: var(--mute); text-transform: uppercase; }
.days li svg { width: 30px; height: 30px; margin: 4px auto; }
.days li b { display: block; font-family: var(--pixel); font-size: 1rem; color: var(--gold-d); }
.days li.got { background: var(--grass); border-color: var(--grass-x); transform: translateY(-4px); }
.days li.got b, .days li.got small { color: #fff; }
.days li.got::after { content: '✓ claimed'; display: block; font-size: .6rem; font-weight: 900; color: #fff; }
.days li.mystery svg { filter: hue-rotate(200deg); }

/* ---------- Worldwide bars ---------- */
.world { background: linear-gradient(var(--paper), #eef7ff); }
.world-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 40px 1fr 110px; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; }
.bars .flag { grid-row: span 2; font-family: var(--pixel); font-weight: 700; background: var(--ink); color: #fff; width: 40px; height: 32px; display: grid; place-items: center; border-radius: 6px; font-size: .95rem; }
.bars .name { font-weight: 800; } .bars .pct { text-align: right; font-family: var(--pixel); font-size: 1.1rem; color: var(--grass-d); white-space: nowrap; }
.bars .pct::after { content: ' players'; font-family: var(--font); font-size: .7rem; color: var(--mute); }
.bars li { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
.bars div { grid-column: 2 / 4; }
.bars .track { display: block; height: 14px; background: #d8d8d8; border: 2px solid var(--ink); overflow: hidden; }
.bars .fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--grass-d), var(--grass)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 12px; margin-bottom: 10px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 900; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--pixel); font-size: 1.4rem; color: var(--grass-d); }
.faq details[open] summary::after { content: '−'; }
.faq p { padding: 0 18px 16px; color: var(--ink-2); }

/* ---------- Final ---------- */
.final { position: relative; padding: 84px 0; color: #fff; text-align: center; overflow: hidden; background: var(--ink); }
.final-bg { position: absolute; inset: 0; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .35; filter: blur(2px) saturate(1.2); }
.final-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(23,22,21,.4), rgba(23,22,21,.85)); }
.final-inner { position: relative; }
.final-logo { margin: 0 auto 20px; border-radius: 22px; border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.final .sub { color: #e8e2d8; margin: 14px auto 28px; }
.final-cta { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.qr { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 14px 8px 8px; text-align: left; font-size: .85rem; }
.qr[hidden] { display: none; }
.qr img, .qr canvas { display: block; }
.fine { margin-top: 20px; font-size: .85rem; color: #b8b1a8; }

/* ---------- Footer + sticky ---------- */
.footer { background: var(--ink); color: #b8b1a8; padding: 36px 0 110px; border-top: 4px solid var(--dirt); }
.footer-inner { display: grid; gap: 12px; }
.footer .brand { color: #fff; }
.legal { font-size: .8rem; max-width: 80ch; }
.links a { color: #fff; }
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; background: linear-gradient(#3a2f2a, #221a16); color: #fff; border: 3px solid var(--gold-d); border-radius: 12px; padding: 8px 10px 8px 8px; box-shadow: inset 0 0 0 2px #6b4423, inset 0 2px 0 rgba(255,255,255,.12), 0 6px 0 #3f2610, 0 22px 44px rgba(0,0,0,.45); z-index: 60; transform: translateY(130%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.sticky-cta::before { content: ""; position: absolute; left: 10px; right: 10px; top: -3px; height: 3px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, var(--gold-l) 8px 12px, transparent 12px 16px); }
.sticky-cta.show { transform: none; }
.sticky-cta img { border-radius: 8px; border: 2px solid var(--gold); box-shadow: 0 0 0 2px #1a1412, 0 0 16px rgba(255,196,43,.35); }
.sticky-cta div { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta b { display: block; font-size: .95rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 0 #000; }
.sticky-cta span { font-size: .78rem; color: #e2d6c8; font-weight: 700; }
.free-pill { font-style: normal; font-family: var(--pixel); font-size: .7rem; background: var(--grass); color: #fff; padding: 1px 6px; border: 1px solid var(--grass-x); border-radius: 3px; box-shadow: inset 0 -2px 0 var(--grass-d); margin-right: 2px; text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.sticky-cta .store-sm { background: var(--grass); border: 2px solid var(--grass-x); border-radius: 8px; box-shadow: inset -4px -4px 0 var(--grass-d), inset 4px 4px 0 #8adb67, 0 3px 0 #1f4d0f; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); animation: ctaPulse 2.2s ease-in-out infinite; }
.sticky-cta .store-sm:hover { filter: brightness(1.08); }
@keyframes ctaPulse { 0%, 100% { box-shadow: inset -4px -4px 0 var(--grass-d), inset 4px 4px 0 #8adb67, 0 3px 0 #1f4d0f, 0 0 0 0 rgba(108,195,73,.6); } 60% { box-shadow: inset -4px -4px 0 var(--grass-d), inset 4px 4px 0 #8adb67, 0 3px 0 #1f4d0f, 0 0 0 12px rgba(108,195,73,0); } }
.cta-x { flex: none; width: 28px; height: 28px; background: #1a1412; color: #e2d6c8; border: 2px solid #6b4423; border-radius: 6px; font-size: .8rem; font-weight: 900; cursor: pointer; line-height: 1; }
.cta-x:hover { background: #3f2610; color: #fff; }
@media (min-width: 901px) { .sticky-cta { left: auto; right: 24px; max-width: 440px; } }

/* ---------- Ripple ---------- */
/* Block-break click: the button squashes like a pressed block and pixel chips fly out */
.clicked { animation: squash .35s cubic-bezier(.2,.8,.2,1); }
@keyframes squash { 30% { transform: scale(.9, .85); } 70% { transform: scale(1.06, 1.04); } }
.sl-btn.clicked { animation-name: squash-abs; }
@keyframes squash-abs { 30% { transform: scale(.85); } 70% { transform: scale(1.1); } }
.chipx { position: fixed; width: 6px; height: 6px; pointer-events: none; z-index: 99; border: 1px solid rgba(0,0,0,.4); animation: chipfly .55s ease-out forwards; }
@keyframes chipfly { to { transform: translate(var(--dx), var(--dy)) rotate(180deg); opacity: 0; } }

/* ---------- Pixel burst ---------- */
.px { position: fixed; width: 8px; height: 8px; pointer-events: none; z-index: 99; animation: burst .7s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mod-grid, .hot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail, .cat-grid { --per: 3; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; margin-left: 0; transform: none; }
  .shots.reveal { transform: translateY(18px); } .shots.reveal.in { transform: none; }
  .hero-art { height: 560px; }
  .float { width: 190px; }
}
@media (max-width: 900px) {
  .final { padding: 64px 0; }
  .section { padding: 64px 0; }
  /* Phone-first hero on small screens: a clean phone, the pitch, then the top builds as a swipe strip */
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 16px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-bottom: 56px; gap: 10px; }
  .proof { margin-top: 22px; }
  .hero-art { order: -1; height: 340px; width: 100%; margin: 0 auto 6px; overflow: visible; }
  .phone { width: 190px; margin-left: -95px; top: 0; transform: none; animation: phone-in 1s cubic-bezier(.2,.8,.2,1) both; }
  .phone img { max-height: 300px; object-fit: cover; object-position: top; }
  .phone::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--ink)); }
  .float, .toast { display: none; }
  .badge-free { right: 10%; bottom: 10px; padding: 6px 10px; } .badge-free b { font-size: 1.5rem; }
  .hero-strip { display: flex; gap: 10px; overflow-x: auto; width: 100vw; margin-left: calc(50% - 50vw); padding: 6px 16px 10px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .hero-strip::-webkit-scrollbar { display: none; }
  .hs { flex: none; width: 150px; scroll-snap-align: start; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 5px; text-decoration: none; text-align: left; box-shadow: 0 4px 0 var(--ink); }
  .hs img { aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; width: 100%; }
  .hs b { display: block; font-size: .78rem; margin: 5px 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hs span { display: block; font-size: .72rem; font-weight: 800; color: var(--mute); margin: 1px 2px 2px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .chip { margin-bottom: 12px; }
  .lead { max-width: 60ch; font-size: 1.05rem; margin-top: 12px; }
  .hero-cta { justify-content: center; margin-top: 18px; }
  .specs { font-size: .8rem; }
  .proof { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: 100vw; padding: 4px 16px 8px; margin-left: calc(50% - 50vw); scrollbar-width: none; }
  .proof::-webkit-scrollbar { display: none; }
  .stats-grid { display: flex; overflow-x: auto; gap: 10px; scrollbar-width: none; transform: none; margin: 0 auto; padding: 16px 2px 12px; scroll-snap-type: x mandatory; }
  .slot { flex: 0 0 46%; scroll-snap-align: start; }
  .stats-grid::-webkit-scrollbar { display: none; }
  .slot { flex: none; width: 150px; padding: 14px 8px 12px; } .slot b { font-size: 1.6rem; }
  .glow { left: 50%; top: 22%; width: 360px; height: 360px; margin: -180px 0 0 -180px; }
  .hero-pic { object-position: 60% 40%; }
  .tint { background: linear-gradient(rgba(17,14,10,.3), rgba(17,14,10,.25) 35%, rgba(17,14,10,.75) 60%, rgba(17,14,10,.85)); }
  .hot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hot-foot .mod-btn { font-size: .8rem; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bx { grid-column: span 2 !important; grid-row: auto !important; }
  .bx-ver { grid-column: span 2 !important; }
  .donut-wrap { grid-template-columns: 150px 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hbars li { grid-template-columns: 120px 1fr 36px; }
  .reward { grid-template-columns: 1fr; }
  .world-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .wrap { width: min(100% - 32px, 1180px); }
  .mod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mod h3 { font-size: .9rem; } .mod-body { padding: 10px; } .mod-meta { gap: 8px; font-size: .75rem; }
  .cat-grid { --per: 2; }
  .ico { width: 36px; height: 36px; }
  .store-lg span { font-size: 1.2rem; }
  .free-only { font-size: .85rem; padding: 5px 9px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bx, .bx-ver { grid-column: span 1 !important; }
  .acts { grid-template-columns: 1fr 1fr; }
  .filter .sl-nav { display: none; }
  .filter { padding: 6px; border-radius: 12px; }
  .chip-btn { padding: 6px 10px; font-size: .85rem; }
  .mod-btn { height: 32px; font-size: .8rem; }
  .scroll-cue { display: none; }
  .sl-nav { margin: 0 0 12px; justify-content: center; }
  .sl-btn { width: 40px; height: 40px; font-size: 1.4rem; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .donut { max-width: 200px; }
  .why-grid { grid-template-columns: 1fr; }
  .compare { font-size: .82rem; } .compare th, .compare td { padding: 8px 10px; }
  .rail { --per: 2; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .brand { font-size: 1.1rem; }
  .nav .store-sm { padding: 8px 10px; } .nav .store-sm span { display: none; }
  .sticky-cta .store-sm { padding: 8px 10px; } .sticky-cta .store-sm small { display: none; } .sticky-cta .store-sm span { font-size: .95rem; }
  .mod-meta span[title="Views"] { display: none; }
  .mod-meta .mcv { font-size: .7rem; }
}

#allBtn[hidden], #allNote[hidden] { display: none; }

/* ---------- By the numbers: six plain fact tiles ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fact { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 18px; background: #fff; border: 3px solid var(--ink); border-radius: 8px; box-shadow: 0 6px 0 var(--ink); overflow: hidden; transition: transform .2s; }
.fact::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 8px; background: var(--c); border-bottom: 2px solid var(--ink); }
.fact:hover { transform: translateY(-4px); }
.fact-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 4px; background: var(--c); border: 2px solid var(--ink); border-radius: 6px; box-shadow: inset -3px -3px 0 rgba(0,0,0,.2), inset 3px 3px 0 rgba(255,255,255,.35); }
.fact-ico svg { width: 26px; height: 26px; fill: #fff; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.4)); shape-rendering: crispEdges; }
.fact b { font-family: var(--pixel); font-size: 2.2rem; line-height: 1.1; color: var(--c); -webkit-text-stroke: 1px var(--ink); text-shadow: 3px 3px 0 var(--ink); }
.fact-t { font-weight: 900; font-size: 1.05rem; color: var(--ink); }
.fact-s { color: var(--mute); font-size: .92rem; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .fact b { font-size: 1.8rem; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- How it works: six steps with the app's own screenshots ---------- */
.guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.guide li.wide { grid-column: span 2; }
.guide li.wide .g-img { aspect-ratio: auto; flex: 1; min-height: 200px; }
.guide li.wide .g-img img { object-position: center 70%; }
.guide li.wide .g-txt { padding-bottom: 10px; }
@media (max-width: 1100px) { .guide { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guide li.wide { grid-column: span 1; } .guide li.wide .g-img { aspect-ratio: 16/11; flex: none; } }
.guide li { display: flex; flex-direction: column; background: #fff; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 0 var(--ink); transition: transform .2s; }
.guide li:hover { transform: translateY(-4px); }
.g-txt { padding: 18px 18px 14px; }
.g-txt .step-n { width: 40px; height: 40px; font-size: 1.3rem; margin-bottom: 10px; }
.g-txt h3 { font-size: 1.1rem; margin-bottom: 4px; }
.g-txt p { color: var(--mute); font-size: .95rem; }
.g-txt p b { color: var(--ink); }
.g-img { cursor: zoom-in; position: relative; margin: auto 0 0; background: #1f2a3a; border-top: 3px solid var(--ink); aspect-ratio: 16/11; overflow: hidden; }
.g-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.g-img.tall img { object-fit: contain; }
.tips { margin-top: 24px; background: #fff8e6; border: 3px solid var(--ink); border-radius: 8px; padding: 16px 20px; box-shadow: 0 6px 0 var(--ink); }
.tips > b { display: block; font-family: var(--pixel); font-size: 1.1rem; margin-bottom: 8px; }
.tips ul { margin: 0; padding-left: 20px; color: var(--ink-2); } .tips li { margin: 4px 0; } .tips b { color: var(--ink); }
@media (max-width: 900px) { .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 560px) { .guide { grid-template-columns: 1fr; } }

/* ---------- Lightbox for guide screenshots ---------- */
.g-img::after { content: "Tap to enlarge"; position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; pointer-events: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,8,6,.9); display: grid; place-items: center; padding: 24px; animation: lbIn .2s ease; }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border: 4px solid #fff; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #fff; animation: pop .25s cubic-bezier(.2,.8,.2,1); }
.lightbox figcaption { color: #fff; font-weight: 800; text-align: center; font-size: 1.05rem; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; background: var(--grass); color: #fff; border: 2px solid var(--grass-x); border-radius: 6px; font-size: 1.3rem; font-weight: 900; cursor: pointer; box-shadow: inset -3px -3px 0 var(--grass-d), inset 3px 3px 0 #8adb67; }

.app .section-head { text-align: center; margin-left: auto; margin-right: auto; }
.app .section-head .sub { margin-left: auto; margin-right: auto; }

/* ---------- Phone polish ---------- */
@media (max-width: 640px) {
  .hot-foot, .nmod-foot { flex-wrap: wrap; }
  .hot-foot .heat, .nmod-foot small { flex: 1 0 100%; justify-content: flex-start; }
  .hot-foot .mod-btn, .nmod-foot .mod-btn { flex: 1 0 100%; }
  .sticky-cta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-cta b { font-size: .88rem; }
  .guide li.wide .g-img { aspect-ratio: 16/11; }
}

.hs span svg, .float span i svg { width: 12px; height: 12px; vertical-align: -1px; fill: currentColor; }

/* ticker label: icon only on phones */
.ticker-label { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 640px) {
  .ticker-label .tl-text { display: none; }
  .ticker-label { padding: 0 10px; min-width: 40px; justify-content: center; }
  .ticker-label svg { width: 20px; height: 20px; }
}

/* phones and tablets: the hero is centred, so the changing word must sit in the centre of its line too
   (it was left-aligned inside a box as wide as the longest word, so short words like "city" hung to the left) */
@media (max-width: 900px) {
  .hero h1 .swap { display: grid; justify-items: center; text-align: center; width: 100%; }
  .hero h1 .swap + br { display: none; }
}

/* build cards: every row lines up. The category sits on one line (long ones like "Furniture & Interior"
   used to wrap and push that card's name, numbers and button lower than its neighbour's), and the
   Download button is pinned to the bottom of the card. */
.mod { display: flex; flex-direction: column; }
.mod-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mod-body .mod-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mod-body .mod-btn { margin-top: auto; }
.mod-body .mod-meta { margin-bottom: 10px; }
/* phones: one build per row, with full-size text and both numbers back */
@media (max-width: 560px) {
  .mod-grid { grid-template-columns: 1fr; gap: 16px; }
  .mod h3 { font-size: 1.05rem; }
  .mod-body { padding: 12px 14px 14px; }
  .mod-meta { gap: 12px; font-size: .85rem; }
  .mod-meta span[title="Views"] { display: inline; }
  .mod-meta .mcv { font-size: .78rem; }
  .mod-body .mod-btn { height: 40px; font-size: 1rem; }
}

/* phones: every card list shows ONE card at a time (rising list, category slider, new-builds slider),
   and the daily reward shows 3 coins per row */
@media (max-width: 560px) {
  .hot-list { grid-template-columns: 1fr; gap: 16px; }
  .rail, .cat-grid { --per: 1; }
  .hot-body b, .nmod-body b { font-size: 1.05rem; }
  .hot-foot, .nmod-foot { flex-wrap: nowrap; }
  .hot-foot .heat, .nmod-foot small { flex: none; }
  .hot-foot .mod-btn, .nmod-foot .mod-btn { flex: 1 1 auto; height: 38px; font-size: .95rem; }
  .cat h3 { font-size: 1.1rem; } .cat p { font-size: .95rem; }
  .cat-foot .mod-btn { height: 38px; font-size: .95rem; }
  .days { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .days li svg { width: 36px; height: 36px; }
  .days li b { font-size: 1.15rem; }
}

/* phones: one card per view means many more slider dots (21 for categories). Let the dots shrink to fit
   so they never push the arrows off the screen. */
@media (max-width: 560px) {
  .sl-nav { max-width: 100%; }
  .sl-dots { flex: 0 1 auto; min-width: 0; gap: 4px; margin-right: 8px; }
  .sl-dots i { flex: 1 1 12px; min-width: 3px; max-width: 12px; height: 12px; border-width: 1px; }
  .sl-btn { flex: none; }
}

/* small screens: the store screenshot already has a phone drawn in it, so inside our phone frame it read as
   a phone inside a phone. Show a real build picture (the #1 build) instead; the app screens stay in "Inside the app". */
@media (max-width: 900px) {
  .hero-art { height: auto; padding: 14px 0 22px; perspective: none; }
  .hero-art .phone { display: none; }
  .hero-art .float.f1 { display: block; position: relative; left: auto; top: auto; right: auto; bottom: auto;
    width: min(340px, 88%); margin: 0 auto; padding: 8px; text-align: left; border-width: 3px; }
  .hero-art .float.f1 b { font-size: 1.05rem; margin-top: 8px; }
  .hero-art .float.f1 span { font-size: .85rem; }
  .hero-art .badge-free { right: max(4%, calc(50% - 190px)); bottom: auto; top: -8px; transform: rotate(4deg); }
}

/* ---------- Blur-fill picture frames: the whole picture is visible, a blurred copy fills the frame ---------- */
.fillbg { position: relative; overflow: hidden; background: #1f2a3a; }
.fillbg::before { content: ""; position: absolute; inset: -14px; background: var(--bg) center / cover no-repeat; filter: blur(14px) saturate(1.25) brightness(.72); }
.fillbg > img { position: relative; object-fit: contain; }
.g-img.fillbg > img { position: absolute; object-fit: contain; object-position: center; }
.guide li.wide .g-img img { object-position: center; }

.showall { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; font-family: var(--pixel); font-size: 1.05rem; color: #fff; text-decoration: none; background: var(--grass); border: 3px solid var(--grass-x); border-radius: 10px; box-shadow: inset -5px -5px 0 var(--grass-d), inset 5px 5px 0 #8adb67, 0 6px 0 #1f4d0f; text-shadow: 0 2px 0 rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s; }
.showall:hover { transform: translateY(-2px); box-shadow: inset -5px -5px 0 var(--grass-d), inset 5px 5px 0 #8adb67, 0 8px 0 #1f4d0f, 0 14px 24px rgba(0,0,0,.2); }
.showall:active { transform: translateY(3px); box-shadow: inset -5px -5px 0 var(--grass-d), inset 5px 5px 0 #8adb67, 0 3px 0 #1f4d0f; }
.showall span { transition: transform .2s; } .showall:hover span { transform: translateX(6px); }
.showall-note { margin-top: 10px; color: var(--mute); font-size: .85rem; }
@media (max-width: 640px) { .showall { font-size: .95rem; padding: 10px 18px; } }

/* ---------- Hero background variants (data-bg on .hero) ---------- */
.bgfx { position: absolute; inset: 0; display: none; }
.hero[data-bg="build"] .hero-pic, .hero[data-bg="blueprint"] .hero-pic, .hero[data-bg="village"] .hero-pic { display: none; }
.hero[data-bg="build"] .bgfx, .hero[data-bg="blueprint"] .bgfx, .hero[data-bg="rise"] .bgfx, .hero[data-bg="village"] .bgfx { display: block; }

/* Block build: dusk sky, grass floor, a house assembled block by block, then taken down and rebuilt */
.hero[data-bg="build"] { background: #140f0a; }
.hero[data-bg="build"] .bgfx { background: linear-gradient(#1b2a4a 0%, #4a2d5a 35%, #d2572a 70%, #ffb347 100%); }
.hero[data-bg="build"] .tint { background: linear-gradient(90deg, rgba(17,14,10,.55) 0%, rgba(17,14,10,.35) 40%, rgba(17,14,10,0) 65%); }
.bb-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: #8a5a2b; background-image: linear-gradient(#6cc349 0 22%, #3c8527 22% 30%, transparent 30%), repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 2px, transparent 2px 48px); }
.bb-sun { position: absolute; width: 90px; height: 90px; background: #ffe08a; box-shadow: 0 0 60px 20px rgba(255,200,80,.5); left: 12%; top: 18%; animation: bbSun 12s ease-in-out infinite alternate; }
@keyframes bbSun { to { transform: translateY(40px); } }
.bb-house { position: absolute; left: 47%; bottom: 18%; display: grid; grid-template-columns: repeat(var(--cols), var(--u)); grid-auto-rows: var(--u); --u: clamp(16px, 2.6vw, 36px); opacity: .8; }
.bb-house i { display: block; width: var(--u); height: var(--u); opacity: 0; transform: translateY(-60px) scale(.6); animation: bbIn .45s cubic-bezier(.2,.9,.3,1.3) forwards; box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), inset 3px 3px 0 rgba(255,255,255,.18); }
.bb-house.out i { animation: bbOut .35s ease-in forwards; opacity: 1; transform: none; }
@keyframes bbIn { to { opacity: 1; transform: none; } }
@keyframes bbOut { to { opacity: 0; transform: translateY(40px) rotate(20deg); } }
.bb-house i.R { background: #a33b2a; } .bb-house i.P { background: #b7803f; } .bb-house i.G { background: #9be1ff; opacity: 0; } .bb-house i.D { background: #5d3b1a; } .bb-house i.S { background: #8f8f8f; } .bb-house i.L { background: #3c8527; } .bb-house i.T { background: #6b4423; } .bb-house i.W { background: #f0e4c8; } .bb-house i.Y { background: #ffc42b; box-shadow: 0 0 14px #ffc42b, inset 0 0 0 2px rgba(0,0,0,.2); }
.bb-house i.x { visibility: hidden; animation: none; }
.bb-cloud { position: absolute; top: 10%; height: 26px; width: 120px; background: rgba(255,255,255,.85); box-shadow: 30px -14px 0 rgba(255,255,255,.85), 60px 0 0 rgba(255,255,255,.85); animation: bbCloud linear infinite; }
@keyframes bbCloud { from { transform: translateX(-200px); } to { transform: translateX(110vw); } }
.bb-steve { position: absolute; bottom: 18%; width: 22px; height: 44px; background: linear-gradient(#5a3a1a 0 20%, #c58c5c 20% 40%, #2ea8a0 40% 72%, #3b2f8f 72% 100%); animation: bbWalk 9s ease-in-out infinite alternate; }
@keyframes bbWalk { from { left: 6%; } to { left: 40%; } }

/* Blueprint: dark grid paper, house outline drawn, then filled in */
.hero[data-bg="blueprint"] .bgfx { background: #0e2a4a; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; }
.hero[data-bg="blueprint"] .tint { background: linear-gradient(90deg, rgba(5,15,30,.6) 0%, rgba(5,15,30,.3) 45%, transparent 70%); }
.bp { position: absolute; left: 50%; bottom: 8%; transform: translateX(-60%); width: min(52vw, 700px); height: auto; opacity: .9; }
.bp path, .bp rect { fill: none; stroke: #9be1ff; stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: bpDraw 4s ease forwards, bpFill 1.2s ease 4s forwards; }
.bp .f1 { animation-delay: .2s, 4.2s; } .bp .f2 { animation-delay: .8s, 4.4s; } .bp .f3 { animation-delay: 1.4s, 4.6s; } .bp .f4 { animation-delay: 2s, 4.8s; }
@keyframes bpDraw { to { stroke-dashoffset: 0; } }
@keyframes bpFill { to { fill: var(--f, rgba(155,225,255,.18)); } }
.bp-ok { position: absolute; left: 50%; transform: translateX(-50%); bottom: 4%; font-family: var(--pixel); color: #7cff3a; font-size: clamp(1rem, 2vw, 1.6rem); opacity: 0; animation: bpOk .6s ease 5.4s forwards; text-shadow: 0 0 12px #7cff3a; }
@keyframes bpOk { to { opacity: 1; } }

/* Rising rows: the photo appears row by row from the ground up, like a world loading in */
.hero[data-bg="rise"] .hero-pic { -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0); }
.hero[data-bg="rise"] .bgfx { background: #140f0a; -webkit-mask: linear-gradient(to top, transparent 0 var(--p, 0%), #000 var(--p, 0%)); mask: linear-gradient(to top, transparent 0 var(--p, 0%), #000 var(--p, 0%)); animation: riseUp 6s steps(12) infinite; pointer-events: none; background-image: repeating-linear-gradient(0deg, transparent 0 calc(100% / 12 - 2px), #6cc349 calc(100% / 12 - 2px) calc(100% / 12)); }
@keyframes riseUp { 0% { --p: 0%; } 70% { --p: 100%; } 100% { --p: 100%; } }
.hero[data-bg="rise"] .bgfx::after { content: ""; position: absolute; inset: 0; background: #140f0a; }

/* Village night: deep blue night, torches glowing, stars, a row of pixel houses */
.hero[data-bg="village"] { background: #0b1226; }
.hero[data-bg="village"] .bgfx { background: linear-gradient(#0b1226 0%, #1b2a4a 60%, #2b3a2a 100%); }
.hero[data-bg="village"] .tint { background: linear-gradient(90deg, rgba(5,10,25,.5) 0%, rgba(5,10,25,.2) 50%, transparent 70%); }
.vn-star { position: absolute; width: 3px; height: 3px; background: #fff; animation: twinkle 2.2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .3; } to { opacity: 1; } }
.vn-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #2f5d22; background-image: linear-gradient(#3c8527 0 20%, transparent 20%); }
.vn-house { position: absolute; bottom: 16%; width: var(--w); height: var(--h); background: #b7803f; box-shadow: inset 0 0 0 3px rgba(0,0,0,.25); }
.vn-house::before { content: ""; position: absolute; left: -12%; right: -12%; top: -30%; height: 32%; background: #6b4423; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.vn-house::after { content: ""; position: absolute; left: 20%; top: 30%; width: 28%; height: 28%; background: #ffc42b; box-shadow: 0 0 18px 6px rgba(255,196,43,.55); animation: windowFlicker 1.6s steps(2) infinite; }
@keyframes windowFlicker { 50% { box-shadow: 0 0 10px 3px rgba(255,196,43,.35); } }
.vn-torch { position: absolute; bottom: 16%; width: 8px; height: 40px; background: #6b4423; }
.vn-torch::after { content: ""; position: absolute; top: -10px; left: -4px; width: 16px; height: 16px; background: #ff7a1a; box-shadow: 0 0 24px 10px rgba(255,122,26,.55); animation: windowFlicker 1.1s steps(2) infinite; }

/* picker (dev aid, shown with ?bg in the address) */
.bgpick { position: fixed; left: 12px; bottom: 90px; z-index: 70; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: rgba(0,0,0,.8); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: .8rem; }
.bgpick[hidden] { display: none; }
.bgpick b { margin-right: 4px; } .bgpick button { background: #333; color: #fff; border: 1px solid #666; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-weight: 800; } .bgpick button.on { background: var(--grass); border-color: var(--grass-x); }
@media (max-width: 900px) { .bb-house { left: 50%; transform: translateX(-50%); --u: clamp(14px, 4vw, 22px); } .bp { transform: translateX(-50%); width: 80vw; } .bp-ok { display: none; } }
@media (prefers-reduced-motion: reduce) { .bb-house i, .bp path, .bp rect, .bb-cloud, .bb-steve, .vn-star { animation: none !important; opacity: 1; stroke-dashoffset: 0; } }

/* equal spacing pass: hero bottom gap, stats strip, FAQ last item (phones + tablets) */
.faq details:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .hero { padding-bottom: 30px; }
  .hero-grid { padding-bottom: 0; }
  .stats-grid { padding-top: 22px; }
  .stats { padding-bottom: 10px; }
}

/* phone held sideways (short screens): slimmer top bar and bottom App Store bar so the page has room */
@media (max-height: 460px) and (orientation: landscape) {
  :root { --nav-h: 52px; }
  .nav { height: 52px; }
  .sticky-cta { padding-top: 4px; padding-bottom: 4px; }
  .sticky-cta img { width: 34px; height: 34px; }
  .sticky-cta .mod-btn, .sticky-cta a { height: 38px; }
}

/* ---------- Build cards: description + tier, tab counts ---------- */
.mod-desc { margin: 4px 0 8px; font-size: .82rem; line-height: 1.4; color: var(--mute); min-height: 4.2em; }
.mod-tier { font-weight: 800; font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: #ffe9b0; color: #7a4a00; border: 1px solid #e5c06a; }
.mod-tier.free { background: #dff5d3; color: var(--grass-d); border-color: #a9dc8f; }
.chip-n { font-size: .72em; font-weight: 800; opacity: .75; margin-left: 2px; }

/* Top builds: wider area */
#builds .wrap { width: min(1360px, 100% - 32px); }

/* hero app-facts chips: fit on one line on desktop */
.hero .proof { gap: 8px; }
.hero .proof li { padding: 5px 10px; font-size: .86rem; }

/* country bars without numbers */
.bars li { grid-template-columns: 40px 1fr; }
.bars div { grid-column: 2 / 3; }

/* Top builds tab bar: edge to edge on phones */
@media (max-width: 640px) {
  #builds .slider.filter { margin-left: -16px; margin-right: -16px; border-radius: 0; border-left: 0; border-right: 0; }
}

/* Top builds: 2 cards per row on tablets so names fit */
@media (max-width: 860px) and (min-width: 561px) {
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- SEO category pages + type links ---------- */
.type-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 22px auto 0; max-width: 1000px; }
.type-links b { width: 100%; text-align: center; font-weight: 900; }
.type-links a { padding: 6px 12px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; font-weight: 800; font-size: .88rem; color: var(--ink); text-decoration: none; }
.type-links a:hover { color: var(--grass-d); border-color: var(--grass-d); }
.cat-page .nav { position: sticky; top: 0; }
.cat-page .brand img { border-radius: 8px; }
.cat-page .brand em { color: var(--grass); font-style: normal; }
.cat-hero { padding-bottom: 20px; }
.cat-hero h1 { font-family: var(--pixel); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; margin: 10px 0 14px; }
.cat-hero .sub { max-width: 820px; }
.cat-hero .small { font-size: .85rem; opacity: .8; }
.crumbs { font-size: .85rem; color: var(--mute); }
.crumbs a { color: var(--grass-d); font-weight: 800; text-decoration: none; }
.cat-page #builds { padding-top: 10px; }
.cat-page h2 { font-family: var(--pixel); margin: 0 0 20px; }
.showall-wrap { text-align: center; margin-top: 26px; }
.cat-page .foot { padding: 28px 0 40px; font-size: .82rem; color: var(--mute); text-align: center; }

/* hero H1: keyword line above the slogan */
.h1-kw { display: block; font-family: var(--font); font-weight: 900; font-size: clamp(.95rem, 1.6vw, 1.25rem); letter-spacing: .02em; line-height: 1.3; color: var(--gold); text-shadow: 2px 2px 0 var(--ink); margin-bottom: 10px; }

/* footer: builds by type links */
.foot-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 6px 0 14px; font-size: .85rem; }
.foot-types b { width: 100%; text-align: center; font-weight: 900; margin-bottom: 2px; }
.foot-types a { color: inherit; opacity: .8; text-decoration: none; font-weight: 700; }
.foot-types a:hover { opacity: 1; color: var(--grass); text-decoration: underline; }
.foot-types { justify-content: flex-start; gap: 6px 18px; margin: 4px 0 18px; }
.foot-types b { display: none; }

/* tap targets >= 24px (Lighthouse) */
.foot-types a { display: inline-block; padding: 4px 0; }
.footer .legal a { display: inline-block; padding: 4px 0; }
.nav-links a { padding: 3px 0; }

/* category pages: header App Store button + brand */
.cat-page .nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--paper); border-bottom: 2px solid var(--line, #e3dccf); z-index: 50; }
.cat-page .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none; font-family: var(--pixel); font-weight: 700; }
.cat-page .store-sm { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; background: #000; color: #fff; border-radius: 10px; text-decoration: none; font-weight: 800; line-height: 1.1; width: auto; height: auto; }
.cat-page .store-sm small { display: block; font-size: .62rem; font-weight: 600; opacity: .85; }
.cat-page .store-sm span { display: block; font-size: .95rem; }
.crumbs a { display: inline-block; padding: 4px 0; }
@media (max-width: 480px) {
  .cat-page .brand span { font-size: .9rem; }
  .cat-page .brand em { display: none; }
  .cat-page .store-sm { padding: 6px 10px; }
}

/* Bottom sticky bar: no jump/shake on tap (1 Dec 2026). Hover/press lift on the bar or its button made it move up and down on phones. */
#sticky, #sticky *, #stickyCta, #stickyCta * { -webkit-tap-highlight-color: transparent; }
#sticky.show:is(:hover, :active, :focus), #sticky.on:is(:hover, :active, :focus), #stickyCta.show:is(:hover, :active, :focus) { transform: none !important; }
#sticky *:is(:hover, :active, :focus), #stickyCta *:is(:hover, :active, :focus) { transform: none !important; }
#sticky:active, #sticky *:active, #stickyCta *:active { filter: brightness(.92); }

/* Touch screens: no hover lift (a tap used to leave the card jumped up / shaking) */
@media (hover: none) {
  .store:hover, .slot:hover, .ticker-track a:hover, .chip-btn:hover, .mod:hover, .mod:hover .mod-btn,
  .nmod:hover, .hot-card:hover, .cat:hover, .fact:hover, .guide li:hover, .showall:hover,
  .mod:hover .mod-img img, .nmod:hover .nmod-img img, .hot-card:hover .hot-img img, .cat:hover .cat-thumb img,
  .shots figure:hover img, .chip:hover .arrow, .showall:hover span { transform: none !important; }
}
/* more space between card rows so a card never touches the one below */
.mod-grid, .hot-list { row-gap: 28px; }
@media (hover: none) {
  .mod:hover, .nmod:hover { box-shadow: inset 0 0 0 2px #c48a4a, 0 6px 0 #3f2610; }
  .hot-card:hover { box-shadow: inset 0 0 0 2px #6b5a52, 0 6px 0 #0d0a09; }
  .slot:hover { box-shadow: 0 6px 0 var(--ink), 0 16px 30px rgba(0,0,0,.18); }
}
.cat-grid > [hidden] { display: none !important; }
.showall-wrap [hidden] { display: none !important; }

/* category pages: same left edge for hero + grid, even 4/3/2/1 grid */
.cat-page .wrap { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.cat-page .cat-hero .wrap > * { margin-left: 0; }
.cat-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 28px 20px !important; overflow: visible !important; transform: none !important; align-items: stretch; }
.cat-grid > .mod { width: auto !important; min-width: 0 !important; flex: none !important; }
.cat-grid .mod-img { aspect-ratio: 16 / 10; }
.cat-grid .mod-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 780px)  { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px)  { .cat-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 480px)  { .cat-grid { grid-template-columns: 1fr !important; } }
.cat-page .cat-hero .wrap, .cat-page #builds .wrap, .cat-page #faq .wrap, .cat-page .more-types .wrap { max-width: 1240px !important; padding-inline: 20px !important; }

/* category pages: one left edge for everything */
.cat-page .cat-hero .wrap, .cat-page .cat-hero .wrap > * { padding-left: 0; padding-right: 0; margin-left: 0; text-align: left; }
.cat-page .cat-hero .wrap { padding-inline: 20px !important; }
.cat-page .more-types h2 { text-align: left; }
.cat-page .more-types .type-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin: 0; padding: 0; }
.cat-page .more-types .type-links a { margin: 0; }
.cat-page .foot .wrap { max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.cat-page .foot .legal { text-align: left; max-width: none; margin: 0; }
.cat-page main > section > .wrap, .cat-page .foot > .wrap { width: min(1240px, calc(100% - 40px)) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
.cat-page main > section, .cat-page .foot { padding-left: 0 !important; padding-right: 0 !important; }
.cat-page main > section > .wrap, .cat-page .foot > .wrap { width: min(1240px, calc(100% - 32px)) !important; }
.cat-page .foot .legal { padding-left: 0 !important; padding-right: 0 !important; }
.cat-page main > section > .wrap.wrap, .cat-page .foot > .wrap.wrap { padding-left: 0 !important; padding-right: 0 !important; padding-inline: 0 !important; }
.cat-page #builds > .wrap, .cat-page #faq > .wrap, .cat-page #builds .wrap.wrap, .cat-page #faq .wrap.wrap { padding: 0 !important; width: min(1240px, calc(100% - 32px)) !important; max-width: none !important; margin-inline: auto !important; }

/* no 100vw bleed (it is wider than the page when a scrollbar shows and cut the left side) */
@media (max-width: 1100px) {
  .hero-strip, .proof, .stats-grid { width: auto !important; margin-left: -16px !important; margin-right: -16px !important; }
}
html, body { overflow-x: clip; }
.hero-copy { min-width: 0 !important; max-width: 100% !important; }
.hero-copy > * { max-width: 100%; }
@media (max-width: 1100px) { .hero-strip, .proof, .stats-grid { max-width: none; min-width: 0; } }

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

/* sticky App Store bar removed */
#sticky, #stickyCta { display: none !important; }

/* back-to-top: app icon, bottom right */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 58px; height: 58px; border-radius: 14px; border: 3px solid #3f2610; background: #fff; box-shadow: 0 5px 0 #3f2610, 0 10px 20px rgba(0,0,0,.25); overflow: hidden; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.to-top span { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; border-radius: 6px; background: var(--grass, #5cb83a); color: #fff; font: 900 14px/20px sans-serif; text-align: center; }
@media (hover: hover) { .to-top.show:hover { transform: translateY(-3px); } }
@media (max-width: 480px) { .to-top { right: 12px; bottom: 12px; width: 50px; height: 50px; } }

/* header: room around the App Store button (was 2px from the orange bar) */
.nav { min-height: 72px; padding-top: 10px !important; padding-bottom: 14px !important; box-sizing: border-box; align-items: center; }
.nav .store { height: 44px; min-height: 0; padding-top: 0; padding-bottom: 0; align-self: center; }
@media (max-width: 480px) { .nav { min-height: 64px; padding-top: 8px !important; padding-bottom: 12px !important; } .nav .store { height: 40px; } }

/* back-to-top v2: app logo inside a ring that fills as you scroll */
.to-top { width: 64px !important; height: 64px !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 6px 16px rgba(0,0,0,.28) !important; overflow: visible !important; z-index: 9999 !important; display: grid; place-items: center; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .tt-bg { fill: none; stroke: #e8dcc4; stroke-width: 5; }
.to-top .tt-fill { fill: none; stroke: var(--grass, #5cb83a); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.to-top img { position: relative; width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover; }
.to-top span { right: -2px !important; bottom: -2px !important; border-radius: 50% !important; border: 2px solid #fff; width: 22px !important; height: 22px !important; line-height: 18px !important; }
@media (max-width: 480px) { .to-top { width: 56px !important; height: 56px !important; } .to-top img { width: 38px !important; height: 38px !important; } }

/* back-to-top v3: Minecraft block, grass fills up from the bottom as you scroll */
.to-top { --p: 0; width: 62px !important; height: 62px !important; border-radius: 8px !important; background: #6b4423 !important; border: 3px solid #2b1a0c !important; box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), inset 4px 4px 0 rgba(255,255,255,.18), 0 6px 0 #2b1a0c, 0 12px 22px rgba(0,0,0,.35) !important; overflow: hidden !important; opacity: 0; transform: translateY(30px) scale(.6) rotate(-8deg); transition: opacity .25s, transform .45s cubic-bezier(.34,1.56,.64,1) !important; }
.to-top svg { display: none !important; }
.to-top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p) * 100%); background: linear-gradient(#79cf58, #4e9b32); box-shadow: inset 0 4px 0 #9be37a; transition: height .12s linear; }
.to-top.show { opacity: 1; transform: none; }
.to-top img { position: relative; width: 40px !important; height: 40px !important; border-radius: 6px !important; border: 2px solid #2b1a0c; image-rendering: pixelated; }
.to-top span { position: absolute; top: 2px; right: 2px; bottom: auto !important; width: 18px !important; height: 18px !important; border-radius: 4px !important; border: 2px solid #2b1a0c !important; background: #ffd23f !important; color: #2b1a0c !important; font: 900 12px/14px sans-serif !important; animation: tt-bob 1.2s ease-in-out infinite; }
@keyframes tt-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.to-top.full { animation: tt-glow 1.4s ease-in-out infinite; }
@keyframes tt-glow { 0%,100% { box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), 0 6px 0 #2b1a0c, 0 0 0 rgba(121,207,88,0); } 50% { box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), 0 6px 0 #2b1a0c, 0 0 22px rgba(121,207,88,.8); } }
@media (hover: hover) { .to-top.show:hover { transform: translateY(-4px) !important; } .to-top.show:hover img { animation: tt-wiggle .4s; } }
.to-top:active { transform: translateY(3px) !important; box-shadow: inset -4px -4px 0 rgba(0,0,0,.35), 0 2px 0 #2b1a0c !important; }
@keyframes tt-wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top span, .to-top.full { animation: none !important; transition: opacity .2s !important; } }
@media (max-width: 480px) { .to-top { width: 54px !important; height: 54px !important; } .to-top img { width: 34px !important; height: 34px !important; } }

/* back-to-top v4: circle, gold progress ring, logo flips to arrow on hover */
.to-top { width: 64px !important; height: 64px !important; border: 0 !important; border-radius: 50% !important; padding: 0 !important; overflow: visible !important;
  background: conic-gradient(#ffd23f calc(var(--p) * 360deg), rgba(255,255,255,.18) 0) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.35), 0 0 0 3px #1b2a12 !important; transform: scale(0) rotate(-180deg); transition: opacity .3s, transform .55s cubic-bezier(.34,1.56,.64,1) !important; }
.to-top.show { transform: none; }
.to-top::before { content: ""; position: absolute; inset: 5px; height: auto !important; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #4a7a2e, #1b2a12) !important; box-shadow: inset 0 2px 0 rgba(255,255,255,.15) !important; transition: none !important; }
.to-top::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255,210,63,.6); opacity: 0; animation: tt-pulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes tt-pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.to-top img { width: 42px !important; height: 42px !important; border-radius: 50% !important; border: 2px solid #ffd23f !important; transition: transform .35s, opacity .25s; animation: none !important; }
.to-top span { inset: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important; margin: auto; width: 42px !important; height: 42px !important; border-radius: 50% !important; border: 0 !important; background: #ffd23f !important; color: #1b2a12 !important; font: 900 22px/42px sans-serif !important; opacity: 0; transform: translateY(14px) scale(.5); transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s; animation: none !important; }
@media (hover: hover) {
  .to-top.show:hover { transform: translateY(-4px) !important; }
  .to-top.show:hover img { transform: translateY(-14px) scale(.5); opacity: 0; }
  .to-top.show:hover span { transform: none; opacity: 1; animation: tt-up .8s ease-in-out infinite !important; }
}
@keyframes tt-up { 0%,100% { translate: 0 0; } 50% { translate: 0 -4px; } }
.to-top.full { animation: tt-spin-glow 1.6s ease-in-out infinite !important; }
@keyframes tt-spin-glow { 0%,100% { filter: drop-shadow(0 0 0 rgba(255,210,63,0)); } 50% { filter: drop-shadow(0 0 12px rgba(255,210,63,.9)); } }
.to-top:active { transform: scale(.9) !important; }
@media (prefers-reduced-motion: reduce) { .to-top::after { animation: none; } }
@media (max-width: 480px) { .to-top { width: 56px !important; height: 56px !important; } .to-top img, .to-top span { width: 36px !important; height: 36px !important; line-height: 36px !important; } }
/* v4.1: plain arrow (no yellow disc), logo without border */
.to-top img { border: 0 !important; }
.to-top span { background: transparent !important; color: #ffd23f !important; font: 900 28px/42px sans-serif !important; text-shadow: 0 2px 0 #1b2a12; }
/* v4.2: thin ring, bigger logo filling the circle */
.to-top { box-shadow: 0 8px 22px rgba(0,0,0,.3) !important; }
.to-top::before { inset: 3px !important; }
.to-top img, .to-top span { width: 56px !important; height: 56px !important; line-height: 56px !important; }
.to-top img { object-fit: cover; }
@media (max-width: 480px) { .to-top img, .to-top span { width: 48px !important; height: 48px !important; line-height: 48px !important; } }
/* 1024-1200: floating hero card was 6px off the right edge */
@media (max-width: 1200px) { .float.f2 { right: 8px !important; } }

/* hero strip on tablet/phone: even grid, no card cut at the edge */
@media (max-width: 1100px) {
  .hero-strip { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; overflow: visible !important; margin: 0 !important; padding: 6px 0 10px !important; width: 100% !important; }
  .hero-strip .hs { width: auto !important; min-width: 0; }
  .hero-strip .hs:nth-child(n+5) { display: none; }
}
@media (max-width: 520px) {
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* header App Store button: show the words whenever there is room (>= 400px) */
@media (min-width: 400px) { .nav .store-sm span { display: block !important; } .nav .store-sm { padding: 6px 14px !important; } }
@media (min-width: 400px) and (max-width: 479px) { .nav .store-sm span { display: none !important; } .nav .store-sm { padding: 8px 10px !important; } }
.nav .store-sm { width: auto !important; max-width: 190px; white-space: nowrap; }

/* header App Store button: two lines (small "Download on the" above "App Store"), never cut */
.nav .store-sm { max-width: none !important; display: inline-flex !important; align-items: center; gap: 8px; }
.nav .store-sm span { line-height: 1.05; text-align: left; }
.nav .store-sm span small { display: block; }

/* hero strip cards: same height, text lines line up */
.hero-strip .hs { display: flex; flex-direction: column; }
.hero-strip .hs b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.hero-strip .hs > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 2.6em; }
.hero-strip .hs img { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; flex: none; }
.hero-strip { align-items: start; }

/* proof chips + stats: no side-scroll strips; wrap / grid so nothing is cut */
.proof { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; overflow: visible !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; padding: 4px 0 8px !important; gap: 8px !important; }
.proof > * { flex: none; }
@media (max-width: 1100px) {
  .stats-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; overflow: visible !important; width: auto !important; margin: 0 !important; padding: 0 !important; gap: 12px !important; transform: none !important; }
  .stats-grid > * { width: auto !important; min-width: 0 !important; flex: none !important; }
}
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* stats: 4 across 601-1100 (another rule forced 1 column at ~770) */
@media (min-width: 601px) and (max-width: 1100px) { section .stats-grid.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
/* phone: hero builds strip scrolls sideways again (swipe), cards snap */
@media (max-width: 520px) {
  .hero-strip.hero-strip { display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px !important; padding: 6px 16px 12px !important; width: auto !important; scroll-padding-left: 16px; scrollbar-width: none; }
  .hero-strip .hs { flex: 0 0 44% !important; scroll-snap-align: start; }
  .hero-strip .hs:nth-child(n+5) { display: flex !important; }
}
/* strip is a phone/tablet thing only (styled inside max-width:900); above that the hero has its floating cards */
@media (min-width: 901px) { .hero-strip, .hero-strip.hero-strip { display: none !important; } }

/* stats: breathing room above (grass edge) and below (search bar) */
#stats { padding-top: 28px !important; padding-bottom: 28px !important; }
/* phone: stats swipe sideways, cards snap, edge padding kept */
@media (max-width: 600px) {
  #stats .stats-grid.stats-grid { display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory; gap: 12px !important; margin: 0 -16px !important; padding: 4px 16px 14px !important; scroll-padding-left: 16px; scrollbar-width: none; }
  #stats .stats-grid::-webkit-scrollbar { display: none; }
  #stats .stats-grid > * { flex: 0 0 46% !important; scroll-snap-align: start; }
}
@media (max-width: 600px) { #stats .stats-grid.stats-grid { margin: 0 !important; padding: 4px 16px 14px !important; } }
/* chips follow the hero text: left on desktop (text is left), centred on phone/tablet (text is centred) */
@media (min-width: 901px) { .proof.proof { justify-content: flex-start !important; } }
/* desktop stats sat on the grass edge: give them room */
@media (min-width: 601px) { #stats { padding-top: 36px !important; } #stats .stats-grid { margin-top: 0 !important; transform: none !important; } }
/* stats: equal space above and below (section had a fixed height, cards spilled onto the search bar) */
#stats { height: auto !important; min-height: 0 !important; padding-top: 36px !important; padding-bottom: 36px !important; overflow: visible; }
#stats .stats-grid, #stats .stats { margin-top: 0 !important; margin-bottom: 0 !important; transform: none !important; height: auto !important; }
@media (max-width: 600px) { #stats { padding-top: 28px !important; padding-bottom: 20px !important; } }

/* phone/tablet bottom download bar (same look as the Skins site). Desktop has none. Hides near the footer. */
.app-bar { display: none; }
@media (max-width: 900px) {
  .app-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; align-items: center; gap: 12px; background: rgba(20,14,8,.97); color: #fff; padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 -10px 30px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .app-bar.show { transform: none; }
  .app-bar img { border-radius: 10px; flex: none; }
  .app-bar > span { flex: 1; min-width: 0; line-height: 1.2; }
  .app-bar b { display: block; font-family: var(--pixel, inherit); font-size: 17px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .app-bar > span small { display: block; font-size: 12px; color: #d9c7a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ab-get { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; background: #fff; color: #1a120a; text-decoration: none; border-radius: 10px; padding: 8px 14px; font-weight: 900; font-size: 14px; line-height: 1.05; }
  .ab-get small { display: block; font-size: 11px; font-weight: 700; color: #6b5a42; }
  .ab-get:active { transform: scale(.97); }
  body.bar-on { padding-bottom: 72px; }
  body.bar-on .to-top { bottom: 84px !important; }
}
@media (max-width: 360px) { .app-bar { padding-left: 12px; padding-right: 12px; gap: 10px; } .ab-get { padding: 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .app-bar { transition: none; } }
/* stats 601-1100: keep 16px from the screen edges */
@media (min-width: 601px) and (max-width: 1100px) { #stats .stats-grid.stats-grid { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; width: 100% !important; } }

/* lightbox above everything (header, bottom bar, back-to-top); X sits alone in the top-right corner */
.lightbox { z-index: 10050 !important; padding: 72px 16px 24px !important; }
.lb-close { top: max(14px, env(safe-area-inset-top)) !important; right: 14px !important; z-index: 1; }
.lightbox img { max-height: calc(100vh - 150px) !important; }
body:has(.lightbox:not([hidden])) .to-top, body:has(.lightbox:not([hidden])) .app-bar { display: none !important; }
/* lightbox open (class set by JS, works on older iPad Safari too): hide header, bottom bar and back-to-top */
body.lb-open .nav, body.lb-open .to-top, body.lb-open .app-bar, body.lb-open #progress { visibility: hidden !important; }
/* popup close: X drawn as an icon, exactly centred in the green square */
.lb-close { display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; line-height: 0 !important; font-size: 0 !important; }
.lb-close svg { display: block; }

/* equal side + top/bottom space for every section */
#builds .wrap { width: min(1180px, 100% - 32px) !important; }
#hot .section-head, #hot > .wrap > *:first-child { margin-top: 0 !important; }
.cat-page #builds { padding-top: 44px !important; }
.cat-page #faq { padding-bottom: 64px !important; }
@media (min-width: 1024px) { .cat-page #builds { padding-top: 64px !important; } .cat-page #faq { padding-bottom: 84px !important; } }
#hot > .wrap { margin-top: -6px; }
#world > .wrap { margin-bottom: 11px; }
#faq > .wrap { margin-bottom: 22px; }
