/* ── Reset & Variables ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #0f172a;
  --surface: #1e293b;
  --surface2:#263347;
  --border:  #334155;
  --text:    #f1f5f9;
  --muted:   #94a3b8;
  --accent:  #dc2626;
  --accent2: #ef4444;
  --pos:     #22c55e;
  --neg:     #ef4444;
  --c0: #ef4444;
  --c1: #3b82f6;
  --c2: #22c55e;
  --c3: #f59e0b;
  --radius:  12px;
  --radius-sm: 8px;
  --shadow:  0 4px 24px rgba(0,0,0,.45);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* ── Screens ───────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.screen.active { display: flex; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  height: 48px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); opacity: .85; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-secondary{ background: var(--surface2); color: var(--text); }
.btn-lg       { height: 54px; font-size: 17px; }
.btn-full     { width: 100%; }
.btn-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--text); font-size: 20px;
  cursor: pointer; border-radius: 50%;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:active { background: var(--surface2); }

/* ── Home Screen ───────────────────────────────────── */
.home-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 48px;
}
.logo-block {
  text-align: center;
}
.logo-tile {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 16px rgba(220,38,38,.4));
}
.logo-block h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
.home-actions {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.join-row {
  display: flex;
  gap: 8px;
}
#join-code-input {
  flex: 1;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
  outline: none;
}
#join-code-input:focus { border-color: var(--accent); }

.error-msg {
  color: var(--neg);
  font-size: 13px;
  text-align: center;
}

/* ── Setup Screen ──────────────────────────────────── */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.screen-header h2 { font-size: 18px; font-weight: 700; }

.setup-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.setup-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setup-section h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.player-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pname-input {
  flex: 1;
  height: 44px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  padding: 0 12px;
  outline: none;
}
.pname-input:focus { border-color: var(--accent); }

.setting-row, .expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setting-row label, .expense-row label {
  font-size: 15px;
  color: var(--text);
}
.setting-num {
  width: 90px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  text-align: right;
  padding: 0 10px;
  outline: none;
}
.setting-num:focus { border-color: var(--accent); }

