:root {
  --pl: #37003c;
  --pl-700: #4a0a52;
  --pl-300: #8a2b96;
  --accent: #00ff85;
  --accent-ink: #007a46;
  --sky: #05c7f2;
  --warning: #ffb84c;
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --line: #e3e6ee;
  --ink: #171821;
  --muted: #6f7280;
  --danger: #c9345b;
  --gold: #ffce3a;
  --r: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(22, 18, 34, .07);
  --shadow-md: 0 12px 32px -18px rgba(22, 18, 34, .35);
  --shadow-lg: 0 28px 70px -38px rgba(22, 18, 34, .55);
  /* Crisp, neutral button lift — replaces the old wide coloured glow. */
  --btn-press: 0 1px 2px rgba(22, 18, 34, .12), 0 8px 20px -14px rgba(22, 18, 34, .5);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(55, 0, 60, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(55, 0, 60, .035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 42%, #eceff5 100%);
  background-size: 40px 40px, 40px 40px, auto;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 255, 133, .09), transparent 28%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.36) 0 1px, transparent 1px 96px);
  opacity: .7;
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { letter-spacing: -.02em; }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  padding-top: calc(13px + env(safe-area-inset-top));
  color: #fff;
  background: linear-gradient(105deg, #230026 0%, var(--pl) 48%, #17333a 100%);
  box-shadow: 0 12px 34px -20px rgba(22, 18, 34, .85);
  overflow: hidden;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .18) 50%, transparent 68%);
  animation: sheen 7s var(--ease) infinite;
}
.brand,
.who {
  position: relative;
  z-index: 1;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Official Premier League logo is purple artwork, so it sits on a white chip
   (its canonical look) to read against the dark topbar and hero panels. */
.pl-badge {
  display: inline-block;
  width: auto;
  background: #fff;
  box-sizing: content-box;
}
.pl-badge.nav {
  height: 17px;
  padding: 3px 6px;
  border-radius: 5px;
}
.pl-badge.hero {
  height: 24px;
  padding: 5px 9px;
  border-radius: 7px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px -16px rgba(0,0,0,.6);
}
.accent-live { color: var(--accent); }
.logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--pl);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 22px -12px rgba(0, 255, 133, .95);
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.92);
  min-width: 0;
}
.user-name { font-weight: 800; white-space: nowrap; }
.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(0,255,133,.42);
  border-radius: var(--r);
  background: rgba(0,255,133,.16);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-badge.panel {
  border-color: rgba(0,122,70,.26);
  background: #e9fbf1;
  color: var(--accent-ink);
}
.who button {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r);
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  transition: transform .16s var(--ease), background .16s var(--ease);
}
.who button:hover { background: rgba(255,255,255,.22); }
.who button:active { transform: scale(.96); }

main,
.auth {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 18px 16px 44px;
  position: relative;
}

