/* Barricade UI. Reads design/tokens.css only: no raw colors, radii or sizes here. See design/STYLE.md. */
:root {
  --light: var(--bc-board-l); --dark: var(--bc-board-d);
  --coord-l: var(--bc-board-d); --coord-d: var(--bc-board-l);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; background: var(--bc-bg); }
body { color: var(--bc-text); font-family: var(--bc-font); font-weight: var(--bc-w-bold); font-size: var(--bc-fs-body); -webkit-font-smoothing: antialiased; touch-action: manipulation; user-select: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: center; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 28px; height: 28px; fill: currentColor; flex: none; }
.grow { flex: 1; min-width: 0; }

/* ---------- player colors (two-tone) ---------- */
.you { --pl: var(--bc-coral-l); --pd: var(--bc-coral-d); }
.bot { --pl: var(--bc-blue-l); --pd: var(--bc-blue-d); }

/* ---------- chunky 3D button ---------- */
.btn { --face: var(--bc-tile); --edge-c: var(--bc-edge); height: var(--bc-btn-h); min-width: var(--bc-hit); border-radius: var(--bc-r-btn); background: var(--face); box-shadow: 0 var(--bc-depth) 0 var(--edge-c); margin-bottom: var(--bc-depth); display: flex; align-items: center; justify-content: center; gap: var(--bc-s2); font-weight: var(--bc-w-heavy); transition: transform var(--bc-motion), box-shadow var(--bc-motion); }
.btn:active:not(:disabled) { transform: translateY(var(--bc-press)); box-shadow: 0 calc(var(--bc-depth) - var(--bc-press)) 0 var(--edge-c); }
.btn.amber { --face: var(--bc-amber); --edge-c: var(--bc-amber-edge); color: var(--bc-amber-ink); background: linear-gradient(180deg, var(--bc-amber-hi), var(--bc-amber)); }
.btn.small { height: var(--bc-btn-h-sm); border-radius: var(--bc-r-small-btn); box-shadow: 0 var(--bc-depth-sm) 0 var(--edge-c); margin-bottom: var(--bc-depth-sm); }
.btn.small:active:not(:disabled) { transform: translateY(calc(var(--bc-press) - 1px)); box-shadow: 0 1px 0 var(--edge-c); }
.btn:disabled { --face: var(--bc-tile); --edge-c: var(--bc-edge); color: var(--bc-muted); opacity: var(--bc-dim); }
.btn.sel { background: var(--bc-sel); box-shadow: inset 0 0 0 1px var(--bc-sel-line), 0 var(--bc-depth) 0 var(--edge-c); }
.btn.small.sel { background: var(--bc-sel); box-shadow: inset 0 0 0 1px var(--bc-sel-line), 0 var(--bc-depth-sm) 0 var(--edge-c); }
.play { font-size: var(--bc-fs-play); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- flat card ---------- */
.card { background: var(--bc-card); border-radius: var(--bc-r-card); display: flex; align-items: center; gap: var(--bc-s3); padding: 0 var(--bc-s3); }
.card .t { font-size: calc(19px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1.05; }
.card .s { font-size: var(--bc-fs-small); color: var(--bc-muted); font-weight: var(--bc-w-medium); line-height: 1.15; }
.bar { height: 10px; border-radius: 5px; background: var(--bc-edge); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--bc-mint); border-radius: 5px; }

/* ---------- avatars ---------- */
.av, .bav { width: 46px; height: 46px; border-radius: var(--bc-r-sm); display: grid; place-items: center; box-shadow: 0 var(--bc-depth-sm) 0 var(--bc-edge); margin-bottom: var(--bc-depth-sm); flex: none; }
.av { background: var(--bc-coral-wash); } .av svg { width: 32px; height: 38px; }
.av.sm { width: 42px; height: 42px; } .av.sm svg { width: 28px; height: 34px; }
.bav { background: var(--bc-blue-wash); } .bav svg { width: 40px; height: 40px; }
.bav.lg { width: 56px; height: 56px; } .bav.lg svg { width: 50px; height: 50px; }

/* ---------- app shell ---------- */
.app { position: fixed; inset: 0; max-width: var(--bc-max-w); margin: 0 auto; display: flex; flex-direction: column; background: radial-gradient(120% 55% at 50% 0%, var(--bc-glow) 0%, var(--bc-bg) 62%), var(--bc-bg); padding-top: env(safe-area-inset-top); }
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; }
.screen.on { display: flex; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px var(--bc-gutter) var(--bc-s5); display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.scroll > * { flex: none; }
.topbar, .ptop { min-height: var(--bc-topbar-h); display: flex; align-items: center; gap: 14px; padding: 6px var(--bc-gutter) 0; border-bottom: 2px solid var(--bc-edge); flex: none; }
.topbar { border-bottom: 0; gap: var(--bc-s3); }
.me-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--bc-s3); text-align: left; }
.me-btn .av { width: 44px; height: 44px; margin: 0; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--bc-hair); }
.me-btn .av svg { width: 26px; height: 26px; }
.who b { display: block; font-size: calc(17px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1.2; }
.who small { display: block; font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); line-height: 1.2; }
.chip2 { height: 40px; padding: 0 var(--bc-s3); display: flex; align-items: center; gap: 6px; border-radius: var(--bc-r-small-btn); background: var(--bc-card); box-shadow: inset 0 0 0 1px var(--bc-hair); font-size: calc(16px * var(--bc-ts)); font-weight: var(--bc-w-heavy); }
.chip2 .ic { width: 20px; height: 20px; }
.ptop h2 { margin: 0 0 6px; flex: 1; text-align: center; font-size: var(--bc-fs-title); font-weight: var(--bc-w-heavy); }
.ptop .gh-btn + h2 { margin-right: 48px; }
.stat { display: flex; align-items: center; gap: 6px; font-size: var(--bc-fs-title); font-weight: var(--bc-w-heavy); }
.gh-btn { width: var(--bc-hit); height: var(--bc-hit); display: grid; place-items: center; color: var(--bc-text-2); border-radius: var(--bc-r-btn); }
.tabbar { background: var(--bc-tabbar); border-top: 1px solid var(--bc-hair); display: flex; padding: 10px 6px max(24px, env(safe-area-inset-bottom)); flex: none; }
.tab { flex: 1; min-height: var(--bc-hit); display: flex; flex-direction: column; align-items: center; gap: 1px; color: var(--bc-muted); font-size: var(--bc-fs-micro); font-weight: var(--bc-w-bold); }
.tab .ic { width: 26px; height: 26px; }
.tab.on { color: #fff; } .tab.on .ic { color: #fff; }

.h { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--bc-fs-section); font-weight: var(--bc-w-heavy); margin: 8px 0 -2px; }
.h a, .h span { font-size: calc(15px * var(--bc-ts)); color: var(--bc-muted); font-weight: var(--bc-w-bold); }
.empty { padding: var(--bc-s4); color: var(--bc-muted); font-size: var(--bc-fs-small); font-weight: var(--bc-w-medium); line-height: 1.3; display: block; }

/* ---------- home: play card ---------- */
.pcard { padding: 16px; border-radius: var(--bc-r-sheet); background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .05), transparent 55%), var(--bc-card-hi); box-shadow: inset 0 0 0 1px var(--bc-hair), 0 14px 30px rgba(0, 0, 0, .35); }
.kick { font-size: var(--bc-fs-micro); letter-spacing: .12em; color: var(--bc-muted); font-weight: var(--bc-w-heavy); }
.opp { margin-top: var(--bc-s3); display: flex; align-items: center; gap: 14px; }
.opp .bav { width: 56px; height: 56px; margin: 0; border-radius: var(--bc-r-btn); box-shadow: inset 0 0 0 1px var(--bc-hair); }
.opp .bav svg { width: 32px; height: 32px; }
.opp .nm { font-size: calc(24px * var(--bc-ts)); font-weight: var(--bc-w-heavy); letter-spacing: -.01em; line-height: 1.15; }
.opp .s { margin-top: 2px; font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); }
.sq { width: 44px; height: 44px; border-radius: var(--bc-r-small-btn); background: var(--bc-hair); color: var(--bc-text-2); display: grid; place-items: center; flex: none; }
.sq .ic { width: 22px; height: 22px; }
.seg2 { margin-top: 14px; display: flex; gap: 4px; height: 44px; padding: 4px; border-radius: var(--bc-r-small-btn); background: var(--bc-well); }
.seg2 button { position: relative; flex: 1; border-radius: 11px; font-size: calc(15px * var(--bc-ts)); font-weight: var(--bc-w-bold); color: var(--bc-muted); }
.seg2 button.on { background: var(--bc-tile-hi); color: var(--bc-text); font-weight: var(--bc-w-heavy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.pcard .btn.play { width: 100%; height: 60px; margin: 14px 0 var(--bc-depth); border-radius: 18px; font-size: calc(20px * var(--bc-ts)); }

.resume { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px var(--bc-s3); padding: 12px; box-shadow: inset 0 0 0 1px var(--bc-sel-line); }
.resume .bav { width: 44px; height: 44px; margin: 0; border-radius: 13px; box-shadow: none; } .resume .bav svg { width: 26px; height: 26px; }
.resume .t { font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); } .resume .s { font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); margin-top: 2px; }
.rbtns { grid-column: 1 / -1; display: flex; gap: var(--bc-s2); }
.rbtns .btn { flex: 1; font-size: var(--bc-fs-small); }
.rbtns .btn:not(.amber) { flex: none; width: 96px; color: var(--bc-text-2); }

