/* ============================================================
   SIEMPRE AL VIDRIO — Styles 2026
   ============================================================ */

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

:root {
  --bg:          #080b10;
  --bg-2:        #0d1117;
  --surface:     #111720;
  --surface-2:   #171f2e;
  --surface-3:   #1c2538;
  --border:      #1e2d44;
  --border-2:    #243350;

  --text:        #e8edf5;
  --text-2:      #a0aec0;
  --text-3:      #5a6a84;

  --green:       #00e676;
  --green-dim:   rgba(0,230,118,.12);
  --green-glow:  rgba(0,230,118,.25);
  --gold:        #fbbf24;
  --gold-dim:    rgba(251,191,36,.12);
  --danger:      #f25f5c;
  --blue:        #3b82f6;

  --r:     10px;
  --r-sm:  6px;
  --r-lg:  16px;
  --ease:  200ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* --- dot grid --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* --- ambient blobs --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 10% 15%,  rgba(0,230,118,.055)  0%, transparent 70%),
    radial-gradient(ellipse 45% 35% at 92% 80%,  rgba(0,191,165,.045)  0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 10%,  rgba(59,130,246,.035) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 95%,  rgba(251,191,36,.03)  0%, transparent 70%);
  animation: blob-drift 18s ease-in-out infinite alternate;
}

@keyframes blob-drift {
  0%   { opacity: 1;    transform: scale(1)    translateX(0px)   translateY(0px); }
  33%  { opacity: 0.85; transform: scale(1.04) translateX(8px)   translateY(-6px); }
  66%  { opacity: 0.9;  transform: scale(0.97) translateX(-6px)  translateY(10px); }
  100% { opacity: 1;    transform: scale(1.02) translateX(4px)   translateY(-4px); }
}

/* --- vignette edges --- */
.noise-layer::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 50%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

/* --- noise texture overlay --- */
.noise-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ensure all content is above bg effects */
.site-header,
.page-main,
.site-footer,
#login-overlay,
#admin-wrap { position: relative; z-index: 2; }

/* ============================================================
   LOGIN OVERLAY
   ============================================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.login-icon { font-size: 2.25rem; margin-bottom: 0.5rem; }

.login-title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--green) 0%, #00bfa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field { display: flex; flex-direction: column; gap: 0.375rem; }

.login-error {
  background: rgba(242,95,92,.1);
  border: 1px solid rgba(242,95,92,.25);
  color: #f87171;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: rgba(8,11,16,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon { font-size: 1.5rem; line-height: 1; }

.logo-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--green) 0%, #00bfa5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.logo-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.main-nav { display: flex; gap: 0.375rem; }

.nav-link {
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-3);
  border: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--green); border-color: var(--border-2); background: var(--green-dim); }
.nav-admin { color: var(--gold) !important; }
.nav-admin:hover { background: var(--gold-dim) !important; }
.nav-admin.active { border-color: rgba(251,191,36,.3) !important; background: var(--gold-dim) !important; }

/* ============================================================
   LAYOUT
   ============================================================ */
.page-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  width: 100%;
}

/* ============================================================
   LEADER HERO
   ============================================================ */
.leader-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  isolation: isolate;
}

.leader-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--leader-color, var(--green)) 14%, transparent) 0%,
    transparent 55%
  );
  z-index: 0;
}

.leader-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--leader-color, var(--green)) 6%, transparent);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.leader-label {
  position: relative;
  z-index: 1;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--leader-color, var(--green));
  padding: 1rem 1.5rem 0;
  text-transform: uppercase;
  opacity: 0.85;
}

.leader-body {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.leader-left { display: flex; align-items: center; gap: 1.25rem; }

.leader-medal { font-size: 2.25rem; line-height: 1; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }

.leader-name {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  color: var(--text);
  text-transform: uppercase;
}

.leader-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(251,191,36,.25);
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
}

.leader-right { text-align: right; flex-shrink: 0; }

.leader-pts {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  color: var(--leader-color, var(--green));
  text-shadow: 0 0 40px color-mix(in srgb, var(--leader-color, var(--green)) 40%, transparent);
}

.leader-pts-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.1rem;
}

/* ============================================================
   STANDINGS TABLE WRAP
   ============================================================ */
.standings-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.standings-table-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.st-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.section-badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}

