:root {
  --bg: #0b1210;
  --felt: #10201a;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.6);
  --faint: rgba(244, 241, 234, 0.35);
  --warn: #fbbf24;
  --danger: #f87171;
  --accent: #38bdf8;
  --font: 'SF Pro Display', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Roboto Mono', ui-monospace, Menlo, Consolas, monospace;
}

body[data-phase='rebuy'] { --accent: #38bdf8; }
body[data-phase='postflop'] { --accent: #4ade80; }
body[data-phase='accel'] { --accent: #fbbf24; }
body[data-phase='kill'] { --accent: #f87171; }
body[data-phase='break'] { --accent: #c4b5fd; }

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--accent) 14%, var(--felt)) 0%, var(--bg) 70%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s;
}

button { font: inherit; color: inherit; }

.screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 22vw);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    'top top'
    'hero stats'
    'ladder ladder'
    'controls controls';
  gap: clamp(0.5rem, 1.2vh, 1rem) clamp(0.75rem, 2vw, 2rem);
  padding: clamp(0.75rem, 2vh, 1.5rem) clamp(1rem, 2.5vw, 2.5rem);
  padding-bottom: max(clamp(0.75rem, 2vh, 1.5rem), env(safe-area-inset-bottom));
}

/* Top bar */
.topbar { grid-area: top; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.phase-badge {
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: clamp(0.8rem, 1.4vw, 1.15rem);
}
.meta { display: flex; gap: 1.25rem; color: var(--muted); font-variant-numeric: tabular-nums; font-size: clamp(0.85rem, 1.3vw, 1.1rem); flex-wrap: wrap; }
.meta #clock { color: var(--text); font-weight: 700; }
.top-actions { margin-left: auto; display: flex; gap: 0.5rem; }
.icon-btn {
  width: 2.6rem; height: 2.6rem; border-radius: 0.75rem; border: 1px solid var(--line);
  background: var(--panel); cursor: pointer; font-size: 1.15rem;
}
.icon-btn[aria-pressed='false'] { opacity: 0.45; }

/* Hero */
.hero {
  grid-area: hero;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-width: 0;
}
.level-label {
  font-weight: 800; letter-spacing: 0.2em; color: var(--accent);
  font-size: clamp(1.4rem, min(4.2vw, 6vh), 4.5rem);
}
.blinds {
  font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, min(11vw, 17vh), 13rem);
  white-space: nowrap;
}
.blinds.is-text { font-size: clamp(2rem, min(7vw, 11vh), 8rem); letter-spacing: 0.04em; }
.countdown {
  font-family: var(--mono); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  font-size: clamp(4rem, min(17vw, 26vh), 20rem);
  margin-top: 0.05em;
  transition: color 0.3s;
}
.countdown.is-warn { color: var(--warn); }
.countdown.is-final { color: var(--danger); animation: pulse 1s steps(2, start) infinite; }
.countdown.is-paused { opacity: 0.55; }
@keyframes pulse { 50% { opacity: 0.55; } }

.progress { width: min(100%, 60rem); height: 0.45rem; border-radius: 99px; background: var(--panel-strong); overflow: hidden; margin: clamp(0.5rem, 1.5vh, 1.2rem) 0; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.25s linear; }

.next { color: var(--muted); font-weight: 700; letter-spacing: 0.08em; font-size: clamp(1.1rem, min(3vw, 4.5vh), 3rem); font-variant-numeric: tabular-nums; }
.next b { color: var(--text); }
.notice {
  margin-top: 0.8rem; padding: 0.45em 1em; border-radius: 0.75rem;
  background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn);
  font-weight: 700; font-size: clamp(0.9rem, 1.6vw, 1.4rem);
}

/* Stats */
.stats { grid-area: stats; display: flex; flex-direction: column; gap: clamp(0.4rem, 1.2vh, 0.9rem); justify-content: center; min-width: 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(0.5rem, 1.4vh, 1rem) 1rem; }
.stat-label { color: var(--muted); font-weight: 700; letter-spacing: 0.12em; font-size: clamp(0.7rem, 1vw, 0.95rem); }
.stat-value { font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(1.6rem, min(3.4vw, 5.5vh), 3.6rem); line-height: 1.1; }
.stat-value small { font-size: 0.5em; color: var(--muted); }
.stat-big { display: flex; align-items: baseline; gap: 0.6rem; }
.stat-big .stat-value { font-size: clamp(2rem, min(4.6vw, 7vh), 4.8rem); }
.stat-big .stat-label { font-size: clamp(0.9rem, 1.4vw, 1.3rem); }
.stat-small .stat-value { font-size: clamp(1.1rem, min(2vw, 3.2vh), 2rem); }
.stat-entries { font-size: clamp(0.9rem, 1.3vw, 1.2rem) !important; font-weight: 600; color: var(--muted); }
.stat-entries b { color: var(--text); }