/* ---------- puzzles ---------- */
.pz { width: 100%; min-height: 76px; padding: 12px 14px; text-align: left; box-shadow: inset 0 0 0 1px var(--bc-hair); }
.pz .t, .prow .t { font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); }
.pz .s, .prow .s { font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); margin-top: 2px; line-height: 1.25; }
.pz.daily .pzi { background: var(--bc-sel); color: var(--bc-text); box-shadow: inset 0 0 0 1px var(--bc-sel-line); }
.pz.daily.done .pzi { background: var(--bc-tile); color: var(--bc-mint); }
.pz .bar { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--bc-well); }
.pz .bar i { border-radius: 3px; }
.pzi { width: 44px; height: 44px; border-radius: 13px; background: var(--bc-tile); color: var(--bc-text-2); display: grid; place-items: center; flex: none; }
.pzi .ic { width: 26px; height: 26px; }
.pz > .ic, .prow > .ic { width: 22px; height: 22px; color: var(--bc-muted); }
.prow { width: 100%; min-height: 68px; padding: 10px 14px 10px 10px; text-align: left; box-shadow: inset 0 0 0 1px var(--bc-hair); }
.prow .num { width: 44px; height: 44px; border-radius: 13px; background: var(--bc-tile); display: grid; place-items: center; flex: none; font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); color: var(--bc-text-2); }
.prow .num.done { background: var(--bc-mint); color: var(--bc-mint-ink); }
.prow .num .ic { width: 24px; height: 24px; color: inherit; }
.pbar.task { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.pbar.task .sub { white-space: normal; overflow: visible; color: var(--bc-text-2); }
.pbar.task .walls { display: none; }

/* ---------- bot ladder: four equal cards ---------- */
.ladder4 { display: flex; gap: var(--bc-s2); }
.lt { position: relative; flex: 1; min-width: 0; height: 116px; padding-top: 14px; border-radius: 18px; background: var(--bc-card); box-shadow: inset 0 0 0 1px var(--bc-hair); display: flex; flex-direction: column; align-items: center; text-align: center; }
.lt .bav { width: 48px; height: 48px; margin: 0; border-radius: var(--bc-r-small-btn); box-shadow: none; }
.lt .bav svg { width: 26px; height: 26px; }
.lt b { margin-top: 10px; font-size: calc(14px * var(--bc-ts)); font-weight: var(--bc-w-heavy); }
.lt small { margin-top: 2px; font-size: var(--bc-fs-micro); font-weight: var(--bc-w-bold); color: var(--bc-muted); }
.lt .tk { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--bc-mint); color: var(--bc-mint-ink); box-shadow: 0 0 0 3px var(--bc-bg); display: grid; place-items: center; }
.lt .tk .ic { width: 14px; height: 14px; }
.lt.upnext { background: var(--bc-sel); box-shadow: inset 0 0 0 1px var(--bc-sel-line); }
.lt.next small { color: var(--bc-text); }
.lt.off b, .lt.off small { color: var(--bc-muted); }
.lt.off .bav { background: var(--bc-tile); filter: grayscale(1); opacity: .8; }
.lt.pick.sel { box-shadow: inset 0 0 0 1px var(--bc-sel-line); background: var(--bc-sel); }
.lt.pick.sel small { color: var(--bc-text); }

