:root{color-scheme:dark;--gold:#f6cd9b;--ink:#0f1115;--surface:#171a21;--muted:#b8b8b8}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:white;font:16px/1.6 "Microsoft JhengHei",system-ui,sans-serif}button,input{font:inherit}button{min-height:44px;padding:9px 18px;border:1px solid #ffffff30;border-radius:9px;background:var(--surface);color:white;cursor:pointer}button:hover{border-color:var(--gold);color:#ffd9a8}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--gold);color:var(--ink);border-color:var(--gold);font-weight:700}.primary:hover{background:#ffd9a8;color:var(--ink)}:focus-visible{outline:3px solid var(--gold);outline-offset:4px}::selection{background:var(--gold);color:var(--ink)}[hidden]{display:none!important}.guide-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px max(24px,calc((100vw - 1320px)/2));background:#0f1115;border-bottom:1px solid #ffffff20}.guide-header h1{margin:0;font-size:28px;line-height:1.3}.guide-header h1 small{font-size:12px;font-weight:400;color:var(--gold);vertical-align:middle}.guide-header p{margin:5px 0 0;color:var(--muted);font-size:14px}.guide-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}#guide-clock{font-size:22px;font-variant-numeric:tabular-nums;color:var(--gold)}main{max-width:1320px;margin:auto;padding:32px 24px 60px}#guide-setup{max-width:820px;margin:auto}h2{margin:0 0 24px;font-size:28px;line-height:1.4}h3{margin:0;font-size:21px}p{max-width:72ch}fieldset{border:0;margin:0 0 28px;padding:0}legend{margin-bottom:12px;font-weight:700}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choices label,.durations label{position:relative;display:flex;align-items:center;gap:8px;padding:18px;border:1px solid #ffffff25;border-radius:10px;cursor:pointer}.choices label{flex-wrap:wrap}.choices span{width:100%;font-size:14px;color:var(--muted)}label:has(input:checked){border-color:var(--gold);background:#f6cd9b08}input{accent-color:var(--gold);width:18px;height:18px}.durations{display:flex;gap:12px}.durations label{flex:1;justify-content:center}.demo-choice{display:flex;align-items:center;gap:8px}.muted{font-size:14px;color:var(--muted)}.schedule{display:flex;gap:0;flex-wrap:wrap;margin:26px 0;border-top:1px solid #ffffff20;border-bottom:1px solid #ffffff20}.schedule span{flex:1;padding:16px 12px}.schedule small{display:block;color:var(--muted)}#guide-start{width:100%;margin-bottom:8px}.stage-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.bpm{font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;color:var(--gold)}.notation{background:#fffdf7;color:#111;border-radius:10px;padding:14px;overflow:auto;margin-bottom:18px}.notation svg{width:100%;height:auto;min-height:85px}.notation-label{font-size:13px;color:#474747;margin-bottom:5px}.beats{display:flex;gap:12px;justify-content:center;margin:20px 0}.beats i{width:16px;height:16px;border:1px solid var(--gold);border-radius:50%}.beats i.active{background:var(--gold)}.practice-instruction{text-align:center;color:var(--muted)}.rest-screen{text-align:center;padding:70px 10px}.rest-count{font-size:80px;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--gold)}.rest-screen h2{margin-bottom:12px}.rest-screen .primary{margin-top:20px}.paused-banner{padding:12px 18px;background:#1d212b;border-bottom:1px solid #f6cd9b40;text-align:center;color:var(--gold)}.adventure{max-width:480px;margin:auto}.adventure-art{position:relative;height:230px;background:url('/assets/gongo-adventure/forest.png') center/cover;border-radius:10px;overflow:hidden;margin:16px 0}.adventure-art img{position:absolute;bottom:0;height:95%;object-fit:contain}.adventure-art .hero{left:0}.adventure-art .monster{right:-10px;width:55%}.battle-meta{display:flex;justify-content:space-between;font-size:14px;color:var(--gold)}.answer{display:flex;width:100%;align-items:center;gap:14px;background:#fffdf7;color:#111;margin:10px 0;padding:12px}.answer svg{width:100%;height:auto;max-height:95px}.answer strong{font-size:22px;color:#925a26}.answer:disabled{opacity:.65}.answer.selected{outline:3px solid var(--gold)}.ear-actions{display:flex;gap:10px;margin:16px 0}.ear-actions button{flex:1}#ear-feedback{min-height:26px}#guide-error{padding:18px;border:1px solid #f6cd9b50;border-radius:10px}dialog{max-width:420px;padding:28px;border:1px solid #ffffff30;border-radius:12px;background:var(--surface);color:white}dialog::backdrop{background:#000b}dialog button{margin:8px 6px 0 0}#guide-result{max-width:780px;margin:auto}.result-line{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ffffff20}.feedback-row{margin:22px 0}.feedback-row legend{font-weight:400}.feedback-options{display:flex;gap:10px}.feedback-options label{padding:12px 18px;border:1px solid #ffffff25;border-radius:9px;cursor:pointer}.engine-frame{position:fixed;left:-10000px;width:1px;height:1px;border:0;pointer-events:none}.guide-drummer{max-width:1000px;margin:auto}.guide-drummer .hg-tip-demo-panel{margin:0}.guide-drummer .stage-scroll{overflow:hidden}.guide-drummer .stage-panel{border:0}.guide-drummer .drum-stage{max-width:none}.guide-drummer .hg-tip-demo-runtime{display:none!important}#guide-stage.is-paused .guide-drummer{opacity:.6}a{color:var(--gold);text-underline-offset:3px}
.practice-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;align-items:start}.practice-layout:has(>.practice-score:only-child){display:block;max-width:850px;margin:auto}.practice-score{min-width:0}.guide-drummer{width:100%}
@media(max-width:900px){.guide-header{padding:12px 20px}.guide-header h1{font-size:24px}main{padding-top:24px}.guide-controls{gap:8px}#guide-clock{font-size:20px}.guide-drummer{max-width:720px}.practice-layout{display:block}.practice-score{max-width:640px;margin:auto}}
@media(max-width:600px){.guide-header{display:grid;grid-template-columns:1fr auto;gap:6px;padding:12px 12px 10px;padding-top:max(12px,env(safe-area-inset-top))}.guide-header h1{font-size:20px}.guide-header p{font-size:12px;max-width:30ch}.guide-controls{gap:6px;flex-wrap:wrap;justify-content:flex-end}#guide-clock{font-size:18px}.guide-controls button{padding:7px 10px;font-size:14px;min-height:44px}main{padding:24px 12px 40px}h2{font-size:24px}.choices{grid-template-columns:1fr}.choices label{padding:13px 16px;flex-wrap:nowrap}.choices span{width:auto;margin-left:auto}.durations{gap:6px}.durations label{padding:13px 6px;font-size:14px}.schedule span{flex-basis:33%;padding:14px 6px;font-size:13px}.stage-heading{gap:10px;margin-bottom:12px}h3{font-size:18px}.bpm{font-size:26px}.notation{padding:8px}.notation svg{min-height:100px}.feedback-options label{padding:12px 10px;flex:1;text-align:center}.adventure-art{height:190px}.answer{padding:10px;gap:10px}.rest-screen{padding:45px 0}.guide-drummer .stage-scroll{min-height:0!important}.guide-drummer .stage-panel{padding:0!important}.guide-drummer .drum-stage{transform-origin:top left}#guide-exit{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

#guide-ear-engine.is-guided-active{position:static;display:block;left:auto;width:min(960px,calc(100% - 32px));height:900px;margin:0 auto 40px;border:0;pointer-events:auto}#guide-ear-engine.is-guided-active.is-paused{pointer-events:none;opacity:.6}.guided-ear-intro{max-width:960px;margin:auto}.guided-ear-intro p{margin:8px 0}#guide-ear-finish{margin-top:12px}

#guide-gongo-engine.is-guided-active,#guide-metro-engine.is-guided-active{position:static;display:block;left:auto;width:min(1200px,calc(100% - 24px));height:800px;margin:0 auto 24px;border:0;pointer-events:auto}#guide-gongo-engine.is-paused,#guide-metro-engine.is-paused{opacity:.6;pointer-events:none}

body.has-native-practice #guide-main{padding-block:0}body.has-native-practice #guide-gongo-engine.is-guided-active,body.has-native-practice #guide-metro-engine.is-guided-active{margin-top:18px}

/* Keep the native adventure and its controls in the available screen. */
body.has-guided-ear #guide-main{padding:8px 16px;max-width:1200px}
.guided-ear-intro{display:flex;align-items:center;gap:12px;max-width:1100px;flex-wrap:wrap}
.guided-ear-intro h2{font-size:18px;margin:0}.guided-ear-intro p{margin:0;font-size:12px}
#guide-ear-note{display:none}#guide-ear-finish{margin:0 0 0 auto;min-height:36px;padding:4px 10px;font-size:12px}
body.has-guided-ear #guide-ear-engine.is-guided-active{width:min(1100px,100%);height:calc(100dvh - 148px);min-height:440px;margin:0 auto;border:0}
@media(max-width:600px){.guided-ear-intro h2{display:none}.guided-ear-intro{gap:4px}body.has-guided-ear #guide-main{padding:6px 8px}body.has-guided-ear #guide-ear-engine.is-guided-active{height:calc(100dvh - 150px);min-height:410px}}

#guide-quiz-engine.is-guided-active{position:static;display:block;left:auto;width:min(1100px,100%);height:calc(100dvh - 148px);min-height:440px;margin:0 auto;border:0;pointer-events:auto}#guide-quiz-engine.is-guided-active.is-paused{pointer-events:none;opacity:.6}@media(max-width:600px){#guide-quiz-engine.is-guided-active{height:calc(100dvh - 150px);min-height:410px}}

#guide-resume{max-width:820px;margin:24px auto}#guide-resume-summary{color:var(--gold);font-size:20px}#guide-save-status{max-width:1320px;margin:4px auto 8px;font-size:12px}#guide-retry-save{margin-bottom:12px}body.has-native-practice #guide-save-status,body.has-guided-ear #guide-save-status{margin:3px 12px;font-size:11px}#guide-continue{min-width:180px}

@media(max-width:900px),(pointer:coarse){#guide-fullscreen{display:none}}

.guided-premium-note{margin:20px 0;padding:16px 0;border-top:1px solid rgba(246,205,155,.25)}.guided-premium-note>strong{color:var(--gold)}.guided-premium-note p{font-size:14px;color:var(--muted);margin:6px 0 12px}.guided-mode-benefits{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--muted)}.guided-mode-benefits span{flex:1;min-width:160px}.guided-mode-benefits b{display:block;color:white;font-size:14px}.guided-premium-note a{display:inline-block;color:var(--gold);margin-top:12px;padding:8px 0;min-height:44px}.guided-premium-note a:hover{color:#ffd9a8}

.guide-heading{display:flex;align-items:center;gap:24px;min-width:0}.guide-heading>div{min-width:0}.guide-brand{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;color:var(--gold);font:24px/1.2 Arial,sans-serif;text-decoration:none;white-space:nowrap}.guide-brand strong{font-weight:700;margin-right:6px}.guide-brand:hover{color:#ffd9a8}.guide-brand:focus-visible{outline:2px solid var(--gold);outline-offset:4px;border-radius:4px}@media(max-width:900px){.guide-heading{gap:16px}.guide-brand{font-size:22px}}@media(max-width:600px){.guide-heading{display:block}.guide-brand{font-size:20px;margin-bottom:4px}}

#guide-setup{max-width:1320px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:48px;align-items:start}#guide-setup[hidden]{display:none}.guide-setup-form{min-width:0}.guide-faq{min-width:0}.guide-faq h2{margin-top:0}.guide-faq details{border-bottom:1px solid rgba(255,255,255,.15)}.guide-faq summary{cursor:pointer;padding:14px 0;min-height:48px;font-size:15px;font-weight:600}.guide-faq summary::marker{color:var(--gold)}.guide-faq summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.guide-faq details[open] summary{color:var(--gold)}.guide-faq p{margin:0 0 16px;font-size:14px;line-height:1.8;color:var(--muted)}@media(max-width:1000px){#guide-setup{grid-template-columns:minmax(0,1fr);gap:32px}.guide-faq{border-top:1px solid rgba(246,205,155,.25);padding-top:24px}}

/* Guided studio setup: the approved H.G companion direction. */
#guide-setup{grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:40px}
.guide-welcome{display:flex;align-items:center;gap:22px;min-height:168px;margin:-12px 0 18px;position:relative}
.guide-welcome h2{font-size:34px;letter-spacing:.02em;margin:0 0 10px}
.guide-welcome p{font-size:13px;color:var(--muted);margin:0}
.guide-art{display:block;background-image:url('/assets/guided-studio-atlas-v26.png');background-size:200% 200%;background-repeat:no-repeat;pointer-events:none}
.guide-art-coach{width:156px;height:156px;flex-shrink:0;background-position:0 0}
.guide-handnote{color:#c1b5a4;font-size:12px;line-height:1.8;transform:rotate(-8deg);margin-left:auto;white-space:nowrap;font-style:italic}
.guide-setup-form fieldset{margin-bottom:22px}
.guide-setup-form legend{font-size:16px;margin-bottom:10px}
.guide-setup-form legend small{font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}
.guide-step{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--gold);color:var(--ink);font-size:14px;font-style:normal;margin-right:5px}
.guide-setup-form .choices{gap:12px}
.guide-setup-form .choices label{display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;align-items:center;min-width:0;height:210px;padding:15px 10px 0;overflow:hidden;background:linear-gradient(155deg,#1b2026,#111419);border:1px solid #ffffff25;border-radius:12px;transition:border-color .18s,background .18s}
.guide-setup-form .choices input,.guide-setup-form .durations input{position:absolute;right:12px;top:12px;width:16px;height:16px;margin:0}
.guide-setup-form .choices strong{font-size:18px;line-height:1.5;margin-top:3px}
.guide-setup-form .choices span{font-size:12px;width:auto;color:#b8b8b8}
.guide-setup-form .choices .guide-art{width:150px;height:150px;max-width:100%;flex-shrink:0;margin-top:0}
.guide-art-pad{background-position:100% 0}.guide-art-kit{background-position:0 100%}.guide-art-ear{background-position:100% 100%}
.guide-setup-form label:has(input:checked){border-color:var(--gold);background:linear-gradient(155deg,#35302a,#1b1c1f)}
.guide-setup-form label:hover{border-color:#d9a96a}
.guide-setup-form label:has(input:focus-visible){outline:3px solid var(--gold);outline-offset:3px}
.guide-setup-form .durations label{background:#171b20;border-radius:10px;padding:12px 24px;min-height:68px}
.guide-setup-form .durations span{font-weight:700;font-size:17px;line-height:1.5;text-align:center}
.guide-setup-form .durations small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
#guide-profile,#guide-demo-note{font-size:12px;margin:10px 0}
#guide-preview:empty{display:none}
.guide-setup-form #guide-start{display:block;width:74%;min-height:48px;margin:20px auto 24px;border-radius:28px;box-shadow:0 7px 20px #0005}
.guide-setup-form #guide-start:not(:disabled){background:linear-gradient(#ffdeb3,#f6cd9b)}
.guide-setup-form #guide-start:disabled{cursor:default;opacity:.65}
.guide-setup-form>p:last-child{font-size:12px;line-height:1.8;color:var(--muted);margin-top:20px}
.guide-setup-form .guided-premium-note{display:grid;grid-template-columns:130px 1fr;gap:6px 18px;padding-top:18px}
.guide-setup-form .guided-premium-note>strong{font-size:14px}
.guide-setup-form .guided-premium-note>p{grid-column:1;font-size:11px;line-height:1.7;margin:0}
.guide-setup-form .guided-mode-benefits{grid-column:2;grid-row:1/3;gap:16px}
.guide-setup-form .guided-mode-benefits span{min-width:0;font-size:11px;border-left:1px solid #ffffff20;padding-left:12px}
.guide-setup-form .guided-mode-benefits b{font-size:13px;margin-bottom:4px}
.guide-setup-form .guided-mode-benefits b:before{content:'';display:block;width:23px;height:23px;margin-bottom:7px;background:var(--gold);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20V13M10 20V8M16 20V3M22 20V11' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat}
.guide-setup-form .guided-mode-benefits span:nth-child(2) b:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20L9 3h6l4 17zM12 17l4-10M9 20h6' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E")}
.guide-setup-form .guided-mode-benefits span:nth-child(3) b:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 14v-3a8 8 0 0116 0v3M4 12h3v7H4zM17 12h3v7h-3z' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E")}
.guide-setup-form .guided-premium-note>a{grid-column:1/-1;font-size:12px;margin:0}
.guide-faq{padding-left:28px;border-left:1px solid #ffffff15;padding-top:8px;counter-reset:faq}
.guide-faq h2{font-size:25px;margin-bottom:3px}
.guide-faq-caption{color:var(--muted);font-size:12px;margin:0 0 18px}
.guide-faq details{margin:8px 0;border:1px solid #ffffff0d;border-radius:8px;background:#171b20;counter-increment:faq}
.guide-faq summary{display:flex;align-items:center;gap:12px;list-style:none;font-size:13px;padding:11px 13px;min-height:46px;font-weight:500}
.guide-faq summary::-webkit-details-marker{display:none}
.guide-faq summary:before{content:counter(faq,decimal-leading-zero);font-size:11px;color:#b8b8b8;flex-shrink:0;font-variant-numeric:tabular-nums}
.guide-faq summary:after{content:'';width:6px;height:6px;border-right:1px solid #b8b8b8;border-bottom:1px solid #b8b8b8;transform:rotate(45deg);margin-left:auto;flex-shrink:0}
.guide-faq details[open] summary:after{transform:rotate(225deg)}
.guide-faq details[open]{border-color:#f6cd9b40;background:#1c2026}
.guide-faq p:not(.guide-faq-caption){padding:0 14px 0 39px;font-size:13px;margin-bottom:15px}
@media(max-width:1150px){.guide-handnote{display:none}.guide-welcome h2{font-size:28px}.guide-welcome{gap:12px}.guide-art-coach{width:130px;height:130px}#guide-setup{gap:28px}.guide-faq{padding-left:20px}}
@media(max-width:1000px){#guide-setup{grid-template-columns:1fr;max-width:820px}.guide-faq{border-left:0;padding-left:0;padding-top:24px}.guide-welcome h2{font-size:32px}.guide-art-coach{width:150px;height:150px}.guide-handnote{display:block}}
@media(max-width:600px){.guide-header{align-items:center}.guide-heading{display:flex;gap:12px}.guide-brand{font-size:17px;margin:0}.guide-header h1{font-size:18px}.guide-header p{font-size:10px}.guide-welcome{min-height:120px;margin:0 0 18px;gap:8px}.guide-art-coach{width:94px;height:110px;background-size:220% 200%}.guide-welcome h2{font-size:25px;letter-spacing:0;margin-bottom:5px}.guide-welcome p{font-size:11px;max-width:24ch}.guide-handnote{display:none}.guide-setup-form legend{font-size:14px}.guide-setup-form legend small{display:block;margin:4px 0 0 33px;font-size:11px}.guide-setup-form .choices{gap:7px}.guide-setup-form .choices label{height:168px;padding:24px 4px 0}.guide-setup-form .choices strong{font-size:15px}.guide-setup-form .choices span{font-size:10px;margin:0;width:100%;text-align:center;line-height:1.6}.guide-setup-form .choices .guide-art{width:105px;height:105px;margin-top:4px}.guide-setup-form .choices input{top:8px;right:8px;width:14px;height:14px}.guide-setup-form .durations label{padding:22px 4px 10px;min-height:77px}.guide-setup-form .durations input{top:7px;right:7px;width:13px;height:13px}.guide-setup-form .durations span{font-size:15px}.guide-setup-form #guide-start{width:94%;font-size:14px}.guide-setup-form .guided-premium-note{display:block}.guide-setup-form .guided-premium-note>p{margin:5px 0 16px}.guide-setup-form .guided-mode-benefits{gap:8px}.guide-setup-form .guided-mode-benefits span{flex:1;padding-left:8px}.guide-faq h2{font-size:24px}}

@media(min-width:1001px){#guide-setup .guide-welcome{min-height:140px}.guide-setup-form .choices label{height:190px}.guide-setup-form .choices .guide-art{width:135px;height:135px}}
@media(max-width:600px){.guide-setup-form .choices{grid-template-columns:repeat(3,minmax(0,1fr))}}

.guide-resume-actions{display:flex;gap:12px;flex-wrap:wrap}.guide-resume-actions button{min-width:150px}#guide-reselect-dialog{max-width:480px}#guide-setup{scroll-margin-top:110px}

.guide-setup-form .choices label.is-member-only{cursor:default;opacity:.55}.is-member-only:after{content:"免費會員解鎖";position:absolute;bottom:8px;font-size:11px;color:var(--gold);background:var(--ink);padding:2px 8px;border-radius:5px}.guide-guest-complete{margin-top:28px;padding:24px;border:1px solid #f6cd9b50;border-radius:12px;background:var(--surface)}.guide-guest-complete h3{color:var(--gold)}.guide-guest-complete p,.guide-guest-complete li{font-size:14px;color:var(--muted)}.guide-guest-complete>a{display:inline-block;padding:11px 20px;min-height:44px;border-radius:9px;text-decoration:none}

#guide-collapse{display:none}#guide-rotate{position:fixed;inset:0;z-index:200;background:#0f1115;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px}#guide-rotate:not([hidden]){display:flex}#guide-rotate strong{font-size:24px;color:var(--gold)}
@media(max-width:900px),(pointer:coarse){body.has-mobile-guide{overflow:hidden}body.has-mobile-guide .guide-header{position:fixed;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));right:12px;left:12px;width:auto;display:block;padding:10px 12px;border:1px solid #f6cd9b50;border-radius:12px;background:#171a21f5;box-shadow:0 5px 24px #0006;z-index:100}body.has-mobile-guide .guide-heading{display:none}body.has-mobile-guide .guide-controls{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:8px}body.has-mobile-guide #guide-collapse{display:block;font-size:12px;padding:6px 10px}body.has-mobile-guide #guide-clock{font-size:18px;white-space:nowrap;min-width:0}body.has-mobile-guide .guide-controls button{padding:7px 10px;min-height:40px}body.has-mobile-guide .guide-header.is-collapsed{left:auto;width:auto;padding:8px 14px;border-radius:30px}body.has-mobile-guide .is-collapsed .guide-controls>:not(#guide-clock){display:none!important}body.has-mobile-guide #guide-clock{cursor:pointer}body.has-mobile-guide #guide-main{padding:0;max-width:none}body.has-mobile-guide iframe.is-guided-active{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;margin:0!important;border:0!important}body.has-mobile-guide .guided-ear-intro{display:none}body.has-mobile-guide #guide-stage .rest-screen{position:fixed;inset:0;display:flex;flex-direction:column;justify-content:center;padding:20px}body.has-mobile-guide #guide-stage>.paused-banner{position:fixed;top:0;left:0;right:0;z-index:50}body.has-mobile-guide #guide-error{position:fixed;top:10px;left:10px;right:10px;z-index:110;background:var(--surface)}}

@media(max-width:900px),(pointer:coarse){.guide-header h1 small{display:none}body:not(.has-mobile-guide) #guide-clock{display:none}}

@media(max-width:900px),(pointer:coarse){body.has-mobile-guide.has-guided-ear .guide-header{top:max(8px,env(safe-area-inset-top,0px));bottom:auto}body.has-mobile-guide.has-guided-ear .guide-header.is-collapsed{top:max(8px,env(safe-area-inset-top,0px));bottom:auto}}

.guide-header #guide-progress{display:none}

.guide-setup-form .choices .guide-art-resume{background:none;display:grid;place-items:center;color:var(--gold)}.guide-art-resume svg{width:90px;height:90px}.guide-setup-form .choices label.is-unavailable,.guide-setup-form .durations label:has(input:disabled){opacity:.4;cursor:default}.guide-setup-form .choices label.is-unavailable:hover,.guide-setup-form .durations label:has(input:disabled):hover{border-color:#ffffff25}.guide-setup-form .choices label:has(input[value="resume"]) strong{font-size:clamp(12px,1.5vw,18px)}

#guide-reselect-dialog{width:max-content;max-width:calc(100vw - 24px);padding:24px 18px}#guide-reselect-title{font-size:clamp(12px,3.5vw,18px);font-weight:600;line-height:1.5;white-space:nowrap;text-align:center;margin:0 0 20px}.guide-reminder-actions{display:flex;justify-content:center;gap:12px}.guide-reminder-actions button{margin:0;min-width:64px}

@media(min-width:901px) and (pointer:fine){.guide-header:has(#guide-pause[hidden]) #guide-clock{display:none}}

#guide-stage .rest-screen>p{width:100%;margin-left:auto;margin-right:auto;text-align:center}

/* Current guided activity beside the desktop countdown. */
#guide-current-status{color:var(--gold);font-size:14px;max-width:28ch;line-height:1.4;text-align:right}
#guide-current-status[hidden]{display:none}
@media(max-width:900px),(pointer:coarse){#guide-current-status{display:none}}

.guide-preparation-dialog{text-align:center;width:min(390px,calc(100vw - 32px));box-sizing:border-box}.guide-preparation-dialog h2{font-size:20px;margin:16px 0 12px}.guide-preparation-dialog p{line-height:1.7}.guide-preparation-dialog small{display:block;line-height:1.6;color:#b8b8b8}.guide-preparation-dialog button{min-height:44px;padding:10px 18px}.guide-loading-mark{width:32px;height:32px;margin:auto;border:3px solid #ffffff20;border-top-color:#f6cd9b;border-radius:50%;animation:guide-load-spin 1s linear infinite}@keyframes guide-load-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.guide-loading-mark{animation:none}}

/* Keep the gold start button readable against shared hover styles. */
.guide-setup-form #guide-start,.guide-setup-form #guide-start:hover{color:#0f1115!important}
.guide-setup-form #guide-start:not(:disabled):hover{background:linear-gradient(#ffdeb3,#f6cd9b);border-color:#f6cd9b;outline:2px solid #f6cd9b;outline-offset:3px}

body.has-ipad-drummer-guide #guide-current-status{display:block!important;max-width:none;text-align:left;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}body.has-ipad-drummer-guide .guide-header.is-collapsed #guide-current-status{display:none!important}body.has-ipad-drummer-guide .guide-header{bottom:calc(8px + env(safe-area-inset-bottom));padding:8px 12px}body.has-ipad-drummer-guide #guide-clock{font-size:16px}
html.hg-guided-ipad-device body.has-mobile-guide :is(#guide-error,#guide-save-status){position:fixed!important;top:max(48px,env(safe-area-inset-top))!important;left:16px;right:16px;z-index:120;background:#171a21;padding:10px 14px;margin:0;border:1px solid #f6cd9b50;border-radius:9px}
html.hg-guided-ipad-device body.has-mobile-guide #guide-stage>.paused-banner{top:8px!important;z-index:121}

/* Keep phone practice controls readable on one line without shrinking touch targets. */
@media(max-width:600px) and (orientation:portrait){body.has-mobile-guide .guide-header{left:8px;right:8px;padding:8px}body.has-mobile-guide .guide-controls{gap:6px}body.has-mobile-guide .guide-controls button{flex:0 0 auto;min-height:44px;padding:6px 8px;font-size:12px;white-space:nowrap;line-height:1.4}body.has-mobile-guide #guide-clock{font-size:14px;line-height:1.4;flex:1;text-align:center}}
