:root {
  --bg: #090d12;
  --surface: #111822;
  --surface-2: #17202e;
  --surface-hover: #1d2839;
  --border: #233043;
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #f1f5f9;
  --text-muted: #8b9bb4;
  --accent: #38bdf8;
  --won: #10b981;
  --won-bg: rgba(16, 185, 129, 0.15);
  --winning: #34d399;
  --winning-bg: rgba(52, 211, 153, 0.13);
  --lost: #ef4444;
  --lost-bg: rgba(239, 68, 68, 0.15);
  --live: #f59e0b;
  --live-bg: rgba(245, 158, 11, 0.16);
  --trap: #fb923c;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.mobile-only { display: none; }
.hidden { display: none !important; }

/* Üst Bar */
.topbar {
  background: rgba(17, 24, 34, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  background: var(--won);
  color: #052e16;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 7px;
  flex-shrink: 0;
}

.brand h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.sync-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.sync-badge.sync-ok .dot { background: var(--won); }
.sync-badge.sync-ok { color: var(--won); border-color: rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.08); }
.sync-badge.sync-warn .dot { background: var(--live); }
.sync-badge.sync-warn { color: var(--live); border-color: rgba(245, 158, 11, 0.35); }

/* Butonlar */
.btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary { background: var(--won); color: #042f1c; }
.btn-primary:hover { background: #34d399; }

.btn-danger-ghost {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--lost);
  border-color: rgba(239, 68, 68, 0.35);
}
.btn-danger-ghost:hover { background: var(--lost-bg); }

/* KPI Bandı */
.kpi-strip {
  max-width: 1400px;
  margin: 14px auto 0;
  padding: 0 18px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
}

.kpi-won .kpi-value { color: var(--won); }
.kpi-live .kpi-value { color: var(--winning); }
.kpi-lost .kpi-value { color: var(--lost); }
.kpi-rate .kpi-value { color: var(--accent); }

/* Ana Yerleşim */
.layout {
  max-width: 1400px;
  margin: 14px auto 56px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 18px;
  align-items: start;
}

/* Filtreler & Yatay Kaydırılabilir Lig Sekmeleri */
.filters-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.league-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.league-tabs::-webkit-scrollbar { display: none; }

.tab {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.tab:hover { color: var(--text); border-color: #3a4a63; }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab.tab-live { border-color: rgba(245, 158, 11, 0.45); color: var(--live); }
.tab.tab-live.active { background: var(--live); color: #1c1000; border-color: var(--live); }

.status-filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.search-input, .select-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  min-height: 42px;
}

.search-input:focus, .select-input:focus { outline: none; border-color: var(--accent); }

/* Maç Kartı */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}

.match-card.card-won { border-left: 4px solid var(--won); }
.match-card.card-winning { border-left: 4px solid var(--winning); }
.match-card.card-lost { border-left: 4px solid var(--lost); }
.match-card.card-trap { border-color: rgba(251, 146, 60, 0.45); }

.match-head {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
  flex-wrap: wrap;
}

.league-tag {
  font-weight: 700;
  color: var(--text);
}

.badge-featured {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
}

.badge-trap {
  background: rgba(251, 146, 60, 0.18);
  color: var(--trap);
}

.minute-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  white-space: nowrap;
}

.minute-pill.is-live {
  background: var(--live-bg);
  color: var(--live);
}

.minute-pill.is-ft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.match-body {
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 1.15fr 1.45fr;
  gap: 14px;
  align-items: center;
}

.scoreboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  padding: 8px 10px;
  margin: -6px -8px;
  border-radius: 10px;
  transition: background 0.15s;
}

.scoreboard:hover { background: var(--surface-hover); }

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.team-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 800;
  min-width: 26px;
  text-align: right;
}

.live-substats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.scoreboard-hint {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

/* Tahmin Satırları */
.picks-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  min-height: 40px;
  transition: border-color 0.15s, background 0.15s;
}

.pick-row:hover { border-color: var(--accent); background: var(--surface-hover); }
.pick-row.is-primary { border-color: rgba(56, 189, 248, 0.38); }

.pick-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pick-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent);
  flex-shrink: 0;
}

