.ranking-page{color-scheme:dark;margin:0;min-height:100dvh;background:radial-gradient(ellipse at 50% 12%,#26302c,#0b1117 76%);color:#efdfc1;font:16px/1.55 system-ui,sans-serif}
.ranking-page main{max-width:470px;margin:auto;padding:24px 12px}
.ranking-page main>a{display:inline-block;color:#e8c993;margin:0 4px 14px;text-underline-offset:4px}
.scoreboard{box-sizing:border-box;width:100%;color:#eee0c7;font:15px/1.45 system-ui,sans-serif;text-align:left;letter-spacing:0;border:1px solid #786a52;border-radius:8px;padding:clamp(12px,3vw,19px);background:linear-gradient(145deg,#302e26,#192224 48%,#171d20);box-shadow:inset 0 1px #bdb29940,0 8px 32px #03090bc2}
.scoreboard *{box-sizing:border-box}
#curtain .scoreboard{max-width:440px;max-height:100%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}
#curtain:has(.scoreboard:not([hidden])){padding: max(8px,env(safe-area-inset-top)) 10px max(8px,env(safe-area-inset-bottom))}
.scoreboard[hidden],.scoreboard [hidden],#pause-panel[hidden]{display:none!important}
.board-head{display:flex;align-items:baseline;gap:12px;justify-content:space-between;margin-bottom:10px}.board-head span,.board-head h2{font-family:Georgia,'Yu Mincho',serif}.board-head span{font-size:14px;color:#cebfa1}.board-head h2{font-size:clamp(20px,4vh,27px);font-weight:normal;margin:0}.board-head h2:focus{outline:none}
.scoreboard button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}.scoreboard button:focus-visible,.scoreboard input:focus-visible{outline:2px solid #ffcf87;outline-offset:2px}
.board-filters{display:flex;justify-content:space-between;gap:7px;margin-bottom:8px}
.board-filters>div{display:flex}.board-filters button{background:#131a1b;border:1px solid #535346;color:#bac1b8;padding:7px 10px;min-height:40px;font-size:13px}.board-filters button+button{border-left:0}
.board-filters button[aria-pressed=true]{color:#ffe2a8;background:#3e382c;box-shadow:inset 0 -2px #ca9b5b}
.led-screen{background:#10100e radial-gradient(circle,#755d3642 .65px,transparent .98px) 0 0/4px 4px;border:1px solid #080a09;box-shadow:inset 0 2px 5px #000,0 1px #655e4d;border-radius:3px;padding:10px 12px}
.led-sign{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:7px;border-bottom:1px solid #635037}
.led-sign strong{font:900 clamp(29px,6.5vw,41px)/1.1 ui-monospace,monospace;color:#ffcd7d;letter-spacing:.03em}
@supports(background-clip:text){.led-sign strong{background:radial-gradient(circle,#ffd897 1.1px,#d79540 1.32px,transparent 1.51px) 0 0/3.3px 3.3px;background-clip:text;color:transparent;filter:drop-shadow(0 0 3px #f4a33f40)}}
.led-sign span{font:12px/1.4 ui-monospace,monospace;color:#ccb592}
.scoreboard table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.scoreboard th,.scoreboard td{text-align:left;padding:4px 2px;line-height:1.3}.scoreboard th{color:#bcab8e;font-size:12px;font-weight:500}.scoreboard th:first-child{width:17%}.scoreboard th:last-child{width:25%}
.scoreboard td{border-top:1px solid #584b375c;font:600 clamp(13px,3.4vw,16px)/1.25 ui-monospace,monospace;color:#ffcb86;overflow-wrap:anywhere}.scoreboard td:last-child,.scoreboard th:last-child{text-align:right}.scoreboard .own-score{background:#8f642831}.scoreboard .own-score td{color:#ffdf9c}.own-score small{margin-left:.4em;font:11px system-ui;color:#ffddaf;white-space:nowrap}.scoreboard .board-gap{text-align:center;color:#b8996c}
.scoreboard p{margin:7px 0}.scoreboard p:empty{display:none}.board-status,.led-screen p{font-size:12px;color:#cfbea0}
.decision{margin-top:10px}.decision>p{font-size:14px;color:#f2d5a4}.decision label{display:flex;align-items:center;gap:10px;font-size:13px;color:#d1c8b4}
.decision input{flex:1;min-width:0;width:100%;max-width:225px;border:1px solid #625b47;border-radius:3px;background:#151c1f;color:#f6e0b7;padding:6px 9px;font-size:16px;user-select:text;-webkit-user-select:text}
.board-question{text-align:center;font:17px/1.4 Georgia,'Yu Mincho',serif;color:#f3e2be}
.board-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}.board-choices button,.board-retry{min-height:44px;border:1px solid #75664f;background:#20292b;border-radius:3px}
.board-choices button{font:600 17px/1 ui-monospace,monospace;letter-spacing:.1em}
.board-choices button:first-child{background:linear-gradient(145deg,#54402a,#322c23);border-color:#b69055;color:#ffe5b3}
.board-retry{width:100%;margin-top:6px}.scoreboard button:disabled{opacity:.5;cursor:wait}
@media(max-height:680px){.scoreboard td,.scoreboard th{padding-block:3px}.board-head{margin-bottom:4px}.board-filters button{min-height:35px}.scoreboard .led-sign strong{font-size:27px}}

.board-filters{flex-wrap:wrap}
.board-filters button{min-height:42px}
.board-archive{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px}
.board-archive label{display:flex;align-items:center;gap:8px;color:#cebfa1;font-size:13px}
.board-archive input,.board-archive button{color-scheme:dark;background:#172022;color:#f1dab4;border:1px solid #605b48;border-radius:3px;min-height:40px;padding:5px 8px}
.board-archive input{font:16px system-ui;max-width:100%;min-width:0}
.board-archive button{font-size:12px}
.board-totals{display:grid;grid-template-columns:1fr 1fr;padding:9px 0;border-bottom:1px solid #635037}
.board-totals div{display:flex;gap:3px;flex-direction:column;padding-left:2px}
.board-totals div+div{border-left:1px solid #514634;padding-left:14px}
.board-totals span{font-size:12px;color:#c9b899}
.board-totals strong{font:600 19px/1.1 ui-monospace,monospace;color:#ffe0a9}
.board-history{margin-top:8px;color:#e9d3ad;font-size:14px}
.board-history summary{cursor:pointer;padding:10px 3px}
.board-history ol{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto;overscroll-behavior:contain}
.board-history button{display:flex;width:100%;align-items:center;justify-content:space-between;min-height:44px;border:0;border-bottom:1px solid #4c493c;padding:4px 12px;background:#151e20}
.board-history button:focus-visible{outline-offset:-2px}
.board-history strong{color:#ffcd85;font-variant-numeric:tabular-nums}
.scoreboard .player-profile{color:inherit;text-underline-offset:.2em;display:inline-block;padding:3px 0}
.board-profile{margin:7px 0;color:#e7cda5;font-size:13px}
.board-profile summary{padding:8px 0;cursor:pointer}
.board-profile select{font:16px system-ui;color:#f6e0b7;background:#151c1f;border:1px solid #625b47;border-radius:3px;padding:6px}
.board-profile label{margin-bottom:5px}
.board-profile p{overflow-wrap:anywhere}