/* ---------- recent games ---------- */
.rec { display: flex; flex-direction: column; gap: var(--bc-s2); }
.rc { height: 64px; padding: 0 10px; gap: var(--bc-s3); border-radius: var(--bc-r-card); box-shadow: inset 0 0 0 1px var(--bc-hair); }
.rc .t { font-size: var(--bc-fs-body); }
.rc .s { font-size: var(--bc-fs-micro); margin-top: 2px; }
.res { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.res .ic { width: 24px; height: 24px; }
.res.w { background: var(--bc-mint-soft); color: var(--bc-mint); } .res.l { background: var(--bc-coral-wash); color: var(--bc-danger); }
.rp { width: 44px; height: 44px; flex: none; border-radius: var(--bc-r-small-btn); background: var(--bc-tile); color: var(--bc-text-2); display: grid; place-items: center; }
.rp .ic { width: 22px; height: 22px; }

/* ---------- more / profile ---------- */
.rows { display: flex; flex-direction: column; gap: var(--bc-s2); }
.row { min-height: 60px; width: 100%; font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); text-align: left; }
.row .chev { color: var(--bc-muted); width: 22px; height: 22px; }
.row.danger { color: var(--bc-coral-l); }
.switch { appearance: none; width: 52px; height: 30px; border-radius: 15px; background: var(--bc-edge); position: relative; flex: none; cursor: pointer; transition: background var(--bc-motion); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: var(--bc-muted); transition: transform var(--bc-motion), background var(--bc-motion); }
.switch:checked { background: #2c6f5d; } .switch:checked::after { transform: translateX(22px); background: var(--bc-mint); }
.me { height: 104px; }
.me .av { width: 72px; height: 72px; } .me .av svg { width: 50px; height: 60px; }
.me .nm { font-size: calc(26px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1; }
.me .s { margin-top: 5px; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st { height: 88px; border-radius: var(--bc-r-card); background: var(--bc-card); padding: 10px 14px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.st .ic { position: absolute; right: 12px; top: 10px; width: 28px; height: 28px; }
.st b { font-size: calc(32px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: .95; }
.st span { font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); }
.beaten { min-height: 112px; padding: 0 8px; gap: 4px; justify-content: space-between; }
.bb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; font-size: var(--bc-fs-micro); font-weight: var(--bc-w-heavy); }
.bb .bav { width: 52px; height: 52px; } .bb .bav svg { width: 46px; height: 46px; }
.bb.off { color: var(--bc-muted); } .bb.off .bav { opacity: var(--bc-dim); filter: grayscale(1); }
.bb .tk { position: absolute; top: -6px; right: calc(50% - 38px); width: 24px; height: 24px; border-radius: 12px; background: var(--bc-mint); color: var(--bc-mint-ink); display: grid; place-items: center; border: 3px solid var(--bc-card); }
.bb .tk svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------- profile: rating curve, head to head, achievements ---------- */
.rating { display: block; padding: 14px 14px 8px; box-shadow: inset 0 0 0 1px var(--bc-hair); }
.rtop { display: flex; align-items: baseline; gap: 10px; }
.rtop b { font-size: calc(32px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rtop span, .rating .s { color: var(--bc-muted); font-size: var(--bc-fs-small); font-weight: var(--bc-w-medium); }
.spark { display: block; width: 100%; height: auto; margin-top: 6px; }
.sp-a { fill: rgba(255, 255, 255, .06); } .sp-l { fill: none; stroke: var(--bc-text-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; } .sp-d { fill: var(--bc-text); stroke: var(--bc-card); stroke-width: 3; }
.h2hs { display: flex; flex-direction: column; gap: var(--bc-s2); }
.h2h { height: 60px; padding: 0 14px 0 10px; box-shadow: inset 0 0 0 1px var(--bc-hair); }
.h2h .bav { width: 40px; height: 40px; margin: 0; border-radius: 12px; box-shadow: none; } .h2h .bav svg { width: 24px; height: 24px; }
.h2h .t { font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); line-height: 1.2; }
.h2h .bar { margin-top: 6px; height: 6px; border-radius: 3px; background: var(--bc-well); } .h2h .bar i { border-radius: 3px; }
.h2h b { font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bc-s2); }
.at { min-height: 118px; padding: 12px 6px; border-radius: var(--bc-r-card); background: var(--bc-card); box-shadow: inset 0 0 0 1px var(--bc-hair); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.at .aic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--bc-mint-soft); color: var(--bc-mint); margin-bottom: 4px; }
.at .aic .ic { width: 24px; height: 24px; }
.at b { font-size: calc(14px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1.15; }
.at small { font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); line-height: 1.2; }
.at.off .aic { background: var(--bc-tile); color: var(--bc-muted); } .at.off b { color: var(--bc-text-2); }
.at.off { opacity: .75; }
.toast { position: fixed; z-index: 40; left: 50%; width: max-content; top: calc(env(safe-area-inset-top) + 12px); transform: translateX(-50%); max-width: min(92vw, 420px); padding: 12px 18px; border-radius: var(--bc-r-btn); background: var(--bc-card-hi); box-shadow: inset 0 0 0 1px var(--bc-sel-line), 0 12px 28px var(--bc-scrim); font-size: var(--bc-fs-small); font-weight: var(--bc-w-heavy); text-align: center; pointer-events: none; }
.toast.in { animation: toastIn .3s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }

.joinrow { display: flex; gap: var(--bc-s2); align-items: flex-start; }
.joinrow .field { flex: 1; text-transform: uppercase; letter-spacing: .3em; text-align: center; font-size: calc(22px * var(--bc-ts)); font-weight: var(--bc-w-heavy); }
.joinrow .btn { width: 96px; flex: none; }
.bigcode { margin: var(--bc-s2) 0; padding: 18px; border-radius: var(--bc-r-card); background: var(--bc-well); box-shadow: inset 0 0 0 1px var(--bc-sel-line); text-align: center; font-size: 44px; font-weight: var(--bc-w-heavy); letter-spacing: .25em; padding-left: calc(18px + .25em); user-select: text; -webkit-user-select: text; }
.mdesc.ok { color: var(--bc-mint); }

.sub2 { display: block; margin-top: 2px; color: var(--bc-muted); font-size: var(--bc-fs-micro); font-weight: var(--bc-w-medium); }
#sheet-a11y .row { margin-top: var(--bc-s2); }

/* ---------- fields ---------- */
.field { width: 100%; padding: var(--bc-s3) 14px; border: 0; border-radius: var(--bc-r-small-btn); background: var(--bc-well); color: var(--bc-text); font: inherit; font-size: var(--bc-fs-body); font-weight: var(--bc-w-bold); box-shadow: inset 0 0 0 1px var(--bc-hair); user-select: text; -webkit-user-select: text; }
.field:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--bc-amber); }
.field.code { font-size: var(--bc-fs-micro); line-height: 1.3; word-break: break-all; resize: none; margin-bottom: var(--bc-s2); }
.mdesc.err { color: var(--bc-danger); }
.row .val { color: var(--bc-muted); font-size: var(--bc-fs-small); font-weight: var(--bc-w-bold); }

/* ---------- bottom sheets ---------- */
.sheet { position: fixed; inset: 0; z-index: var(--bc-z-sheet); background: var(--bc-scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet.dialog { z-index: var(--bc-z-dialog); }
.sheet-card { position: relative; width: 100%; max-width: var(--bc-max-w); max-height: 94dvh; overflow-y: auto; background: var(--bc-card); border-radius: var(--bc-r-sheet) var(--bc-r-sheet) 0 0; padding: 10px var(--bc-gutter) 0; display: flex; flex-direction: column; scrollbar-width: none; }
.sheet-card::-webkit-scrollbar { display: none; }
.sheet-card .seg2 { margin-top: 8px; }
.sheet-card h3 { margin: 6px 0 4px 2px; font-size: var(--bc-fs-title); font-weight: var(--bc-w-heavy); }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--bc-tile-hi); margin: 0 auto 4px; flex: none; }
.close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: var(--bc-r-small-btn); background: var(--bc-tile); z-index: 2; display: grid; place-items: center; color: var(--bc-text-2); }
.close .ic { width: 22px; height: 22px; }
.label { font-size: var(--bc-fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); font-weight: var(--bc-w-heavy); margin: 6px 0 8px 2px; }
.mdesc { font-size: var(--bc-fs-small); color: var(--bc-muted); font-weight: var(--bc-w-medium); margin: 2px 0 0 2px; line-height: 1.25; }
.bots { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bc-s2); }
.bots .lt { height: 108px; }
.btn.friend { width: 100%; margin-top: 10px; font-size: var(--bc-fs-small); color: var(--bc-text-2); }
.persona { display: flex; align-items: center; gap: 10px; margin: 10px 2px 0; min-height: 48px; }
.persona b { font-size: var(--bc-fs-body); font-weight: var(--bc-w-heavy); white-space: nowrap; }
.persona span { font-size: calc(15px * var(--bc-ts)); color: var(--bc-text-2); font-weight: var(--bc-w-medium); line-height: 1.15; }
.startwrap { padding: 14px 0 max(30px, env(safe-area-inset-bottom)); flex: none; }
.startwrap .btn { width: 100%; }
.startwrap.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bc-s2); }
.sw { min-height: 96px; border-radius: var(--bc-r-btn); background: var(--bc-tile); box-shadow: 0 var(--bc-depth-sm) 0 var(--bc-edge); margin-bottom: var(--bc-depth-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: var(--bc-s2) 6px; font-size: var(--bc-fs-micro); font-weight: var(--bc-w-heavy); }
.sw svg { width: 34px; height: 34px; border-radius: var(--bc-r-sm); }
.sw.locked svg { opacity: var(--bc-dim); }
.sw.locked { color: var(--bc-text-2); }
.sw em { font-style: normal; color: var(--bc-mint); font-size: var(--bc-fs-micro); }
.sw .price { display: inline-flex; align-items: center; gap: 3px; color: var(--bc-text-2); font-size: var(--bc-fs-micro); } .sw .price .ic { color: var(--bc-amber); }
.sw .price .ic { width: 16px; height: 16px; border-radius: 0; opacity: 1; }
.ptop .stat { margin-bottom: 6px; }
.ptop .gh-btn + h2 + .stat { margin-left: auto; }
.sw.on { background: var(--bc-sel); box-shadow: inset 0 0 0 1px var(--bc-sel-line), 0 var(--bc-depth-sm) 0 var(--bc-edge); }

/* ---------- game screen ---------- */
.game { --gm: 10px; position: fixed; inset: 0; z-index: var(--bc-z-game); max-width: var(--bc-max-w); margin: 0 auto; background: radial-gradient(120% 55% at 50% 0%, var(--bc-glow) 0%, var(--bc-bg) 62%), var(--bc-bg); display: flex; flex-direction: column; padding-top: calc(var(--bc-topbar-h) + env(safe-area-inset-top)); }
.gh { position: absolute; top: env(safe-area-inset-top); left: 0; right: 0; height: var(--bc-topbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--bc-s3); }
.gh .gh-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--bc-hair); color: var(--bc-text-2); }
.gh-title { text-align: center; }
.gh-title .t { font-size: calc(16px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1.2; }
.gh-title .s { font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); line-height: 1.2; }
.gmenu { position: absolute; top: calc(env(safe-area-inset-top) + var(--bc-topbar-h)); right: var(--bc-s3); z-index: 5; width: 220px; padding: 6px; border-radius: var(--bc-r-card); background: var(--bc-tile); box-shadow: 0 var(--bc-depth-sm) 0 var(--bc-edge), 0 14px 30px var(--bc-scrim), inset 0 0 0 1px var(--bc-hair); }
.gmenu button { width: 100%; height: 48px; display: flex; align-items: center; gap: var(--bc-s3); padding: 0 var(--bc-s3); border-radius: var(--bc-r-small-btn); font-weight: var(--bc-w-bold); font-size: var(--bc-fs-body); text-align: left; }
.gmenu button:active { background: var(--bc-tile-hi); }
.gmenu button span { flex: 1; }
.gmenu button b { color: var(--bc-muted); font-size: var(--bc-fs-small); }
.gmenu .danger { color: var(--bc-danger); }
.right { margin-left: auto; display: flex; align-items: center; gap: var(--bc-s3); }
.clock { height: 32px; min-width: 64px; padding: 0 10px; border-radius: 10px; background: var(--bc-well); color: var(--bc-text-2); display: grid; place-items: center; font-size: calc(17px * var(--bc-ts)); font-weight: var(--bc-w-heavy); font-variant-numeric: tabular-nums; }
.clock.on { background: var(--bc-text); color: var(--bc-bg); }
.clock.low { background: var(--bc-coral-d); color: var(--bc-bg); }
#board { display: block; width: 100%; height: 100%; overflow: visible; touch-action: none; user-select: none; }
.dock { margin-top: 0; padding: 0 var(--gm) max(var(--bc-s3), env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: var(--bc-s3); flex: none; }
.controls { display: flex; gap: 10px; padding: 0 var(--gm); margin-top: auto; flex: none; }
.controls .btn { width: var(--bc-btn-h); flex: none; }
.controls .btn.amber { flex: 1; width: auto; font-size: var(--bc-fs-button); }
/* replay controls */
.controls.replay .btn.amber { gap: 10px; font-size: var(--bc-fs-body); }
.controls.replay .btn { width: 64px; } .controls.replay .btn.amber { width: auto; }

/* ---------- board svg ---------- */
.cell-l { fill: var(--light); } .cell-d { fill: var(--dark); } /* intro mini boards */
.stepn { font: 800 15px var(--bc-font); fill: var(--bc-text); paint-order: stroke; stroke: var(--bc-bg); stroke-width: 3.500px; stroke-linejoin: round; text-anchor: middle; pointer-events: none; }
.coord { font: 700 24px var(--bc-font); fill-opacity: .25; pointer-events: none; }
.sel-ring { fill: none; stroke: var(--bc-amber); stroke-width: 5; pointer-events: none; }
.hint-ring { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: 6; stroke-dasharray: 12 9; animation: hintpulse 1s ease-in-out infinite alternate; pointer-events: none; }
@keyframes hintpulse { from { opacity: .45; } to { opacity: 1; } }
.wall-g { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)); }
.wall-g.ghost { opacity: .7; filter: drop-shadow(0 0 9px rgba(255, 106, 85, .75)); }
.wall-g.ghost .wface, .wall-g.ghost .wedge { transition: none; }
.wall-g.breaking { filter: drop-shadow(0 0 10px var(--bc-coral-d)); }
.wall-g.breaking .wface { fill: var(--bc-coral-d) !important; } .wall-g.breaking .wedge { fill: var(--bc-coral-edge) !important; }
.wall-g.bad { opacity: .5; }
.wall-g.bad .wface { fill: var(--bc-coral-d) !important; } .wall-g.bad .wedge { fill: var(--bc-coral-edge) !important; }
.wall-shadow { fill: var(--bc-edge); opacity: .45; }
.slab-d { fill: var(--bc-wall-d); } .slab-l { fill: var(--bc-wall-l); } .slab-h { fill: var(--bc-wall-hi); } /* intro mini walls */
.pawn-shadow { fill: #000; opacity: .5; }
.blur { filter: blur(3px); }
.shine { fill: #fff; fill-opacity: .7; pointer-events: none; }
.turn-ring { fill: none; stroke-width: 5; opacity: .9; }
.snow { font-size: 34px; pointer-events: none; }
.ice { fill: var(--bc-blue-l); fill-opacity: .28; stroke: var(--bc-blue-l); stroke-width: 4; }

/* ---------- review ---------- */
.route { fill: none; stroke-width: 7; stroke-dasharray: 1 15; stroke-linecap: round; opacity: .9; pointer-events: none; }
.best-ring { fill: none; stroke: var(--bc-mint); stroke-width: 6; stroke-dasharray: 14 10; pointer-events: none; }
.wall-g.alt { opacity: .75; }
.review { margin-top: auto; padding: 0 var(--gm) max(var(--bc-s2), 0px); display: flex; flex-direction: column; gap: var(--bc-s2); flex: none; }
.review > .btn { width: 100%; margin-bottom: var(--bc-depth); }
.rv-note { margin: 0; color: var(--bc-muted); font-size: var(--bc-fs-micro); font-weight: var(--bc-w-medium); text-align: center; }
.rv-prog { height: 10px; border-radius: 5px; background: var(--bc-well); overflow: hidden; margin-top: var(--bc-s2); }
.rv-prog i { display: block; height: 100%; background: var(--bc-mint); border-radius: 5px; transition: width .2s; }
.rvsum { margin: 14px var(--gm) 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--bc-s2); flex: none; }
.acc { padding: 8px 14px; border-radius: var(--bc-r-card); background: var(--bc-card); box-shadow: inset 0 0 0 1px var(--bc-hair); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc.you { box-shadow: inset 0 0 0 2px var(--bc-coral-d); } .acc.opp { box-shadow: inset 0 0 0 2px var(--bc-blue-d); }
.acc-n { display: flex; align-items: baseline; gap: var(--bc-s2); }
.acc-n b { font-size: calc(26px * var(--bc-ts)); font-weight: var(--bc-w-heavy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.acc-n span { font-size: var(--bc-fs-small); color: var(--bc-text-2); font-weight: var(--bc-w-bold); }
.acc small { font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); line-height: 1.25; }
.rv-chart { height: 44px; display: flex; align-items: flex-end; gap: 1px; padding: 0 2px; }
.bar-b { flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; background: var(--bc-coral-d); opacity: .85; }
.bar-b.p1 { background: var(--bc-blue-d); }
.bar-b.k-best, .bar-b.k-good { opacity: .35; }
.bar-b.skip { background: var(--bc-muted); opacity: .4; }
.bar-b.on { opacity: 1; outline: 2px solid var(--bc-text); outline-offset: 1px; }
.rv-card { position: relative; padding: var(--bc-s3) 14px; border-radius: var(--bc-r-card); background: var(--bc-card); box-shadow: inset 0 0 0 1px var(--bc-hair); display: flex; flex-direction: column; gap: 3px; min-height: 96px; }
.rv-h { display: flex; align-items: center; gap: 10px; font-size: var(--bc-fs-body); }
.kchip { padding: 2px 10px; border-radius: 10px; font-size: var(--bc-fs-micro); font-weight: var(--bc-w-heavy); background: var(--bc-tile-hi); color: var(--bc-text-2); }
.kchip.k-best { background: var(--bc-mint-soft); color: var(--bc-mint); }
.kchip.k-slip { background: var(--bc-tile); color: var(--bc-text-2); }
.kchip.k-mistake, .kchip.k-blunder { background: var(--bc-coral-wash); color: var(--bc-danger); }
.rv-card .rv-l { padding-right: 76px; }
.rv-card .rv-h + .rv-l, .rv-card .rv-l ~ .rv-l { padding-right: 0; }
.rv-l { font-size: var(--bc-fs-small); font-weight: var(--bc-w-bold); line-height: 1.25; }
.rv-l.muted { color: var(--bc-muted); font-weight: var(--bc-w-medium); font-size: var(--bc-fs-micro); }
.rv-l.best { color: var(--bc-mint); }
.rv-routes { position: absolute; right: var(--bc-s3); top: var(--bc-s3); height: 28px; padding: 0 var(--bc-s3); border-radius: 10px; background: var(--bc-tile); color: var(--bc-muted); font-size: var(--bc-fs-micro); font-weight: var(--bc-w-heavy); }
.rv-routes.on { color: var(--bc-text); box-shadow: inset 0 0 0 1px var(--bc-sel-line); background: var(--bc-sel); }
.game.rv .pbar { display: none; }
.brow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bc-s2); }

/* ---------- game over ---------- */
.chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 2px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bc-tile); border-radius: var(--bc-r-sm); padding: 4px 10px 2px; font-size: var(--bc-fs-small); font-weight: var(--bc-w-heavy); }
.chip .ic { width: 20px; height: 20px; color: var(--bc-text-2); } .chip .ic:has(use[href='#i-coin']) { color: var(--bc-amber); }

