/* PLAYTIME — slice 0. Bright-blue console home (owner's chosen mockup).
   Motion rule: only transform + opacity animate. Ease: cubic-bezier(.2,.8,.2,1). */

:root {
  --blue-deep: #196dc0;
  --blue-mid: #3e9ae4;
  --blue-light: #5ab4f7;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, .72);
  --ink-3: rgba(255, 255, 255, .5);
  --glass: rgba(255, 255, 255, .14);
  --glass-hi: rgba(255, 255, 255, .2);
  --glass-line: rgba(255, 255, 255, .22);
  --glass-line-hi: rgba(255, 255, 255, .45);
  --ring: rgba(255, 255, 255, .9);
  --pill-ink: #111111;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --radius-card: 20px;
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* layout (phone first) */
  --gutter: 16px;
  --anchor: 16px;           /* left anchor of the selected tile */
  --tile: 120px;            /* resting tile size */
  --sel: 1.4;               /* selected multiplier (120 -> 168 on phone) */
  --gap: 12px;
  --wm-max: 64px;
  --wm-min: 34px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

@media (min-width: 900px) {
  :root {
    --gutter: 80px;
    --anchor: 80px;
    --tile: clamp(120px, 18.5vh, 190px);
    --sel: 1.5;
    --gap: 18px;
    --wm-max: clamp(56px, 11vh, 120px);
    --wm-min: 40px;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--blue-mid);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  min-height: 100svh;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: 0; background: linear-gradient(135deg, var(--blue-light), var(--blue-mid) 45%, var(--blue-deep)); }
.bg-drift, .bg-loop, .bg-tint { position: absolute; inset: 0; will-change: transform; }
.bg-loop { animation: wave-loop 40s ease-in-out infinite alternate; }
.bg-waves { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); }
@keyframes wave-loop {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-1.5%, -1%, 0) scale(1.03); }
  100% { transform: translate3d(1%, .8%, 0) scale(1.015); }
}
/* Tint: a small element, blurred, then scaled up (blur cost is paid on 1/16 of the pixels). */
.bg-tint { inset: auto; left: 37.5%; top: 37.5%; width: 25%; height: 25%; transform: scale(4.4); will-change: auto; mix-blend-mode: soft-light; }
.bg-tint img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(9px) saturate(1.3); opacity: 0; transition: opacity .6s var(--ease);
}
.bg-tint img.on { opacity: .5; }   /* soft-light: tints the blue per game without greying it */
.bg-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 50, 110, 0) 45%, rgba(10, 50, 110, .16) 100%); }

/* ---------- app shell ---------- */
.app {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(14px + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) calc(18px + var(--safe-b)) calc(var(--gutter) + var(--safe-l));
}

