:root { color-scheme: light; --ink: #24342c; --muted: #59665e; --green: #285b40; --paper: #f7f4ec; --line: #d5dccd; --gold: #f2ca73; font-family: 'Segoe UI', system-ui, sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1020px; margin: auto; padding: 36px 24px 20px; }
header, .connection-row, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.055em; margin: 0; line-height: 1.1; }
h2 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.02em; }
p { line-height: 1.5; margin: 8px 0 16px; }
.dot { color: var(--green); }
.eyebrow { text-transform: uppercase; font-size: .72rem; font-weight: 750; letter-spacing: .13em; margin: 0 0 10px; color: var(--muted); }
.card { background: #fffefa; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.login-card { max-width: 460px; margin: 42px auto; }
.login-card form { margin-top: 28px; }
.layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
aside { display: grid; gap: 20px; }
.connection-row { padding: 14px 0; min-height: 80px; }
.connection-row p { margin: 0; font-size: .9rem; color: var(--muted); }
label { display: block; margin: 18px 0 8px; font-weight: 650; font-size: .9rem; }
input, select, button { font: inherit; min-height: 48px; width: 100%; border-radius: 8px; }
input, select { border: 1px solid #a7b4a9; background: white; color: var(--ink); padding: 12px; font-size: 1rem; }
select { overflow: hidden; text-overflow: ellipsis; }
#score { font-size: 1.7rem; font-weight: 650; font-variant-numeric: tabular-nums; }
button { cursor: pointer; border: 1px solid var(--green); background: var(--green); color: white; padding: 12px 16px; font-weight: 650; }
button:hover:not(:disabled) { background: #1a422c; }
button:disabled { opacity: .5; cursor: default; }
button.quiet { width: auto; background: transparent; color: var(--green); border-color: transparent; white-space: nowrap; }
button.quiet:hover:not(:disabled), button.secondary:hover:not(:disabled) { background: #eaf0e6; }
button.secondary { margin-top: 10px; background: transparent; color: var(--green); }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #b27c13; outline-offset: 3px; }
.muted { color: var(--muted); font-size: .85rem; }
.current { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin-top: 10px; border-bottom: 1px solid var(--line); gap: 12px; font-size: .9rem; }
.current strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notice { background: #fff2d6; border: 1px solid #d1ae67; border-radius: 10px; padding: 16px; margin: 16px 0; }
.notice p { font-size: .9rem; }
.notice h2 { font-size: 1.1rem; }
#save-message, #login-message { margin-bottom: 0; font-size: .9rem; overflow-wrap: anywhere; }
[data-tone="error"] { color: #963a2a; }
[data-tone="success"] { color: #245a3a; }
.party { background: #edf1e5; }
.party-total { margin: 22px 0 14px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 750; letter-spacing: -.04em; overflow-wrap: anywhere; }
.unit { font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-left: 5px; }
progress { width: 100%; height: 12px; border: 0; border-radius: 20px; overflow: hidden; accent-color: var(--green); background: #d3dccb; }
progress::-webkit-progress-bar { background: #d3dccb; }
progress::-webkit-progress-value { background: var(--green); }
.display-card h2 { font-size: 1.15rem; }
#display-status p { overflow-wrap: anywhere; }
.history { margin-top: 20px; }
.history ol { list-style: none; padding: 0; margin: 20px 0 0; }
.history li { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; font-size: .9rem; }
.history li strong { display: block; overflow-wrap: anywhere; }
.history li small { color: var(--muted); display: block; margin-top: 5px; }
.history .award { font-variant-numeric: tabular-nums; white-space: nowrap; }
footer { text-align: center; color: var(--muted); font-size: .75rem; padding: 26px 0 8px; }
@media (max-width: 620px) { main { padding: 24px 16px 12px; } header { align-items: flex-start; } .card { padding: 22px 18px; } .layout { grid-template-columns: 1fr; gap: 16px; } aside { gap: 16px; } .login-card { margin: 28px auto; } .history li { gap: 10px; } }
@media (max-width: 420px) { .history li { display: block; } .history .award { display: block; margin-top: 8px; white-space: normal; } }