/* ---------- effects ---------- */
@keyframes slide { from { transform: translate(var(--dx), var(--dy)); } to { transform: translate(0, 0); } }
@keyframes drop { 0% { transform: scale(1.3); opacity: 0; } 60% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shatter { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.4) rotate(8deg); opacity: 0; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--tx), calc(var(--ty) + 380px)) rotate(var(--rot)); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .pawn-g.slide { animation: slide .22s cubic-bezier(.2, .8, .3, 1); }
  .wall-g.drop { animation: drop .24s ease-out; }
  .wall-g.shatter { animation: shatter .45s ease-out forwards; pointer-events: none; }
  .conf { animation: confetti 1.7s cubic-bezier(.2, .7, .4, 1) forwards; pointer-events: none; }
  .ice { animation: pulse 1.4s infinite; }
  .turn-ring { transform-box: fill-box; transform-origin: center; animation: ring 1.4s ease-out infinite; }
  .sheet-card { animation: rise .25s ease-out; }
  .banner { animation: rise .3s 1.1s ease-out both; } /* wait for the shards and the crown */
}

/* ---------- how to play ---------- */
.how-art { display: grid; place-items: center; padding: var(--bc-s5) 0 var(--bc-s2); }
.how-text { font-size: var(--bc-fs-body); color: var(--bc-text-2); margin: 0 2px; min-height: 66px; line-height: 1.3; }
.dots { display: flex; justify-content: center; gap: 6px; margin: var(--bc-s3) 0 0; }
.dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--bc-tile-hi); }
.dots i.on { width: 22px; background: #fff; }
@keyframes howHop { 0%, 18% { transform: translateY(0); } 42%, 72% { transform: translateY(-44px); } 92%, 100% { transform: translateY(0); } }
@keyframes howDrop { 0%, 12% { transform: scale(1.5); opacity: 0; } 32%, 88% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes howJump { 0%, 18% { transform: translateY(0); } 45%, 75% { transform: translateY(-88px); } 95%, 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .how-hop { animation: howHop 2.6s ease-in-out infinite; }
  .how-drop { animation: howDrop 2.8s ease-out infinite; }
  .how-jump { animation: howJump 2.8s ease-in-out infinite; }
}

/* screen-reader-only text */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#sheet-lists select.field { flex: 1; min-width: 0; }
#sheet-lists { z-index: var(--bc-z-dialog); }

.pstats .st b { white-space: nowrap; }
.pstats .st b small { font-size: .55em; font-weight: 600; color: var(--bc-text-2); margin-left: 4px; }

/* wall in hand, dashed target slot, shards and crown at game over */
.slot-outline { fill: rgba(255, 255, 255, .06); stroke: #fff; stroke-opacity: .75; stroke-width: 3; stroke-dasharray: 10 8; pointer-events: none; }
.slot-outline.bad { stroke: var(--bc-coral-d); }
.wall-g.held { filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .55)); pointer-events: none; }
.splat { opacity: .28; pointer-events: none; }
.shard { opacity: 0; pointer-events: none; }
.crown { pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .splat { animation: splat .5s ease-out both; }
  .shard { animation: shard 1s cubic-bezier(.2, .7, .4, 1) both; }
  .crown { transform-box: fill-box; transform-origin: center; animation: crownIn .5s .15s cubic-bezier(.3, 1.6, .5, 1) both; }
}
@keyframes shard { 0% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: var(--tx) var(--ty); rotate: var(--rot); } }
@keyframes splat { from { transform-box: fill-box; transform-origin: center; transform: scale(.2); opacity: .8; } }
@keyframes crownIn { from { opacity: 0; translate: 0 -40px; } }