.table-scroll { overflow-x: auto; }

.standings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.standings-table th {
  padding: 0.6rem 0.875rem;
  text-align: left;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.col-pos { text-align: center !important; width: 3rem; }
.col-bar { width: 18%; }
.col-stat { text-align: center !important; }
.col-racha { text-align: center !important; white-space: nowrap; }
.col-forma { text-align: center !important; }
.col-pts-h { color: var(--gold) !important; text-align: center !important; }

.standings-table tbody tr {
  border-top: 1px solid var(--border);
  transition: background var(--ease);
  cursor: default;
}
.standings-table tbody tr:hover { background: var(--surface-2); }

.row-leader {
  background: linear-gradient(90deg, rgba(0,230,118,.04) 0%, transparent 60%);
}
.row-leader:hover {
  background: linear-gradient(90deg, rgba(0,230,118,.07) 0%, var(--surface-2) 100%) !important;
}

/* === Cells === */
.standings-table td { vertical-align: middle; }

.standing-pos {
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem 0.5rem 1rem 1rem !important;
  width: 3rem;
}
.pos-1 { color: var(--gold); filter: drop-shadow(0 0 6px rgba(251,191,36,.5)); }
.pos-2 { color: #94a3b8; }
.pos-3 { color: #c87941; }

.td-team { padding: 1rem 0.875rem !important; }

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-stripe {
  width: 3px;
  height: 1.6rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.team-name-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.td-bar { padding: 1rem 0.75rem 1rem 0 !important; }

.pts-bar-track {
  height: 5px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.pts-bar-fill {
  height: 100%;
  border-radius: 99px;
  opacity: 0.75;
  transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

.stat-cell {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 1rem 0.625rem !important;
  color: var(--text-2);
}

.td-racha { text-align: center; padding: 1rem 0.5rem !important; }

.racha-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.racha-badge.racha-hot {
  background: rgba(251,191,36,.1);
  border-color: rgba(251,191,36,.3);
  color: var(--gold);
}
.racha-zero { color: var(--text-3); font-size: 0.875rem; }

.td-forma { padding: 1rem 1rem 1rem 0.5rem !important; text-align: center; white-space: nowrap; }
.td-forma .sq { margin: 0 1.5px; }

.pts-cell {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  color: var(--gold);
  text-align: center;
  padding: 1rem 1.25rem 1rem 0.5rem !important;
}

.legend {
  font-size: 0.68rem;
  color: var(--text-3);
  text-align: center;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================
   FORM SQUARES
   ============================================================ */
.sq {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: middle;
  transition: transform var(--ease);
}
.sq:hover { transform: scale(1.3); }
.sq-w { background: var(--green); box-shadow: 0 0 6px rgba(0,230,118,.4); }
.sq-m { background: var(--gold); opacity: 0.7; }
.sq-l { background: var(--surface-3); border: 1px solid var(--border-2); }

/* ============================================================
   LOADING / ERROR / EMPTY
   ============================================================ */
.loading-state {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 2rem;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state {
  background: rgba(242,95,92,.08);
  border: 1px solid rgba(242,95,92,.25);
  color: #f87171;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.875rem;
  font-weight: 500;
}

.empty-state {
  color: var(--text-3);
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
  font-weight: 500;
}

.hidden { display: none !important; }

/* ============================================================
   ADMIN — Section layout
   ============================================================ */
.admin-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ============================================================
   LOAD CARD
   ============================================================ */
.load-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.load-date-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.375rem;
}

.date-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--r-sm);
  font-family: inherit;
  transition: border-color var(--ease);
}
.date-input:focus { outline: none; border-color: var(--green); }

/* ============================================================
   RESULTS FORM
   ============================================================ */
.results-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.875rem 1rem;
  transition: border-color var(--ease), background var(--ease);
}
.result-row:focus-within { border-color: var(--green); background: rgba(0,230,118,.03); }

.result-team {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 0.925rem;
  min-width: 0;
}

.result-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-input-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.result-stepper {
  background: var(--surface-3);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  width: 2.25rem;
  height: 2.5rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  flex-shrink: 0;
  font-family: inherit;
}
.result-stepper:hover { background: var(--border); color: var(--green); }

.result-input {
  background: var(--surface-2);
  border: none;
  border-left: 1px solid var(--border-2);
  border-right: 1px solid var(--border-2);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
  width: 3.75rem;
  height: 2.5rem;
  font-family: inherit;
  -moz-appearance: textfield;
}
.result-input::-webkit-inner-spin-button,
.result-input::-webkit-outer-spin-button { display: none; }
.result-input:focus { outline: none; }

.result-pts-preview {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-3);
  min-width: 3rem;
  text-align: right;
  transition: color var(--ease);
  font-variant-numeric: tabular-nums;
}

.load-actions { display: flex; justify-content: flex-end; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-success {
  background: var(--green);
  color: #030a05;
  border: none;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 1.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: opacity var(--ease), transform var(--ease);
}
.btn-success:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.btn-success:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.btn-secondary:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }

.btn-danger {
  background: none;
  border: 1px solid rgba(242,95,92,.35);
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--ease);
}
.btn-danger:hover { background: rgba(242,95,92,.1); }

.btn-clear {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: color var(--ease), border-color var(--ease);
}
.btn-clear:hover { color: var(--text); border-color: var(--text-3); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
}
.alert-success {
  background: rgba(0,230,118,.1);
  border: 1px solid rgba(0,230,118,.25);
  color: #4ade80;
}
.alert-error {
  background: rgba(242,95,92,.1);
  border: 1px solid rgba(242,95,92,.25);
  color: #f87171;
}

/* ============================================================
   DAY CARD (Admin history)
   ============================================================ */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.day-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.day-card-header {
  background: var(--surface-2);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.day-card-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: capitalize;
}

.day-card-total { font-size: 0.72rem; font-weight: 600; color: var(--text-3); }

.day-card-actions { display: flex; align-items: center; gap: 0.75rem; }

.day-result-row {
  padding: 0.75rem 1.25rem;
  display: grid;
  grid-template-columns: 1.5rem 1fr 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}
.day-result-row:first-child { border-top: none; }

.day-result-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}

.day-result-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.result-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.day-result-bar-wrap { height: 18px; display: flex; align-items: center; }

.day-result-bar {
  height: 18px;
  border-radius: 0 3px 3px 0;
  min-width: 4px;
  transition: width 0.4s ease;
}

.day-result-stats { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.day-result-wins {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
}

.day-result-pts {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--gold);
  min-width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   TEAMS ADMIN
   ============================================================ */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--ease);
}
.team-card:hover { border-color: var(--border-2); }