.pick-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.odd-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* Durum Rozetleri */
.status-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pending { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.status-won { background: var(--won-bg); color: var(--won); }
.status-winning { background: var(--winning-bg); color: var(--winning); }
.status-lost { background: var(--lost-bg); color: var(--lost); }
.status-losing { background: var(--lost-bg); color: #fca5a5; }

/* Maç Yorumu */
.match-comment {
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  background: rgba(56, 189, 248, 0.035);
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.match-comment-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 6px;
}

/* Kart Altı & Detay Çekmecesi */
.match-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.foot-actions {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.btn-xs {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}
.btn-xs:hover { border-color: var(--accent); color: var(--accent); }

.details-drawer {
  padding: 13px 14px;
  border-top: 1px solid var(--border);
  background: #0c1118;
  display: none;
}

.details-drawer.open { display: block; }

.info-notes {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 9px 11px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.info-notes strong { color: var(--text); }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.market-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
}

.market-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.market-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.odd-chip {
  font-family: inherit;
  font-size: 11.5px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.odd-chip:hover { border-color: var(--accent); }
.odd-chip span { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 700; }

/* Kupon Paneli (Masaüstü Sticky) */
.coupon-backdrop { display: none; }
.sheet-handle { display: none; }

.coupon-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: 74px;
  overflow: hidden;
}

.coupon-header {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-header h2 { font-size: 15px; font-weight: 700; }

.coupon-selector {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.coupon-tab {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}

.coupon-tab.active {
  background: var(--accent);
  color: #082f49;
  border-color: var(--accent);
}

.coupon-legs {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.coupon-leg {
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.leg-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.leg-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.leg-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.leg-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
}
.leg-remove:hover { color: var(--lost); }

.coupon-footer {
  padding: 13px 15px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.stake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.stake-row input {
  width: 105px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 7px;
  padding: 6px 9px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.payout-row strong {
  color: var(--won);
  font-size: 16px;
}

.empty-state {
  text-align: center;
  padding: 22px 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Mobil Alt Sabit Kupon Çubuğu (Masaüstünde gizli) */
.mobile-coupon-bar { display: none; }

/* İstatistik Modalı */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-sub { font-size: 11px; color: var(--text-muted); }

.icon-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.stats-score-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.stats-team { font-size: 14px; font-weight: 700; }
.stats-team.away { text-align: right; }

.stats-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stats-big-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
}

.comment-box {
  padding: 11px 13px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9px;
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.5;
}

.comment-box strong {
  color: var(--accent);
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row { display: flex; flex-direction: column; gap: 4px; }

.stat-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  min-width: 44px;
}

.stat-val.away { text-align: right; }
.stat-name { color: var(--text-muted); font-weight: 500; text-align: center; }

.stat-bar-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 6px;
}

.stat-bar-left, .stat-bar-right {
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.stat-bar-left { justify-content: flex-end; }
.stat-bar-right { justify-content: flex-start; }

.stat-fill-home { background: var(--accent); height: 100%; border-radius: 3px; }
.stat-fill-away { background: var(--won); height: 100%; border-radius: 3px; }

/* ==================== MOBİL & TABLET UYUMU (<= 1024px) ==================== */
@media (max-width: 1024px) {
  .mobile-only { display: inline-flex; }

  .layout {
    grid-template-columns: 1fr;
    margin-bottom: 92px; /* Alt sabit kupon çubuğu için boşluk */
  }

  .kpi-grid { grid-template-columns: repeat(3, 1fr); }

  /* Kupon Paneli mobilde alttan açılan Bottom Sheet olur */
  .coupon-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 89;
    display: none;
  }
  .coupon-backdrop.open { display: block; }

  .coupon-col {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    transform: translateY(105%);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .coupon-col.open { transform: translateY(0); }

  .coupon-panel {
    position: static;
    border-radius: 18px 18px 0 0;
    max-height: 84vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .coupon-legs { max-height: 44vh; }

  .sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #334155;
    margin: 9px auto 2px;
  }

  /* Sabit Mobil Alt Kupon Barı */
  .mobile-coupon-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(17, 24, 34, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .mcb-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .mcb-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mcb-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
  }

  .mcb-meta strong { color: var(--won); }
  .mcb-status { font-weight: 600; color: var(--accent); }
  .mcb-btn { flex-shrink: 0; padding: 10px 16px; }
}

/* ==================== TELEFON EKRANI (<= 640px) ==================== */
@media (max-width: 640px) {
  .topbar-inner {
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .sync-badge {
    width: 100%;
    justify-content: center;
    font-size: 11px;
  }

  .kpi-strip { padding: 0 12px; margin-top: 10px; }
  .kpi-grid { gap: 6px; }
  .kpi-card { padding: 8px 10px; }
  .kpi-value { font-size: 16px; }
  .kpi-label { font-size: 10px; }

  .layout { padding: 0 12px; margin-top: 12px; }

  .status-filters { grid-template-columns: 1fr; }

  .match-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .scoreboard {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-soft);
    margin: 0;
    padding: 10px 12px;
  }

  .team-name { font-size: 15px; }
  .team-score { font-size: 20px; }

  .match-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .foot-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn-xs { text-align: center; padding: 9px 10px; }

  /* İstatistik Modalı telefonda alttan tam genişlikte açılır */
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .stats-big-score { font-size: 21px; }
  .stats-team { font-size: 13px; }
}
