@import url('https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Sans+SC:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0F1923;
  --bg2: #162030;
  --bg3: #1C2A3A;
  --card: #1E2D3E;
  --card2: #253648;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #EEE8D8;
  --muted: #7A8FA0;
  --gold: #F5A623;
  --gold2: #FFC85A;
  --gold-dim: rgba(245,166,35,0.15);
  --green: #3EC97A;
  --green-dim: rgba(62,201,122,0.12);
  --red: #F06060;
  --red-dim: rgba(240,96,96,0.12);
  --blue: #4EA8DE;
  --blue-dim: rgba(78,168,222,0.12);
  --purple: #A78BFA;
  --purple-dim: rgba(167,139,250,0.12);
  --orange: #FB923C;
  --orange-dim: rgba(251,146,60,0.12);
  --teal: #2DD4BF;
  --teal-dim: rgba(45,212,191,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --font: 'Noto Sans SC', sans-serif;
  --font-title: 'ZCOOL XiaoWei', serif;
}

html, body {
  height: 100%; background: var(--bg);
  color: var(--text); font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* ===== SCREENS ===== */
.screen { display: none; height: 100dvh; flex-direction: column; }
.screen.show { display: flex; }

/* ===== LOGIN ===== */
.login-wrap {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,166,35,0.12) 0%, transparent 60%), var(--bg);
}
.login-logo { font-family: var(--font-title); font-size: 36px; color: var(--gold); margin-bottom: 6px; text-align: center; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 32px; text-align: center; }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; max-width: 400px; margin-bottom: 24px; }
.profile-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.profile-card:active { transform: scale(0.95); }
.profile-card:hover { border-color: var(--gold); }
.profile-avatar { font-size: 32px; margin-bottom: 8px; }
.profile-name { font-size: 13px; font-weight: 500; }
.profile-pts { font-size: 11px; color: var(--gold); margin-top: 3px; }

.add-profile-btn {
  background: transparent; border: 1.5px dashed var(--border2); border-radius: var(--radius);
  padding: 16px 8px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 22px; transition: border-color 0.2s;
}
.add-profile-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ===== PIN MODAL ===== */
.pin-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pin-box {
  background: var(--card2); border-radius: var(--radius); padding: 28px 24px;
  width: 100%; max-width: 320px; text-align: center;
  border: 1px solid var(--border2);
}
.pin-title { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.pin-sub { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border2); transition: all 0.15s; }
.pin-dot.filled { background: var(--gold); border-color: var(--gold); }
.pin-numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pin-btn {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; font-size: 18px; font-weight: 500; cursor: pointer; color: var(--text);
  font-family: var(--font); transition: all 0.12s;
}
.pin-btn:active { background: var(--gold-dim); border-color: var(--gold); transform: scale(0.93); }
.pin-btn.del { font-size: 16px; color: var(--muted); }
.pin-btn.empty { visibility: hidden; }
.pin-cancel { background: transparent; border: none; color: var(--muted); font-size: 13px; margin-top: 12px; cursor: pointer; font-family: var(--font); width: 100%; }

/* ===== APP SHELL ===== */
.app-shell { display: flex; flex-direction: column; height: 100dvh; }