.team-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.team-color-preview {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-card-name {
  font-size: 0.975rem;
  font-weight: 800;
  flex: 1;
}

.team-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.text-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-family: inherit;
  width: 100%;
  transition: border-color var(--ease);
}
.text-input:focus { outline: none; border-color: var(--green); }

.color-row { display: flex; align-items: center; gap: 0.5rem; }

.color-input {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: none;
  cursor: pointer;
  padding: 2px;
}

.color-hex-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: 'Courier New', monospace;
}

.team-card-footer { display: flex; gap: 0.5rem; align-items: center; }

.save-team-btn {
  background: var(--green);
  color: #030a05;
  border: none;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.4rem 0.875rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--ease);
}
.save-team-btn:hover { opacity: 0.85; }

.add-team-row { display: flex; align-items: center; gap: 1rem; }

.teams-max { font-size: 0.78rem; color: var(--text-3); }

/* ============================================================
   PLAYERS ADMIN
   ============================================================ */
.players-admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.empty-players-msg {
  font-size: 0.82rem;
  color: var(--text-3);
  padding: 0.5rem 0;
}

.player-admin-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--ease);
}
.player-admin-card:hover { border-color: var(--border-2); }

.player-admin-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
}

.player-admin-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.player-admin-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.player-admin-team {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 500;
}

.player-admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-admin-card > .player-admin-info,
.player-admin-card > .player-admin-actions {
  display: flex;
  align-items: center;
}

/* Make the top row flex horizontally */
.player-admin-card {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.player-admin-info { flex: 1; min-width: 0; }

.btn-edit-player {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--ease), color var(--ease);
}
.btn-edit-player:hover { border-color: var(--border-2); color: var(--text); }

.player-edit-form {
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Add player form */
.add-player-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 1.125rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.add-player-form-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.add-player-fields {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.add-player-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  flex: 1;
  min-width: 160px;
}

.add-player-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.select-input {
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--ease);
  appearance: none;
  cursor: pointer;
}
.select-input:focus { border-color: var(--green); }
.select-input option { background: var(--surface-3); color: var(--text); }

