/* ============================================================
   BT TRACKER — BEACH TENNIS APP
   Design: Sport-Utility Dark with Electric Sand accent
   Font: Barlow Condensed (display) + Barlow (body)
   ============================================================ */

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

:root {
  --bg: #0d0f14;
  --bg2: #13161e;
  --bg3: #1c2030;
  --surface: #1e2235;
  --surface2: #252a3d;
  --border: #2e3450;
  --accent: #f5c842;       /* electric sand / yellow */
  --accent2: #ff6b35;      /* coral orange */
  --team-a: #3b82f6;       /* blue */
  --team-b: #ef4444;       /* red */
  --text: #f0f2ff;
  --text2: #8891b0;
  --text3: #555e7a;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --nav-h: 56px;
  --tab-h: 72px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}
.nav-logo-icon { font-size: 20px; }
.nav-logo strong { color: var(--accent); }
.nav-btn {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 900;
  transition: transform .15s;
}
.nav-btn:active { transform: scale(.9); }

/* ── TABBAR ── */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tab-h);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px env(safe-area-inset-bottom, 8px);
  z-index: 100;
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text3);
  font-family: var(--font-body);
  font-size: 11px;
  cursor: pointer;
  padding: 8px 0;
  transition: color .2s;
}
.tab-btn.active { color: var(--accent); }
.tab-icon { font-size: 20px; }
.tab-label { font-size: 11px; font-weight: 500; }
.tab-center {
  background: var(--accent);
  color: var(--bg) !important;
  width: 52px; height: 52px;
  border-radius: 50%;
  flex: 0 0 52px;
  margin-top: -16px;
  box-shadow: 0 4px 16px rgba(245,200,66,.4);
  transition: transform .15s, box-shadow .15s;
}
.tab-center:active { transform: scale(.9); }
.tab-icon-main { font-size: 28px; font-weight: 900; }

/* ── MAIN SCROLL ── */
.app-main {
  position: fixed;
  top: var(--nav-h);
  bottom: var(--tab-h);
  left: 0; right: 0;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s;
  -webkit-overflow-scrolling: touch;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.screen-inner {
  padding: 20px 16px 24px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── DASHBOARD ── */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dash-greeting { color: var(--text2); font-size: 13px; margin-bottom: 4px; }
.dash-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dash-title em { color: var(--accent); font-style: normal; }
.dash-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  min-width: 72px;
}
.dash-badge span { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--accent); }
.dash-badge small { font-size: 11px; color: var(--text2); }

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.qs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.qs-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); }
.qs-label { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* CTA Button */
.cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  margin-bottom: 24px;
  text-transform: uppercase;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(245,200,66,.3);
}
.cta-btn:active { transform: scale(.98); }
.cta-arrow { font-size: 24px; }

/* Section blocks */
.section-block { margin-bottom: 28px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.link-btn { background: none; border: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }

/* Ranking list */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.rank-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp .3s both;
  cursor: pointer;
  transition: background .15s;
}
.rank-item:active { background: var(--surface2); }
.rank-pos { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text3); width: 28px; text-align: center; }
.rank-pos.gold { color: #ffd700; }
.rank-pos.silver { color: #c0c0c0; }
.rank-pos.bronze { color: #cd7f32; }
.rank-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 22px; border: 2px solid var(--border); }
.rank-info { flex: 1; }
.rank-name { font-weight: 600; font-size: 15px; }
.rank-sub { font-size: 12px; color: var(--text2); }
.rank-wr { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--green); }

/* Match list */
.match-list { display: flex; flex-direction: column; gap: 10px; }
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: fadeUp .3s both;
  cursor: pointer;
  transition: background .15s;
}
.match-card:active { background: var(--surface2); }
.match-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.match-date { font-size: 12px; color: var(--text2); }
.match-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.badge-finished { background: rgba(34,197,94,.15); color: var(--green); }
.match-teams { display: flex; align-items: center; gap: 8px; }
.match-team { flex: 1; }
.match-team-name { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.match-team-players { font-size: 12px; color: var(--text2); }
.match-score { font-family: var(--font-display); font-size: 28px; font-weight: 900; text-align: center; padding: 0 10px; display: flex; gap: 6px; align-items: center; }
.match-score .winner-score { color: var(--accent); }
.match-score .loser-score { color: var(--text3); }
.match-score-sep { color: var(--text3); font-size: 20px; }

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: background .15s;
}
.icon-btn:active { background: var(--surface2); }

