/* THE WALL ARCADE on Connect: one screen. The NFC brutalist system (concrete / ink / Anton / one blue accent). */
:root {
  --concrete: #DEDBD3; --ink: #0B0B0B; --chalk: #F2F0EB; --label: #6B685F; --label-lt: #B0ACA2; --rule: #C4C0B6; --blue: #2E7FD6;
  --anton: Anton, Impact, "Arial Narrow", sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace; --inter: Inter, system-ui, sans-serif;
  --bar: 44px;
  color-scheme: light;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--concrete); }
body { margin: 0; color: var(--ink); background: var(--concrete); font: 300 15px/1.55 var(--inter); -webkit-text-size-adjust: 100%; overflow: hidden; }
a { color: var(--ink); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 0; color: var(--chalk); background: var(--ink); font: 500 13px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
button:hover:not(:disabled) { background: var(--chalk); color: var(--ink); }
button.secondary { color: var(--ink); background: transparent; }
button.secondary:hover:not(:disabled) { background: var(--ink); color: var(--chalk); }
button.primary { background: var(--blue); border-color: var(--blue); color: var(--ink); }
button.primary:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
button.wide { width: 100%; min-height: 54px; font-size: 14px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, summary:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* text links: plain words, underlined (the third tier after the blue button and the ink one) */
button.linklike { min-height: 0; padding: 4px 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font: 400 15px/1.4 var(--inter); letter-spacing: 0; text-transform: none; }
button.linklike:hover:not(:disabled) { background: none; color: var(--blue); }

/* ------------------------------- top bar -------------------------------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 8px; height: calc(var(--bar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); background: var(--ink); color: var(--chalk); }
.topbar a { color: var(--chalk); text-decoration: none; white-space: nowrap; }
.topbar-back { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; font: 400 22px/1 var(--inter); }
.topbar-space { flex: 1; }
.topbar button { min-height: 32px; padding: 6px 12px; border-color: var(--chalk); background: transparent; color: var(--chalk); font-size: 13px; letter-spacing: .1em; }
.topbar button:hover:not(:disabled) { background: var(--chalk); color: var(--ink); }
.topbar-balance { position: relative; }
.topbar-info { width: 32px; padding: 0 !important; border-radius: 50% !important; font: 500 15px/1 var(--inter) !important; letter-spacing: 0 !important; text-transform: none !important; }
.wallet-dot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; background: var(--blue); border: 1px solid var(--chalk); }

/* ------------------------------- the frame ------------------------------- */
.stage-frame { position: fixed; inset: calc(var(--bar) + env(safe-area-inset-top)) 0 0; display: flex; align-items: center; justify-content: center; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.arena { position: relative; }
/* a run: the game has the whole screen; a discreet ← in the corner */
body.is-playing .topbar { display: none; }
body.is-playing .stage-frame { top: env(safe-area-inset-top); }
/* a holder of a name with no character yet: one band under the bar (not during a run) */
.people-band { position: fixed; inset: calc(var(--bar) + env(safe-area-inset-top)) 0 auto; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px; min-height: 40px; margin: 0; padding: 6px 12px; background: var(--blue); color: var(--ink); font: 400 14px/1.35 var(--inter); text-align: center; }
.people-band b { font: 500 14px/1.35 var(--mono); letter-spacing: .04em; }
.people-band a { color: var(--ink); font: 500 13px/1.35 var(--mono); letter-spacing: .1em; white-space: nowrap; }
body.has-band .stage-frame { top: calc(var(--bar) + 40px + env(safe-area-inset-top)); }
body.is-playing .people-band { display: none; }
body.is-playing.has-band .stage-frame { top: env(safe-area-inset-top); }
.corner-back { position: absolute; z-index: 3; top: 4px; left: 4px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ink); text-decoration: none; font: 400 22px/1 var(--inter); opacity: .55; }
.corner-back:hover { opacity: 1; }
.practice-tag { position: absolute; z-index: 3; top: 14px; left: 48px; margin: 0; font: 500 13px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); pointer-events: none; }

.overlay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: center; padding: 14px; background: rgba(222, 219, 211, .72); overflow-y: auto; }
.overlay.is-busy .overlay-actions, .overlay.is-busy .overlay-links, .overlay.is-busy .overlay-board { display: none; }
.overlay-card { margin: auto 0; width: 100%; max-width: 380px; padding: 20px 18px 14px; border: 1px solid var(--ink); background: var(--chalk); }
.overlay h1 { margin: 0; font: 400 clamp(44px, 13vw, 64px)/.92 var(--anton); text-transform: uppercase; }
.overlay-line { margin: 10px 0 16px; font: 300 16px/1.45 var(--inter); }
.overlay-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 0 14px; background: var(--rule); border: 1px solid var(--rule); }
.overlay-score div { padding: 8px 6px; background: var(--chalk); }
.overlay-score span { display: block; font: 500 13px/1.3 var(--mono); color: var(--label); }
.overlay-score strong { display: block; margin-top: 2px; font: 400 26px/1 var(--anton); overflow-wrap: anywhere; }
.overlay-actions { display: grid; gap: 8px; }
.overlay-actions button { white-space: nowrap; padding-left: 10px; padding-right: 10px; }   /* one line, even on a 320 px phone */
.overlay-actions .play { min-height: 58px; font-size: clamp(13px, 4vw, 15px); letter-spacing: .1em; background: var(--blue); border-color: var(--blue); color: var(--ink); }
.overlay-actions .play:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.overlay-actions .ink { min-height: 52px; font-size: clamp(13px, 3.8vw, 14px); letter-spacing: .1em; }
.overlay-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 8px 0 0; font: 400 15px/1.4 var(--inter); }
.overlay-links:empty { display: none; }
.overlay-links a { color: var(--ink); }
.overlay-status { margin: 10px 0 0; min-height: 1.2em; font: 400 14px/1.5 var(--inter); color: var(--ink); }
.overlay-status:empty { display: none; }
.round-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.round-actions:empty { display: none; }
.round-actions button { flex: 1 1 auto; }
.error-details { width: 100%; font: 400 13px/1.5 var(--mono); color: var(--label); overflow-wrap: anywhere; }
.overlay-board { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--rule); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.board-title { margin: 0; font: 500 13px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.board-post { font: 400 14px/1.3 var(--inter); color: var(--ink); white-space: nowrap; }
.board-post.is-preparing { opacity: .45; pointer-events: none; text-decoration: none; }
.board-ends { margin: 6px 0 0; font: 400 13px/1.3 var(--inter); color: var(--label); }
.board-list { margin: 0; padding: 0; list-style: none; font: 400 14px/1.3 var(--mono); font-variant-numeric: tabular-nums; }
.board-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.board-list li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list li.me { font-weight: 500; color: var(--blue); }
.board-list li.empty { display: block; font-family: var(--inter); color: var(--label); }
.board-list .rank { color: var(--label); }
.overlay-credit { margin: 14px 0 0; font: 400 13px/1.4 var(--inter); color: var(--label); }
.overlay-credit a { color: var(--label); }

/* --------------------------------- panels -------------------------------- */
.panel { width: min(420px, calc(100vw - 20px)); max-width: none; max-height: calc(100dvh - 20px); padding: 0; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: var(--chalk); overflow: auto; }
.panel::backdrop { background: rgba(11, 11, 11, .55); }
.panel-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; background: var(--ink); color: var(--chalk); }
.panel-header h2 { margin: 0; font: 400 22px/1 var(--anton); text-transform: uppercase; }
.panel-x { min-height: 40px; width: 40px; padding: 0; border: 0; background: transparent; color: var(--chalk); font: 400 18px/1 var(--inter); }
.panel-x:hover:not(:disabled) { background: var(--chalk); color: var(--ink); }
.panel-x--float { position: absolute; top: 6px; right: 6px; color: var(--ink); }
.panel-x--float:hover:not(:disabled) { background: var(--ink); color: var(--chalk); }
.panel-body { padding: 16px; }
.panel-note { margin: 8px 0; font: 400 14px/1.5 var(--inter); color: var(--label); overflow-wrap: anywhere; }
.panel-note:empty { display: none; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.panel-actions:empty { display: none; }
.panel-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 6px 0 0; }
.wallet-credits { margin: 2px 0 2px; font: 400 48px/1 var(--anton); text-transform: uppercase; }
.wallet-address { min-height: 0; padding: 4px 0; border: 0; background: none; color: var(--ink); font: 400 15px/1.4 var(--mono); letter-spacing: .02em; text-transform: none; text-decoration: underline dotted; text-underline-offset: 4px; }
.wallet-address:hover:not(:disabled) { background: none; color: var(--blue); }
.panel-subtitle { margin: 18px 0 6px; font: 600 15px/1.3 var(--inter); }
.credits p { font: 400 14px/1.55 var(--inter); overflow-wrap: anywhere; }
.credits p:empty { display: none; }
.credits--help > p:first-child { display: none; }          /* the balance: the wallet shows it */
.credits--help .buy-plain { display: none; }                /* nothing to recover: the wallet's own BUY does that */
.credit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.credit-actions:empty { display: none; }
.purchase-history { margin: 0; padding: 0; list-style: none; font: 400 13px/1.5 var(--mono); }
.purchase-history li { padding: 6px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.purchase-history li.empty { font-family: var(--inter); font-size: 14px; color: var(--label); }
.credits details { margin-top: 16px; font: 400 14px/1.55 var(--inter); }
.credits summary { cursor: pointer; font-weight: 600; }
.technical-details { white-space: pre-line; overflow-wrap: anywhere; font: 400 13px/1.5 var(--mono); color: var(--label); }

.panel--buy .panel-body { padding: 22px 16px 16px; }
.buy-offer { margin: 0 40px 10px 0; font: 400 32px/1.05 var(--anton); text-transform: uppercase; }
.buy-from { margin: 0 0 16px; font: 400 16px/1.45 var(--inter); overflow-wrap: anywhere; }
.buy-from strong { font: 500 15px/1.45 var(--mono); }
.buy-more { margin-top: 14px; font: 400 14px/1.55 var(--inter); }
.buy-more summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.buy-more summary::-webkit-details-marker { display: none; }
.buy-more p { margin: 8px 0 0; color: var(--label); }

.info h3 { margin: 16px 0 4px; font: 600 15px/1.3 var(--inter); }
.info h3:first-child { margin-top: 0; }
.info p { margin: 0; font: 400 14px/1.55 var(--inter); color: var(--ink); }
.info .info-credit { margin-top: 18px; font-size: 13px; }
.info .info-credit a { color: var(--label); }

.panel--connect { width: min(760px, calc(100vw - 16px)); overflow: hidden; }
.connect-note { margin: 0; padding: 8px 14px; }
#connect-embed iframe { display: block; width: 100%; height: min(72dvh, 720px); min-height: 380px; border: 0; background: white; }

/* ------------------------------ game stages ------------------------------ */
.ub-canvas { display: block; background: var(--concrete); touch-action: none; -webkit-user-select: none; user-select: none; }
.ub-sound { position: absolute; z-index: 1; right: 6px; bottom: 6px; min-height: 0; padding: 4px 8px; font-size: 13px; letter-spacing: .08em; background: var(--chalk); }

.tap-arena { width: min(460px, 100vw); height: 100%; padding: 16px 14px; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.diag-text { width: 100%; height: 160px; margin-top: 8px; font: 400 9px/1.3 var(--mono); }
.stage-message { margin: 0; padding: 40px 18px; border: 1px dashed var(--ink); text-align: center; font: 500 11px/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.tap-run { display: flex; flex-direction: column; gap: 14px; }
.tap-hud { display: flex; justify-content: space-between; align-items: baseline; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.tap-streak { font: 400 30px/1 var(--anton); letter-spacing: 0; }
.tap-timer { height: 8px; background: var(--rule); }
.tap-timer-fill { height: 100%; width: 100%; background: var(--blue); }
.tap-timer-fill.danger { background: var(--ink); }
.tap-prompt { text-align: center; padding: 14px 6px; }
.tap-label { margin-bottom: 8px; font: 500 10px/1 var(--mono); letter-spacing: .22em; color: var(--label); }
.tap-name { font: 400 clamp(28px, 8vw, 46px)/1.05 var(--anton); text-transform: uppercase; overflow-wrap: anywhere; animation: flashPulse .6s ease-in-out infinite; }
@keyframes flashPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.tap-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tap-option { min-height: 68px; padding: 12px 8px; font: 500 clamp(12px, 3.6vw, 15px)/1.25 var(--mono); letter-spacing: .04em; color: var(--ink); background: var(--chalk); border: 2px solid var(--ink); overflow-wrap: anywhere; }
.tap-option:hover:not(:disabled) { background: var(--ink); color: var(--chalk); }
.tap-option.correct { background: var(--blue); color: var(--ink); }
.tap-option.wrong { background: var(--ink); color: var(--chalk); text-decoration: line-through; }

@media (max-width: 520px) {
  .overlay { padding: 10px; }
  .overlay-card { padding: 18px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .tap-name { animation: none; } }

/* ------------------- end of a run drawn by the game (own-end) ------------------- */
/* FULL ROW and UNBREAKABLE: the end screen is the card itself, full width (src/share/end-screen.ts), POST ON X in blue
   under it; the page's card shrinks to a bar under that: PLAY AGAIN in ink and a text link. */
.own-end .overlay.is-end { align-items: flex-end; background: none; pointer-events: none; padding: 0; }
.own-end .overlay.is-end .overlay-card { margin: auto 0 0; pointer-events: auto; max-width: none; padding: 10px 14px 10px; border-width: 1px 0 0; }
.own-end .overlay.is-end h1, .own-end .overlay.is-end .overlay-score, .own-end .overlay.is-end .overlay-line,
.own-end .overlay.is-end .overlay-board { display: none; }
.own-end .overlay.is-end .overlay-links { margin-top: 6px; }
.end-panel { position: absolute; inset: 0 0 auto; bottom: 112px; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 12px 12px 10px; overflow-y: auto; background: var(--concrete); }
.end-card { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--ink); }
.end-post { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 16px; background: var(--blue); color: var(--ink); text-decoration: none; font: 500 15px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; }
@media (hover: hover) { .end-post:hover { background: var(--ink); color: var(--chalk); } }
.end-post.is-preparing { opacity: .55; pointer-events: none; }
.end-wall { align-self: flex-end; margin-top: -4px; font: 400 13px/1.4 var(--inter); color: var(--label); }
body:not(.is-playing) .ub-sound { display: none; }   /* sound is a control of the run, not of the entry or end screens */

/* ------------------------------- GRIFTERBALL --------------------------------- */
.gb-arena { width: 100%; height: 100%; overflow: hidden; background: #efdcc4; }
.gb-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
.gb-hud { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; justify-content: center; padding: 8px 12px; pointer-events: none; }
.gb-center { display: flex; flex-direction: column; align-items: center; }
.gb-score { font: 400 clamp(40px, 9vw, 64px)/.95 var(--anton); color: var(--ink); text-shadow: 0 2px 0 var(--chalk); }
.gb-meta { margin-top: 2px; padding: 2px 8px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--chalk); background: var(--ink); }
.gb-meta.late { background: var(--blue); color: var(--ink); }
.gb-right { position: absolute; top: 10px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gb-size { font: 400 24px/1 var(--anton); color: var(--ink); text-shadow: 0 2px 0 var(--chalk); }
.gb-gate { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 500 11px/1.2 var(--mono); letter-spacing: .1em; color: var(--ink); }
.gb-gate span:first-child { padding: 1px 5px; background: var(--chalk); }
.gb-gate-track { display: block; width: 120px; height: 8px; border: 1px solid var(--ink); background: var(--chalk); }
.gb-gate-track i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .2s; }
.gb-gate.ready span:first-child { background: var(--blue); }
.gb-gate.ready .gb-gate-track i { background: var(--blue); }
.gb-combo { margin-top: 4px; padding: 1px 8px; font: 400 22px/1.1 var(--anton); color: var(--ink); background: var(--blue); opacity: 0; transform: scale(.9); transition: opacity .15s, transform .15s; }
.gb-combo.on { opacity: 1; transform: none; }
.gb-dash { display: block; width: 84px; height: 6px; background: rgba(11, 11, 11, .25); }
.gb-dash i { display: block; height: 100%; width: 0; background: var(--ink); }
.gb-dash.ready i { background: var(--blue); }
.gb-toast, .gb-big { position: absolute; left: 50%; z-index: 1; margin: 0; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .18s, transform .18s; }
.gb-toast { top: 128px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; padding: 4px 10px; font: 400 20px/1.2 var(--anton); letter-spacing: .02em; color: var(--ink); background: var(--chalk); border: 1px solid var(--ink); }
.gb-big { top: 38%; font: 400 clamp(48px, 13vw, 96px)/1 var(--anton); color: var(--chalk); text-shadow: 0 3px 0 var(--ink), 0 0 24px rgba(11, 11, 11, .35); }
.gb-toast.on, .gb-big.on { opacity: 1; transform: translate(-50%, 0); }
.gb-pad { position: absolute; z-index: 1; width: 112px; height: 112px; margin: -56px 0 0 -56px; border: 2px solid rgba(11, 11, 11, .45); border-radius: 50%; pointer-events: none; }
.gb-pad i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(46, 127, 214, .85); }
.gb-dash-button { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1; width: 84px; height: 84px; padding: 0; border-radius: 50%; border-color: var(--ink); background: var(--blue); color: var(--ink); font: 400 20px/1 var(--anton); letter-spacing: .06em; }
.gb-sound { position: absolute; right: 8px; bottom: 8px; z-index: 1; min-height: 0; padding: 4px 8px; font-size: 12px; letter-spacing: .08em; background: var(--chalk); }
.gb-playing.gb-arena .gb-sound { right: auto; left: max(8px, env(safe-area-inset-left)); bottom: max(8px, env(safe-area-inset-bottom)); }
.gb-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.gb-credit { margin: 0 0 14px; text-align: right; }
.gb-credit a { color: var(--label); }
.gb-preset { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; padding: 8px 4px; background: var(--chalk); color: var(--ink); border-color: var(--rule); font-size: 11px; letter-spacing: .06em; }
.gb-preset img { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #000; }
.gb-preset.selected { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.gb-field-label { display: block; margin: 4px 0 6px; font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.gb-nft-row { display: flex; gap: 6px; }
.gb-nft-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: 400 15px/1.3 var(--inter); }
.gb-nft-row input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.gb-status { min-height: 1.5em; }
.gb-fine { font-size: 12px; }
@media (max-width: 420px) { .gb-toast { top: 118px; font-size: 17px; } .gb-dash { width: 64px; } .gb-gate-track { width: 84px; } .gb-gate { font-size: 10px; } }
/* the ball picker: what is on the ball on top, the choices scroll, the way to play pinned at the bottom */
.gb-skins[open] { display: flex; flex-direction: column; overflow: hidden; width: min(440px, calc(100vw - 20px)); }
.gb-skins .panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-top: 6px; }
.gb-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 16px 10px; border-bottom: 1px solid var(--rule); background: var(--concrete); }
.gb-orb { position: relative; width: clamp(120px, 34vw, 168px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ink); box-shadow: 0 10px 22px rgba(11, 11, 11, .28); }
.gb-orb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 34%), radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .38) 100%); }
.gb-preview.loading .gb-orb { animation: gb-pulse 1s ease-in-out infinite; }
@keyframes gb-pulse { 50% { opacity: .45; transform: scale(.96); } }
.gb-picked { margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 26px/1.05 var(--anton); text-transform: uppercase; }
.gb-picked-from { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; color: var(--label); text-align: center; }
.gb-preview .gb-status { margin: 4px 0 0; min-height: 0; font: 400 13px/1.4 var(--inter); color: var(--ink); text-align: center; }
.gb-preview .gb-status:empty { display: none; }
.gb-upload { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 10px; border: 1px solid var(--ink); font: 500 14px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.gb-upload:hover { background: var(--ink); color: var(--chalk); }
.gb-upload:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.gb-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.gb-skins-footer { display: grid; gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); background: var(--chalk); }
.gb-skins-footer .gb-go { min-height: 58px; font-size: 15px; letter-spacing: .1em; }
.gb-skins-footer .secondary { min-height: 44px; }
/* pick your ball, in the menu card above PLAY (Stage.entryPanel) */
.gb-strip { margin: 0 0 14px; }
.overlay.is-busy .gb-strip { display: none; }
.gb-strip-head { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 0; padding: 10px 12px; text-align: left; text-transform: none; letter-spacing: 0; background: var(--concrete); color: var(--ink); border: 1px solid var(--ink); }
.gb-strip-head:hover:not(:disabled) { background: var(--concrete); color: var(--ink); border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.gb-orb--small { display: block; flex: 0 0 auto; width: 76px; box-shadow: 0 5px 12px rgba(11, 11, 11, .28); }
.gb-strip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gb-strip-kicker { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.gb-strip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 24px/1.05 var(--anton); text-transform: uppercase; }
.gb-strip-change { font: 400 13px/1.3 var(--inter); color: var(--blue); }
.gb-strip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; padding: 2px; }
.gb-pick { flex: 0 0 auto; width: 42px; height: 42px; min-height: 0; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid transparent; background: var(--ink); }
.gb-pick img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.gb-pick.selected { border-color: var(--blue); box-shadow: 0 0 0 2px var(--chalk), 0 0 0 4px var(--blue); }
.gb-pick:hover:not(:disabled) { border-color: var(--blue); background: var(--ink); }
.gb-pick-more { background: var(--chalk); color: var(--ink); border: 1px dashed var(--ink); font: 400 22px/1 var(--inter); }
.gb-pick-more:hover:not(:disabled) { background: var(--ink); color: var(--chalk); }