/* Level ladder */
.ladder {
  grid-area: ladder; list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none;
}
.ladder::-webkit-scrollbar { display: none; }
.ladder li {
  flex: 1 0 auto; min-width: 4.6rem; text-align: center; padding: 0.35rem 0.4rem; border-radius: 0.6rem;
  background: var(--panel); border-top: 3px solid var(--c, var(--line));
  font-variant-numeric: tabular-nums; font-size: clamp(0.72rem, 0.95vw, 0.95rem); color: var(--muted);
}
.ladder li b { display: block; color: var(--text); font-size: 1.1em; }
.ladder li[data-phase='rebuy'] { --c: #38bdf8; }
.ladder li[data-phase='postflop'] { --c: #4ade80; }
.ladder li[data-phase='accel'] { --c: #fbbf24; }
.ladder li[data-phase='kill'] { --c: #f87171; }
.ladder li[data-phase='break'] { --c: #c4b5fd; }
.ladder li.is-past { opacity: 0.35; }
.ladder li.is-projected b { color: var(--faint); font-style: italic; }
.ladder li.is-current { background: color-mix(in srgb, var(--c) 28%, transparent); color: var(--text); outline: 2px solid var(--c); }

/* Controls */
.controls { grid-area: controls; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.btn {
  border: 1px solid var(--line); background: var(--panel-strong); border-radius: 0.8rem;
  padding: 0.75rem 1.05rem; font-weight: 800; letter-spacing: 0.06em; font-size: clamp(0.8rem, 1vw, 1rem);
  cursor: pointer; touch-action: manipulation; min-height: 2.9rem;
}
.btn:hover { background: rgba(255, 255, 255, 0.15); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #07110d; border-color: transparent; min-width: 8.5rem; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn-accent { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-small { padding: 0.35rem 0.7rem; min-height: 0; }
[hidden] { display: none !important; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 6.5rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0.8rem 0.6rem 1.1rem;
  background: #1d2a25; border: 1px solid var(--line); border-radius: 0.9rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  font-weight: 700; z-index: 10; max-width: calc(100vw - 2rem);
}

/* Dialogs */
.sheet {
  width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  border: 1px solid var(--line); border-radius: 1.2rem; padding: 0;
  background: #121b18; color: var(--text);
}
.sheet-wide { width: min(46rem, calc(100vw - 2rem)); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.sheet form { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.sheet h2 { margin: 0; font-size: 1.35rem; letter-spacing: 0.02em; }
.sheet h3 { margin: 0 0 0.3rem; font-size: 0.95rem; letter-spacing: 0.1em; color: var(--muted); }
.hint, .note { margin: 0; color: var(--muted); line-height: 1.45; font-size: 0.95rem; }
.note { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.field input {
  width: 100%; min-width: 0; padding: 0.6rem 0.7rem; border-radius: 0.6rem; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-size: 1.15rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stepper { display: flex; gap: 0.3rem; }
.stepper input { text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  flex: 0 0 2.6rem; border-radius: 0.6rem; border: 1px solid var(--line); background: var(--panel-strong);
  font-size: 1.3rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.money summary { cursor: pointer; color: var(--muted); font-weight: 600; margin-bottom: 0.6rem; }
.checks { display: flex; flex-direction: column; gap: 0.5rem; }
.checks label { display: flex; gap: 0.55rem; align-items: center; }
.checks input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.6rem; }
.summary div { background: var(--panel); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.55rem 0.8rem; }
.summary span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; }
.summary b { font-size: 1.45rem; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
.structure { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.structure th, .structure td { padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.structure th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; }
.structure td:first-child { border-left: 3px solid var(--c, transparent); }
.structure tr[data-phase='postflop'] { --c: #4ade80; }
.structure tr[data-phase='accel'] { --c: #fbbf24; }
.structure tr[data-phase='kill'] { --c: #f87171; }
.structure .changed { color: var(--warn); font-weight: 700; }
.structure .dim { color: var(--muted); }
.recalc { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Portrait / phone: one column, stats as a strip. */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    grid-template-areas: 'top' 'hero' 'stats' 'ladder' 'controls';
  }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
  .blinds { font-size: clamp(3rem, 19vw, 11rem); }
  .countdown { font-size: clamp(4rem, 26vw, 16rem); }
  .level-label { font-size: clamp(1.3rem, 6vw, 3rem); }
  .next { font-size: clamp(1.1rem, 5vw, 2.4rem); }
  .stat-value { font-size: clamp(1.4rem, 6vw, 2.6rem); }
  .controls .btn { flex: 1 1 calc(33% - 0.5rem); padding: 0.7rem 0.4rem; }
  .controls .btn-primary { flex-basis: 100%; }
}
.sheet h2:focus { outline: none; }

.ante { font-weight: 800; letter-spacing: 0.1em; color: var(--accent); font-size: clamp(1.1rem, min(3vw, 4.5vh), 3rem); font-variant-numeric: tabular-nums; }
.field select {
  width: 100%; padding: 0.6rem 0.7rem; border-radius: 0.6rem; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-size: 1rem; font-weight: 600;
}
.ladder li i { display: block; font-style: normal; font-size: 0.85em; color: var(--accent); }

/* ---------- app pages (games, players, debts, cash) ---------- */
body.page { --accent: #4ade80; }
body.tv .controls, body.tv .topbar a.icon-btn { display: none; }
a { color: var(--accent); }
a.icon-btn { display: inline-grid; place-items: center; text-decoration: none; color: var(--text); }
.icon-btn[aria-pressed='true'][data-do='tv'] { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.offline { color: var(--danger); font-weight: 800; letter-spacing: 0.1em; }
.btn-finish { background: var(--warn); color: #1a1405; border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-big { font-size: 1.05rem; padding: 1rem 1.4rem; }

.nav {
  display: flex; align-items: center; gap: 0.25rem 1rem; flex-wrap: wrap;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); z-index: 5;
}
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 0.3rem 0.1rem; }
.nav a.is-active { color: var(--text); border-bottom: 2px solid var(--accent); }
.nav .brand { color: var(--text); font-size: 1.15rem; margin-right: 0.5rem; }
.nav [data-logout] { margin-left: auto; }

.content { max-width: 60rem; margin: 0 auto; padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 4rem; }
.content h1 { font-size: 1.6rem; margin: 0.4rem 0 0.6rem; }
.content h2 { font-size: 1.05rem; letter-spacing: 0.06em; color: var(--muted); margin: 2rem 0 0.7rem; }
.muted { color: var(--muted); }
.pos { color: #4ade80; font-weight: 700; }
.neg { color: var(--danger); font-weight: 700; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.1rem; }

.create { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.create .btn { flex: 1 1 14rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; }
.game-card { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; color: var(--text); }
.game-card:hover { background: var(--panel-strong); }
.game-card b { font-size: 1.15rem; }
.tag { align-self: flex-start; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 99px; }
.tag-tournament { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }
.tag-cash { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.list li > a, .list li { display: flex; align-items: center; gap: 0.4rem 0.8rem; flex-wrap: wrap; }
.list li > a { text-decoration: none; color: var(--text); padding: 0.7rem 0.9rem; border-radius: 0.8rem; background: var(--panel); width: 100%; }
.list li > a:hover { background: var(--panel-strong); }
.list.log li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.list.log li button { margin-left: auto; }

.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 0.55rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 700; }
.table tr.is-hidden, .table tr.is-out { opacity: 0.5; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 0.3rem; }

.add-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin: 0.8rem 0; }
.add-row input, .add-row select, .chips-input, .field select {
  padding: 0.6rem 0.7rem; border-radius: 0.6rem; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; min-width: 0;
}
.add-row input, .add-row select { flex: 1 1 10rem; }
.chips-input { width: 8.5rem; font-weight: 700; font-size: 1.05rem; }

.game-head { display: flex; align-items: baseline; gap: 0.3rem 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.game-head h1 { margin: 0; }
.count-card { margin-top: 1.4rem; }
.count-card h2 { margin: 0 0 0.4rem; }
.count-card.is-ok { border-color: rgba(74, 222, 128, 0.5); }
.danger-zone { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1rem; }

.transfers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.transfers li { display: flex; align-items: center; gap: 0.8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.9rem; font-size: 1.05rem; }
.transfers .amount { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.all-settled { font-size: 1.2rem; color: #4ade80; font-weight: 700; }
.manual summary { cursor: pointer; color: var(--muted); }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(24rem, 100%); display: flex; flex-direction: column; gap: 1rem; }
.login-card h1 { margin: 0; }
.error { color: var(--danger); margin: 0; }

/* pickers in sheets */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.4rem; max-height: 40vh; overflow: auto; }
.new-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.4rem; margin-top: 0.4rem; }
.pick { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; background: var(--panel); border: 1px solid var(--line); color: var(--text); font-weight: 600; cursor: pointer; }
.pick:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.pick input { accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.pick small { margin-left: auto; font-size: 0.75rem; }
.pick-new small { color: var(--accent); }
.picked-count { color: var(--text); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0.5rem; }
.pick-btn { min-height: 3.4rem; font-size: 1rem; letter-spacing: 0.02em; }
.pick-btn.is-on { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.pick-btn small { color: var(--muted); font-weight: 600; }
.pick-counter { display: flex; gap: 0.3rem; }
.pick-counter .pick-btn { flex: 1; }
.pick-counter.is-out .pick-btn { opacity: 0.55; }
.row-between { display: flex; justify-content: space-between; gap: 0.5rem; }
.device { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.6rem 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; }
.device legend { color: var(--muted); font-weight: 700; font-size: 0.85rem; padding: 0 0.3rem; }
.device label { display: flex; gap: 0.55rem; align-items: center; }
.device input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.sheet .field > span:first-child { font-size: 0.85rem; }
.structure tr[data-phase='rebuy'] { --c: #38bdf8; }

@media (max-width: 640px) {
  .cash-table thead { display: none; }
  .cash-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .cash-table td { border: 0; padding: 0.1rem 0; }
  .cash-table td.row-actions { text-align: left; }
}

/* fees, percents, player card */
.fees { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.6rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.fees legend { color: var(--muted); font-weight: 700; font-size: 0.85rem; padding: 0 0.3rem; }
.fee-row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.fee-row .switch { display: flex; gap: 0.45rem; align-items: center; min-width: 9rem; }
.fee-row .switch input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.fee-row select { flex: 1 1 10rem; padding: 0.5rem 0.6rem; border-radius: 0.6rem; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; }
.fees-card { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.fees-card .fees { width: 100%; }
.percents { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pct { display: flex; align-items: center; gap: 0.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.25rem 0.4rem; }
.pct small { color: var(--muted); font-weight: 700; }
.pct input { width: 4.2rem; padding: 0.4rem; border-radius: 0.5rem; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-weight: 700; text-align: right; }
.big-balance { font-size: 1.6rem; }
.summary small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.link-card { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.voice-table td:first-child { white-space: nowrap; }
.voice-table td:nth-child(2) { line-height: 1.45; }
code { font-family: var(--mono); font-size: 0.9em; color: var(--accent); }
.cash-table .row-actions .btn { margin: 0.1rem; }
.prize-stat { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.prize-stat .stat-label { color: var(--warn); }
.prize-list { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.prize-list li { display: flex; align-items: baseline; gap: 0.6rem; font-variant-numeric: tabular-nums; }
.prize-list span { color: var(--muted); font-weight: 700; font-size: clamp(0.85rem, 1.2vw, 1.15rem); min-width: 5.2em; }
.prize-list b { font-size: clamp(1.2rem, min(2.4vw, 3.6vh), 2.4rem); font-weight: 800; }
.prize-list small { margin-left: auto; color: var(--faint); font-weight: 600; }

/* avatars, sign-ups */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-strong); color: var(--muted); font-weight: 800; font-size: 0.75rem; vertical-align: middle; }
.avatar-xs { width: 1.4rem; height: 1.4rem; font-size: 0.6rem; }
.avatar-sm { width: 2rem; height: 2rem; }
.avatar-lg { width: 4rem; height: 4rem; font-size: 1.2rem; }
.who { display: flex; align-items: center; gap: 0.6rem; }
.pick-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.player-head { align-items: center; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.people li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; background: var(--panel); border-radius: 0.7rem; }
.people li button { margin-left: auto; }
.people.is-dim li { opacity: 0.55; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }
.event-actions .limit { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-weight: 700; }
.event-actions .limit .stepper input { width: 3.5rem; padding: 0.45rem; border-radius: 0.6rem; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--text); font: inherit; font-weight: 700; }
.pick .avatar { margin-right: -0.1rem; }
