:root {
  --bg: #141f36; --card: #1f2c48; --line: #3a4a6d; --text: #f2f4fa; --muted: #b9c3da;
  --accent: #a98bf5; --accent-text: #141f36; --error: #ffb4ab;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, sans-serif; }
header, main, footer {max-width: 760px; margin: 0 auto; padding: 1rem; }
a { color: var(--accent); }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: .02em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; }
h1 { line-height: 1.2; }
h2 { margin-top: 0; font-size: 1.15rem; }
.hero { padding: 1.5rem 0; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; margin: 0 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
label { display: block; margin-bottom: .75rem; }
input, select { display: block; width: 100%; margin-top: .25rem; padding: .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
button, .button { display: inline-block; padding: .65rem 1.1rem; border-radius: 8px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button.secondary { background: transparent; color: var(--accent); }
button.link { background: none; border: 0; padding: .25rem; color: var(--accent); text-decoration: underline; font-weight: 400; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.muted { color: var(--muted); }
.error { border: 2px solid var(--error); color: var(--error); border-radius: 8px; padding: .75rem; }
.code { font: 700 1.3rem ui-monospace, monospace; letter-spacing: .12em; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0 .6rem; font-size: .8rem; color: var(--muted); }
.members, .results, .predictions { list-style: none; padding: 0; }
.members li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.result-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.score { font-size: 1.6rem; font-weight: 800; color: var(--accent); white-space: nowrap; }
.score small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.predictions li { display: grid; grid-template-columns: 1fr 3rem 10rem; gap: .5rem; }
@media (max-width: 480px) { .predictions li { grid-template-columns: 1fr 3rem; } .predictions li { row-gap: 0; margin-bottom: .6rem; } .predictions li .muted { grid-column: 1 / -1; font-size: .8rem; } }
.choices, .host-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.choices button { padding: .45rem .8rem; }
.host-actions { margin-top: .75rem; }
.inline { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.inline label { margin: 0; }
.inline input { width: 8rem; }
.checklist { border: 1px solid var(--line); border-radius: 8px; padding: .6rem; margin-bottom: .75rem; }
.checklist summary { cursor: pointer; }
.checklist fieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .25rem .75rem; max-height: 15rem; overflow-y: auto; border: 0; margin: .6rem 0 0; padding: .25rem; }
.checklist label { display: flex; align-items: center; gap: .4rem; margin: 0; }
.checklist input { width: auto; margin: 0; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
header { display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1rem; }
.with-poster { display: flex; gap: 1rem; align-items: flex-start; }
.poster { border-radius: 8px; object-fit: cover; flex: none; }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; margin: 0; flex: none; }
.error-text { color: var(--error); }
details summary { cursor: pointer; margin-bottom: .5rem; }
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-bottom: 2rem; font-size: .9rem; }
.inline .grow { flex: 1 1 14rem; }
.inline .grow input { width: 100%; }
.found li { padding: .9rem 0; border-top: 1px solid var(--line); }
.found h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.found p { margin: .25rem 0; }
.synopsis { font-style: italic; margin: .5rem 0 0; }
.prose h2 { margin-top: 1.75rem; }
.prose li { margin-bottom: .35rem; }
