/* PLAYABLE app styles (tokens in tokens.css). Mobile first: 430 px phone, then the desktop rail at 900 px. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h1, .h2, .h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.015em; line-height: .92; margin: 0; }
.h1 { font-size: var(--h1); }
.h2 { font-size: var(--h2); }
.h3 { font-size: 26px; line-height: 1; }
.acc { color: var(--accent); }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 10px; }

/* ---------- buttons, chips, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform .08s, background .15s, border-color .15s; }
.btn:hover { border-color: rgba(255,255,255,.24); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border: 0; box-shadow: 0 3px 0 var(--accent-edge); font-weight: 700; }
.btn.primary:active { box-shadow: 0 1px 0 var(--accent-edge); transform: translateY(2px); }
.btn.white { background: #fff; color: #0D0D0D; border: 0; }
.btn.ghost { background: transparent; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--panel-3); color: var(--text); border-color: rgba(255,255,255,.22); }
.chip svg { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-weight: 700; font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tag svg { width: 13px; height: 13px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(228,255,63,.12); color: var(--accent); font-size: 12.5px; font-weight: 600; border: 1px solid rgba(228,255,63,.28); }

/* ---------- app shell: left rail (desktop), slim top bar, bottom bar (phone) ---------- */
.shell { min-height: 100vh; }
.rail { display: none; }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter); background: rgba(13,13,13,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .logo { margin-right: auto; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .01em; text-transform: uppercase; }
.logo .mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 19px; line-height: 1; }
.topbar .launch-cta .t-long { display: none; }
.wbtn svg { width: 17px; height: 17px; }
.main { padding: 20px var(--gutter) calc(96px + var(--safe-b)); max-width: 1440px; margin: 0 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(13,13,13,.94); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border-radius: var(--r); color: var(--muted); font-size: 11.5px; font-weight: 500; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.on { color: var(--text); background: var(--panel); }
.foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--rail) 1fr; }
  .rail { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg); }
  .rail .logo { padding: 2px 8px 22px; }
  .rail nav { display: flex; flex-direction: column; gap: 4px; }
  .rail nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: var(--r); color: var(--muted); font-weight: 500; }
  .rail nav a:hover { color: var(--text); }
  .rail nav a.on { background: var(--panel); color: var(--text); }
  .rail nav a svg { width: 19px; height: 19px; }
  .rail .bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
  .topbar { justify-content: flex-end; padding: 0 28px; }
  .topbar .logo { display: none; }
  .topbar .launch-cta .t-long { display: inline; }
  .topbar .launch-cta .t-short { display: none; }
  .tabbar { display: none; }
  .main { padding: 32px 32px 64px; }
}