.top-bar {
  background: var(--bg2); border-bottom: 0.5px solid var(--border);
  padding: 12px 16px 10px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.top-left { display: flex; align-items: center; gap: 10px; }
.user-avatar { font-size: 22px; cursor: pointer; }
.user-name { font-size: 15px; font-weight: 500; }
.top-date { font-size: 11px; color: var(--muted); }
.top-badges { display: flex; gap: 7px; align-items: center; }
.badge {
  display: flex; align-items: center; gap: 4px;
  border-radius: 20px; padding: 5px 11px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: opacity 0.15s;
}
.badge-pts { background: var(--gold-dim); color: var(--gold); border-color: rgba(245,166,35,0.3); }
.badge-game { background: var(--purple-dim); color: var(--purple); border-color: rgba(167,139,250,0.3); }

/* ===== NAV TABS ===== */
.nav-tabs {
  display: flex; background: var(--bg2); border-bottom: 0.5px solid var(--border);
  overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  flex-shrink: 0; padding: 10px 14px; font-size: 13px; color: var(--muted);
  cursor: pointer; border-bottom: 2.5px solid transparent;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
  transition: all 0.15s;
}
.nav-tab.active { color: var(--text); font-weight: 500; border-bottom-color: var(--gold); }

/* ===== CONTENT ===== */
.content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.page { display: none; padding: 16px; animation: fadeUp 0.2s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ===== SECTION TITLE ===== */
.sec { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* ===== CARDS ===== */
.card { background: var(--card); border-radius: var(--radius); border: 0.5px solid var(--border); }
.p16 { padding: 16px; }

/* ===== SUMMARY GRID ===== */
.sum-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.sum-item { border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; }
.sum-num { font-size: 20px; font-weight: 700; }
.sum-lbl { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* ===== PROGRESS ===== */
.prog-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.prog-lbl { font-size: 13px; min-width: 68px; }
.prog-wrap { flex: 1; height: 7px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.prog-bar { height: 100%; border-radius: 4px; transition: width 0.5s cubic-bezier(.4,0,.2,1); }
.prog-val { font-size: 12px; color: var(--muted); min-width: 32px; text-align: right; }

/* ===== WEEK CALENDAR ===== */
.week-row { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 16px; }
.week-day { text-align: center; flex: 1; }
.week-name { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.week-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  margin: 0 auto; border: 1px solid var(--border); color: var(--muted);
}
.week-circle.done { background: var(--green); color: #0F1923; border-color: var(--green); font-size: 14px; }
.week-circle.today { background: var(--gold); color: #0F1923; border-color: var(--gold); font-weight: 700; }

/* ===== TASK CARDS ===== */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 10px; margin-bottom: 12px; }
.task-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 14px; cursor: pointer; transition: transform 0.12s, border-color 0.2s; position: relative;
  -webkit-user-select: none; user-select: none;
}
.task-card:active { transform: scale(0.95); }
.task-card.done { border-color: rgba(62,201,122,0.4); background: linear-gradient(135deg, rgba(62,201,122,0.06), var(--card)); }
.task-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 9px; }
.task-name { font-size: 13px; font-weight: 500; line-height: 1.3; margin-bottom: 3px; }
.task-sub { font-size: 11px; color: var(--muted); }
.task-pts-tag { font-size: 11px; color: var(--gold); font-weight: 500; margin-top: 4px; }
.check-ring {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border2); background: var(--bg3);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  color: transparent; transition: all 0.2s; z-index: 2;
}
.task-card.done .check-ring { background: var(--green); border-color: var(--green); color: #0F1923; animation: popIn 0.3s ease; }
@keyframes popIn { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* Bad task card */
.bad-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s;
}
.bad-card:active { transform: scale(0.98); }
.bad-card:hover { border-color: rgba(240,96,96,0.4); }
.bad-emoji { font-size: 22px; }
.bad-info { flex: 1; }
.bad-name { font-size: 14px; }
.bad-pts { font-size: 11px; color: var(--red); margin-top: 2px; }
.bad-btn {
  background: var(--red-dim); color: var(--red); border: 1px solid rgba(240,96,96,0.3);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: var(--font); transition: all 0.15s; white-space: nowrap;
}
.bad-btn:active { background: var(--red); color: white; transform: scale(0.95); }

/* Habit row */
.habit-row {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; cursor: pointer; transition: border-color 0.2s;
}
.habit-row.done { border-color: rgba(62,201,122,0.4); }
.habit-emoji { font-size: 20px; }
.habit-name { flex: 1; font-size: 13px; }
.habit-dots { display: flex; gap: 4px; }
.h-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg3); }
.h-dot.on { background: var(--green); }
.habit-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border2); background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent; transition: all 0.2s;
}
.habit-row.done .habit-check { background: var(--green); border-color: var(--green); color: #0F1923; }

/* ===== SPORT ===== */
.sport-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 10px; margin-bottom: 14px; }
.sport-card { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 12px; }
.sport-emoji { font-size: 24px; margin-bottom: 5px; }
.sport-name { font-size: 12px; color: var(--muted); }
.sport-val { font-size: 22px; font-weight: 700; margin: 3px 0 1px; }
.sport-unit { font-size: 11px; color: var(--muted); }
.sport-input-row { display: flex; gap: 5px; margin-top: 7px; }
.sport-input {
  flex: 1; border: 1px solid var(--border2); border-radius: 7px;
  padding: 5px 7px; font-size: 12px; background: var(--bg3); color: var(--text);
  outline: none; font-family: var(--font);
}
.sport-input:focus { border-color: var(--gold); }
.save-btn {
  background: var(--gold); color: #0F1923; border: none;
  border-radius: 7px; padding: 5px 9px; font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: opacity 0.15s;
}
.save-btn:active { opacity: 0.75; }