/* === Date filter (admin) === */
.date-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-label { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }

/* ============================================================
   MVP VOTING SECTION
   ============================================================ */
.mvp-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.mvp-form-wrap {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  border-top: 1px solid var(--border);
}

.mvp-prompt {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}

.mvp-name-row {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mvp-name-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mvp-name-input {
  max-width: 320px;
}

.mvp-teams-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.mvp-team-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.mvp-team-btn:hover {
  border-color: var(--tc, var(--green));
  color: var(--text);
  transform: translateY(-1px);
}
.mvp-team-btn.selected {
  border-color: var(--tc, var(--green));
  background: color-mix(in srgb, var(--tc, var(--green)) 12%, var(--surface-2));
  color: var(--text);
  box-shadow: 0 0 0 1px var(--tc, var(--green));
}

.mvp-team-btn-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mvp-team-btn-name { white-space: nowrap; }

.mvp-player-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 100%;
  max-width: 320px;
}

.mvp-player-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.mvp-player-team-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-3);
  line-height: 1;
}

.mvp-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mvp-submit {
  min-width: 120px;
}

/* Already voted banner */
.mvp-voted-banner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--green-dim);
  border-bottom: 1px solid rgba(0,230,118,.15);
}

.mvp-voted-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  color: #030a05;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.mvp-voted-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--green);
}

.mvp-voted-sub {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 0.1rem;
}

/* Tally */
.mvp-tally {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

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

.mvp-tally-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.mvp-tally-total {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
}

.mvp-tally-rows {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.mvp-tally-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 0.75rem;
}

.mvp-tally-team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.mvp-tally-player-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.mvp-tally-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvp-tally-team-name {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.mvp-leader-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.mvp-tally-bar-wrap {
  height: 6px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.mvp-tally-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.mvp-tally-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  text-align: right;
  white-space: nowrap;
  min-width: 4.5rem;
}

.mvp-no-votes {
  font-size: 0.82rem;
  color: var(--text-3);
  text-align: center;
  padding: 0.5rem 0;
}

/* ============================================================
   STANDINGS HEADER RIGHT (share button area)
   ============================================================ */
.standings-header-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn-share {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.btn-share:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-dim);
}

/* ============================================================
   HISTORY SECTION (home)
   ============================================================ */
.history-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.hist-card {
  border-top: 1px solid var(--border);
}
.hist-card:first-child { border-top: none; }

.hist-card-header {
  background: var(--surface-2);
  padding: 0.625rem 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.hist-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: capitalize;
}

.hist-header-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.hist-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--wc, var(--green));
  background: rgba(0,0,0,.2);
  border: 1px solid color-mix(in srgb, var(--wc, var(--green)) 35%, transparent);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
}

.hist-winner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hist-total {
  font-size: 0.68rem;
  color: var(--text-3);
  font-weight: 500;
}

.hist-rows { display: flex; flex-direction: column; }

.hist-result-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr 1fr auto auto;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 1.125rem;
  border-top: 1px solid var(--border);
  transition: background var(--ease);
}
.hist-result-row:first-child { border-top: none; }
.hist-result-row:hover { background: var(--surface-2); }

.hist-row-winner {
  background: linear-gradient(90deg, rgba(0,230,118,.04) 0%, transparent 70%);
}
.hist-row-winner:hover {
  background: linear-gradient(90deg, rgba(0,230,118,.07) 0%, var(--surface-2) 100%);
}

.hist-rank {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}

