:root {
  --bg: #0b0b10;
  --bg-2: #111118;
  --card: #1c1c1c;
  --card-2: #23232b;
  --line: rgba(255,255,255,.08);
  --text: #f4f4f7;
  --muted: #9a9aa8;
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-text: #a5b4fc;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --radius: 16px;
  --pad: max(clamp(16px, 4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));   /* clear the notch in landscape */
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image: url(art/bg-texture.webp);
  background-size: 800px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ── nav ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px var(--pad);
  padding-top: calc(12px + env(safe-area-inset-top));   /* Home Screen app: the status bar overlays the page */
  background: rgba(11,11,16,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 24px rgba(129,140,248,.35); }
.brand-word { font-family: var(--display); font-size: 19px; letter-spacing: -.01em; }
.brand-word b { font-weight: 700; }
.brand-word i { font-style: normal; font-weight: 600; margin-left: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-links a.on { color: var(--text); background: rgba(129,140,248,.16); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(340px, 34vw);
  padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .2s; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129,140,248,.2); }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search kbd { font: 12px 'Inter'; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* ── hero ──────────────────────────────────────────── */
.hero { position: relative; height: min(82vh, 760px); min-height: 600px; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.on .slide-bg { transform: scale(1); }
.slide video.slide-bg { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,16,.95) 0%, rgba(11,11,16,.78) 32%, rgba(11,11,16,.15) 65%, rgba(11,11,16,.3) 100%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11,11,16,0) 32%); }
.slide-copy { position: absolute; z-index: 2; left: var(--pad); bottom: 200px; max-width: min(560px, 86vw); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.slide h1 { font-family: var(--display); font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 14px 0 14px; text-wrap: balance; }
.slide p { font-size: clamp(15px, 1.4vw, 18px); color: #d4d4de; margin: 0 0 26px; max-width: 480px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s; }
.btn svg { width: 18px; height: 18px; }
.btn-play { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px -8px rgba(129,140,248,.7); }
.btn-play svg { fill: currentColor; stroke: none; }
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(129,140,248,.9); }
.btn-ghost { background: rgba(255,255,255,.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-ghost.on { color: #fda4af; }
.btn-ghost.on svg { fill: currentColor; }
.hero-rail { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 34px; justify-content: flex-start; display: flex; gap: 12px; }
.rail-item { width: 148px; border-radius: 12px; overflow: hidden; background: var(--card); border: 2px solid transparent; opacity: .66; transition: .25s; text-align: left; position: relative; }
.rail-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rail-item span { display: block; padding: 7px 10px 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-item:hover { opacity: 1; transform: translateY(-3px); }
.rail-item.on { opacity: 1; border-color: var(--accent); box-shadow: 0 10px 30px -10px rgba(129,140,248,.8); }
.rail-item .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); width: 0; }
.rail-item.on .prog { animation: prog 7s linear forwards; }
@keyframes prog { to { width: 100%; } }

/* ── sections ──────────────────────────────────────── */
.section { padding: 34px var(--pad) 8px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.section-head h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-head a { margin-left: auto; color: var(--accent-text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 22vw, 320px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; margin: 0 -2px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.row-wrap { position: relative; }
.row-arrow { position: absolute; top: 36%; z-index: 4; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(28,28,36,.9); border: 1px solid var(--line); opacity: 0; transition: .2s; box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.row-wrap:hover .row-arrow { opacity: 1; }
.row-arrow.l { left: -14px; } .row-arrow.r { right: -14px; }
.row-arrow:hover { background: var(--accent); }

/* ── game card ─────────────────────────────────────── */
.card { position: relative; display: block; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; }
.card:hover, .card:focus-visible { transform: translateY(-5px); border-color: rgba(129,140,248,.5);
  box-shadow: 0 22px 40px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(129,140,248,.25), 0 10px 40px -10px rgba(129,140,248,.45); outline: none; }
.thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #15151c; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.thumb video { opacity: 0; }
.card.vid .thumb video { opacity: 1; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb .play-ov { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: .25s;
  background: radial-gradient(circle, rgba(11,11,16,.35), rgba(11,11,16,0) 70%); }
.thumb .play-ov span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(129,140,248,.92); box-shadow: 0 8px 30px rgba(129,140,248,.6); transform: scale(.8); transition: .25s; }
.thumb .play-ov svg { fill: #fff; stroke: none; width: 22px; height: 22px; margin-left: 3px; }
.card:hover .play-ov { opacity: 1; } .card:hover .play-ov span { transform: scale(1); }
.thumb .badges { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body .meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 3px; }
.card-body .meta span:last-child { white-space: nowrap; }
.card .fav-dot { position: absolute; right: 10px; top: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11,11,16,.6); backdrop-filter: blur(6px); color: #fda4af; }
.card .fav-dot svg { width: 15px; height: 15px; fill: currentColor; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; background: rgba(11,11,16,.72); backdrop-filter: blur(6px); color: #e4e4ec; border: 1px solid rgba(255,255,255,.1); }
.b-online { color: #67e8f9; } .b-2p { color: #fcd34d; } .b-new { background: var(--accent); color: #fff; border-color: transparent; }
.b-kids { color: #86efac; } .b-3d { color: #c4b5fd; } .b-live { color: #fdba74; } .b-remix { background: linear-gradient(135deg,#818cf8,#a78bfa); color: #fff; border-color: transparent; } .b-mobile { color: #f9a8d4; }
.b-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ── create (Remix Studio) ─────────────────────────── */
.nav-links a.nav-create { color: #fff; background: linear-gradient(135deg, rgba(129,140,248,.35), rgba(167,139,250,.25)); border: 1px solid rgba(129,140,248,.45); }
.nav-links a.nav-create:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.create-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 30px; border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(129,140,248,.22), transparent 55%), linear-gradient(135deg, #17172a, #121218);
  border: 1px solid rgba(129,140,248,.28); position: relative; overflow: hidden; }
.create-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(167,139,250,.25), transparent 70%); pointer-events: none; }
.create-copy .btn-play svg { fill: none; stroke: currentColor; stroke-width: 2; }
.create-copy h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 8px 0 8px; }
.create-copy p { color: #cfcfda; margin: 0 0 18px; max-width: 520px; }
.beta { font-style: normal; margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(251,191,36,.14); color: #fcd34d; letter-spacing: .06em; font-size: 10.5px; }
.create-idea { display: grid; gap: 10px; position: relative; z-index: 1; }
.create-idea label { font-weight: 600; font-size: 14px; color: #e4e4ec; }
.create-idea textarea { min-height: 96px; resize: vertical; background: rgba(11,11,16,.65); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font: inherit; padding: 12px 14px; outline: none; }
.create-idea textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129,140,248,.2); }
.create-idea .btn { justify-self: end; }
.foot a.link { color: var(--accent-text); text-decoration: underline; }
@media (max-width: 900px) { .create-band { grid-template-columns: 1fr; padding: 22px; } }

/* ── social ───────────────────────────────────────── */
.card-body .soc { display: inline-flex; gap: 10px; }
.card-body .soc i { font-style: normal; }
.card-body .soc i.h { color: #fda4af; }
.reacts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.react { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .15s; }
.react span { font-size: 18px; line-height: 1; }
.react b { font-size: 13px; color: #d4d4de; }
.react:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.react.on { background: rgba(129,140,248,.2); border-color: rgba(129,140,248,.6); }
.reacts .plays { margin-left: 6px; color: var(--muted); font-size: 14px; }
.pulse { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 10px; }
.pulse-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: .15s; }
.pulse-item:hover { border-color: rgba(129,140,248,.45); background: var(--card-2); }
.pulse-item img { width: 54px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.pulse-item .pi-ico { width: 26px; text-align: center; flex: none; color: var(--accent-text); }
.pulse-item .pi-text { flex: 1; min-width: 0; font-size: 14px; color: #cfcfda; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-item .pi-text b { color: var(--text); }
.pulse-item time { color: var(--muted); font-size: 12.5px; flex: none; }
.share-dlg { background: #15151c; color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 0; width: min(520px, 94vw); }
.share-dlg::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.sh { position: relative; padding: 18px; display: grid; gap: 12px; }
.sh img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.sh b { font-family: var(--display); font-size: 20px; }
.sh-x { position: absolute; top: 26px; right: 26px; width: 34px; height: 34px; border-radius: 50%; background: rgba(11,11,16,.7); color: #fff; }
.sh-row { display: flex; gap: 8px; }
.sh-row input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: #cfcfda; font: inherit; font-size: 13.5px; padding: 10px 12px; }
.sh-copy { padding: 10px 16px; }
.sh-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sh-btn { text-align: center; padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.sh-btn:hover { background: rgba(129,140,248,.2); }
.sh-native { justify-content: center; }
@media (max-width: 520px) { .sh-links { grid-template-columns: repeat(3, 1fr); } .pulse { grid-template-columns: 1fr; } }

/* ── create / early access ─────────────────────────── */
.create-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: center; padding: 44px var(--pad) 10px; }
.create-hero h1 { font-family: var(--display); font-size: clamp(30px, 3.8vw, 48px); line-height: 1.05; letter-spacing: -.03em; margin: 12px 0; }
.create-hero p { color: #cfcfda; font-size: 16.5px; margin: 0 0 18px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; counter-reset: how; }
.how li { counter-increment: how; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.how li b { display: block; font-size: 14.5px; } .how li b::before { content: counter(how) ". "; color: var(--accent-text); }
.how li span { color: var(--muted); font-size: 13.5px; }
.demo { display: grid; gap: 8px; }
.demo video { width: 100%; aspect-ratio: 16/9; border-radius: 18px; background: #000; border: 1px solid rgba(129,140,248,.35); box-shadow: 0 30px 70px -30px rgba(129,140,248,.6); }
.demo video::cue { background: rgba(11,11,16,.8); color: #fff; font-family: Inter, system-ui, sans-serif; }
.signup { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; padding: 30px; border-radius: 22px; border: 1px solid rgba(129,140,248,.3);
  background: radial-gradient(120% 140% at 0% 0%, rgba(129,140,248,.18), transparent 55%), linear-gradient(135deg, #16162a, #121218); }
.offer h2 { font-family: var(--display); font-size: 30px; margin: 0 0 10px; letter-spacing: -.02em; }
.offer p, .offer li { color: #cfcfda; } .offer ul { padding-left: 18px; margin: 10px 0 14px; } .offer li { margin: 4px 0; }
.already { display: inline-block; margin-top: 8px; color: var(--accent-text); font-weight: 600; }
.signup-form { display: grid; gap: 12px; }
.signup-form label { display: grid; gap: 6px; font-size: 13.5px; color: #d4d4de; font-weight: 600; }
.signup-form input:not([type=checkbox]), .signup-form textarea, .signup-form select { background: rgba(11,11,16,.7); border: 1px solid var(--line); border-radius: 11px; color: var(--text); font: inherit; font-weight: 400; padding: 11px 13px; outline: none; }
.signup-form textarea { min-height: 90px; resize: vertical; }
.signup-form input:focus, .signup-form textarea:focus, .signup-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(129,140,248,.2); }
.signup-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup-form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: #cfcfda; }
.signup-form .agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.signup-form .btn { justify-self: start; }
.form-msg { min-height: 1.2em; margin: 0; color: #fda4af; font-size: 14px; }
.thanks b { font-family: var(--display); font-size: 24px; display: block; margin-bottom: 6px; } .thanks p { color: #cfcfda; }
@media (max-width: 900px) { .create-hero, .signup { grid-template-columns: 1fr; } .signup { padding: 20px; } .how { grid-template-columns: 1fr; } .signup-form .two { grid-template-columns: 1fr; } }

/* ── category tiles ───────────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: .25s; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,16,.92), rgba(11,11,16,0) 60%); }
.cat div { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; }
.cat b { display: block; font-family: var(--display); font-size: 17px; }
.cat small { color: var(--muted); font-size: 12.5px; }
.cat:hover { transform: translateY(-4px); border-color: rgba(129,140,248,.5); box-shadow: 0 10px 40px -12px rgba(129,140,248,.5); }
.cat:hover img { transform: scale(1.07); }

/* ── grid page ─────────────────────────────────────── */
.page-head { position: relative; padding: 46px var(--pad) 26px; overflow: hidden; }
.page-head.with-art { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-head .art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; }
.page-head .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 10%, rgba(11,11,16,.4)), linear-gradient(0deg, var(--bg), transparent 70%); }
.page-head > *:not(.art) { position: relative; }
.page-head h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; margin: 8px 0 6px; }
.page-head p { color: var(--muted); margin: 0; font-size: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 var(--pad) 8px; }
.chip { padding: 8px 15px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #cfcfda; font-weight: 500; font-size: 14px; transition: .2s; }
.chip:hover { background: rgba(255,255,255,.09); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding: 18px var(--pad) 30px; }
.empty { padding: 60px var(--pad); text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* ── detail ───────────────────────────────────────── */
.detail { position: relative; padding: 0 var(--pad) 10px; }
.detail-hero { position: relative; margin: 0 calc(-1 * var(--pad)); height: min(62vh, 560px); min-height: 380px; overflow: hidden; }
.detail-hero img, .detail-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 3%, rgba(11,11,16,.2) 55%, rgba(11,11,16,.45)); }
.detail-main { position: relative; z-index: 2; margin-top: -170px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; }
.detail-main h1 { font-family: var(--display); font-size: clamp(32px, 4.6vw, 58px); line-height: 1.03; letter-spacing: -.03em; margin: 10px 0 12px; }
.detail-main p.lead { font-size: 18px; color: #d4d4de; max-width: 640px; margin: 0 0 24px; }
.detail-main .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.facts { background: rgba(28,28,28,.82); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; text-align: right; }
.note { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); color: #fde68a; font-size: 14px; max-width: 640px; }
.tip { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(129,140,248,.08); border: 1px solid rgba(129,140,248,.25); color: #c7d2fe; font-size: 14px; max-width: 640px; }

.shot { width: min(100%, 900px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }

/* ── player ───────────────────────────────────────── */
.player { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; animation: pin .3s ease; }
@keyframes pin { from { opacity: 0; transform: scale(.98); } }
.player[hidden] { display: none; }
.player-bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: #0e0e14; border-bottom: 1px solid var(--line); }
.pbtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: #d4d4de; font-weight: 600; font-size: 14px; transition: .15s; }
.pbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.pbtn.icon { padding: 8px; }
.pbtn.primary { background: rgba(129,140,248,.18); color: #c7d2fe; }
.pbtn.primary:hover { background: var(--accent); color: #fff; }
.pbtn.on { color: #fda4af; } .pbtn.on svg { fill: currentColor; }
.player-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden; }
.player-title > div { min-width: 0; }
.player-title img { width: 46px; height: 30px; border-radius: 6px; object-fit: cover; }
.player-title b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title small { color: var(--muted); font-size: 12px; }
.player-actions { margin-left: auto; display: flex; gap: 4px; flex-shrink: 0; }
.stage { position: relative; flex: 1; background: #000; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; transition: opacity .5s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(28px) brightness(.45); transform: scale(1.1); }
.loading-card { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.loading-card b { font-family: var(--display); font-size: 26px; }
.loading-card span { color: #c4c4d0; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── footer ───────────────────────────────────────── */
.foot { margin-top: 50px; padding: 34px var(--pad) 50px; border-top: 1px solid var(--line); color: #c4c4d0; font-size: 14px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 8px; }
.foot-brand img { width: 28px; height: 28px; border-radius: 8px; }
.foot p { max-width: 640px; margin: 6px 0; }

/* ── mobile tab bar ───────────────────────────────── */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(14,14,20,.88); backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 2px 14px; }
  .tabbar a.on { color: var(--accent-text); }
  .foot { padding-bottom: 100px; }
}

/* ── responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-rail { display: none; }
  .slide-copy { bottom: 64px; }
  .hero { min-height: 520px; height: 78vh; }
  .detail-main { grid-template-columns: 1fr; gap: 20px; margin-top: -120px; }
  .nav-links { display: none; }
  .search kbd { display: none; }
}
@media (max-width: 600px) {
  .nav { gap: 12px; }
  .brand-word i { display: none; }
  .search { width: auto; flex: 1; min-width: 0; }
  .slide::after { background: linear-gradient(0deg, var(--bg) 8%, rgba(11,11,16,.82) 50%, rgba(11,11,16,.1) 85%); }
  .row { grid-auto-columns: 74vw; }
  .player-title small, .pbtn span { display: none; }
  .player-bar { gap: 6px; padding: 6px 8px; }
  .player-title img, [data-act=share], #p-open { display: none; }
  .pbtn { padding: 8px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── phones in landscape: the game gets the whole screen; the player bar becomes a small floating pill ── */
.player { height: 100dvh; }
@media (orientation: landscape) and (max-height: 500px) {
  .player-bar { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); left: 0; right: auto; flex-direction: column;
    padding: 3px; padding-left: max(3px, env(safe-area-inset-left)); gap: 2px; border-radius: 0 14px 14px 0; background: rgba(14,14,20,.72);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-left: 0; opacity: .75; }
  .player-bar:hover, .player-bar:focus-within { opacity: 1; }
  .player-title, #p-remix, [data-act=share], #p-open, .pbtn span { display: none !important; }
  .player-actions { margin-left: 0; flex-direction: column; }
  .player-title { flex: none; }
  .pbtn { padding: 6px; }
  .stage { position: absolute; inset: 0; }
}
.standalone .player-bar { padding-top: max(8px, env(safe-area-inset-top)); }
.fs-tip { gap: 10px; }
.fs-tip b:first-of-type { font-family: var(--display); font-size: 21px; }
.fs-tip p { margin: 0; color: #cfcfda; }
.fs-tip ol { margin: 0; padding-left: 20px; color: #e4e4ec; display: grid; gap: 6px; }
.fs-tip .btn { justify-self: start; }
.ios-share { display: inline-block; padding: 0 5px; border: 1px solid var(--line); border-radius: 5px; }
.fs-tip ol b, .fs-tip p b { font: inherit; font-weight: 700; }

/* Portrait phones: art on top (no text over it), copy below, so more of each game's backdrop shows. */
@media (max-width: 600px) and (orientation: portrait) {
  .hero { height: auto; min-height: 0; aspect-ratio: auto; }
  .hero .slide { position: absolute; inset: 0; }
  .hero .slide.on { position: relative; }
  .slide-bg { position: relative; inset: auto; height: 52vh; max-height: 470px; transform: none !important; }
  .slide-brand .slide-bg { background-position: 71% 45%; }
  .slide::after { inset: auto 0 auto 0; top: calc(min(52vh, 470px) - 90px); height: 90px;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,16,0) 100%); }
  .slide-copy { position: relative; left: auto; bottom: auto; max-width: none; margin-top: -34px; padding: 0 var(--pad) 18px; min-height: 250px; box-sizing: border-box; }
  .slide h1 { font-size: 30px; margin: 8px 0 8px; }
  .slide p { font-size: 14.5px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cta { flex-wrap: nowrap; gap: 10px; }
  .cta .btn { padding: 11px 16px; font-size: 14.5px; white-space: nowrap; }
}

/* ── build vote ───────────────────────────────────── */
.badge.b-lead { background: rgba(251,191,36,.18); color: var(--amber); }
.vote-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 28px 30px; border-radius: 22px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(129,140,248,.22), transparent 60%), var(--card); border: 1px solid rgba(129,140,248,.25); }
.vote-band h2 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); margin: 8px 0; letter-spacing: -.02em; }
.vote-band p { color: #cfcfda; margin: 0 0 16px; max-width: 520px; }
.vote-band .btn svg { width: 16px; height: 16px; }
.vb-bars { display: grid; gap: 10px; }
.vbar { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.05); overflow: hidden; font-weight: 600; font-size: 14.5px; }
.vbar i { position: absolute; inset: 0 auto 0 0; background: rgba(129,140,248,.22); border-radius: 12px; }
.vbar span, .vbar b { position: relative; }
.vbar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vbar.mine { outline: 1px solid var(--accent); }
.promise-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.promise-steps div { padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 3px; }
.promise-steps b { font-family: var(--display); font-size: 24px; }
.promise-steps span { color: var(--muted); font-size: 13.5px; }
.promise-steps div:last-child { border-color: rgba(129,140,248,.4); }
.promise-steps div:last-child b { color: var(--accent-text); }
.ballots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ballots.busy { opacity: .7; pointer-events: none; }
.ballot { display: grid; grid-template-rows: 150px 1fr; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 2px solid transparent; color: inherit; font: inherit; cursor: pointer; transition: .2s; padding: 0; }
.ballot:hover { border-color: rgba(129,140,248,.45); transform: translateY(-2px); }
.ballot.on { border-color: var(--accent); box-shadow: 0 12px 34px -14px rgba(129,140,248,.8); }
.ballot > img { width: 100%; height: 150px; object-fit: cover; }
.ballot-new { display: grid; place-content: center; justify-items: center; font-size: 40px; color: var(--accent-text);
  background: radial-gradient(circle at 50% 40%, rgba(167,139,250,.35), rgba(11,11,16,.9)); }
.ballot-new small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ballot-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.ballot-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 4px; }
.ballot-tags .badge { position: static; }
.ballot b { font-family: var(--display); font-size: 20px; }
.ballot p { margin: 0; color: #cfcfda; font-size: 14px; }
.tally { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; margin-top: auto; }
.tally i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; transition: width .4s; }
.ballot-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.ballot-foot em { font-style: normal; font-weight: 700; color: var(--accent-text); }
.ballot.on .ballot-foot em { color: #fff; }
.vote-note { margin-top: 14px; font-size: 13.5px; }
.promises { display: grid; gap: 12px; }
.promise { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.promise > img { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; }
.promise small { color: var(--muted); font-size: 12.5px; }
.promise b { display: block; font-family: var(--display); font-size: 20px; margin: 2px 0 4px; }
.promise p { margin: 0 0 8px; color: #cfcfda; font-size: 14px; }
.promise p.upd { color: var(--accent-text); }
.promise-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill.build { background: rgba(129,140,248,.18); color: var(--accent-text); }
.pill.ok { background: rgba(52,211,153,.16); color: #6ee7b7; }
.pill.late { background: rgba(251,191,36,.16); color: var(--amber); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.sm svg { width: 15px; height: 15px; }
.suggest { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; padding: 26px 28px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.suggest h2 { font-family: var(--display); margin: 0 0 8px; }
.suggest p { color: #cfcfda; margin: 0; }
.suggest form { display: grid; gap: 12px; }
.suggest label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.suggest input, .suggest textarea, .suggest select { font: inherit; font-weight: 400; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; outline: 0; }
.suggest textarea { min-height: 72px; resize: vertical; }
.suggest input:focus, .suggest textarea:focus, .suggest select:focus { border-color: var(--accent); }
.suggest .btn { justify-self: start; }
@media (max-width: 900px) {
  .vote-band, .suggest { grid-template-columns: 1fr; padding: 22px 20px; }
  .tabbar a { padding: 2px 8px; }
}
@media (max-width: 600px) {
  .promise-steps { grid-template-columns: 1fr; }
  .promise-steps div { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; padding: 12px 14px; }
  .promise-steps b { font-size: 19px; }
  .promise { grid-template-columns: 1fr; }
  .ballots { grid-template-columns: 1fr; }
}