/* ── PLAYERS GRID ── */
.players-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
  animation: fadeUp .3s both;
}
.player-card:active { transform: scale(.97); }
.player-card-avatar { font-size: 38px; margin-bottom: 10px; width: 64px; height: 64px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; border: 2px solid var(--border); }
.player-card-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.player-card-stats { font-size: 12px; color: var(--text2); }
.player-winrate { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--green); margin-top: 6px; }

/* ── NEW MATCH ── */
.match-setup { display: flex; flex-direction: column; gap: 0; margin-bottom: 20px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.team-card.team-a { border-top: 3px solid var(--team-a); }
.team-card.team-b { border-top: 3px solid var(--team-b); }
.team-label { font-family: var(--font-display); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.team-a .team-label { color: var(--team-a); }
.team-b .team-label { color: var(--team-b); }
.team-slots { display: flex; gap: 10px; }
.player-slot { flex: 1; background: var(--bg3); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.slot-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 8px; border: 2px dashed var(--border); }
.slot-avatar.filled { border-style: solid; border-color: var(--accent); }
.slot-name { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text2); border-radius: 8px; padding: 6px 10px; font-size: 11px; cursor: pointer; width: 100%; transition: background .15s, color .15s; }
.slot-btn:active { background: var(--accent); color: var(--bg); }
.vs-divider { text-align: center; font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--text3); padding: 10px 0; }
.config-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.config-label { color: var(--text2); font-size: 14px; font-weight: 500; }
.config-options { display: flex; gap: 8px; }
.config-opt { background: var(--surface); border: 1px solid var(--border); color: var(--text2); border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.config-opt.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.start-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 18px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(245,200,66,.3);
}
.start-btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.start-btn:not(:disabled):active { transform: scale(.98); }