/* ===== SHOP ===== */
.shop-header {
  background: linear-gradient(135deg, rgba(245,166,35,0.15), rgba(167,139,250,0.1));
  border: 1px solid rgba(245,166,35,0.25); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; display: flex; align-items: center; gap: 14px;
}
.shop-pts-big { font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1; }
.shop-pts-lbl { font-size: 12px; color: var(--muted); }
.shop-yuan { font-size: 13px; color: var(--gold2); margin-top: 3px; }

.cat-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-tab {
  border: 1px solid var(--border2); border-radius: 20px;
  padding: 5px 12px; font-size: 12px; cursor: pointer;
  background: var(--card); color: var(--muted); font-family: var(--font);
  transition: all 0.15s;
}
.cat-tab.active { background: var(--gold-dim); border-color: rgba(245,166,35,0.5); color: var(--gold); font-weight: 500; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 10px; margin-bottom: 14px; }
.shop-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: transform 0.12s, border-color 0.2s;
}
.shop-item:active { transform: scale(0.95); }
.shop-item:hover { border-color: rgba(245,166,35,0.4); }
.shop-emoji { font-size: 32px; margin-bottom: 8px; }
.shop-name { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.shop-desc { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.shop-price { display: flex; align-items: center; justify-content: space-between; }
.shop-pts-tag { font-size: 13px; font-weight: 700; color: var(--gold); }
.shop-yuan-tag { font-size: 11px; color: var(--muted); }
.redeem-btn {
  width: 100%; margin-top: 10px; background: var(--gold); color: #0F1923;
  border: none; border-radius: 8px; padding: 8px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: opacity 0.15s;
}
.redeem-btn:active { opacity: 0.75; }
.redeem-btn:disabled { background: var(--bg3); color: var(--muted); cursor: not-allowed; }

/* Orders */
.order-row {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.order-emoji { font-size: 22px; }
.order-info { flex: 1; }
.order-name { font-size: 13px; font-weight: 500; }
.order-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.order-status {
  font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 500;
}
.status-pending { background: var(--gold-dim); color: var(--gold); }
.status-confirmed { background: var(--green-dim); color: var(--green); }

/* ===== POINTS LOG ===== */
.log-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 0.5px solid var(--border);
}
.log-row:last-child { border-bottom: none; }
.log-icon { font-size: 18px; width: 28px; text-align: center; }
.log-reason { flex: 1; font-size: 13px; }
.log-date { font-size: 11px; color: var(--muted); }
.log-amt { font-size: 14px; font-weight: 700; }
.log-earn { color: var(--green); }
.log-spend { color: var(--red); }
.log-deduct { color: var(--red); }

/* ===== GAME PANEL ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200;
  display: flex; align-items: flex-end;
}
.bottom-sheet {
  width: 100%; background: var(--card2); border-radius: 24px 24px 0 0;
  padding: 24px 20px 40px; border: 1px solid var(--border2); border-bottom: none;
  animation: slideUp 0.3s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:none} }
.sheet-title { font-family: var(--font-title); font-size: 22px; color: var(--purple); margin-bottom: 3px; }
.sheet-sub { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.time-display {
  text-align: center; background: var(--purple-dim); border-radius: var(--radius);
  border: 1px solid rgba(167,139,250,0.25); padding: 20px; margin-bottom: 16px;
}
.time-big { font-size: 52px; font-weight: 700; color: var(--purple); font-variant-numeric: tabular-nums; }
.time-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.earn-breakdown { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.earn-chip { background: var(--bg3); border-radius: 8px; border: 0.5px solid var(--border); padding: 5px 10px; font-size: 12px; color: var(--muted); }
.earn-chip strong { color: var(--purple); }
.use-btns { display: flex; gap: 8px; }
.use-btn {
  flex: 1; background: var(--purple-dim); color: var(--purple);
  border: 1px solid rgba(167,139,250,0.35); border-radius: 10px;
  padding: 11px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: var(--font);
  transition: all 0.15s;
}
.use-btn:active { background: var(--purple); color: white; }
.use-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.close-sheet-btn {
  width: 100%; margin-top: 10px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px; font-size: 13px; cursor: pointer; font-family: var(--font); color: var(--muted);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 250;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--card2); border-radius: var(--radius); padding: 22px;
  width: 100%; max-width: 360px; border: 1px solid var(--border2);
  animation: fadeUp 0.2s ease;
}
.modal h3 { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.m-input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px;
  padding: 9px 11px; font-size: 14px; color: var(--text); margin-bottom: 10px;
  outline: none; font-family: var(--font);
}
.m-input:focus { border-color: var(--gold); }
.modal-btns { display: flex; gap: 8px; margin-top: 4px; }
.modal-btns button { flex: 1; padding: 10px; border-radius: 8px; font-size: 14px; cursor: pointer; font-family: var(--font); font-weight: 500; }
.btn-cancel { background: var(--bg3); border: 1px solid var(--border); color: var(--muted); }
.btn-ok { background: var(--gold); border: none; color: #0F1923; }

/* ===== TOAST ===== */
.toast {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  background: var(--card2); color: var(--text); border: 1px solid var(--border2);
  border-radius: 20px; padding: 9px 18px; font-size: 13px; font-weight: 500;
  z-index: 400; white-space: nowrap; box-shadow: var(--shadow);
  animation: toastIn 0.25s ease, toastOut 0.3s ease 1.9s forwards; pointer-events: none;
}
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(-8px)} to{opacity:1;transform:translateX(-50%)} }
@keyframes toastOut { to{opacity:0} }