/* ---------- Auth ---------- */
.auth {
  padding-top: clamp(22px, 5vw, 54px);
  animation: viewIn .45s var(--ease) both;
}
.auth-panel {
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r);
  background:
    linear-gradient(140deg, rgba(55,0,60,.96), rgba(74,10,82,.94) 44%, rgba(14,55,59,.92)),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.auth-copy {
  padding: 28px 24px 18px;
  min-height: 260px;
  position: relative;
}
.auth-copy::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 96px;
  border: 2px solid rgba(255,255,255,.17);
  border-bottom: 0;
  border-radius: 96px 96px 0 0;
  transform: translateY(38px);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(32px, 7.5vw, 58px);
  line-height: .95;
  letter-spacing: 0;
}
.sub {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 15px;
}
.score-rules {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}
.score-rules span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r);
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.score-rules strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.auth-box {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  color: var(--ink);
}
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: var(--r);
  background: #eef0f6;
}
.tab {
  border: 0;
  border-radius: 6px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  transition: transform .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.tab.active {
  background: #fff;
  color: var(--pl);
  box-shadow: var(--shadow-sm);
}
form {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font-size: 16px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--pl-300);
  box-shadow: 0 0 0 4px rgba(138, 43, 150, .14);
}
.primary {
  border: 0;
  border-radius: var(--r-pill);
  padding: 15px 18px;
  background: linear-gradient(180deg, #16f588, var(--accent-ink));
  color: #04301d;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: var(--btn-press), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .16s var(--ease);
}
.primary:hover { filter: brightness(1.03); }
.primary:active { transform: translateY(1px) scale(.99); box-shadow: var(--btn-press); }
.primary:focus-visible { outline: none; box-shadow: var(--btn-press), 0 0 0 4px rgba(0,122,70,.28); }
.primary.done { background: linear-gradient(180deg, #18c46a, var(--accent-ink)); }
.primary:disabled {
  cursor: not-allowed;
  filter: grayscale(.2);
  opacity: .62;
  box-shadow: none;
}
.secondary {
  border: 1px solid rgba(55,0,60,.16);
  border-radius: var(--r);
  background: #fff;
  color: var(--pl);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.secondary:hover { border-color: var(--pl-300); background: #fbf7fc; }
.secondary:active { transform: scale(.98); }
.secondary:focus-visible,
.sync-button:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(55,0,60,.18); }
.secondary.action,
.sync-button.action {
  border-color: rgba(0,122,70,.28);
  background: linear-gradient(180deg, #f1fff7, #d9ffe9);
  color: #06472a;
  box-shadow: 0 12px 24px -18px rgba(0,122,70,.85);
}
.secondary.action:hover,
.sync-button.action:hover {
  border-color: rgba(0,122,70,.5);
  background: linear-gradient(180deg, #fff, #caffdf);
}
.secondary:disabled {
  cursor: not-allowed;
  border-color: #d8dce6;
  background: #eef0f5;
  color: var(--muted);
  box-shadow: none;
}
.secondary:disabled:hover {
  border-color: #d8dce6;
  background: #eef0f5;
}
.secondary.danger {
  border-color: rgba(201,52,91,.22);
  color: var(--danger);
}
.sync-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(0,122,70,.22);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, #16f588, #16c873);
  color: #063a27;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--btn-press), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .16s var(--ease), filter .16s var(--ease), box-shadow .16s var(--ease);
}
.sync-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 18px 36px -20px rgba(0,122,70,.95);
  transform: translateY(-1px);
}
.sync-button:active { transform: translateY(0) scale(.98); }
.sync-button:disabled {
  cursor: wait;
  filter: grayscale(.18);
  opacity: .72;
  box-shadow: none;
}
.btn-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sync-button:disabled .btn-icon {
  animation: spin .9s linear infinite;
}
.msg {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  transition: color .18s var(--ease);
}
.msg.ok { color: var(--accent-ink); }
.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.fixture-strip {
  max-width: 100%;
  display: flex;
  gap: 8px;
  overflow: hidden;
  margin-top: 10px;
}
.fixture-strip span {
  flex: 1;
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.84);
  padding: 10px 12px;
  color: var(--pl);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: floatIn .6s var(--ease) both;
}
.fixture-strip span:nth-child(2) { animation-delay: .06s; }
.fixture-strip span:nth-child(3) { animation-delay: .12s; }
.fixture-strip span:nth-child(4) { animation-delay: .18s; }

/* ---------- Nav + gameweeks ---------- */
.nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(227,230,238,.9);
  border-radius: var(--r);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}
.navbtn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 11px 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.navbtn:hover { color: var(--pl-300); }
.navbtn.active {
  background: var(--pl);
  color: #fff;
  box-shadow: 0 10px 18px -14px rgba(55,0,60,.85);
}
.navbtn:active { transform: scale(.98); }

.gwbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 1px 8px;
  scrollbar-width: none;
}
.gwbar::-webkit-scrollbar { display: none; }
.gwbar button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.gwbar button:hover { border-color: var(--pl-300); transform: translateY(-1px); }
.gwbar button.active {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), #1edb7f);
  color: #073827;
}
.gwbar button.locked {
  color: var(--muted);
  background: rgba(255,255,255,.64);
}
.gwbar button.active.locked {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent), #1edb7f);
  color: #073827;
}
.gwbar button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.gwbar button.disabled {
  border-style: dashed;
}
.gwbar button:disabled:hover {
  border-color: var(--line);
  transform: none;
}

