:root { color-scheme: dark; --bg: #0c1212; --panel: #151d1d; --line: #2c3935; --text: #edf2e9; --muted: #97a79d; --lime: #b8f36b; --blue: #80b5ff; --gold: #edcf88; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.ambient { pointer-events: none; position: absolute; top: 0; right: 0; width: 70%; height: 650px; background: radial-gradient(ellipse at 90% 5%, #a8dc6110, transparent 65%); }
.shell { max-width: 1280px; padding: 0 48px; margin: auto; position: relative; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; letter-spacing: 3px; font-weight: 800; }
.brand-icon { width: 36px; height: 36px; background: var(--lime); color: #192219; border-radius: 10px; display: grid; place-items: center; }
.brand-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.brand-sub { border-left: 1px solid var(--line); padding-left: 18px; margin-left: 10px; font-size: 9px; letter-spacing: 2px; color: var(--muted); font-weight: 500; }
.top-links { display: flex; align-items: center; gap: 28px; font-size: 12px; }
.top-links a { color: var(--muted); }
.top-links a:hover { color: var(--lime); }
.status { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.status::before, .tiny-dot { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status.ready { color: var(--lime); }
.status.ready::before { background: var(--lime); box-shadow: 0 0 12px #b8f34566; }
.status.failed { color: #f3a8a1; }
.status.failed::before { background: #f3a8a1; }
.hero { padding: 60px 0 42px; display: grid; grid-template-columns: 1.7fr 1fr; gap: 50px; align-items: center; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 600; color: var(--muted); margin: 0 0 14px; }
.hero .eyebrow { color: var(--lime); display: flex; align-items: center; gap: 10px; }
.hero .eyebrow span { width: 20px; height: 1px; background: var(--lime); }
h1 { font-size: clamp(32px, 3.5vw, 47px); line-height: 1.15; letter-spacing: -1.7px; font-weight: 600; margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--lime); }
.intro { color: var(--muted); font-size: 14px; max-width: 500px; margin: 0; line-height: 1.8; }
.pitch { height: 205px; border-radius: 12px; background: linear-gradient(150deg, #293c2c55, #17272233); padding: 22px; border: 1px solid #83ad6930; transform: rotate(-6deg); }
.pitch-lines { border: 1px solid #92b89250; height: 100%; position: relative; }
.pitch-lines::before { content: ""; position: absolute; height: 100%; left: 50%; border-left: 1px solid #92b89250; }
.centre-circle { border: 1px solid #92b89250; width: 65px; height: 65px; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.penalty { position: absolute; top: 22%; height: 56%; width: 17%; border: 1px solid #92b89250; }
.penalty.left { left: -1px; } .penalty.right { right: -1px; }
.player, .ball { position: absolute; width: 8px; height: 8px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 5px #b8f36b12; }
.p1 { left: 24%; top: 30%; } .p2 { left: 38%; top: 68%; } .p3 { left: 52%; top: 32%; }
.p4, .p5, .p6 { background: var(--blue); box-shadow: 0 0 0 5px #80b5ff12; }
.p4 { left: 65%; top: 64%; } .p5 { left: 80%; top: 29%; } .p6 { left: 70%; top: 20%; }
.ball { left: 53%; top: 60%; width: 5px; height: 5px; background: white; box-shadow: none; }
.pitch-caption { position: absolute; bottom: -24px; right: 0; color: #718373; font-size: 8px; letter-spacing: 2px; }
.snapshot { border: 1px solid var(--line); background: #151e1980; border-radius: 12px; display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; margin: 12px 0 30px; padding: 20px 24px; gap: 20px; }
.snapshot > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.meta-label { display: block; font-size: 9px; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.snapshot strong { font-size: 12px; font-weight: 500; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: linear-gradient(130deg, #192322, var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.panel-heading .eyebrow { margin-bottom: 6px; font-size: 9px; }
h2 { margin: 0; font-size: 23px; font-weight: 550; letter-spacing: -.6px; }
.panel-tag { background: #b8f36b09; border: 1px solid #536349; color: #bbc9b3; padding: 5px 8px; border-radius: 5px; font-size: 8px; letter-spacing: 1px; white-space: nowrap; }
fieldset { margin: 0; padding: 0; border: none; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.field { min-width: 0; }
label { display: flex; justify-content: space-between; color: #cdd7cc; font-size: 12px; margin-bottom: 9px; }
.side-label { font-size: 8px; letter-spacing: 1px; color: #7a8b7f; padding-top: 3px; }
input, select { color: var(--text); background: #0d1514; border: 1px solid #37463c; border-radius: 8px; width: 100%; padding: 13px 12px; font-size: 13px; height: 48px; }
input::placeholder { color: #6c7e71; }
input:focus, select:focus { border-color: var(--lime); }
input:disabled, select:disabled { opacity: .5; }
.field-hint { color: #90a092; font-size: 10px; line-height: 1.7; margin: 10px 0 24px; }
.matchup { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 10px; align-items: end; }
.swap { color: var(--muted); background: none; border: 0; padding: 0; margin-bottom: 12px; font-size: 23px; }
.swap:hover { color: var(--lime); }
.example-button { background: transparent; color: var(--lime); border: 0; font-size: 11px; padding: 0 0 23px; }
.example-button span { margin-left: 6px; }
.predict-button { background: var(--lime); color: #13200e; width: 100%; border: none; border-radius: 9px; padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; box-shadow: 0 4px 20px #b8f36b0b; transition: background .15s, transform .15s; }
.predict-button:hover { background: #cbff8e; transform: translateY(-1px); }
.predict-button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-arrow { font-size: 20px; line-height: 1; }
.form-footer { padding-top: 20px; margin-top: 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 8px; }
.tiny-dot { background: var(--lime); display: inline-block; width: 5px; height: 5px; }
.empty-state { text-align: center; min-height: 318px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.orbit { display: flex; margin-bottom: 24px; }
.orbit span { border: 1px solid #516344; background: #a5d97908; border-radius: 50%; width: 56px; height: 56px; display: grid; place-items: center; color: var(--lime); font-size: 19px; font-weight: 300; }
.orbit span + span { margin-left: -8px; }
.orbit span:nth-child(2) { color: var(--gold); border-color: #6a6348; background: #25261b; z-index: 1; }
.orbit span:nth-child(3) { color: var(--blue); border-color: #40536c; }
.empty-state h3 { font-size: 17px; font-weight: 500; margin: 0 0 8px; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.empty-legend { display: flex; gap: 32px; font-size: 8px; letter-spacing: 2px; color: #748579; margin-top: 30px; }
.result-fixture { font-size: 18px; font-weight: 600; margin: 0 0 4px; overflow-wrap: anywhere; }
.result-context { color: var(--muted); font-size: 11px; margin: 0; }
.winner { padding: 20px 0; }
.winner .meta-label { color: var(--lime); }
.winner h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }
.winner p { margin: 5px 0 0; font-size: 10px; color: var(--muted); }
.probability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prob-card { padding: 14px 10px; border: 1px solid var(--line); border-radius: 10px; background: #0d151466; min-width: 0; }
.prob-card > span { font-size: 8px; letter-spacing: 1px; color: var(--muted); display: block; }
.prob-card strong { font-size: clamp(22px, 2.2vw, 30px); display: block; font-weight: 550; letter-spacing: -1px; margin: 8px 0 4px; }
.prob-card small { color: var(--muted); font-size: 10px; display: block; overflow-wrap: anywhere; }
.prob-card.home strong { color: var(--lime); } .prob-card.draw strong { color: var(--gold); } .prob-card.away strong { color: var(--blue); }
.prob-card.selected { border-color: var(--lime); background: #b8f36b0a; }
.prob-card.draw.selected { border-color: var(--gold); background: #edcf880a; } .prob-card.away.selected { border-color: var(--blue); background: #80b5ff0a; }
.distribution { display: flex; gap: 3px; height: 7px; margin-top: 18px; border-radius: 4px; overflow: hidden; }
.distribution span { min-width: 0; transition: width .5s; }
#home-bar { background: var(--lime); } #draw-bar { background: var(--gold); } #away-bar { background: var(--blue); }
.distribution-home_win { background: var(--lime); }
.distribution-draw { background: var(--gold); }
.distribution-away_win { background: var(--blue); }
.result-footnote { font-size: 10px; color: var(--muted); margin: 13px 0 18px; }
.response-details { border-top: 1px solid var(--line); padding-top: 14px; }
summary { font-size: 11px; color: #a9b6a9; cursor: pointer; }
summary span { float: right; font-family: monospace; font-size: 9px; color: #7d8c7d; }
pre { font-size: 11px; padding: 15px; background: #0c1312; border-radius: 8px; overflow: auto; max-height: 260px; color: #bccdb9; }
.error-banner { background: #d7645810; border: 1px solid #b5564a66; color: #ffc0b7; font-size: 12px; padding: 12px; border-radius: 8px; margin-bottom: 18px; }
.error-banner button { background: none; border: 1px solid #b5564a; color: inherit; border-radius: 5px; margin-left: 12px; padding: 5px 8px; }
.method-note { display: flex; align-items: center; gap: 16px; margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: #18211a44; }
.note-icon { border: 1px solid #576848; color: var(--lime); font-family: Georgia, serif; font-style: italic; border-radius: 50%; width: 25px; height: 25px; display: grid; place-items: center; flex-shrink: 0; }
.method-note h3 { margin: 0 0 3px; font-size: 12px; font-weight: 500; }
.method-note p { margin: 0; font-size: 11px; color: var(--muted); max-width: 720px; }
.method-note a { font-size: 10px; color: var(--lime); margin-left: auto; white-space: nowrap; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 24px 0; border-top: 1px solid var(--line); color: #7c8c7d; font-size: 9px; letter-spacing: 1px; }
.footer-divider { color: var(--lime); margin: 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 980px) { .shell { padding: 0 28px; } .brand-sub { display: none; } .hero { gap: 30px; } .panel { padding: 22px; } .form-row { grid-template-columns: 1fr; gap: 15px; } .prob-card strong { font-size: 24px; } }
@media (max-width: 720px) { .shell { padding: 0 20px; } .topbar { height: 80px; } .top-links { gap: 16px; } .hero { padding: 36px 0 22px; grid-template-columns: 1fr; } .pitch { display: none; } h1 { font-size: 36px; } .snapshot { grid-template-columns: 1fr 1fr; padding: 18px; gap: 20px; } .snapshot > div + div { padding-left: 0; border-left: 0; } .workspace { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1.2fr 1fr; } .panel { padding: 24px; } .method-note { align-items: flex-start; padding: 18px; } .method-note a { display: none; } footer { flex-direction: column; gap: 8px; } .empty-state { min-height: 250px; } }
@media (max-width: 400px) { .brand { font-size: 15px; gap: 8px; } .top-links { font-size: 10px; gap: 10px; } h1 { font-size: 31px; } .panel { padding: 18px; } .form-row { grid-template-columns: 1fr; } .matchup { grid-template-columns: 1fr; gap: 8px; } .swap { margin: 0; justify-self: center; } .panel-tag { font-size: 7px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.lineup-editor { margin: 18px 0 8px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 12px 14px; }
.lineup-editor summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.lineup-columns { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
.lineup-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.lineup-count { font-size: 0.75rem; opacity: 0.7; margin-right: auto; }
.lineup-load { background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.lineup-list { max-height: 240px; overflow-y: auto; display: grid; gap: 2px; }
.lineup-list label { display: flex; justify-content: flex-start; gap: 8px; align-items: center; font-size: 0.85rem; margin: 0; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.lineup-list label:hover { background: rgba(255, 255, 255, 0.05); }
.lineup-list input[type="checkbox"] { width: 16px; height: 16px; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--lime); cursor: pointer; }
.lineup-list small { opacity: 0.6; margin-left: auto; }
.predicted-lineup { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.predicted-lineup h4 { margin: 0 0 10px; font-size: 12px; }
.predicted-lineup ul { list-style: none; padding: 0; margin: 0; }
.predicted-lineup li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 12px; border-top: 1px solid var(--line); }
.predicted-lineup li span { overflow-wrap: anywhere; }
.predicted-lineup li strong { color: var(--lime); white-space: nowrap; }
.gameweek-panel { margin-bottom: 24px; }
.gameweek-match { border: 1px solid var(--line); padding: 14px 12px; margin-top: 10px; border-radius: 10px; }
.gameweek-match.strength-low { background: #332127; border-left: 4px solid #dca0ad; }
.gameweek-match.strength-medium { background: #302b1e; border-left: 4px solid var(--gold); }
.gameweek-match.strength-high { background: #203024; border-left: 4px solid var(--lime); }
.strength-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; color: var(--muted); margin: 12px 0; }
.strength-legend span { border-left: 3px solid; padding-left: 8px; }
.strength-legend .low { border-color: #dca0ad; }
.strength-legend .medium { border-color: var(--gold); }
.strength-legend .high { border-color: var(--lime); }
.gameweek-match .strength-label { font-size: 10px; }
.gameweek-match h3 { font-size: 14px; margin: 0 0 6px; }
.gameweek-match p { font-size: 12px; color: var(--muted); margin: 6px 0; }
.gameweek-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gameweek-matchup { min-width: 0; overflow-wrap: anywhere; }
.gameweek-probabilities { display: flex; gap: 8px; flex-shrink: 0; }
.gameweek-outlook { flex-shrink: 0; }
.prediction-strength { font-size: 12px; color: var(--muted); }
.strength-panel { padding: 14px; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
.strength-panel.strength-low { border-color: #dca0ad; background: #332127; }
.strength-panel.strength-medium { border-color: var(--gold); background: #302b1e; }
.strength-panel.strength-high { border-color: var(--lime); background: #203024; }
.strength-panel h4 { margin: 0; font-size: 13px; }
.strength-meter { height: 8px; position: relative; margin: 18px 0 8px; border-radius: 4px; background: linear-gradient(to right, #dca0ad 0% 10%, var(--gold) 10% 25%, var(--lime) 25% 100%); }
.strength-marker { position: absolute; top: 50%; width: 4px; height: 18px; border: 1px solid var(--bg); border-radius: 2px; background: var(--text); transform: translate(-50%, -50%); }
.strength-scale { position: relative; display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }
.strength-tick-10, .strength-tick-25 { position: absolute; transform: translateX(-50%); }
.strength-tick-10 { left: 10%; }
.strength-tick-25 { left: 25%; }
.strength-panel .result-footnote { margin-bottom: 0; }
.gameweek-outlook .prediction-strength { font-size: 10px; text-align: right; }
.gameweek-distribution { margin-top: 8px; }
.gameweek-probability { display: grid; gap: 3px; text-align: center; min-width: 72px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0d1514; }
.gameweek-probability span { font-size: 11px; color: inherit; }
.gameweek-probability strong { font-size: 16px; }
.gameweek-probability.outcome-home_win { color: var(--lime); }
.gameweek-probability.outcome-draw { color: var(--gold); }
.gameweek-probability.outcome-away_win { color: var(--blue); }
.gameweek-probability.selected { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.gameweek-details { margin-top: 8px; }
.gameweek-details > summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.gameweek-details[open] > summary { color: var(--lime); margin-bottom: 12px; }
@media (max-width: 600px) {
  .gameweek-row { gap: 8px; }
  .gameweek-probabilities { gap: 4px; }
  .gameweek-probability { min-width: 48px; padding: 6px 4px; }
  .gameweek-probability strong { font-size: 12px; }
  .gameweek-outlook .prediction-strength { max-width: 160px; }
}