/* ===== ADD BUTTON ===== */
.add-row-btn {
  width: 100%; background: transparent; border: 1.5px dashed var(--border2);
  border-radius: var(--radius); padding: 11px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; font-family: var(--font); margin-bottom: 8px; transition: all 0.15s;
}
.add-row-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ===== CONFETTI ===== */
.cf { position:fixed; width:9px; height:9px; top:-10px; border-radius:2px; pointer-events:none; z-index:999; animation:cfFall var(--dur) ease-in forwards; }
@keyframes cfFall { to{top:110%;transform:translateX(var(--dx)) rotate(var(--rot));opacity:0} }

/* ===== QUICK SHORTCUTS ===== */
.shortcut-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:14px; }
.shortcut {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; display:flex; align-items:center; gap:10px;
  transition: border-color 0.2s;
}
.shortcut:hover { border-color: var(--gold); }
.shortcut:active { transform:scale(0.96); }

/* ===== EXPLORE ===== */
.doc-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:12px; }
.doc-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px; cursor:pointer; }
.doc-tag { display:inline-block; font-size:10px; padding:2px 8px; border-radius:10px; margin-bottom:7px; font-weight:500; }
.doc-name { font-size:13px; font-weight:500; line-height:1.4; margin-bottom:3px; }
.doc-sub { font-size:11px; color:var(--muted); }
.travel-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
.travel-card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:14px; text-align:center; cursor:pointer; }
.travel-card.visited { border-color:rgba(62,201,122,0.4); background:linear-gradient(135deg,rgba(62,201,122,0.05),var(--card)); }