.section-toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-switch {
  position: relative;
  width: 48px; height: 28px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 14px;
  transition: background .2s;
}
.slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; top: 4px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .slider { background: var(--accent); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

.hint { font-size: 13px; color: var(--muted); }

.couples-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.couple-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.team-label {
  font-size: 13px;
  font-weight: 700;
  min-width: 54px;
}
.couple-sel {
  flex: 1;
  height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 0 8px;
  outline: none;
  min-width: 80px;
}
.plus-sign { color: var(--muted); font-size: 16px; }
.vs-divider { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.pair-b-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.code-preview {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.code-badge-lg {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
}

/* ── Game Screen ───────────────────────────────────── */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.code-chip {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  padding: 4px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.code-chip:active { opacity: .7; }
.game-title { font-size: 17px; font-weight: 700; }

/* ── Tabs ──────────────────────────────────────────── */
.tab-bar {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.tab.active {
  color: var(--text);
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.tab-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 90px;
}
.tab-pane.active { display: block; }

/* ── Scoreboard ────────────────────────────────────── */
#scoreboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 4px solid transparent;
}
.score-card.rank-1 { border-color: #f59e0b; }
.rank-badge {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.score-player-info { flex: 1; min-width: 0; }
.score-name {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-wins { font-size: 12px; color: var(--muted); margin-top: 2px; }
.score-pts {
  font-size: 22px;
  font-weight: 800;
  text-align: right;
  flex-shrink: 0;
}
.score-pts.pos { color: var(--pos); }
.score-pts.neg { color: var(--neg); }
.score-pts.zero { color: var(--muted); }

/* ── History ───────────────────────────────────────── */
#history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 48px;
  font-size: 15px;
}
.round-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.round-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  min-width: 28px;
  padding-top: 2px;
}
.round-info { flex: 1; }
.round-headline {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.round-deltas {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.delta-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface2);
}
.delta-pill.pos { color: var(--pos); }
.delta-pill.neg { color: var(--neg); }
.delta-pill.zero { color: var(--muted); }
.btn-del-round {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}
.btn-del-round:active { color: var(--neg); background: var(--surface2); }

/* ── Chart ─────────────────────────────────────────── */
.chart-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 8px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chart-empty {
  color: var(--muted);
  font-size: 15px;
}

/* ── Money ─────────────────────────────────────────── */
#money-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.money-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  padding: 0 4px;
  margin-bottom: -6px;
}
.money-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.money-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.money-row:last-child { border-bottom: none; }
.money-color-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.money-name { flex: 1; font-size: 15px; font-weight: 600; }
.money-pts { font-size: 13px; color: var(--muted); margin-right: 8px; }
.money-amt {
  font-size: 17px;
  font-weight: 700;
}
.money-amt.pos { color: var(--pos); }
.money-amt.neg { color: var(--neg); }
.money-amt.zero { color: var(--muted); }

.transfer-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.transfer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.transfer-from { font-weight: 700; }
.transfer-arrow { color: var(--muted); flex: 1; text-align: center; }
.transfer-to { font-weight: 700; }
.transfer-amt { font-weight: 700; color: var(--accent); }
.transfer-empty { color: var(--muted); font-size: 14px; }

.couples-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.couple-row {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.couple-row:last-child { border-bottom: none; }
.couple-names { flex: 1; font-size: 15px; font-weight: 600; }
.couple-amt {
  font-size: 17px;
  font-weight: 700;
}
.couple-amt.pos { color: var(--pos); }
.couple-amt.neg { color: var(--neg); }
.couple-amt.zero { color: var(--muted); }

/* ── FAB ───────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 32px;
  line-height: 1;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(220,38,38,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}
.fab:active { transform: scale(.93); box-shadow: 0 2px 10px rgba(220,38,38,.4); }

/* ── Dropdown Menu ─────────────────────────────────── */
.dropdown {
  position: fixed;
  top: 56px;
  right: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 200;
  min-width: 160px;
}
.dropdown button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dropdown button:active { background: var(--border); }
.dropdown button + button { border-top: 1px solid var(--border); }

/* ── Modals ────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.modal-sheet {
  position: relative;
  width: 100%;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s ease;
}
.modal-sm { max-height: 60vh; }

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}
.modal-header h3 { font-size: 17px; font-weight: 700; }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 24px;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 12px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background .2s, transform .2s;
}
.dot.active { background: var(--accent); transform: scale(1.3); }
.dot.done   { background: var(--muted); }

/* ── Wizard Steps ──────────────────────────────────── */
.wiz-step { display: flex; flex-direction: column; gap: 14px; }
.wiz-step.hidden { display: none; }

.step-q {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
}

/* Player grid (winner / special) */
.player-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-player {
  padding: 18px 10px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  background: var(--surface2);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.btn-player .pdot {
  width: 14px; height: 14px;
  border-radius: 50%;
}
.btn-player:active { opacity: .8; }
.btn-player.selected { border-color: var(--accent); background: rgba(220,38,38,.15); }

/* Fan grid */
.fan-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.btn-fan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  background: var(--surface2);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s;
  -webkit-tap-highlight-color: transparent;
  gap: 3px;
}
.btn-fan .fan-num { font-size: 20px; font-weight: 800; }
.btn-fan .fan-pts { font-size: 10px; color: var(--muted); }
.btn-fan:active { opacity: .8; }
.btn-fan.selected { border-color: var(--accent); background: rgba(220,38,38,.15); }

/* Win type */
.wintype-list { display: flex; flex-direction: column; gap: 10px; }
.btn-wintype {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface2);
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-wintype:active { opacity: .8; }
.btn-wintype.selected { border-color: var(--accent); background: rgba(220,38,38,.15); }
.wt-icon {
  font-size: 26px;
  width: 40px;
  text-align: center;
  font-weight: 800;
}
.wt-text { flex: 1; }
.wt-text strong { font-size: 16px; display: block; }
.wt-text small   { font-size: 12px; color: var(--muted); margin-top: 2px; display: block; }
.wt-multi {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* Round preview (confirm step) */
#round-preview {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-headline {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}
.preview-deltas {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.preview-name { flex: 1; font-weight: 600; }
.preview-pts { font-weight: 700; }
.preview-pts.pos { color: var(--pos); }
.preview-pts.neg { color: var(--neg); }
.preview-pts.zero { color: var(--muted); }

/* ── Expenses Modal ────────────────────────────────── */
.expense-row { padding: 10px 0; }
.expense-row label { font-size: 15px; }

/* ── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  z-index: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: fadeToast .2s ease;
}
.toast.hidden { display: none; }
@keyframes fadeToast {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Player Search Slots ───────────────────────────── */
.player-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.slot-wrap {
  flex: 1;
  position: relative;
}
.slot-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 50;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 200px;
  overflow-y: auto;
}
.slot-opt {
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}
.slot-opt:last-child { border-bottom: none; }
.slot-opt:active, .slot-opt:hover { background: var(--border); }
.slot-opt.create-opt { color: var(--accent); }
.slot-opt .opt-sub { font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.slot-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.slot-clear:active { color: var(--neg); background: var(--surface2); }
.pname-input.slot-locked {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(220,38,38,.08);
}

/* ── List body (stats / profile / awards) ──────────── */
.list-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Stats screen ──────────────────────────────────── */
.stats-player-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.stats-player-card:active { background: var(--surface2); }
.stats-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.stats-info { flex: 1; min-width: 0; }
.stats-name {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.stats-arrow { color: var(--muted); font-size: 18px; }
.stats-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 60px;
}

/* ── Profile screen ────────────────────────────────── */
.profile-header-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.profile-avatar-lg {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.profile-name-lg { font-size: 22px; font-weight: 800; }
.profile-since { font-size: 12px; color: var(--muted); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat-tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-tile-val {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
.stat-tile-val.pos { color: var(--pos); }
.stat-tile-val.neg { color: var(--neg); }
.stat-tile-lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  padding: 0 4px;
}

.profile-game-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pgc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.pgc-date { color: var(--muted); font-size: 12px; }
.pgc-pts {
  font-size: 18px;
  font-weight: 800;
}
.pgc-pts.pos { color: var(--pos); }
.pgc-pts.neg { color: var(--neg); }
.pgc-stats { font-size: 12px; color: var(--muted); }

/* ── Awards screen ─────────────────────────────────── */
.award-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.award-icon {
  font-size: 32px;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.award-info { flex: 1; }
.award-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 4px;
}
.award-winner {
  font-size: 18px;
  font-weight: 800;
}
.award-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.awards-rounds-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 4px;
}

/* ── Misc ──────────────────────────────────────────── */
.hidden { display: none !important; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

input[type=number]::-webkit-inner-spin-button { opacity: 1; }