/* ---------- Views ---------- */
.view { animation: viewIn .36s var(--ease) both; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(0,122,70,.2);
  border-radius: 6px;
  background: #e9fff3;
  color: #06472a;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}
.status-pill.warn {
  border-color: rgba(255,184,76,.34);
  background: #fff7e8;
  color: #7a4b00;
}
.status-pill.ok {
  border-color: rgba(0,122,70,.28);
  background: #e9fff3;
  color: #06472a;
}
.view-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.9);
  padding: 14px 15px;
  margin: 4px 0 16px;
  box-shadow: var(--shadow-sm);
}
.view-kicker {
  display: block;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.view-intro h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
}
.view-intro p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}
.view-intro.compact { margin-top: 12px; }
.home-brief {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.92);
  padding: 14px;
  margin: 16px 0 14px;
  box-shadow: var(--shadow-md);
}
.home-brief-main {
  min-width: 0;
}
.home-brief h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}
.home-brief p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.home-brief .primary {
  width: 100%;
}
.home-brief-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.dash-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.dash-fixture.muted {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.dash-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.dash-team.away {
  justify-content: flex-end;
  text-align: right;
}
.dash-team span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-fixture strong {
  justify-self: center;
  color: var(--muted);
  font-size: 12px;
}
.admin-panel {
  border: 1px solid rgba(55,0,60,.18);
  border-left: 4px solid var(--pl);
  border-radius: var(--r);
  background:
    linear-gradient(120deg, rgba(55,0,60,.08), rgba(255,255,255,.94) 40%),
    #fff;
  padding: 15px;
  margin: 4px 0 14px;
  box-shadow: var(--shadow-md);
}
/* Admin sub-tabs: weekly work on one side, season-long setup on the other. */
.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 4px;
  padding: 5px;
  border-radius: var(--r);
  background: #eef0f6;
}
.admin-tab {
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: calc(var(--r) - 4px);
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  color: var(--muted);
  transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.admin-tab strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}
.admin-tab span {
  font-size: 11px;
  font-weight: 700;
  opacity: .85;
}
.admin-tab.active {
  background: #fff;
  color: var(--pl);
  box-shadow: var(--shadow-sm);
}
.admin-tab:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(55,0,60,.18); }
.admin-section-title {
  margin: 18px 2px 8px;
  color: var(--pl);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.admin-panel h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
}
.admin-special {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.72);
  padding: 11px;
}
.admin-special {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.admin-special strong,
.admin-special span {
  display: block;
}
.admin-special strong {
  color: var(--pl);
  font-size: 13px;
  font-weight: 950;
}
.admin-special span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.button-stack {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.secondary.compact {
  padding: 7px 9px;
  font-size: 11px;
}
.tracker-details > .admin-player-list,
.tracker-details > .msg { margin-top: 12px; }
.tracker-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding-right: 40px;
}
.tracker-summary::-webkit-details-marker { display: none; }
.tracker-summary h2 { margin: 2px 0 0; color: var(--ink); font-size: 21px; line-height: 1.1; }
.tracker-glance {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.tracker-summary::after {
  content: "⌄";
  position: absolute;
  right: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(55,0,60,.2);
  border-radius: var(--r);
  background: #fff;
  color: var(--pl);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.tracker-details[open] .tracker-summary::after {
  transform: rotate(180deg);
  background: #f6edf7;
}
.admin-player-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.72);
}
.admin-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-top: 1px solid var(--line);
}
.admin-player-row:first-child { border-top: 0; }
.admin-player-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-player-badges,
.row-status,
.bonus-head-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.add-player-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.add-player-fields input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font: inherit;
  background: #fff;
}
.add-player-fields .secondary { flex: 0 0 auto; }

