:root{--bg: #17100c;--panel: #2a1d15;--panel-2: #39271b;--line: #674831;--text: #f6eddc;--muted: #c5ad8e;--copper: #c9772e;--copper-dark: #94511b;--gold: #d8b45c;--amber: #ffd07a;--ember: #ff9859;--serif: Alegreya, Georgia, "Times New Roman", serif;--sans: "Alegreya Sans", "Trebuchet MS", Verdana, sans-serif}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:17px;line-height:1.4}#app{min-height:100%}h1,h2{font-family:var(--serif);font-weight:700;margin:0}.loading{padding:32px 16px;text-align:center}.btn{min-height:44px;min-width:44px;padding:8px 18px;border:2px solid var(--copper-dark);border-radius:6px;background:var(--copper);color:#1a1009;font:700 1rem var(--sans);cursor:pointer}@media(hover:hover){.btn:hover{background:#d98a3f}}.btn:focus-visible,.song-row:focus-visible,summary:focus-visible{outline:3px solid var(--text);outline-offset:2px}.btn-quiet{background:transparent;color:var(--text);border-color:var(--line)}@media(hover:hover){.btn-quiet:hover{background:var(--panel-2)}}.btn-small{padding:6px 12px}.select{display:flex;flex-direction:column;height:100vh;height:100dvh;padding:10px 16px 6px;background:var(--bg)}.select-head{display:flex;align-items:center;gap:16px;padding-bottom:8px;border-bottom:2px solid var(--line)}.select-head h1{font-size:clamp(1.4rem,3.4vw,2.4rem);color:var(--gold)}.tagline{flex:1 1 auto;margin:0;color:var(--muted)}.select-body{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:minmax(0,1fr);gap:16px;padding-top:10px}.wheel-box{position:relative;contain:paint;isolation:isolate;min-height:0;border:2px solid var(--line);border-radius:10px;background:var(--panel);overflow:hidden}.wheel-box:before{content:"";position:absolute;left:-120%;top:0;width:160%;height:100%;border-right:3px solid var(--line);border-radius:50%;pointer-events:none}.wheel{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}.wheel:focus-visible{outline:3px solid var(--text);outline-offset:-3px}.wheel-item{position:absolute;left:0;top:0;display:flex;align-items:center;gap:10px;width:88%;min-height:64px;padding:4px 14px 4px 6px;border:2px solid var(--line);border-radius:40px 10px 10px 40px;background:var(--panel-2);transform-origin:left center;will-change:transform}.wheel-item.front{border-color:var(--gold);background:#3a2d1f}.wheel-item.front .wheel-name:before,.wheel-item.measure .wheel-name:before{content:"> ";color:var(--gold)}.wheel-art{width:72px;height:72px;flex:0 0 auto;border-radius:50%;background:#5a4a36;border:2px solid var(--line)}.wheel-text{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}.wheel-name{display:block;font-family:var(--serif);font-weight:700;font-size:1.3rem;line-height:1.15;white-space:normal;overflow:hidden}.wheel-detail{color:var(--muted);font-size:.85rem}.region-side{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;min-height:0}.region-title{font-size:1.2rem;color:var(--gold)}.song-list{grid-row:2;list-style:none;margin:0;padding:0 4px 0 0;overflow-y:auto;min-height:0}.song-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:5px 12px;margin-bottom:5px;border:2px solid var(--line);border-radius:6px;background:var(--panel);cursor:pointer}@media(hover:hover){.song-row:hover{background:var(--panel-2)}}.song-row.on{border-color:var(--gold);background:var(--panel-2)}.song-row.on .row-title:before{content:"> ";color:var(--gold)}.song-row:focus-visible{outline:3px solid var(--text);outline-offset:1px}.row-left{display:flex;flex-direction:column;min-width:0}.row-title{font-family:var(--serif);font-weight:700;font-size:1.05rem;white-space:nowrap;overflow:hidden;text-overflow:clip}.row-length{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}.row-skip{color:var(--muted);font-size:.85rem}.tier{display:inline-flex;flex-direction:column;align-items:flex-end;gap:3px;flex:0 0 auto}.tier-name{font-weight:700;font-size:.9rem;white-space:nowrap}.tier-steps{display:flex;gap:3px}.step{width:8px;height:8px;border:1px solid var(--muted);border-radius:2px}.step.on{background:var(--gold);border-color:var(--gold)}.details{grid-row:3;padding:10px 12px;border:2px solid var(--line);border-radius:8px;background:var(--panel)}.details-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.details-title{min-width:0}.details h3{margin:0;font-family:var(--serif);font-size:1.3rem;color:var(--gold)}.hint{margin:2px 0 0;color:var(--muted);font-style:italic}.btn-play{min-width:120px;font-size:1.15rem}.facts{margin:8px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));column-gap:16px}.fact{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;border-bottom:1px solid var(--line)}.fact dt{color:var(--muted)}.fact dd{margin:0;text-align:right}.tags{display:inline-flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.tag{padding:1px 7px;border:1px solid var(--muted);border-radius:4px;font-size:.8rem}.fan-notice{margin:6px auto 0;max-width:900px;font-size:.72rem;color:var(--muted);text-align:center}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:#0a0806d9}.modal-card{width:min(520px,100%);max-height:100%;overflow-y:auto;padding:16px;border:2px solid var(--line);border-radius:10px;background:var(--panel)}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.setting{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}.stepper{display:flex;align-items:center;gap:6px}.btn-step{padding:6px 10px;font-size:.9rem}.btn-toggle{min-width:72px}.setting-value{min-width:64px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}.help p{margin:4px 0;font-size:.9rem;color:var(--muted)}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:100vh}@media(max-width:640px){.select{height:auto;min-height:100vh}.select-body{grid-template-columns:minmax(0,1fr);grid-template-rows:320px auto}}@media(max-height:500px){.select{padding:4px 10px 2px}.select-head{padding-bottom:4px}.select-head h1{font-size:1.2rem}.tagline{font-size:.8rem}.select-body{padding-top:6px;gap:10px}.wheel-item{min-height:54px}.wheel-art{width:52px;height:52px}.wheel-name{font-size:1.05rem}.region-title{display:none}.song-row{min-height:44px;padding:2px 10px}.details{padding:6px 10px}.details h3{font-size:1.05rem}.hint{font-size:.8rem}.facts{display:none}.fan-notice{font-size:.62rem;margin-top:2px}}.play{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;background:var(--bg)}.hud{display:flex;align-items:center;gap:16px;padding:4px 16px;background:var(--panel);border-bottom:2px solid var(--line)}.hud-title{flex:1 1 auto;min-width:0;font-family:var(--serif);font-weight:700;font-size:1.1rem;white-space:nowrap;overflow:hidden}.hud-stat{display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums;font-weight:700}.hud-label{font-size:.7rem;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}@media(max-width:520px){.hud-title{display:none}}.play canvas{flex:1 1 auto;width:100%;min-height:0;display:block;touch-action:none;user-select:none;-webkit-user-select:none}.pause-box{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0c0906d9;padding:16px}.pause-box[hidden]{display:none}.pause-card{display:flex;flex-direction:column;gap:10px;min-width:240px;padding:20px;background:var(--panel);border:2px solid var(--line);border-radius:8px}.pause-card h2{text-align:center}.results{max-width:560px;margin:0 auto;padding:24px 16px}.results-card{background:var(--panel);border:2px solid var(--line);border-radius:8px;padding:20px}.results-kicker{margin:0;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;color:var(--muted)}.results-card h1{color:var(--gold)}.results-top{display:flex;align-items:center;gap:20px;margin:12px 0}.grade{display:flex;flex-direction:column;align-items:center;min-width:88px;padding:6px 12px;border:2px solid var(--gold);border-radius:8px}.grade-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.grade-letter{font-family:var(--serif);font-weight:700;font-size:2rem;line-height:1.1}.results-acc{margin:0}.results-acc .big{font-family:var(--serif);font-weight:700;font-size:2rem}.new-best{margin:0 0 8px;font-weight:700;color:var(--gold)}.tally{margin:0}.tally-row{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--line)}.tally dt{font-weight:700}.tally dd{margin:0;font-variant-numeric:tabular-nums}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.meter-strip{display:flex;align-items:center;gap:10px;padding:2px 12px;background:var(--panel);border-bottom:1px solid var(--line);font-size:.8rem;font-weight:700}.meter-strip[hidden]{display:none}.meter-label{white-space:nowrap;min-width:150px}.meter-track{position:relative;flex:1 1 auto;height:6px;background:#3b3128;border-radius:3px}.meter-fill{position:absolute;left:0;top:0;bottom:0;width:50%;background:var(--gold);border-radius:3px}.meter-fill.low{background:#c4573a}.meter-notch{position:absolute;left:30%;top:-3px;width:2px;height:12px;background:var(--text)}.rotate-hint{display:none;margin:0;padding:2px 12px;font-size:.8rem;color:var(--muted);text-align:center}@media(orientation:landscape)and (max-height:500px){.touch .rotate-hint{display:block}}@media(orientation:portrait)and (max-width:760px){.select{height:100vh;height:100dvh;min-height:0;padding:6px 10px 4px}.select-head{gap:10px;padding-bottom:6px}.select-head h1{font-size:1.4rem}.tagline{display:none}.select-head{justify-content:space-between}.select-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(190px,32%) minmax(0,1fr);gap:8px;padding-top:6px}.wheel-item{width:80%;min-height:54px}.wheel-art{width:52px;height:52px}.wheel-name{font-size:1.1rem}.region-title{font-size:1rem}.details{display:flex;flex-direction:column;padding:8px 10px}.facts{order:-1;margin:0 0 8px}.details h3{font-size:1.1rem}.facts{grid-template-columns:repeat(2,minmax(0,1fr));font-size:.85rem}.btn-play{min-width:110px;min-height:52px}.fan-notice{font-size:.62rem;margin-top:2px}}.upright{display:flex;flex-direction:column;height:100vh;height:100dvh;padding:8px 12px 6px;gap:8px}.upright-head{display:flex;align-items:center;gap:12px;padding-bottom:6px;border-bottom:2px solid var(--line)}.upright-head h1{flex:1 1 auto;min-width:0;font-size:1.5rem;color:var(--gold);white-space:nowrap;overflow:hidden}.upright-count{color:var(--muted);white-space:nowrap}.btn-back{min-width:72px}.wheel-box.wheel-big{flex:1 1 auto;min-height:0}.wheel-big .wheel-item{width:90%;min-height:92px;border-radius:56px 12px 12px 56px}.wheel-big .wheel-art{width:104px;height:104px}.wheel-big .wheel-name{font-size:1.6rem}.wheel-big .wheel-detail{font-size:1rem}.upright-songs .song-list{flex:1 1 auto;min-height:0;overflow-y:auto}.upright-songs .song-row{min-height:60px}.sheet{position:fixed;top:0;right:0;bottom:0;left:0;z-index:900;display:flex;align-items:flex-end;background:#0a0806b3}.sheet-card{position:relative;width:100%;max-height:85%;overflow-y:auto;padding:14px 14px 18px;border-top:2px solid var(--gold);border-radius:14px 14px 0 0;background:var(--panel)}.sheet-close{position:absolute;top:10px;right:10px}.sheet .details{display:flex;flex-direction:column;padding:0;border:0;background:transparent}.sheet .details-top{flex-direction:column;align-items:stretch}.sheet .details h3{padding-right:90px;font-size:1.4rem}.sheet .facts{order:0;display:grid;grid-template-columns:minmax(0,1fr);margin:10px 0 0}.sheet .btn-play{order:10;width:100%;min-height:60px;margin-top:14px;font-size:1.3rem}.topbar{position:relative;z-index:50;display:flex;align-items:center;gap:10px;background:var(--bg)}.topbar h1{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden}.topbar-slot{display:flex;align-items:center;gap:8px}.topbar-slot:empty{display:none}.results-head{margin-bottom:12px;padding-bottom:6px;border-bottom:2px solid var(--line)}.results-head h1{font-size:1.4rem;color:var(--gold)}body{background:radial-gradient(ellipse at 12% 0,#442919 0,transparent 48%),#17100c;scrollbar-color:#876447 #20150f}.select,.upright{background:radial-gradient(ellipse at 0 55%,#6c361b39,transparent 52%),radial-gradient(ellipse at 100% 10%,#7748192b,transparent 45%),repeating-linear-gradient(0deg,transparent 0 3px,#ffffff02 3px 4px),#17100c}.select{padding:16px 24px 8px;gap:10px}.topbar{background:transparent;border-color:#8c7249;padding-bottom:12px}.brand{flex:1 1 auto;min-width:0}.brand-kicker,.details-kicker,.section-number,.rail-label,.rail-detail,.marquee-copy{font-family:var(--sans);font-weight:700;font-size:.69rem;letter-spacing:.17em;line-height:1.4}.brand-kicker{display:block;color:var(--amber);margin-bottom:2px}.select-head h1{font-size:clamp(1.8rem,3.2vw,2.8rem);line-height:1.05}.topbar h1{color:#f6d488;text-shadow:0 2px #5c3e25,0 0 24px #d8b45c30}.dance-marquee{display:flex;align-items:center;gap:12px;min-height:40px;border-bottom:1px solid #674831;padding-bottom:8px}.marquee-arrow{display:grid;place-items:center;width:32px;height:30px;font:900 1.65rem/1 var(--sans);color:var(--lane);border:1px solid color-mix(in srgb,var(--lane) 50%,transparent);background:color-mix(in srgb,var(--lane) 9%,transparent);text-shadow:0 0 12px var(--lane);transform:skew(-8deg)}.lane-0{--lane: #ff9859}.lane-1{--lane: #ffd07a}.lane-2{--lane: #f4e4ab}.lane-3{--lane: #ffd276}.marquee-copy{margin-left:auto;color:var(--muted)}.select-body{padding-top:0;gap:20px}.wheel-box{border:1px solid #8c7249;border-radius:4px;background:radial-gradient(ellipse at 20% 50%,#9a4b2040,transparent 70%),repeating-radial-gradient(circle at -15% 50%,transparent 0 70px,#c89b600e 71px 72px),linear-gradient(120deg,#352217,#1e140f);box-shadow:inset 0 0 0 4px #17100c,inset 0 0 0 5px #594735,0 10px 30px #0004}.wheel-box:before{border-color:#ffd07a50;box-shadow:12px 0 36px #ffd07a10}.wheel-box:after{content:"";position:absolute;left:0;right:0;top:50%;height:100px;transform:translateY(-50%);pointer-events:none;background:linear-gradient(90deg,#ffd07a0c,#ff985908,transparent);border-block:1px solid #d8b45c30;z-index:-1}.arcade-rail{display:flex;justify-content:space-between;align-items:center;gap:12px}.wheel-box>.arcade-rail{position:absolute;inset:14px 18px auto;z-index:150;pointer-events:none;padding-bottom:10px;border-bottom:1px solid #d8b45c35}.rail-label{color:#e7cb91}.rail-detail{color:#c0a182;font-size:.6rem}.wheel{top:48px;right:0;bottom:22px;left:0}.wheel-item{background:linear-gradient(105deg,#422e20,#2b1e16);border-color:#8a674a;border-radius:46px 4px 4px 46px;box-shadow:0 5px 12px #0005,inset 0 1px #ffffff12}.wheel-item.front{background:linear-gradient(100deg,#5c3a20,#3d2819);border-color:var(--amber);box-shadow:0 0 0 2px #ffd07a12,0 0 24px #ffd07a20,inset -4px 0 var(--amber)}.wheel-item.front .wheel-name{color:#fff0c9;text-shadow:0 0 16px #d8b45c40}.wheel-item.front .wheel-name:before{color:var(--amber)}.wheel-art{background:radial-gradient(circle at 50% 30%,#755237,#302016);border-color:#ad8d58;image-rendering:pixelated}.region-title{display:flex;align-items:center;gap:12px;padding:2px 0 8px;border-bottom:1px solid #8c7249}.section-number{color:var(--amber);font-size:.6rem}.track-count{margin-left:auto;color:var(--muted);font:500 .8rem var(--sans);white-space:nowrap}.song-list{padding:2px 7px 2px 2px}.song-row{border:1px solid #65472f;border-radius:3px;background:linear-gradient(100deg,#35251a,#241910);transition:border-color .15s,background .15s}@media(hover:hover){.song-row:hover{border-color:#bc9163;background:#422e20}}.song-row.on{border-color:var(--ember);background:linear-gradient(100deg,#754121,#3c281a);box-shadow:inset 3px 0 var(--ember),0 0 12px #ff985916}.song-row.on .row-title:before{color:var(--ember)}.row-title{letter-spacing:.015em}.tier-0{--tier-color: #f4e4ab}.tier-1{--tier-color: #ffd07a}.tier-2{--tier-color: #ffd276}.tier-3{--tier-color: #ffab75}.tier-4{--tier-color: #ff9859}.tier-5{--tier-color: #edb393}.tier-name{color:var(--tier-color, var(--gold))}.step{width:10px;height:5px;border-radius:0;border-color:#8b6e50;transform:skew(-12deg)}.step.on{background:var(--tier-color, var(--gold));border-color:var(--tier-color, var(--gold));box-shadow:0 0 5px color-mix(in srgb,var(--tier-color, var(--gold)) 30%,transparent)}.details{border:1px solid #8c7249;border-top:2px solid var(--gold);border-radius:3px;background:linear-gradient(120deg,#49311f,#2c1e15);box-shadow:inset 0 0 0 3px #17100c50;padding:12px 16px}.details-kicker{display:block;color:var(--ember);margin-bottom:4px;font-size:.6rem}.details h3{font-size:1.55rem;line-height:1.15}.hint,.facts{font-size:.9rem}.btn{border-radius:3px;border:1px solid #f5d48a;background:linear-gradient(#e4c27b,#b78a44);box-shadow:inset 0 0 0 2px #513b253d,0 3px #100a06;color:#21170e}@media(hover:hover){.btn:hover{background:linear-gradient(#ffe5a7,#d3a95f)}}.btn:active{transform:translateY(1px)}.btn-quiet{color:var(--text);border-color:#916c48;background:linear-gradient(#493221,#302016)}@media(hover:hover){.btn-quiet:hover{background:#60422b}}.btn-play{box-shadow:0 0 22px #d8b45c20,inset 0 0 0 2px #513b253d,0 3px #100a06;text-transform:uppercase;letter-spacing:.12em}.select-controls{border-block:1px solid #674831;padding:8px 0}.select-controls .rail-label{color:var(--amber);font-size:.6rem}.fan-notice{opacity:.8;margin-top:0}.hud{min-height:68px;border-bottom:2px solid #ad8d58;background:linear-gradient(100deg,#382519,#21170f);box-shadow:0 0 22px #ffd07a14}.hud-title{color:#f6d488}.hud-stat{padding-left:16px;border-left:1px solid #674831;font-size:1.25rem;color:var(--amber)}.hud-stat:nth-child(3){color:var(--ember)}.hud-label{font-size:.6rem;letter-spacing:.15em}.modal-card,.pause-card,.results-card,.sheet-card{border-color:#ad8d58;border-radius:4px;background:linear-gradient(135deg,#4a3020,#291b12);box-shadow:0 20px 80px #0009,inset 0 0 0 4px #17100c40}.results{max-width:660px;padding-top:32px}.results-card{border-top:3px solid var(--amber);padding:28px}.grade{border-color:var(--ember);box-shadow:0 0 24px #ff98591a}.grade-letter{font-size:3rem;color:var(--ember);text-shadow:0 0 18px #ff98594d}.new-best{color:var(--amber)}.meter-fill{background:var(--amber);box-shadow:0 0 10px #ffd07a50}.loading-screen{background:radial-gradient(ellipse at center,#5a361d,#17100c 65%)}.loading-screen .loading{color:var(--gold);font:700 1.7rem var(--serif)}@media(min-width:1000px){.select{padding-inline:max(24px,calc((100vw - 1500px)/2))}}@media(max-width:760px){.select{gap:6px;padding:8px 10px 6px}.brand-kicker{font-size:.55rem;letter-spacing:.13em}.dance-marquee{gap:8px;min-height:28px;padding-bottom:6px}.marquee-arrow{height:22px;width:24px;font-size:1.25rem}.marquee-copy{font-size:.5rem;letter-spacing:.08em}.section-number{display:none}.rail-detail{font-size:.5rem;letter-spacing:.08em}.wheel-box>.arcade-rail{inset:12px 14px auto}.rail-label{font-size:.6rem}.select-controls{display:none}.hud{min-height:54px;gap:10px;padding:4px 10px}.hud-stat{padding-left:10px;font-size:1rem}.upright-head{padding-bottom:8px}.upright-head h1{font-size:1.5rem}.details h3{font-size:1.2rem}}@media(max-height:550px){.brand-kicker,.dance-marquee,.select-controls{display:none}.select{gap:4px;padding:4px 10px}.topbar{padding-bottom:4px}.select-head h1{font-size:1.4rem}.details-kicker{display:none}.hud{min-height:44px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}@media(max-width:420px){.facts{grid-template-columns:minmax(0,1fr)}.fact{min-width:0}.fact dd{min-width:0;overflow-wrap:anywhere}.marquee-copy{max-width:150px}.region-side{gap:6px}.details{padding:10px}}.tier-6{--tier-color: #edb393}.tier-7{--tier-color: #eaa187}.wheel-deck{position:absolute;inset:auto 28px 20px;text-align:center;pointer-events:none}.deck-bars{display:flex;justify-content:center;align-items:flex-end;gap:5px;height:38px;opacity:.45}.deck-bars i{flex:1;max-width:9px;height:100%;background:repeating-linear-gradient(to top,transparent 0 2px,#ffd07a 2px 6px);transform-origin:bottom;transform:scaleY(var(--level));animation:deck-dance 2.4s ease-in-out var(--delay) infinite alternate}.deck-bars i:nth-child(3n){background:repeating-linear-gradient(to top,transparent 0 2px,#ff9859 2px 6px)}.wheel-deck>span{display:block;margin-top:10px;color:#b99a75;font-size:.55rem;letter-spacing:.19em}@keyframes deck-dance{to{transform:scaleY(calc(1.1 - var(--level)))}}@media(max-height:650px),(max-width:760px){.wheel-deck{display:none}}@media(prefers-reduced-motion:reduce){.deck-bars i{animation:none}}.upright{width:100%;max-width:860px;margin-inline:auto;padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));gap:clamp(8px,1.3dvh,16px);overflow:hidden}.upright .topbar{flex:0 0 auto}.upright .brand-kicker{display:block;font-size:.56rem}.upright-head h1{font-size:clamp(1.55rem,5.8vw,2.6rem);line-height:1.1}.portrait-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:0 0 auto}.portrait-step{display:flex;align-items:center;gap:6px;padding:8px 0;border-bottom:2px solid #60432d;color:#a38c71;font-size:.67rem;white-space:nowrap}.portrait-step b{font-size:.58rem;font-weight:700;opacity:.7}.portrait-step.current{color:#ffdc9a;border-color:var(--ember)}.portrait-intro{flex:0 0 auto;padding:2px 0 4px}.portrait-eyebrow{margin:0 0 5px;color:var(--ember);font-size:.6rem;letter-spacing:.16em;font-weight:700}.portrait-intro h2{font-size:clamp(1.85rem,6.7vw,3rem);color:#ffdda0;line-height:1.08}.portrait-intro>p:last-child:not(.portrait-eyebrow){margin:6px 0 0;color:var(--muted);font-size:.88rem}.upright-wheel .wheel-box{flex:1 1 auto;min-height:165px}.upright-wheel .wheel{top:43px;right:0;bottom:8px;left:0}.upright-wheel .wheel-item{width:87%;min-height:clamp(68px,12dvh,126px);border-radius:64px 6px 6px 64px}.upright-wheel .wheel-art{width:clamp(64px,14vw,112px);height:clamp(64px,14vw,112px)}.upright-wheel .wheel-name{font-size:clamp(1.25rem,4.3vw,2rem)}.upright-wheel .wheel-detail{font-size:.85rem}.upright-wheel .wheel-deck{display:none}.portrait-dock{flex:0 0 auto;padding:14px;border:1px solid #a87f47;border-top:2px solid #d8b45c;border-radius:5px;background:linear-gradient(125deg,#4b2e1b,#281a11);box-shadow:0 -12px 28px #10090466,inset 0 0 0 3px #140d073d}.realm-status{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.realm-status strong{color:#ffdda0;font:700 1.1rem var(--serif)}.realm-status span{color:var(--muted);font-size:.75rem;text-align:right}.portrait-dock .btn-play{width:100%;min-height:56px}.dock-help{margin:8px 0 0;color:var(--muted);font-size:.66rem;text-align:center}.upright .fan-notice{flex:0 0 auto;font-size:.55rem;line-height:1.25}.upright-songs .upright-head h1{font-size:clamp(1.3rem,4.7vw,2rem)}.upright-count{font-size:.75rem}.upright-songs .btn-back{min-width:52px;padding-inline:10px}.upright-songs .song-list{margin-bottom:-4px;padding:3px 5px 5px 1px;overscroll-behavior-y:contain}.upright-songs .song-row{min-height:68px;margin-bottom:7px;gap:10px;padding:9px 12px}.track-number{color:#ac8c65;font-size:.65rem;font-variant-numeric:tabular-nums}.upright-songs .row-left{flex:1}.upright-songs .row-title{font-size:1.05rem}.upright-songs .row-length{font-size:.72rem}.upright-songs .tier-name{font-size:.75rem}.track-dock{padding:12px 14px}.portrait-details{display:flex;flex-direction:column;padding:0;border:0;background:transparent;box-shadow:none}.portrait-details .details-top{display:contents}.portrait-details .details-title{order:0}.portrait-details h3{font-size:clamp(1.4rem,4.8vw,1.9rem);padding:0}.portrait-details .hint{display:none}.portrait-details .facts{order:1;display:flex;flex-wrap:wrap;gap:6px 18px;margin:8px 0 12px;font-size:.78rem}.portrait-details .fact{gap:8px;border:0;padding:0}.portrait-details .fact:nth-child(n+3){display:none}.portrait-details .tier{flex-direction:row;align-items:center;gap:6px}.portrait-details .tier-steps{display:none}.portrait-details .btn-play{order:2}.play{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.vertical-play .hud{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:8px;padding:10px 14px;min-height:94px}.vertical-play .hud-title{display:block;grid-column:1 / 4;grid-row:1;font-size:1.15rem}.vertical-play .hud-title:before{content:attr(data-caption);display:block;color:var(--ember);font:700 .53rem var(--sans);letter-spacing:.15em;margin-bottom:2px}.vertical-play .hud [data-act=pause]{grid-column:4;grid-row:1 / 3;min-height:48px;padding-inline:12px}.vertical-play .hud-stat{grid-row:2;align-items:flex-start;padding-left:0;border:0;font-size:1.05rem}.vertical-play .hud-label{font-size:.53rem}.vertical-play .meter-strip{gap:8px;padding:5px 14px;font-size:.65rem}.vertical-play .meter-label{min-width:118px}.vertical-play .rotate-hint{display:none}@media(orientation:portrait)and (min-width:600px){.upright{padding-inline:clamp(22px,5vw,48px);gap:16px}.portrait-step{font-size:.85rem;padding-block:12px}.portrait-intro{padding-block:8px}.portrait-dock{padding:20px}.portrait-dock .btn-play{min-height:66px;font-size:1.3rem}.realm-status strong{font-size:1.45rem}.realm-status span{font-size:.95rem}.upright-songs .song-row{min-height:80px;padding-inline:16px}.upright-songs .row-title{font-size:1.3rem}.upright-songs .tier-name{font-size:.95rem}.vertical-play .hud{padding:14px 24px;min-height:112px}.vertical-play .hud-title{font-size:1.5rem}.vertical-play .hud-stat{font-size:1.3rem}}@media(orientation:portrait)and (max-height:740px){.upright{gap:7px}.upright .topbar{padding-bottom:7px}.portrait-step{padding-block:5px}.portrait-intro>p:last-child:not(.portrait-eyebrow){display:none}.portrait-intro h2{font-size:1.8rem}.portrait-intro .portrait-eyebrow{font-size:.53rem}.portrait-dock{padding:10px 12px}.dock-help{display:none}.portrait-dock .btn-play{min-height:50px}.upright .fan-notice{font-size:.5rem}.vertical-play .hud{min-height:82px;padding-block:7px}}.brand-link{display:block;width:fit-content;max-width:100%;border-radius:4px;line-height:0}.brand-link:focus-visible{outline:2px solid var(--amber);outline-offset:4px}.brand-logo{display:block;width:180px;max-width:100%;height:auto}.topbar .brand .brand-context{margin:3px 0 0 3px;color:var(--muted);font:700 .8rem var(--sans);text-shadow:none}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}@media(max-width:480px){.brand-logo{width:154px}}@media(max-height:500px){.brand-logo{width:134px}}.account-btn{max-width:168px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-btn[data-state=named]{border-color:var(--gold);color:#ffdda0}.account-body{display:flex;flex-direction:column;gap:10px}.account-title{margin:0;color:#ffdda0;font:700 1.15rem var(--serif)}.account-text{margin:0;color:var(--muted);font-size:.92rem;line-height:1.45}.account-note{margin:0;padding:8px 10px;border-left:3px solid var(--gold);background:#17100c80;font-size:.92rem}.account-note.bad{border-left-color:var(--ember)}.account-note:empty{display:none}.account-label{color:var(--muted);font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.account-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 0;border-block:1px solid var(--line)}.account-name strong{font:700 1.2rem var(--serif);color:var(--text);overflow-wrap:anywhere}.account-actions{display:flex;flex-wrap:wrap;gap:10px}.account-actions .btn{flex:1 1 140px}.btn:disabled{opacity:.55;cursor:default}.btn-danger{align-self:flex-start;border-color:#a5543a;color:#ffb59a}.btn-danger-solid{background:linear-gradient(#c8613f,#96402a);border-color:#ffb59a;color:#fff4ea}.name-form{display:flex;flex-direction:column;gap:8px}.name-input{min-height:48px;padding:8px 12px;border:2px solid #916c48;border-radius:3px;background:#17100c;color:var(--text);font:700 1.15rem var(--sans)}.name-input:focus-visible{outline:3px solid var(--text);outline-offset:2px}.name-input[aria-invalid=true]{border-color:var(--ember)}.discord-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 22px;background:linear-gradient(45deg,#4752c4,#6571f3);color:#fff;border:1px solid rgba(0,0,0,.08);border-radius:40px;font:700 1rem var(--sans);cursor:pointer}@media(hover:hover){.discord-btn:hover{background:#4752c4}}.discord-btn:focus-visible{outline:3px solid var(--text);outline-offset:2px}.discord-btn:disabled{opacity:.6;cursor:default}.discord-logo{width:22px;height:22px;flex:none}.details-actions{display:flex;align-items:stretch;gap:8px}.details-actions .btn-board{flex:none}.portrait-details .details-actions{order:2}.portrait-details .details-actions .btn-play{flex:1 1 auto}.sheet .details-actions{order:10;flex-direction:column;margin-top:14px}.sheet .details-actions .btn-play{margin-top:0}.board-sheet{z-index:950}.board-card{display:flex;flex-direction:column;max-height:88%;padding:14px 16px 18px}.board-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.board-titles{min-width:0}.board-titles .details-kicker{display:block;margin:0 0 2px}.board-titles h2{color:#ffdda0;font-size:1.35rem;line-height:1.15;overflow-wrap:anywhere}.board-close{flex:none}.board-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}.board-status{margin:4px 0;color:var(--muted)}.board-prompt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:10px;padding:10px 12px;border:1px solid #916c48;border-left:3px solid var(--gold);background:#17100c80}.board-prompt p{margin:0;flex:1 1 180px}.board-table{width:100%;border-collapse:collapse;font-size:.95rem;font-variant-numeric:tabular-nums}.board-table th,.board-table td{padding:8px 6px;text-align:left;border-bottom:1px solid #674831}.board-table thead th{color:var(--muted);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase}.board-table tbody th{font-weight:700;overflow-wrap:anywhere}.board-table .col-rank{width:2.6em;color:var(--muted)}.board-table .col-grade{width:3.6em}.board-table .col-score,.board-table .col-acc{width:4.6em;text-align:right}.board-table tr.mine{background:#6c4a2459}.board-table tr.mine th,.board-table tr.mine td{color:#ffe7b5;border-bottom-color:var(--gold)}.board-table tr.mine th{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}.board-gap td{padding-top:14px;color:var(--muted);font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;border-bottom:0}.board-note{margin:10px 0 0;color:var(--muted);font-size:.85rem}@media(orientation:landscape),(min-width:761px){.board-sheet{align-items:center;justify-content:center;padding:16px}.board-card{width:min(640px,100%);border-radius:4px;border:2px solid #ad8d58}}@media(max-width:420px){.board-table{font-size:.85rem}.board-table th,.board-table td{padding:8px 3px}.board-table .col-rank{width:2em}.board-table .col-grade{width:3.2em}.board-table .col-score{width:3.9em}.board-table .col-acc{width:3.6em}}.results-board{margin-top:14px;padding:12px 14px;border:1px solid #916c48;border-left:3px solid var(--gold);background:#17100c66}.board-status.placed{color:#ffdda0;font:700 1.1rem var(--serif)}.board-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.sheet,.modal{-webkit-tap-highlight-color:transparent}.title-card{position:absolute;left:50%;z-index:5;transform:translate(-50%,-50%);width:min(440px,calc(100% - 32px));padding:12px 18px 14px;border:2px solid #ad8d58;border-top:3px solid var(--amber);border-radius:4px;background:#24180f;box-shadow:0 10px 40px #0009;text-align:center;pointer-events:none}.title-card[hidden]{display:none}.title-card-region{display:block;color:var(--ember);font:700 .7rem var(--sans);letter-spacing:.16em;text-transform:uppercase}.title-card-name{display:block;margin:2px 0 4px;color:#f6d488;font:700 1.6rem/1.15 var(--serif);overflow-wrap:anywhere}.title-card-tier{display:block;color:var(--text);font-size:.9rem;font-weight:700}.vertical-play .title-card{padding:8px 14px 10px}.vertical-play .title-card-name{font-size:1.3rem}.song-credit{margin:8px 0 0;color:var(--muted);font-size:.8rem}.slider{display:flex;align-items:center;gap:10px;flex:0 1 240px}.range{flex:1 1 auto;min-width:120px;height:44px;margin:0;accent-color:var(--amber);background:transparent;cursor:pointer}.range:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.region-side.has-tools{grid-template-rows:auto auto minmax(0,1fr) auto}.region-side.has-tools .song-list{grid-row:3}.region-side.has-tools{grid-template-columns:minmax(0,1fr)}.region-side.has-tools>.region-title{grid-row:1;grid-column:1}.region-side.has-tools>.list-tools{grid-row:2;grid-column:1}.region-side.has-tools>.song-list{grid-column:1}.region-side.has-tools>.details{grid-row:4;grid-column:1}.region-side.has-tools>.list-bar-side{grid-row:2;grid-column:1;display:none;padding:0}@media(max-height:820px),(max-width:1199px){.region-side.has-tools>.list-tools{display:none}.region-side.has-tools>.list-bar-side{display:flex}}.list-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:6px 8px}.tool{display:flex;flex-direction:column;gap:2px;min-width:0}.tool-label{color:var(--muted);font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.tool-select{min-height:44px;max-width:170px;padding:6px 8px;border:1px solid #916c48;border-radius:3px;background:#302016;color:var(--text);font:600 .9rem var(--sans)}.tool-select:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.tool-order,.tool-clear{min-height:44px;white-space:nowrap}.tool-clear[hidden]{display:none}.list-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 2px 8px}.list-bar-text{min-width:0;color:var(--muted);font-size:.8rem}.list-bar .btn{flex:0 0 auto;min-height:44px}.list-sheet-body{display:grid;gap:12px;padding-top:10px}.list-sheet-body .tool-select{max-width:none;width:100%}.list-sheet-body .tool-order,.list-sheet-body .tool-clear{width:100%}.no-match{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 12px;list-style:none;text-align:center}.no-match p{margin:0;font:700 1.2rem var(--serif);color:var(--text)}.no-song{margin:0;padding:6px 2px;color:var(--muted);font-size:.9rem}.details-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px 12px}.details-title{flex:1 1 13rem;min-width:0}.details-title h3,.details-title .hint{overflow-wrap:anywhere}.portrait-details .details-title{flex:0 0 auto}.details-actions{flex:0 1 auto;flex-wrap:wrap;align-items:stretch;gap:8px;max-width:100%}.details-actions .btn-play{flex:1 0 auto}.btn-icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;min-height:48px;padding:0}.btn-icon .icon{width:24px;height:24px}.btn-icon[aria-pressed=true]{border-color:var(--amber);box-shadow:inset 0 0 0 2px #ffd07a55}.lane-preview{margin:2px 0 8px}.lane-preview canvas{display:block;width:100%;border-radius:3px;touch-action:manipulation;cursor:pointer}.lane-preview-note{margin:4px 0 0;color:var(--muted);font-size:.78rem}.portrait-details .details-actions{width:100%;flex-wrap:nowrap}.portrait-details .details-actions .btn-play{order:-1}.range-scale{display:flex;justify-content:space-between;margin:-2px 0 6px;color:var(--muted);font-size:.72rem}.tabs{display:flex;gap:6px;margin:0 0 10px;border-bottom:1px solid #8c7249}.tab{flex:1 1 0;min-height:44px;padding:8px 10px;border:1px solid #916c48;border-bottom:0;border-radius:4px 4px 0 0;background:#302016;color:var(--muted);font:700 .95rem var(--sans);cursor:pointer}.tab[aria-selected=true]{background:#4a3020;color:var(--text);border-color:var(--amber);box-shadow:inset 0 3px var(--amber);text-decoration:underline;text-underline-offset:4px}.tab:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.tab-panel[hidden]{display:none}.setting-note{margin:2px 0 8px;color:var(--muted);font-size:.82rem}.help-head{margin:10px 0 4px;font:700 1rem var(--serif);color:var(--gold)}.key-list{margin:0;display:grid;gap:6px}.key-row{display:grid;grid-template-columns:minmax(0,11rem) minmax(0,1fr);gap:4px 12px}.key-row dt{font-weight:700;color:var(--text);font-size:.88rem}.key-row dd{margin:0;color:var(--muted);font-size:.88rem}@media(max-width:420px){.key-row{grid-template-columns:minmax(0,1fr)}}a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.profile{max-width:1040px;margin:0 auto;padding:24px 16px 32px}.profile-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.profile-card,.profile-section{border:1px solid #ad8d58;border-radius:4px;background:linear-gradient(135deg,#4a3020,#291b12);box-shadow:inset 0 0 0 3px #17100c40;padding:16px 18px;min-width:0}.profile-header{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px 24px;border-top:3px solid var(--amber)}.profile-titles{min-width:0;flex:1 1 280px}.profile-titles .details-kicker{display:block;margin-bottom:2px}.profile-name{margin:0;color:#ffdda0;font:700 clamp(1.7rem,5vw,2.5rem) / 1.1 var(--serif);overflow-wrap:anywhere;text-shadow:0 2px #5c3e25}.profile-facts{display:flex;flex-wrap:wrap;gap:6px 28px;margin:10px 0 0}.profile-fact dt{color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.profile-fact dd{margin:0;font-weight:700}.profile-share{display:flex;flex-direction:column;gap:8px;flex:0 1 220px;min-width:0}.profile-share-status{margin:0;color:var(--muted);font-size:.9rem;overflow-wrap:anywhere}.profile-share-status:empty{display:none}.profile-private-note{flex:1 1 100%}.profile-empty{border-top:3px solid var(--amber)}.profile-empty .board-status{font-size:1.05rem}.profile-empty .btn{margin-top:8px}.profile-heading{margin:0 0 12px;color:#f6d488;font:700 1.35rem var(--serif)}.profile-note{margin:10px 0 0;color:var(--muted);font-size:.88rem}.profile-badges>.profile-note{margin:0 0 12px}.stat-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:0}.stat-tile{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #674831;border-left:3px solid var(--gold);border-radius:2px;background:#17100c80;min-width:0}.stat-label{color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.stat-value{margin:0;color:var(--text);font:700 1.55rem / 1.15 var(--serif);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat-note{margin:0;color:var(--muted);font-size:.8rem}.judge-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.judge-table th,.judge-table td{padding:8px 6px;text-align:left;border-bottom:1px solid #674831}.judge-table thead th{color:var(--muted);font-size:.7rem;letter-spacing:.08em;text-transform:uppercase}.judge-table .col-num{text-align:right}.judge-table tbody th{font-weight:700}.progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px 24px}.progress-title{margin:0 0 8px;color:var(--amber);font:700 .75rem var(--sans);letter-spacing:.12em;text-transform:uppercase}.progress-list{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}.progress-top{display:flex;justify-content:space-between;gap:8px;font-size:.95rem}.progress-name{font-weight:700;min-width:0;overflow-wrap:anywhere}.progress-count{font-variant-numeric:tabular-nums;white-space:nowrap}.progress-done{margin-right:8px;color:var(--amber);font-size:.7rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.progress-bar{height:10px;margin-top:3px;border:1px solid #674831;border-radius:2px;background:#17100c;overflow:hidden}.progress-fill{display:block;height:100%;background:linear-gradient(90deg,#b78a44,#e4c27b)}.progress-row.done .progress-fill{background:linear-gradient(90deg,#d8b45c,#ffd07a)}.badge-group+.badge-group{margin-top:16px}.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:0;padding:0;list-style:none}.badge{display:flex;align-items:center;gap:10px;min-height:84px;padding:8px 10px;border:1px solid #674831;border-radius:3px;background:#17100c80;min-width:0}.badge.earned{border-color:#ad8d58;border-left:3px solid var(--gold)}.badge.locked{border-style:dashed}.badge.locked .badge-frame{opacity:.45;filter:grayscale(1)}.badge.locked .badge-name{color:var(--muted)}.badge-frame{display:grid;flex:none;place-items:center;width:72px;height:64px;border-radius:3px;background:radial-gradient(circle,#5a3a2440,transparent 70%)}.badge-art{display:block;background-repeat:no-repeat}.badge-words{display:flex;flex-direction:column;min-width:0}.badge-state{color:var(--amber);font-size:.65rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.badge.locked .badge-state{color:var(--muted)}.badge-name{color:#ffdda0;font:700 1.02rem / 1.2 var(--serif)}.badge-how{color:var(--muted);font-size:.82rem;line-height:1.35}.run-list{margin:0;padding:0;list-style:none}.run-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #674831}.run-left,.run-right{display:flex;flex-direction:column;min-width:0}.run-right{flex:none;align-items:flex-end;text-align:right}.run-title{font-weight:700;overflow-wrap:anywhere}.run-when,.run-score{color:var(--muted);font-size:.85rem;font-variant-numeric:tabular-nums}.run-result{color:var(--amber);font-weight:700}.run-row.failed .run-result{color:var(--ember)}@media(min-width:900px){.profile-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto 1fr auto auto;grid-template-areas:"head head" "stats stats" "judge prog" "top prog" "badges badges" "recent recent"}.profile-header{grid-area:head}.profile-stats{grid-area:stats}.profile-judgements{grid-area:judge}.profile-progress{grid-area:prog}.profile-top{grid-area:top;align-self:start}.profile-badges{grid-area:badges}.profile-recent{grid-area:recent}.profile-empty{grid-column:1 / -1}.profile-progress .progress-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:520px){.profile{padding:12px 10px 24px}.profile-card,.profile-section{padding:14px 12px}.stat-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-value{font-size:1.3rem}.profile-share{flex-basis:100%}.badge-grid{grid-template-columns:minmax(0,1fr)}}.board-name{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:underline;text-decoration-color:#916c48;text-underline-offset:3px}.board-name:focus-visible{outline:3px solid var(--text);outline-offset:2px}@media(hover:hover){.board-name:hover{color:#ffdda0;text-decoration-color:var(--gold)}}.board-table tbody th.col-name{padding-block:0}.account-profile{display:flex;flex-direction:column;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--line)}.account-switch{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-switch-label{font-weight:700}.account-switch .btn-toggle[aria-checked=false]{border-color:#916c48;background:linear-gradient(#493221,#302016);color:var(--text)}.profile{max-width:1100px;padding:16px 20px 24px}.profile-body{display:flex;flex-direction:column;gap:12px}.profile-card,.profile-section{padding:14px 16px}.profile-header{gap:10px 20px;align-items:center}.profile-titles{flex-basis:220px}.profile-name{font-size:clamp(1.5rem,4.5vw,2rem)}.profile-facts{margin-top:7px;gap:5px 20px}.profile-fact{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 7px}.profile-fact dt{font-size:.72rem;letter-spacing:0;text-transform:none}.profile-fact dd{font-size:.8rem}.profile-share{flex:0 1 auto;flex-direction:row;flex-wrap:wrap;gap:6px}.profile-share .btn{padding:6px 10px;font-size:.8rem}.profile-share-status{flex-basis:100%;font-size:.75rem}.profile-private-note{margin:0;font-size:.78rem}.profile-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;border-bottom:1px solid #8c7249;padding:3px 0 0}.profile-tab{min-height:46px;padding:8px 6px;border:0;border-bottom:3px solid transparent;border-radius:3px 3px 0 0;background:transparent;color:var(--muted);font:700 .9rem var(--sans);cursor:pointer}.profile-tab:hover{background:#ffd07a0b;color:var(--text)}.profile-tab[aria-selected=true]{color:#ffdda0;border-bottom-color:var(--amber);background:linear-gradient(0deg,#ffd07a12,transparent)}.profile-tab:focus-visible,.profile-more:focus-visible,.profile-panel:focus-visible{outline:2px solid var(--amber);outline-offset:2px}.profile-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}.profile-panel[hidden],.profile [hidden]{display:none!important}.profile-panel>.profile-section{grid-area:auto;align-self:start}.profile-heading{margin-bottom:10px;font-size:1.15rem}.profile-note{font-size:.77rem;line-height:1.4;margin-top:8px}.profile .stat-tiles{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.profile .stat-tile{gap:3px;padding:9px 10px}.stat-primary{grid-column:span 3}.profile .stat-secondary{grid-column:span 2;padding:7px 4px;border:0;border-bottom:1px solid #674831;background:transparent}.profile .stat-label{font-size:.61rem;letter-spacing:.045em;line-height:1.35}.profile .stat-value{font-size:clamp(1.2rem,4vw,1.55rem)}.profile .stat-secondary .stat-value{font-size:1.05rem}.profile-disclosure>summary{min-height:44px;cursor:pointer;color:var(--amber);font-size:.8rem}.stat-definitions{margin-top:8px;border-top:1px solid #674831}.stat-definitions>summary{padding-top:10px}.stat-definitions dl{margin:0 0 6px;font-size:.78rem}.stat-definitions dl>div{margin-bottom:8px}.stat-definitions dt{color:var(--text);font-weight:700}.stat-definitions dd{margin:2px 0 0;color:var(--muted)}.profile .judge-table th,.profile .judge-table td{padding:6px 4px;font-size:.85rem}.profile .judge-table thead th{font-size:.62rem}.profile .progress-grid{grid-template-columns:minmax(0,1fr);gap:20px}.profile .progress-list{gap:10px}.profile .progress-top{font-size:.83rem}.profile .progress-bar{height:6px}.profile-more{display:block;width:100%;min-height:44px;margin-top:6px;padding:8px;color:var(--amber);font:700 .8rem var(--sans);border:1px solid #795736;border-radius:3px;background:#17100c40;cursor:pointer}.profile-more:hover{background:#ffd07a12}.profile .badge-group{margin-top:8px;border-top:1px solid #795736}.badge-group-heading{padding:12px 0}.badge-group-heading>span:first-child{font-weight:700}.badge-group-count{float:right;margin-left:8px;color:var(--muted);font-size:.72rem;font-variant-numeric:tabular-nums}.profile .badge-grid{grid-template-columns:minmax(0,1fr);gap:8px;padding-bottom:10px}.profile .badge{min-height:72px;padding:6px 8px;gap:8px}.profile .badge-name{font-size:.9rem}.profile .badge-how{font-size:.75rem}.profile .badge-state{font-size:.56rem}.profile .run-row{padding-block:8px;gap:8px;font-size:.85rem}.profile .run-score,.profile .run-when{font-size:.72rem}@media(min-width:700px){.profile-panel-overview{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.profile-panel-activity,.profile .progress-grid,.profile .badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.profile{padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.profile-card,.profile-section{padding:12px}.profile-body{gap:10px}.profile-share{flex-basis:100%}.profile-tab{font-size:.78rem}.profile .run-row{flex-wrap:wrap}.profile .run-left{flex:1 1 140px}.profile .run-right{margin-left:auto;max-width:100%}}.profile-tabs{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:#21170ff5}.profile .badge-group-heading{display:flex;align-items:center;gap:8px;list-style:none;padding:7px 0;min-height:54px}.badge-group-heading::-webkit-details-marker{display:none}.badge-group-heading:after{content:"+";color:var(--amber);font-size:1.15rem;flex:none}.badge-group[open]>.badge-group-heading:after{content:"−"}.profile .badge-group-count{float:none;margin-left:auto;white-space:nowrap}.badge-group-thumbnail{flex:none;display:grid;place-items:center;width:36px;height:32px}.badge-group-thumbnail .badge-art{flex:none;transform:scale(.5)}.badge-group-thumbnail{position:relative;display:block}.badge-group-thumbnail .badge-art{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.5)}@media(min-width:600px)and (max-width:699px){.profile .progress-grid,.profile .badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.hiscores{max-width:1100px;margin:0 auto;padding:16px 20px 24px}.hs-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:16px}.hs-cats{display:none}.hs-main{min-width:0;padding:14px 16px 16px;border:1px solid #ad8d58;border-top:3px solid var(--amber);border-radius:4px;background:linear-gradient(135deg,#4a3020,#291b12);box-shadow:inset 0 0 0 3px #17100c40}.hs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.hs-head-titles{min-width:0}.hs-head .details-kicker{display:block;margin-bottom:2px}.hs-search-toggle{display:none;flex:none;align-items:center;gap:6px}.hs-search-toggle[aria-expanded=true]{border-color:var(--amber);color:#ffdda0}.hs-glass{flex:none}.hs-title{margin:0;color:#ffdda0;font:700 clamp(1.4rem,4vw,1.9rem) / 1.15 var(--serif);overflow-wrap:anywhere}.hs-title:focus{outline:none}.hs-title:focus-visible{outline:2px solid var(--amber);outline-offset:3px}.hs-label{display:block;margin-bottom:4px;color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.hs-input,.hs-select{min-height:44px;min-width:0;padding:6px 10px;border:2px solid #916c48;border-radius:3px;background:#17100c;color:var(--text);font:700 1rem var(--sans)}.hs-input:focus-visible,.hs-select:focus-visible{outline:3px solid var(--text);outline-offset:2px}.hs-select{width:100%}.hs-select-row{display:flex;align-items:flex-end;gap:8px;margin-bottom:12px}.hs-select-wrap{flex:1 1 auto;min-width:0}.hs-select-row .hs-pick{flex:none}.hs-searches{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}.hs-search{min-width:0}.hs-search-row{display:flex;gap:8px}.hs-search-row .hs-input{flex:1 1 auto;width:100%}.hs-search-row .btn{flex:none}.hs-status{margin:10px 0 0;padding:8px 10px;border-left:3px solid var(--gold);background:#17100c80;font-size:.92rem}.hs-status[data-tone=bad]{border-left-color:var(--ember)}.hs-status:empty{display:none}.hs-mine{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:10px;color:#ffdda0;font-weight:700}.hs-mine:empty{display:none}.hs-results{margin-top:12px}.hs-table{table-layout:fixed}.hs-table .col-rank{width:4em}.hs-table .col-value,.hs-table .col-second{width:8.5em;text-align:right}.hs-table tbody th,.hs-table tbody td{padding-block:0;white-space:nowrap}.hs-table tbody th{font-weight:700;overflow-wrap:normal}.hs-table tbody .col-rank{background:#17100c59;color:#e9cf98;font:700 1rem var(--serif);font-variant-numeric:tabular-nums lining-nums;text-align:right;padding-right:10px}.hs-table thead .col-rank{text-align:right;padding-right:10px}.hs-table tbody .col-value{color:var(--text);font-weight:700}.hs-table tbody .col-second{color:var(--muted)}.hs-table tr.marked{background:#8a5a2a59;outline:2px solid var(--amber);outline-offset:-2px}.hs-name-line{display:flex;align-items:center;gap:6px;min-width:0;min-height:44px}.hs-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hs-you{flex:none;color:var(--amber);font-weight:400}.hs-tag{flex:none;padding:1px 6px;border:1px solid #916c48;border-radius:2px;color:var(--muted);font-size:.76rem;font-weight:700;line-height:1.2}.hs-tag-found{border-color:var(--amber);background:#17100c80;color:#ffdda0}.hs-tag-narrow{display:none}.hs-private-name{display:flex;align-items:center;gap:4px;min-width:0;color:var(--text)}.hs-table .board-name{display:flex;align-items:center;gap:4px;flex:0 1 auto;min-height:44px;min-width:44px;overflow:hidden;color:#ffdda0}.hs-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.hs-page-step{display:inline-flex;align-items:center;justify-content:center;min-width:96px;text-decoration:none}.hs-page-form{display:flex;align-items:center;gap:8px}.hs-page-form .hs-label{margin:0}.hs-page-input{width:4.5em;text-align:center}.hs-page-of{color:var(--muted);font-weight:700;white-space:nowrap}.hs-page-words{flex-basis:100%;margin:0;text-align:center}.topbar-hiscores{display:inline-flex;align-items:center;justify-content:center;flex:none;text-decoration:none}.topbar-hiscores[aria-current=page]{border-color:var(--gold);border-width:2px;color:#ffdda0}.hs-picker .board-card{gap:8px}.hs-picker-count{margin:0;color:var(--muted);font-size:.85rem}.hs-picker-list{padding-bottom:8px}.hs-picker-region{margin:12px 0 4px;color:#f6d488;font:700 1rem var(--serif)}.hs-picker-songs{list-style:none;margin:0;padding:0}.hs-picker-song{display:flex;align-items:center;min-height:44px;padding:4px 10px;border-bottom:1px solid #674831;color:var(--text);text-decoration:none;overflow-wrap:anywhere}.hs-picker-song:hover{background:#ffd07a12}.hs-picker-song:focus-visible{outline:3px solid var(--text);outline-offset:-3px}.hs-picker-song[aria-current=page]{border-left:4px solid var(--amber);font-weight:700;color:#ffdda0}@media(min-width:640px){.hs-searches{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:900px){.hs-layout{grid-template-columns:230px minmax(0,1fr);align-items:start}.hs-cats{display:block;position:sticky;top:8px;max-height:calc(100dvh - 16px);overflow-y:auto;padding:10px 10px 14px;border:1px solid #ad8d58;border-radius:4px;background:#21170fcc}.hs-cats-narrow{display:none}.hs-cat-group+.hs-cat-group{margin-top:12px}.hs-cat-heading{margin:0 0 4px;padding:0 8px;color:var(--muted);font:700 .72rem var(--sans);letter-spacing:.08em;text-transform:uppercase}.hs-cat-list{list-style:none;margin:0;padding:0}.hs-cat{display:flex;align-items:center;min-height:44px;padding:4px 8px 4px 12px;border-left:4px solid transparent;color:var(--text);text-decoration:none;overflow-wrap:anywhere}.hs-cat:hover{background:#ffd07a12}.hs-cat:focus-visible{outline:3px solid var(--text);outline-offset:-3px}.hs-cat[aria-current=page]{border-left-color:var(--amber);background:#6c4a2459;color:#ffdda0;font-weight:700}.hs-cats .hs-pick{width:100%;margin-top:6px}}@media(max-width:639px){.hiscores{padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.hs-main{padding:10px 10px 12px}.hs-head{align-items:center;margin-bottom:10px}.hs-head .details-kicker{display:none}.hs-search-toggle{display:inline-flex}.hs-cats-narrow .hs-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.hs-select-row{align-items:stretch;margin-bottom:0}.hs-select-row .hs-pick{padding-inline:12px}.hs-searches{display:none;margin-top:10px;padding:10px;border:1px solid #674831;border-radius:3px;background:#17100c66}.hs-main.search-open .hs-searches{display:grid}.hs-results{margin-top:10px}.hs-table{font-size:.92rem}.hs-table .col-second{display:none}.hs-table .col-rank{width:2.9em}.hs-table .col-value{width:6.6em}.hs-table th,.hs-table td{padding-inline:5px}.hs-table .col-name{padding-left:10px}.hs-table thead th{white-space:nowrap;letter-spacing:.04em}.hs-table tbody .col-rank{padding-right:7px;font-size:.95rem}.hs-table thead .col-rank{padding-right:7px}.hs-tag-more,.hs-tag-wide{display:none}.hs-tag-narrow{display:inline}.hs-page-step{min-width:80px;padding-inline:10px}}@media(prefers-reduced-motion:no-preference)and (max-width:639px){.hs-main.search-open .hs-searches{animation:hs-unfold .16s ease-out}}@keyframes hs-unfold{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@media(max-width:480px){.topbar{gap:6px}.topbar .btn-small{padding-inline:8px;font-size:.9rem}.topbar .account-btn{max-width:96px}.hs-pager{display:grid;grid-template-columns:1fr 1fr}.hs-pager .hs-page-step:first-child{grid-column:1;grid-row:1}.hs-pager .hs-page-step:nth-child(3){grid-column:2;grid-row:1}.hs-page-form{grid-column:1 / -1;grid-row:2;justify-content:center}.hs-page-words{grid-column:1 / -1}}.topbar>.btn{flex:none}.hs-picker .hs-input{width:100%}
