@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #132944;
    --muted: #536780;
    --blue: #0755bc;
    --blue-deep: #083369;
    --line: #dbe6f1;
    --surface: #fff;
    --wash: #eef5fc;
    --teal: #08726f;
    --pink: #9d3c4d;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse at top, #e0efff, transparent 550px), #f3f7fb; font-size: 15px; line-height: 1.55; }
a { color: var(--blue); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #f4ad30; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: clamp(23px, 5vw, 30px); line-height: 1.42; letter-spacing: -.025em; }
h2 { font-size: 19px; line-height: 1.45; }
h3 { font-size: 17px; }
h2 small { color: var(--muted); font-size: 13px; font-weight: 500; }
small { line-height: 1.4; }
.shell { width: min(100% - 28px, 640px); margin-inline: auto; }
.shell.wide { width: min(100% - 28px, 1020px); }
.bar { background: #0a2b57; color: white; }
.bar .shell { min-height: 56px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bar small { margin-left: auto; color: #c9e5ff; font-size: 12px; font-weight: 500; }
.bar-mark, .brand-mark { display: grid; place-items: center; color: #fff; background: #167bed; font-weight: 800; }
.bar-mark { width: 29px; height: 29px; border-radius: 8px; }
.brand-mark { width: 50px; height: 50px; border-radius: 14px; font-size: 26px; margin-inline: auto; }
main.shell { padding-top: 16px; }
.hero { border-radius: 16px; overflow: hidden; background: #0875ea; border: 1px solid #70b7fb; box-shadow: 0 12px 28px #174d8520; }
.hero img { display: block; width: 100%; height: auto; }
.judge-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; margin: 16px 2px 10px; color: var(--muted); }
.judge-line b { color: var(--blue-deep); }
.round-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(56px, 100%), 1fr)); gap: 6px; margin: 0 0 14px; }
.round-nav a { display: grid; gap: 2px; justify-items: center; padding: 8px 2px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.round-nav a b { font-size: 13px; }
.round-nav a small { color: var(--muted); font-size: 10px; }
.round-nav a[aria-current="page"] { background: #e2efff; border-color: #5397ec; color: var(--blue-deep); }
.round-nav a[aria-current="page"] small { color: #155ba5; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0 0 14px; box-shadow: 0 5px 14px #183b6010; }
.card > h2 { margin-bottom: 10px; }
.topic { border-top: 3px solid #3289e7; }
.topic-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 8px; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 30px; font-weight: 700; white-space: nowrap; color: #455974; background: #edf1f6; }
.badge.open { color: #126742; background: #ddf4e9; }
.badge.closed { color: #174c8d; background: #e7f0ff; }
.matchup { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.matchup > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; padding: 8px 10px; border-radius: 8px; background: #edf4ff; color: var(--blue-deep); font-size: 13px; }
.matchup > .con { background: #e8f6f5; color: var(--teal); }
.matchup small { font-size: 11px; font-weight: 700; }
.matchup strong { overflow-wrap: anywhere; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-size: 18px; font-weight: 800; }
legend small { margin-left: 5px; color: var(--blue); background: #eef5ff; padding: 3px 8px; border-radius: 30px; font-size: 11px; }
.muted { color: var(--muted); font-size: 13px; }
.choice-card .muted { margin: 2px 0 12px; }
.winner-grid, .speaker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick { position: relative; display: flex; align-items: center; gap: 8px; min-height: 62px; padding: 8px 10px; cursor: pointer; border: 1px solid var(--line); background: #f9fbfe; border-radius: 10px; }
.pick > span { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.pick small { color: var(--muted); }
.pick b { font-weight: 750; font-size: 14px; }
.pick input, .checks input { flex: none; accent-color: var(--blue); margin: 0; width: 16px; height: 16px; }
.pick.con input { accent-color: var(--teal); }
.pick:has(input:checked) { border-color: #387edf; box-shadow: inset 0 0 0 1px #387edf; background: #eff6ff; }
.pick.con:has(input:checked) { border-color: #198b84; box-shadow: inset 0 0 0 1px #198b84; background: #ebf8f6; }
.speaker { min-height: 57px; }
.speaker small { font-size: 11px; color: var(--blue); }
.speaker.con small { color: var(--teal); }
.submit { display: grid; gap: 6px; text-align: center; padding: 3px 0 env(safe-area-inset-bottom); }
.submit p { color: var(--muted); font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 15px; border-radius: 9px; border: 1px solid transparent; font-weight: 700; text-decoration: none; text-align: center; }
.primary { background: #0759c4; color: #fff; }
.primary:hover { background: #064ca5; }
.secondary { background: #f2f7fe; border-color: #cbdcf0; color: var(--blue-deep); }
.secondary:hover { background: #e4effd; }
.button:disabled { cursor: wait; opacity: .76; }
.submit .button { min-height: 50px; }
.waiting { text-align: center; padding-block: 21px; }
.empty, .login { margin: 28px auto 12px; max-width: 450px; padding: clamp(18px, 5vw, 32px); }
.empty { text-align: center; }
.empty h1, .login h1 { margin: 4px 0 12px; }
.empty .brand-mark { margin-bottom: 13px; }
.empty p { color: var(--muted); }
.notice { padding: 10px 12px; margin: 0 0 12px; border-radius: 9px; font-size: 14px; }
.notice.success { background: #e5f8ee; color: #165c3c; }
.notice.error { background: #fff0f2; color: var(--pink); }
.receipt dl { display: grid; gap: 8px; margin: 0; }
.receipt dl div { display: grid; grid-template-columns: 6em minmax(0, 1fr); padding-block: 6px; border-bottom: 1px solid var(--line); }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
footer { text-align: center; font-size: 12px; padding: 20px 0 calc(18px + env(safe-area-inset-bottom)); color: var(--muted); }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-block: 12px 15px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 7px 1px; text-decoration: none; color: var(--muted); font-weight: 700; }
.admin-tabs [aria-current="page"] { color: var(--blue); border-bottom: 3px solid var(--blue); }
.admin-rounds a b, .admin-rounds a small { font-size: 12px; }
.admin-actions, .checks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.checks label { display: flex; gap: 6px; align-items: center; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; }
.flow { display: grid; gap: 12px; }
.flow > .button { justify-self: start; }
.field { display: grid; gap: 4px; min-width: 0; color: var(--ink); font-weight: 600; }
.field input { min-width: 0; width: 100%; min-height: 42px; border: 1px solid #c5d5e8; border-radius: 8px; padding: 8px 9px; background: #fff; color: var(--ink); font-weight: 400; }
fieldset:disabled input { background: #f3f6fa; }
.judge-admin { border-top: 1px solid var(--line); padding: 10px 0; }
.judge-admin summary { cursor: pointer; font-weight: 700; padding-block: 4px; }
.judge-admin summary small { padding-left: 8px; color: var(--muted); }
.judge-link { margin-block: 8px; }
.judge-form, .rotate { margin-top: 12px; }
.edit-grid, .results-grid, .stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.team-edit { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.stat-grid { margin-bottom: 12px; }
.stat { display: grid; gap: 2px; background: #e4efff; border: 1px solid #cddff8; border-radius: 11px; padding: 8px 14px; }
.stat b { font-size: 26px; color: var(--blue-deep); }
.stat span { color: var(--muted); font-size: 12px; }
.pending { margin: 0 0 12px; }
.tally { margin: 9px 0 0; }
.tally div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.tally b { white-space: nowrap; }
progress { appearance: none; width: 100%; height: 6px; border: 0; background: #e8effa; border-radius: 8px; color: #2e77da; }
progress::-webkit-progress-bar { background: #e8effa; border-radius: 8px; }
progress::-webkit-progress-value { background: #2e77da; border-radius: 8px; }
progress::-moz-progress-bar { background: #2e77da; border-radius: 8px; }
.result-note { margin-top: 7px; color: var(--blue); font-size: 13px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 13px; }
td, th { padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: #edf4fb; }
@media (max-width: 560px) {
    .results-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 360px) {
    .card { padding: 13px; }
    .pick { padding-inline: 7px; }
    .edit-grid { grid-template-columns: 1fr; }
}