/* ---------- explore ---------- */
.hero-panel { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel-2); padding: 28px 22px; margin-bottom: 26px; }
.hero-panel p { max-width: 560px; color: var(--muted); margin: 14px 0 0; font-size: 15.5px; }
.hero-panel .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (min-width: 900px) { .hero-panel { padding: 44px 40px; } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 14px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .filters { justify-content: center; margin: 0; padding: 2px 0 18px; flex-wrap: wrap; } }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.sect .sub { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 12px; } }
.gcard { display: block; min-width: 0; }
.gcard .cv { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.gcard .cv .blur { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(18px) brightness(.62) saturate(1.2); transform: scale(1.1); }
.gcard .cv img.fr { position: absolute; left: 50%; top: 0; height: 100%; width: auto; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 30px rgba(0,0,0,.5); }
.gcard .cv img.full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard .cv .coin { position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); object-fit: cover; }
.gcard .cv .mc { position: absolute; right: 8px; top: 8px; background: rgba(13,13,13,.78); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600; }
.gcard .cv .mc:empty { display: none; }
.gcard .meta { display: flex; align-items: flex-start; gap: 8px; padding: 8px 2px 0; }
.gcard .meta .tx { min-width: 0; flex: 1; }
.gcard .meta b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .meta .tag { margin-top: 2px; }
.gcard:hover .cv { border-color: rgba(255,255,255,.2); }
@media (max-width: 899px) { .gcard .meta .pill { height: 24px; padding: 0 10px; font-size: 12px; } .gcard .meta b { font-size: 13.5px; } }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 28px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- create: 3-step bar, two columns, prompt box ---------- */
.steps { display: flex; gap: 10px; font-size: 14px; color: var(--faint); margin-bottom: 10px; }
.steps button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-weight: 500; }
.steps button.on { color: var(--text); font-weight: 700; }
.steps button.done { color: var(--muted); }
.steps .dot { color: var(--faint); }
.progress { height: 3px; border-radius: 3px; background: var(--panel-3); margin-bottom: 26px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 33.3%; background: var(--accent); transition: width .3s; }
.create { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.create .side { order: -1; }
@media (min-width: 1100px) { .create { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; } .create .side { order: 0; } .create .side .stick { position: sticky; top: calc(var(--top) + 24px); } }
.step-h { margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field > label, .lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #CFCFD6; margin-bottom: 8px; }
.field .opt { color: var(--faint); }
.inp, .ta { width: 100%; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: var(--r-lg); padding: 13px 15px; font-size: 16px; outline: none; }
.inp:focus, .ta:focus { border-color: rgba(228,255,63,.5); }
.ta { resize: vertical; min-height: 92px; line-height: 1.45; }
.hint { font-size: 13px; color: var(--muted); margin-top: 7px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--panel-3); color: var(--text); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg button .soon { font-size: 11px; color: var(--faint); font-weight: 500; margin-left: 4px; }

/* the prompt box (Higgsfield Playable's, cloned) */
.pbox { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: var(--r-xl); background: var(--panel-2); border: 1px solid var(--line-2); }
.pbox .ref { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pbox .ref button { width: 64px; height: 64px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.22); background: var(--panel); display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: 0; color: var(--muted); font-size: 24px; }
.pbox .ref button img { width: 100%; height: 100%; object-fit: cover; }
.pbox .ref span { font-size: 11px; color: var(--faint); text-align: center; line-height: 1.2; }
.pbox .body { min-width: 0; }
.pbox .body small { display: block; font-size: 11.5px; color: var(--faint); margin: 2px 0 2px; }
.pbox textarea { width: 100%; border: 0; background: none; outline: none; resize: none; font-size: 16.5px; line-height: 1.4; min-height: 72px; padding: 0; color: var(--text); }
.pbox textarea::placeholder { color: #8D8D96; }
.pbox .tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pbox .tools .chip { height: 32px; font-size: 13px; color: #D7D7DE; background: var(--panel); border-color: var(--line); }
.pbox .tools .chip.on { border-color: rgba(228,255,63,.4); color: var(--text); }
.pbox .gen { grid-column: 1 / -1; height: 52px; border-radius: var(--r-lg); border: 0; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 3px 0 var(--accent-edge); cursor: pointer; }
.pbox .gen:disabled { opacity: .5; cursor: not-allowed; }
@media (min-width: 700px) { .pbox { grid-template-columns: 74px minmax(0, 1fr) 128px; align-items: stretch; } .pbox .gen { grid-column: auto; height: auto; min-height: 92px; line-height: 1; padding: 0 10px; } }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.examples .chip { height: auto; min-height: 36px; padding: 7px 14px; white-space: normal; text-align: left; color: #CFCFD6; }

/* genre picker (tiles, Higgsfield's "Choose genre") */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; justify-items: center; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal .sheet { width: min(980px, 100%); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 16px 14px calc(18px + var(--safe-b)); }
@media (min-width: 700px) { .modal { align-items: center; } .modal .sheet { border-radius: var(--r-xl); padding: 20px; } }
.modal .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal .head b { font-size: 19px; font-weight: 600; }
.modal .x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--panel-3); font-size: 20px; cursor: pointer; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; border: 2px solid transparent; background: var(--panel-3); cursor: pointer; padding: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.tile b { position: absolute; left: 12px; bottom: 9px; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.tile.on { border-color: var(--accent); }
.tile.on b::after { content: ' ✓'; color: var(--accent); }

/* stages (design → write → paint → check → ready) */
.stages { display: grid; gap: 6px; margin-top: 16px; }
.stages .st { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.stages .st .n { font-family: var(--display); font-weight: 800; font-size: 17px; width: 22px; }
.stages .st .w { margin-left: auto; font-size: 12.5px; }
.stages .st.now { color: var(--text); border-color: rgba(228,255,63,.35); }
.stages .st.now .w { color: var(--accent); }
.stages .st.done { color: var(--muted); }
.stages .st.done .w { color: var(--green); }
.design-card { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.design-card .t { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.design-card dl { display: grid; grid-template-columns: 76px 1fr; gap: 4px 10px; margin: 0; }
.design-card dt { color: var(--faint); }
.design-card dd { margin: 0; color: #D6D6DD; }
.pics { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pics .pc { width: 54px; height: 54px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-size: 24px; position: relative; }
.pics .pc img { width: 100%; height: 100%; object-fit: contain; }
.pics .pc.bg img { object-fit: cover; }
.pics .pc.wait { opacity: .45; }
.err { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: rgba(255,107,90,.1); border: 1px solid rgba(255,107,90,.35); color: #FFC9C1; font-size: 14px; }
.okline { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.3); color: #BFF5D2; font-size: 14px; }

/* ---------- the phone frame: a generated bezel picture, the game in its screen ---------- */
.phone { position: relative; width: min(100%, var(--pw, 340px)); aspect-ratio: var(--bz-ar, 666 / 1370); margin: 0 auto; background: url(art/phone-bezel.webp) center / 100% 100% no-repeat; }
.phone .scr { position: absolute; left: var(--bz-l, 4.15%); right: var(--bz-r, 4.15%); top: var(--bz-t, 1.9%); bottom: var(--bz-b, 1.85%); border-radius: var(--bz-rad, 10.5% / 4.9%); overflow: hidden; background: #000; }
.phone .scr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.phone .scr .ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 18px; text-align: center; color: var(--muted); font-size: 14px; background: #0B0B0C; }
.phone .scr .ph img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.phone .scr .ph > * { position: relative; }
.ptools { display: flex; justify-content: center; gap: 4px; margin: 12px auto 0; padding: 4px; width: max-content; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.ptools button { width: 40px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.ptools button:hover { color: var(--text); background: var(--panel-3); }
.ptools button svg { width: 18px; height: 18px; }
.ptools .sep { width: 1px; background: var(--line); margin: 6px 2px; }

/* preview card (create, right column) */
.pv { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel-2); padding: 14px; }
.pv .coinrow { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.pv .coinrow .im { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; color: var(--faint); font-size: 12px; flex: none; }
.pv .coinrow .im img { width: 100%; height: 100%; object-fit: cover; }
.pv .coinrow b { font-size: 20px; font-weight: 700; display: block; line-height: 1.1; }
.pv .coinrow .tk { color: var(--accent); font-weight: 700; }
.pv .lines { margin-top: 12px; display: grid; gap: 6px; font-size: 13.5px; }
.pv .lines div { display: flex; justify-content: space-between; gap: 10px; }
.pv .lines span:first-child { color: var(--faint); }
.pv .lines span:last-child { text-align: right; }
@media (max-width: 1099px) { .pv .phone { --pw: 240px; } }

/* launch form bits (from Playgroundpad) */
.coin-img { display: flex; align-items: center; gap: 12px; }
.coin-img .th { width: 64px; height: 64px; border-radius: 50%; background: var(--panel-3); overflow: hidden; display: grid; place-items: center; color: var(--faint); font-size: 12px; flex: none; }
.coin-img .th img { width: 100%; height: 100%; object-fit: cover; }
.fee { padding: 14px 16px; border-radius: var(--r-lg); background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; color: #D6D6DD; }
.fee .bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 10px 0 8px; }
.fee .bar i:first-child { background: var(--accent); }
.fee .bar i:last-child { background: #5B5B63; }
.fee .legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.walrow { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin: 14px 0 10px; }
.lsteps { display: grid; gap: 6px; margin-top: 12px; }
.lsteps .ls { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.lsteps .ls .n { font-family: var(--display); font-weight: 800; }
.lsteps .ls .st { margin-left: auto; font-size: 12px; }
.lsteps .ls.now { color: var(--text); }
.lsteps .ls.done { color: var(--muted); }
.lsteps .ls.done .st { color: var(--green); }
.done-box { margin-top: 14px; padding: 16px; border-radius: var(--r-lg); border: 1px solid rgba(228,255,63,.35); background: rgba(228,255,63,.06); }
.done-box .t { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.done-box .mint { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--muted); word-break: break-all; margin: 8px 0 12px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.lockline { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.alt-row { margin-top: 18px; padding: 14px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.alt-row .lbl { margin-bottom: 10px; }
.alt-row .r { display: flex; gap: 8px; flex-wrap: wrap; }
.alt-row .r .inp { flex: 1 1 220px; height: 44px; padding: 0 14px; border-radius: var(--r); font-size: 15px; }

/* ---------- play view (Higgsfield's: phone centred on a dark grid, details panel right) ---------- */
.playview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.stage { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line); padding: 22px 10px 16px; overflow: hidden;
  background-color: #0A0A0B; background-image: url(art/grid.webp); background-size: cover; background-position: center bottom; }
.stage .phone { --pw: min(360px, 82vw); }
.panel { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel-2); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.panel h1 { font-size: 19px; font-weight: 700; margin: 0; }
.panel .box { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); padding: 12px; }
.panel .box .hd { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.panel .box .hd button { background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.panel .prompt { font-size: 14px; color: #DCDCE2; line-height: 1.5; }
.panel .refimg { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--panel-3); }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; }
.panel dt { color: var(--faint); }
.panel dd { margin: 0; text-align: right; }
.panel .acts { display: grid; gap: 8px; margin-top: auto; }
@media (min-width: 1000px) { .playview { grid-template-columns: minmax(0, 1fr) 340px; } .stage { min-height: calc(100vh - var(--top) - 64px); display: flex; flex-direction: column; justify-content: center; } .stage .phone { --pw: min(380px, calc((100vh - 250px) * .486)); } }

/* coin stats band */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats .s { padding: 10px 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.stats .s span { display: block; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.stats .s b { font-size: 18px; font-weight: 700; }
.coinhead { display: flex; align-items: center; gap: 12px; }
.coinhead img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.coinhead b { display: block; font-size: 20px; }
.coinhead .tk { color: var(--accent); font-weight: 700; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 120; background: #F5F5F7; color: #0D0D0D; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

/* ---------- landing (Higgspad's campaign page: split hero, prompt box as the call to action) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: var(--top); padding: 0 var(--gutter); background: rgba(13,13,13,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ltop .logo { margin-right: auto; }
.ltop .lnav { display: none; }
.ltop .ic { width: 36px; padding: 0; }
.ltop .ic svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .ltop { padding: 0 32px; }
  .ltop .lnav { display: flex; gap: 30px; position: absolute; left: 50%; transform: translateX(-50%); }
  .ltop .lnav a { color: #C9C9D0; font-size: 15px; font-weight: 500; }
  .ltop .lnav a:hover { color: var(--text); }
}
.lhero { display: grid; gap: 8px; max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 10px; }
.lhero .copy { min-width: 0; }
.lhero .lede { color: var(--muted); font-size: 17px; max-width: 500px; margin: 18px 0 22px; }
.lhero .more { display: inline-block; margin-top: 16px; color: #C9C9D0; font-weight: 500; }
.lhero .more:hover { color: var(--text); }
.lbox { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.lbox .body { padding: 2px 4px 0; }
.lbox textarea { min-height: 50px; }
@media (min-width: 700px) { .lbox { grid-template-columns: minmax(0, 1fr) 128px; } .lbox .gen { min-height: 78px; } }
.lhero .examples { max-width: 560px; }
.lhero .art { position: relative; justify-self: center; width: min(100%, 380px); margin-top: 10px; }
.lhero .art img { width: 100%; height: auto; mix-blend-mode: lighten; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); mask-image: linear-gradient(to bottom, #000 72%, transparent 98%); }
.livechip { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap; padding: 9px 14px; border-radius: 14px; background: rgba(26,26,29,.88); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13.5px; color: #D6D6DD; }
.livechip a { color: var(--accent); font-weight: 600; }
.livechip .lc-in { display: flex; align-items: center; gap: 10px; color: #D6D6DD; font-weight: 500; }
.livechip b { color: var(--text); }
.livechip .live { color: var(--green); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
@media (min-width: 900px) {
  .lhero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 32px; padding: 30px 32px 20px; min-height: calc(100vh - var(--top)); }
  .lhero .h1 { font-size: clamp(64px, 6.6vw, 104px); }
  .lhero .art { width: min(100%, 470px); margin: 0; }
  .livechip { left: auto; right: -4%; transform: none; bottom: 16%; }
}
.lsec { max-width: 1280px; margin: 0 auto; padding: 56px var(--gutter) 0; }
@media (min-width: 900px) { .lsec { padding: 84px 32px 0; } }
.lhead { margin-bottom: 22px; }
.lhead p { color: var(--muted); max-width: 620px; margin: 10px 0 0; font-size: 16px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 212px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-bottom: 8px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: thin; }
.strip > .empty { grid-column: 1 / -1; }
@media (min-width: 1100px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-columns: auto; margin: 0; padding: 0; overflow: visible; } }
.scard { scroll-snap-align: start; min-width: 0; }
.scard .phone { --pw: 100%; }
.scard .tap { border: 0; cursor: pointer; display: grid; place-items: end center; padding: 0 0 18%; }
.scard .tap img.cover { opacity: 1; }
.scard .tap .pill { height: 34px; padding: 0 16px; font-size: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.scard .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; }
.scard .meta .tag { flex: none; white-space: nowrap; }
.scard .meta b { min-width: 0; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .open { display: inline-block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.scard .open:hover { color: var(--text); }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.how li { padding: 22px 20px; border-radius: var(--r-xl); background: var(--panel-2); border: 1px solid var(--line); }
.how .n { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent); }
.how b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; margin: 10px 0 8px; }
.how p { margin: 0; color: var(--muted); }
.fees .fee { max-width: 620px; }
.lcta { max-width: 1280px; margin: 0 auto; padding: 90px var(--gutter) 30px; text-align: center; display: grid; justify-items: center; gap: 22px; }
.lfoot { max-width: 1280px; margin: 40px auto 0; padding: 22px var(--gutter) calc(30px + var(--safe-b)); border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.lfoot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.lfoot .links a { color: #C9C9D0; font-weight: 500; }
@media (min-width: 900px) { .lfoot { padding: 22px 32px 40px; display: flex; justify-content: space-between; gap: 20px; } .lfoot .links { margin: 0; } .lfoot p { margin: 0; } }

/* create: on phones the preview card waits until there is a game; in Play it is the big phone */
@media (max-width: 1099px) {
  .create[data-step="1"] .side { display: none; }
  .create[data-step="2"] .pv .phone { --pw: min(330px, 82vw); }
  .create[data-step="3"] .pv .phone { --pw: 150px; }
}
@media (min-width: 1100px) { .pv .phone { --pw: min(330px, calc((100vh - 220px) * .486)); } }

/* coin band extras + score board */
.cmeta { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 13.5px; }
.cmeta dt { color: var(--faint); }
.cmeta dd { margin: 0; text-align: left; color: #D6D6DD; }
.cmeta a { color: var(--accent); font-weight: 600; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.board li:nth-child(odd) { background: rgba(255,255,255,.025); }
.board li.me { background: rgba(228,255,63,.1); }
.board .r { width: 20px; color: var(--faint); font-family: var(--display); font-weight: 800; font-size: 16px; }
.board .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board b { font-variant-numeric: tabular-nums; }
.saverow { margin-bottom: 10px; padding: 10px; border-radius: 10px; background: rgba(228,255,63,.06); border: 1px solid rgba(228,255,63,.25); font-size: 14px; }
.saverow .r { display: flex; gap: 8px; margin-top: 8px; }
.saverow .inp { height: 38px; padding: 0 12px; border-radius: 10px; font-size: 15px; flex: 1; min-width: 0; }

/* ---------- docs ---------- */
.docs { display: grid; gap: 22px; max-width: 1060px; }
.toc { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
.toc a:hover { color: var(--text); }
@media (min-width: 1000px) { .docs { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } .toc { flex-direction: column; position: sticky; top: calc(var(--top) + 30px); align-self: start; margin: 0; padding: 0; gap: 2px; } .toc a { border: 0; border-radius: 8px; height: 34px; font-size: 14px; } .toc a:hover { background: var(--panel); } }
.doc { max-width: 720px; min-width: 0; }
.doc .lead { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.doc section { padding-top: 34px; scroll-margin-top: calc(var(--top) + 10px); }
.doc h2 { margin: 0 0 12px; }
.doc p, .doc li { color: #D2D2D9; font-size: 15.5px; line-height: 1.6; }
.doc p { margin: 0 0 12px; }
.doc b { color: var(--text); }
.nums { padding-left: 22px; margin: 0 0 12px; display: grid; gap: 6px; }
.tips { padding-left: 18px; margin: 12px 0; display: grid; gap: 6px; }
.ex { display: grid; gap: 10px; margin: 16px 0 6px; }
.excard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-lg); background: var(--panel-2); border: 1px solid var(--line); }
.excard:hover { border-color: rgba(255,255,255,.2); }
.excard img { width: 64px; height: 110px; object-fit: cover; border-radius: 10px; }
.excard q { display: block; color: var(--text); font-size: 15px; line-height: 1.45; margin: 4px 0; }
.excard .go { font-size: 13px; color: var(--accent); font-weight: 600; }
.doc .fee { margin: 4px 0 14px; }

/* ---------- clips: real play, muted and looping, laid exactly over the still cover (no layout shift); they fade in
   once playing and only run while on screen (ui.js clips()) ---------- */
video.clipv { opacity: 0; transition: opacity .35s ease; pointer-events: none; background: transparent; }
video.clipv.on { opacity: 1; }
.gcard .cv video.fr { position: absolute; left: 50%; top: 0; height: 100%; width: auto; aspect-ratio: 430 / 932; transform: translateX(-50%); object-fit: cover; }
.phone .scr video.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hclips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 360px; margin-top: 24px; }
.hclip { display: block; min-width: 0; color: var(--muted); }
.hclip .phone { --pw: 100%; }
.hclip .scr img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hclip span { display: block; margin-top: 6px; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hclip:hover span { color: var(--text); }
@media (min-width: 900px) { .hclips { max-width: 330px; gap: 14px; margin-top: 26px; } }