.bonus-panel {
  border: 1px solid rgba(0,122,70,.24);
  border-radius: var(--r);
  background:
    linear-gradient(120deg, rgba(0,255,133,.12), rgba(255,255,255,.94) 42%),
    #fff;
  padding: 15px;
  margin: 4px 0 18px;
  box-shadow: var(--shadow-md);
}
.bonus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.bonus-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.1;
}
.bonus-points {
  flex: 0 0 auto;
  border: 1px solid rgba(0,122,70,.28);
  border-radius: var(--r);
  background: #e9fff3;
  color: #06472a;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 950;
}
.bonus-head-badges {
  justify-content: flex-end;
}
.bonus-deadline {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.bonus-grid,
.bonus-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
/* Collapsed "change your password" panel. */
.account-panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin: 14px 0 4px;
  padding: 0 14px;
  box-shadow: var(--shadow-sm);
}
.account-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
}
.account-panel summary::-webkit-details-marker { display: none; }
.account-panel strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.2; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.account-save { width: 100%; margin: 12px 0; }
@media (max-width: 640px) {
  .account-grid { grid-template-columns: 1fr; }
}
/* Loud, persistent notice that fixture data was pruned. */
.prune-warning {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(201,52,91,.4);
  border-left: 4px solid var(--danger);
  border-radius: var(--r);
  background: #fff2f5;
  margin: 12px 0 4px;
  padding: 12px 14px;
}
.prune-warning strong { color: #8d1436; font-size: 14px; }
.prune-warning span { color: #6d2338; font-size: 12px; font-weight: 650; line-height: 1.4; }
.prune-warning code {
  background: rgba(141,20,54,.09);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
}
/* Names the bonus picks still outstanding — all six are required. */
.bonus-todo {
  margin: -6px 0 12px;
  border: 1px solid rgba(255,184,76,.45);
  border-radius: var(--r);
  background: #fff8ec;
  padding: 9px 11px;
  color: #6b4a12;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.bonus-todo strong { font-weight: 900; }
/* "The drop" — separates the three relegation slots from the season bonuses. */
.bonus-subhead {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}
.bonus-subhead strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}
.bonus-subhead span {
  display: block;
  margin: 3px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.bonus-save {
  width: 100%;
  margin-top: 12px;
}
.bonus-summary {
  border: 1px solid rgba(0,122,70,.18);
  border-radius: var(--r);
  background: #fff;
  margin: 4px 0 14px;
  box-shadow: var(--shadow-sm);
}
.bonus-summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
}
.bonus-summary summary::-webkit-details-marker {
  display: none;
}
.bonus-summary strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}
.bonus-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px 14px 14px;
}
.bonus-summary-grid span {
  min-width: 0;
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.bonus-summary-grid strong {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.bonus-summary.locked {
  border-color: rgba(201,52,91,.18);
}
.bonus-unavailable {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.daygroup { margin-bottom: 22px; }
.dayhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 5px 12px;
  color: var(--pl-300);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dayhead::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- Match card ---------- */
.match-wrap {
  margin-bottom: 12px;
  animation: fadeUp .48s var(--ease) both;
  animation-delay: var(--d, 0s);
}
.match {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    linear-gradient(90deg, rgba(55,0,60,.025), transparent 22%, transparent 78%, rgba(0,255,133,.035)),
    var(--surface);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.match::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  opacity: 0;
  transform: scaleY(.35);
  transform-origin: center;
  background: linear-gradient(180deg, var(--accent), var(--sky));
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.match:hover {
  transform: translateY(-2px);
  border-color: #d7dbe5;
  box-shadow: var(--shadow-md);
}
.match.ready { border-color: rgba(0, 122, 70, .35); }
.match.ready::before { opacity: 1; transform: scaleY(1); }
.match-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  margin-bottom: 10px;
  padding-left: 2px;
  font-size: 12px;
}
.scorecard {
  display: grid;
  gap: 10px;
}
.pick-fixture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pick-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.pick-team.away { justify-content: flex-end; text-align: right; }
.pick-team span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-versus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}
.picks-details {
  padding: 0;
}
.picks-summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 15px 48px 15px 15px;
}
.picks-summary::-webkit-details-marker {
  display: none;
}
.picks-summary::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--pl);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.picks-details[open] .picks-summary::after {
  transform: translateY(-50%) rotate(180deg);
  border-color: rgba(0,122,70,.28);
  background: #e9fff3;
  color: var(--accent-ink);
}
.picks-details .pick-fixture {
  margin-bottom: 0;
}
.picks-details[open] .pick-fixture {
  margin-bottom: 12px;
}
.picks-details > .picks-list,
.picks-details > .hidden-picks,
.picks-details > .empty {
  margin: 0 15px 15px;
}
.picks-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.72);
}
.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 70px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 11px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pick-row:first-child { border-top: 0; }
.pick-player {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-score {
  justify-self: center;
  min-width: 54px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--pl);
  padding: 5px 8px;
  font-weight: 950;
  text-align: center;
}
.pick-points {
  justify-self: end;
  color: var(--accent-ink);
  font-weight: 950;
}
.hidden-picks {
  display: grid;
  gap: 3px;
  border: 1px dashed #cfd5e1;
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 12px;
}
.hidden-picks strong {
  color: var(--pl);
  font-size: 13px;
}
.hidden-picks span {
  color: var(--muted);
  font-size: 12px;
}
.empty.slim {
  margin: 0;
  padding: 14px;
  font-size: 13px;
}
.team-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.team-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.tname {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  transition: transform .22s var(--ease);
}
.badge img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgba(22,18,34,.18));
}
.badge .fallback {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 15px -10px rgba(22,18,34,.8);
}
.match:hover .badge { transform: translateY(-1px) scale(1.06); }