/* replay: scrubber, speed, "!" badge */
.scrubwrap { padding: 4px calc(var(--gm) + 6px) 10px; }
.scrubwrap[hidden] { display: none; }
.scrub { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; --p: 0%; }
.scrub::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--bc-mint) var(--p), var(--bc-tile) var(--p)); }
.scrub::-moz-range-track { height: 8px; border-radius: 4px; background: var(--bc-tile); }
.scrub::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--bc-mint); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--bc-bg); box-shadow: 0 0 0 2px var(--bc-mint); }
.scrub::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--bc-bg); }
.controls.replay .btn .lb { font-weight: var(--bc-w-heavy); }
.badge { pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.badge-t { fill: #fff; font-weight: 800; font-size: 34px; }
@media (prefers-reduced-motion: no-preference) { .badge { animation: drop .25s ease-out; transform-box: fill-box; transform-origin: center; } }

/* ---------- first-run welcome ---------- */
.welcome { position: fixed; inset: 0; z-index: calc(var(--bc-z-game) + 5); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 15vh) 24px calc(env(safe-area-inset-bottom) + 28px); text-align: center; background: var(--bc-bg); overflow: hidden; }
.w-glow { position: absolute; inset: -20% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(255, 176, 32, .22), transparent); pointer-events: none; }
.w-logo { position: relative; width: 132px; height: 132px; border-radius: 32px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.w-body { position: relative; max-width: 320px; }
.w-body h1 { margin: 0 0 12px; font-size: calc(34px * var(--bc-ts)); line-height: 1.08; font-weight: var(--bc-w-heavy); letter-spacing: -.02em; }
.w-body p { margin: 0; color: var(--bc-text-2); font-size: calc(16px * var(--bc-ts)); line-height: 1.4; }
.w-actions { position: relative; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.w-actions .btn { width: 100%; }
.w-skip { min-height: 44px; color: var(--bc-text-2); font-weight: var(--bc-w-bold); font-size: calc(15px * var(--bc-ts)); }
@media (prefers-reduced-motion: no-preference) {
  .welcome .w-logo, .welcome .w-body, .welcome .w-actions { animation: rise .6s cubic-bezier(.2, .8, .3, 1) both; }
  .welcome .w-body { animation-delay: .12s; } .welcome .w-actions { animation-delay: .24s; }
}

/* Home cards with a picture of the position */
.pz { min-height: 96px; gap: 14px; }
.thumb { position: relative; width: 72px; height: 72px; border-radius: 14px; background: var(--bc-well); box-shadow: inset 0 0 0 1px var(--bc-hair), 0 3px 0 rgba(0, 0, 0, .25); flex: none; display: block; overflow: visible; }
.thumb-svg { width: 100%; height: 100%; border-radius: 14px; display: block; padding: 4px; box-sizing: border-box; }
.tbadge { position: absolute; right: -6px; bottom: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--bc-card-raised, var(--bc-tile)); box-shadow: 0 0 0 2px var(--bc-card); display: grid; place-items: center; color: var(--bc-text-2); font-style: normal; }
.tbadge .ic { width: 15px; height: 15px; }
.pz.daily .thumb { box-shadow: inset 0 0 0 1px var(--bc-sel-line), 0 3px 0 rgba(0, 0, 0, .25); }
.pz.daily.done .thumb { opacity: .7; }

/* puzzles as a winding path */
.ppath { position: relative; margin: 8px 6px 0; }
.ppath-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ppath-line polyline { fill: none; stroke: var(--bc-hair); stroke-width: 4; stroke-dasharray: 2 10; stroke-linecap: round; stroke-linejoin: round; }
.pnode { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 20px; background: var(--bc-tile); color: var(--bc-text-2); font-size: calc(20px * var(--bc-ts)); font-weight: var(--bc-w-heavy); display: grid; place-items: center; box-shadow: 0 5px 0 var(--bc-edge, rgba(0, 0, 0, .35)), inset 0 0 0 1px var(--bc-hair); transition: transform .12s; }
.pnode:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--bc-edge, rgba(0, 0, 0, .35)); }
.pnode.done { background: var(--bc-mint); color: var(--bc-mint-ink); box-shadow: 0 5px 0 #2c8a73; }
.pnode.upnext { background: var(--bc-sel); color: #fff; box-shadow: 0 5px 0 var(--bc-edge, rgba(0, 0, 0, .35)), inset 0 0 0 1px var(--bc-sel-line), 0 0 0 3px rgba(255, 255, 255, .5); }
.pnode .ic { width: 28px; height: 28px; color: inherit; }
.pcap { position: absolute; transform: translateY(-50%); max-width: 32%; font-size: var(--bc-fs-micro); font-weight: var(--bc-w-bold); color: var(--bc-muted); line-height: 1.2; pointer-events: none; }
.pcap.l { text-align: right; }
@media (prefers-reduced-motion: no-preference) { .pnode.upnext { animation: nextpulse 1.8s ease-in-out infinite; } }
@keyframes nextpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.clocknote { margin: 6px 4px 2px; font-size: var(--bc-fs-micro); color: var(--bc-muted); font-weight: var(--bc-w-medium); min-height: 1.3em; }

/* screens ease in instead of snapping */
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: no-preference) { .screen.on { animation: screenIn .24s ease-out; } }

/* segmented buttons look 36px tall inside the 44px track; the touch area is the full 44px */
.seg2 button::after { content: ''; position: absolute; inset: -4px 0; }


/* ---------- bot badges: own tint, flat glyph (see botBadge in src/app.js) ---------- */
.bbadge { display: grid; place-items: center; flex: none; background: var(--tile); color: var(--tint); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bbadge svg { display: block; }
.bbadge.b56 { width: 56px; height: 56px; border-radius: 17px; } .bbadge.b56 svg { width: 36px; height: 36px; }
.bbadge.b44 { width: 44px; height: 44px; border-radius: 13px; } .bbadge.b44 svg { width: 28px; height: 28px; }
.bbadge.b28 { width: 28px; height: 28px; border-radius: 9px; } .bbadge.b28 svg { width: 18px; height: 18px; }
.lt.off .bbadge { opacity: .45; position: relative; }
.lt.off .bbadge::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--bc-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c4ccd8' d='M7 10V7a5 5 0 0 1 10 0v3h1.500A1.500 1.500 0 0 1 20 11.500v9a1.500 1.500 0 0 1-1.500 1.500h-13A1.500 1.500 0 0 1 4 20.500v-9A1.500 1.500 0 0 1 5.500 10zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / 12px no-repeat; opacity: 1; }
.bb.off .bbadge { opacity: .45; filter: none; }
.opp .bbadge, .resume .bbadge { margin: 0; }

/* powerups: their own 44px row under the player strip */

/* ===================================================================================================================
   ART DIRECTION (design-reference/barricade-game-screen.html): a quiet dark room, one bright physical board.
   =================================================================================================================== */
.game { --gm: 10px; background: radial-gradient(120% 60% at 50% 0%, #1d2026 0%, #14161a 55%), #14161a; padding-top: calc(44px + env(safe-area-inset-top) + 6px); }
.gh { height: 44px; top: calc(env(safe-area-inset-top) + 6px); }
.gh .gh-btn { width: 44px; height: 44px; border-radius: 14px; background: none; color: var(--bc-muted); display: grid; place-items: center; }
.gh .gh-btn .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.gh-title .t { font-size: calc(15px * var(--bc-ts)); font-weight: 800; line-height: 1.15; }
.gh-title .s { font-size: calc(11px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gstack { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 4px 0 8px; }
.pbar { display: flex; align-items: center; gap: 10px; margin: 0 var(--gm); padding: 8px 10px; border-radius: 18px; background: var(--bc-card); border: 2px solid transparent; min-height: 60px; flex: none; transition: border-color .2s, box-shadow .2s; }
.pbar.turn { border-color: var(--bc-amber); box-shadow: 0 0 0 4px rgba(255, 176, 32, .12); }
.badge { width: 40px; height: 40px; border-radius: 13px; background: var(--bc-tile); display: grid; place-items: center; position: relative; flex: none; color: var(--bc-blue-d); }
.badge svg { width: 24px; height: 24px; }
.badge i { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--bc-card); }
.who { flex: 1; min-width: 0; line-height: 1.2; }
.who b { font-size: calc(14px * var(--bc-ts)); font-weight: 800; display: flex; gap: 6px; align-items: baseline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b em { font-style: normal; font-weight: 600; font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); }
.who small { display: block; font-size: calc(11px * var(--bc-ts)); font-weight: 700; color: var(--bc-amber); margin-top: 2px; min-height: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small.m, .pbar:not(.turn) .who small { color: var(--bc-muted); font-weight: 600; }
.pbar.task { height: auto; }
.pbar.task .who small { white-space: normal; color: var(--bc-text-2); font-weight: 600; }
.pbar.task .walls { display: none; }
.right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.walls { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.walls b { order: -1; font-size: calc(18px * var(--bc-ts)); font-weight: 800; line-height: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.pips { display: flex; gap: 2.5px; }
.pips i { display: block; width: 4px; height: 12px; border-radius: 2px; background: var(--bc-pip-off); }
.pips i.on { background: linear-gradient(#f9f2e3, #cdb98f); }
.game.timed .pips { display: none; }
.clock { height: 32px; min-width: 60px; padding: 0 9px; }

.pu { display: flex; gap: 6px; flex: none; }
.pu[hidden] { display: none; }
.pub { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--bc-tile); display: grid; place-items: center; border: 2px solid transparent; color: #cfd5df; padding: 0; }
.pub svg { width: 18px; height: 18px; }
.pub b { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--bc-bg); font-size: 10px; display: grid; place-items: center; font-weight: 800; border: 1px solid var(--bc-hair); color: var(--bc-text); }
.pub.armed { border-color: var(--bc-amber); color: var(--bc-amber); box-shadow: 0 0 14px rgba(255, 176, 32, .5); }
.pub.off { opacity: .35; }
.pu.dim .pub { opacity: .55; }
button.pub::after { content: ''; position: absolute; inset: -5px; }
button.pub:disabled { cursor: default; }

.boardwrap { position: relative; align-self: center; flex: 1 1 0; min-height: 160px; aspect-ratio: 1; max-width: calc(100% - 2 * var(--gm)); max-height: min(calc(100vw - 2 * var(--gm)), 500px); margin: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.pill { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(14, 15, 18, .92); border: 1px solid var(--bc-amber); color: var(--bc-text); padding: 8px 8px 8px 14px; border-radius: 999px; font-size: calc(12.5px * var(--bc-ts)); font-weight: 700; display: flex; gap: 10px; align-items: center; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.pill[hidden] { display: none; }
.pill button { background: var(--bc-tile); padding: 5px 11px; border-radius: 999px; font-size: calc(12px * var(--bc-ts)); font-weight: 700; position: relative; }
.pill button::after { content: ''; position: absolute; inset: -8px; }
.brk { fill: none; stroke: var(--bc-amber); stroke-width: 4.9; stroke-dasharray: 11 9; pointer-events: none; animation: brkpulse 1.2s ease-in-out infinite; }
@keyframes brkpulse { 50% { stroke-opacity: .25; } }

/* walls: one ivory plank (design-reference); the preview is solid amber with a glow */
.wall-g { filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .5)); }
.whl { fill: #fff; fill-opacity: .9; pointer-events: none; }
.wall-g.ghost { opacity: 1; filter: drop-shadow(0 0 9px rgba(255, 176, 32, .9)); }
.wall-g.ghost .wface { fill: var(--bc-amber) !important; } .wall-g.ghost .wedge { fill: var(--bc-amber-edge) !important; } .wall-g.ghost .whl { display: none; }
.sel-ring { fill: none; stroke: var(--bc-amber); stroke-width: 6.1; pointer-events: none; }
.hint-ring { fill: none; stroke: var(--bc-amber); stroke-width: 6.1; pointer-events: none; animation: none; }

/* controls: one row of four equal buttons; in wall mode Rotate / Place wall / Cancel */
.dock { margin-top: 0; padding: 0 var(--gm) max(16px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; flex: none; }
.drow { display: grid; gap: 8px; }
.drow.four { grid-template-columns: repeat(4, 1fr); }
.drow.three { grid-template-columns: 1fr 1.6fr 1fr; }
.ctl { height: 58px; border-radius: 16px; background: var(--bc-card); box-shadow: 0 3px 0 #0b0c0f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: calc(11px * var(--bc-ts)); font-weight: 700; color: #c3c9d4; }
.ctl .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.ctl:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #0b0c0f; }
.ctl:disabled { opacity: .4; }
.ctl.danger { color: #ff8d7e; }
.ctl.primary { background: linear-gradient(#ffc84a, #ffab1a); color: #2b1c00; box-shadow: 0 4px 0 #b97500; font-size: calc(15px * var(--bc-ts)); font-weight: 800; flex-direction: row; gap: 8px; }
.ctl.primary:active:not(:disabled) { box-shadow: 0 1px 0 #b97500; transform: translateY(3px); }
.ctl.primary:disabled { opacity: .5; }
@media (max-height: 740px) { .ctl { height: 52px; } .pbar { min-height: 52px; padding-top: 5px; padding-bottom: 5px; } .gstack { gap: 7px; } }

/* game over: a bottom sheet over the dimmed board */
.rscrim { position: absolute; inset: 0; background: rgba(10, 11, 13, .55); z-index: 6; }
.rsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; background: var(--bc-card); border-radius: 28px 28px 0 0; padding: 22px 18px max(20px, env(safe-area-inset-bottom)); box-shadow: 0 -20px 40px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 14px; }
.rscrim[hidden], .rsheet[hidden] { display: none; }
.rsheet h2 { margin: 0; font-size: calc(26px * var(--bc-ts)); font-weight: 800; line-height: 1.1; }
.rsheet h2 small { display: block; font-size: calc(12px * var(--bc-ts)); letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); margin-bottom: 6px; font-weight: 700; }
.rsheet .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rsheet .stats:empty { display: none; }
.rsheet .stat { background: var(--bc-tile); border-radius: 14px; padding: 10px 12px; }
.rsheet .stat span { font-size: calc(11px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; display: block; }
.rsheet .stat b { font-size: calc(20px * var(--bc-ts)); font-weight: 800; }
.rsheet .stat b em { font-style: normal; font-size: calc(12px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; margin-left: 4px; }
.rsheet .bnote { margin: 0; font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); line-height: 1.5; font-weight: 600; }
.rsheet .btns { display: grid; gap: 8px; }
.rsheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rsheet .two.one { grid-template-columns: 1fr; }
.rsheet .ctl { flex-direction: row; gap: 8px; font-size: calc(14px * var(--bc-ts)); height: 52px; }
.rsheet .ctl.primary { height: 56px; }
@media (prefers-reduced-motion: no-preference) { .rsheet { animation: sheetup .35s cubic-bezier(.2, .8, .2, 1) 1s both; } .rscrim { animation: fadein .3s 1s both; } }
@keyframes sheetup { from { transform: translateY(40%); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }

/* =========================================================================
   MENUS (design-reference/barricade-menus.html): same room, neutral chrome,
   amber only on the one primary action and the current selection.
   ========================================================================= */
.app { background: radial-gradient(120% 50% at 50% 0%, var(--bc-glow) 0%, var(--bc-dock) 55%), var(--bc-dock); }
.scroll { padding: 14px 14px 18px; gap: 14px; }
h1.big { margin: 0; font-size: calc(26px * var(--bc-ts)); font-weight: 800; letter-spacing: 0; }
.sp { flex: 1; }
.lbl { margin: 0 2px 8px; font-size: calc(10.5px * var(--bc-ts)); letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); font-weight: 700; }
.lbl a { float: right; letter-spacing: 0; text-transform: none; font-size: calc(12px * var(--bc-ts)); color: var(--bc-text-2); cursor: pointer; }
.hint { margin: 0 2px; font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); line-height: 1.4; font-weight: 600; }
.hint.center { text-align: center; margin-top: 4px; }
.chev { width: 18px; height: 18px; color: var(--bc-muted); flex: none; }

/* flat cards and rows */
.card { background: var(--bc-card); border-radius: 20px; padding: 14px; box-shadow: none; }
.card .t, .card b { font-weight: 800; }
.empty { font-size: calc(12.5px * var(--bc-ts)); line-height: 1.45; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; background: var(--bc-card); border-radius: 16px; padding: 10px 12px; text-align: left; font-size: inherit; font-weight: inherit; box-shadow: none; }
.row .info { flex: 1; min-width: 0; }
.row b, .card .grow > b { display: block; font-size: calc(14px * var(--bc-ts)); font-weight: 800; }
.row span, .card .grow > span { font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.row .info > span { display: block; }
.row .when { margin-top: 2px; opacity: .7; }
.row .val { color: var(--bc-muted); font-size: calc(12px * var(--bc-ts)); font-weight: 700; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.danger b { color: var(--bc-danger); }
.res { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.res.w { background: rgba(111, 208, 140, .16); color: var(--bc-mint); }
.res.l { background: rgba(255, 141, 126, .15); color: var(--bc-danger); }
.res.p1 { background: rgba(255, 106, 85, .16); color: var(--bc-coral-d); }
.res.p2 { background: rgba(76, 184, 255, .16); color: var(--bc-blue-d); }
.row .thumb { width: 54px; height: 54px; border-radius: 10px; flex: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .4); background: var(--bc-tile); }
.menu .row { padding: 14px; }
.row div.ic { width: 34px; height: 34px; border-radius: 11px; background: var(--bc-tile); display: grid; place-items: center; color: var(--bc-text-2); flex: none; font-weight: 800; font-size: 12px; }
.row div.ic svg { width: 19px; height: 19px; }
.minib { width: 54px; height: 54px; border-radius: 10px; padding: 4px; flex: none; display: block; }
.minib i { display: block; width: 100%; height: 100%; border-radius: 5px; }

/* header: avatar, rating, streak, coins */
.hhead { display: flex; align-items: center; gap: 10px; }
.me-btn { flex: 0 1 auto; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.mav { width: 42px; height: 42px; border-radius: 14px; background: var(--bc-tile); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.mav.lg { width: 54px; height: 54px; font-size: 20px; }
.who b { display: block; font-size: calc(15px * var(--bc-ts)); font-weight: 800; line-height: 1.2; }
.who span { font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.hpill { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 11px; border-radius: 999px; background: var(--bc-card); font-size: calc(13px * var(--bc-ts)); font-weight: 800; }
.hpill svg { width: 16px; height: 16px; }
.icon-back { width: 44px; height: 44px; margin-left: -8px; border-radius: 12px; display: grid; place-items: center; color: var(--bc-muted); }
.icon-back .ic { width: 22px; height: 22px; }

/* bot tiles: neutral, line icon, no tint */
.bot { width: 46px; height: 46px; border-radius: 15px; background: var(--bc-tile); display: grid; place-items: center; flex: none; color: #b9c6d8; box-shadow: none; }
.bot svg { width: 28px; height: 28px; }
.bot.s40 { width: 40px; height: 40px; border-radius: 13px; } .bot.s40 svg { width: 24px; height: 24px; }
.bot.s44 { width: 44px; height: 44px; border-radius: 14px; }
.bot.s28 { width: 28px; height: 28px; border-radius: 9px; } .bot.s28 svg { width: 18px; height: 18px; }

/* home: play card */
.pcard { background: var(--bc-card); box-shadow: none; padding: 14px; display: block; }
.upnext { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; text-align: left; min-height: 48px; }
.upnext b { display: block; font-size: calc(19px * var(--bc-ts)); font-weight: 800; line-height: 1.15; }
.upnext .grow > span { display: block; font-size: calc(12px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .seg3 { margin-bottom: 14px; }
.links { display: flex; justify-content: center; gap: 18px; margin-top: 8px; font-size: calc(12.5px * var(--bc-ts)); font-weight: 700; color: var(--bc-muted); }
.links button { min-height: 40px; padding: 0 4px; }

/* segmented switches */
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bc-well); border-radius: 14px; padding: 3px; gap: 3px; margin: 0; height: auto; }
.seg3.two { grid-template-columns: 1fr 1fr; }
.seg3.five { grid-template-columns: repeat(5, 1fr); }
.seg3 button { position: relative; min-height: 40px; padding: 9px 4px; border-radius: 11px; text-align: center; font-size: calc(13px * var(--bc-ts)); font-weight: 700; color: var(--bc-muted); }
.seg3 button.on { background: var(--bc-tile); color: var(--bc-text); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.seg3 button:disabled { opacity: .4; }
.seg2 { margin-top: 0; height: auto; background: var(--bc-well); border-radius: 14px; padding: 3px; gap: 3px; }
.seg2 button { border-radius: 11px; padding: 9px 4px; min-height: 40px; font-size: calc(13px * var(--bc-ts)); font-weight: 700; }
.seg2 button.on { background: var(--bc-tile); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 18px; font-size: calc(14px * var(--bc-ts)); font-weight: 800; background: var(--bc-tile); color: var(--bc-text); box-shadow: 0 3px 0 #0b0c0f; margin-bottom: 3px; }
.btn.small { height: 44px; border-radius: 14px; font-size: calc(13px * var(--bc-ts)); }
.btn.amber, .btn.amber.play { height: 58px; border-radius: 18px; font-size: calc(17px * var(--bc-ts)); letter-spacing: 0; text-transform: none; background: linear-gradient(var(--bc-amber-hi), #ffab1a); color: var(--bc-amber-ink); box-shadow: 0 5px 0 var(--bc-amber-edge); margin-bottom: 5px; width: 100%; }
.btn.amber.small { height: 44px; width: auto; font-size: calc(13px * var(--bc-ts)); box-shadow: 0 3px 0 var(--bc-amber-edge); margin-bottom: 3px; }
.btn.amber:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--bc-amber-edge); }
.btn .ic { width: 20px; height: 20px; }
.pcard .btn.play { margin: 0 0 5px; }

/* bot ladder */
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rung { background: var(--bc-card); border-radius: 16px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; border: 2px solid transparent; text-align: center; min-height: 48px; }
.rung b { font-size: calc(12px * var(--bc-ts)); font-weight: 800; }
.rung span { font-size: calc(10.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.rung.beaten::after { content: ""; position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bc-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.3l2.2 2.2 4.8-4.8' fill='none' stroke='%23102014' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.rung.cur { border-color: var(--bc-amber); }
.rung.lock { opacity: .4; }

/* puzzles / lessons cards */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vcard { flex-direction: column; align-items: flex-start; gap: 6px; }
.vcard > .ic { width: 22px; height: 22px; color: var(--bc-text-2); fill: none; stroke: currentColor; }
.vcard .info b { font-size: calc(14px * var(--bc-ts)); }

/* resume cards keep their buttons, in the new look */
.resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; box-shadow: inset 0 0 0 1px var(--bc-sel-line); padding: 12px; }
.resume .grow { flex: 1; min-width: 0; }
.resume .rbtns { flex-basis: 100%; display: flex; gap: 8px; }
.resume .rbtns .btn { flex: 1; width: auto; }
.resume .rbtns .btn:not(.amber) { flex: none; width: 96px; }

/* replays + design + more */
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat3 div { background: var(--bc-tile); border-radius: 16px; padding: 12px; }
.stat3 b { font-size: calc(20px * var(--bc-ts)); font-weight: 800; display: block; }
.stat3 span { font-size: calc(11px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item { background: var(--bc-card); border-radius: 18px; padding: 8px 8px 12px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; text-align: left; }
.item.eq { border-color: var(--bc-amber); }
.item .swp { height: 96px; border-radius: 12px; background: var(--bc-bg); display: grid; place-items: center; overflow: hidden; }
.item .swp > svg { width: 78px; height: 78px; border-radius: 8px; }
.item b { font-size: calc(13px * var(--bc-ts)); font-weight: 800; padding: 0 4px; }
.price { display: flex; align-items: center; gap: 5px; font-size: calc(12px * var(--bc-ts)); font-weight: 800; padding: 0 4px; color: var(--bc-amber); }
.price.ok { color: var(--bc-mint); }
.price svg { width: 13px; height: 13px; }
.sw2 { width: 46px; height: 28px; border-radius: 14px; background: #2d323c; padding: 3px; flex: none; transition: .15s; display: block; }
.sw2 i { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--bc-text-2); transition: .15s; }
.sw2.on { background: #3f8f5a; } .sw2.on i { transform: translateX(18px); background: #fff; }

/* New game sheet */
.sheet-card { background: var(--bc-card); border-radius: 28px 28px 0 0; padding: 10px 16px 0; gap: 14px; box-shadow: 0 -20px 40px rgba(0, 0, 0, .5); }
.sheet-card > * { flex: none; }
.sheet-card h3 { margin: 0; font-size: calc(22px * var(--bc-ts)); font-weight: 800; }
.grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); margin: 0 auto; }
.close { top: 10px; right: 12px; width: 44px; height: 44px; background: var(--bc-tile); }
.sheet-card .seg2, .sheet-card .seg3 { margin-top: 0; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld .lbl { margin-bottom: 0; }
.opps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.opps button { background: var(--bc-tile); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 5px; border: 2px solid transparent; font-size: calc(12px * var(--bc-ts)); font-weight: 800; text-align: center; min-height: 48px; }
.opps button span { font-size: calc(10.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.opps button.on { border-color: var(--bc-amber); }
.opps .bot { background: var(--bc-card); }
.persona { margin: 0 2px; min-height: 0; }
.persona span { font-size: calc(12px * var(--bc-ts)); }
.advrow { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--bc-tile); border-radius: 16px; padding: 12px; text-align: left; min-height: 48px; }
.advrow .info { flex: 1; } .advrow b { display: block; font-size: calc(14px * var(--bc-ts)); font-weight: 800; } .advrow span { font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.advrow.open .chev { transform: rotate(90deg); }
#play-adv-body { display: flex; flex-direction: column; gap: 14px; }
#play-adv-body[hidden] { display: none; }
.startwrap { padding: 0 0 max(20px, env(safe-area-inset-bottom)); }
.startwrap .btn { width: 100%; }
.label { margin: 6px 0 8px 2px; font-size: calc(10.5px * var(--bc-ts)); }
.switch:checked { background: #3f8f5a; } .switch:checked::after { background: #fff; }
.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bc-tabbar); border-top: 1px solid rgba(255, 255, 255, .07); padding: 8px 6px max(14px, env(safe-area-inset-bottom)); }
.tab { flex: none; font-size: calc(10.5px * var(--bc-ts)); font-weight: 700; gap: 3px; padding: 4px 0; min-height: 48px; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--bc-text); } .tab.on .ic { color: var(--bc-amber); }

.card.block { display: block; }
.sheet-card .row { background: var(--bc-tile); }
#more-body, #settings-body, #design-body, #replay-scroll, #replay-list { display: flex; flex-direction: column; gap: 14px; }
#replay-scroll { gap: 14px; }
#settings-body > .lbl { margin-bottom: -6px; }
.row .info { color: var(--bc-text); }
.pcard .upnext .grow > b { font-size: calc(19px * var(--bc-ts)); }
.pcard .upnext .grow > span { font-size: calc(12px * var(--bc-ts)); }

/* =========================================================================
   MORE SCREENS (design-reference/barricade-more-screens.html)
   ========================================================================= */
.ptop { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; height: 44px; padding: 12px 14px 0; border: 0; gap: 0; box-sizing: content-box; }
.ptop h2 { margin: 0; font-size: calc(15px * var(--bc-ts)); font-weight: 800; text-align: center; }
.ptop .gh-btn { width: 44px; height: 44px; border-radius: 14px; color: var(--bc-muted); background: none; }
.ptop .gh-btn + h2 { margin-right: 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--bc-muted); }
.icon-btn .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; }
.hint, .mdesc { line-height: 1.45; }
.p { font-size: calc(14.5px * var(--bc-ts)); line-height: 1.55; color: var(--bc-text-2); margin: 0; font-weight: 600; }

/* numbered rows (lessons, daily) */
.num { width: 36px; height: 36px; border-radius: 12px; background: var(--bc-tile); display: grid; place-items: center; font-weight: 800; font-size: calc(14px * var(--bc-ts)); flex: none; color: var(--bc-text); }
.num .ic { width: 20px; height: 20px; }
.num.done { background: #27412f; color: var(--bc-mint); }
.num.cur { border: 2px solid var(--bc-amber); }
.row.daily .num.cur .ic { color: var(--bc-amber); }

/* puzzle path */
.ppath { position: relative; margin: 0; }
.ppath svg { position: absolute; inset: 0; display: block; }
.node { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; font-size: calc(17px * var(--bc-ts)); font-weight: 800; background: var(--bc-tile); color: var(--bc-muted); box-shadow: 0 4px 0 #0b0c0f; }
.node:active { transform: translateY(3px); }
.node .ic { width: 22px; height: 22px; }
.node.done { background: #27412f; color: var(--bc-mint); }
.node.cur { background: linear-gradient(var(--bc-amber-hi), #ffab1a); color: var(--bc-amber-ink); box-shadow: 0 5px 0 var(--bc-amber-edge), 0 0 0 6px rgba(255, 176, 32, .16); }

/* profile */
.hhead .bigr { font-size: calc(34px * var(--bc-ts)); font-weight: 800; }
.hhead .grow.who b { font-size: calc(18px * var(--bc-ts)); }
.card .spark { margin-top: 12px; }
.sp-a { fill: none; }
.stat4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat4 > div { background: var(--bc-tile); border-radius: 14px; padding: 10px 8px; text-align: center; }
.stat4 b { font-size: calc(18px * var(--bc-ts)); font-weight: 800; display: block; }
.stat4 span { font-size: calc(10.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.h2hbar { height: 6px; border-radius: 3px; background: rgba(255, 141, 126, .35); overflow: hidden; margin-top: 6px; }
.h2hbar i { display: block; height: 100%; background: var(--bc-mint); }
.achg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.achg > div { background: var(--bc-card); border-radius: 16px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.aring { width: 44px; height: 44px; border-radius: 50%; background: var(--bc-tile); display: grid; place-items: center; color: var(--bc-text); border: 2px solid var(--bc-mint); }
.aring .ic { width: 22px; height: 22px; }
.achg b { font-size: calc(11.5px * var(--bc-ts)); font-weight: 800; line-height: 1.2; }
.achg small { font-size: calc(10px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; line-height: 1.25; }
.achg .lock { opacity: .4; } .achg .lock .aring { border-color: transparent; }

/* slides: lessons and first-run rules */
.sheet.slide { align-items: stretch; background: var(--bc-dock); }
.slide-card { width: 100%; max-width: var(--bc-max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: calc(env(safe-area-inset-top) + 12px) 14px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; background: radial-gradient(120% 50% at 50% 0%, var(--bc-glow) 0%, var(--bc-dock) 55%); }
.slide-card .top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; flex: none; }
.slide-card > * { flex: none; }
.slide-card > .grow { flex: 1 1 auto; min-height: 8px; }
.how-art { display: grid; place-items: center; padding: 6px 0 4px; }
.how-art > svg { width: 250px; max-width: 70vw; height: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.bigh { font-size: calc(28px * var(--bc-ts)); font-weight: 800; line-height: 1.1; margin: 0; }
.how-text { min-height: 0; margin: 0; color: var(--bc-text-2); font-size: calc(14.5px * var(--bc-ts)); line-height: 1.55; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dots i.on { background: var(--bc-text); width: 20px; border-radius: 4px; }
.slide-card .btn.amber { flex: none; }

/* welcome */
.welcome { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 18px; padding: 30px 22px; background: radial-gradient(120% 50% at 50% 0%, var(--bc-glow) 0%, var(--bc-dock) 55%); text-align: center; }
.welcome .center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.wpawn { width: 120px; height: 144px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.wpawn svg { width: 100%; height: 100%; }
.welcome h1 { font-size: calc(36px * var(--bc-ts)); font-weight: 800; margin: 6px 0 0; }
.welcome .p { max-width: 260px; }
.w-actions { display: flex; flex-direction: column; gap: 10px; max-width: none; margin-top: 20px; }

/* toasts */
.toast { left: 14px; right: 14px; width: auto; max-width: 362px; margin: 0 auto; transform: none; top: calc(env(safe-area-inset-top) + 14px); background: #262b34; border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; box-shadow: 0 14px 30px rgba(0, 0, 0, .55); }
.toast b { display: block; font-size: calc(14px * var(--bc-ts)); font-weight: 800; }
.toast span { font-size: calc(12px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.tring { width: 40px; height: 40px; border-radius: 50%; background: var(--bc-tile); display: grid; place-items: center; border: 2px solid var(--bc-mint); flex: none; }
.tring .ic { width: 20px; height: 20px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }

/* shop swatches */
.item .swp { gap: 14px; }
.planks { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.plank { display: block; width: 56px; height: 7px; border-radius: 3px; }
.pawnpair { display: flex; gap: 2px; }
.pawnpair span { display: block; width: 44px; height: 52px; }
.pawnpair svg { width: 100%; height: 100%; }
.item .swp svg.sq, .item .swp .pawnpair svg { border-radius: 0; }
.item .swp .planks + * { display: none; }

/* online (full-screen states) */
#sheet-online { align-items: stretch; background: var(--bc-dock); }
#sheet-online .sheet-card { max-height: none; height: 100%; border-radius: 0; background: radial-gradient(120% 50% at 50% 0%, var(--bc-glow) 0%, var(--bc-dock) 55%); box-shadow: none; padding-top: calc(env(safe-area-inset-top) + 12px); }
#online-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--bc-text); animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.bigcode { background: var(--bc-card); box-shadow: none; border-radius: 20px; font-size: 44px; letter-spacing: .18em; padding: 14px 14px 14px calc(14px + .18em); }
.conn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #2a1f1d; color: #ffb3a7; font-size: calc(13px * var(--bc-ts)); font-weight: 700; margin: 0 14px; }
.conn .spin { width: 18px; height: 18px; border-width: 2.5px; border-top-color: #ffb3a7; }

.top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 44px; flex: none; }
.ttl { text-align: center; font-size: calc(15px * var(--bc-ts)); font-weight: 800; }
#online-body .center { justify-content: center; }
#online-body .joinrow .btn { height: 50px; margin-bottom: 0; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }

/* puzzle (design-reference/barricade-more-screens.html): the task card replaces the opponent strip, the player strip is two numbers */
.ptask #bar-bot .badge i, .ptask #g-you-badge, .ptask #g-you-name, .ptask #status, .ptask #g-you-pu { display: none; }
.ptask #bar-bot .who b { font-size: calc(11px * var(--bc-ts)); letter-spacing: .08em; text-transform: uppercase; color: var(--bc-amber); font-weight: 800; }
.ptask #bar-bot .who small { font-size: calc(15px * var(--bc-ts)); font-weight: 800; color: var(--bc-text); white-space: normal; overflow: visible; }
.ptask #bar-you { background: var(--bc-card); box-shadow: none; }
.pst { display: none; flex: 1; justify-content: space-between; font-size: calc(12px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.ptask .pst { display: flex; }
.pst[hidden] { display: none; }
.pst b { color: var(--bc-text); font-weight: 800; margin-left: 4px; }
.ptask #bar-you .who { display: none; }
.ptask #bar-bot .badge { color: var(--bc-text); }
.ptask #bar-bot .badge svg { color: var(--bc-text); fill: currentColor; }
.game > .conn { margin: 0 var(--gm); }

/* =========================================================================
   SOCIAL (design-reference: account-leaderboard, friends, invites, profile-online)
   ========================================================================= */
.lav { position: relative; flex: none; background: var(--bc-tile); display: grid; place-items: center; font-weight: 800; color: var(--bc-text); }
.lav .sd { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid var(--bc-card); }
.sd.st-online { background: var(--bc-mint); } .sd.st-game { background: var(--bc-blue-d); } .sd.st-off { background: #5b6370; }
.lav.big { width: 96px; height: 96px; border-radius: 30px; font-size: 42px; }
.stt { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--bc-ts)); font-weight: 700; color: var(--bc-muted); }
.stt i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.tag { display: inline-flex; align-items: center; font-size: calc(10px * var(--bc-ts)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: var(--bc-muted); }
.tag.on { background: rgba(111, 208, 140, .15); color: var(--bc-mint); }
.rk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: calc(13px * var(--bc-ts)); font-weight: 800; flex: none; color: var(--bc-muted); }
.rk.r1 { background: var(--bc-text); color: #111; } .rk.r2 { border: 2.5px solid #c9ced8; color: var(--bc-text); } .rk.r3 { border: 1.5px solid #8a93a3; color: var(--bc-text-2); }
.row.me { background: var(--bc-tile); box-shadow: inset 3px 0 0 var(--bc-coral-d); }
.row.raised { background: var(--bc-tile); }
.row b { display: flex; align-items: center; gap: 6px; }
.lbr { font-size: calc(16px * var(--bc-ts)); font-weight: 800; flex: none; }
.pinned { flex: none; padding: 8px 14px 10px; background: var(--bc-tabbar); border-top: 1px solid rgba(255, 255, 255, .07); }
.nbanner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #2a1f1d; color: #ffb3a7; font-size: calc(13px * var(--bc-ts)); font-weight: 700; flex: none; }
.nbanner .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.spin.s { width: 18px; height: 18px; border-width: 2.5px; border-top-color: currentColor; }
.emptyb { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 18px; }
.emptyb .eic { width: 56px; height: 56px; border-radius: 50%; background: var(--bc-tile); display: grid; place-items: center; color: var(--bc-muted); }
.emptyb .eic .ic { width: 26px; height: 26px; fill: none; stroke: currentColor; }
.emptyb b { font-size: calc(17px * var(--bc-ts)); font-weight: 800; }
.emptyb p { margin: 0; font-size: calc(13px * var(--bc-ts)); color: var(--bc-muted); line-height: 1.45; max-width: 260px; font-weight: 600; }
.emptyb .btn { margin-top: 8px; }
.skel { height: 64px; border-radius: 16px; background: linear-gradient(90deg, #1b1e24 0%, #232730 50%, #1b1e24 100%); background-size: 200% 100%; animation: sh 1.3s linear infinite; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel, .spin { animation: none; } }
html[data-motion="off"] .skel, html[data-motion="off"] .spin { animation: none; }

/* forms */
.inp { display: flex; align-items: center; gap: 8px; background: var(--bc-well); border: 2px solid rgba(255, 255, 255, .07); border-radius: 16px; padding: 0 14px; height: 56px; }
.inp:focus-within { border-color: rgba(255, 255, 255, .3); }
.inp input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--bc-text); user-select: text; -webkit-user-select: text; }
.inp input::placeholder { color: #5f6775; }
.inp span { font-size: calc(12px * var(--bc-ts)); color: var(--bc-muted); font-weight: 700; }
.inp.bad { border-color: var(--bc-danger); }
.inp.code input { letter-spacing: .3em; text-transform: uppercase; font-size: 22px; }
.err { margin: 6px 2px 0; font-size: calc(12.5px * var(--bc-ts)); font-weight: 700; color: var(--bc-danger); }
.err.center { text-align: center; margin-top: -4px; }
.link { align-self: center; padding: 12px 18px; font-size: calc(14px * var(--bc-ts)); font-weight: 700; color: var(--bc-muted); min-height: 44px; }
.link.danger { color: var(--bc-danger); }
.btn.dis, .btn.amber.dis { opacity: .38; box-shadow: none; filter: saturate(.5); }
.sbtn { height: 38px; min-width: 44px; padding: 0 14px; border-radius: 12px; background: var(--bc-tile); box-shadow: 0 2px 0 #0b0c0f; font-size: calc(13px * var(--bc-ts)); font-weight: 800; color: var(--bc-text); flex: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sbtn.light { background: var(--bc-text); color: #111; box-shadow: 0 2px 0 #7a7f88; }
.sbtn.big { height: 44px; }
.sbtn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.sbtn:disabled { opacity: .38; cursor: default; }
.acct-hero { gap: 14px; margin-top: 26px; }
.bigh.sm { font-size: calc(24px * var(--bc-ts)); }
#account-body, #lb-body, #friends-body, #invitewait-body { display: flex; flex-direction: column; gap: 12px; }
#account-body { padding: 8px 4px; gap: 16px; flex: 1; }
#screen-account .scroll, #screen-invitewait .scroll { padding-bottom: 18px; }
.top .icon-btn { margin-left: -8px; }

/* friends */
.card.mycard { display: flex; flex-direction: column; gap: 12px; }
.mycard .lbl { margin: 0; }
.mycode { font-size: 38px; font-weight: 800; letter-spacing: .2em; padding-left: .2em; user-select: text; -webkit-user-select: text; }
.two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plus-tile { width: 40px; height: 40px; border-radius: 14px; background: var(--bc-tile); display: grid; place-items: center; color: var(--bc-text); flex: none; }
.plus-tile .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.row.friend { cursor: pointer; }
.row.invite-row { box-shadow: inset 0 0 0 1px rgba(111, 208, 140, .35); }

/* sheets: friend profile, invites */
.fprof { gap: 8px; }
.fname { font-size: calc(22px * var(--bc-ts)); font-weight: 800; display: block; }
.fsub { font-size: calc(12.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.center-t { text-align: center; }
.card.raised { background: var(--bc-tile); }
.card .lbl.center-t { margin-bottom: 8px; }
.h2hnum { text-align: center; font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.h2hnum .you { color: var(--bc-coral-d); } .h2hnum .them { color: var(--bc-blue-d); } .h2hnum span:nth-child(2) { color: var(--bc-muted); }
.vsbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 3px; }
.vsbar i { display: block; height: 100%; }
.res-col { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dl { font-size: calc(12px * var(--bc-ts)); font-weight: 800; } .dl.up { color: var(--bc-mint); } .dl.dn { color: var(--bc-danger); }
#sheet-friend .sheet-card, #sheet-invite .sheet-card, #sheet-incoming .sheet-card, #sheet-addfriend .sheet-card { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.inv-title { display: block; font-size: calc(17px * var(--bc-ts)); font-weight: 800; }
.iw-mid { flex: 1; justify-content: center; gap: 14px; }
.invite-toast { position: fixed; z-index: 60; text-align: left; width: auto; }
.invite-toast .grow b { display: block; }
.invite-toast[hidden] { display: none; }

/* notification dots */
.tab { position: relative; }
.tab .nd { position: absolute; top: 2px; left: calc(50% + 7px); width: 10px; height: 10px; border-radius: 50%; background: var(--bc-coral-d); border: 2px solid var(--bc-tabbar); }
.rdot { width: 10px; height: 10px; border-radius: 50%; background: var(--bc-coral-d); display: block; flex: none; }
.row .info > span.hot { color: var(--bc-text); }
.res-col .res { margin-left: auto; }
.card.mycard { align-items: stretch; text-align: left; }
.invite-toast { pointer-events: auto; cursor: pointer; }

/* profile online, replays, online result (design-reference/barricade-profile-online.html) */
.stat3b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat3b > div { background: var(--bc-card); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stat3b b { font-size: calc(19px * var(--bc-ts)); font-weight: 800; display: block; }
.stat3b span { font-size: calc(10.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.row.dis { opacity: .38; }
.row .apple { width: 22px; color: var(--bc-text); display: block; } .row .apple svg { width: 22px; height: 22px; }
.seg3.four { grid-template-columns: repeat(4, 1fr); }
.seg3.four button { font-size: calc(12px * var(--bc-ts)); }
.badge .bl { font-size: 17px; font-weight: 800; color: var(--bc-text); }
.badge.letter svg { display: none; }
.badge .bl[hidden] { display: none; }
.rcard { grid-column: 1 / -1; background: var(--bc-tile); border-radius: 20px; padding: 14px; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.rcard span { display: block; font-size: calc(10.5px * var(--bc-ts)); letter-spacing: .12em; text-transform: uppercase; color: var(--bc-muted); font-weight: 700; margin-bottom: 4px; }
.rcard b { font-size: 26px; font-weight: 800; }
.rcard b i { font-style: normal; color: var(--bc-muted); } .rcard b u { text-decoration: none; color: var(--bc-muted); font-size: 18px; }
.rcard em { font-style: normal; font-size: 22px; font-weight: 800; } .rcard em.up { color: var(--bc-mint); } .rcard em.dn { color: var(--bc-danger); }
.oppcard { display: flex; align-items: center; gap: 12px; background: var(--bc-tile); border-radius: 16px; padding: 10px 12px; }
.oppcard[hidden] { display: none; }
.oppcard b { display: flex; align-items: center; gap: 6px; font-size: calc(14px * var(--bc-ts)); font-weight: 800; }
.oppcard span:not(.lav):not(.tag) { font-size: calc(11.5px * var(--bc-ts)); color: var(--bc-muted); font-weight: 600; }
.oppcard .lav .sd { border-color: var(--bc-tile); }