/* ── LIVE MATCH ── */
.screen-live { padding-bottom: 16px; }
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  margin-bottom: 18px;
  align-items: center;
}
.score-team { text-align: center; }
.score-team-a .score-sets { color: var(--team-a); }
.score-team-b .score-sets { color: var(--team-b); }
.score-team-names { font-size: 12px; color: var(--text2); font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-sets { font-family: var(--font-display); font-size: 48px; font-weight: 900; line-height: 1; }
.score-middle { text-align: center; padding: 0 8px; }
.score-set-label { font-size: 11px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.score-games { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); display: flex; gap: 4px; align-items: center; justify-content: center; }
.score-dash { color: var(--text3); }
.score-points-row { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 4px; }
.score-point-a, .score-point-b { font-family: var(--font-display); font-size: 16px; font-weight: 700; min-width: 36px; text-align: center; }
.score-point-a { color: var(--team-a); }
.score-point-b { color: var(--team-b); }
.score-pts-label { font-size: 10px; color: var(--text3); }

.live-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin: 0 0 10px; }
.point-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.point-btn {
  border: none;
  border-radius: var(--radius);
  padding: 18px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .1s;
}
.point-btn:active { transform: scale(.96); }
.btn-team-a { background: rgba(59,130,246,.18); border: 2px solid var(--team-a); }
.btn-team-b { background: rgba(239,68,68,.18); border: 2px solid var(--team-b); }
.btn-team-label { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.btn-team-a .btn-team-label { color: var(--team-a); }
.btn-team-b .btn-team-label { color: var(--team-b); }
.btn-sub { font-size: 12px; color: var(--text2); }

.stat-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.stat-tab { flex: 1; background: var(--surface); border: 1px solid var(--border); color: var(--text2); border-radius: var(--radius-sm); padding: 9px 0; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s; }
.stat-tab.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.stat-player-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.stat-p-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.stat-p-btn:active { background: var(--surface2); }
.stat-p-btn .sp-avatar { font-size: 22px; }
.stat-p-btn .sp-info { }
.stat-p-btn .sp-name { font-size: 13px; font-weight: 700; display: block; }
.stat-p-btn .sp-team { font-size: 11px; }
.sp-team-a { color: var(--team-a); }
.sp-team-b { color: var(--team-b); }

.live-log {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-height: 100px;
  overflow-y: auto;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
}
.log-item { font-size: 12px; color: var(--text2); }
.log-item.log-a { color: var(--team-a); }
.log-item.log-b { color: var(--team-b); }
.log-item.log-info { color: var(--accent); font-weight: 600; }

.live-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.undo-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text2); border-radius: var(--radius); padding: 16px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; }
.undo-btn:active { background: var(--surface); }
.finish-btn { background: transparent; border: 2px solid var(--accent2); color: var(--accent2); border-radius: var(--radius); padding: 16px; font-family: var(--font-display); font-size: 20px; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.finish-btn:active { background: rgba(255,107,53,.15); }

/* ── POST MATCH ── */
.post-header { text-align: center; padding: 16px 0 24px; }
.post-trophy { font-size: 56px; margin-bottom: 8px; }
.post-winner-label { font-family: var(--font-display); font-size: 32px; font-weight: 900; text-transform: uppercase; color: var(--accent); }
.post-score { font-size: 18px; color: var(--text2); margin-top: 4px; }

.mvp-card {
  background: linear-gradient(135deg, rgba(245,200,66,.12), rgba(245,200,66,.04));
  border: 1px solid rgba(245,200,66,.3);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}
.mvp-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 8px; }
.mvp-avatar { font-size: 44px; margin-bottom: 4px; }
.mvp-name { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.mvp-sub { font-size: 13px; color: var(--text2); }

.post-stats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.post-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.psc-avatar { font-size: 28px; }
.psc-info { flex: 1; }
.psc-name { font-weight: 700; margin-bottom: 4px; }
.psc-row { display: flex; gap: 16px; }
.psc-stat { font-size: 12px; color: var(--text2); }
.psc-stat strong { color: var(--text); font-family: var(--font-display); font-size: 16px; }

/* ── HISTORY & RANKING FULL ── */
.ranking-list.full { display: flex; flex-direction: column; gap: 8px; }

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform .25s;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-wide { border-radius: 24px 24px 0 0; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.modal-close { background: var(--surface); border: none; color: var(--text2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.modal-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }

/* Picker list */
.picker-list { display: flex; flex-direction: column; gap: 8px; }
.picker-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.picker-item:active, .picker-item.selected { background: rgba(245,200,66,.12); border-color: var(--accent); }
.picker-item.disabled { opacity: .35; pointer-events: none; }
.picker-avatar { font-size: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; }
.picker-name { font-weight: 600; font-size: 15px; }
.picker-sub { font-size: 12px; color: var(--text2); }

/* Add Player Modal */
.avatar-picker { text-align: center; margin-bottom: 16px; }
.avatar-preview { font-size: 52px; width: 80px; height: 80px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: 2px solid var(--border); }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.emoji-opt { font-size: 24px; width: 44px; height: 44px; border-radius: 10px; background: var(--surface2); border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.emoji-opt.active { border-color: var(--accent); background: rgba(245,200,66,.12); }

.input-field {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  margin-bottom: 16px;
  outline: none;
  transition: border-color .15s;
}
.input-field:focus { border-color: var(--accent); }
.input-field::placeholder { color: var(--text3); }

/* Profile modal */
.profile-header { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 20px; }
.profile-avatar { font-size: 56px; width: 90px; height: 90px; border-radius: 50%; background: var(--surface2); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 3px solid var(--accent); }
.profile-name { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.profile-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.psg-item { background: var(--surface2); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.psg-val { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--accent); }
.psg-label { font-size: 11px; color: var(--text2); }
.profile-detail-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 8px; }
.profile-stat-rows { display: flex; flex-direction: column; gap: 8px; }
.psr-row { display: flex; justify-content: space-between; font-size: 14px; }
.psr-label { color: var(--text2); }
.psr-val { font-weight: 700; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: calc(var(--tab-h) + 16px);
  left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  z-index: 300;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text3); }
.empty-state .es-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,200,66,.4); }
  50%       { box-shadow: 0 0 0 10px rgba(245,200,66,0); }
}
.pulse { animation: pulse-accent 1.5s infinite; }

/* ── RESPONSIVE ── */
@media (min-width: 500px) {
  .players-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-player-btns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .point-btns { grid-template-columns: 1fr 1fr; }
  .modal { border-radius: 24px; margin-bottom: 24px; max-height: 80vh; }
  .modal-overlay { align-items: center; }
}