/* ---------- Score tiles ---------- */
.divider { height: 1px; background: var(--line); margin-left: 54px; }
.scoretile {
  display: grid;
  grid-template-columns: 38px 58px 38px;
  align-items: center;
  gap: 8px;
}
.scoretile.locked { grid-template-columns: 58px; }
.scoretile input {
  width: 58px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink);
  text-align: center;
  font-size: 23px;
  font-weight: 950;
  box-shadow: inset 0 1px 2px rgba(22,18,34,.05);
}
.scoretile input::placeholder { color: #b8bdca; }
.scoretile input:focus {
  transform: translateY(-1px);
  border-color: var(--pl);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(55,0,60,.13);
}
.scoretile input:disabled {
  background: #eef0f5;
  color: #686d79;
}
.scoretile.bump input { animation: bump .25s var(--ease); }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce0ea;
  border-radius: 50%;
  background: #fff;
  color: var(--pl);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease);
}
.step:hover { border-color: var(--pl-300); background: #fbf7fc; }
.step:active { transform: scale(.94); }

.ko { color: var(--muted); font-weight: 750; }
.ft-score {
  color: var(--pl);
  font-weight: 950;
}
.pts {
  border-radius: var(--r);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 950;
  animation: popIn .36s var(--ease) both;
}
.pts.p5 { background: #d7f8e6; color: #075f39; }
.pts.p2 { background: #fff0ca; color: #835700; }
.pts.p0 { background: #fae1e8; color: #9a2440; }
.locked-pill {
  border: 1px solid #d8dce6;
  border-radius: var(--r);
  background: #f0f2f7;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}
.cutoff-pill {
  border: 1px solid rgba(0,122,70,.24);
  border-radius: var(--r);
  background: #e9fbf1;
  color: var(--accent-ink);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}
.double-pill {
  border: 1px solid rgba(255,184,76,.42);
  border-radius: var(--r);
  background: #fff3d9;
  color: #855500;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 950;
}

/* ---------- Save bar ---------- */
.savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 4px;
  padding: 16px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(242,244,247,.96) 42%);
}
.savebar button { width: 100%; }
.savebar .msg { text-align: center; margin-top: 8px; }

/* ---------- Leaderboard ---------- */
.tablecard {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-md);
}
table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
th {
  background: linear-gradient(180deg, #fbfcff, #f0f2f7);
  color: var(--pl);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
td.num,
th.num { text-align: center; }
tbody tr {
  animation: fadeUp .42s var(--ease) both;
  animation-delay: var(--d, 0s);
}
tbody tr.position-first {
  background: linear-gradient(90deg, rgba(255,206,58,.28), rgba(255,246,205,.38) 52%, #fff);
  box-shadow: inset 4px 0 0 var(--gold);
}
tbody tr.position-second {
  background: linear-gradient(90deg, rgba(196,204,218,.34), rgba(245,247,251,.64) 52%, #fff);
  box-shadow: inset 4px 0 0 #b9c0cf;
}
tbody tr.position-third {
  background: linear-gradient(90deg, rgba(213,160,109,.26), rgba(255,243,232,.48) 52%, #fff);
  box-shadow: inset 4px 0 0 #d5a06d;
}
tbody tr.position-bottom {
  background: linear-gradient(90deg, rgba(237,28,36,.10), rgba(255,245,247,.58) 52%, #fff);
  box-shadow: inset 4px 0 0 var(--danger);
}
tbody tr.position-first.me-row,
tbody tr.position-second.me-row,
tbody tr.position-third.me-row,
tbody tr.position-bottom.me-row {
  outline: 2px solid rgba(0,122,70,.18);
  outline-offset: -2px;
}
tr:last-child td { border-bottom: 0; }
.rank { color: var(--muted); font-weight: 950; }
.rank-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 66px;
}
.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: var(--r);
  background: #eef0f5;
  font-size: 13px;
}
.rank.r1 .rank-badge { background: var(--gold); color: #4b3a00; box-shadow: 0 8px 18px -11px rgba(255,206,58,.95); }
.rank.r2 .rank-badge { background: #d5d9e3; color: #363b49; }
.rank.r3 .rank-badge { background: #d5a06d; color: #3f230c; }
.position-bottom .rank-badge {
  background: #fff0f4;
  color: var(--danger);
  border: 1px solid rgba(237,28,36,.20);
}
.player-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.position-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--pl);
  background: rgba(56,0,60,.08);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}
.position-first .position-tag {
  background: rgba(255,206,58,.34);
  color: #4b3a00;
}
.position-second .position-tag {
  background: #e7ebf2;
  color: #363b49;
}
.position-third .position-tag {
  background: #f6dfc9;
  color: #3f230c;
}
.position-bottom .position-tag {
  background: #fff0f4;
  color: var(--danger);
}
.pname .row-status {
  margin-top: 5px;
}
.movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  border-radius: 6px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}
.movement.up {
  background: #e9fbf1;
  color: var(--accent-ink);
}
.movement.down {
  background: #fff0f4;
  color: var(--danger);
}
.movement.same {
  background: #eef0f5;
  color: var(--muted);
}
.movement.new {
  background: rgba(5,199,242,.12);
  color: #027b94;
  font-size: 9px;
}
.me-row { background: linear-gradient(90deg, rgba(0,255,133,.12), rgba(5,199,242,.05)); }
.pname { font-weight: 850; }
.me-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  border: 1px solid rgba(0,122,70,.3);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 950;
  vertical-align: middle;
}
.bigpts {
  color: var(--pl);
  font-size: 16px;
  font-weight: 950;
}
.empty {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 42px 24px;
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: pop .34s var(--ease) both;
}
.empty .big {
  display: block;
  margin-bottom: 10px;
  color: var(--pl);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(.5); }
  65% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bump {
  0% { transform: none; }
  40% { transform: scale(1.14); }
  100% { transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes sheen {
  0% { transform: translateX(-130%); }
  24%, 100% { transform: translateX(130%); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 760px) {
  .auth {
    width: min(100%, 980px);
  }
  .auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) 360px;
    min-height: 430px;
  }
  .auth-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
  }
  .auth-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .brand { font-size: 18px; }
  .who { font-size: 12px; }
  .who button { padding: 6px 8px; }
  .admin-badge { min-height: 24px; padding: 3px 6px; font-size: 10px; }
  main { padding-left: 12px; padding-right: 12px; }
  .auth {
    width: auto;
    margin: 0 12px;
    padding-left: 0;
    padding-right: 0;
  }
  .auth-panel,
  .fixture-strip {
    width: min(100%, calc(100vw - 48px));
  }
  .auth-copy { padding: 26px 18px 18px; }
  .auth h1 {
    max-width: 330px;
    font-size: 32px;
    line-height: 1.02;
  }
  .sub { max-width: 310px; font-size: 14px; }
  .auth-box { padding: 18px; }
  .view-intro {
    display: block;
    padding: 13px;
  }
  .view-intro p {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }
  .home-brief {
    margin-top: 12px;
  }
  .home-brief-foot {
    grid-template-columns: 1fr;
  }
  .home-brief-foot .secondary {
    width: 100%;
  }
  .dash-fixture {
    grid-template-columns: 1fr;
  }
  .dash-fixture > strong {
    display: none;
  }
  .dash-team.away {
    justify-content: flex-start;
    text-align: left;
  }
  .admin-panel-head {
    display: block;
  }
  .admin-badge.panel {
    margin-top: 10px;
  }
  .bonus-head {
    display: block;
  }
  .bonus-points {
    display: inline-block;
    margin-top: 10px;
  }
  .bonus-grid,
  .bonus-admin-grid,
  .bonus-summary-grid {
    grid-template-columns: 1fr;
  }
  .admin-special {
    display: block;
  }
  .admin-special .secondary {
    width: 100%;
    margin-top: 10px;
  }
  .button-stack {
    display: grid;
    margin-top: 10px;
  }
  .button-stack .secondary {
    margin-top: 0;
  }
  .admin-player-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-player-badges {
    justify-content: flex-start;
  }
  .admin-player-row .secondary {
    width: 100%;
  }
  .pick-fixture { grid-template-columns: 1fr; }
  .pick-versus { display: none; }
  .pick-team.away { justify-content: flex-start; text-align: left; }
  .pick-row {
    grid-template-columns: minmax(0, 1fr) 58px 54px;
    gap: 8px;
    padding-inline: 9px;
  }
  .pick-score { min-width: 48px; }
  .match { padding: 13px; }
  .team-score-row { gap: 10px; }
  .scoretile {
    grid-template-columns: 34px 52px 34px;
    gap: 6px;
  }
  .scoretile.locked { grid-template-columns: 52px; }
  .scoretile input {
    width: 52px;
    height: 48px;
    font-size: 21px;
  }
  .step {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .badge,
  .badge img,
  .badge .fallback {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  /* Leaderboard: drop the wide min-width and tighten everything so all
     columns fit on a phone without horizontal scrolling. */
  .tablecard { overflow-x: hidden; }
  table { min-width: 0; }
  th,
  td {
    padding: 12px 4px;
    font-size: 13px;
  }
  th {
    font-size: 9.5px;
    letter-spacing: .02em;
  }
  th:first-child,
  td:first-child { padding-left: 8px; }
  th:last-child,
  td:last-child { padding-right: 8px; }
  .rank-cell { min-width: 0; gap: 3px; }
  .rank-badge { width: 22px; height: 22px; font-size: 12px; }
  .movement {
    min-width: 18px;
    padding: 2px 3px;
    font-size: 9px;
  }
  .movement.new { font-size: 8px; }
  .pname { font-size: 13px; }
  .player-name-line { flex-wrap: wrap; gap: 4px; }
  .position-tag,
  .me-tag { font-size: 9px; padding: 1px 5px; }
  .me-tag { margin-left: 4px; }
  .bigpts { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* Removing a player: destructive action + the undo list beneath it. */
.secondary.danger {
  border-color: rgba(201,52,91,.35);
  background: #fff5f7;
  color: #8d1436;
}
.secondary.danger:hover { border-color: var(--danger); background: #ffe9ee; }
.removed-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}
.removed-list > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.removed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 9px 11px;
  margin-bottom: 6px;
}
.removed-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.removed-row em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  font-style: normal;
}

/* Reminder that typed scores still need saving. */
.unsaved-note {
  border: 1px solid rgba(255,184,76,.5);
  border-radius: var(--r);
  background: #fff8ec;
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #6b4a12;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.unsaved-note strong { font-weight: 900; }

/* "Change my picks" row on the saved bonus summary. */
.bonus-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 11px 14px;
}
.bonus-edit-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* Collapsible admin panels on the Season tab. */
.admin-collapsible { padding-bottom: 0; }
.admin-collapsible[open] { padding-bottom: 18px; }
.admin-collapsible > .tracker-summary { padding: 0; }
.admin-collapsible > *:not(summary) { margin-top: 14px; }

/* The removed-players list, collapsed until asked for. */
.removed-list {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 4px;
}
.removed-list > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 9px 0;
}
.removed-list > summary::-webkit-details-marker { display: none; }
.removed-list > summary strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.removed-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 900;
}
.removed-list > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s var(--ease);
}
.removed-list[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* Inside a collapsible summary the "Admin only" chip is redundant and collides
   with the expand chevron — the whole tab is admin-only. */
.admin-collapsible > .tracker-summary .admin-badge.panel { display: none; }
.admin-collapsible > .tracker-summary .bonus-points { flex: 0 0 auto; align-self: flex-start; }
/* Long chips overrun the chevron in a collapsed summary; the glance line
   carries the same information. */
.admin-collapsible > .tracker-summary .bonus-points { display: none; }
