/* House Engine studio — Housebets' tokens (arbitrium-frontend globals.css, dark), one sheet. */
:root {
  color-scheme: dark;
  --bg: #041015; --s1: #0B1920; --s2: #0E202A; --s3: #0D2A38; --soft: #09151B; --s0: #030B0F;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14); --t1: #F9F9FB; --t2: #8F96A8; --t3: #5A6070;
  --primary: #C4F4F1; --action: linear-gradient(180deg, #22313B, #17232B); --action-edge: rgba(255,255,255,.14); --on-action: #F9F9FB; --brand: #02F8F8; --ok: #47D496; --err: #F41F50; --gold: #FDDC73; --warn: #F5B84B;
  --display: 'Red Hat Display', system-ui, sans-serif; --text: Figtree, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 14px; --r2: 10px; --rail: 252px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -20px rgba(0,0,0,.8);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--t1); font: 400 14px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--t1); text-underline-offset: 3px; text-decoration-color: var(--t3); }
a:hover { text-decoration-color: var(--t1); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.015em; }
h1 { font-size: 30px; line-height: 36px; font-weight: 800; }
h2 { font-size: 17px; line-height: 24px; font-weight: 700; }
h3 { font-size: 15px; line-height: 20px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.muted, .label { color: var(--t2); }
.dim { color: var(--t3); }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: var(--brand); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.01em; }
.gold { color: var(--gold); }
.ok-text { color: var(--ok); } .err-text { color: var(--err); }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre { margin: 0; background: var(--s0); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; overflow-x: auto; line-height: 1.65; position: relative; }
pre code { background: none; border: 0; padding: 0; }
pre .copy { position: absolute; top: 8px; right: 8px; }
.small-text { font-size: 12.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- icons ---- */
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 15px; height: 15px; }

/* ---- public top bar ---- */
.top { display: flex; align-items: center; gap: 16px; padding: 0 24px; height: 64px; border-bottom: 1px solid var(--line); background: rgba(4,16,21,.85); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 16px/1 var(--display); text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(160deg, #0D2A38, #06181F); border: 1px solid var(--line2); color: var(--brand); display: grid; place-items: center; font-size: 16px; }
.logo .sub { color: var(--t3); font-weight: 600; }
.top nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.top nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--t2); font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--t1); background: var(--s1); }

