/* ============================================================
   Sportcast Predictor — main.css
   Dark theme, monospace (JetBrains Mono), modern minimal.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

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

:root {
  /* New palette */
  --bg:         #0b0b0f;
  --surface:    #111118;
  --surface-2:  #1a1a24;
  --border:     #252533;
  --border-2:   #333345;
  --text-1:     #e8e8f4;
  --text-2:     #8888aa;
  --text-3:     #55556a;
  --accent:     #7c6dfa;
  --accent-dim: #3d3578;
  --green:      #22c55e;
  --green-dim:  #14532d;
  --amber:      #f59e0b;
  --amber-dim:  #78350f;
  --red:        #ef4444;
  --red-dim:    #7f1d1d;
  --radius:     8px;
  --radius-sm:  4px;

  /* Legacy aliases (kept so any remaining inline styles that reference them still work) */
  --brand:       var(--accent);
  --brand-dark:  var(--accent-dim);
  --danger:      var(--red);
  --success:     var(--green);
  --warn:        var(--amber);
  --grey-100:    var(--surface);
  --grey-200:    var(--border);
  --grey-300:    var(--border-2);
  --grey-400:    var(--text-3);
  --grey-500:    var(--text-2);
  --grey-600:    var(--text-2);
  --grey-700:    var(--text-1);
  --grey-900:    var(--text-1);
  --green-600:   var(--green);
  --warn-dark:   var(--amber);
  --warn-light:  var(--amber-dim);
  --primary:     var(--accent);
}

html, body { height: 100%; }

body {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-1);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 0, "calt" 0;
}

/* Subtle full-page grid pattern behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(124, 109, 250, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(124, 109, 250, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.6), transparent 70%);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover { color: #9c90ff; text-decoration: none; }

code {
  font-family: inherit;
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  color: var(--text-1);
  border: 1px solid var(--border);
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-1);
}
h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }

::selection { background: var(--accent-dim); color: var(--text-1); }

/* ---- Nav ---- */
.nav {
  position: relative;
  z-index: 10;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-brand::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.nav-brand:hover { color: var(--accent); opacity: 0.9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-2);
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.nav-links a:hover {
  color: var(--text-1);
  background: var(--surface-2);
}
.nav-links a.active {
  color: var(--text-1);
  background: var(--surface-2);
}

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* Mobile nav */
@media (max-width: 720px) {
  .nav { padding: 0.75rem 1rem; }
  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-2);
    background: var(--surface);
    font-size: 1.1rem;
    user-select: none;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.5rem;
  }
  .nav-links a,
  .nav-links form {
    width: 100%;
  }
  .nav-links a {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }
}

/* ---- Main layout ---- */
.main {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.75rem 1rem 3rem;
  animation: fadeSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Page header ---- */
.page-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.page-header .subtitle {
  color: var(--text-2);
  font-size: 0.82rem;
  width: 100%;
  margin-top: -0.25rem;
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.15s ease;
}
.card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-1);
  letter-spacing: -0.005em;
}
.card p {
  color: var(--text-2);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}
a.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-1px);
  background: var(--surface-2);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Hero card — used on dashboard for predictable GWs */
.card-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}
.card-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---- Alerts ---- */
.alert {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-1);
  border-left-width: 3px;
}
.alert-info    { border-left-color: var(--accent); }
.alert-success { border-left-color: var(--green); }
.alert-warn    { border-left-color: var(--amber); }
.alert-error   { border-left-color: var(--red); }

