:root{--serif:"Songti SC","Noto Serif CJK SC","STSong",serif;--sans:"PingFang SC","Microsoft YaHei",sans-serif;--ink:#30443a;--muted:#737b6b;--accent:#a2533c;--line:#a1a18a48;font:14px/1.7 var(--sans);color:var(--ink);background:#f3f0e6}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 84% 0,#dfe4d433,transparent 46%);min-height:100vh}
button,a,select,input{-webkit-tap-highlight-color:transparent}
button{font:inherit;cursor:pointer;color:inherit;border:0;background:none;padding:8px 0;min-height:44px}
button:disabled{cursor:default;opacity:.5}
a{color:inherit;text-decoration:none}
a:hover,button:hover{color:var(--accent)}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:1px solid var(--accent);outline-offset:4px}
svg{fill:none;stroke:currentColor;stroke-width:1.3}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}
.board-header{display:flex;justify-content:space-between;align-items:center;padding:28px 4.6%;gap:20px}
.brand{display:flex;gap:10px;align-items:center;font:20px/1.2 var(--serif);letter-spacing:3px}
.brand img{width:30px;height:36px}.brand small{display:block;font:10px/1.2 Georgia,serif;letter-spacing:1.5px;margin-top:4px}
.board-header nav{display:flex;align-items:center;gap:32px;font-size:13px;letter-spacing:1px}
main{max-width:1180px;margin:24px auto 48px;padding:0 4.6%}
.board-intro{display:flex;justify-content:space-between;align-items:center;gap:32px;margin-bottom:28px}
.eyebrow{font:10px/1.8 var(--sans);letter-spacing:2px;color:var(--muted)}
.title-line{display:flex;align-items:center;gap:18px;margin:5px 0 7px}
.board-intro h1{font:36px/1.25 var(--serif);letter-spacing:6px}
.seal{font:9px/1.5 var(--serif);color:var(--accent);border:1px solid #a2533c66;padding:3px 4px;letter-spacing:1px;transform:rotate(-3deg)}
.intro-copy{font:13px/1.8 var(--serif);color:var(--muted);letter-spacing:.6px}
.season-select{font-size:10px;color:var(--muted);display:grid;gap:3px;width:230px;flex-shrink:0}
.season-select select{width:100%;min-width:0;border:0;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink);background:transparent;font:13px var(--serif);min-height:40px;padding:6px 18px 6px 0;text-overflow:ellipsis}
.season-summary{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:18px 0 20px;border-bottom:1px solid var(--line)}
.season-context{min-width:0}.season-caption{display:flex;flex-direction:column;gap:4px}
.season-summary h2{font-size:20px;line-height:1.5;letter-spacing:1px;overflow-wrap:anywhere}
.season-summary p{font-size:10px;color:var(--muted);margin-top:5px;font-variant-numeric:tabular-nums}
#season-status{color:var(--accent);font-size:10px;letter-spacing:1px}
.season-metrics{display:flex;gap:38px;flex-shrink:0;padding-left:25px}
.metric>span{display:block;font-size:10px;letter-spacing:.5px;color:var(--muted);margin-bottom:3px}
.metric strong{font:29px/1.25 Georgia,serif;font-weight:400}.metric small{font-size:10px;margin-left:7px;color:var(--muted)}
.board-tabs{display:flex;gap:38px;border-bottom:1px solid var(--line)}
.board-tabs button{position:relative;font:16px/1.5 var(--serif);letter-spacing:2px;padding:12px 0 15px;min-height:50px;color:var(--muted)}
.board-tabs button[aria-selected=true]{color:var(--accent)}
.board-tabs button[aria-selected=true]::after{content:"";position:absolute;inset:auto 0 -1px;height:2px;background:var(--accent)}
[role=tabpanel]{outline-offset:8px;padding-top:22px}
#history-controls{padding-top:18px;display:flex;justify-content:flex-end}
#history-controls .season-select{grid-template-columns:auto minmax(0,1fr);align-items:center;width:320px;gap:18px}
.history-empty{padding:70px 20px;text-align:center;font:16px/1.9 var(--serif);color:var(--muted)}
.personal-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;max-width:850px;padding:3px 0 24px}
.personal-layout:has(.challenge-entry[hidden]){grid-template-columns:minmax(0,380px)}
.personal-layout .challenge-entry{margin:0;padding:5px 0 0 36px;border:0;border-left:1px solid var(--line)}
body[data-board-tab=mine] .season-metrics{display:none}
.ranking-panel{min-width:0}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:7px}
.list-heading h2,.personal-heading h2{font-size:18px;letter-spacing:2px;white-space:nowrap}
.list-heading button{color:var(--muted);font-size:10px;letter-spacing:.5px}
#board-message{padding:65px 15px;text-align:center;color:var(--muted);font:15px/1.9 var(--serif)}
table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
th{font:10px/1.6 var(--sans);color:var(--muted);text-align:left;padding:10px 5px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:17px 5px;border-bottom:1px solid #a1a18a28;font-size:12px;vertical-align:middle;overflow-wrap:anywhere}
th:first-child,td:first-child{padding-left:0;width:8%}td:first-child{font:20px Georgia,serif;color:var(--muted)}
th:nth-child(2){width:33%}th:nth-child(3){width:20%}th:nth-child(4){width:23%}th:nth-child(5){width:16%}
th:nth-child(n+3),td:nth-child(n+3){text-align:right}
td:nth-child(2) strong{font:16px/1.65 var(--serif);letter-spacing:.5px;display:block}td:nth-child(2) small{font:10px/1.5 Georgia,serif;color:var(--muted);letter-spacing:.8px}
td:nth-child(3){font:18px/1.5 Georgia,serif}td:nth-child(4){font:15px/1.5 Georgia,serif}
td:last-child{font-size:10px;color:var(--muted);padding-right:0}th:last-child{padding-right:0}
tr[data-top=true] td:first-child,tr[data-top=true] td:nth-child(4){color:var(--accent)}
.unit{font:9px var(--sans);margin-left:4px;color:var(--muted)}
.personal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;min-height:44px}
.personal-heading h2{font-size:16px;letter-spacing:1px}.personal-heading button{font-size:10px;color:var(--muted);white-space:nowrap}
#my-place{font-size:12px;line-height:1.9;color:var(--muted)}
.my-result{display:flex;gap:18px;align-items:center;min-height:48px}.my-rank{font:29px/1 Georgia,serif;color:var(--accent);white-space:nowrap}.my-rank small{font:10px var(--sans);margin-left:5px;color:var(--muted)}
.my-town{min-width:0}.my-town strong{display:block;font:16px/1.6 var(--serif);font-weight:400;color:var(--ink);overflow-wrap:anywhere}.my-town span{font:12px/1.6 Georgia,var(--serif);color:var(--muted)}
#account-message{font-size:11px;line-height:1.7;color:var(--accent)}#account-message:not(:empty){margin-top:12px}
.challenge-entry{padding-top:23px;margin-top:25px;border-top:1px solid var(--line);font-size:12px}
.entry-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;color:var(--muted);font-size:10px}.entry-heading .eyebrow{letter-spacing:1px}
.entry-caption{font-size:11px;line-height:1.8;color:var(--muted);margin-top:8px}
.entry-current{display:block;margin-top:15px}.entry-current strong{font:18px/1.6 var(--serif);font-weight:400;letter-spacing:1px;overflow-wrap:anywhere;display:block}.entry-current>span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.entry-current b,.challenge-entry [data-challenge-create]{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;border-bottom:1px solid #a2533c70;color:var(--accent);font:15px var(--serif);letter-spacing:1px;margin-top:8px}
.entry-current svg{width:28px;height:18px;transition:transform .2s}.entry-current:hover svg{transform:translateX(3px)}
.entry-name{display:grid;gap:5px;margin-top:17px;font-size:10px;color:var(--muted)}
.entry-name input{font:16px var(--serif);color:var(--ink);background:none;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:10px 0;width:100%;min-width:0}
.entry-note{color:var(--muted);font-size:10px;line-height:1.8;margin-top:10px}
.entry-history{margin-top:24px}.entry-history h3{font:10px/1.8 var(--sans);letter-spacing:1px;color:var(--muted);margin-bottom:5px}
.entry-attempts a{display:block;padding:9px 0;border-bottom:1px solid #a1a18a28}.entry-attempts strong{font:13px/1.7 var(--serif);font-weight:400;overflow-wrap:anywhere;display:block}.entry-attempts span{display:block;color:var(--muted);font:10px/1.7 var(--sans);margin-top:2px}
.entry-message{font-size:11px;color:var(--accent);margin-top:12px}
.board-notes{display:grid;grid-template-columns:1fr 1fr;gap:55px;margin-top:42px;padding-top:22px;border-top:1px solid var(--line)}
.board-notes h3{font-size:14px;letter-spacing:1px;margin:0 0 6px}.board-notes p,#board-rules p{font-size:11px;color:var(--muted);line-height:1.9}
#board-rules{margin-top:14px;font-size:11px;color:var(--muted)}#board-rules summary{cursor:pointer;min-height:44px;padding:10px 0}#board-rules p{margin-top:7px}
footer{display:flex;justify-content:space-between;padding:22px 4.6%;font:10px var(--serif);letter-spacing:2px;color:var(--muted);gap:20px}
.review-note{font-size:10px;line-height:1.8;color:var(--accent);padding-bottom:12px;margin-bottom:8px}
@media(min-width:1100px){.board-intro{margin-bottom:32px}}
@media(max-width:760px){
 .board-header{padding:23px 20px 14px}.board-header nav{gap:17px;font-size:11px}.brand{font-size:18px}.brand img{width:26px;height:32px}
 main{margin:21px auto 30px;padding:0 20px}.board-intro{align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:18px}.board-intro h1{font-size:32px}.intro-copy{font-size:12px}.title-line{gap:14px;margin-top:4px}
 .season-select{width:100%;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px}.season-select select{font-size:13px;min-height:38px}
 .season-summary{display:block;padding:16px 0}.season-summary h2{font-size:18px;letter-spacing:.6px}.season-summary p{font-size:10px}
 .season-metrics{gap:34px;padding:0;margin-top:16px}.metric{display:flex;align-items:baseline;gap:12px}.metric strong{font-size:23px}.metric>span{font-size:10px;letter-spacing:0;margin:0}.metric small{font-size:9px;margin-left:5px}
 .board-tabs{gap:0;justify-content:space-between}.board-tabs button{font-size:15px;letter-spacing:1px;min-height:48px;padding:11px 5px 14px}
 [role=tabpanel]{padding-top:16px}#history-controls{padding-top:12px}#history-controls .season-select{width:100%;gap:12px;grid-template-columns:55px minmax(0,1fr)}
 .personal-layout{grid-template-columns:minmax(0,1fr);gap:25px;padding:0}.personal-layout .challenge-entry{border:0;border-top:1px solid var(--line);padding:20px 0 0}
 .personal-heading{min-height:38px;margin-bottom:10px}.personal-heading h2{font-size:16px}.my-result{gap:20px}.my-rank{font-size:28px}.my-town strong{font-size:17px}
 .entry-history{margin-top:22px}.entry-attempts a{display:flex;align-items:center;justify-content:space-between;gap:16px}.entry-attempts span{margin:0;text-align:right;flex-shrink:0}.entry-name{grid-template-columns:65px minmax(0,1fr);align-items:center}.entry-current strong{font-size:18px}
 .list-heading{margin-bottom:0}.list-heading h2{font-size:17px}.list-heading button{font-size:10px}
 th,td{padding:13px 4px}th{font-size:9px}th:nth-child(2),th:nth-child(4){white-space:normal}th:nth-child(2){width:31%}th:nth-child(3){width:20%}th:nth-child(4){width:25%}
 td:nth-child(2) strong{font-size:14px;letter-spacing:0}td:first-child{font-size:17px}td:nth-child(3){font-size:16px}td:nth-child(4){font-size:14px}td:last-child{font-size:9px}td .unit{display:block;margin:2px 0 0;font-size:9px}
 .board-notes{gap:22px;margin-top:28px;padding-top:20px}.board-notes h3{font-size:13px}.board-notes p,#board-rules p{font-size:10px}footer{padding:20px;font-size:9px;letter-spacing:1px}
}
@media(prefers-reduced-motion:reduce){.entry-current svg{transition:none}}
