:root{color-scheme:dark;--bg:#101819;--panel:#192526;--gold:#f4cd7a;--text:#f7f5ed;--muted:#c4ceca;--edge:#4a5b58}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.55 "Instrument Sans",system-ui,sans-serif}
.wrap{width:min(100% - 2rem,64rem);margin-inline:auto}
header{background:#0a1011;border-bottom:1px solid var(--edge)}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;padding-block:1rem;color:var(--gold)}
.hero{padding-block:clamp(1rem,5vw,3rem) 1rem}
h1{font:600 clamp(2.55rem,7vw,5rem)/1.1 Georgia,serif;letter-spacing:-.04em;margin:0}
h2,h3{line-height:1.2;margin-top:0}
p,li{color:var(--muted)}
.panel{border:1px solid var(--edge);background:var(--panel);padding:clamp(1rem,3vw,2rem);border-radius:1rem;margin:1rem 0}
.actions,nav,#picks{display:flex;flex-wrap:wrap;gap:.55rem}
label{display:block;margin-bottom:.8rem}
input,button{font:inherit}
button{min-height:44px;border:1px solid transparent;background:var(--gold);color:#211700;cursor:pointer;padding:.5rem .85rem;border-radius:.5rem;font-weight:700}
.secondary{background:transparent;color:var(--text);border-color:#81908a}
button[aria-pressed=true]{background:var(--gold);color:#211700;border-color:var(--gold)}
button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #a6e4fc;outline-offset:3px}
input{display:block;min-height:44px;max-width:100%;border:1px solid #81908a;border-radius:.35rem;background:#101819;padding:.45rem .65rem;color:var(--text)}
details{margin-top:1.25rem}
summary{cursor:pointer;color:var(--gold);margin-bottom:.5rem}
fieldset{border:0;padding:0;margin:0 0 1rem;min-width:0}
legend{padding:0;margin-bottom:.5rem}
#picks button{min-width:44px}
.stake input{width:7rem}
#notice:empty,#outcome:empty{display:none}
#notice,#outcome{color:var(--gold)}
ul{padding-inline-start:1.2rem}
li{margin-bottom:.55rem;overflow-wrap:anywhere}
#report button{margin:.35rem}

#stage:not(:empty) { margin-block: 1rem; }
#stage.stage { font-size: clamp(1.5rem, 6vw, 3rem); font-weight: 700; color: var(--gold); }
.lane { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr 2.25rem; align-items: center; gap: .5rem; }
.lane progress { width: 100%; accent-color: var(--gold); }
.balls { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.balls li { border: 1px solid var(--edge); border-radius: 50%; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; }
.balls li.match { background: var(--gold); color: #211700; font-weight: 700; }