/* ---- app shell ---- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: linear-gradient(180deg, #071820 0%, var(--bg) 40%); padding: 18px 14px 14px; gap: 6px; overflow-y: auto; }
.rail .logo { padding: 4px 8px 14px; }
.rail .studio { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r2); background: var(--s1); border: 1px solid var(--line); margin-bottom: 8px; text-decoration: none; min-width: 0; }
.rail .studio:hover { border-color: var(--line2); }
.avatar { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, var(--s3), #0A1E28); border: 1px solid var(--line2); display: grid; place-items: center; font: 800 15px var(--display); color: var(--primary); flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
.avatar.xs { width: 26px; height: 26px; font-size: 11px; border-radius: 7px; }
.rail .studio .who { display: grid; min-width: 0; }
.rail .studio strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .studio .muted { font-size: 11.5px; }
.rail nav { display: grid; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; text-decoration: none; color: var(--t2); font-weight: 600; font-size: 13.5px; position: relative; }
.rail nav a .ico { color: var(--t3); }
.rail nav a:hover { color: var(--t1); background: rgba(255,255,255,.03); }
.rail nav a:hover .ico { color: var(--t2); }
.rail nav a[aria-current] { color: var(--t1); background: var(--s2); }
.rail nav a[aria-current] .ico { color: var(--brand); }
.rail nav a[aria-current]::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.rail .label { padding: 12px 10px 6px; font-size: 10.5px; color: var(--t3); }
.rail .grow { flex: 1; }
.rail .me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); margin-top: 8px; }
.rail .me .who { display: grid; min-width: 0; line-height: 1.25; }
.rail .me strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .me .muted { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .me form { margin-left: auto; }
.rail .me button { padding: 6px; }
main { padding: 32px 36px 72px; display: grid; gap: 22px; align-content: start; max-width: 1240px; width: 100%; }
main.narrow { max-width: 460px; margin: 56px auto; padding: 0 16px; }
main.page { margin: 0 auto; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--t2); }
.head h1 + p, .head .meta { margin-top: 6px; }
.phone-top, .tabbar { display: none; }

/* ---- surfaces ---- */
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 38%), var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.card.tight { gap: 8px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .pad { padding: 18px 22px 0; }
.card > h2 + .muted, .card .row.between + .muted { margin-top: -6px; }
a.card { text-decoration: none; }
a.card:hover, .tile:hover .art { border-color: var(--line2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.grid.wide { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.stat { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 50%), var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.stat .num { font-size: 26px; line-height: 30px; }
.stat .num small { font-size: 13px; color: var(--t2); font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.stat.big .num { font-size: 36px; line-height: 40px; }
.stat .muted { font-size: 12.5px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.facts .stat { padding: 14px 16px; gap: 2px; }
.facts .stat .num { font-size: 22px; line-height: 28px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.tight { gap: 6px; }
.stack { display: grid; gap: 8px; }
.stack.loose { gap: 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; align-items: baseline; }
.kv .label { font-size: 11px; }

/* ---- status chips: neutral, colour on the dot ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; font-weight: 600; white-space: nowrap; text-transform: capitalize; line-height: 18px; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--t2); flex: none; }
.chip.ok::before, .chip.live::before, .chip.sandbox::before, .chip.approved::before, .chip.paid::before { background: var(--ok); box-shadow: 0 0 8px rgba(71,212,150,.6); }
.chip.failed::before, .chip.killed::before, .chip.returned::before, .chip.suspended::before { background: var(--err); }
.chip.review::before, .chip.pending::before, .chip.uploaded::before, .chip.verified::before, .chip.running::before, .chip.paused::before { background: var(--warn); }
.chip.plain::before { display: none; }
.chip.brand { color: var(--brand); border-color: rgba(2,248,248,.25); }
.chip.brand::before { display: none; }

/* ---- tables ---- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
th { color: var(--t2); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; border-top: 0; white-space: nowrap; padding-top: 4px; }
td.r, th.r { text-align: right; }
tr.sel td { background: var(--s3); }
tr:hover td { background: rgba(255,255,255,.015); }
td .num { font-size: 14px; }
.card.flush table th:first-child, .card.flush table td:first-child { padding-left: 22px; }
.card.flush table th:last-child, .card.flush table td:last-child { padding-right: 22px; }
.card.flush table th { padding-top: 16px; padding-bottom: 10px; }

/* ---- forms ---- */
form { display: grid; gap: 14px; }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
label .muted { font-weight: 400; }
input, select, textarea { font: inherit; color: var(--t1); background: var(--s0); border: 1px solid var(--line2); border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0; transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.22); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2,248,248,.12); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238F96A8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--primary); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.btn, button { font: 700 14px/1 var(--text); border-radius: 9px; padding: 12px 18px; border: 1px solid var(--action-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.35); cursor: pointer; background: var(--action); color: var(--on-action); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s; }
.btn:hover, button:hover { filter: brightness(1.18); border-color: rgba(255,255,255,.22); }
.btn.secondary, button.secondary { background: rgba(255,255,255,.035); color: var(--t1); border-color: rgba(255,255,255,.08); box-shadow: none; }
.btn.ghost, button.ghost { background: none; color: var(--t2); border-color: var(--line2); box-shadow: none; }
.btn.ghost:hover, button.ghost:hover { color: var(--t1); border-color: rgba(255,255,255,.25); }
button.danger { background: none; color: var(--err); border-color: var(--line2); box-shadow: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn.small, button.small { padding: 8px 12px; font-size: 13px; }
.btn.icon, button.icon { padding: 8px; }
.error { color: var(--t1); background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--err); padding: 10px 12px; border-radius: 8px; }
.note { color: var(--t1); background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--ok); padding: 10px 12px; border-radius: 8px; }
.seg { display: inline-flex; background: var(--s0); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg label { padding: 7px 12px; border-radius: 7px; text-decoration: none; color: var(--t2); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg a[aria-current], .seg label:has(input:checked) { color: var(--t1); background: var(--s3); }
.seg input { position: absolute; opacity: 0; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-transform: capitalize; padding: 10px 14px 12px; text-decoration: none; color: var(--t2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--t1); }
.tabs a[aria-current] { color: var(--t1); border-color: var(--brand); }

/* ---- the funnel / steppers ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.steps li .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); background: var(--s0); border: 1px solid var(--line2); color: var(--t2); }
.steps li.done .n { background: rgba(71,212,150,.12); border-color: rgba(71,212,150,.35); color: var(--ok); }
.steps li.done .n .ico { width: 14px; height: 14px; }
.steps li.next { background: var(--s2); }
.steps li.next .n { background: var(--primary); color: var(--bg); border-color: transparent; }
.steps li.done span:not(.label) { color: var(--t2); }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; list-style: none; margin: 0; padding: 0; }
.track span, .track li { display: grid; gap: 8px; font-size: 12px; font-weight: 600; color: var(--t3); text-transform: capitalize; }
.track span::before, .track li::before { content: ''; height: 4px; border-radius: 2px; background: var(--s3); }
.track .done { color: var(--t2); } .track .done::before { background: var(--ok); opacity: .6; }
.track .now { color: var(--t1); } .track .now::before { background: var(--brand); box-shadow: 0 0 10px rgba(2,248,248,.5); }
.track span.bad { color: var(--err); } .track span.bad::before { background: var(--err); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stages div { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--s0); border: 1px solid var(--line); }
.stages strong { display: flex; gap: 8px; align-items: center; }
.stages .n { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 11px var(--display); background: var(--s3); color: var(--primary); }
.stages .muted { font-size: 12px; }

/* ---- games ---- */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.tile { display: grid; gap: 10px; text-decoration: none; align-content: start; }
.tile .art { aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(160deg, var(--s3), var(--s1)); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font: 800 44px var(--display); color: var(--t3); position: relative; transition: transform .2s, border-color .2s; }
.tile:hover .art { transform: translateY(-2px); }
.tile .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .art .chip { position: absolute; top: 8px; left: 8px; background: rgba(4,16,21,.8); backdrop-filter: blur(6px); }
.tile .art .v { position: absolute; bottom: 8px; right: 8px; font: 700 11px var(--mono); background: rgba(4,16,21,.8); padding: 2px 7px; border-radius: 6px; color: var(--t2); }
.tile strong { font-size: 14px; }
.tile .muted { font-size: 12px; }
.tile.mini { width: 60px; }
.tile.mini .art { font-size: 22px; border-radius: 10px; }
.tile.hero { width: 120px; }
.tile.hero .art { border-radius: 14px; font-size: 36px; }
.gamerows { display: grid; }
.gamerow { display: grid; grid-template-columns: 54px minmax(0, 1.6fr) 1fr 1fr 1fr 1fr 20px; gap: 16px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); text-decoration: none; }
.gamerow:hover { background: rgba(255,255,255,.02); }
.gamerow .art { width: 54px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--s3); overflow: hidden; display: grid; place-items: center; font: 800 20px var(--display); color: var(--t3); }
.gamerow .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gamerow .label { font-size: 10.5px; }
.gamerow .cell { display: grid; gap: 2px; }
.gamerow .chev { color: var(--t3); }
.gamerows .th { display: grid; grid-template-columns: 54px minmax(0, 1.6fr) 1fr 1fr 1fr 1fr 20px; gap: 16px; padding: 16px 22px 8px; }
.gamerows .th span { color: var(--t2); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
input.narrow-input { width: 90px; }
fieldset.plain { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.plain legend { margin-bottom: 8px; }
.todo { display: grid; }
.todo a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); text-decoration: none; }
.todo a:first-child { border-top: 0; }
.todo a:hover { background: rgba(255,255,255,.02); }
.todo .art { width: 36px; aspect-ratio: 3 / 4; border-radius: 6px; background: var(--s3); overflow: hidden; display: grid; place-items: center; font: 800 14px var(--display); color: var(--t3); }
.todo .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.todo .muted { font-size: 12.5px; }

/* checks, uploads */
.checks { display: grid; gap: 2px; }
.checks div { display: grid; grid-template-columns: 48px 160px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.checks div > span:first-child { font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: .5px; color: var(--ok); }
.checks div > span:first-child:is(:where(span)) { }
.checks div.bad > span:first-child { color: var(--err); }
.checks div.warn > span:first-child { color: var(--warn); }
.checks div > span:nth-child(2) { color: var(--t2); }
.drop { border: 1px dashed rgba(255, 255, 255, .22); border-radius: var(--r); padding: 40px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; background: radial-gradient(60% 80% at 50% 0%, rgba(2,248,248,.05), transparent 70%); transition: border-color .15s, background .15s; }
.drop .ico { width: 36px; height: 36px; color: var(--brand); stroke-width: 1.4; }
.drop strong { font-size: 16px; font-family: var(--display); }
.drop.over { border-color: var(--brand); background: var(--s2); }
.progress { height: 6px; background: var(--s0); border-radius: 3px; overflow: hidden; width: 100%; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--brand)); width: 0; transition: width .2s; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.shots img { width: 100%; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* versions timeline */
.timeline { display: grid; }
.version { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; padding: 18px 22px; border-top: 1px solid var(--line); position: relative; }
.version:first-child { border-top: 0; }
.version .vn { font: 800 20px/1 var(--display); color: var(--t1); display: grid; gap: 6px; align-content: start; }
.version .vn .muted { font: 600 11px var(--text); }
.version .body { display: grid; gap: 10px; min-width: 0; }
.version .notes { background: var(--s0); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 8px; padding: 10px 12px; }
.version details summary { cursor: pointer; color: var(--t2); font-weight: 600; font-size: 13px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.version details summary::-webkit-details-marker { display: none; }
.version details[open] summary .ico { transform: rotate(90deg); }
.version details .checks { margin-top: 10px; }
.version.live { background: linear-gradient(90deg, rgba(71,212,150,.05), transparent 60%); }

/* template picker */
.picks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.pick { display: grid; gap: 8px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--s0); font-weight: 400; position: relative; transition: border-color .15s, transform .15s; }
label.pick { cursor: pointer; }
label.pick:hover { border-color: var(--line2); transform: translateY(-1px); }
.pick input { position: absolute; opacity: 0; }
.pick img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; border-radius: 8px; background: var(--bg); }
.pick:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2,248,248,.12); }
.pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pick strong { font-size: 13.5px; }
.pick .muted { font-size: 12px; }

/* tile generator */
.gen { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.gen canvas { width: 240px; aspect-ratio: 3 / 4; border-radius: 12px; border: 1px solid var(--line); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 2px solid transparent; }
.swatches button[aria-pressed=true] { border-color: var(--t1); }

/* ---- charts: low-alpha fill, a crisp cap ---- */
.chart { display: grid; gap: 6px; }
svg.bars { width: 100%; height: 160px; display: block; overflow: visible; }
svg.bars rect { fill: rgba(196, 244, 241, .12); transition: fill .15s; }
svg.bars rect:hover { fill: rgba(196, 244, 241, .3); }
svg.bars line { stroke: var(--primary); stroke-width: 2px; vector-effect: non-scaling-stroke; pointer-events: none; }
svg.bars .grid { stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart .axis { display: flex; justify-content: space-between; color: var(--t3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rtp { display: grid; gap: 6px; }
.rtp .bar { position: relative; height: 6px; border-radius: 3px; background: var(--s0); border: 1px solid var(--line); }
.rtp .band { position: absolute; top: -1px; bottom: -1px; background: rgba(196,244,241,.14); border-radius: 3px; }
.rtp .mark { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--brand); border-radius: 1px; margin-left: -1px; }
.rtp .exp { position: absolute; top: -3px; width: 1px; height: 10px; background: var(--t2); }
.rtp .axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--t3); }

/* ---- public pages ---- */
.hero { display: grid; gap: 18px; padding: 72px 0 32px; max-width: 800px; position: relative; }
.hero h1 { font-size: 48px; line-height: 52px; letter-spacing: -.025em; }
.hero p { font-size: 17px; color: var(--t2); max-width: 640px; line-height: 1.6; }
.glow { position: absolute; inset: -40px -200px auto -200px; height: 420px; background: radial-gradient(50% 60% at 30% 20%, rgba(2,248,248,.07), transparent 70%); pointer-events: none; z-index: -1; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 16px; }
.doc-nav { position: sticky; top: 88px; display: grid; gap: 1px; font-size: 13.5px; max-height: calc(100vh - 110px); overflow-y: auto; padding-bottom: 24px; }
.doc-nav .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--t3); padding: 0 12px 10px; }
.doc-nav a { text-decoration: none; color: var(--t2); padding: 6px 12px; border-left: 2px solid var(--line); line-height: 1.35; }
.doc-nav a.sub { display: none; padding-left: 24px; font-size: 12.5px; color: var(--t3); }
.doc-nav a.sub.open { display: block; }
.doc-nav a:hover { color: var(--t1); }
.doc-nav a[aria-current] { color: var(--t1); border-left-color: var(--brand); }
.doc-jump { display: none; }
.prose { display: block; max-width: 880px; min-width: 0; font-size: 15.5px; line-height: 1.75; color: #D5D9E2; }
.prose > * { margin: 0 0 18px; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { max-width: 70ch; }
.prose h2, .prose h3, .prose h4 { color: var(--t1); scroll-margin-top: 88px; }
.prose h2:first-child { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px; }
.prose h2:first-child + p { font-size: 18px; line-height: 1.65; color: var(--t1); }
.prose h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 64px 0 18px; padding-top: 32px; border-top: 1px solid var(--line); }
.prose h4 { font-size: 18px; line-height: 1.35; margin: 40px 0 12px; }
.prose strong { color: var(--t1); }
.prose a { color: var(--primary); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--t3); }
.prose code { font-size: .85em; background: rgba(196,244,241,.06); border: 0; color: var(--primary); padding: 2px 6px; border-radius: 5px; }
.prose pre.block { margin: 8px 0 26px; padding: 18px 20px; font-size: 13px; line-height: 1.7; background: var(--s0); color: var(--t1); }
.prose pre.block code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose pre.block .cm { color: #6F8590; }
.prose pre.block .copy { opacity: 0; transition: opacity .15s; }
.prose pre.block:hover .copy, .prose pre.block .copy:focus-visible { opacity: 1; }
.prose blockquote { padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--s1); border-radius: 0 10px 10px 0; color: var(--t1); }
.prose .scroll { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { font-size: 14px; line-height: 1.55; }
.prose th { padding: 12px 14px; background: var(--s1); }
.prose td { padding: 10px 14px; vertical-align: top; }
details.faq { background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin-top: 10px; color: var(--t2); }
footer { border-top: 1px solid var(--line); padding: 24px; color: var(--t2); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.auth { display: grid; gap: 18px; }
.auth .logo { justify-content: center; }

/* ---- team ---- */
.members { display: grid; }
.member { display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 120px auto; gap: 14px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }
.member .who { display: grid; min-width: 0; line-height: 1.3; }
.member .who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .who .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member select { padding: 7px 30px 7px 10px; font-size: 13px; }
.member form { display: block; }

/* ---- api table ---- */
.api td:first-child { white-space: nowrap; }
.api .m { display: inline-block; min-width: 44px; font: 700 10.5px var(--mono); color: var(--brand); }

/* ---- phone ---- */
@media (max-width: 920px) {
  :root { --rail: 0px; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .phone-top { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 56px; border-bottom: 1px solid var(--line); background: rgba(4,16,21,.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
  .phone-top .logo { font-size: 15px; }
  .phone-top .spacer { flex: 1; }
  .phone-top .avatar { width: 30px; height: 30px; font-size: 12px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(4,16,21,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); z-index: 6; }
  .tabbar a, .tabbar summary { display: grid; justify-items: center; gap: 4px; padding: 9px 4px 0; text-decoration: none; color: var(--t3); font-size: 10.5px; font-weight: 700; list-style: none; cursor: pointer; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar a[aria-current], .tabbar details[open] summary { color: var(--brand); }
  .tabbar details { position: relative; }
  .tabbar details .menu { position: absolute; bottom: calc(100% + 10px); right: 8px; width: 200px; background: var(--s2); border: 1px solid var(--line2); border-radius: 12px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.8); }
  .tabbar details .menu a { display: flex; gap: 10px; align-items: center; justify-items: start; padding: 10px 12px; font-size: 13.5px; color: var(--t1); border-radius: 8px; }
  .tabbar details .menu a:hover { background: var(--s3); }
  .tabbar details .menu form { display: block; }
  .tabbar details .menu button { width: 100%; justify-content: flex-start; }
  main { padding: 20px 16px calc(84px + env(safe-area-inset-bottom)); gap: 16px; }
  main.narrow { margin: 24px auto; }
  h1 { font-size: 26px; line-height: 32px; }
  .head { align-items: flex-start; }
  .head > .row:last-child { width: 100%; }
  .head > .row:last-child .btn { flex: 1; }
  .top { padding: 0 16px; height: 56px; }
  .top nav a.hide-phone { display: none; }
  body.pub .top nav a[href="/login"] { display: none; }
  .top nav { gap: 0; }
  .top nav a { padding: 8px; }
  .card { padding: 16px; border-radius: 12px; }
  .card.flush > .pad { padding: 14px 16px 0; }
  .card.flush table th:first-child, .card.flush table td:first-child { padding-left: 16px; }
  .card.flush table th:last-child, .card.flush table td:last-child { padding-right: 16px; }
  .grid.wide { grid-template-columns: minmax(0, 1fr); }
  .stat .num { font-size: 22px; line-height: 28px; }
  .stat.big .num { font-size: 30px; line-height: 34px; }
  .doc, .gen { grid-template-columns: minmax(0, 1fr); }
  .doc { gap: 16px; padding-top: 0; }
  .doc-nav { display: none; }
  .doc-jump { display: block; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
  .doc-jump summary { cursor: pointer; font-weight: 700; }
  .doc-jump a { display: block; padding: 8px 0; color: var(--t2); text-decoration: none; border-top: 1px solid var(--line); }
  .doc-jump summary + a { margin-top: 10px; }
  .prose { font-size: 15px; line-height: 1.65; }
  .prose h2:first-child { font-size: 28px; }
  .prose h3 { font-size: 21px; margin-top: 44px; padding-top: 24px; }
  .prose pre.block { font-size: 12px; padding: 14px; }
  .hero { padding: 36px 0 16px; }
  .hero h1 { font-size: 32px; line-height: 37px; }
  .checks div { grid-template-columns: 40px 100px minmax(0, 1fr); }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .steps li a.btn { grid-column: 2; justify-self: start; }
  .picks, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pick { padding: 6px; font-size: 13px; }
  .gamerows .th { display: none; }
  .gamerow { grid-template-columns: 44px minmax(0, 1fr) auto 20px; padding: 12px 16px; gap: 12px; }
  .gamerow .art { width: 44px; }
  .gamerow .cell.hide-phone { display: none; }
  .todo a { padding: 12px 16px; }
  .version { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 8px; }
  .version .vn { grid-auto-flow: column; justify-content: start; align-items: center; }
  .member { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .member .since { display: none; }
  .member select { width: auto; }
  .stages { grid-template-columns: 1fr; }
  .track span, .track li { font-size: 10.5px; }
  svg.bars { height: 120px; }
}
@media (max-width: 420px) {
  .logo .word { display: none; }
  .top nav a[href="/app/account"] { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media print { .rail, .tabbar, .phone-top, .top, .btn, button { display: none !important; } .shell { display: block; } main { padding: 0; } .card { box-shadow: none; } }

/* ---- auth: split screen ---- */
.authwrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.pitch { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 40px; padding: 40px 56px; background: linear-gradient(160deg, #071C25 0%, #041015 55%, #03090D 100%); border-right: 1px solid var(--line); }
.pitch .glow { inset: -120px auto auto -160px; width: 720px; height: 620px; background: radial-gradient(closest-side, rgba(2,248,248,.10), transparent 70%); z-index: 0; }
.pitch > :not(.glow) { position: relative; z-index: 1; }
.pitch .logo { align-self: flex-start; }
.pitch-body { display: grid; gap: 22px; max-width: 540px; margin: auto 0; }
.pitch h1 { font-size: 40px; line-height: 44px; letter-spacing: -.025em; }
.pitch p { color: var(--t2); font-size: 15.5px; line-height: 1.6; max-width: 480px; }
.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.proof li { display: flex; gap: 12px; align-items: flex-start; }
.proof li .ico { color: var(--brand); margin-top: 2px; }
.proof .muted { font-weight: 400; }
.term { border: 1px solid var(--line2); border-radius: 12px; background: #030B0F; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(2,248,248,.04); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--s3); border: 1px solid var(--line2); }
.term-bar span { margin-left: 8px; font: 600 11px var(--mono); color: var(--t3); }
.term-body { padding: 14px 16px; font: 500 12.5px/1.75 var(--mono); color: var(--t1); display: grid; }
.t-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: tin .35s ease forwards; }
.t-line:nth-child(1) { animation-delay: .15s } .t-line:nth-child(2) { animation-delay: .7s } .t-line:nth-child(3) { animation-delay: 1.2s } .t-line:nth-child(4) { animation-delay: 1.8s } .t-line:nth-child(5) { animation-delay: 2s } .t-line:nth-child(6) { animation-delay: 2.6s } .t-line:nth-child(7) { animation-delay: 3.4s } .t-line:nth-child(8) { animation-delay: 3.9s }
.t-out { color: var(--t2); }
.t-p { color: var(--brand); margin-right: 6px; }
.t-ok { color: var(--ok); }
.t-cur { display: inline-block; width: 7px; height: 13px; background: var(--brand); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(2) infinite; }
@keyframes tin { to { opacity: 1 } }
@keyframes blink { to { opacity: 0 } }
.pitch-foot { display: flex; gap: 18px; font-size: 12.5px; }
.pitch-foot a { color: var(--t3); text-decoration: none; }
.pitch-foot a:hover { color: var(--t1); }
.authwrap main.narrow { margin: auto; padding: 48px 24px; width: 100%; max-width: 500px; }
.authwrap .track { margin-bottom: 4px; }
@media (max-width: 920px) {
  .authwrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .authwrap main.narrow form > div > button, .authwrap main.narrow form > button { width: 100%; }
  .pitch { padding: 18px 16px; gap: 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pitch-body { gap: 10px; margin: 0; }
  .pitch h1 { font-size: 22px; line-height: 27px; }
  .pitch h1 br { display: none; }
  .pitch p, .proof, .pitch .term, .pitch-foot { display: none; }
  .authwrap main.narrow { margin: 0 auto; padding: 24px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .t-line { animation: none; opacity: 1; } .t-cur { animation: none; } }

/* ---- auth pitch: what you get ---- */
.pitch .eyebrow { margin-bottom: -8px; }
.provide { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r); background: rgba(11,25,32,.7); border: 1px solid var(--line); }
.provide ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.provide li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.provide li .ico { color: var(--brand); margin-top: 2px; }
.provide .muted { font-weight: 400; }
@media (max-width: 920px) { .pitch .provide, .pitch .term { display: none; } .pitch .eyebrow { margin-bottom: -4px; } }

/* ---- social sign-in ---- */
.social { display: grid; gap: 8px; }
.social .btn { width: 100%; padding: 12px 14px; background: var(--s2); border-color: var(--line2); color: var(--t1); }
.social .btn:hover { border-color: rgba(255,255,255,.3); background: var(--s3); filter: none; }
.social .ico { width: 18px; height: 18px; }
.social .btn.sso-google { background: #fff; border-color: #fff; color: #1f1f1f; }
.social .btn.sso-google:hover { background: #f1f3f4; border-color: #f1f3f4; }
.social .btn.sso-github { background: #3a424c; border-color: #6b7682; color: #fff; }
.social .btn.sso-github:hover { background: #46505b; border-color: #8a96a3; }
.or { display: flex; align-items: center; gap: 12px; color: var(--t3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---- landing ---- */
main.land { padding-top: 24px; gap: 40px; }
.hero2 { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0 16px; }
.hero2 .glow { inset: -120px auto auto -240px; width: 820px; height: 620px; background: radial-gradient(closest-side, rgba(2,248,248,.09), transparent 70%); z-index: 0; }
.hero2 > :not(.glow) { position: relative; z-index: 1; }
.hero-copy { display: grid; gap: 18px; max-width: 560px; }
.hero-copy h1 { font-size: 46px; line-height: 50px; letter-spacing: -.025em; }
.hero-copy p { font-size: 16.5px; color: var(--t2); line-height: 1.6; }
.hero-copy .small-text { font-size: 12.5px; }
.block { display: grid; gap: 20px; }
.block-head { display: grid; gap: 6px; }
.block-head h2 { font-size: 26px; line-height: 32px; }
.terms .stat, .three .stat { gap: 10px; padding: 22px; }
.terms .stat .ico, .three .stat .n { color: var(--brand); }
.terms .stat .num, .three .stat .num { font-size: 17px; line-height: 22px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.three .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); background: var(--s3); color: var(--primary); }
.cta { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 48px 24px; border-radius: var(--r); background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); }
.cta h2 { font-size: 28px; }
.cta .row { justify-content: center; margin-top: 8px; }
.live .tile .muted a { color: var(--t2); }
@media (max-width: 920px) {
  main.land { padding-top: 8px; gap: 36px; }
  .hero2 { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px 0 0; }
  .hero-copy h1 { font-size: 32px; line-height: 37px; }
  .hero-copy p { font-size: 15px; }
  .hero-copy .row .btn { flex: 1; }
  .hero2 .term { display: block; }
  .term-body { font-size: 11.5px; }
  .block-head h2 { font-size: 22px; line-height: 28px; }
  .three { grid-template-columns: 1fr; }
  .picks.swipe { display: flex; overflow-x: auto; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .picks.swipe::-webkit-scrollbar { display: none; }
  .picks.swipe .pick { flex: 0 0 72%; scroll-snap-align: start; }
  .cta { padding: 32px 16px; }
  .cta h2 { font-size: 24px; }
  /* auth on phones: just the logo and the form */
  .pitch { padding: 16px 16px 0; border-bottom: 0; background: none; }
  .pitch-body, .pitch .glow { display: none; }
  .authwrap main.narrow { padding-top: 8px; }
}

/* ---- public pages: slate, a step lighter than the app ---- */
body.pub { --bg: #0F1D25; --s0: #0B171E; --s1: #142530; --s2: #1A2E3A; --s3: #213A47; --soft: #11212A; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.15); --t1: #F2F5F7; --t2: #9DA9B4; --t3: #68747F; background: radial-gradient(120% 70% at 50% 0%, #15303C 0%, #0F1D25 55%) fixed, #0F1D25; }
body.pub .top { background: rgba(15,29,37,.72); }
body.pub .pitch { background: linear-gradient(160deg, #15303C 0%, #0F1D25 70%); }
body.pub footer { background: #0B171E; }
body.pub .cta { background: linear-gradient(135deg, #17343F, #11232C); }

.howto { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); box-shadow: var(--shadow); overflow: hidden; }
.howto li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: start; }
.howto li:first-child { border-top: 0; }
.howto .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); background: var(--s2); color: var(--t1); }
.howto div { display: grid; gap: 2px; }
.howto strong { font-size: 15.5px; font-family: var(--display); }
.gets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.gets li { display: flex; gap: 12px; align-items: flex-start; }
.gets li .ico { color: var(--brand); margin-top: 3px; }
.gets strong { font-family: var(--display); }
@media (max-width: 920px) { .gets { grid-template-columns: minmax(0, 1fr); } .howto li { padding: 14px 16px; } }
.steps5 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps5 li { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--s1); border: 1px solid var(--line); }
.steps5 .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); background: var(--t1); color: var(--s0); margin-bottom: 8px; }
.steps5 strong { font-family: var(--display); font-size: 15px; }
.steps5 .muted { font-size: 13px; }
@media (max-width: 920px) { .steps5 { grid-template-columns: minmax(0, 1fr); gap: 8px; } .steps5 li { grid-template-columns: 28px auto; column-gap: 12px; align-items: center; padding: 12px 14px; } .steps5 .n { margin: 0; grid-row: span 2; } }

/* Sign-up steps after the studio: logo, payouts, team */
.welcome-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.welcome-head .skip { font-size: 13.5px; font-weight: 600; color: var(--t2); white-space: nowrap; }
.welcome-head .skip:hover { color: var(--t1); }
.welcome-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.logodrop { position: relative; display: grid; gap: 14px; justify-items: center; padding: 22px; border: 1.5px dashed var(--line2); border-radius: var(--r); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.logodrop:hover, .logodrop.over { border-color: var(--brand); background: var(--soft); }
.logodrop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.swatch { display: grid; place-items: center; height: 104px; border-radius: 10px; padding: 16px; overflow: hidden; }
.swatch.dark { background: #041015; color: #F9F9FB; }
.swatch.light { background: #F2F5F7; color: #0B1920; border: 1px solid var(--line); }
.swatch strong { font: 800 20px var(--display); letter-spacing: -.01em; text-align: center; overflow-wrap: anywhere; }
.swatch img { max-width: 100%; max-height: 64px; object-fit: contain; }
.drop-text { display: grid; gap: 2px; font-size: 14px; }
.drop-text .muted { font-size: 12.5px; }
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.tip .ico { color: var(--brand); flex: none; margin-top: 2px; }
.deal { display: grid; gap: 12px; padding: 18px; border: 1.5px solid var(--brand); border-radius: var(--r); background: var(--soft); }
.deal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.deal-name { font: 700 16px var(--display); }
.deal-rate { color: var(--t2); font-size: 14px; }
.deal-rate strong { font: 800 22px var(--display); color: var(--t1); }
.deal-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--t2); }
.deal-facts li { display: flex; gap: 10px; align-items: flex-start; }
.deal-facts .ico { color: var(--ok); flex: none; margin-top: 2px; width: 16px; height: 16px; }
.payto { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; align-items: end; }
details.agree { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
details.agree summary { cursor: pointer; font-weight: 600; color: var(--t2); }
details.agree[open] summary { margin-bottom: 10px; }
.invite-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.roles strong { color: var(--t1); font-weight: 600; }
.invited { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.avatar.logo-av { background: #041015; padding: 5px 7px; width: auto; min-width: 34px; max-width: 76px; }
.payto + .hint { margin-top: -6px; font-size: 12.5px; }
.invite-row select { text-transform: capitalize; }
.avatar.logo-av img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) { .payto, .invite-row { grid-template-columns: minmax(0, 1fr); } .swatch { height: 84px; } .welcome-actions > * { flex: 1; } }

/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 18px; width: auto; display: block; }
.brand .tag { font: 800 11px/1 var(--display); letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand); padding: 4px 7px; border: 1px solid rgba(2,248,248,.35); border-radius: 6px; }
.phone-top .logo img { height: 24px; width: auto; }

/* ---- the engine asset ---- */
.hero3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding: 24px 0 8px; }
.hero3 .hero-copy h1 { font-size: 50px; line-height: 54px; letter-spacing: -.03em; }
.engine-fig { position: relative; margin: 0 -6vw 0 0; aspect-ratio: 4 / 3; background: radial-gradient(45% 45% at 50% 52%, rgba(2,248,248,.08), transparent 70%); }
.engine-fig::before { display: none; content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(65% 65% at 50% 50%, #000 30%, transparent 85%); }
.engine-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.engine-fig figcaption { display: none; position: absolute; left: 18px; right: 18px; bottom: 14px; display: flex; justify-content: space-between; gap: 12px; font: 600 11px var(--mono); color: var(--t3); letter-spacing: .3px; pointer-events: none; }
.engine-fig figcaption span:first-child { color: var(--brand); }
.engine-fig.no-gl { display: none; }
.mcp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.mcp h2 { font-size: 30px; line-height: 36px; }
@media (max-width: 920px) {
  .hero3 { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; }
  .hero3 .hero-copy h1 { font-size: 32px; line-height: 37px; }
  .hero3 .hero-copy .row .btn { flex: 1; }
  .engine-fig { aspect-ratio: 16 / 10; margin: -8px -16px 0; }
  .engine-fig figcaption span:last-child { display: none; }
  .mcp { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .mcp h2 { font-size: 24px; line-height: 30px; }
}
.top nav a.btn { color: var(--on-action); background: var(--action); border: 1px solid var(--action-edge); }
.top nav a.btn:hover { color: var(--on-action); background: var(--action); filter: brightness(1.1); }
.net-fig { position: relative; margin: 0 -4vw 0 0; aspect-ratio: 4 / 3; background: radial-gradient(50% 50% at 50% 50%, rgba(2,248,248,.06), transparent 70%); }
.net-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 920px) { .net-fig { aspect-ratio: 4 / 3; margin: -4px -16px 0; } }

/* ---- home: connect your AI ---- */
.hello { max-width: 560px; margin: 12vh auto 0; display: grid; gap: 16px; justify-items: start; }
.hello h1 { margin: 0; }
.chip.nocap { text-transform: none; }
pre.oneline { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; }
pre.oneline code::before { content: '$ '; color: var(--t2); }
pre.oneline .copy { position: static; margin-left: auto; }
.hello pre.oneline { justify-self: stretch; display: flex; align-items: center; padding: 14px 14px 14px 18px; font-size: 16px; }
.hello pre.oneline code { flex: 1; font-size: 16px; }
.hello pre.oneline code::before { content: '$ '; color: var(--t2); }
.hello pre.oneline .copy { position: static; }
.hello .chip { margin: 0; text-transform: none; }
.hello .code { font: 700 34px/1 var(--mono); letter-spacing: .12em; color: var(--brand); margin: 4px 0 8px; }
.hello .small { font-size: 13px; }

/* ---- the dashboard in slate too, the same step lighter as the public pages ---- */
body.app { --bg: #0F1D25; --s0: #0B171E; --s1: #142530; --s2: #1A2E3A; --s3: #213A47; --soft: #11212A; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.15); --t1: #F2F5F7; --t2: #9DA9B4; --t3: #68747F; background: radial-gradient(120% 70% at 60% 0%, #15303C 0%, #0F1D25 55%) fixed, #0F1D25; }
body.app .rail { background: #0D1A21; }
body.app .phone-top, body.app .tabbar { background: rgba(13,26,33,.92); }
body.app .tile .art .chip, body.app .tile .art .v { background: rgba(15,29,37,.82); }
.ask { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r2); background: rgba(2,248,248,.05); border: 1px solid rgba(2,248,248,.14); color: var(--t2); }
.ask svg { color: var(--brand); flex: none; }
.ask em { color: var(--t1); font-style: normal; }
.devbar { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 10px; background: #2A1F0A; border: 1px solid rgba(245,184,75,.45); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7); font-size: 12px; }
.devbar span { padding: 0 8px; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
.devbar a { padding: 6px 10px; border-radius: 7px; text-decoration: none; color: var(--t2); font-weight: 600; }
.devbar a[aria-current] { background: rgba(245,184,75,.18); color: var(--t1); }
@media (max-width: 900px) { .devbar { bottom: calc(72px + env(safe-area-inset-bottom)); } }
.head .meta .chip { text-transform: none; }

/* ---- home, connected: next up, starters, games on their way to live ---- */
.nextup { gap: 10px; padding: 26px; background: linear-gradient(135deg, rgba(2,248,248,.07), rgba(2,248,248,0) 60%), var(--s1); border-color: rgba(2,248,248,.18); }
.nextup h2 { font-size: 22px; line-height: 28px; }
.nextup .row { margin-top: 8px; }
.ask-copy { background: rgba(2,248,248,.05); border: 1px solid rgba(2,248,248,.16); color: var(--t2); font-weight: 500; text-align: left; white-space: normal; padding: 10px 14px; gap: 10px; }
.ask-copy em { color: var(--t1); font-style: normal; }
.ask-copy .ico:first-child { color: var(--brand); flex: none; }
.ask-copy .ico:last-child { opacity: .6; flex: none; }
.ask-copy.copied .ico:last-child { color: var(--ok); opacity: 1; }
.starters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.starter { display: grid; gap: 8px; align-content: start; justify-items: start; text-align: left; white-space: normal; padding: 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); color: var(--t1); font-weight: 400; }
.starter:hover { border-color: rgba(2,248,248,.35); filter: none; }
.starter strong { font: 700 15px var(--display); }
.starter .muted { font-size: 13px; line-height: 1.45; }
.starter .hint { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--brand); margin-top: 4px; }
.starter.copied .hint { color: var(--ok); }
.lines { list-style: none; margin: 8px 0 0; padding: 0; }
.lines > li > a { display: grid; grid-template-columns: 44px minmax(140px, 1fr) minmax(0, 2fr) 16px; gap: 16px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); text-decoration: none; }
.lines > li > a:hover { background: rgba(255,255,255,.025); }
.lines .thumb { width: 44px; height: 58px; border-radius: 8px; overflow: hidden; background: var(--s3); display: grid; place-items: center; font: 800 16px var(--display); color: var(--t2); }
.lines .thumb img { width: 100%; height: 100%; object-fit: cover; }
.lines .who { display: grid; gap: 6px; justify-items: start; }
.lines > li > a > .ico { color: var(--t3); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.track li { font-size: 11.5px; font-weight: 600; color: var(--t3); padding-top: 10px; position: relative; }
.track li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--s3); }
.track li.done { color: var(--t2); }
.track li.done::before { background: var(--ok); }
.track li.at { color: var(--t1); }
.track li.at::before { background: var(--warn); }
@media (max-width: 700px) {
  .lines > li > a { grid-template-columns: 40px minmax(0, 1fr) 16px; padding: 12px 16px; }
  .lines .track { grid-column: 1 / -1; grid-row: 2; }
  .lines > li > a > .ico { grid-column: 3; grid-row: 1; }
}

/* Billing: balance per coin, one Withdraw button, addresses as a compact list */
.withdraw { display: grid; justify-items: end; gap: 6px; }
.withdraw button { padding: 12px 22px; }
.withdraw button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.withdraw .muted { font-size: 12.5px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line2); background: var(--s1); font-size: 14px; }
.banner > .ico { color: var(--brand); flex: none; }
.banner > span { flex: 1; }
.banner.warn > .ico { color: var(--warn, #F5B83D); }
.balance { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.coin { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
.coin > div { display: grid; gap: 4px; }
.coin .num { font: 800 30px/34px var(--display); letter-spacing: -.01em; }
.coin-head { display: flex !important; justify-content: space-between; align-items: baseline; }
.coin-head .muted { font-size: 12px; }
.coin-sub { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.coin-sub > span { display: grid; gap: 2px; }
.coin.empty { justify-items: start; }
.addrs { display: grid; }
.addr { border-top: 1px solid var(--line); }
.addr:first-child { border-top: 0; }
.addr summary { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; cursor: pointer; list-style: none; }
.addr summary::-webkit-details-marker { display: none; }
.addr-coin { display: grid; gap: 1px; font-size: 14px; }
.addr-coin .muted { font-size: 12px; }
.addr-val { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-edit { font-size: 13px; font-weight: 600; color: var(--brand); }
.addr[open] .addr-edit { color: var(--t3); }
.addr-form { display: flex; gap: 8px; padding: 0 0 14px; }
.addr-form input { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .withdraw { justify-items: stretch; width: 100%; } .withdraw button { width: 100%; justify-content: center; }
  .addr summary { grid-template-columns: minmax(0, 1fr) auto; } .addr-val { grid-column: 1 / -1; grid-row: 2; }
  .banner { flex-wrap: wrap; }
}

/* New game: what to build, then a template with its difficulty */
.kinds { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.kind { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.kind:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(2,248,248,.35); }
.kind > .muted { font-size: 14px; line-height: 1.55; }
.kind-art { display: grid; place-items: center; height: 168px; border-radius: 12px; background: radial-gradient(70% 90% at 50% 0%, rgba(2,248,248,.10), transparent 70%), var(--bg); overflow: hidden; }
.kind-art img { width: 100%; height: 100%; object-fit: cover; }
.kind-art.icons { grid-template-columns: repeat(4, 64px); gap: 14px; }
.kind-art.icons.one { grid-template-columns: auto; }
.kind-art.icons.one .ico { width: 64px; height: 64px; stroke-width: 1.3; color: var(--brand); }
.kind-top, .tpl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kind-top strong { font: 800 20px var(--display); }
.kind-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.kind-go .ico { width: 16px; height: 16px; }
.diff { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--t2); white-space: nowrap; }
.diff.easy, .diff.l1, .diff.l2 { color: var(--ok); }
.diff.l3 { color: #F5B83D; }
.diff.hard, .diff.l4, .diff.l5 { color: #FF7A6B; }
.level { display: inline-grid; grid-template-columns: repeat(5, 6px); gap: 3px; align-items: end; }
.level i { display: block; width: 6px; border-radius: 2px; background: var(--s3); }
.level i:nth-child(1) { height: 6px } .level i:nth-child(2) { height: 8px } .level i:nth-child(3) { height: 10px } .level i:nth-child(4) { height: 12px } .level i:nth-child(5) { height: 14px }
.level.l1 i:nth-child(-n+1), .level.l2 i:nth-child(-n+2), .level.l3 i:nth-child(-n+3), .level.l4 i:nth-child(-n+4), .level.l5 i:nth-child(-n+5) { background: currentColor; }
.gicon { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; color: var(--t1); }
.gicon .ga { fill: var(--brand); stroke: none; }
.gicon g.ga circle { stroke: none; }
.gicon .gb { fill: rgba(2,248,248,.12); stroke: none; }
.gicon .gc { fill: #F5B83D; stroke: none; }
.gicon .gs { stroke: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--t2); text-decoration: none; }
.back:hover { color: var(--t1); }
.back .ico { width: 16px; height: 16px; }
.templates { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.tpl { position: relative; display: grid; gap: 10px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); font-weight: 400; cursor: pointer; transition: border-color .15s, transform .15s; }
.tpl:hover { border-color: var(--line2); transform: translateY(-1px); }
.tpl input { position: absolute; opacity: 0; }
.tpl:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2,248,248,.14); }
.tpl:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.tpl-art { display: grid; place-items: center; height: 132px; border-radius: 10px; background: radial-gradient(60% 80% at 50% 10%, rgba(2,248,248,.08), transparent 70%), var(--bg); overflow: hidden; }
.tpl-art .gicon { width: 84px; height: 84px; }
.tpl.wide .tpl-art { height: 170px; }
.tpl-art img { width: 100%; height: 100%; object-fit: cover; }
.tpl-top strong { font: 700 15.5px var(--display); }
.tpl > .muted { font-size: 13px; line-height: 1.5; }
.needs { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.needs li { display: grid; gap: 2px; padding-left: 4px; }
.needs strong { font-family: var(--mono); font-size: 14px; }
.needs li:last-child strong { font-family: var(--display); }
@media (max-width: 640px) { .kind-art { height: 128px; } .kind-art.icons { grid-template-columns: repeat(4, 48px); gap: 10px; } .kind-art .gicon { width: 48px; height: 48px; } .tpl-art { height: 112px; } }

/* ================= landing, alive ================= */
canvas.field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
body.pub > header, body.pub > main, body.pub > footer, body.pub .authwrap { position: relative; z-index: 1; }
body.pub > header.top { position: sticky; z-index: 5; }
.grad { background: linear-gradient(90deg, #F2F5F7 0%, #02F8F8 30%, #C4F4F1 55%, #F2F5F7 80%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-meta { display: flex; align-items: center; gap: 10px; font-size: 13px !important; color: var(--t3) !important; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(2,248,248,.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(2,248,248,.55); } 70% { box-shadow: 0 0 0 10px rgba(2,248,248,0); } 100% { box-shadow: 0 0 0 0 rgba(2,248,248,0); } }
.net-fig { cursor: crosshair; touch-action: pan-y; }
.net-log { position: absolute; left: 6%; right: 6%; bottom: 0; height: 52px; display: grid; gap: 4px; font: 500 11.5px/1.4 var(--mono); color: var(--t3); pointer-events: none; min-height: 52px; align-content: end; }
.net-log .nl { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net-log .nl.in { opacity: 1; transform: none; }
.net-log .nl:not(:last-child) { opacity: .45; }
.net-log b { color: var(--brand); font-weight: 600; }

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

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: rgba(20,37,48,.55); backdrop-filter: blur(8px); overflow: hidden; }
.stats > div { display: grid; gap: 4px; padding: 22px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats .num { font-size: 38px; line-height: 42px; background: linear-gradient(180deg, #F2F5F7, #9DE9EC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .muted { font-size: 13px; }

/* the pipeline */
.pipe-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; height: 20px; margin-bottom: -4px; }
.pipe-track i { justify-self: center; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--s3); border: 1px solid var(--line2); position: relative; z-index: 1; transition: background .4s, box-shadow .4s; }
.pipe-track::before, .pipe-track::after { content: ''; position: absolute; top: 9px; height: 2px; left: 10%; border-radius: 1px; }
.pipe-track::before { right: 10%; background: var(--line2); }
.pipe-track::after { width: calc(80% * var(--fill, 0)); background: linear-gradient(90deg, rgba(2,248,248,.15), var(--brand)); box-shadow: 0 0 12px rgba(2,248,248,.5); transition: width .9s cubic-bezier(.5,0,.2,1); }
.pipe-track b { position: absolute; top: 3px; left: calc(10% + 80% * var(--fill, 0)); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #E8FFFF; box-shadow: 0 0 0 4px rgba(2,248,248,.25), 0 0 20px 4px rgba(2,248,248,.7); transition: left .9s cubic-bezier(.5,0,.2,1); z-index: 2; }
[data-pipe] .pipeline li.done ~ li .n { }
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pipeline li { display: grid; gap: 4px; align-content: start; padding: 18px 18px 16px; border-radius: var(--r); background: rgba(20,37,48,.72); backdrop-filter: blur(8px); border: 1px solid var(--line); transition: border-color .4s, background .4s, transform .4s, box-shadow .4s; cursor: default; }
.pipeline .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); background: var(--s3); color: var(--t2); margin-bottom: 8px; transition: all .4s; }
.pipeline strong { font-family: var(--display); font-size: 15px; }
.pipeline .muted { font-size: 13px; }
.pipeline li.done .n { background: rgba(2,248,248,.14); color: var(--brand); }
.pipeline li.on { border-color: rgba(2,248,248,.45); background: linear-gradient(180deg, rgba(2,248,248,.07), rgba(20,37,48,.8)); transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(2,248,248,.45); }
.pipeline li.on .n { background: var(--brand); color: #041015; box-shadow: 0 0 16px rgba(2,248,248,.55); }
.viz { height: 48px; margin-top: 12px; display: flex; align-items: center; opacity: .45; transition: opacity .4s; }
.pipeline li.on .viz, .pipeline li.done .viz { opacity: 1; }
.viz svg { height: 100%; width: auto; max-width: 100%; overflow: visible; }
.viz * { animation-play-state: paused !important; }
.pipeline li.on .viz * { animation-play-state: running !important; }
.v-wire { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.v-flow { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; animation: flow .7s linear infinite; filter: drop-shadow(0 0 3px rgba(2,248,248,.8)); }
@keyframes flow { to { stroke-dashoffset: -12; } }
.v-node { fill: #0F1D25; stroke: var(--brand); stroke-width: 2; }
.v-node.b { animation: nodeb 1.4s ease-in-out infinite; }
@keyframes nodeb { 50% { fill: rgba(2,248,248,.35); } }
.v2 { gap: 6px; }
.mr { width: 30px; height: 40px; overflow: hidden; border-radius: 6px; background: var(--s0); border: 1px solid var(--line2); position: relative; }
.mr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--s0), transparent 30%, transparent 70%, var(--s0)); }
.mr-s { display: grid; animation: reel .9s linear infinite; }
.mr:nth-child(2) .mr-s { animation-duration: .7s; } .mr:nth-child(3) .mr-s { animation-duration: 1.1s; }
.mr-s i { height: 40px; display: grid; place-items: center; font: 800 17px var(--display); font-style: normal; color: var(--brand); }
@keyframes reel { to { transform: translateY(-50%); } }
.v-dev { fill: none; stroke: var(--t3); stroke-width: 1.5; }
.v-coin { fill: var(--gold); filter: drop-shadow(0 0 4px rgba(253,220,115,.7)); transform-box: fill-box; transform-origin: center; animation: hop 1.6s cubic-bezier(.5,0,.5,1) infinite alternate; }
@keyframes hop { 0% { transform: translate(0, 0); } 50% { transform: translate(38px, -16px); } 100% { transform: translate(76px, 0); } }
.v-bar { fill: var(--s3); }
.v-tick { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 2.4s ease-out infinite; }
.v-tick.t2 { animation-delay: .4s; } .v-tick.t3 { animation-delay: .8s; }
@keyframes tick { 0% { stroke-dashoffset: 1; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.pipeline li:not(.on) .v-tick { animation: none; stroke-dashoffset: 0; }
.v5 { justify-content: space-between; gap: 8px; }
.pay { font: 800 18px var(--display); color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 18px rgba(253,220,115,.35); }
.pay small { font-size: 11px; color: var(--t2); }
.v5 svg { height: 36px; }
.v-col { fill: rgba(253,220,115,.85); transform-box: fill-box; transform-origin: bottom; animation: grow 2.4s ease-out infinite; }
.v-col.c1 { animation-delay: 0s; } .v-col.c2 { animation-delay: .2s; } .v-col.c3 { animation-delay: .4s; }
@keyframes grow { 0% { transform: scaleY(.15); } 40%, 100% { transform: scaleY(var(--h, 1)); } }
.v-col.c1 { --h: .45; } .v-col.c2 { --h: .7; } .v-col.c3 { --h: 1; }
.pipeline li:not(.on) .v-col { animation: none; transform: scaleY(var(--h)); }

/* terminal that types */
.term[data-type] .t-line { opacity: 0; animation: none; }
.term[data-type] .t-line.shown { opacity: 1; transition: opacity .2s; }
.term[data-type] .term-body { min-height: 196px; }
.t-txt { white-space: pre; }
.mcp .chip.brand { font-family: var(--mono); font-size: 11.5px; text-transform: none; }
.mcp .term { box-shadow: 0 40px 80px -40px rgba(2,248,248,.25), 0 0 0 1px rgba(2,248,248,.08); }

/* templates marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 6px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(calc(-50% - 7px)); } }
.tplc { display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(20,37,48,.72); backdrop-filter: blur(8px); transition: border-color .3s, transform .3s; }
.tplc:hover { border-color: rgba(2,248,248,.45); transform: translateY(-2px); }
.tplc strong { font-family: var(--display); font-size: 15px; white-space: nowrap; }
.tpl-ico { width: 44px; height: 44px; flex: none; fill: none; stroke: rgba(2,248,248,.75); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(2,248,248,.35)); }
.tpl-ico .d { fill: #E8FFFF; stroke: none; }

/* CTA */
.cta { position: relative; overflow: hidden; background: radial-gradient(60% 120% at 50% 100%, rgba(2,248,248,.16), transparent 70%), linear-gradient(180deg, rgba(23,52,63,.85), rgba(17,35,44,.85)) !important; border: 1px solid rgba(2,248,248,.18) !important; padding: 56px 24px !important; }
.cta h2 { font-size: 36px !important; line-height: 42px; letter-spacing: -.02em; }
.btn.btn-glow { position: relative; box-shadow: 0 0 30px rgba(196,244,241,.35); }
.btn.btn-glow::before, .btn.btn-glow::after { content: ''; position: absolute; inset: -2px; border-radius: 11px; border: 1px solid rgba(2,248,248,.6); animation: ring 2.4s ease-out infinite; pointer-events: none; }
.btn.btn-glow::after { animation-delay: 1.2s; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.8); } }

@media (max-width: 920px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: 16px; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats .num { font-size: 30px; line-height: 34px; }
  .pipe-track { display: none; }
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pipeline li { grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 14px; }
  .pipeline .n { margin: 0; grid-row: span 2; }
  .pipeline .viz { grid-column: 3; grid-row: 1 / span 2; margin: 0; height: 36px; max-width: 110px; }
  .pipeline li.on { transform: none; }
  .pay { font-size: 14px; } .v5 svg { display: none; }
  .net-log { font-size: 10.5px; min-height: 46px; }
  .cta h2 { font-size: 28px !important; line-height: 32px; }
  .tplc { padding: 10px 14px 10px 10px; } .tpl-ico { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .marquee-track, .grad, .live-dot, .btn.btn-glow::before, .btn.btn-glow::after { animation: none; } }
.kind-art.icons { justify-content: center; align-content: center; }
.tpl-art img { object-fit: contain; }
.net-fig canvas { bottom: 52px !important; height: calc(100% - 52px) !important; }
.net-fig { aspect-ratio: auto; height: clamp(360px, 40vw, 540px); }
@media (max-width: 920px) { .net-fig { height: 380px; } .net-fig canvas { bottom: 46px !important; height: calc(100% - 46px) !important; } .net-log { height: 46px; } }

/* Games: a grid of the studio's games, tile first */
.gamegrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.gcard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.gcard:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 16px 40px -24px rgba(2,248,248,.35); }
.gcard-art { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; background: radial-gradient(70% 60% at 50% 20%, rgba(2,248,248,.10), transparent 70%), var(--bg); }
.gcard-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard-art .gicon { width: 88px; height: 88px; }
.gcard-art .chip { position: absolute; top: 10px; left: 10px; background: rgba(4,16,21,.82); backdrop-filter: blur(6px); }
.gcard-body { display: grid; gap: 4px; align-content: start; padding: 12px 14px 14px; }
.gcard-body strong { font: 700 15.5px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard-meta { font-size: 12.5px; } .gcard-meta .cap { text-transform: capitalize; }
.gcard-next { margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.gcard.add { border-style: dashed; background: none; }
.gcard.add .gcard-art { background: none; }
.gcard.add .gcard-art .ico { width: 44px; height: 44px; color: var(--brand); stroke-width: 1.4; }
@media (max-width: 640px) { .gamegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gcard-body { padding: 10px 11px 12px; } .gcard-art .gicon { width: 64px; height: 64px; } }
.gcard-ph { display: grid; justify-items: center; gap: 18px; padding: 0 16px; text-align: center; }
.gcard-ph .gicon { width: 96px; height: 96px; }
.gcard-ph strong { font: 800 19px/1.15 var(--display); letter-spacing: -.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.gcard:not(.add) .gcard-art:has(.gcard-ph) { background: radial-gradient(80% 55% at 50% 30%, rgba(2,248,248,.16), transparent 70%), linear-gradient(180deg, #0B2530, #061219); }
.gcard.add { display: grid; place-items: center; min-height: 100%; }
.gcard.add .add-in { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px; }
.gcard.add .add-in .ico { width: 40px; height: 40px; padding: 10px; box-sizing: content-box; border-radius: 50%; background: rgba(2,248,248,.10); color: var(--brand); stroke-width: 1.6; margin-bottom: 6px; }
.gcard.add .add-in strong { font: 700 15.5px var(--display); }
.gcard.add .add-in .muted { font-size: 12.5px; }
.gcard.add { grid-template-rows: 1fr; align-items: center; }

/* Games list: brand, period and search over one table of every game */
.list-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.list-tools .grow { flex: 1; }
.list-tools select { width: auto; min-width: 170px; }
.find { position: relative; min-width: 260px; }
.find input { width: 100%; padding-left: 38px; }
.find .ico { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--t2); pointer-events: none; }
.game-list td:first-child { min-width: 280px; }
.game-list td { vertical-align: middle; }
.gname { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.gname:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.gname .gi { width: 46px; height: 46px; border-radius: 12px; background: var(--s0); border: 1px solid var(--line); display: grid; place-items: center; flex: none; overflow: hidden; }
.gname .gi img { width: 100%; height: 100%; object-fit: cover; }
.gname .gi .gicon { width: 30px; height: 30px; stroke-width: 3; }
.gtext { display: grid; gap: 2px; min-width: 0; }
.gtext .muted { font-size: 12.5px; }
.btags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.btags i { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: var(--soft); border: 1px solid var(--line); color: var(--t2); white-space: nowrap; }
.btags i.more { color: var(--t3); }
.per-coin { display: block; white-space: nowrap; }
.per-coin + .per-coin { margin-top: 2px; font-size: 12.5px; color: var(--t2); }
.game-list .no-match td { text-align: center; padding: 36px; color: var(--t2); }
.phone-only { display: none; }
@media (max-width: 760px) {
  .wide-only { display: none; }
  .phone-only { display: inline-flex; justify-self: start; margin-top: 4px; }
  .find { min-width: 0; width: 100%; }
  .list-tools .grow { display: none; }
  .list-tools select { flex: 1; }
  .game-list td:first-child { min-width: 220px; }
  .btags { display: none; }
}

/* ---- KPI cards (Home, Reports): one currency, the GGR card leads ---- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 60%), var(--s1); min-width: 0; overflow: hidden; }
.kpi .label { font-size: 11.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.kpi .num { font-size: 28px; line-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.hero { border-color: rgba(71,212,150,.32); background: radial-gradient(120% 140% at 100% 0, rgba(71,212,150,.14), transparent 60%), var(--s1); }
.kpi.hero .num { color: var(--ok); }
.kpi.hero.neg { border-color: rgba(244,31,80,.32); background: radial-gradient(120% 140% at 100% 0, rgba(244,31,80,.12), transparent 60%), var(--s1); }
.kpi.hero.neg .num { color: var(--err); }
td.neg { color: var(--err); }

/* ---- Reports ---- */
.rep-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rep-dates { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.rep-dates input { width: auto; padding: 8px 10px; }
.rep-game select { min-width: 190px; }
.rep-chart .series { display: none; gap: 10px; }
.rep-chart:not(:has(input[name=metric]:checked)) .series:first-of-type,
.rep-chart:has(input[value=ggr]:checked) .s-ggr, .rep-chart:has(input[value=turnover]:checked) .s-turnover,
.rep-chart:has(input[value=bets]:checked) .s-bets, .rep-chart:has(input[value=players]:checked) .s-players { display: grid; }
.rep-chart .total { margin: 0; font-size: 13px; }
.rep-chart .total strong { font-family: var(--display); font-size: 22px; font-weight: 800; margin-right: 4px; }
.rep-chart svg.bars { height: 190px; }
.rep-chart svg.bars rect { fill: rgba(196,244,241,.22); }
.rep-chart .s-ggr svg.bars rect { fill: rgba(71,212,150,.45); }
.rep-chart svg.bars rect.neg { fill: rgba(244,31,80,.5); }
.rep-chart svg.bars rect:hover { fill: var(--primary); }
svg.share { display: block; width: 120px; height: 6px; }
svg.share rect { fill: var(--s0); }
svg.share rect.v { fill: var(--brand); }
td.nowrap { white-space: nowrap; }
details.more.flush > summary { padding: 18px 22px; }
details.more.flush[open] > summary { padding-bottom: 6px; }
.rep-bar .seg a { white-space: nowrap; }
tr.quiet td { color: var(--t3); }
details.more > summary { list-style: none; cursor: pointer; display: grid; gap: 2px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary h2::after { content: ' ▾'; color: var(--t3); font-size: 14px; }
details.more[open] > summary h2::after { content: ' ▴'; }
.empty-rep { text-align: center; padding: 40px 22px; }

/* ---- sortable headers ---- */
th[data-sort] { cursor: pointer; user-select: none; white-space: nowrap; }
th[data-sort]:hover { color: var(--t1); }
th[data-sort]::after { content: '↕'; margin-left: 5px; color: var(--t3); font-size: 11px; }
th[aria-sort=descending]::after { content: '↓'; color: var(--brand); }
th[aria-sort=ascending]::after { content: '↑'; color: var(--brand); }

/* ---- Games: state chips ---- */
.state-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.state-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--s1); border: 1px solid var(--line); color: var(--t2); font: 600 13px var(--text); cursor: pointer; }
.state-chips button:hover { color: var(--t1); border-color: var(--line2); filter: none; }
.state-chips button[aria-pressed=true] { color: var(--bg); background: var(--primary); border-color: var(--primary); }
.state-chips b { font-weight: 800; font-variant-numeric: tabular-nums; opacity: .7; }
.state-chips .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--t3); }
.state-chips .dot.live, .state-chips .dot.sandbox { background: var(--ok); }
.state-chips .dot.review, .state-chips .dot.paused { background: var(--warn); }
.list-tools .find { flex: 1; min-width: 220px; }

/* ---- Settings: currency ---- */
.ccy-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ccy-pick label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--s2); cursor: pointer; margin: 0; }
.ccy-pick label:hover { border-color: var(--line2); }
.ccy-pick label:has(input:checked) { border-color: var(--brand); background: rgba(2,248,248,.07); box-shadow: 0 0 0 1px var(--brand) inset; }
.ccy-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ccy-pick .sym { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 10px; background: var(--s0); border: 1px solid var(--line); font: 800 14px var(--display); color: var(--primary); }
.ccy-pick label > span:last-child { display: grid; line-height: 1.3; }
.ccy-pick .muted { font-size: 12px; }

@media (max-width: 920px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .num { font-size: 22px; line-height: 28px; }
  .rep-dates { margin-left: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .rep-dates input { min-width: 0; width: 100%; padding: 8px; font-size: 13px; }
  .rep-game, .rep-game select { width: 100%; }
  .rep-bar .seg { display: flex; width: 100%; min-width: 0; }
  .rep-bar .seg a { flex: 1; text-align: center; padding: 7px 4px; font-size: 12.5px; }
  .kpis .kpi:last-child:nth-child(odd) { grid-column: span 2; }
  .rep-chart > .row { flex-wrap: wrap; gap: 10px; }
}
details.more { grid-template-columns: minmax(0, 1fr); }
details.more > .scroll { min-width: 0; overflow-x: auto; }

/* ---- API keys ---- */
.key-form { display: grid; gap: 16px; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.preset { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--s2); cursor: pointer; margin: 0; }
.preset:hover { border-color: var(--line2); }
.preset:has(input:checked) { border-color: var(--brand); background: rgba(2,248,248,.07); box-shadow: 0 0 0 1px var(--brand) inset; }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset .muted { font-size: 12.5px; line-height: 1.45; }
.perms { display: grid; }
.perm { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.perm > div:first-child { display: grid; gap: 2px; min-width: 0; }
.perm .muted { font-size: 12.5px; }
.perm .muted b { color: var(--t1); font-weight: 600; }
.seg label.off { opacity: .35; cursor: not-allowed; }
.seg label:has(input[value=write]:checked) { color: var(--bg); background: var(--primary); }
.key-form h2.sub { font-size: 15px; margin-top: 6px; }
.key-form textarea { font-family: var(--mono); font-size: 12.5px; }
.game-pick { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.key-form:has(input[name=scope_games][value=all]:checked) .only-some,
.key-form:has(input[name=scope_games][value=some]:checked) .only-all { display: none; }
.key-sub { display: block; font-size: 11.5px; margin-top: 2px; }
.acc { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--t3); }
.acc.read { color: var(--primary); border-color: rgba(196,244,241,.25); }
.acc.write { color: var(--bg); background: var(--primary); border-color: var(--primary); }
td.limits span { display: block; font-size: 12.5px; white-space: nowrap; }
.pad-b { padding: 0 22px 20px; margin: 0; }
table.keys td { vertical-align: middle; }
@media (max-width: 640px) { .perm { flex-direction: column; align-items: stretch; padding: 14px 16px; } .perm .seg { display: flex; } .perm .seg label { flex: 1; text-align: center; } }

/* ---- Billing ---- */
.kpi.gold-kpi { border-color: rgba(253,220,115,.32); background: radial-gradient(120% 140% at 100% 0, rgba(253,220,115,.13), transparent 60%), var(--s1); }
.kpi.gold-kpi .num { color: var(--gold); }
.paycoins { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.paycoin { position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--s2); cursor: pointer; margin: 0; min-width: 0; }
.paycoin:hover { border-color: var(--line2); }
.paycoin:has(input:checked) { border-color: var(--brand); background: rgba(2,248,248,.07); box-shadow: 0 0 0 1px var(--brand) inset; }
.paycoin input { position: absolute; opacity: 0; pointer-events: none; }
.paycoin > span:last-child { display: grid; gap: 1px; min-width: 0; }
.paycoin .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin-ico { width: 40px; height: 40px; flex: none; display: block; }
.addr-row { display: flex; gap: 10px; }
.addr-row input { flex: 1; min-width: 0; }

/* ---- Organisation ---- */
.org-head .row { gap: 14px; align-items: center; }
.org-head .chip { vertical-align: middle; }
.org-logo { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--s3); border: 1px solid var(--line2); font: 800 22px var(--display); color: var(--primary); flex: none; }
.org-logo img { width: 100%; height: 100%; object-fit: cover; }
.org-logo.big { width: 72px; height: 72px; font-size: 30px; }
.tabs .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--warn); color: var(--bg); font-size: 11px; font-weight: 800; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person .who, .req .who { display: grid; min-width: 0; line-height: 1.35; }
.person .who .muted, .req .who .muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.avatar.dashed { background: transparent; border: 1px dashed var(--line2); color: var(--t2); }
.avatar.dashed .ico { width: 16px; height: 16px; }
table.people select { width: auto; min-width: 130px; padding-top: 7px; padding-bottom: 7px; }
.danger-text { color: var(--err) !important; }
.requests { border-color: rgba(245,184,75,.35); }
.req { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.req .who { flex: 1; }
.req-act { display: flex; gap: 8px; align-items: center; }
.req-act select { width: auto; padding-top: 7px; padding-bottom: 7px; }
.invite-form { display: grid; gap: 12px; }
.role-pick, .modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.role-pick label, .mode { position: relative; display: grid; gap: 3px; align-content: start; padding: 12px 14px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--s2); cursor: pointer; margin: 0; }
.role-pick label:hover, .mode:hover { border-color: var(--line2); }
.role-pick label:has(input:checked), .mode:has(input:checked) { border-color: var(--brand); background: rgba(2,248,248,.07); box-shadow: 0 0 0 1px var(--brand) inset; }
.role-pick input, .mode input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick strong { text-transform: capitalize; }
.role-pick .muted, .mode .muted { font-size: 12.5px; line-height: 1.45; }
.joining { display: grid; gap: 14px; }
.joining:has(input[name=mode][value=invite]:checked) .only-domain { display: none; }
.signin-ways { display: flex; flex-wrap: wrap; gap: 8px; }
.signin-ways span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.signin-ways .ico { width: 16px; height: 16px; }
@media (max-width: 640px) { .req { flex-wrap: wrap; padding: 14px 16px; } .req-act { width: 100%; } .req-act select { flex: 1; } }

/* ---- create studio: or join yours ---- */
.join-yours { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r2); border: 1px solid rgba(2,248,248,.3); background: rgba(2,248,248,.06); }
.join-yours .row { justify-content: space-between; gap: 12px; }
table.people { width: 100%; }

/* The studio terms pop-up: read to the end, tick, accept. Nothing behind it works until then. */
body:has(.tm-backdrop) { overflow: hidden; }
.tm-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 32px 20px; background: rgba(2, 8, 11, .72); backdrop-filter: blur(4px); }
.tm { width: min(600px, 100%); height: min(680px, calc(100dvh - 64px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--s1); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 32px 90px -24px rgba(0,0,0,.75); overflow: hidden; }
.tm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.tm-head h2 { font-size: 18px; line-height: 1.3; margin: 0 0 2px; }
.tm-head p { font-size: 13px; }
.tm-full { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--t2); text-decoration: none; padding: 4px 0; white-space: nowrap; }
.tm-full:hover { color: var(--t1); }
.tm-full .ico { width: 13px; height: 13px; }
.tm-body { overflow-y: auto; padding: 18px 22px 24px; background: var(--s0); font-size: 13.5px; line-height: 1.65; color: #C9CED8; overscroll-behavior: contain; outline: none; }
.tm-body:focus-visible { box-shadow: inset 0 0 0 1px var(--line2); }
.tm-body > * { max-width: none; margin-bottom: 12px; }
.tm-body h2:first-child { font-size: 16px; margin-bottom: 6px; }
.tm-body h2:first-child + p { font-size: 13.5px; color: var(--t2); line-height: 1.6; }
.tm-body h3 { font-size: 14.5px; margin: 26px 0 10px; padding-top: 18px; }
.tm-body h4 { font-size: 13.5px; }
.tm-body table { font-size: 12.5px; }
.tm-body th, .tm-body td { padding: 8px 10px; }
.tm-body .scroll { border-radius: 10px; }
.tm-foot { position: relative; display: grid; gap: 12px; padding: 14px 22px 16px; border-top: 1px solid var(--line); }
.tm-progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; }
.tm-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .15s; }
.tm-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.45; font-weight: 500; cursor: pointer; transition: opacity .15s; }
.tm-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--t2); display: grid; place-items: center; background: var(--s0); transition: background .15s, border-color .15s; }
.tm-check .box .ico { width: 13px; height: 13px; stroke-width: 3.2; color: #041015; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.tm-check:has(input:checked) .box { background: var(--brand); border-color: var(--brand); }
.tm-check:has(input:checked) .box .ico { opacity: 1; transform: none; }
.tm-check:has(input:focus-visible) .box { outline: 2px solid var(--brand); outline-offset: 2px; }
.tm-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.tm-actions { display: flex; gap: 14px; align-items: center; }
.tm-left { margin-left: auto; font-size: 12.5px; }
.tm-left.done { color: var(--brand); }
.tm-actions button[data-terms-submit] { min-width: 120px; justify-content: center; }
.tm-actions button:disabled { opacity: .4; cursor: not-allowed; }
.tm-link { background: none; border: 0; padding: 4px 0; min-height: 0; color: var(--t3); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tm-link:hover { color: var(--t1); background: none; }
@media (max-width: 640px) {
  .tm-backdrop { padding: 0; place-items: stretch; }
  .tm { height: 100dvh; border-radius: 0; border: 0; }
  .tm-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .tm-left { display: none; }
  .tm-actions button[data-terms-submit] { margin-left: auto; }
}

/* Small utilities that replace inline styles (the CSP allows none) */
.center { text-align: center; }
.center-items { justify-items: center; }
.center-row { justify-content: center; }
.tight-2 { gap: 2px; }
.w400 { font-weight: 400; }
.no-underline { text-decoration: none; }
input.otp { font-size: 22px; letter-spacing: .3em; text-align: center; }
.nowrap { white-space: nowrap; }

/* Versions: how an update reaches players */
.chip.checking::before { background: var(--warn); }
.chip.ready::before { background: var(--brand); }
.chip.checking, .chip.ready, .chip.returned, .chip.pending, .chip.approved, .chip.live, .chip.failed { text-transform: none; }
.vcard > .btn, .vcard > a.btn { justify-self: start; }
.vflow { gap: 18px; }
.vflow-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.vflow-head h2 { margin-bottom: 4px; }
.vflow-head p { max-width: 62ch; }
.vsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.vsteps li { position: relative; display: grid; gap: 4px; align-content: start; padding: 0 14px 0 0; }
.vsteps li::before { content: ''; position: absolute; left: 34px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--line2); }
.vsteps li:last-child::before { display: none; }
.vsteps li.done::before { background: var(--brand); }
.vsteps .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); background: var(--s0); border: 1.5px solid var(--line2); color: var(--t2); margin-bottom: 8px; position: relative; z-index: 1; }
.vsteps .dot .ico { width: 14px; height: 14px; stroke-width: 3; }
.vsteps li.done .dot { background: var(--brand); border-color: var(--brand); color: #041015; }
.vsteps li.now .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(2,248,248,.12); }
.vsteps li.now.bad .dot { border-color: var(--err); color: var(--err); box-shadow: 0 0 0 4px rgba(244,31,80,.12); }
.vsteps strong { font-size: 14px; }
.vsteps li:not(.done):not(.now) strong { color: var(--t2); }
.vsteps .muted { font-size: 12.5px; line-height: 1.45; }
.vcards { align-items: stretch; }
.vcard { gap: 10px; }
.vcard.next { border-color: rgba(2,248,248,.22); }
.vbig { display: flex; align-items: center; gap: 12px; font: 800 30px/1.1 var(--display); letter-spacing: -.01em; }
.vbig.muted { font-size: 22px; color: var(--t2); }
.vbig .chip { font: 600 12px/18px var(--text); letter-spacing: 0; }
.vsay { font-size: 14.5px; line-height: 1.55; color: var(--t1); max-width: 56ch; }
.vfacts, .vdiff { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.vfacts dt, .vdiff dt { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--t3); }
.vfacts dd, .vdiff dd { margin: 2px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.vdiff { padding: 10px 14px; border-radius: 10px; background: var(--s0); border: 1px solid var(--line); }
.vdiff dd span { color: var(--t3); margin: 0 2px; }
.vnotes { padding: 10px 14px; border-left: 3px solid var(--warn); background: rgba(245,184,75,.06); border-radius: 0 10px 10px 0; }
.vnotes p { margin-top: 2px; }
.vcard .row { flex-wrap: wrap; margin-top: auto; }
.vcli { padding: 8px 10px; }
.vhist table td, .vhist table th { padding-left: 22px; }
.vhist tr.vchecks td { border-top: 0; padding-top: 0; padding-bottom: 12px; }
@media (max-width: 760px) {
  .vsteps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vsteps li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 0; }
  .vsteps li .dot { grid-row: span 2; margin: 0; }
  .vsteps li::before { left: 13px; right: auto; top: 32px; bottom: -14px; width: 2px; height: auto; }
  .vbig { font-size: 26px; }
}
.vsame { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.vsame .ico { width: 15px; height: 15px; color: var(--brand); }

/* Organisation, Profile: each detail reads as a row and opens its own small form */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.pf-saved { display: flex; align-items: center; gap: 8px; }
.pf-saved .ico { width: 16px; height: 16px; color: var(--brand); }
.pf-top { padding-bottom: 14px !important; }
.pf-top h2 { margin-bottom: 2px; }
.pf-row { border-top: 1px solid var(--line); }
.pf-row > summary { list-style: none; display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; cursor: pointer; transition: background .15s; }
.pf-row > summary::-webkit-details-marker { display: none; }
.pf-row > summary:hover { background: rgba(255,255,255,.02); }
.pf-row[open] > summary { background: var(--s2); }
.pf-k { font-size: 13px; font-weight: 600; color: var(--t2); }
.pf-v { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.pf-v > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.pf-hint { font-size: 12.5px; font-weight: 400; width: 100%; margin-top: -8px; }
.pf-edit { font-size: 13px; font-weight: 700; color: var(--brand); padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(2,248,248,.25); }
.pf-row[open] .pf-edit { visibility: hidden; }
.pf-row > summary:hover .pf-edit { background: rgba(2,248,248,.08); }
.pf-form { display: grid; gap: 10px; padding: 4px 22px 20px 228px; background: var(--s2); }
.pf-form input, .pf-form select { max-width: 440px; }
.pf-form .small-text { max-width: 56ch; }
.pf-actions { display: flex; gap: 10px; }
.pf-actions button[data-pf-save]:disabled { opacity: .4; cursor: not-allowed; }
.org-logo { width: 40px; height: 40px; border-radius: 10px; }
.pf-logo { display: grid; grid-template-columns: 120px 120px minmax(0, 1fr); gap: 12px; align-items: stretch; max-width: 640px; }
.pf-swatch { height: 72px; border-radius: 12px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); overflow: hidden; }
.pf-swatch.dark { background: #06141A; color: var(--t1); }
.pf-swatch.light { background: #F2F4F7; color: #0B1920; }
.pf-swatch img { max-width: 100%; max-height: 52px; object-fit: contain; }
.pf-swatch strong { font-size: 13px; text-align: center; }
.pf-pick { position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px dashed var(--line2); border-radius: 12px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.pf-pick:hover, .pf-pick.has { border-color: var(--brand); background: rgba(2,248,248,.04); }
.pf-pick .ico { width: 20px; height: 20px; color: var(--brand); flex: none; }
.pf-pick > span { display: grid; gap: 2px; font-size: 13px; }
.pf-pick .muted { font-size: 12px; line-height: 1.4; }
.pf-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pf-side { display: grid; gap: 16px; }
.pf-status { margin: 2px 0; }
.pf-facts { display: grid; gap: 12px; margin: 4px 0 0; }
.pf-facts dt { font-size: 12px; color: var(--t3); font-weight: 600; }
.pf-facts dd { margin: 2px 0 0; font-size: 14px; }
.pf-links { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t2); text-decoration: none; }
.pf-links a:hover { color: var(--t1); }
.pf-links .ico { width: 13px; height: 13px; }
@media (max-width: 1000px) { .pf { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .pf-row > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; }
  .pf-k { grid-column: 1; }
  .pf-v { grid-column: 1; grid-row: 2; }
  .pf-edit { grid-row: 1 / span 2; grid-column: 2; }
  .pf-form { padding: 4px 16px 18px; }
  .pf-logo { grid-template-columns: 1fr 1fr; }
  .pf-pick { grid-column: 1 / -1; }
  .pf-actions button { flex: 1; }
}

/* ---- game: store tab ---- */
.store-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); }
.store-check > span:not(.label) { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--t3); }
.store-check > span .ico { width: 16px; height: 16px; padding: 2px; border-radius: 50%; border: 1.5px solid currentColor; }
.store-check > span.done { color: var(--ok); }
.store-check > span.done .ico { background: var(--ok); color: var(--bg); border-color: var(--ok); }
.store-check .ask-copy { margin-left: auto; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.store-form .pair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.more-opts { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.more-opts > summary { cursor: pointer; font-weight: 700; }
.more-opts[open] > summary { margin-bottom: 4px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-chips label { position: relative; margin: 0; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--s2); font: 600 12.5px var(--mono); color: var(--t2); cursor: pointer; }
.lang-chips label:has(input:checked) { color: var(--bg); background: var(--primary); border-color: var(--primary); }
.lang-chips input { position: absolute; opacity: 0; pointer-events: none; }
.store-tile { position: sticky; top: 20px; }
.store-tile .tile-now { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--s2) 0 10px, var(--s1) 10px 20px); border: 1px dashed var(--line2); }
.store-tile .tile-now img { width: 100%; height: 100%; object-fit: cover; }
.store-tile .gen { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.store-tile .gen > .btn { justify-content: center; }
.store-tile .maker > summary { cursor: pointer; color: var(--t2); font-size: 13px; text-align: center; }
.store-tile .maker[open] { display: grid; gap: 10px; }
.store-tile .maker canvas { width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 920px) { .store-grid { grid-template-columns: minmax(0, 1fr); } .store-tile { position: static; order: -1; } .store-tile .tile-now { width: 180px; margin: 0 auto; } .store-form .pair { grid-template-columns: minmax(0, 1fr); } .store-check .ask-copy { margin-left: 0; } }

/* Buttons drawn as something else keep no raised edge */
.swatches button, .state-chips button, .tm-link, .rail .me button, .tabbar details .menu button, button.link, .pf-edit.as-btn { box-shadow: none; }

/* Settings: sections down the page, a jump list beside them */
.st-head .row { gap: 16px; align-items: center; }
.avatar.xl { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.st { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.st-nav { position: sticky; top: 24px; display: grid; gap: 2px; }
.st-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--t2); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.st-nav a:hover { background: var(--s1); color: var(--t1); }
.st-nav a[aria-current] { background: var(--s2); color: var(--t1); }
.st-nav a .ico { width: 16px; height: 16px; }
.st-nav a.danger:hover, .st-nav a.danger[aria-current] { color: var(--err); }
.st-main { display: grid; gap: 20px; min-width: 0; }
.st-main > section { scroll-margin-top: 24px; }
.pf-row.static .pf-sum { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; }
.pf-row.static.block { padding-bottom: 20px; }
.pf-row.static.block .ccy-pick, .pf-row.static.block .error { margin: 0 22px; }
.pf-hint.first { margin-top: 0; }
a.pf-edit { text-decoration: none; }
.pf-edit.as-btn { background: none; font: 700 13px/1 var(--text); cursor: pointer; }
.pf-edit.danger { color: var(--err); border-color: rgba(244,31,80,.3); }
.dots { letter-spacing: 2px; color: var(--t2); }
.chip.warn-chip::before { background: var(--warn); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 440px; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--err); transition: width .2s, background .2s; }
.pw-meter i.ok { background: var(--warn); }
.pw-meter i.good { background: var(--brand); }
.pf-form label { max-width: 440px; }
.totp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 560px; }
.totp-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; }
.totp-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--display); background: var(--s3); color: var(--primary); }
.totp-steps li > div { display: grid; gap: 6px; }
.totp-steps .muted { font-size: 13px; }
.totp-qr { display: block; width: 168px; height: 168px; margin: 10px 0; border-radius: 8px; image-rendering: pixelated; }
.totp-key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: var(--s0); border: 1px solid var(--line); border-radius: 10px; }
.totp-key code { font-size: 15px; letter-spacing: .08em; background: none; border: 0; padding: 0; color: var(--t1); }
.totp-key .copied::after { content: ' ✓'; }
input.otp-sm { max-width: 180px; font-size: 18px; letter-spacing: .3em; }
.st-danger { border-color: rgba(244,31,80,.22); }
.st-danger .pf-top h2 { color: var(--err); }
.st-gone { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--t2); max-width: 60ch; }
button.danger.solid { background: var(--err); color: #fff; border-color: var(--err); }
button.danger.solid:disabled { background: none; color: var(--err); }
@media (max-width: 900px) {
  .st { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .st-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .st-nav a { white-space: nowrap; background: var(--s1); }
}
@media (max-width: 640px) {
  .pf-row.static .pf-sum { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; }
  .pf-row.static .pf-sum .pf-k { grid-column: 1; }
  .pf-row.static .pf-sum .pf-v { grid-column: 1; grid-row: 2; }
  .pf-row.static .pf-sum > .pf-edit, .pf-row.static .pf-sum > form { grid-row: 1 / span 2; grid-column: 2; }
  .pf-row.static.block .ccy-pick, .pf-row.static.block .error { margin: 0 16px; }
}
.st-page { max-width: 1160px; margin: 0 auto; padding: 32px 24px 64px; display: grid; gap: 20px; }

/* Settings, compact: one section at a time, tight rows */
.st-head h1 { font-size: 26px; }
.st { grid-template-columns: 180px minmax(0, 760px); gap: 24px; margin-top: 4px; }
.st-nav { top: 16px; }
.st-nav a { padding: 8px 10px; font-size: 13.5px; }
.st-main { gap: 14px; }
.st-main .pf-top { padding: 16px 18px 12px !important; }
.st-main .pf-top h2 { font-size: 16px; }
.st-main .pf-top p { font-size: 13px; }
.st-main .pf-row > summary, .st-main .pf-row.static .pf-sum { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; padding: 11px 18px; min-height: 52px; }
.st-main .pf-k { font-size: 12.5px; }
.st-main .pf-v { font-size: 14px; gap: 8px; }
.st-main .pf-hint { font-size: 12px; margin-top: -6px; }
.st-main .pf-edit { font-size: 12.5px; padding: 5px 10px; }
.st-main .pf-form { padding: 2px 18px 16px 180px; gap: 8px; }
.st-main .pf-row.static.block { padding-bottom: 14px; }
.st-main .pf-row.static.block .ccy-pick, .st-main .pf-row.static.block .error { margin: 0 18px; }
.st-main .ccy-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-main .totp-steps { gap: 12px; }
@media (max-width: 900px) { .st { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .st-main .pf-row > summary, .st-main .pf-row.static .pf-sum { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
  .st-main .pf-form { padding: 2px 14px 14px; }
  .st-main .ccy-pick { grid-template-columns: 1fr 1fr; }
}

/* Row actions (Edit, Open, Read, Change…) are small graphite buttons like the rest of the site */
.pf-edit { color: var(--on-action); background: var(--action); border: 1px solid var(--action-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.35); border-radius: 8px; font-weight: 700; }
.pf-row > summary:hover .pf-edit, a.pf-edit:hover, .pf-edit.as-btn:hover { background: var(--action); filter: brightness(1.18); border-color: rgba(255,255,255,.22); }
.pf-edit.danger { color: var(--err); background: none; border-color: rgba(244,31,80,.35); box-shadow: none; }
.pf-row > summary:hover .pf-edit.danger { background: rgba(244,31,80,.08); filter: none; }
.kind-go .earn { margin-right: auto; padding: 3px 9px; border-radius: 999px; background: rgba(253,220,115,.12); border: 1px solid rgba(253,220,115,.3); color: var(--gold); font-size: 12px; }
.kind:has(.earn) .kind-go { display: flex; width: 100%; }
.st-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.st { margin-top: 0; }
.st-nav { gap: 4px; }

/* New game: the address follows the title; change it only if you want to */
.slugline > summary { list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; cursor: pointer; font-size: 13.5px; padding: 2px 0; }
.slugline > summary::-webkit-details-marker { display: none; }
.slug-url { color: var(--t2); word-break: break-all; }
.slug-url strong { color: var(--t1); font-weight: 600; }
.slug-change { font-size: 12.5px; font-weight: 700; color: var(--t1); padding: 3px 9px; border-radius: 7px; border: 1px solid var(--action-edge); background: var(--action); }
.slugline[open] .slug-change { display: none; }
.slug-edit { margin-top: 10px; max-width: 520px; }
.slug-edit .muted { font-size: 12.5px; line-height: 1.5; }

/* Review: a conversation like a pull request */
.rv-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.rv-status { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--s1); flex: 1; }
.rv-status > .ico { width: 20px; height: 20px; flex: none; color: var(--t2); }
.rv-status div { display: grid; gap: 1px; }
.rv-status strong { font-size: 15px; }
.rv-status span { font-size: 13px; color: var(--t2); }
.rv-status.changes { border-color: rgba(244,31,80,.35); background: rgba(244,31,80,.05); }
.rv-status.changes > .ico { color: var(--err); }
.rv-status.review > .ico { color: var(--warn); }
.rv-status.ok { border-color: rgba(71,212,150,.3); }
.rv-status.ok > .ico { color: var(--ok); }
.rv { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.rv-main { display: grid; gap: 14px; min-width: 0; }
.rv-side { display: grid; gap: 14px; position: sticky; top: 16px; }
.rv-side h3 { font-size: 14px; margin: 0; }
.rv-how { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--t2); }
.rv-how b { color: var(--t1); }
.rv-claude .vcli { justify-self: start; }
.rtl { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 12px; position: relative; }
.rtl::before { content: ''; position: absolute; left: 31px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rtl-ev { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; position: relative; }
.rtl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line2); position: relative; z-index: 1; }
.rtl-dot .ico { width: 14px; height: 14px; color: var(--t2); }
.rtl-ev > div { padding-top: 5px; }
.rtl-ev b { font-weight: 700; }
.rtl-ev.approved .rtl-dot { background: rgba(71,212,150,.15); border-color: rgba(71,212,150,.4); }
.rtl-ev.approved .rtl-dot .ico { color: var(--ok); }
.rtl-ev.returned .rtl-dot { background: rgba(244,31,80,.12); border-color: rgba(244,31,80,.4); }
.rtl-ev.returned .rtl-dot .ico { color: var(--err); }
.rtl-ev.live .rtl-dot .ico { color: var(--brand); }
.rtl-note { margin-top: 6px; padding: 10px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); white-space: pre-line; }
.rtl-thread { position: relative; z-index: 1; margin-left: -18px; }
.rtl-empty { padding: 14px 0; }
.rt { border: 1px solid var(--line2); border-radius: 12px; background: var(--s1); overflow: hidden; scroll-margin-top: 80px; }
.rt.must { border-left: 3px solid var(--err); }
.rt.suggest { border-left: 3px solid var(--warn); }
.rt.resolved { border-left-color: var(--ok); opacity: .82; }
.rt.fixed { border-left-color: var(--brand); }
.rt-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--s2); font-size: 12.5px; }
.rt-sev { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 11px; }
.rt.must .rt-sev { color: var(--err); }
.rt.suggest .rt-sev { color: var(--warn); }
.rt-area { font-weight: 700; }
.rt-state { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; color: var(--t2); font-weight: 600; }
.rt-state .ico { width: 13px; height: 13px; color: var(--ok); }
.rt.fixed .rt-state { color: var(--brand); }
.rt-comments { display: grid; }
.rc { padding: 12px 14px; display: grid; gap: 6px; }
.rc + .rc { border-top: 1px solid var(--line); }
.rc-who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.rc-who .avatar.xs { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.rc-tag { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--t2); }
.rc.staff .rc-tag { color: var(--brand); border-color: rgba(2,248,248,.3); }
.rc-body { font-size: 14px; line-height: 1.55; white-space: pre-line; padding-left: 30px; }
.rt-reply { display: grid; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: rgba(0,0,0,.12); }
.rt-reply textarea { min-height: 0; font-size: 13.5px; }
.rt-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.rt-fixed { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; margin-right: auto; cursor: pointer; }
.rt-fixed input { width: 18px; height: 18px; accent-color: var(--brand); }
.rt-actions .ico { width: 14px; height: 14px; }
.rv-next strong { font-size: 14px; }
.rcl { display: grid; gap: 12px; }
.rcl-g { display: grid; gap: 6px; }
.rcl-i { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.45; color: var(--t2); }
.rcl-mark { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 10px; margin-top: 1px; }
.rcl-mark .ico { width: 11px; height: 11px; stroke-width: 3; }
.rcl-i.pass { color: var(--t1); }
.rcl-i.pass .rcl-mark { background: rgba(71,212,150,.15); border-color: rgba(71,212,150,.5); color: var(--ok); }
.rcl-i.fail .rcl-mark { background: rgba(244,31,80,.12); border-color: rgba(244,31,80,.5); color: var(--err); }
.rt-new { gap: 10px; }
.rt-new-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.rt-new-row label { width: auto; }
.rt-new-row select { width: auto; }
.rt-sev-pick label { position: relative; }
.rcl-set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12.5px; line-height: 1.4; padding: 4px 0; border-top: 1px solid var(--line); }
.rcl-pick { display: inline-flex; gap: 4px; }
.rcl-pick label { position: relative; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--t2); cursor: pointer; }
.rcl-pick input { position: absolute; opacity: 0; }
.rcl-pick label.ok:has(input:checked) { color: var(--ok); border-color: rgba(71,212,150,.5); background: rgba(71,212,150,.1); }
.rcl-pick label.no:has(input:checked) { color: var(--err); border-color: rgba(244,31,80,.5); background: rgba(244,31,80,.1); }
.rv-admin .rv { margin-top: 8px; }
@media (max-width: 1000px) { .rv { grid-template-columns: minmax(0, 1fr); } .rv-side { position: static; } }
@media (max-width: 640px) { .rc-body { padding-left: 0; } .rv-bar { flex-direction: column; align-items: stretch; } }
.rc:first-child .rc-body::first-line { font-weight: 700; color: var(--t1); }

/* Review, studio side: what to fix and the two ways to fix it */
.fixit { gap: 16px; border-color: rgba(244,31,80,.3); }
.fixit h2 { margin-bottom: 2px; }
.tofix { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tofix li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--s0); }
.tf-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); background: rgba(244,31,80,.14); color: var(--err); }
.tofix li.fixed .tf-n { background: rgba(2,248,248,.12); color: var(--brand); }
.tf-n .ico { width: 14px; height: 14px; stroke-width: 3; }
.tf-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tf-top strong { font-size: 14.5px; }
.tf-area { font-size: 11.5px; font-weight: 700; color: var(--t2); padding: 1px 7px; border: 1px solid var(--line2); border-radius: 6px; }
.tf-state { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); }
.tf-state.todo { color: var(--err); }
.tf-d { margin: 6px 0 4px; font-size: 13.5px; line-height: 1.55; color: var(--t2); white-space: pre-line; }
.tf-link { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.fixways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fw { display: grid; gap: 8px; align-content: start; padding: 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--s2); }
.fw-k { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; }
.fw-k .ico { width: 16px; height: 16px; color: var(--brand); }
.fw p { margin: 0; font-size: 13px; }
.fw-prompt { display: grid; gap: 8px; padding: 10px 12px; background: var(--s0); border: 1px solid var(--line); border-radius: 10px; }
.fw-prompt code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.5; white-space: normal; color: var(--t1); }
.fw-prompt button { justify-self: start; }
.fw-prompt .copied::after, .fw-prompt button.copied::after { content: ' ✓'; }
.submitfix { gap: 12px; border-color: rgba(2,248,248,.3); }
.sf-list { display: grid; gap: 6px; }
.sf-i { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; font-weight: 400; cursor: pointer; }
.sf-i input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.sf-i > span { display: grid; gap: 1px; }
.sf-i .muted { font-size: 12px; }
.rv-h { font-size: 14px; margin: 8px 0 -4px; color: var(--t2); text-transform: uppercase; letter-spacing: .6px; font-size: 11.5px; }
.rt-ask { border-top: 1px solid var(--line); }
.rt-ask > summary { padding: 9px 14px; font-size: 12.5px; font-weight: 600; color: var(--t2); cursor: pointer; list-style: none; }
.rt-ask > summary::-webkit-details-marker { display: none; }
.rt-ask > summary:hover { color: var(--t1); }
.rt-ask[open] > summary { display: none; }
.rt-ask .rt-reply { border-top: 0; }
@media (max-width: 760px) { .fixways { grid-template-columns: minmax(0, 1fr); } .tf-state { margin-left: 0; } }
.fixit.checking { border-color: var(--line); }

/* Pre-flight and the rules' facts */
.pf-card { gap: 10px; }
.pf-card.has-fail { border-color: rgba(244,31,80,.3); }
.pf-card h2 { margin-bottom: 2px; }
.pf-score { font: 800 22px var(--display); color: var(--ok); padding: 6px 12px; border-radius: 10px; background: rgba(71,212,150,.08); }
.pf-score.bad { color: var(--err); background: rgba(244,31,80,.08); }
.pf-fails { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pf-fails li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.5; padding: 8px 10px; border-radius: 8px; background: rgba(244,31,80,.06); }
.pf-x { color: var(--err); font-weight: 800; }
.pf-good { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--t2); margin: 0; }
.pf-good .ico { width: 15px; height: 15px; color: var(--ok); }
.rcl-auto { display: block; font-size: 11.5px; color: var(--t3); margin-top: 2px; }
.rcl-i.auto .rcl-mark { border-style: dashed; }
.fw-ok { display: flex; gap: 6px; align-items: center; color: var(--ok); margin: 0; }
.fw-ok .ico { width: 13px; height: 13px; }
.rule-facts { display: grid; gap: 8px; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--s0); }
.rule-facts strong { font-size: 13px; }
.facts-t { margin: 0; font-size: 13px; line-height: 1.55; color: var(--t2); white-space: pre-line; }
.facts-bad { margin: 0; font-size: 13px; color: var(--err); }
.facts-ok { margin: 0; font-size: 13px; color: var(--ok); display: flex; gap: 6px; align-items: center; }
.facts-ok .ico { width: 13px; height: 13px; }
.rcl-set .rcl-auto { display: block; font-size: 11px; color: var(--t3); margin-top: 2px; }
.rcl-set .rcl-auto.bad { color: var(--err); }
.rcl-raise { padding: 3px 8px; font-size: 11.5px; }
.rcl-pick { align-items: center; }

/* Needs you: everything waiting on the studio */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font: 800 11px/20px var(--text); text-align: center; }
.tabbar a { position: relative; }
.tabbar .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; padding: 0 4px; }
.needs { border-color: rgba(244,31,80,.25); }
.needs h2 { display: flex; align-items: center; gap: 8px; }
.needs-n { font: 800 12px/20px var(--text); min-width: 22px; height: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(244,31,80,.15); color: var(--err); text-align: center; }
.needs-l { list-style: none; margin: 0; padding: 0; }
.needs-l li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line); }
.needs-l li > div { display: grid; gap: 2px; }
.needs-l .muted { font-size: 13px; }
.needs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t3); }
.needs-l .n-fix .needs-dot, .needs-l .n-failed .needs-dot { background: var(--err); }
.needs-l .n-live .needs-dot { background: var(--ok); }
.needs-l .n-submit .needs-dot { background: var(--brand); }
@media (max-width: 640px) { .needs-l li { grid-template-columns: 10px minmax(0, 1fr); padding: 12px 16px; } .needs-l li .btn { grid-column: 2; justify-self: start; } }
.needs-l strong { font: 700 14.5px/1.35 var(--text); }
.rule-facts { grid-template-columns: minmax(0, 1fr); }
.rule-facts > .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (min-width: 1001px) { .rv-admin .rv { grid-template-columns: minmax(0, 1fr) 400px; } }
.rcl-raise { padding: 3px 8px !important; font-size: 11.5px !important; min-height: 0; box-shadow: none; }
.rcl-pick label { padding: 3px 7px; }

.tm-body:focus { outline: none; }
.tm-body:focus-visible { box-shadow: inset 0 0 0 2px rgba(2,248,248,.35); }
a.tm-link { text-decoration: none; }
