:root {
  color-scheme: light;
  --ink: #121721;
  --muted: #667085;
  --line: #dce2ea;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --night: #101820;
  --yellow: #f5c518;
  --yellow-strong: #ddb000;
  --blue: #1769aa;
  --good: #087443;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(16, 24, 40, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 320px;
  background: #eef2f6;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 650; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  padding: 10px 11px;
  border-radius: 7px;
  color: #4d5768;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.site-header nav a:hover, .site-header nav a.active { background: #edf3f8; color: var(--ink); }
.user-chip { margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 800; }

main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 68px; }
.play-section-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(224, 233, 229, .88));
  box-shadow: 8px 10px 25px rgba(48, 72, 68, .08), inset 1px 1px 1px rgba(255, 255, 255, .94);
}
.play-section-nav a {
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 12px 17px;
  align-content: center;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #53625f;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.play-section-nav a:hover { transform: translateY(-1px); border-color: rgba(31, 118, 89, .16); background: rgba(255, 255, 255, .62); }
.play-section-nav a.is-active {
  border-color: rgba(255, 255, 255, .9);
  color: #f7fbfa;
  background: linear-gradient(145deg, #18464b, #0d2b30);
  box-shadow: 6px 8px 18px rgba(13, 43, 48, .2), inset 1px 1px 1px rgba(255, 255, 255, .15);
}
.play-section-nav span { font-size: .86rem; font-weight: 900; }
.play-section-nav small { margin-top: 3px; color: #7a8885; font-size: .65rem; font-weight: 680; }
.play-section-nav a.is-active small { color: #a9c1bd; }
.portal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 16px;
  background: var(--night);
  color: white;
  box-shadow: var(--shadow);
}
.portal-hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -125px;
  top: -170px;
  border: 52px solid rgba(245, 197, 24, .17);
  border-radius: 50%;
}
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.portal-hero h1 { margin: 0; max-width: 760px; font-size: clamp(36px, 6vw, 68px); line-height: .98; letter-spacing: -.055em; }
.portal-hero p:not(.eyebrow) { max-width: 650px; margin: 18px 0 0; color: #cfd6df; line-height: 1.65; }
.hero-stat { position: relative; z-index: 1; min-width: 170px; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.07); }
.hero-stat span { display: block; color: #bdc7d3; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.hero-stat strong { display: block; margin-top: 7px; font-size: 24px; }

.game-onboarding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.game-onboarding article {
  display: flex;
  min-width: 0;
  gap: 13px;
  padding: 18px;
  background: var(--surface);
}
.game-onboarding article > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--yellow);
  background: var(--night);
  font-size: 12px;
  font-weight: 950;
}
.game-onboarding strong { display: block; }
.game-onboarding p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 38px 0 16px; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.game-card, .panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .055);
}
.game-card { position: relative; overflow: hidden; padding: 24px; }
.game-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--yellow); }
.game-card--paused::before { background:var(--danger); }
.game-card--paused { background:#fffafa; }
.game-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--night); color: var(--yellow); font-weight: 950; }
.game-card h3 { margin: 22px 0 8px; font-size: 23px; }
.game-card p { min-height: 72px; margin: 0; color: var(--muted); line-height: 1.55; }
.game-card__guide {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}
.game-card__guide summary,
.portal-guide summary {
  min-height: 30px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.game-card__guide ol,
.portal-guide ol { margin: 12px 0 8px; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.game-card__guide li + li,
.portal-guide li + li { margin-top: 6px; }
.game-card__guide small { color: var(--muted); font-size: 11px; font-weight: 750; }
.portal-guide { margin-top: 18px; padding-block: 16px; }
.portal-guide summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; }
.portal-guide ol { max-width: 850px; font-size: 13px; }
.game-card--skeleton { min-height: 430px; }
.game-card--skeleton::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 9px;
  background: linear-gradient(100deg, #edf1f5 20%, #f8fafc 46%, #edf1f5 72%);
  background-size: 220% 100%;
  animation: portal-loading 1.2s ease-in-out infinite;
}
@keyframes portal-loading { to { background-position: -220% 0; } }
.game-load-error { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 40px 22px; text-align: center; }
.game-load-error p { min-height: 0; margin: 0; color: var(--muted); }
.game-card .game-maintenance { min-height:0; margin:12px 0 0; padding:10px 11px; border-radius:8px; background:#fff1f0; color:var(--danger); font-size:12px; font-weight:750; }
.game-meta { display: flex; justify-content: space-between; gap: 10px; margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.game-meta strong { color: var(--ink); }
.card-actions { display: flex; align-items: center; gap: 9px; }
.button {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--yellow);
  color: #151515;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--yellow-strong); }
.button.secondary { background: white; border-color: var(--line); color: var(--ink); }
.button.secondary:hover { background: var(--surface-soft); }
.button.danger { background: #fff4f2; color: var(--danger); border-color: #ffd5d0; }
.button.small { min-height: 44px; padding: 0 11px; font-size: 13px; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #ecfdf3; color: var(--good); font-size: 12px; font-weight: 850; }
.tag.muted { background: #edf1f5; color: #5c6675; }

.account-panel { margin-top: 18px; padding: 22px; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.account-summary strong { display: block; font-size: 18px; }
.account-summary span { color: var(--muted); font-size: 14px; }
.account-summary small { display:block; margin-top:4px; font-size:12px; }
.verification.good { color:var(--good); }
.verification.warning { color:#946200; }
.text-link { color:var(--blue); font-size:13px; font-weight:750; }
.account-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:18px; }
.account-actions { display:flex; flex-wrap:wrap; gap:9px; }
.portal-loading,
.portal-state-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}
.portal-loading p,
.portal-state-error p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.loading-spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 3px solid #dce4ea;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spinner .8s linear infinite;
}
@keyframes spinner { to { transform: rotate(360deg); } }
.portal-state-error { border-color: #ffc9c3; background: #fffafa; }
.account-overview { margin-top: 18px; }
.account-overview__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.account-overview__heading h2 { margin-bottom: 0; }
.account-overview__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.account-overview__stats article { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.account-overview__stats span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.account-overview__stats strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font-size: 18px; }
.portal-next-action { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 13px 15px; border-left: 4px solid var(--yellow); border-radius: 8px; background: #fff9df; }
.portal-next-action span { color: #6e5a00; font-size: 13px; }
.account-game-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.account-game-card { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; }
.account-game-card.is-active { border-color: #a8d8c1; background: #f3fcf7; }
.account-game-card strong,
.account-game-card span { display: block; }
.account-game-card span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.league-grid { display:grid; grid-template-columns:360px minmax(0,1fr); gap:18px; margin-top:18px; align-items:start; }
.league-list { display:grid; gap:9px; }
.league-card { padding:14px; border:1px solid var(--line); border-radius:9px; background:white; cursor:pointer; }
.league-card.active { border-color:var(--yellow-strong); box-shadow:0 0 0 2px rgba(245,197,24,.2); }
.league-card small { display:block; color:var(--muted); margin-top:4px; }
.code-box { padding:12px; border:1px dashed #a9b3bf; border-radius:8px; background:#f8fafc; font:800 18px ui-monospace,monospace; letter-spacing:.08em; text-align:center; }
.leaderboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.legal-copy { max-width:800px; line-height:1.75; }
.legal-copy h2 { margin-top:32px; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.auth-card { padding: 24px; }
.auth-card h2 { margin: 0 0 4px; }
.auth-card > p { margin: 0 0 20px; color: var(--muted); }
.form-grid { display: grid; gap: 13px; }
label.field { display: grid; gap: 6px; color: #4d5768; font-size: 13px; font-weight: 750; }
input, select {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid #cfd6df;
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
input:focus, select:focus { outline: 3px solid rgba(23, 105, 170, .13); border-color: var(--blue); }
.checkbox-line { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.checkbox-line input { width: 17px; height: 17px; min-height: 0; margin-top: 2px; }
.notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #edf6ff; color: #155887; font-size: 14px; }
.notice[data-type="error"] { background: #fff1f0; color: var(--danger); }
.notice[data-type="success"] { background: #ecfdf3; color: var(--good); }

.portal-toolbar { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; padding: 18px; margin-top: 20px; }
.portal-toolbar label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; margin-top: 18px; align-items: start; }
.panel { padding: 22px; }
.panel h2, .panel h3 { margin-top: 0; }
.empty-state { padding: 44px 18px; text-align: center; color: var(--muted); }
.load-error strong { display: block; margin-bottom: 12px; color: var(--ink); }
.load-error .button { margin-inline: auto; }
.leaderboard { display: grid; gap: 8px; }
.leader-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.leader-row:last-child { border-bottom: 0; }
.leader-rank { color: var(--muted); font-weight: 850; }

.fixture-list { display: grid; gap: 10px; }
.pick-fixture { display: grid; grid-template-columns: minmax(0, 1fr) 230px minmax(0, 1fr); align-items: center; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.fixture-team { display: flex; align-items: center; gap: 11px; min-width: 0; font-weight: 800; }
.fixture-team.away { justify-content: flex-end; text-align: right; }
.team-logo { width: 38px; height: 38px; object-fit: contain; flex: none; }
.pick-center { display: grid; justify-items: center; gap: 7px; }
.kickoff { color: var(--muted); font-size: 12px; font-weight: 700; }
.score { min-width: 70px; padding: 6px 11px; border-radius: 7px; background: var(--yellow); text-align: center; font-size: 18px; font-weight: 950; }
.pick-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; }
.pick-button { min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: white; font-weight: 900; cursor: pointer; }
.pick-button:hover:not(:disabled), .pick-button.selected { border-color: var(--night); background: var(--night); color: var(--yellow); }
.pick-button:disabled { cursor: not-allowed; opacity: .62; }

.question-list { display: grid; gap: 12px; }
.question-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.question-top { display: flex; justify-content: space-between; gap: 18px; }
.question-card h3 { margin: 0 0 5px; }
.question-card p { margin: 0; color: var(--muted); font-size: 14px; }
.question-card select { margin-top: 16px; }
.saved-state { min-height: 20px; margin-top: 8px; color: var(--good); font-size: 12px; font-weight: 800; }

.fantasy-summary { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; }
.summary-box { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.summary-box span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.summary-box strong { display: block; margin-top: 5px; font-size: 19px; }
.fantasy-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; margin-top: 18px; align-items: start; }
.market-table { width: 100%; border-collapse: collapse; }
.market-table th { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: left; text-transform: uppercase; }
.market-table td { padding: 9px 8px; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.player-cell { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.player-cell img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #e7ebf0; }
.market-scroll { width: 100%; min-width: 0; max-height: 680px; overflow: auto; }
.squad-groups { display: grid; gap: 16px; }
.squad-group h4 { margin: 0 0 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.squad-player { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 9px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.squad-player small { display: block; color: var(--muted); margin-top: 2px; }
.lineup-list { display: grid; gap: 7px; }
.lineup-player { display: grid; grid-template-columns: 23px 1fr 42px 42px; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.lineup-player > span { display: grid; gap: 2px; }
.lineup-player > span small { display: block; color: var(--muted); }
.lineup-player input { min-height: 0; width: 17px; height: 17px; }
.lineup-player label { display: grid; justify-items: center; color: var(--muted); font-size: 10px; font-weight: 800; }
.lineup-player.bench { background: #f5f7fa; color: #626d7b; }
.status-badge { display:inline-flex; padding:4px 7px; border-radius:999px; background:#edf1f5; color:#5c6675; font-size:10px; font-weight:850; white-space:nowrap; }
.status-badge.available { background:#ecfdf3; color:var(--good); }
.status-badge.injured,.status-badge.suspended,.status-badge.removed { background:#fff1f0; color:var(--danger); }
.status-badge.uncertain { background:#fff8df; color:#8a5d00; }
.fantasy-pitch { display:grid; gap:18px; min-height:560px; padding:30px 18px; margin-bottom:20px; border-radius:14px; background:linear-gradient(90deg,transparent 49.7%,rgba(255,255,255,.5) 50%,transparent 50.3%),repeating-linear-gradient(0deg,#3d995f 0,#3d995f 70px,#348c55 70px,#348c55 140px); border:3px solid #fff; box-shadow:inset 0 0 0 2px rgba(255,255,255,.55); }
.pitch-row { display:flex; justify-content:space-evenly; align-items:center; gap:8px; }
.pitch-player { position:relative; width:105px; padding:9px 6px; border-radius:9px; background:rgba(16,24,32,.92); color:white; text-align:center; box-shadow:0 6px 15px rgba(0,0,0,.2); }
.pitch-player img { width:45px; height:45px; margin:auto; display:block; border-radius:50%; object-fit:cover; background:#e7ebf0; }
.pitch-player strong { display:block; overflow:hidden; margin-top:5px; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.pitch-player small { color:#d8e0e8; font-size:9px; }
.captain-mark { position:absolute; top:-7px; right:-7px; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--yellow); color:#111; font-size:10px; font-weight:950; }
.round-history,.transfer-history { display:grid; gap:8px; }
.history-card { padding:12px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.history-card summary { display:grid; grid-template-columns:1fr auto; gap:10px; cursor:pointer; font-weight:850; }
.history-card small { color:var(--muted); }
.point-detail { display:grid; grid-template-columns:1fr auto; gap:7px; margin-top:8px; padding-top:8px; border-top:1px solid #edf0f4; font-size:12px; }
.transfer-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #edf0f4; font-size:12px; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; }
.mobile-only { display: none; }

@media (max-width: 980px) {
  .site-header { position: static; flex-direction: column; align-items: flex-start; padding-top: 14px; padding-bottom: 12px; }
  .site-header nav { max-width: 100%; overflow-x: auto; }
  .game-grid, .fantasy-layout { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .fantasy-summary { grid-template-columns: repeat(3, 1fr); }
  .account-overview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-game-list { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  main { width: min(100% - 24px, 1240px); padding-top: 18px; }
  .site-header { gap: 10px; padding-inline: 12px; }
  .site-header nav a { padding: 8px; white-space: nowrap; font-size: 12px; }
  .play-section-nav { gap: 6px; padding: 6px; border-radius: 18px; }
  .play-section-nav a { min-height: 60px; padding: 10px 11px; border-radius: 13px; }
  .play-section-nav span { font-size: .76rem; }
  .play-section-nav small { font-size: .56rem; line-height: 1.25; }
  .user-chip { display: none; }
  .portal-hero { grid-template-columns: 1fr; padding: 27px 22px; }
  .portal-hero h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2rem, 9vw, 2.7rem); }
  .hero-stat { display: none; }
  .auth-grid, .portal-toolbar { grid-template-columns: 1fr; }
  .account-grid,.league-grid,.leaderboard-grid { grid-template-columns:1fr; }
  .game-onboarding { grid-template-columns: 1fr; }
  .account-summary, .section-heading { align-items: flex-start; flex-direction: column; }
  .account-overview__heading,
  .portal-next-action,
  .portal-loading,
  .portal-state-error { align-items: flex-start; flex-direction: column; }
  .pick-fixture { grid-template-columns: 1fr 130px 1fr; gap: 8px; padding: 12px 8px; }
  .fixture-team { flex-direction: column; text-align: center; font-size: 12px; }
  .fixture-team.away { flex-direction: column-reverse; text-align: center; }
  .team-logo { width: 32px; height: 32px; }
  .fantasy-summary { grid-template-columns: repeat(2, 1fr); }
  .market-table th:nth-child(3), .market-table td:nth-child(3), .market-table th:nth-child(6), .market-table td:nth-child(6), .market-table th:nth-child(8), .market-table td:nth-child(8) { display: none; }
  .fantasy-pitch { min-height:480px; padding-inline:5px; }
  .pitch-row { gap:3px; }
  .pitch-player { width:62px; padding:7px 3px; }
  .pitch-player img { width:38px; height:38px; }
  footer { flex-direction: column; }
}

@media (max-width: 420px) {
  .account-overview__stats { grid-template-columns: 1fr; }
  .account-game-card { align-items: stretch; flex-direction: column; }
  .account-game-card .button { width: 100%; }
  .pick-fixture { grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); }
  .fixture-team { overflow-wrap: anywhere; }
}

@media (max-width: 340px) {
  .portal-hero h1 { overflow-wrap: normal; font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .game-card--skeleton::after,
  .loading-spinner { animation: none; }
}

@media (prefers-contrast: more) {
  .game-card,
  .panel,
  .account-game-card,
  input,
  select { border-color: #596575; }
}
