:root { color-scheme: light dark; font: 16px/1.5 system-ui, sans-serif; --bg: #10161d; --panel: #1b242e; --line: #354352; --text: #edf2f7; --muted: #b2c0ce; --accent: #91caff; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); }
a { color: var(--accent); }
button, .button { display: inline-block; font: inherit; font-weight: 600; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); color: var(--text); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { border-color: var(--accent); }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.app-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; }
.account { display: flex; gap: 1rem; align-items: center; }
main { width: min(100% - 2rem, 62rem); margin: 1.5rem auto 4rem; }
h1 { margin: .3rem 0; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.25; }
h2 { margin-top: 0; font-size: 1.1rem; }
p { margin: .5rem 0 1rem; }
.muted { color: var(--muted); }
.simulation-banner { background: #493b15; color: #ffe8a0; border: 1px solid #917a36; border-radius: .65rem; padding: .75rem 1rem; margin-bottom: 1.5rem; }
.heading, .actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel { padding: 1.2rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); margin-top: 1.25rem; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.badge { border: 1px solid var(--line); border-radius: 2rem; padding: .3rem .75rem; }
.players { padding: 0; list-style: none; margin-bottom: 0; }
.player { display: flex; gap: 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line); }
.number { flex: 0 0 2rem; color: var(--muted); text-align: center; }
.player-name { font-weight: 600; }
details { margin-top: 1.5rem; color: var(--muted); }
code { overflow-wrap: anywhere; font-size: .8rem; }
.error { border-left: 4px solid #e98181; }
@media (max-width: 520px) { .app-header { padding: .8rem 1rem; } .account { gap: .5rem; } #account { display: none; } .heading { align-items: flex-start; flex-wrap: wrap; } .panel { padding: 1rem; } }
@media (prefers-color-scheme: light) { :root { --bg: #f3f6f9; --panel: #fff; --line: #cbd5df; --text: #172838; --muted: #526474; --accent: #14598d; } .simulation-banner { background: #fff3cf; color: #664b06; } }

.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.signed-in { color: var(--muted); margin-top: 1rem; }
.primary { background: var(--accent); color: var(--bg); }
.login-panel { max-width: 35rem; }
.simulation-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding: 1rem 0; }
.simulation-row > div { min-width: 0; }
.simulation-row small { display: block; overflow-wrap: anywhere; }
.simulation-row .button { flex-shrink: 0; }
h3 { font-size: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; }
.scorables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .8rem; }
.scorable-link { display: grid; gap: .3rem; border: 1px solid var(--line); border-radius: .55rem; padding: 1rem; text-decoration: none; color: var(--text); }
.scorable-link:hover { border-color: var(--accent); }
@media (max-width: 520px) { .simulation-row { align-items: stretch; flex-direction: column; } .simulation-row .button { text-align: center; } }