/* ---------- top bar ---------- */
.topbar {
  display: grid; align-items: center;
  grid-template-columns: 1fr auto;
  grid-template-areas: "who sys" "tabs tabs";
  row-gap: 10px;
  position: relative; z-index: 5;
}
.who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--blue-deep); font-weight: 600; font-size: 16px;
}
.who-name { font-size: 16px; font-weight: 400; }
.tabs { grid-area: tabs; display: flex; gap: 18px; position: relative; padding-bottom: 8px; }   /* 0.6.0: 28 -> 18 so "How it works" + Shelf|Pots fit 430 px */
.tab { font-size: 17px; color: var(--ink-2); padding: 4px 0; white-space: nowrap; transition: color .25s var(--ease); }
.tab:hover { color: #fff; }
.tab.is-active { color: #fff; }
.tab-line {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100px; border-radius: 3px; background: #fff;
  transform-origin: 0 0; transition: transform .25s var(--ease);
}
.sys { grid-area: sys; display: flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; }
/* phone: the brand floats centred over the first row (the grid is who | sys); desktop: its own centre column */
.brand {
  position: absolute; left: 50%; top: 20px; transform: translate(-50%, -50%);
  font-weight: 600; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #fff; text-decoration: none;
  padding: 6px 4px 6px 8px; white-space: nowrap; opacity: .95;
}
.brand:hover { opacity: 1; }
.brand.is-crowded { visibility: hidden; }
.wal { position: relative; }
.wal-btn {
  height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-line); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s, border-color .2s;
}
.wal-btn:hover { background: var(--glass-hi); border-color: var(--glass-line-hi); }
.wal-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wal-btn.is-on { background: rgba(255, 255, 255, .92); color: var(--pill-ink); border-color: transparent; }
.wal-btn.is-on:hover { background: #fff; }
.wal .pop { width: min(300px, calc(100vw - 32px)); }
@media (max-width: 899px) {
  .wal-btn span { display: none; }
  .wal-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .wal-btn.is-on span { display: inline; }
  .wal-btn.is-on { width: auto; padding: 0 12px 0 10px; border-radius: 20px; }
}
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clock { display: none; font-size: 16px; margin-left: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.search {
  position: absolute; right: 100%; top: 50%; width: min(260px, 52vw); margin-right: 6px;
  transform: translate3d(12px, -50%, 0); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.search.open { transform: translate3d(0, -50%, 0); opacity: 1; pointer-events: auto; }
.search input {
  width: 100%; height: 40px; border-radius: 20px; padding: 0 16px;
  background: var(--glass); border: 1px solid var(--glass-line); outline: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.search input::placeholder { color: var(--ink-2); }

.pop {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 14px 16px;
  background: rgba(30, 110, 200, .55); border: 1px solid var(--glass-line); border-radius: 16px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 40, 100, .25);
}
.pop-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { width: 40px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, .25); position: relative; flex: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + i { background: rgba(255, 255, 255, .55); }
.toggle input:checked + i::after { transform: translateX(16px); }
.toggle input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- views ---------- */
.views { position: relative; flex: 1; display: flex; flex-direction: column; }
.view { display: flex; flex-direction: column; flex: 1; }

/* ---------- tile row ---------- */
.row-band {
  /* fixed height = selected tile + ring room, so nothing below ever shifts */
  height: calc(var(--tile) * var(--sel) + 36px);
  margin: 10px calc(-1 * (var(--gutter) + var(--safe-r))) 0 calc(-1 * (var(--gutter) + var(--safe-l)));
  position: relative;
  overflow: hidden;            /* fallback */
  overflow-x: clip;            /* clip sideways only, so the ring glow is never cut flat */
  overflow-y: visible;
}
.row { position: absolute; inset: 0; outline: none; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.row.dragging { cursor: grabbing; }
.row:focus-visible { outline: none; }
.tile {
  position: absolute; left: 0; top: 0;
  width: calc(var(--tile) * var(--sel)); height: calc(var(--tile) * var(--sel));
  transform-origin: 0 0; will-change: transform, opacity;
  border-radius: 18px;
  contain: layout style;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block;
  border-radius: inherit; background: rgba(255, 255, 255, .12);
  box-shadow: 0 14px 34px rgba(0, 40, 110, .28);
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.tile .ring {
  position: absolute; inset: -9px; border-radius: 26px; pointer-events: none;
  border: 5px solid var(--ring);
  box-shadow: 0 0 26px rgba(255, 255, 255, .5), inset 0 0 12px rgba(255, 255, 255, .25);
  opacity: 0;
}
.row:focus-visible .tile.is-sel .ring { box-shadow: 0 0 34px rgba(255, 255, 255, .8), inset 0 0 12px rgba(255, 255, 255, .3); }

/* ---------- hero ---------- */
.hero { margin-top: clamp(18px, 4vh, 44px); position: relative; }
.line { will-change: transform, opacity; }
.wordmark {
  /* fixed box: room for one line at max size or two lines at min size */
  height: max(calc(var(--wm-max) * 1.08), calc(var(--wm-min) * 2.16));
  display: flex; align-items: flex-end;
  font-weight: 200; text-transform: uppercase; letter-spacing: .04em; line-height: 1.04;
  font-size: var(--wm-max);
  overflow: hidden;
}
.wordmark span { display: block; white-space: nowrap; overflow: hidden; }
.wordmark.wrap span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.caption {
  margin-top: 8px; height: 1.4em;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .9);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.play-row { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; min-height: 52px; }
.play-group { display: inline-flex; align-items: center; gap: 14px; }
.play {
  height: 52px; min-width: 150px; padding: 0 30px; border-radius: 26px; white-space: nowrap;
  background: #fff; color: var(--pill-ink); font-weight: 600; font-size: 19px;
  box-shadow: 0 10px 26px rgba(0, 40, 110, .22);
  transition: transform .18s var(--ease);
}
.play:hover { transform: scale(1.03); }
.play:active { transform: scale(.97); }
.more {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .2s, border-color .2s;
}
.more:hover { background: var(--glass-hi); border-color: var(--glass-line-hi); }
.more svg { width: 22px; height: 22px; fill: #fff; }
.stats { font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.stats b { font-weight: 400; margin: 0 6px; }
.hint {
  position: absolute; left: 0; bottom: -28px; font-size: 13px; color: #fff;
  opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.hint.show { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.cards {
  margin-top: auto; padding-top: 28px;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.card {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-card);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  padding: 14px 14px 16px; min-width: 0; outline: none;
  box-shadow: 0 16px 40px rgba(0, 40, 110, .12);
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  will-change: transform, opacity;
}
.card:hover, .card:focus-visible { transform: translate3d(0, -4px, 0); border-color: var(--glass-line-hi); background: var(--glass-hi); }
.card-head { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.card-head h2 { font-size: 15px; font-weight: 600; }
.recent { margin-top: 12px; height: 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.recent img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; background: rgba(255, 255, 255, .12); }
.recent .empty-note { grid-column: 1 / -1; align-self: center; font-size: 14px; color: var(--ink-2); }
.coin { margin-top: 12px; height: 60px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.coin-big { font-size: 17px; font-weight: 400; }

.view-empty { align-items: flex-start; padding-top: 40px; }
.card.empty { width: min(100%, 520px); padding: 26px 24px; }
.card.empty h2 { font-size: 22px; font-weight: 400; }
.card.empty p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- slice 1: account, library, wallet sheet ---------- */
.who { position: relative; }
.who-btn { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; border-radius: 24px; padding: 2px 10px 2px 2px; margin-left: -2px; transition: background .2s; }
.who-btn:hover { background: rgba(255, 255, 255, .12); }
.who-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.avatar { overflow: hidden; }
.avatar svg { width: 60%; height: 60%; fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linecap: round; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.has-img { background: rgba(255, 255, 255, .2); }

.pop { width: min(320px, calc(100vw - 32px)); }
.pop-left { left: 0; right: auto; }
.pop-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.pop-k:first-child { margin-top: 0; }
.pop-v { display: block; margin-top: 3px; font-size: 14px; color: #fff; text-decoration: none; word-break: break-all; }
a.pop-v:hover { text-decoration: underline; }
.pop-item {
  display: block; width: 100%; text-align: left; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  font-size: 15px; background: rgba(255, 255, 255, .1); border: 1px solid transparent; transition: background .2s, border-color .2s;
}
.pop-item:hover { background: rgba(255, 255, 255, .18); border-color: var(--glass-line); }
.pop-item + .pop-item { margin-top: 6px; }
.pop-danger.confirm { background: rgba(255, 255, 255, .92); color: var(--pill-ink); }
.pop-about { margin-top: 12px; }
.about { margin-top: 10px; display: grid; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.about b { color: #fff; font-weight: 600; }

.owned {
  margin-top: 6px; height: 1.4em; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card-src { font-size: 12px; color: var(--ink-2); text-decoration: none; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.card-src:hover { color: #fff; text-decoration: underline; }
.hours { margin-top: 12px; height: 60px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.hours-big { font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.hours-sub { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.empty-actions:empty { display: none; }
.act-main { display: inline-grid; place-items: center; height: 48px; min-width: 132px; padding: 0 28px; font-size: 17px; text-decoration: none; }
.act-main:disabled { opacity: .7; cursor: default; }
.act-glass {
  display: inline-grid; place-items: center; height: 48px; padding: 0 22px; border-radius: 24px; font-size: 15px;
  color: #fff; text-decoration: none; background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s, border-color .2s;
}
.act-glass:hover { background: var(--glass-hi); border-color: var(--glass-line-hi); }
.card.empty .fine { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.card.empty .fine:empty { display: none; }

.tile.noart { background: var(--glass); border: 1px solid var(--glass-line); display: grid; place-items: end start; }
.tile-name { padding: 14px; font-size: 18px; font-weight: 600; line-height: 1.2; }

/* wallet sheet: bottom sheet on phones, centred modal on desktop */
.sheet-back {
  position: fixed; inset: 0; z-index: 50; background: rgba(8, 40, 90, .32);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .25s var(--ease);
}
.sheet-back.on { opacity: 1; }
.sheet {
  width: 100%; max-height: 88svh; overflow-y: auto;
  padding: 10px 20px calc(22px + var(--safe-b));
  background: rgba(30, 110, 200, .62); border: 1px solid var(--glass-line); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 -18px 50px rgba(0, 40, 100, .25);
  transform: translate3d(0, 100%, 0); transition: transform .38s var(--ease);
}
.sheet-back.on .sheet { transform: none; }
.sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); margin: 0 auto 10px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { font-size: 22px; font-weight: 400; }
.sheet-sub { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sheet-list { margin-top: 16px; display: grid; gap: 8px; }
.wallet-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); color: #fff; text-decoration: none; text-align: left; font-size: 16px;
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.wallet-opt:hover { background: rgba(255, 255, 255, .2); border-color: var(--glass-line-hi); transform: translate3d(2px, 0, 0); }
.wallet-opt img, .wallet-opt .wi { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.wallet-opt .wi { display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--blue-deep); font-weight: 600; }
.wallet-opt em { margin-left: auto; font-style: normal; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.wallet-opt.dim { opacity: .8; }
.sheet-msg {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 30, 80, .25); border: 1px solid var(--glass-line);
  font: 12px/1.55 ui-monospace, "Cascadia Mono", Menlo, monospace; color: #fff; white-space: pre-wrap; word-break: break-all;
}
.sheet-status { margin-top: 12px; min-height: 1.5em; font-size: 14px; color: #fff; }
.sheet-status.err { color: #ffe1d6; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .sheet-back { align-items: center; }
  .sheet { width: min(440px, calc(100vw - 48px)); border-radius: 24px; border-bottom: 1px solid var(--glass-line); padding: 22px 24px 24px; transform: translate3d(0, 18px, 0) scale(.98); opacity: 0; transition: transform .38s var(--ease), opacity .25s var(--ease); }
  .sheet-back.on .sheet { opacity: 1; }
  .sheet-grip { display: none; }
  .who-name { max-width: 220px; }
  .owned { font-size: 14px; margin-top: 8px; }
  .hours { height: 82px; margin-top: 16px; }
  .hours-big { font-size: 28px; }
  .hours-sub { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-back, .sheet, .pop-item, .wallet-opt { transition: none !important; }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .app { padding-top: calc(28px + var(--safe-t)); padding-bottom: calc(36px + var(--safe-b)); }
  /* 0.6.0: the wordmark has its own column, centred in the space between the tabs and the wallet button */
  .topbar { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "who tabs brand sys"; column-gap: 0; }
  .who { margin-right: 48px; }
  .brand { grid-area: brand; position: static; justify-self: center; transform: none; font-size: 16px; letter-spacing: .34em; }
  .clock { display: block; }
  .avatar { width: 44px; height: 44px; font-size: 19px; }
  .who-name { font-size: 18px; }
  .tabs { gap: clamp(22px, 2.8vw, 36px); padding-bottom: 10px; top: 4px; }
  .tab { font-size: 19px; }
  .clock { font-size: 19px; margin-left: 24px; }
  .sys { gap: 20px; }
  .icon-btn svg { width: 28px; height: 28px; }
  .row-band { margin-top: 18px; }
  .hero { margin-top: 12px; }
  .caption { font-size: 15px; margin-top: 10px; }
  .play-row { margin-top: 26px; }
  .play { height: 58px; min-width: 176px; border-radius: 29px; font-size: 20px; }
  .more { width: 58px; height: 58px; }
  .stats { font-size: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 500px)); gap: 22px; padding-top: 30px; }
  .card { padding: 18px 24px 22px; }
  .card-head h2 { font-size: 17px; }
  .recent { height: 82px; gap: 8px; margin-top: 16px; }
  .coin { height: 82px; margin-top: 16px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .coin-big { font-size: 22px; }
}

/* ---------- slice 2: coins (tile pill, Shelf|Pots, the Coin card) ---------- */
.tile-pill {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-size: 14px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--pill-ink);
  box-shadow: 0 4px 12px rgba(0, 40, 110, .25); pointer-events: none;
}
.sort {
  margin-left: auto; align-self: center; display: inline-flex; gap: 2px; padding: 3px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.sort-opt { font-size: 13px; padding: 4px 12px; border-radius: 12px; color: var(--ink-2); transition: background .2s, color .2s; }
.sort-opt:hover { color: #fff; }
.sort-opt.is-on { background: rgba(255, 255, 255, .92); color: var(--pill-ink); font-weight: 600; }
.stats-link { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .5); font-size: inherit; }
.stats-link:hover { text-decoration-color: #fff; }
.pop-why { margin-top: 2px; }

/* The coin card. With at least one coin in the registry (body.has-coins) every game's coin card keeps the same
   height, coin or not, so moving along the row never shifts the page. */
.has-coins .card-coin .coin { height: 150px; margin-top: 10px; }
.coin-live {
  margin-top: 10px; height: 150px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto;
  grid-template-areas: "market pot" "actions actions"; column-gap: 14px; row-gap: 10px; align-content: start;
}
.cl-market { grid-area: market; min-width: 0; }
.cl-pot { grid-area: pot; min-width: 0; }
.cl-actions { grid-area: actions; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cl-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 1px; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.cl-pricev { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cl-change:empty { display: none; }
.cl-change { flex: none; font-size: 12px; color: var(--ink-2); }
.cl-change.up::before { content: "▲ "; font-size: 9px; }
.cl-change.down::before { content: "▼ "; font-size: 9px; }
.cl-chart { margin-top: 6px; height: 34px; display: flex; align-items: center; }
.cl-chart svg { width: 100%; height: 100%; overflow: visible; }
.cl-chart polyline { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cl-none { font-size: 13px; color: var(--ink-2); }
.cl-src { margin-top: 3px; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cl-potv { margin-top: 2px; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-potv.dim { font-size: 16px; color: var(--ink-2); }
.cl-sub, .cl-split { margin-top: 3px; font-size: 11px; line-height: 1.35; color: var(--ink-2); }
.cl-split.warn { color: #fff; }
.cl-warn { display: inline-block; vertical-align: -2px; width: 13px; height: 13px; margin-right: 4px; fill: none; stroke: #ffd9a8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cl-verify { color: #fff; text-underline-offset: 2px; }
.cl-trade {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 17px;
  border: 1.5px solid rgba(255, 255, 255, .85); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
  transition: background .2s, color .2s;
}
.cl-trade:hover { background: #fff; color: var(--pill-ink); }
.cl-trade svg, .cl-mint svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cl-mint {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px;
  font: 12px/1 ui-monospace, "Cascadia Mono", Menlo, monospace; color: var(--ink-2); background: rgba(255, 255, 255, .1);
  transition: background .2s, color .2s;
}
.cl-mint:hover, .cl-mint.copied { background: rgba(255, 255, 255, .2); color: #fff; }

@media (max-width: 899px) {
  .sort-opt { padding: 4px 10px; }
  /* phone: the long payout line may take two lines; reserve them so tiles never shift the page */
  .has-coins .stats { white-space: normal; line-height: 1.4; min-height: 2.8em; display: flex; align-items: center; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .has-coins .cards { grid-template-columns: minmax(0, 320px) minmax(0, 740px); }
  .has-coins .card-coin .coin { height: 86px; margin-top: 16px; }
  .coin-live {
    margin-top: 16px; height: 86px; row-gap: 0; column-gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; grid-template-areas: "market pot actions";
  }
  .cl-actions { flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 8px; }
  .cl-price { font-size: 20px; }
  .cl-potv { font-size: 22px; }
  .cl-chart { height: 30px; margin-top: 4px; }
  .sort-opt { font-size: 14px; }
  .tile-pill { font-size: 16px; left: 14px; bottom: 14px; padding: 7px 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-loop { animation: none; }
  .bg-tint img, .tab-line, .search, .hint, .card, .play, .toggle i::after { transition: none !important; }
}

/* ---------- slice 3: the weekly ledger ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card-link {
  display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 6px 0 11px; border-radius: 12px; flex: none;
  font-size: 12px; font-weight: 600; color: #fff; border: 1px solid var(--glass-line-hi); background: rgba(255, 255, 255, .08);
  transition: background .2s, color .2s;
}
.card-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-link:hover { background: #fff; color: var(--pill-ink); }
.cl-share { color: #fff; font-weight: 600; }
.pop-hours { margin-top: 4px; }
.pop-hours .pop-k { margin-top: 12px; }
.pop-hours .pop-item:disabled { opacity: .55; cursor: default; }
.pop-note.err { color: #ffe1d6; }

.ledger-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(8, 40, 90, .32);
  display: flex; align-items: flex-end; justify-content: center;
}
.ledger {
  width: 100%; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 16px calc(20px + var(--safe-b));
  background: rgba(30, 110, 200, .66); border: 1px solid var(--glass-line); border-bottom: 0; border-radius: 26px 26px 0 0;
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 -18px 50px rgba(0, 40, 100, .25);
}
.ledger-head { display: flex; align-items: center; justify-content: space-between; }
.ledger-head h2 { font-size: 22px; font-weight: 400; }
.ledger-week { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.lg-pick { position: relative; display: inline-flex; }
.lg-pick select {
  appearance: none; -webkit-appearance: none; height: 40px; padding: 0 40px 0 16px; border-radius: 20px; font: inherit; font-size: 14px;
  color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid var(--glass-line); cursor: pointer; max-width: 100%;
}
.lg-pick select:hover { border-color: var(--glass-line-hi); }
.lg-pick option { color: var(--pill-ink); background: #fff; }
.lg-pick svg { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; pointer-events: none; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lg-weeknote { font-size: 12px; color: var(--ink-2); }
.ledger-body { margin-top: 12px; display: grid; gap: 12px; }
.lg-note { font-size: 15px; color: var(--ink-2); padding: 8px 0; }
.lg-coin { padding: 14px 14px 12px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line); }
.lg-head { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lg-game { margin: 0; font-size: 18px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-ticker { font-size: 13px; color: var(--ink-2); flex: none; }
.lg-top { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.lg-k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.lg-potv { margin-top: 2px; font-size: 20px; font-variant-numeric: tabular-nums; }
.lg-potv.dim { font-size: 15px; color: var(--ink-2); }
.lg-src { margin-top: 3px; font-size: 11px; line-height: 1.4; color: var(--ink-2); }
.lg-link { color: #fff; text-underline-offset: 2px; }
.lg-empty { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 30, 80, .16); font-size: 15px; color: #fff; }
.lb { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.lb-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-areas: "rank who share" "rank min min";
  align-items: center; column-gap: 10px; row-gap: 2px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  font-variant-numeric: tabular-nums;
}
.lb-hd { display: none; }
.lb-rank { grid-area: rank; font-size: 13px; color: var(--ink-2); align-self: start; padding-top: 1px; }
.lb-who { grid-area: who; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.lb-hash { font: 13px/1.3 ui-monospace, "Cascadia Mono", Menlo, monospace; letter-spacing: .02em; }
.lb-you { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9px; background: var(--pill-ink); color: #fff; }
.lb-flags { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.lb-flag { font-size: 10.5px; padding: 2px 7px; border-radius: 8px; border: 1px solid var(--glass-line); color: var(--ink-2); }
.lb-min { grid-area: min; font-size: 12px; color: var(--ink-2); }
.lb-min::after { content: " counted"; }
.lb-share { grid-area: share; font-size: 16px; font-weight: 600; text-align: right; }
.lb-row.is-me { background: rgba(255, 255, 255, .92); color: var(--pill-ink); box-shadow: 0 6px 18px rgba(0, 40, 110, .18); }
.lb-row.is-me .lb-rank, .lb-row.is-me .lb-min { color: rgba(17, 17, 17, .62); }
.lb-row.is-me .lb-flag { border-color: rgba(17, 17, 17, .25); color: rgba(17, 17, 17, .72); }
.lg-why { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 30, 80, .16); }
.lg-why-line { margin-top: 4px; font-size: 13px; line-height: 1.45; color: #fff; }
.lg-rules { margin-top: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid var(--glass-line); }
.lg-rules summary { cursor: pointer; padding: 12px 14px; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.lg-rules summary::-webkit-details-marker { display: none; }
.lg-rules summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink-2); }
.lg-rules[open] summary::after { content: "–"; }
.lg-rules ul { margin: 0; padding: 0 14px 14px 32px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ledger-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.lg-payouts { font-size: 14px; color: #fff; }
.ledger-foot .lg-link { font-size: 13px; }

@media (min-width: 900px) {
  .ledger-back { align-items: center; }
  .ledger {
    width: min(880px, calc(100vw - 96px)); max-height: calc(100svh - 96px); border-radius: 24px;
    border-bottom: 1px solid var(--glass-line); padding: 22px 26px 22px;
  }
  .ledger .sheet-grip { display: none; }
  .ledger-head h2 { font-size: 26px; }
  .lg-coin { padding: 16px 18px 14px; }
  .lg-game { font-size: 20px; }
  .lg-potv { font-size: 24px; }
  .lb-row { grid-template-columns: 34px minmax(0, 1fr) 110px 90px; grid-template-areas: "rank who min share"; padding: 9px 14px; }
  .lb-hd { display: grid; background: none; padding-top: 0; padding-bottom: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
  .lb-hd .lb-share, .lb-hd .lb-min { font-size: 10.5px; font-weight: 400; color: var(--ink-3); }
  .lb-hd .lb-min::after { content: none; }
  .lb-min { font-size: 14px; text-align: right; }
  .lb-min::after { content: none; }
  .lb-flags { flex-basis: auto; }
  .lb-rank { align-self: center; padding-top: 0; }
  .card-link { font-size: 13px; }
  .cl-share { font-size: 12px; }
}

/* ---------- 0.6.0: How it works (a simulation; how.js writes transform + opacity only) ---------- */
.nudge {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 2; height: 26px; padding: 0 11px; border-radius: 13px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--pill-ink); background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 16px rgba(0, 40, 110, .2); transition: transform .2s var(--ease);
}
.nudge:hover { transform: scale(1.04); }
.lib-how {
  display: inline-grid; place-items: center; height: 48px; padding: 0 6px; font-size: 15px; color: #fff;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5);
}
.lib-how:hover { text-decoration-color: #fff; }

.view-how { padding-top: 12px; --how-h: clamp(470px, calc(100svh - 372px), 600px); }
.how {
  position: relative; display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 24px;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 16px 40px rgba(0, 40, 110, .12);
  padding: 14px 16px 10px; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: hidden;
}
.how-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.how-label {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; padding: 5px 12px 5px 8px; border-radius: 14px;
  font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--pill-ink); white-space: nowrap;
}
.how-label svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how-count { flex: none; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.how-scenes { position: relative; height: var(--how-h); margin-top: 14px; }
.hs { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; visibility: hidden; }
.hs.is-on, .hs.is-out { visibility: visible; }
.hs-k { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.hs-h { margin-top: 6px; font-size: 30px; font-weight: 200; line-height: 1.08; letter-spacing: .01em; }
.hs-p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hs-vis { position: relative; flex: 1; min-height: 0; }
.v-k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hs.is-on [data-a], .hs.is-on .v1-game, .hs.is-on .v2-fill, .hs.is-on .v4-row, .hs.is-on .v4-bar, .hs.is-on .v3-trade, .hs.is-on .v3-fee { will-change: transform, opacity; }

/* scene 1: sign in */
.v1 { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.v1-who {
  align-self: flex-start; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 9px; border-radius: 18px;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line);
}
.v1-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.v1-av svg { width: 60%; height: 60%; fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linecap: round; }
.v1-name { display: flex; flex-direction: column; line-height: 1.3; }
.v1-name b { font-size: 15px; font-weight: 600; }
.v1-name i { font-style: normal; font-size: 12px; color: var(--ink-2); }
.v1-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.v1-game { min-width: 0; }
.v1-game img {
  width: 100%; aspect-ratio: 1; display: block; object-fit: cover; object-position: 50% 12%; border-radius: 12px;
  background: rgba(255, 255, 255, .12); box-shadow: 0 10px 24px rgba(0, 40, 110, .25); -webkit-user-drag: none;
}
.v1-cap { display: flex; flex-direction: column; margin-top: 6px; font-size: 11.5px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.v1-cap b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v1-cap i { font-style: normal; color: var(--ink-2); }
.v1-dot { display: none; white-space: pre; color: var(--ink-2); }
.v1-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 9px; border-radius: 15px; font-size: 12.5px;
  background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* scene 2: play */
.v2 { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 16px; align-content: center; }
.v2-cover { position: relative; width: 112px; height: 112px; margin-left: 8px; transform-origin: 0 50%; }
.v2-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 12%; border-radius: 16px; background: rgba(255, 255, 255, .12); box-shadow: 0 14px 34px rgba(0, 40, 110, .28); -webkit-user-drag: none; }
.v2-ring {
  position: absolute; inset: -7px; border-radius: 22px; border: 4px solid var(--ring); pointer-events: none;
  box-shadow: 0 0 22px rgba(255, 255, 255, .5), inset 0 0 10px rgba(255, 255, 255, .25); opacity: var(--rp, 1);
}
.v2-side { min-width: 0; }
.v2-num { margin-top: 2px; font-size: 36px; font-weight: 200; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v2-week { position: relative; margin-top: 26px; height: 92px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.v2-day { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.v2-day i { font-style: normal; font-size: 10.5px; line-height: 12px; color: var(--ink-2); }
.v2-track { position: relative; flex: 1; width: 100%; max-width: 22px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.v2-fill { position: absolute; inset: 0; background: #fff; transform-origin: 50% 100%; }
.v2-cap { position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed rgba(255, 255, 255, .7); pointer-events: none; z-index: 1; }
.v2-cap i { position: absolute; right: 0; bottom: 3px; font-style: normal; font-size: 10.5px; letter-spacing: .06em; color: #fff; white-space: nowrap; }
.v2-toast {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
  border-radius: 16px; background: rgba(255, 255, 255, .92); color: var(--pill-ink); font-size: 14px; box-shadow: 0 10px 26px rgba(0, 40, 110, .22);
}
.v2-toast b { font-weight: 600; }
.v2-toast svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--blue-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* scene 3: trades fill the pot */
.v3 {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "market pot" "split split"; gap: 14px 16px;
}
.v3-market { grid-area: market; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.v3-chart { margin-top: 8px; height: 84px; overflow: hidden; }
.v3-rev, .v3-rev-in { width: 100%; height: 100%; }
.v3-rev { overflow: hidden; }
.v3-chart svg { width: 100%; height: 100%; overflow: visible; }
.v3-chart polyline { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.v3-lane { position: relative; margin-top: 12px; height: 44px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .4); }
.v3-lane span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.v3-pot { grid-area: pot; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.v3-jar { position: relative; margin-top: 8px; width: 60px; flex: 0 1 150px; min-height: 70px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); overflow: hidden; }
.v3-fill { position: absolute; inset: 3px; border-radius: 12px; background: #fff; transform-origin: 50% 100%; }
.v3-potv { margin-top: 8px; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v3-ex { font-size: 11px; color: var(--ink-2); }
.v3-split { grid-area: split; }
.v3-bar { display: flex; gap: 3px; height: 12px; }
.v3-pl, .v3-pf { display: block; transform-origin: 0 50%; }
.v3-pl { flex: 80 0 0; background: #fff; border-radius: 6px 3px 3px 6px; }
.v3-pf { flex: 20 0 0; background: rgba(255, 255, 255, .35); border-radius: 3px 6px 6px 3px; }
.v3-legend { margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.v3-legend b { color: #fff; font-weight: 600; }
.v3-lock { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; }
.v3-lock svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v3-fly { position: absolute; inset: 0; pointer-events: none; }
.v3-trade, .v3-fee { position: absolute; left: 0; top: 0; display: grid; place-items: center; font-weight: 600; opacity: 0; }
.v3-trade { width: 52px; height: 26px; border-radius: 13px; font-size: 12.5px; }
.v3-buy { background: #fff; color: var(--pill-ink); }
.v3-sell { background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .85); color: #fff; }
.v3-fee { width: 38px; height: 20px; border-radius: 10px; font-size: 10.5px; background: #fff; color: var(--blue-deep); box-shadow: 0 4px 12px rgba(0, 40, 110, .3); }

/* scene 4: the split */
.v4 { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.v4-when {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px;
  font-size: 12.5px; background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line);
}
.v4-when svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v4-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.v4-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 62px; grid-template-areas: "who h s" "track track track";
  align-items: center; column-gap: 10px; row-gap: 5px; padding: 6px 12px 7px; border-radius: 12px; background: rgba(255, 255, 255, .07);
  font-size: 13px; font-variant-numeric: tabular-nums;
}
.v4-who { grid-area: who; display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.v4-id { font: 13px/1.3 ui-monospace, "Cascadia Mono", Menlo, monospace; letter-spacing: .02em; }
.v4-rest { color: var(--ink-2); }
.v4-you { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 9px; background: var(--pill-ink); color: #fff; }
.v4-h { grid-area: h; text-align: right; color: var(--ink-2); }
.v4-track { grid-area: track; position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.v4-bar { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; }
.v4-s { grid-area: s; text-align: right; font-size: 14px; font-weight: 600; }
.v4-row.is-me { background: rgba(255, 255, 255, .92); color: var(--pill-ink); box-shadow: 0 6px 18px rgba(0, 40, 110, .18); }
.v4-row.is-me .v4-h { color: rgba(17, 17, 17, .62); }
.v4-row.is-me .v4-track { background: rgba(17, 17, 17, .12); }
.v4-row.is-me .v4-bar { background: var(--blue-deep); }
.v4-total { background: none; border-radius: 0; border-top: 1px solid var(--glass-line); padding-top: 8px; grid-template-areas: "who h s"; font-weight: 600; }
.v4-total .v4-track { display: none; }
.v4-total .v4-h { color: #fff; }
.v4-sum { font-size: 14px; color: var(--ink-2); }
.v4-sum b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }

/* scene 5: your share */
.v5 { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.v5-eq {
  display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); grid-template-areas: "b0 o0 b1" "o1 o1 o1" "b2 b2 b2";
  align-items: center; gap: 4px 6px;
}
.v5-eq [data-a="b0"] { grid-area: b0; } .v5-eq [data-a="o0"] { grid-area: o0; } .v5-eq [data-a="b1"] { grid-area: b1; }
.v5-eq [data-a="o1"] { grid-area: o1; line-height: 1; } .v5-eq [data-a="b2"] { grid-area: b2; }
.v5-b { min-width: 0; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid var(--glass-line); }
.v5-b .v-k { font-size: 10px; letter-spacing: .1em; line-height: 1.3; }
.v5-v { margin-top: 3px; font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v5-op { font-size: 22px; font-weight: 200; color: #fff; text-align: center; }
.v5-res { background: rgba(255, 255, 255, .92); color: var(--pill-ink); border-color: transparent; box-shadow: 0 10px 26px rgba(0, 40, 110, .22); }
.v5-res .v-k { color: rgba(17, 17, 17, .62); }
.v5-res .v5-v { font-weight: 600; }
.v5-honest { font-size: 14px; line-height: 1.5; color: #fff; }
.v5-cta { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.v5-cta .act-main { height: 46px; font-size: 16px; }
.v5-cta .act-glass { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; }
.v5-cta .act-glass svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v5-fine { font-size: 12px; color: var(--ink-3); }

/* progress + controls */
.how-prog { margin-top: 12px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.how-prog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.how-ctl { display: flex; align-items: center; gap: 6px; padding-top: 8px; }
.how-nav {
  display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 8px; border-radius: 22px; font-size: 15px;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line); transition: background .2s, border-color .2s, opacity .2s;
}
.how-next { padding: 0 8px 0 16px; margin-left: 4px; background: rgba(255, 255, 255, .92); color: var(--pill-ink); border-color: transparent; font-weight: 600; }
.how-nav:hover { background: rgba(255, 255, 255, .2); border-color: var(--glass-line-hi); }
.how-next:hover { background: #fff; }
.how-nav:disabled { opacity: .4; cursor: default; }
.how-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how-dots { flex: 1; display: flex; justify-content: center; }
.how-dot { width: 30px; height: 44px; display: grid; place-items: center; }
.how-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .4); transition: transform .25s var(--ease), background .25s var(--ease); }
.how-dot.is-on::before { background: #fff; transform: scaleX(2.2); }
.how-pause { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.how-pause:hover { background: rgba(255, 255, 255, .12); }
.how-pause svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.how .i-play, .how.is-paused .i-pause { display: none; }
.how.is-paused .i-play { display: block; }

/* the step strip under the stage */
.how-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.how-steps button {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px 8px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid var(--glass-line); color: #fff; font-size: 11px; line-height: 1.25; text-align: center;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s, color .2s, border-color .2s;
}
.how-steps button:hover { background: rgba(255, 255, 255, .2); border-color: var(--glass-line-hi); }
.how-steps button.is-on { background: rgba(255, 255, 255, .92); color: var(--pill-ink); border-color: transparent; }
.how-steps svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 900px) {
  .view-how { padding-top: 14px; --how-h: clamp(330px, calc(100svh - 334px), 466px); }
  .how { padding: 18px 26px 12px; }
  .how-label { font-size: 13px; }
  .how-count { font-size: 14px; }
  .hs { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 56px; align-items: center; }
  .hs-k { font-size: 12px; }
  .hs-h { font-size: clamp(34px, 5.4vh, 46px); }
  .hs-p { margin-top: 12px; font-size: 17px; }
  .hs-vis { height: 100%; }
  .v1-games { gap: 14px; }
  .v1-game img { border-radius: 16px; }
  .v1-cap { flex-direction: row; margin-top: 8px; font-size: 13px; }
  .v1-cap .v1-dot { display: inline; }
  .v1-name b { font-size: 16px; }
  .chip { font-size: 13.5px; height: 32px; }
  .v2 { grid-template-columns: 176px minmax(0, 1fr); column-gap: 36px; row-gap: 22px; }
  .v2-cover { width: 176px; height: 176px; margin-left: 0; }
  .v2-ring { inset: -9px; border-radius: 26px; border-width: 5px; }
  .v2-num { font-size: 52px; }
  .v2-week { height: 120px; gap: 10px; }
  .v2-track { max-width: 30px; }
  .v2-toast { font-size: 15px; padding: 12px 18px 12px 14px; }
  .v3 { grid-template-columns: minmax(0, 1fr) 150px; gap: 18px 28px; }
  .v3-chart { height: 130px; }
  .v3-lane { height: 50px; border-radius: 25px; margin-top: 16px; }
  .v3-jar { width: 78px; flex-basis: 200px; border-radius: 18px; }
  .v3-potv { font-size: 26px; }
  .v3-bar { height: 14px; }
  .v3-legend { font-size: 13.5px; }
  .v4-row { grid-template-columns: 160px minmax(0, 1fr) 84px 72px; grid-template-areas: "who track h s"; padding: 8px 14px; font-size: 14px; }
  .v4-total { grid-template-areas: "who track h s"; }
  .v4-total .v4-track { display: block; visibility: hidden; }
  .v4-track { height: 8px; border-radius: 4px; }
  .v4-s { font-size: 15px; }
  .v4-sum { font-size: 16px; }
  .v5 { gap: 18px; }
  .v5-eq { display: flex; flex-wrap: wrap; gap: 12px 16px; }
  .v5-b { padding: 14px 18px; border-radius: 18px; }
  .v5-b .v-k { font-size: 10.5px; letter-spacing: .14em; }
  .v5-v { margin-top: 4px; font-size: 30px; font-weight: 200; }
  .v5-res .v5-v { font-weight: 400; }
  .v5-op { font-size: 30px; }
  .v5-honest { font-size: 15px; max-width: 560px; }
  .v5-cta { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .v5-cta .act-main { height: 50px; font-size: 17px; }
  .v5-cta .act-glass { height: 50px; }
  .how-ctl { padding-top: 10px; }
  .how-steps { gap: 12px; margin-top: 14px; }
  .how-steps button { flex-direction: row; justify-content: center; gap: 10px; padding: 13px 12px; font-size: 14px; }
  .how-steps svg { width: 22px; height: 22px; }
  .nudge { right: auto; left: var(--nudge-x, 0px); top: calc(100% + 8px); font-size: 13px; height: 28px; padding: 0 13px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .nudge, .how-dot::before, .how-steps button, .how-nav { transition: none !important; }
}
