:root{color-scheme:light;--ink:#193047;--muted:#65788a;--paper:#f5f2e9;--red:#e85d4a;--blue:#248dae;--gold:#efbe5b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Microsoft JhengHei","PingFang TC",sans-serif}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e6ad38;outline-offset:4px}button{touch-action:manipulation}button[hidden],[hidden]{display:none!important}.shell{max-width:1320px;margin:auto;padding:24px 32px}.header{display:flex;align-items:center;gap:16px;margin-bottom:28px}.back{border:1px solid #d5d9d8;border-radius:50%;width:36px;height:36px;text-decoration:none;color:var(--ink);display:grid;place-items:center;font-size:28px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:48px;height:48px;border-radius:50%;background:var(--red);color:#fff8e6;display:grid;place-items:center;font-size:26px;font-weight:bold;box-shadow:4px 4px 0 #20354a;transform:rotate(-8deg)}.brand small,.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:var(--muted)}h1{font-size:27px;letter-spacing:3px;margin:2px 0 0;line-height:1.2}h1 span{font-size:11px;font-weight:500;letter-spacing:1px;margin-left:14px;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:18px;margin-left:auto}.connection{font-size:12px;color:var(--muted)}.connection.online{color:#268478}.connection.online:before{content:"";display:inline-block;background:#268478;width:6px;height:6px;border-radius:50%;margin-right:6px}.icon-btn{background:transparent;border:1px solid #ccd2d3;border-radius:8px;padding:9px 14px;color:var(--ink);font-size:12px;font-weight:bold}.entry{display:grid;grid-template-columns:1fr 400px;gap:25px;align-items:center;padding:24px 0 28px;border-top:1px solid #dddeda}.entry h2{font-size:29px;letter-spacing:1px;margin:9px 0 12px}.entry p{font-size:13px;line-height:1.8;color:var(--muted);margin:0;max-width:510px}label{font-size:12px;font-weight:bold;display:block;margin-bottom:8px}.join-fields{display:flex;gap:8px}.join-fields input{min-width:0;width:43%;border:1px solid #ced4d1;background:#fffdf8;border-radius:8px;padding:11px;color:var(--ink)}.primary{background:var(--ink);color:#fff7e7;border:0;border-radius:8px;padding:12px 18px;font-size:13px;font-weight:bold;white-space:nowrap}.primary span{margin-left:10px}form small{font-size:11px;color:var(--muted);display:block;margin-top:9px}.program{display:flex;gap:16px;align-items:center;border-top:1px solid #dbded8;border-bottom:1px solid #dbded8;padding:15px 0}.program-label{min-width:150px}.program-label strong{display:block;font-size:13px;margin-top:7px}.song-choices{display:flex;flex:1;gap:10px}.song{flex:1;border:1px solid #d8ddd8;border-radius:8px;padding:10px 12px;text-align:left;background:transparent;color:var(--ink);position:relative;transition:background .15s}.song.active{background:#fffaf0;border-color:#d7a146;box-shadow:inset 3px 0 #d7a146}.song strong{font-size:12px;display:block}.song small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.song .vote-count{position:absolute;right:8px;top:8px;background:#eadcbc;border-radius:4px;padding:2px 5px;font-size:9px}.start{padding:13px}.message{font-size:12px;color:var(--muted);margin:14px 0;min-height:18px;line-height:1.6}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px}.stage-panel{border-radius:14px;background:#fffaf0;overflow:hidden;border:1px solid #d8d7cd;min-width:0}.stage-top{padding:16px 20px;background:#fffaf0;display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:13px;font-weight:bold}.stage-top>div{display:flex;align-items:center;gap:8px;min-width:0}.stage-top small{font-size:9px;font-weight:normal;letter-spacing:1px;color:var(--muted);margin-left:5px}.live-dot{background:var(--red);border-radius:50%;width:6px;height:6px;flex:none}#timeLeft{font-size:11px;color:var(--muted);white-space:nowrap}.score-strip{border-top:1px solid #e8e1d2;display:flex;padding:14px 20px;gap:27px;align-items:center}.score-strip>div>span{display:block;font-size:10px;color:var(--muted);letter-spacing:1px;margin-bottom:4px}.score-strip strong{font-family:Consolas,monospace;font-size:27px;letter-spacing:-1px;line-height:1.2}.score-strip strong small{font-size:9px;letter-spacing:0;color:var(--muted)}.spirit{flex:1;margin-left:auto;max-width:150px}.spirit>div{background:#e5dfd0;height:7px;border-radius:5px;overflow:hidden}.spirit i{display:block;height:100%;background:var(--red);width:0;transition:width .2s}.canvas-wrap{position:relative;background:#19334a}.canvas-wrap canvas{width:100%;height:330px;display:block}.countdown{position:absolute;left:0;top:18%;width:100%;text-align:center;font-size:82px;font-weight:900;color:#fff5da;text-shadow:3px 4px #183248;pointer-events:none}.countdown small{display:block;font-size:14px;margin-top:15px;letter-spacing:4px}.results{position:absolute;inset:14px 12%;border:1px solid #e3be73;background:#fff7e9f5;border-radius:16px;padding:22px;text-align:center;display:flex;flex-direction:column;justify-content:center;box-shadow:0 10px 30px #071c3b33}.results h2{margin:8px;font-size:28px}.results p{font-size:13px;margin:5px 0 12px}.results small{font-size:11px;color:var(--muted);line-height:1.6}#resultStats{display:flex;justify-content:center;gap:22px;margin:4px 0 18px}#resultStats div{font-size:10px;color:var(--muted)}#resultStats strong{font-size:21px;color:var(--ink);display:block;margin-bottom:4px}.progress-track{height:4px;background:#385167}.progress-track i{display:block;background:var(--gold);height:4px;width:0}.stage-bottom{display:flex;justify-content:space-between;gap:8px;padding:10px 16px;color:var(--muted);font-size:10px}.ranking{border:1px solid #d8d7cd;border-radius:14px;overflow:hidden;padding:19px 16px;display:flex;flex-direction:column;min-width:0}.ranking-head{display:flex;justify-content:space-between;align-items:center}.ranking-head h2{font-size:16px;margin:7px 0}.ranking-head>strong{font-family:Consolas,monospace;font-size:25px}.ranking-head>strong span{font-size:12px;color:var(--muted)}ol{list-style:none;padding:0;margin:18px 0;flex:1}.rank-row{display:flex;align-items:center;gap:8px;margin-bottom:4px;padding:9px 5px;border-radius:7px;font-size:11px}.rank-row.me{background:#ece5d5}.rank-number{font-family:Consolas,monospace;width:13px;color:var(--muted);font-size:11px}.rank-avatar{width:26px;height:26px;border-radius:50%;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:bold;border:2px solid #fff8e5;flex:none}.rank-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:83px;flex:1}.rank-score{font-size:12px;font-family:Consolas,monospace;font-weight:bold;margin-left:auto}.rank-row small{display:block;font-size:8px;font-weight:normal;color:var(--muted)}.empty-rank{font-size:11px;color:var(--muted);text-align:center;margin-top:25px}.rank-note{border-top:1px solid #d8d7cd;display:flex;gap:12px;align-items:center;padding-top:14px}.rank-note p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}.mini-drum{display:block;width:32px;height:32px;border-radius:50%;background:var(--red);border:5px solid #fff8e7;outline:1px solid #ddc7aa;position:relative}.mini-drum:after{content:"⌣";position:absolute;left:5px;top:2px;color:#fff;font-size:18px}.controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:17px}.drum-pad{border:1px solid #ced6d3;border-bottom:5px solid #c4d5d8;border-radius:12px;display:flex;align-items:center;gap:17px;padding:18px 24px;background:#edf2ed;color:var(--blue);text-align:left;touch-action:none;user-select:none;transition:transform .06s,background .06s}.drum-pad.don{background:#f6e8de;color:var(--red);border-color:#e1d0c1;border-bottom-color:#e6b6a8}.drum-pad.pressed{transform:translateY(3px);border-bottom-width:2px;background:#cfe9eb}.drum-pad.don.pressed{background:#f6c4ad}.pad-symbol{font-size:34px;width:36px;line-height:1}.drum-pad strong{font-size:22px}.drum-pad strong small{font-size:12px;margin-left:7px;font-weight:normal}.pad-help{display:block;font-size:10px;margin-top:6px;color:var(--muted)}kbd{font-family:inherit;background:#fff9ed;display:inline-grid;place-items:center;border:1px solid #ccd0c6;border-radius:4px;width:19px;height:18px;margin-left:4px}.pad-side{font-size:12px;letter-spacing:3px;margin-left:auto;opacity:.5}footer{display:flex;justify-content:space-between;gap:15px;font-size:10px;line-height:1.8;color:var(--muted);margin-top:14px}body.joined .header{margin-bottom:20px}body.joined .entry{display:none}
@media(min-width:1500px){.shell{padding-top:32px}.canvas-wrap canvas{height:400px}.controls{margin-top:24px}}
@media(max-width:1000px){.shell{padding:20px}.entry{grid-template-columns:1fr 330px}.entry h2{font-size:24px}.game-layout{grid-template-columns:minmax(0,1fr) 200px;gap:14px}.program-label{min-width:110px}.program{gap:10px}.song{padding:9px}.song strong{font-size:11px}.stage-top small{display:none}.score-strip{gap:18px}.spirit{display:none}.rank-name{max-width:65px}h1 span{display:none}}
@media(max-width:720px){.shell{padding:16px 12px 22px}.header{gap:10px;margin-bottom:17px}.back{width:28px;height:28px}.brand-mark{width:37px;height:37px;font-size:21px}.brand{gap:9px}.brand small{font-size:8px;letter-spacing:1px}h1{font-size:23px}.header-actions{gap:8px}.connection{font-size:10px}.icon-btn{font-size:10px;padding:8px}.entry{display:block;padding:20px 5px}.entry h2{font-size:24px}.entry p{font-size:12px}.entry form{margin-top:20px}.join-fields input{flex:1}.program{flex-wrap:wrap;gap:10px}.program-label{display:flex;align-items:center;gap:12px;flex:1}.program-label strong{margin:0;font-size:12px}.song-choices{order:3;flex-basis:100%;gap:6px}.song{padding:9px 8px}.song small{font-size:9px}.song strong{font-size:11px}.start{padding:9px 12px;font-size:11px}.message{font-size:11px;margin:10px 2px;min-height:18px}.game-layout{display:flex;flex-direction:column;gap:12px}.stage-top{padding:12px;font-size:12px}.score-strip{padding:12px;gap:25px}.score-strip strong{font-size:25px}.score-strip>div>span{font-size:9px}.canvas-wrap canvas{height:270px}.stage-bottom{font-size:9px;padding:9px 10px}.ranking{padding:12px;order:2}.ranking-head{gap:14px;justify-content:flex-start}.ranking-head>div{display:flex;gap:10px;align-items:center}.ranking-head h2{font-size:13px;margin:0}.ranking-head .eyebrow{display:none}.ranking-head>strong{font-size:17px;margin-left:auto}.ranking ol{display:flex;gap:7px;overflow:auto;margin:9px 0 0;flex-wrap:wrap}.rank-row{padding:5px;gap:5px;margin:0;min-width:140px;flex:1;max-width:220px}.rank-avatar{width:22px;height:22px;font-size:9px}.rank-name{max-width:85px}.rank-note{display:none}.empty-rank{margin:2px}.controls{margin-top:12px;gap:10px}.drum-pad{gap:10px;padding:13px 12px}.drum-pad strong{font-size:24px}.pad-symbol{font-size:28px;width:25px}.pad-side{display:none}.pad-help{font-size:9px}.pad-help kbd{width:16px;height:16px;margin-left:1px}.drum-pad strong small{font-size:11px}.results{inset:12px 6%;padding:14px}.results h2{font-size:23px}.results p{font-size:12px}#resultStats{gap:16px;margin-bottom:10px}.results small{font-size:10px}footer{font-size:9px;flex-direction:column;gap:1px}.ranking{display:none}body.joined .ranking{display:block}body.joined .game-layout{display:contents}body.joined .stage-panel{margin-bottom:0}body.joined .ranking{margin-top:12px}body.joined .controls{position:sticky;bottom:8px;z-index:3;filter:drop-shadow(0 4px 8px #182e4920)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* 太鼓舞臺第二版：實體鼓面、五十首曲庫、四階判定與頒獎。 */
.shell{max-width:1280px;padding:20px 28px}.header{margin-bottom:20px}.program{gap:20px;padding:10px 0}.program-label{min-width:170px}.program-label strong{font-size:12px}.library-button{display:flex;align-items:center;gap:14px;flex:1;max-width:480px;min-width:0;background:#fffaf0;border:1px solid #d7b779;border-radius:10px;text-align:left;padding:9px 14px;color:var(--ink)}.library-button strong{display:block;font-size:13px}.library-button small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.record-icon{font-size:20px;background:var(--ink);color:var(--gold);width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.choose-label{margin-left:auto;font-size:12px;font-weight:bold;white-space:nowrap}.start{margin-left:auto}.message{font-size:11px;margin:10px 0;min-height:17px}.game-layout{grid-template-columns:minmax(0,1fr) 258px;gap:18px}.stage-top{padding:12px 18px}.score-strip{padding:11px 18px}.canvas-wrap canvas{height:260px}.stage-bottom{align-items:center;padding:8px 14px}.stage-bottom button{background:none;border:0;font-size:10px;font-weight:bold;color:#b07b24}
.judge-badge{position:absolute;left:29%;top:7px;pointer-events:none;opacity:0;color:#fff;text-align:center;min-width:110px}.judge-badge strong{font-size:25px;display:block;font-weight:900;letter-spacing:2px}.judge-badge small{font:700 10px Consolas,monospace;letter-spacing:2px;display:block;margin-top:2px}.judge-badge.show{animation:judge-pop .65s ease-out forwards}.judge-badge[data-grade=perfect]{color:#fff4be;text-shadow:0 0 9px #ffca69,2px 2px #983e50}.judge-badge[data-grade=great]{color:#ffda7c;text-shadow:1px 2px #87562e}.judge-badge[data-grade=good]{color:#84e6eb}.judge-badge[data-grade=ok]{color:#bbbfe5}.judge-badge[data-grade=miss]{color:#bdc8cb}@keyframes judge-pop{0%{opacity:1;transform:scale(.8) translateY(4px)}15%{opacity:1;transform:scale(1.14)}55%{opacity:1;transform:scale(1)}100%{opacity:0;transform:translateY(-12px)}}
.ranking{border-color:#bd9d62;padding:18px 15px;color:#fff4d9;background:radial-gradient(ellipse at 50% 0,#424967 0,transparent 62%),#18283e;position:relative}.ranking-head .eyebrow{font-size:8px;color:#c7b581;letter-spacing:1.7px}.ranking-head h2{font-size:18px}.ranking-head>strong{font-size:24px;color:#f1d08d}.ranking-head>strong span{font-size:11px;color:#9babc0}.leader-spotlight{text-align:center;padding:5px 0 12px;margin-bottom:9px;border-bottom:1px solid #eed18c35}.crown{font-family:Georgia,serif;font-size:30px;color:#f6d185;display:block;line-height:1.1;text-shadow:0 0 18px #f9c96655}.leader-spotlight small{color:#c7b581;display:block;font-size:9px;letter-spacing:2px;margin:5px}.leader-spotlight strong{display:block;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-spotlight .spotlight-score{font:800 25px Consolas,monospace;color:#ffe1a4;margin-top:6px}.ranking ol{margin:0}.rank-row{margin-bottom:5px;padding:8px 7px;border:1px solid transparent;border-radius:8px;background:#ffffff07}.rank-row.me{border-color:#e1c27470;background:#e4c36915}.rank-row.top-1{background:linear-gradient(110deg,#d8a13c35,#d8a13c05);border-color:#e3c06e60}.rank-row.top-2{background:linear-gradient(110deg,#bdd0e022,#d8a13c00)}.rank-row.top-3{background:linear-gradient(110deg,#dcb18522,#d8a13c00)}.rank-number{width:17px;color:#c7b581}.rank-avatar{width:28px;height:28px;border-color:#fff1ca}.rank-name{max-width:86px}.rank-score{font-size:13px;color:#ffe2a6}.rank-row small{color:#a9b8c8;margin-top:2px}.empty-rank{color:#c4b88f;margin-top:10px}.rank-note{display:block;border:0;font-size:9px;letter-spacing:1px;color:#b7aa88;text-align:center;padding-top:12px;margin-top:auto}
.controls{position:relative;display:grid;grid-template-columns:150px 220px 150px;justify-content:center;align-items:center;gap:20px;padding:5px 0 26px;margin-top:10px;min-height:231px;background:linear-gradient(90deg,transparent,#ebe6d870,transparent);border-radius:16px;bottom:auto;filter:none}.drum-guide{display:grid;grid-template-columns:12px 1fr;align-items:center;column-gap:8px;color:var(--blue)}.drum-guide strong{font-size:17px}.drum-guide small{grid-column:2;font-size:10px;color:var(--muted);margin:5px 0 10px}.drum-guide>div{grid-column:2}.face-guide{color:var(--red)}.guide-dot{width:9px;height:9px;background:currentColor;border-radius:50%}.drum-guide kbd{width:27px;height:25px;margin:0 4px 0 0;border-bottom-width:3px;font-size:12px}.taiko-drum{position:relative;width:220px;height:210px;user-select:none;touch-action:none}.drum-head{position:absolute;inset:0 10px auto;width:200px;height:200px}.drum-body{position:absolute;top:40px;left:12px;width:196px;height:165px;border-radius:50%;background:repeating-linear-gradient(90deg,#85372f 0,#85372f 12px,#a74436 14px,#a74436 24px);border:5px solid #53362d;box-shadow:0 8px 0 #cb976b,0 12px 0 #5d3f35,0 18px 22px #33332230}.drum-stand{position:absolute;bottom:-9px;left:38px;width:145px;height:30px;background:linear-gradient(65deg,transparent 18%,#233b4b 19%,#233b4b 30%,transparent 31%,transparent 65%,#233b4b 66%,#233b4b 78%,transparent 79%);border-bottom:6px solid #233b4b}.drum-rim,.drum-face{position:absolute;border-radius:50%;touch-action:none;user-select:none;-webkit-user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center;transition:filter .05s,transform .05s}.drum-rim{inset:0;width:100%;height:100%;background:radial-gradient(circle,#d2e7e7 0 59%,#41788a 60% 65%,#ead3aa 66% 71%,#866749 72%);border:4px solid #725943;box-shadow:inset 0 0 0 4px #f9e6bb,0 4px 0 #7d5540;color:#f8efd6}.drum-rim:after{content:"";position:absolute;inset:8px;border:3px dotted #f9e7c3;border-radius:50%;pointer-events:none}.rim-label{position:absolute;top:12px;font-size:10px;letter-spacing:5px;color:#234d60}.rim-letter{position:absolute;top:46%;font-size:12px;font-weight:800;color:#254e60}.rim-letter.left{left:11px}.rim-letter.right{right:11px}.drum-face{inset:18%;width:64%;height:64%;background:radial-gradient(circle at 38% 30%,#fff5d6,#edcd9b);border:5px solid #df5e49;box-shadow:inset 0 0 0 3px #ffe8bd,0 3px 7px #17384b45;color:#b74337}.drum-face:after{content:"";position:absolute;inset:6px;border:1px dashed #cc9369;border-radius:50%;pointer-events:none}.face-mark{font-size:39px;font-weight:900;line-height:1.2}.drum-face small{font-size:10px;letter-spacing:4px;margin-left:4px}.face-keys{font-size:9px;opacity:.7;margin-top:6px}.drum-rim.pressed{filter:brightness(1.25);transform:translateY(3px)}.drum-face.pressed{filter:brightness(1.15);transform:scale(.94)}.precision-legend{position:absolute;bottom:0;display:flex;justify-content:center;gap:20px;width:100%;font-size:10px;font-weight:bold}.precision-legend span{display:flex;align-items:center;gap:4px}.precision-legend span:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.precision-legend small{font:10px Consolas,monospace;opacity:.65}.perfect{color:#ab7034}.great{color:#b18824}.good{color:#238b9f}.ok{color:#807ca6}footer{margin-top:13px}
dialog{border:1px solid #d1b77e;border-radius:20px;padding:24px;background:#fff9ed;color:var(--ink);box-shadow:0 25px 80px #06162b55;max-height:88dvh;overscroll-behavior:contain}dialog::backdrop{background:#0b1b30a8;backdrop-filter:blur(4px)}.song-library{width:min(800px,calc(100vw - 30px))}.dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.dialog-top h2{font-size:25px;letter-spacing:2px;margin:7px 0 0}.dialog-top h2 span{font:15px Consolas,monospace;background:#e7d8b2;padding:3px 7px;border-radius:5px;vertical-align:middle}.close-button{border:1px solid #c6bdab;border-radius:50%;background:transparent;color:inherit;width:32px;height:32px;font-size:24px;line-height:1;flex:none}.difficulty-tabs{display:flex;gap:9px;margin-bottom:16px}.difficulty-tabs button{flex:1;border:1px solid #d8d1c1;border-radius:8px;padding:11px;background:transparent;color:var(--muted);font-size:13px;font-weight:bold}.difficulty-tabs button[aria-pressed=true]{color:#fff8e5;background:var(--ink);border-color:var(--ink)}.difficulty-tabs span{font:11px Consolas,monospace;margin-left:7px;opacity:.65}.search-label{display:flex;align-items:center;gap:12px;font-size:11px}.search-label input{flex:1;min-width:0;border:1px solid #d5cebd;border-radius:8px;background:#fffcf5;padding:10px;color:var(--ink)}#libraryHint{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0}.song-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:48dvh;overflow:auto;padding:3px}.song{min-height:94px;border:1px solid #dad4c5;border-radius:10px;padding:12px;text-align:left;background:#f7f0e1;color:var(--ink);position:relative;overflow:hidden}.song:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--song-color,#d7b772)}.song strong{font-size:13px}.song small{font-size:10px;margin-top:7px}.song .song-description{font-size:10px;line-height:1.5;font-weight:normal;display:block;margin-top:8px;color:#7e847b}.song.active{border-color:#bc8930;background:#faecd0;box-shadow:inset 0 0 0 1px #bc893055}#emptySearch{text-align:center;font-size:13px;color:var(--muted);padding:20px}.rank-dialog{width:min(480px,calc(100vw - 30px));background:linear-gradient(145deg,#33445d,#16283d);color:#fff4d9}.rank-dialog .eyebrow{color:#d5b875}.rank-dialog .rank-name{max-width:none}.rank-dialog .rank-row{padding:12px}
.results{position:fixed;inset:0;z-index:20;background:#09192dcc;backdrop-filter:blur(6px);display:grid;place-items:center;padding:18px;overflow:auto;border:0;border-radius:0;box-shadow:none}.result-card{width:min(640px,100%);position:relative;color:#fff5df;text-align:center;border:1px solid #eed48d;border-radius:24px;padding:20px 34px 24px;background:radial-gradient(ellipse at 50% -10%,#715d6380,transparent 60%),linear-gradient(140deg,#273a58,#162a43 60%,#302e48);box-shadow:0 0 0 5px #cfaf5730,0 25px 100px #071428;overflow:hidden}.result-card:before,.result-card:after{content:"✧";position:absolute;font-size:130px;color:#f4d78310;transform:rotate(15deg);pointer-events:none}.result-card:before{left:-16px;top:30px}.result-card:after{right:-15px;bottom:25px}.result-card>.close-button{position:absolute;top:15px;right:15px;color:#dbc590;border-color:#a18d6760}.result-card>.eyebrow{color:#e5bc78;font-size:9px;letter-spacing:4px}.result-stars{font-size:24px;letter-spacing:12px;color:#ffe2a6;margin:0 0 10px;text-shadow:0 0 22px #ffcd7655}.result-card h2{font-size:30px;color:#ffe5a5;margin:9px 0;text-shadow:0 3px #81645055}.result-card>p{font-size:12px;color:#c8cfe0;margin-bottom:14px}.podium{display:flex;align-items:flex-end;justify-content:center;gap:10px;min-height:136px;margin-bottom:16px}.podium-player{width:30%;max-width:145px;display:flex;flex-direction:column;align-items:center;gap:5px;animation:rise .6s ease-out}.podium-player.place-1{order:2}.podium-player.place-2{order:1}.podium-player.place-3{order:3}.podium-avatar{display:grid;place-items:center;width:37px;height:37px;border:3px solid #f2d894;border-radius:50%;font-size:15px;font-weight:bold;box-shadow:0 0 18px #f4c96925}.place-1 .podium-avatar{width:48px;height:48px;border-color:#ffde87}.podium-name{font-size:11px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.podium-plinth{width:100%;border:1px solid #fae1a75a;border-bottom:0;border-radius:7px 7px 0 0;background:linear-gradient(#d4a74c40,#d4a74c08);padding:9px 4px;min-height:54px}.place-1 .podium-plinth{min-height:75px;border-color:#f9d883;background:linear-gradient(#dfa64d75,#b8883620)}.place-2 .podium-plinth{min-height:60px;background:linear-gradient(#9cb4d143,#6381a015)}.place-3 .podium-plinth{background:linear-gradient(#c98f6840,#c98f6810)}.podium-plinth strong{font:800 22px Consolas,monospace;color:#ffe5a7;display:block}.podium-plinth small{font:10px Consolas,monospace;display:block;margin-top:3px;color:#c8cfe0}.result-personal{border-top:1px solid #e0c58240;padding:14px 0 13px}.result-personal>strong{font:900 42px Consolas,monospace;color:#fff0b8;letter-spacing:1px;display:block}.result-personal>span{font-size:11px;color:#c8cfe0;display:block;margin-top:4px}#resultStats{gap:7px;margin:0}#resultStats>div{flex:1;background:#ffffff08;border:1px solid #e2c88125;border-radius:8px;font-size:10px;padding:9px 3px;color:#aebcd0}#resultStats strong{font:700 19px Consolas,monospace;display:block;margin-bottom:5px;color:inherit}#resultStats .perfect{color:#fff0ba}#resultStats .great{color:#efca76}#resultStats .good{color:#73d9df}#resultStats .ok{color:#b0acd8}.result-actions{margin-top:19px;display:flex;align-items:center;justify-content:center;gap:15px}.result-actions button{background:linear-gradient(120deg,#f4d38f,#d7a653);color:#29364b}.result-actions small{font-size:10px;color:#aaaec6}@keyframes rise{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){.shell{padding:18px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:12px}.program-label{min-width:145px}.rank-name{max-width:65px}.leader-spotlight{padding-bottom:8px}}
@media(max-width:720px){.shell{padding:12px 10px 16px}.header,body.joined .header{margin-bottom:13px;gap:9px}.brand-mark{width:34px;height:34px}.back{width:26px;height:26px}h1{font-size:22px}.connection{font-size:9px}.icon-btn{font-size:10px;padding:7px 8px}.program{gap:8px;flex-wrap:wrap;padding:8px 0}.program-label{display:flex;align-items:center;justify-content:space-between;flex-basis:100%;gap:10px}.program-label strong{font-size:11px}.program-label .eyebrow{font-size:9px}.library-button{padding:7px 10px;gap:10px}.library-button strong{font-size:12px}.library-button small{font-size:9px;margin-top:2px}.record-icon{width:29px;height:29px;font-size:17px}.choose-label{font-size:11px}.start{padding:11px 10px;font-size:11px}.message{font-size:10px;margin:8px 2px;min-height:16px}.game-layout,body.joined .game-layout{display:block}.ranking,body.joined .ranking{display:none}.stage-top{padding:9px 12px;font-size:12px}.score-strip{padding:9px 12px;gap:23px}.score-strip strong{font-size:23px}.canvas-wrap canvas{height:210px}.stage-bottom{font-size:8px;padding:7px 9px;gap:4px}.stage-bottom button{font-size:9px;padding:0}.judge-badge{top:7px;left:35%;min-width:90px}.judge-badge strong{font-size:20px}.judge-badge small{font-size:8px}.controls,body.joined .controls{position:relative;bottom:auto;filter:none;grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr);gap:4px;min-height:197px;margin-top:8px;padding:0 4px 24px;z-index:auto}.taiko-drum{width:180px;height:172px}.drum-head{width:164px;height:164px;left:8px}.drum-body{width:160px;height:139px;left:10px;top:25px;box-shadow:0 6px 0 #cb976b,0 9px 0 #5d3f35,0 13px 15px #33332225}.drum-stand{left:26px;width:128px;bottom:-9px}.drum-rim{border-width:3px}.rim-label{top:10px;font-size:8px}.rim-letter{font-size:10px}.rim-letter.left{left:8px}.rim-letter.right{right:8px}.drum-rim:after{inset:6px;border-width:2px}.drum-face{border-width:4px}.face-mark{font-size:31px}.face-keys{font-size:8px;margin-top:3px}.drum-face small{font-size:9px}.drum-guide{display:flex;flex-direction:column;text-align:center;gap:5px}.drum-guide strong{font-size:12px}.drum-guide small{font-size:8px;line-height:1.5;margin:0}.guide-dot{width:7px;height:7px}.drum-guide kbd{width:22px;height:21px;font-size:10px;margin:0}.precision-legend{gap:12px;font-size:9px}.precision-legend small{font-size:9px}footer{flex-direction:row;font-size:8px;margin-top:8px;gap:5px}.song-library{padding:18px 13px}.dialog-top{margin-bottom:15px}.dialog-top h2{font-size:22px}.difficulty-tabs{gap:7px}.difficulty-tabs button{font-size:12px;padding:10px 5px}.song-choices{order:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:47dvh;gap:8px}.song{padding:11px;min-height:100px}.song strong{font-size:12px}.song small,.song .song-description{font-size:9px}.results{inset:0;padding:14px}.result-card{padding:17px 16px 20px;border-radius:18px}.result-card h2{font-size:24px}.result-stars{font-size:19px;margin-bottom:8px}.result-card>.eyebrow{font-size:8px;letter-spacing:3px}.result-card>p{font-size:11px;line-height:1.5}.podium{gap:7px;margin-bottom:9px}.podium-name{font-size:10px}.podium-plinth strong{font-size:21px}.result-personal>strong{font-size:34px}#resultStats{gap:4px}#resultStats strong{font-size:18px}#resultStats>div{font-size:9px}.result-actions{gap:11px;margin-top:15px}.result-actions small{font-size:9px}.rank-dialog{padding:20px}.rank-dialog .rank-name{max-width:150px}}
@media(max-width:720px) and (max-height:760px){body.joined .header{margin-bottom:8px}body.joined .message{margin:5px 2px}body.joined .canvas-wrap canvas{height:165px}body.joined .controls{min-height:180px;padding-bottom:22px}body.joined .taiko-drum{transform:scale(.9)}body.joined footer{display:none}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.judge-badge.show{opacity:1;transform:none}}
/* 排行榜只捲動名單，滿場十人也不把實體太鼓推離畫面。 */
.results{grid-template-columns:minmax(0,1fr)}
@media(min-width:721px){.game-layout{align-items:start}.ranking{display:flex;flex-direction:column;height:412px;min-height:0;overflow:hidden}.ranking-head,.leader-spotlight,.rank-note{flex:none}.ranking ol{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:2px}}
@media(min-width:721px) and (max-height:850px){body.joined .shell{padding-top:12px;padding-bottom:10px}body.joined .header{margin-bottom:12px}body.joined .program{padding-top:8px;padding-bottom:8px}body.joined .message{margin-top:8px;margin-bottom:8px}body.joined .canvas-wrap canvas{height:200px}body.joined .ranking{height:352px}body.joined .controls{padding-top:0;padding-bottom:24px;margin-top:8px}body.joined footer{display:none}}
/* 真實 3D 舞臺下層，透明操作回饋上層；兩張畫布使用相同 CSS 尺寸。 */
.canvas-wrap{position:relative;background:#11182e;isolation:isolate}
.canvas-wrap #stage{position:relative;z-index:1;display:block;background:transparent}
.canvas-wrap #scene3d{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.canvas-wrap canvas{width:100%;height:310px}
.canvas-wrap #scene3d[hidden]{display:none}
.countdown,.judge-badge{z-index:2}
.header-actions{flex-wrap:wrap;justify-content:flex-end}
.difficulty-tabs button{white-space:nowrap;min-width:0}
.difficulty-tabs span{margin-left:3px}
@media(min-width:721px){.ranking{height:462px}}
@media(min-width:721px) and (max-height:850px){body.joined .canvas-wrap canvas{height:270px}body.joined .ranking{height:422px}}
@media(max-width:720px){.canvas-wrap canvas,body.joined .canvas-wrap canvas{height:235px}.header-actions{gap:5px}.difficulty-tabs{gap:4px}.difficulty-tabs button{padding:10px 4px;font-size:12px}.difficulty-tabs span{display:block;margin:4px 0 0}.brand h1 span{display:none}}
@media(min-width:721px) and (max-height:850px){body.joined .controls{grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr);min-height:190px}body.joined .taiko-drum{width:180px;height:172px}body.joined .drum-head{width:164px;height:164px;left:8px}body.joined .drum-body{width:160px;height:139px;left:10px;top:25px}body.joined .drum-stand{left:26px;width:128px;bottom:-9px}}
@media(max-width:720px) and (max-height:760px){body.joined .canvas-wrap canvas{height:165px}}
/* 觸控操作以大太鼓為主；鼓面和鼓邊都保留穩定、不隨按壓縮小的命中範圍。 */
@media (max-width:720px), (pointer:coarse) and (max-width:1400px){
  body.joined .shell{--touch-drum:min(86vw,400px);padding:10px 12px max(8px,env(safe-area-inset-bottom))}
  body.joined .header{gap:8px;margin-bottom:8px}
  body.joined .brand-mark{width:36px;height:36px;font-size:22px}
  body.joined .brand{gap:8px}
  body.joined .brand h1{font-size:23px}
  body.joined .brand h1 span{display:none}
  body.joined .brand small{font-size:8px;letter-spacing:1px}
  body.joined .header-actions{gap:5px}
  body.joined .icon-btn{font-size:10px;padding:7px 8px}
  body.joined .connection{font-size:9px}
  body.joined .program{flex-wrap:nowrap;padding:6px 0;gap:8px}
  body.joined .program-label{display:none}
  body.joined .library-button{min-width:0;max-width:none;padding:7px 10px;gap:8px}
  body.joined .library-button>span:nth-child(2){min-width:0}
  body.joined .library-button strong{font-size:12px}
  body.joined .library-button small{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.joined .record-icon{width:29px;height:29px;font-size:17px;flex:none}
  body.joined .choose-label{font-size:11px;white-space:nowrap}
  body.joined .start{padding:11px 10px;font-size:11px}
  body.joined .message{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
  body.joined .game-layout{display:block}
  body.joined .ranking{display:none}
  body.joined .stage-top{padding:8px 10px;font-size:12px}
  body.joined .stage-top small{display:none}
  body.joined .score-strip{padding:6px 10px;gap:22px}
  body.joined .score-strip strong{font-size:24px}
  body.joined .score-strip>div>span{font-size:9px;margin-bottom:2px}
  body.joined .spirit{display:none}
  body.joined .canvas-wrap canvas{height:clamp(180px,24dvh,260px)}
  body.joined .stage-bottom{padding:6px 9px;font-size:8px}
  body.joined .stage-bottom button{font-size:9px}
  body.joined .controls{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 0 24px;margin-top:6px;min-height:0;position:relative;bottom:auto;filter:none}
  body.joined .drum-guide{display:none}
  body.joined .taiko-drum{width:var(--touch-drum);height:calc(var(--touch-drum)*.98);margin:auto;transform:none;justify-self:center}
  body.joined .drum-head{inset:0 3% auto;width:94%;height:auto;aspect-ratio:1}
  body.joined .drum-body{left:4%;top:12%;width:92%;height:80%;border-width:6px}
  body.joined .drum-stand{left:17%;bottom:0;width:66%;height:14%}
  body.joined .drum-face{inset:21%;width:58%;height:58%;border-width:5px}
  body.joined .drum-face.pressed,body.joined .drum-rim.pressed{transform:none}
  body.joined .face-mark{font-size:clamp(38px,8.5vw,56px)}
  body.joined .drum-face small{font-size:14px}
  body.joined .rim-label{top:8%;font-size:14px;letter-spacing:6px}
  body.joined .rim-letter{display:none}
  body.joined .precision-legend{font-size:10px;gap:14px}
  body.joined footer{display:none}
}
@media (max-width:720px) and (max-height:700px), (pointer:coarse) and (max-width:1400px) and (max-height:700px){
  body.joined .shell{--touch-drum:min(86vw,270px);padding-top:8px}
  body.joined .canvas-wrap canvas{height:155px}
}
@media (max-width:720px) and (max-height:600px), (pointer:coarse) and (max-width:1400px) and (max-height:600px){
  body.joined .shell{--touch-drum:230px}
  body.joined .canvas-wrap canvas{height:110px}
  body.joined .header{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:6px;margin-bottom:6px}
  body.joined .brand-mark,body.joined .brand small{display:none}
  body.joined .brand h1{font-size:22px;white-space:nowrap}
  body.joined .header-actions{flex-wrap:nowrap;gap:4px}
  body.joined .connection{font-size:8px}
  body.joined .controls{padding-bottom:8px}
  body.joined .precision-legend{display:none}
}
@media (pointer:coarse) and (min-width:600px) and (max-width:1400px) and (min-aspect-ratio:6/5){
  body.joined .shell{--touch-drum:min(40vw,calc(100dvh - 125px),420px);display:grid;grid-template-columns:minmax(0,1fr) var(--touch-drum);grid-template-areas:"header header" "program program" "message message" "stage controls";gap:0 12px}
  body.joined .header{grid-area:header}
  body.joined .program{grid-area:program}
  body.joined .message{grid-area:message}
  body.joined .game-layout{grid-area:stage;margin-top:6px;align-self:start;min-width:0}
  body.joined .controls{grid-area:controls;align-self:center}
  body.joined .canvas-wrap canvas{height:clamp(110px,calc(100dvh - 200px),420px)}
}
@media (pointer:coarse) and (min-width:600px) and (max-width:1400px) and (max-height:480px){
  body.joined .shell{padding-top:6px}
  body.joined .header{margin-bottom:4px}
  body.joined .brand-mark{width:30px;height:30px;font-size:19px}
  body.joined .brand small{display:none}
  body.joined .program{padding:4px 0}
  body.joined .library-button{padding:5px 9px}
}
.difficulty-control{flex:none;min-width:76px}
.difficulty-control label{font-size:10px;font-weight:normal;margin:0 0 4px;color:var(--muted);white-space:nowrap}
.difficulty-control select{width:100%;min-height:34px;padding:5px 7px;border:1px solid #c7bda8;border-radius:7px;background:#fff9eb;color:var(--ink);font-size:12px;touch-action:manipulation}
@media (max-width:720px), (pointer:coarse) and (max-width:1400px){body.joined .score-strip{gap:clamp(8px,2vw,18px)}body.joined .difficulty-control{margin-left:auto;min-width:70px}body.joined .difficulty-control label{font-size:9px;margin-bottom:2px}body.joined .difficulty-control select{min-height:32px;font-size:11px}}
/* 操作鼓就在立體舞臺裡，動畫只移動鼓皮與裝飾，敲擊範圍固定。 */
.canvas-wrap{height:min(560px,calc(100dvh - 350px));min-height:340px}
.canvas-wrap #stage{width:100%;height:100%!important;pointer-events:none}
.canvas-wrap .controls,body.joined .canvas-wrap .controls{position:absolute;z-index:3;inset:auto 0 10px;display:flex;justify-content:center;align-items:center;gap:0;margin:0;padding:0;min-height:0;pointer-events:none}
.canvas-wrap .taiko-drum,body.joined .canvas-wrap .taiko-drum{--touch-drum:300px;width:var(--touch-drum);height:calc(var(--touch-drum)*.98);margin:0;transform:none;flex:none;pointer-events:none}
.canvas-wrap .drum-head,body.joined .canvas-wrap .drum-head{inset:0 3% auto;width:94%;height:auto;aspect-ratio:1;pointer-events:none}
.canvas-wrap .drum-body,body.joined .canvas-wrap .drum-body{left:4%;top:12%;width:92%;height:80%}
.canvas-wrap .drum-stand,body.joined .canvas-wrap .drum-stand{left:17%;bottom:0;width:66%;height:14%}
.canvas-wrap .drum-face,body.joined .canvas-wrap .drum-face{inset:21%;width:58%;height:58%;border:0;background:transparent;box-shadow:none;pointer-events:auto}
.canvas-wrap .drum-rim{pointer-events:auto}
.canvas-wrap .drum-guide,.canvas-wrap .precision-legend{display:none}
.drum-skin{position:absolute;inset:0;border-radius:50%;border:5px solid #e76b50;background:#fff0c7;box-shadow:inset 0 0 0 5px #f7ca8b,inset 0 0 0 9px #ffe3a5,0 7px 0 #ad543b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;pointer-events:none;transform-origin:center}
.drum-skin .face-mark{font-size:52px;line-height:1}.drum-skin small{font-size:14px}.drum-skin .face-keys{font-size:10px}
.drum-face.pressed,.drum-rim.pressed{transform:none!important}
.drum-rim.pressed{background:#b8f3ff;box-shadow:inset 0 0 0 12px #45c7e3,0 0 18px #8feaff}
.drum-impact{position:absolute;z-index:5;inset:20%;border:5px solid #fff2aa;border-radius:50%;opacity:0;pointer-events:none}
.ka-impact{inset:0;border-color:#a0ecff}.don-impact{border-color:#ffd58a}
.ranking,body.joined .ranking{height:740px}.leader-spotlight{display:none}
.ranking li{flex-wrap:wrap;row-gap:4px;padding-bottom:7px}.peer-chart{display:block;width:100%;height:24px;flex-basis:100%;border-radius:4px;background:#14283c}
@media(min-width:721px){.game-layout{grid-template-columns:minmax(0,1fr) 285px}.ranking,body.joined .ranking{height:740px}}
@media(max-width:720px), (pointer:coarse) and (max-width:1400px){
 body.joined .shell{display:block;padding:8px 10px}
 body.joined .game-layout{display:block;margin-top:0}
 body.joined .canvas-wrap{height:calc(100dvh - 260px);min-height:330px;max-height:720px}
 body.joined .canvas-wrap .taiko-drum{--touch-drum:min(86vw,400px,calc((100dvh - 220px)*.65))}
 body.joined .ranking{display:flex;flex-direction:column;height:auto;max-height:390px;margin-top:10px;overflow:hidden}
 body.joined .ranking-head{padding:10px 12px}.ranking-head .eyebrow{display:none}
 body.joined .ranking ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;overflow-y:auto;max-height:300px;margin:0;padding:0 8px 8px}
 body.joined .ranking li{padding:5px;gap:4px;font-size:10px;min-width:0}.ranking .rank-score{font-size:13px}.ranking .rank-score small{font-size:9px}
 body.joined .ranking .rank-number{font-size:10px}.ranking .rank-avatar{display:none}.ranking .rank-note{font-size:9px;padding:7px 10px}
}
@media(max-width:720px) and (max-height:600px){body.joined .canvas-wrap{height:calc(100dvh - 220px);min-height:310px}body.joined .canvas-wrap .taiko-drum{--touch-drum:230px}}
@media(pointer:coarse) and (min-width:600px) and (max-width:1400px) and (min-aspect-ratio:6/5){
 body.joined .canvas-wrap{height:calc(100dvh - 235px);min-height:290px;max-height:620px}
 body.joined .canvas-wrap .controls{inset:0 10px 0 auto;width:42%;justify-content:center}
 body.joined .canvas-wrap .taiko-drum{--touch-drum:min(38vw,calc(100dvh - 255px),400px)}
}
@media(pointer:coarse) and (min-width:600px) and (max-width:1400px) and (max-height:480px){
 body.joined .stage-top{display:none}body.joined .score-strip{padding-top:4px;padding-bottom:4px}
 body.joined .canvas-wrap{height:calc(100dvh - 158px);min-height:230px}
 body.joined .canvas-wrap .taiko-drum{--touch-drum:245px}
 body.joined .stage-bottom{padding-top:4px;padding-bottom:4px}
}
.game-layout{position:relative}
.peer-level{font-size:9px;font-weight:normal;color:#a7c8d9}
@media(min-width:721px){.ranking,body.joined .ranking{height:var(--stage-height,600px)}}
@media(max-width:720px), (pointer:coarse) and (max-width:1400px){
 body.joined .ranking{position:absolute;z-index:4;top:var(--ensemble-top,230px);left:7px;width:var(--ensemble-width,calc(100% - 14px));height:50px;max-height:50px;margin:0;padding:0;border:1px solid #527080;border-radius:6px;background:#112538e8}
 body.joined .ranking-head,body.joined .ranking .rank-note{display:none}
 body.joined .ranking ol{display:flex;flex-wrap:nowrap;flex:none;gap:6px;height:48px;min-height:48px;max-height:48px;overflow-x:auto;overflow-y:hidden;padding:2px 4px;margin:0;scrollbar-width:thin}
 body.joined .ranking li{flex:0 0 145px;display:grid;grid-template-columns:16px minmax(0,1fr) auto;grid-template-rows:16px 24px;gap:0 3px;padding:1px 3px;min-height:42px;border-radius:3px;align-items:center}
 body.joined .ranking .rank-name{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.joined .ranking .peer-level{display:inline;color:#bed8df;font-size:8px}
 body.joined .ranking .rank-score{font-size:11px}.ranking .rank-score small{white-space:nowrap}
 body.joined .ranking .rank-score small{display:none}
 body.joined .ranking .peer-chart{grid-column:1/-1;height:22px;width:100%}
}

/* 漆金夜祭：固定舞臺與穩定敲擊區，裝飾動畫只使用 transform / opacity。 */
body{background:linear-gradient(145deg,#f8f2e4,#ece6dc 60%,#dbe4e0);background-attachment:fixed}
.brand-mark{background:linear-gradient(145deg,#fb8b60,#bd3d32);border:2px solid #f8d695;box-shadow:3px 4px 0 #293a4e}
.primary{background:linear-gradient(135deg,#29394f,#162536);box-shadow:inset 0 1px #ffffff28,0 3px 0 #0e1d30}
.stage-panel{background:#18253b;border:1px solid #b39761;box-shadow:0 14px 35px #1523381c,inset 0 0 0 1px #f8df9b2b}
.stage-top{background:linear-gradient(110deg,#17263b,#26384c);color:#fff2d0;border-bottom:1px solid #a2864b70}
.stage-top small,#timeLeft{color:#bccbd3}.live-dot{box-shadow:0 0 0 4px #e85d4a20}
.score-strip{background:linear-gradient(110deg,#1b2b40,#203448);border-color:#ffffff08;color:#fff1d1}
.score-strip>div>span,.score-strip strong small,.difficulty-control label{color:#b5c6d0}
.score-strip strong{font-variant-numeric:tabular-nums;text-shadow:0 2px #0004}
#myCombo{color:#ffd57b}#myAccuracy{color:#94dfde}
.difficulty-control select{background:#132539;color:#ffdf9b;border-color:#7d7254}
.spirit>div{background:#101e30;border:1px solid #ffffff12;height:9px}.spirit i{background:linear-gradient(90deg,#ec7953,#ffdf87)}
.stage-bottom{background:#14243a;color:#a9bcc8;border-top:1px solid #eac07433}.stage-bottom button{color:#f3cc7d}
.progress-track{height:3px;background:#14243a}.progress-track i{height:3px;background:linear-gradient(90deg,#f77b57,#f9db8b);transition:width .12s linear}
.ranking{background:linear-gradient(150deg,#24394e,#142237);border-color:#a78a54;color:#e8ddbf;box-shadow:inset 0 1px #ffdf9e33}
.ranking-head h2{color:#fff1ce}.ranking-head .eyebrow{color:#cdb074}.rank-row{contain:layout style;border:1px solid transparent;transition:background .15s}
.rank-row.me{background:linear-gradient(100deg,#a7874935,#e7ba5b0b);border-color:#bea06580}.rank-score{color:#ffdc8d;font-variant-numeric:tabular-nums}
.peer-chart{background:#0f2133;border:1px solid #405c6c66}.rank-row small{color:#adc3d1}
.canvas-wrap:after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;box-shadow:inset 0 0 45px #08132050,inset 0 1px #ffe0a648}
.canvas-wrap .controls{filter:none!important}
.drum-head{filter:drop-shadow(0 9px 9px #07101d80)}
.drum-rim{background:linear-gradient(145deg,#e2f5ed,#88c6d0 58%,#3d7893);border-color:#f5dc9c;box-shadow:inset 0 0 0 8px #2f5264,inset 0 0 0 11px #bce3d8,0 7px 0 #635037,0 12px 0 #2d2530}
.drum-rim:after{opacity:.7}.rim-label,.rim-letter{color:#234e63;font-weight:800}
.drum-skin{background:linear-gradient(140deg,#fff8db,#fbe8ad 65%,#edc47e);border-color:#df664a;box-shadow:inset 0 0 0 5px #f5c581,inset 0 0 0 9px #ffe8b1,inset 0 -15px 28px #d89a4025,0 7px 0 #a94e37,0 10px 0 #6b392f}
.drum-skin:after{content:"";position:absolute;inset:9%;border:1px dashed #b97a3940;border-radius:50%;pointer-events:none}
.drum-skin .face-mark{color:#b84632;text-shadow:1px 2px #fff9d6}.drum-skin small{color:#a65b38}
.drum-body{background:repeating-linear-gradient(90deg,#773b33 0 14px,#a35439 15px 18px,#63352f 19px 32px);box-shadow:inset 9px 0 12px #200e1a80,inset -9px 0 12px #200e1a80}
.bachi{position:absolute;z-index:6;pointer-events:none;width:4%;height:43%;bottom:62%;border:1px solid #c99555;border-radius:50% 50% 4px 4px;background:linear-gradient(90deg,#ba7d42,#ffe1a1 38%,#f8d39a 58%,#b87b40);box-shadow:2px 3px 1px #07101d50;transform-origin:50% 95%}
.bachi:after{content:"";position:absolute;inset:68% -1px 3%;border-radius:2px;background:repeating-linear-gradient(0deg,#843d36 0 3px,#a45945 4px 5px)}
.bachi-left{left:21%;transform:rotate(-32deg)}.bachi-right{right:21%;transform:rotate(32deg)}
.drum-impact{border-width:3px;box-shadow:0 0 0 5px #ffdf8a30}.ka-impact{box-shadow:0 0 0 5px #8eefff30}
.judge-badge{filter:drop-shadow(0 3px 2px #071222);text-shadow:0 0 12px #ffd98440}
@media(prefers-reduced-motion:reduce){.bachi{display:none}.progress-track i{transition:none}}