.hist-team {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hist-team-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.hist-bar-wrap {
  height: 5px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}

.hist-bar {
  height: 100%;
  border-radius: 99px;
  opacity: 0.65;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.hist-wins {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.hist-crown {
  font-size: 0.85rem;
  line-height: 1;
}

.hist-crown-placeholder {
  display: inline-block;
  width: 0.85rem;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.65rem 1.25rem;
  border-radius: 99px;
  white-space: nowrap;
  z-index: 999;
  transition: transform 300ms cubic-bezier(.4,0,.2,1), opacity 300ms;
  opacity: 0;
  pointer-events: none;
}
.toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-ok { border-color: rgba(0,230,118,.35); color: var(--green); }
.toast-err { border-color: rgba(242,95,92,.35); color: var(--danger); }

/* ============================================================
   TEAM NAME LINK (standings)
   ============================================================ */
.team-cell-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6px;
  transition: color var(--ease);
}
.team-cell-link:hover .team-name-text {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   TEAM PAGE — HERO
   ============================================================ */
.team-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  border-top: 3px solid var(--tc, var(--green));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--ease);
}
.back-link:hover { color: var(--text-2); }

.team-hero-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.team-hero-color {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
}

.team-hero-info { flex: 1; min-width: 0; }

.team-hero-name {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.team-hero-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 0.25rem;
}

.team-hero-pts-block {
  text-align: right;
  flex-shrink: 0;
}

.team-hero-pts {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--tc, var(--green));
}

.team-hero-pts-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   TEAM PAGE — STATS ROW
   ============================================================ */
.team-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.team-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  text-align: center;
}

.team-stat-value {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}

.team-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* ============================================================
   TEAM PAGE — BAR CHART
   ============================================================ */
.team-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.team-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 1rem 1.25rem 0.625rem;
  height: 100px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  width: 28px;
  height: 100%;
  cursor: default;
}

.chart-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: opacity var(--ease);
  opacity: 0.7;
}
.chart-bar-win { opacity: 1; }
.chart-col:hover .chart-bar { opacity: 1; }

.chart-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}

/* ============================================================
   TEAM PAGE — HISTORY LIST
   ============================================================ */
.team-hist-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  transition: background var(--ease);
}
.team-hist-entry:first-child { border-top: none; }
.team-hist-entry:hover { background: var(--surface-2); }

.team-hist-entry-win {
  background: linear-gradient(90deg, rgba(0,230,118,.04) 0%, transparent 80%);
}
.team-hist-entry-win:hover {
  background: linear-gradient(90deg, rgba(0,230,118,.07) 0%, var(--surface-2) 100%);
}

.team-hist-left {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  flex: 1;
  min-width: 0;
}

.team-hist-result-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  color: var(--text-3);
}

.team-hist-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: capitalize;
  margin-bottom: 0.375rem;
}

.team-hist-vs {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.team-hist-vs-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.team-hist-vs-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
}

.team-hist-vs-wins {
  font-size: 0.7rem;
  color: var(--text-3);
  opacity: 0.7;
}

.team-hist-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 0.125rem;
}

.team-hist-wins-big {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.team-hist-wins-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-hist-pts-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  margin-top: 0.25rem;
}

.badge-win {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0,230,118,.2);
}

.badge-neutral {
  background: var(--surface-3);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .header-inner { height: 68px; }
  .logo-title { font-size: 0.85rem; }
  .leader-name { font-size: 1.4rem; }
  .leader-pts { font-size: 2.5rem; }
  .leader-body { padding: 0.625rem 1rem 1.125rem; }
  .col-bar, .td-bar { display: none; }
  .col-racha, .td-racha, .col-forma, .td-forma { display: none; }
  .table-scroll { overflow-x: hidden; }
  .standings-table { min-width: unset; width: 100%; }
  .standings-table th { padding: 0.5rem 0.5rem; }
  .standing-pos { font-size: 0.95rem; padding: 0.75rem 0.25rem 0.75rem 0.5rem !important; width: 2rem; }
  .td-team { padding: 0.75rem 0.5rem !important; }
  .team-name-text { font-size: 0.88rem; }
  .team-stripe { margin-right: 0; }
  .stat-cell { padding: 0.75rem 0.5rem !important; font-size: 0.85rem; }
  .pts-cell { font-size: 1.15rem; padding: 0.75rem 0.75rem 0.75rem 0.25rem !important; }
  .result-row { grid-template-columns: 1fr auto auto; }
  .day-result-row { grid-template-columns: 1.25rem 1fr auto; }
  .day-result-bar-wrap { display: none; }

  /* history section on mobile */
  .hist-result-row { grid-template-columns: 1.25rem 1fr auto auto; }
  .hist-bar-wrap { display: none; }
  .hist-card-header { flex-direction: column; align-items: flex-start; gap: 0.375rem; }

  /* team page on mobile */
  .team-stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-hero-name { font-size: 1.5rem; }
  .team-hero-pts { font-size: 2.25rem; }
}
