:root { --red: #9e1f2e; --ink: #2b2b2b; --muted: #777; --line: #e8e2de; --bg: #f7f5f0; }
* { box-sizing: border-box; }
body { font-family: sans-serif; color: var(--ink); background: var(--bg); max-width: 560px; margin: 0 auto; padding: 16px; }
header { border-bottom: 3px solid var(--red); padding-bottom: 8px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 18px; margin: 0; }
.sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
section { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
#updated { color: var(--muted); font-size: 12px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); }
.team-row:first-child { border-top: none; }
.team-row.first { background: #fdf3f4; border-radius: 8px; }
.rank { width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #eee; font-weight: bold; flex: none; }
.team-row.first .rank { background: var(--red); color: #fff; }
.team-name { font-weight: bold; flex: none; }
.team-mid { flex: 1; min-width: 0; }
.bar { height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--red); transition: width .5s; }
.meta { color: var(--muted); font-size: 12px; }
.no-score { color: var(--muted); }
.team-score { font-size: 20px; font-weight: bold; flex: none; }
.hint { color: var(--muted); font-size: 13px; }
button, select, input { display: block; width: 100%; margin: 10px 0; font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid #ccc; }
button { background: var(--red); color: #fff; border: none; font-weight: bold; }
.card { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.card h3 { margin: 0 0 4px; }
.score { margin: 4px 0 10px; }
.score b { font-size: 24px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { margin: 0; }
.pair img { width: 100%; display: block; border-radius: 6px; }
.pair figcaption { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.4; }