/* ---- Badges & Tags ---- */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  line-height: 1.5;
}
.badge-draft            { background: rgba(124,109,250,0.08); color: #a69cff; border-color: var(--accent-dim); }
.badge-open             { background: rgba(34,197,94,0.08);  color: #4ade80; border-color: var(--green-dim); }
.badge-locked           { background: rgba(245,158,11,0.08); color: #fbbf24; border-color: var(--amber-dim); }
.badge-live             { background: rgba(34,197,94,0.12);  color: #4ade80; border-color: var(--green-dim); }
.badge-awaiting_results { background: rgba(245,158,11,0.08); color: #fbbf24; border-color: var(--amber-dim); }
.badge-scoring          { background: rgba(124,109,250,0.08); color: #a69cff; border-color: var(--accent-dim); }
.badge-scored           { background: rgba(34,197,94,0.08);  color: #4ade80; border-color: var(--green-dim); }
.badge-published        { background: rgba(34,197,94,0.08);  color: #4ade80; border-color: var(--green-dim); }
.badge-error            { background: rgba(239,68,68,0.08);  color: #fca5a5; border-color: var(--red-dim); }
.badge-pending          { background: rgba(124,109,250,0.08); color: #a69cff; border-color: var(--accent-dim); }
.badge-running          { background: rgba(124,109,250,0.08); color: #a69cff; border-color: var(--accent-dim); }
.badge-completed        { background: rgba(34,197,94,0.08);  color: #4ade80; border-color: var(--green-dim); }
.badge-failed           { background: rgba(239,68,68,0.08);  color: #fca5a5; border-color: var(--red-dim); }
.badge-cancelled        { background: var(--surface-2); color: var(--text-3); }
.badge-warn             { background: rgba(245,158,11,0.08); color: #fbbf24; border-color: var(--amber-dim); }

.tag {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 500;
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ---- Tables ---- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table thead {
  background: var(--surface-2);
}
.table th {
  text-align: left;
  font-weight: 600;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-1);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background-color 0.1s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table .empty {
  text-align: center;
  color: var(--text-2);
  padding: 1.75rem;
  font-style: normal;
}

/* ---- Points Summary Grid ---- */
.grid-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: .25rem;
}
.points-grid {
  border-collapse: separate;
  border-spacing: 2px;
  font-size: .7rem;
  white-space: nowrap;
}
.grid-corner {
  min-width: 96px;
  font-size: .65rem;
  color: var(--text-3);
  font-weight: 500;
  text-align: right;
  vertical-align: bottom;
  padding: 0 6px 6px 0;
  border-right: 1px solid var(--border);
}
.grid-home-hdr {
  width: 44px;
  min-width: 44px;
  height: 90px;
  vertical-align: bottom;
  padding: 0 1px 4px;
}
.grid-home-hdr-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.grid-rotate {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .65rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  max-height: 84px;
  text-overflow: ellipsis;
}
.grid-away-lbl {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 2px 8px 2px 0;
  text-align: right;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  min-width: 96px;
}
.grid-cell {
  width: 44px;
  min-width: 44px;
  height: 44px;
  text-align: center;
  vertical-align: middle;
  border-radius: 4px;
  padding: 2px 1px;
  position: relative;
  transition: filter .1s ease;
}
.grid-cell:hover { filter: brightness(1.25); }
.grid-pts-val {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}
.grid-pred-val {
  display: block;
  font-size: .58rem;
  color: rgba(232,232,244,.4);
  line-height: 1.2;
  margin-top: 1px;
}
.grid-self    { background: rgba(255,255,255,.03); }
.grid-no-fixture { background: transparent; }
.grid-na {
  font-size: .58rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .02em;
}

/* Cell backgrounds + text colours by points (0 worst → 6 best) */
.grid-pts-0 { background: rgba(239,68,68,.40); }
.grid-pts-0 .grid-pts-val { color: #fecaca; }

.grid-pts-1 { background: rgba(239,68,68,.20); }
.grid-pts-1 .grid-pts-val { color: #fca5a5; }

.grid-pts-2 { background: rgba(245,158,11,.38); }
.grid-pts-2 .grid-pts-val { color: #fde68a; }

.grid-pts-3 { background: rgba(99,102,241,.40); }
.grid-pts-3 .grid-pts-val { color: #c7d2fe; }

.grid-pts-4 { background: rgba(34,197,94,.32); }
.grid-pts-4 .grid-pts-val { color: #bbf7d0; }

.grid-pts-6 { background: rgba(34,197,94,.55); }
.grid-pts-6 .grid-pts-val { color: #ffffff; }

/* Banker: amber inner ring */
.grid-banker { box-shadow: inset 0 0 0 2px rgba(245,158,11,.55); }

/* Legend pills */
.grid-legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 700;
}

/* ---- Form guide ---- */
.form-guide {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.form-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3px;
}
.form-dot-wrap.form-latest-wrap {
  border-bottom: 2px solid var(--text-2);
}
.form-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.form-rank-1 { background: rgba(34,197,94,0.20);  color: #4ade80; border-color: rgba(34,197,94,0.35); }
.form-rank-2 { background: rgba(134,239,172,0.15); color: #86efac; border-color: rgba(134,239,172,0.25); }
.form-rank-3 { background: rgba(245,158,11,0.18); color: #fbbf24; border-color: rgba(245,158,11,0.30); }
.form-rank-4 { background: rgba(239,68,68,0.12);  color: #fca5a5; border-color: rgba(239,68,68,0.22); }
.form-rank-5 { background: rgba(239,68,68,0.25);  color: #ef4444; border-color: rgba(239,68,68,0.40); }

.vs { color: var(--text-2); text-align: center; }

/* Score grid cells */
.fixture-col { font-size: 0.72rem; text-align: center; line-height: 1.3; color: var(--text-2); }
.score-cell  { text-align: center; }
.score-cell .pts { font-weight: 600; color: var(--text-1); }
.score-cell.overridden { background: rgba(245,158,11,0.08); }

/* Audit detail */
.audit-detail pre {
  font-size: 0.72rem;
  background: var(--bg);
  color: var(--text-2);
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-width: 320px;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: inherit;
}
.audit-detail summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.78rem;
}
.error-cell { font-size: 0.78rem; color: #fca5a5; max-width: 240px; }
.ts { white-space: nowrap; color: var(--text-2); font-size: 0.78rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-family: inherit;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(124,109,250,0.2);
}
.btn-primary:hover { background: #8b7dff; border-color: #8b7dff; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-2);
}
.btn-secondary:hover { background: var(--border); border-color: var(--border-2); }

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover { background: #f87171; border-color: #f87171; }

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-2);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--accent-dim); }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.72rem; }

.btn-link {
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--text-2);
  font-size: 0.82rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}
.btn-link:hover { color: var(--text-1); background: var(--surface-2); }

/* ---- Forms ---- */
.input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--bg);
  color: var(--text-1);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.input::placeholder { color: var(--text-3); }
.input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(124, 109, 250, 0.15);
}
.input-sm { padding: 0.35rem 0.5rem; font-size: 0.78rem; }

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}
.form-row .input { flex: 1 1 160px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  white-space: nowrap;
  padding: 0.5rem 0;
  color: var(--text-1);
  cursor: pointer;
}
.checkbox-label input[type=checkbox] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

.hint {
  color: var(--text-2);
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

/* ---- Auth pages ---- */
.auth-page {
  max-width: 380px;
  margin: 3rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.auth-page h1 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.auth-page .input { margin-bottom: 0.75rem; }
.auth-page .btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
}

.pin-input {
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  text-align: center;
  font-weight: 600;
}

/* ---- Predict page ---- */
.predict-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.fixture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.15s ease;
}
.fixture-card:hover { border-color: var(--border-2); }
.fixture-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,109,250,0.1);
}
.fixture-card .teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  color: var(--text-1);
}
.fixture-card .kickoff {
  color: var(--text-2);
  font-size: 0.72rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.score-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.score-box {
  width: 56px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.45rem 0.5rem;
  font-family: inherit;
}
.score-sep {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
}
.banker-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  transition: all 0.15s ease;
  user-select: none;
}
.banker-toggle:hover { color: var(--text-1); border-color: var(--border-2); }
.banker-toggle input[type=radio],
.banker-toggle input[type=checkbox] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: var(--amber);
}
.banker-toggle:has(input:checked) {
  color: var(--amber);
  border-color: var(--amber-dim);
  background: rgba(245,158,11,0.05);
}

/* Locked state */
.fixture-card.locked {
  opacity: 0.75;
  background: var(--bg);
}
.fixture-card.locked .score-box {
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--border);
}

/* ---- Standings ---- */
.standings-table .rank {
  font-weight: 700;
  text-align: center;
  color: var(--text-1);
}
.standings-table .you {
  background: rgba(124, 109, 250, 0.06);
}
.standings-table tbody tr.you:hover {
  background: rgba(124, 109, 250, 0.1);
}

/* ---- Gameweek detail ---- */
.gw-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .gw-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Live blink dot (used in gameweek.html) ---- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.blink-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.2s ease-in-out infinite;
}

/* ---- Utilities ---- */
details > summary {
  cursor: pointer;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "▸ ";
  color: var(--text-2);
  transition: transform 0.15s ease;
  display: inline-block;
}
details[open] > summary::before { content: "▾ "; }

hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .form-row .input { flex: 1 1 auto; width: 100%; }
  .table { font-size: 0.75rem; }
  .table th, .table td { padding: 0.5rem 0.6rem; }
  .fixture-col { display: none; }
  .predict-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.15rem; }
}