/* ===== REPORT ===== */
.report-card {
  background: linear-gradient(135deg, #2D1F5E, #1A2A4A);
  border: 1px solid rgba(167,139,250,0.3); border-radius: var(--radius);
  padding: 18px; margin-bottom: 12px; color: var(--text);
}
.report-title { font-family: var(--font-title); font-size: 20px; color: var(--purple); margin-bottom: 8px; }
.report-body { font-size: 13px; line-height: 1.9; opacity: 0.92; }
.dots-anim span { display:inline-block; animation:dotB 1.2s infinite; }
.dots-anim span:nth-child(2){animation-delay:0.2s}
.dots-anim span:nth-child(3){animation-delay:0.4s}
@keyframes dotB{0%,80%,100%{transform:none;opacity:0.4}40%{transform:translateY(-4px);opacity:1}}

/* ===== PARENT MODE INDICATOR ===== */
.parent-bar {
  background: linear-gradient(90deg, rgba(240,96,96,0.15), rgba(245,166,35,0.1));
  border-bottom: 1px solid rgba(240,96,96,0.3);
  padding: 6px 16px; font-size: 12px; color: var(--red);
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}

/* ===== SPORT V2 ===== */
.sport-row {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; margin-bottom: 9px;
  display: flex; align-items: center; gap: 12px;
}
.sport-row-icon { font-size: 24px; flex-shrink: 0; }
.sport-row-info { flex: 1; min-width: 0; }
.sport-row-name { font-size: 13px; color: var(--muted); }
.sport-row-val { font-size: 22px; font-weight: 700; line-height: 1.2; }
.sport-row-unit { font-size: 11px; color: var(--muted); }
.sport-row-pts { font-size: 11px; color: var(--gold); font-weight: 500; margin-top: 2px; }
.sport-row-input { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.sport-row-input input {
  width: 72px; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 8px; padding: 7px 8px; font-size: 14px; color: var(--text);
  outline: none; font-family: var(--font); text-align: center;
}
.sport-row-input input:focus { border-color: var(--gold); }
.sport-row-input .save-btn { padding: 7px 13px; font-size: 13px; border-radius: 8px; }
.sport-row.recorded { border-color: rgba(62,201,122,0.4); }
.sport-row.recorded .sport-row-val { color: var(--green); }

/* chart metric pill */
.chart-pill {
  font-size: 11px; padding: 3px 9px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  font-family: var(--font); transition: all 0.15s;
}
.chart-pill.active { color: white; border-color: transparent; }

/* game panel buy section */
.buy-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.buy-card {
  background: var(--purple-dim); border: 1px solid rgba(167,139,250,0.3);
  border-radius: var(--radius-sm); padding: 10px 6px; text-align: center; cursor: pointer;
  transition: all 0.15s;
}
.buy-card:active { background: var(--purple); }
.buy-card .bc-mins { font-size: 20px; font-weight: 700; color: var(--purple); }
.buy-card .bc-cost { font-size: 11px; color: var(--muted); margin-top: 2px; }
.buy-card:disabled, .buy-card.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ===== MONTH CALENDAR ===== */
#monthCalWrap { user-select: none; }
#dayDetailPanel {
  animation: fadeUp 0.2s ease;
}
