:root{
  --ink:#263d31; --pine:#234e3b; --deep:#183c2b; --soft:#556457; --paper:#faf8ef; --surface:#fffef7;
  --edge:#dcdccc; --muted-ink:#536153; --honey:#f2cb6a;
  --sans:"DM Sans","PingFang TC","Noto Sans TC","Noto Sans CJK TC","Microsoft JhengHei",system-ui,sans-serif;
  color-scheme:light; font-family:var(--sans); color:var(--ink); background:var(--paper);
  -webkit-text-size-adjust:100%; font-synthesis:weight;
}
*{box-sizing:border-box}
body{margin:0;min-width:280px;background-color:var(--paper);background-image:radial-gradient(rgba(76,68,39,.07) .55px,transparent .8px);background-size:5px 5px}
button,input,summary{font:inherit}
button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button{color:inherit;cursor:pointer}
button[disabled]{cursor:default}
a{color:inherit;text-decoration:none}
p,h1,h2,h3{margin:0}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a65b17;outline-offset:4px}
#main:focus,#question-title:focus{outline:0}
[hidden]{display:none!important}
.icon-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;display:inline-block;vertical-align:middle}
.limit{width:min(1184px,calc(100% - 104px));margin-inline:auto}
.skip-link{position:absolute;top:-100px;left:10px;padding:10px;background:var(--surface);z-index:10}
.skip-link:focus{top:7px}
.site-header{background:#fbf9f0;border-bottom:1px solid #d9dccd}
.header-inner{min-height:81px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:22px}
.brand{display:inline-flex;align-items:center;gap:10px;width:max-content;white-space:nowrap}
.brand>img{width:44px;height:44px;box-shadow:0 2px 0 #d3d3b8;border-radius:14px}
.brand span{display:flex;flex-direction:column}
.brand strong{font-size:22px;line-height:1.25;letter-spacing:.055em;font-weight:850;color:#243f31}
.brand small{font:800 9px/1.5 "DM Sans",Arial,sans-serif;letter-spacing:.16em;color:#5f735d;margin-top:1px}
.primary-nav{display:flex;align-self:stretch;align-items:stretch;gap:27px}
.primary-nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:650;font-size:15px;color:#647065;white-space:nowrap;padding:1px 3px 0}
.primary-nav a[aria-current]{color:var(--pine);font-weight:800}
.primary-nav a[aria-current]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--pine);border-radius:3px 3px 0 0}
.primary-nav .icon{width:18px;height:18px}
.utilities{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.circle-button,.profile,.outline-btn,.guide-btn,.primary-btn,.mode-switch button,.text-link,.hint-button,.back-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:750}
.circle-button,.profile{border:1px solid #d5d9ca;background:#fffef7}
.circle-button{width:41px;height:41px;border-radius:50%;padding:0;color:#3c5341}
.circle-button:hover,.profile:hover{background:#f0f2e5;border-color:#b6c4ac}
.profile-wrap{position:relative}
.profile{border-radius:23px;min-height:42px;padding:4px 11px 4px 5px;gap:7px;font-size:14px;font-weight:750}
.profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.profile .profile-name{max-width:clamp(56px,18vw,132px)}
.profile.empty{padding-inline:10px}
.collection-top .hero-label,.badge-mode h2,.result-card p{overflow-wrap:anywhere}
.avatar{width:30px;height:30px;display:inline-grid;place-items:center;flex:none;border-radius:50%;font:800 15px/1 "DM Sans",Arial,sans-serif;border:1px solid #c69e5d;background:#f5d18d;color:#6b451b}
.avatar.zenith{background:#e3d5ed;border-color:#b4a0c1;color:#62436f}
.chevron{width:14px;height:14px}
.profile-menu{position:absolute;z-index:8;right:0;top:calc(100% + 9px);width:183px;max-height:min(350px,60vh);overflow-y:auto;padding:8px;background:var(--surface);border:1px solid #b8c5b3;border-radius:15px;box-shadow:0 8px 24px #29442b29}
.menu-title{padding:6px 8px;color:var(--soft);font-size:12px;font-weight:700}
.profile-menu button{display:flex;align-items:center;gap:9px;width:100%;padding:8px 6px;background:none;border:0;border-radius:8px;text-align:left;font-size:15px;font-weight:750}
.profile-menu button[aria-pressed=true],.profile-menu button:hover{background:#edf2e4}
.profile-menu button .icon{margin-left:auto;width:16px}
.main-content{padding-top:28px;min-height:calc(100vh - 197px)}
.hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:clamp(290px,25vw,340px);border:1px solid #677c5f;border-radius:22px;background:#dce5bf;box-shadow:0 3px 0 #31482b1c}
.hero-art{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 51%;user-select:none;pointer-events:none}
.hero-copy{position:relative;max-width:55%;padding:35px clamp(28px,3.7vw,56px) 37px}
.hero-label,.station-ticket,.tag{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;font-weight:750}
.hero-label{font-size:12px;line-height:1.5;letter-spacing:.035em;background:rgba(255,253,231,.78);border:1px solid #a4b395;color:#375942;border-radius:30px;padding:5px 11px 5px 8px}
.hero-label .icon{width:16px;height:16px}
.hero h1{font-size:clamp(42px,4.15vw,65px);line-height:1.2;font-weight:900;letter-spacing:.005em;color:#1d422f;margin:12px 0 10px;white-space:nowrap}
.hero p{font-size:clamp(16px,1.25vw,18px);font-weight:550;line-height:1.73;letter-spacing:.035em;color:#37523c}
.hero-actions{margin-top:22px;display:flex;align-items:center;gap:12px}
.primary-btn,.outline-btn,.guide-btn{border-radius:11px;min-height:45px;font-size:15px;line-height:1.4;padding:10px 19px;white-space:nowrap}
.primary-btn{background:var(--pine);color:#fffef4;border:1px solid #193f2c;box-shadow:0 2px 0 #1b3b2840}
.primary-btn:hover{background:#173d29}
.primary-btn:active,.outline-btn:active{transform:translateY(1px)}
.primary-btn .icon{width:17px;height:17px}
.guide-btn{background:rgba(255,253,233,.64);border:1px solid #8eaa80;color:#33523a}
.guide-btn:hover{background:#faf9df}
.guide-btn .icon{width:17px;height:17px}
.stations{margin:32px 0 0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
.heading-line{display:flex;align-items:center;gap:10px}
.section-icon,.field-icon{width:35px;height:35px;display:inline-grid;place-items:center;border-radius:11px;background:#e6ead6;color:#425d3f;border:1px solid #cbd5b6}
.section-icon .icon{width:21px;height:21px}
h2{font-weight:850;letter-spacing:.025em;font-size:clamp(23px,2vw,30px);line-height:1.4}
.section-head p{font-size:14px;color:var(--soft);margin-top:6px;letter-spacing:.035em;line-height:1.65}
.mode-switch{display:inline-flex;align-items:stretch;background:#efefdf;border:1px solid #d8dccb;padding:4px;border-radius:24px;gap:2px;flex:none}
.mode-switch button{font-size:13px;line-height:1.25;padding:8px 14px;border-radius:18px;color:#546451;border:1px solid transparent;background:transparent;gap:5px;white-space:nowrap}
.mode-switch button[aria-pressed=true]{background:var(--pine);border-color:var(--pine);color:#fffdf0;box-shadow:0 1px 2px #152d1d1c}
.mode-switch button[aria-pressed=false]:hover{background:#e1e7d4}
.mode-switch .icon{width:16px;height:16px}
.station-grid,.badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.theme-melody{--tint:#e6efdc;--accent:#3b6742;--outline:#c3d2b7;--pict-pos:54%}
.theme-rhythm{--tint:#fbebc6;--accent:#805421;--outline:#e4cfa3;--pict-pos:52%}
.theme-composers{--tint:#eee6f2;--accent:#725480;--outline:#d8c6dd;--pict-pos:31%}
.station-card{display:flex;flex-direction:column;border:1px solid #cdd0bd;border-radius:16px;background:var(--surface);overflow:hidden;box-shadow:0 3px 0 #cecdb333;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;min-width:0}
.station-card:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 6px 0 #b1b79e45}
.card-picture,.aside-art{position:relative;overflow:hidden;background:var(--tint)}
.card-picture{aspect-ratio:2.48/1;border-bottom:1px solid #403b201a}
.card-picture img,.aside-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% var(--pict-pos)}
.station-ticket{position:absolute;left:12px;top:12px;font-size:12px;line-height:1.2;letter-spacing:.035em;background:#fffbee;color:#334a35;padding:5px 9px;border-radius:7px;box-shadow:0 1px 3px #1c34242b;border:1px solid #bcbda27a}
.station-ticket .icon{width:13px;height:13px}
.card-info{padding:15px 19px 14px;display:flex;flex-direction:column;flex:1}
.tag{font-size:11.5px;line-height:1.35;color:var(--accent);background:var(--tint);border-radius:6px;padding:3px 7px;letter-spacing:.04em;gap:4px}
.tag .icon{width:13px;height:13px}
.card-info h3,.badge-card h3{font-size:clamp(21px,1.65vw,25px);font-weight:850;letter-spacing:.03em;line-height:1.4;margin:7px 0 3px}
.card-info p{font-size:14px;line-height:1.65;color:var(--soft);letter-spacing:.01em}
.card-action{display:flex;align-items:center;justify-content:space-between;color:var(--accent);font-size:13px;font-weight:750;margin-top:auto;padding-top:15px}
.card-action i{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--tint);border:1px solid var(--outline);font-style:normal}
.card-action .icon{width:15px;height:15px}
.pocket{margin-top:25px;border:1px dashed #bcc9ab;background:#efF1e3;border-radius:14px}
.pocket summary{display:flex;align-items:center;gap:11px;cursor:pointer;padding:13px 19px;list-style:none}
.pocket summary::-webkit-details-marker{display:none}
.pocket-mark{display:grid;place-items:center;width:33px;height:33px;background:#e0e7d0;border-radius:9px;color:#466444;flex:none}
.pocket summary strong{font-size:16px;font-weight:800}
.pocket-intro,.piano-info{font-size:13px;color:var(--soft)}
.pocket-toggle{margin-left:auto;display:grid;place-items:center;width:27px;height:27px}
.pocket-toggle .icon{width:17px;height:17px}
.pocket[open] .pocket-toggle{transform:rotate(180deg)}
.piano-interior{border-top:1px solid #d7dfc9;padding:17px 22px 22px}
.piano-info{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-weight:600}
.piano-info output{color:var(--pine);font-weight:800}
.piano{display:flex;position:relative;border:2px solid #39503d;border-radius:8px;overflow:hidden;background:#39503d;isolation:isolate}
.piano button{touch-action:manipulation;user-select:none;-webkit-user-select:none}
.key-light{position:relative;display:flex;flex:1;min-width:0;flex-direction:column;justify-content:flex-end;align-items:center;gap:1px;height:118px;border:0;border-bottom:4px solid #cdcdbb;background:#fffef3;padding:0 0 7px}
.key-light+.key-light{border-left:1px solid #667368}
.key-light small{font:600 10px/1.3 Arial,sans-serif;color:#69766c}
.key-dark{position:absolute;width:7.6%;height:58%;background:#283f34;border:1px solid #142a20;border-bottom:5px solid #132c20;border-radius:0 0 5px 5px;transform:translateX(-50%);top:0}
.key-light.pressed{background:#e7cf86}
.key-dark.pressed{background:#7c7541}
.key-light:focus-visible,.key-dark:focus-visible{outline-offset:-3px;outline-color:#ebaa40}
.site-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px dashed #d3d8c6;padding:18px 0 23px;margin-top:30px;font-size:12px;color:#647363}
.footer-brand{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:750}
.footer-brand img{opacity:.87}
.back-link{width:max-content;justify-content:flex-start;font-size:14px;color:#48634d;margin:0 0 18px;min-height:32px}
.back-link .icon{width:17px;height:17px}
.back-link:hover,.text-link:hover{text-decoration:underline}
.game-grid{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(410px,1.65fr);gap:24px;align-items:start;margin-bottom:38px}
.trail-aside,.question-card,.badge-card,.result-card{border:1px solid #ced5c3;background:var(--surface);border-radius:19px;box-shadow:0 3px 0 #cccdb033}
.trail-aside{overflow:hidden}
.aside-art{height:176px}
.aside-body{padding:22px}
.aside-body h2{margin:7px 0}
.aside-body>p{color:var(--soft);font-size:15px;line-height:1.65}
#round-progress{margin:24px 0 15px}
.progress-meta,.aside-player{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;color:var(--soft)}
.progress-meta{justify-content:space-between}
.step-track{display:flex;gap:5px;margin-top:8px}
.step-track i{height:7px;flex:1;border-radius:9px;background:#e6e9da}
.step-track i.filled{background:var(--accent)}
.aside-player{border-top:1px dashed #d6ddcb;padding-top:16px}
.aside-player .avatar{width:25px;height:25px;font-size:12px}
.aside-player .profile-name{max-width:110px}
.question-card{padding:clamp(22px,3vw,40px);scroll-margin-top:12px}
.question-meta,.beat-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}
.question-meta{font-size:13px;color:var(--muted-ink);font-weight:700}
.question-meta>span:first-child,.beat-meta>span:first-child{display:inline-flex;align-items:center;gap:6px}
.question-meta>span:first-child{background:var(--tint);color:var(--accent);border-radius:18px;padding:5px 9px}
.question-meta .icon,.beat-meta .icon{width:15px;height:15px}
.question-card h1{font-size:clamp(25px,2.3vw,36px);line-height:1.43;font-weight:850;margin:20px 0 6px;letter-spacing:.015em}
.instruction{color:var(--soft);font-size:16px;line-height:1.76;margin-bottom:21px}
.listen-panel{display:flex;align-items:center;width:100%;gap:13px;padding:15px 17px;border:1px solid var(--outline);border-radius:13px;background:var(--tint);color:var(--accent);text-align:left}
.listen-play,.pad-symbol{display:grid;place-items:center;flex:none;border-radius:50%;background:var(--accent);color:#fffdf2}
.listen-play{width:42px;height:42px}
.listen-play .icon{width:18px;height:18px}
.listen-txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.listen-txt strong{font-size:16px;line-height:1.4}
.listen-txt small{font-size:12px;color:var(--accent)}
.wave{margin-left:auto;display:flex;gap:3px;align-items:center;height:30px;opacity:.68}
.wave i{display:block;width:3px;height:var(--h);background:var(--accent);border-radius:6px}
.playing .wave i{animation:wave .55s ease-in-out infinite alternate}
.playing .wave i:nth-child(even){animation-delay:-.3s}
@keyframes wave{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
.choices{display:grid;gap:9px;margin:18px 0 9px}
.choice{display:flex;align-items:center;gap:11px;background:#fbfaf1;border:1px solid #d4d8c9;border-radius:11px;text-align:left;padding:10px 13px;min-height:48px;font-size:16px;font-weight:650}
.choice:not(:disabled):hover{border-color:var(--accent);background:var(--tint)}
.choice-letter{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:7px;background:#eaece0;color:#4a5d48;font:700 12px/1 "DM Sans",Arial,sans-serif}
.choice-mark{margin-left:auto}
.choice-mark .icon{width:18px;height:18px}
.choice.correct{border-color:#72966c;background:#e6f0db;color:#294f2d}
.choice.retry{background:#f7eee1;border-color:#d7bd9c;color:#795839}
.choice[disabled]{opacity:1}
.hint-button,.text-link{padding:7px 0;min-height:39px;border:0;color:var(--accent,var(--pine));background:transparent;font-size:14px}
.hint-button .icon,.text-link .icon{width:17px;height:17px}
.hint-box{padding:11px 14px;background:#faf0d5;color:#654e2d;border-radius:9px;font-size:14px;line-height:1.75}
.feedback:empty{display:none}
.feedback{margin-top:17px;border:1px solid #c1d0b5;border-radius:12px;padding:15px;background:#ecf2e2}
.feedback.try{background:#fff2d8;border-color:#ead4a5}
.feedback-row{display:flex;gap:9px;align-items:flex-start}
.feedback-row>.icon{width:20px;height:20px;margin-top:3px;flex:none}
.feedback-row strong{font-size:16px}
.feedback-row p{font-size:15px;line-height:1.72;margin:4px 0 0}
.credit{display:block;font-size:12px;color:#53694e;line-height:1.65;margin-top:7px}
.credit a{display:inline-block;text-decoration:underline;text-underline-offset:2px}
.next{margin-top:12px}
.beat-meta{justify-content:flex-start;gap:8px;font-size:13px;font-weight:750;color:var(--accent);margin-bottom:9px}
.beat-meta>span{padding:4px 9px;border-radius:7px;background:var(--tint)}
.beat-strip{display:flex;align-items:stretch;gap:8px}
.beat-cell{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:space-between;gap:6px;padding:9px 2px;background:#f6f4e7;border:2px solid #e0deca;border-radius:12px;text-align:center}
.beat-cell>span{font-size:12px;color:#605e49}
.beat-cell>strong{font-size:13px}
.beat-dots{display:flex;align-items:center;justify-content:center;gap:8px;height:18px;font:700 15px/1.2 Arial,sans-serif;color:#86622e}
.beat-dots i{display:block;width:9px;height:9px;border:1.5px solid currentColor;border-radius:50%;background:#fff9dd}
.beat-cell.rest{border-style:dashed}
.beat-cell.current{background:#ffdf89;border-color:#77501f}
.beat-cell.current.rest{background:#f4eee2;border-color:#785b35}
.beat-cell.counting{background:#e1ecd7;border-color:#54805a}
.beat-cell.current:not(.counting):not(.offbeat) .beat-dots i:first-child,.beat-cell.offbeat .beat-dots i:nth-child(2){background:#294f39;border-color:#294f39;transform:scale(1.35)}
.rhythm-commands,.result-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rhythm-commands{margin-top:16px}
.outline-btn{color:#3d5941;border:1px solid #aebfa8;background:#fffef4}
.outline-btn:hover{background:#eff3e6}
.outline-btn .icon{width:17px;height:17px}
.rhythm-commands button:disabled{opacity:.58}
.rhythm-status{font-size:14px;color:#685535;line-height:1.65;font-weight:650;margin:15px 0 8px;min-height:24px}
.tap-pad{touch-action:none;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:86px;user-select:none;-webkit-user-select:none;background:#f6e4b8;color:#66471f;border:2px solid #c8aa72;border-radius:13px;box-shadow:0 3px 0 #d6c5a1}
.tap-pad.live{background:#ffe19b;border-color:#85632c}
.tap-pad.quiet{border-style:dashed;background:#edeadb;color:#5c594a}
.tap-pad.struck{background:#e8bd65;box-shadow:inset 0 2px 0 #a78442}
.pad-symbol{width:43px;height:43px;background:#8c6632}
.pad-symbol .icon{width:25px;height:25px}
.tap-pad>span:nth-child(2){display:flex;align-items:flex-start;flex-direction:column}
.tap-pad strong{font-size:18px}
.tap-pad small{font-size:12px;margin-top:2px}
.collection-top{position:relative;overflow:hidden;border:1px solid #bac9ad;border-radius:19px;padding:28px clamp(20px,4vw,49px);background:#e8edda}
.collection-top:after{content:"♫";position:absolute;right:8%;top:50%;transform:translateY(-50%) rotate(-10deg);font:700 135px/1 Georgia,serif;color:#cedcbd;pointer-events:none}
.collection-top>*{position:relative;z-index:1}
.collection-top h1,.result-card h1{font-weight:880;letter-spacing:.025em;line-height:1.3}
.collection-top h1{font-size:clamp(32px,3.8vw,52px);margin:10px 0 5px}
.collection-top p,.result-card p{color:var(--soft);font-size:16px;line-height:1.72}
.collection-progress{display:flex;align-items:center;gap:11px;margin-top:14px}
.collection-progress strong{font-size:14px;letter-spacing:.04em}
.track{height:8px;width:120px;background:#cedabd;border-radius:8px;overflow:hidden}
.track i{display:block;height:100%;border-radius:inherit;background:var(--pine)}
.badge-mode{margin:24px 0 14px}
.badge-card{display:flex;align-items:center;flex-direction:column;padding:25px 15px 12px;text-align:center}
.stamp{position:relative;display:grid;place-items:center;width:97px;height:97px;flex:none;border-radius:50%;background:var(--tint);border:2px solid var(--accent);color:var(--accent);box-shadow:2px 3px 0 var(--outline);transform:rotate(-5deg)}
.stamp-ring{position:absolute;inset:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:50%;border:1.5px dashed currentColor}
.stamp-ring>.icon{width:34px;height:34px;stroke-width:1.7}
.stamp-stars{font:700 10px/1 Georgia,serif}
.stamp-lines{height:5px;width:20px;border-top:1.5px solid;border-bottom:1.5px solid}
.stamp.unearned{color:#818574;background:#efefe4;border-color:#b1b5a2;box-shadow:2px 3px 0 #dbddcd}
.stamp.large{width:122px;height:122px;margin:24px auto 18px}
.stamp.large .stamp-ring>.icon{width:49px;height:49px}
.badge-card h3{margin:15px 0 2px}
.badge-card p{color:var(--soft);font-size:14px}
.badge-levels{display:flex;gap:6px;margin:12px 0 8px}
.badge-levels span{display:inline-flex;align-items:center;gap:4px;background:#f0f0e5;border:1px solid #dcdece;border-radius:13px;font-size:12px;padding:3px 8px;color:#69715f}
.badge-levels .done{color:var(--accent);border-color:var(--outline);background:var(--tint)}
.badge-levels .icon{width:13px;height:13px}
.badge-card .text-link{border-top:1px dashed #d6dbc9;width:100%}
.saved-note{display:flex;align-items:center;gap:7px;color:var(--soft);font-size:13px;margin-top:20px}
.saved-note .icon{width:16px;height:16px}
.result-wrap{display:grid;place-items:center;min-height:60vh}
.result-card{text-align:center;width:min(600px,100%);padding:clamp(26px,5vw,58px) 22px;background:var(--surface)}
.result-card h1{font-size:clamp(26px,3vw,38px);margin:0 0 8px}
.result-actions{justify-content:center;margin-top:23px}
dialog{width:min(440px,calc(100% - 28px));max-height:88vh;overflow:auto;padding:23px;border:1px solid #afbda3;border-radius:19px;background:var(--surface);color:var(--ink);box-shadow:0 18px 70px #19301f42}
dialog::backdrop{background:rgba(26,43,29,.44)}
.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}
.dialog-top .circle-button{width:34px;height:34px}
#player-help{color:var(--soft);line-height:1.6}
#player-form{display:grid;gap:10px;margin-top:18px}
#player-form label{font-weight:750}
#player-name{width:100%;border:1px solid #9daa94;border-radius:10px;background:var(--paper);color:var(--ink);padding:10px 12px;font-size:16px}
#player-name:focus-visible{outline:2px solid var(--pine);outline-offset:2px}
#player-error{color:#983726;font-size:14px}
.guide-steps{padding:0;margin:18px 0 22px;list-style:none;counter-reset:guide}
.guide-steps li{counter-increment:guide;position:relative;padding-left:36px;margin-top:15px}
.guide-steps li:before{content:counter(guide);position:absolute;left:0;top:1px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e4ecd6;color:var(--pine);font-weight:800;font-size:13px}
.guide-steps strong,.guide-steps span{display:block}
.guide-steps strong{font-size:16px;margin-bottom:3px}
.guide-steps span{font-size:14px;color:var(--soft);line-height:1.7}
.wide{width:100%}
.toast{position:fixed;z-index:10;left:50%;bottom:max(21px,env(safe-area-inset-bottom));transform:translate(-50%,7px);opacity:0;color:#fffef5;background:#284734;box-shadow:0 3px 13px #1f36252e;border-radius:12px;padding:10px 16px;font-size:14px;text-align:center;max-width:calc(100% - 24px);width:max-content;pointer-events:none;transition:opacity .18s,transform .18s}
.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1550px){.limit{width:min(1260px,calc(100% - 120px))}.hero{min-height:360px}.main-content{padding-top:34px}.hero-copy{padding-left:60px}}
@media(max-width:1050px){
  .limit{width:calc(100% - 64px)}.primary-nav{gap:20px}.header-inner{gap:14px;min-height:73px}
  .card-info{padding:13px 14px}.station-grid,.badge-grid{gap:15px}.card-info h3{font-size:22px}.card-info p{font-size:13px}
  .hero h1{font-size:clamp(38px,5.1vw,54px)}.hero-copy{padding-left:34px;max-width:58%}
  .game-grid{gap:18px}.aside-body{padding:17px}.aside-art{height:150px}
}
@media(max-width:760px){
  .limit{width:calc(100% - 36px)}.header-inner{gap:10px}
  .brand strong{font-size:19px}.brand>img{width:38px;height:38px}.brand{gap:7px}.brand small{font-size:8px}
  .primary-nav{gap:11px}.primary-nav a{font-size:13px;gap:4px}.primary-nav .icon{width:16px;height:16px}
  .utilities{gap:7px}.circle-button{width:37px;height:37px}.profile{min-height:38px}.avatar{width:27px;height:27px}
  .main-content{padding-top:18px}.hero{min-height:258px;border-radius:17px}.hero-copy{padding:24px 21px}.hero h1{font-size:clamp(36px,5.8vw,44px)}.hero p{font-size:15px}.hero-actions{margin-top:17px;gap:7px}
  .guide-btn,.primary-btn,.outline-btn{padding:9px 13px;font-size:14px;min-height:42px}.hero-label{font-size:11px}
  .station-grid,.badge-grid{gap:10px}.station-ticket{left:8px;top:8px;padding:4px 7px;font-size:11px}
  .card-info{padding:11px 12px}.card-info h3{font-size:20px}.card-action{padding-top:10px}.card-picture{aspect-ratio:1.87}
  .section-head p{font-size:13px}.section-icon{width:31px;height:31px}.mode-switch button{padding:7px 10px}
  .game-grid{grid-template-columns:1fr;gap:13px}.trail-aside{display:flex;max-height:120px}.aside-art{width:120px;height:auto;min-height:100%;flex:none}
  .aside-body{display:grid;grid-template-columns:1fr auto;column-gap:10px;align-content:center;align-items:center;padding:12px 17px;width:100%}
  .aside-body .tag,.aside-body>p{display:none}.aside-body h2{font-size:21px;margin:0;grid-column:1}.aside-player{border:0;padding:0;grid-row:1;grid-column:2;font-size:12px;gap:5px}
  #round-progress{grid-column:1/-1;margin:8px 0 0}.progress-meta{font-size:11.5px}.step-track{margin-top:5px}
}
@media(max-width:620px){
  .header-inner{grid-template-columns:1fr auto;column-gap:8px;row-gap:0;min-height:0;padding-top:10px}
  .brand{grid-column:1;grid-row:1}.utilities{grid-column:2;grid-row:1}
  .primary-nav{grid-column:1/-1;grid-row:2;justify-self:start;margin-top:6px;min-height:36px;gap:20px}
  .primary-nav a{font-size:13px;padding:0 3px 5px;gap:6px}.brand strong{font-size:18px}.brand small{letter-spacing:.12em}
  .hero{display:block}.hero-copy{max-width:70%}.hero-label{font-size:10.5px;padding:4px 7px}.hero-label .icon{width:14px;height:14px}
  .hero h1{font-size:clamp(34px,7vw,43px);margin:10px 0 6px}.hero p{font-size:14px}
  .stations{margin-top:24px}.section-head{align-items:center;gap:9px;margin-bottom:12px;flex-wrap:wrap}.section-head p{font-size:13px}.section-head .mode-switch{margin-left:auto}
  .heading-line{gap:7px}.section-head h2{font-size:23px}.mode-switch .icon{width:14px;height:14px}.mode-switch{padding:3px}.mode-switch button{font-size:12px;padding:6px 9px}
  .station-grid,.badge-grid{grid-template-columns:1fr;gap:15px}.card-picture{aspect-ratio:2.8/1}.card-info{padding:13px 17px 14px}.card-info h3{font-size:23px;margin-top:6px}.card-info p{font-size:14px}
  .card-action{padding-top:9px}.card-action i{width:28px;height:28px}.station-ticket{top:10px;left:11px}
  .pocket{margin-top:19px}.pocket summary{padding:11px 13px}.pocket-intro{display:none}.piano-interior{padding:12px}.key-light{height:99px}
  .site-footer{margin-top:22px;padding:15px 0;font-size:10px}.footer-brand{font-size:12px}
  .back-link{margin-bottom:8px}.question-card{padding:17px}.question-card h1{font-size:25px;margin-top:14px}.instruction{font-size:15px;margin-bottom:16px}
  .aside-art{width:75px}.aside-body{padding:10px 12px}.aside-art .station-ticket{font-size:10px;left:4px;top:4px;gap:3px;padding:3px 4px}.aside-art .station-ticket .icon{width:11px;height:11px}
  .aside-body h2{font-size:18px}.aside-player{font-size:11px}.aside-player .avatar{display:none}.trail-aside,.question-card{border-radius:14px}
  .collection-top{padding:20px 17px}.collection-top:after{font-size:93px;right:3%;opacity:.72}.collection-top p{max-width:80%;font-size:14px}
  .badge-card{display:grid;grid-template-columns:80px 1fr;justify-items:start;text-align:left;column-gap:17px;padding:16px}
  .badge-card .stamp{grid-column:1;grid-row:1/5;width:76px;height:76px}.badge-card h3{font-size:21px;margin:0}
  .badge-card .badge-levels{margin:7px 0 3px}.badge-card .text-link{grid-column:2;border:0;width:auto;min-height:32px;padding:2px 0}
}
@media(max-width:480px){
  .limit{width:calc(100% - 28px)}.hero{min-height:317px}.hero-art{inset:auto 0 0 auto;width:130%;height:69%;object-position:74% 51%;-webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 24%);mask-image:linear-gradient(to bottom,transparent 0%,#000 24%)}
  .hero:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:linear-gradient(180deg,#dee6be 0%,#dee6be 27%,rgba(222,230,190,.86) 34%,rgba(222,230,190,0) 52%),linear-gradient(90deg,rgba(222,230,190,.92) 2%,rgba(222,230,190,.67) 34%,rgba(222,230,190,0) 63%)}
  .hero-copy{padding:20px 16px;max-width:100%;pointer-events:none}.hero-copy button,.hero-copy a{pointer-events:auto}
  .hero h1{font-size:36px;line-height:1.22;margin:8px 0 5px}.hero p{font-size:14px;line-height:1.6;max-width:250px}
  .hero-actions{margin-top:14px;flex-direction:column;align-items:flex-start;gap:6px}.hero-actions .primary-btn,.hero-actions .guide-btn{font-size:13px;min-height:38px;padding:8px 11px;gap:6px}.hero-actions .guide-btn{background:rgba(255,253,233,.82)}
  .section-head{display:grid;grid-template-columns:1fr auto;align-items:start;column-gap:6px;row-gap:6px}
  .section-head>div:first-child:not(.mode-switch){display:contents}.heading-line{grid-column:1;grid-row:1;align-self:center}.section-head p{grid-column:1/-1;grid-row:2;margin:0}.section-head .mode-switch{grid-column:2;grid-row:1;align-self:center}
  .card-picture{aspect-ratio:2.45}.beat-strip{gap:4px}.beat-cell>strong{font-size:12px}.beat-cell>span{font-size:11px}
  .question-meta{font-size:12px}.wave{gap:2px}.listen-panel{padding:12px;gap:8px}.listen-play{width:34px;height:34px}
  .choice{font-size:15px}.listen-txt strong{font-size:14px}.rhythm-commands{gap:7px}.rhythm-commands button{flex:1;padding:8px}
  .pocket summary{gap:8px}.piano-info{font-size:12px}.saved-note{align-items:flex-start}.stamp.large{width:99px;height:99px}
}
@media(max-width:340px){
  .header-inner{column-gap:3px}.utilities{gap:4px}.brand strong{font-size:16px}.brand img{width:34px;height:34px}.profile{padding-right:6px;gap:4px}.circle-button{width:33px;height:33px}
  .hero-copy{padding-left:12px}.hero h1{font-size:31px}.aside-player{display:none}.rhythm-commands{flex-direction:column;align-items:stretch}
  .wave{display:none}.mode-switch button{padding:5px 6px}.section-head h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:620px){.utilities .circle-button{width:42px;height:42px}.profile{min-height:42px}.primary-nav{min-height:40px}.mode-switch button{min-height:34px}}

.theme-drumlab{--tint:#f9ead7;--accent:#89533b;--outline:#e6ceb0;--pict-pos:49%}
.theme-echo{--tint:#e7eee9;--accent:#426754;--outline:#c4d8cb;--pict-pos:50%}
.theme-harmony{--tint:#efe8f1;--accent:#695479;--outline:#d9c6e1;--pict-pos:39%}
.pocket-link{display:flex;align-items:center;gap:11px;padding:13px 19px}
.pocket-link:hover{border-color:var(--pine)}
.note-choices,.record-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.note-choices button[aria-pressed=true]{background:var(--tint);border-color:var(--accent)}
.note-choices button:disabled,.listen-panel:disabled,.choice:disabled:not(.correct):not(.retry){opacity:.62;cursor:default}
.selection{min-height:1.6em;color:var(--accent);font-weight:750}
.instrument-bank{margin:14px 0;font-size:14px}
.instrument-bank summary{width:max-content;cursor:pointer;max-width:100%}
.guide-page{max-width:660px}
[hidden]{display:none!important}
