@layer starter{:root{--color-bg:#fff9ef;--color-panel:#fff9ef;--color-mint:#dff5e8;--color-text:#173c33;--color-muted:#50665a;--color-accent:#19b89a;--color-accent-strong:#146d5b;--color-primary:#ffd460;--color-accent-ink:#173c33;--color-danger:#a33125;--color-coral:#ff785c;--color-sky:#73cff2;--color-lilac:#ad9bea;--color-focus:#2059a5;--color-border:#93b0a2;--color-slot:#dff5e8;--color-target:#ffd460;--stat-surface:color-mix(in srgb, var(--color-panel) 48%, transparent);--stat-primary-surface:color-mix(in srgb, var(--color-mint) 64%, transparent);--stat-primary-border:color-mix(in srgb, var(--color-accent-strong) 22%, transparent);--glass-content:#fff9eff0;--glass-chrome:#fff9eff0;--glass-blur:none;--glass-shadow:0 16px 48px #173c331f;--radius:24px;--space:20px}@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){:root{--glass-content:#fff9ef7a;--glass-chrome:#fff9ef61;--glass-blur:blur(18px) saturate(115%)}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){:root{--glass-content:#fff9eff5;--glass-chrome:#fff9eff5;--glass-blur:none;--color-border:#50665a}}:root{--game-language-name-fonts:"Noto Sans SC Names", "Noto Sans TC Names", "Noto Sans JP Names", "Noto Sans KR Names";--game-font-family:"Nunito Sans", "Game UI Symbols", var(--game-language-name-fonts), ui-sans-serif, system-ui, sans-serif}:root:lang(zh-CN),:root:lang(zh-Hans){--game-font-family:"Nunito Sans", "Noto Sans SC", "Game UI Symbols", var(--game-language-name-fonts), "PingFang SC", "Microsoft YaHei", system-ui, sans-serif}:root:lang(zh-Hant){--game-font-family:"Nunito Sans", "Noto Sans TC", "Game UI Symbols", var(--game-language-name-fonts), "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif}:root:lang(ja){--game-font-family:"Nunito Sans", "Noto Sans JP", "Game UI Symbols", var(--game-language-name-fonts), "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif}:root:lang(ko){--game-font-family:"Nunito Sans", "Noto Sans KR", "Game UI Symbols", var(--game-language-name-fonts), "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif}@font-face{font-family:Noto Sans SC Names;src:url(../assets/fonts/noto-sans-sc-names.woff2)format("woff2");font-weight:400 800;font-display:swap}@font-face{font-family:Noto Sans TC Names;src:url(../assets/fonts/noto-sans-tc-names.woff2)format("woff2");font-weight:400 800;font-display:swap}@font-face{font-family:Noto Sans JP Names;src:url(../assets/fonts/noto-sans-jp-names.woff2)format("woff2");font-weight:400 800;font-display:swap}@font-face{font-family:Noto Sans KR Names;src:url(../assets/fonts/noto-sans-kr-names.woff2)format("woff2");font-weight:400 800;font-display:swap}option[value=en],option[value=es],option[value=fr],option[value=de],option[value=pt-BR],option[value=it]{font-family:Nunito Sans,system-ui,sans-serif}option[value=zh-CN]{font-family:Nunito Sans,Noto Sans SC Names,PingFang SC,Microsoft YaHei,system-ui,sans-serif}option[value=zh-Hant]{font-family:Nunito Sans,Noto Sans TC Names,PingFang TC,Microsoft JhengHei,system-ui,sans-serif}option[value=ja]{font-family:Nunito Sans,Noto Sans JP Names,Hiragino Kaku Gothic ProN,Yu Gothic,system-ui,sans-serif}option[value=ko]{font-family:Nunito Sans,Noto Sans KR Names,Apple SD Gothic Neo,Malgun Gothic,system-ui,sans-serif}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--game-font-family);background:var(--color-bg);color:var(--color-text)}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0}body{height:100dvh;overflow:hidden}button,input,select{font:inherit;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}:focus-visible{outline:3px solid var(--color-focus);outline-offset:4px}#app{isolation:isolate;width:100%;max-width:1600px;height:100%;margin:0 auto;position:relative}#game{position:absolute;inset:0}#game canvas{display:block}.ui-layer{pointer-events:none;position:absolute;inset:0}.ui-screen{position:absolute;inset:0}.menu-screen{pointer-events:auto;padding:max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));background:var(--color-mint) url(../branding/sunny-playground.svg) center / cover;place-items:center;display:grid;overflow:auto}.menu-card{text-align:center;flex-direction:column;gap:12px;width:min(100%,420px);padding:24px;display:flex}.menu-heading{flex-direction:column;gap:12px;display:flex}.menu-actions{gap:12px;display:grid}h1{letter-spacing:-.04em;margin:4px 0;font-size:clamp(32px,7vw,48px);line-height:1.15}h2{letter-spacing:-.03em;margin:0 0 20px;font-size:clamp(26px,5vw,34px);line-height:1.2}.eyebrow{color:var(--color-accent-strong);letter-spacing:.12em;margin:0;font-size:12px;font-weight:700;line-height:1.5}.menu-motif{width:92px;height:92px;color:var(--color-accent-strong);background:#ffd46059;border:1px solid #ffffffb3;border-radius:28px;place-content:center;margin:8px auto;font-size:62px;display:grid;transform:rotate(-8deg)}.subtitle,.ui-copy{color:var(--color-muted);margin:0 0 12px;font-size:16px;line-height:1.65}.progress-note{color:var(--color-muted);margin:8px 0;font-size:13px}.ui-button{border:1px solid var(--color-border);min-height:48px;color:var(--color-text);background:#fff9efc7;border-radius:14px;justify-content:center;align-items:center;padding:13px 20px;font-size:16px;font-weight:650;line-height:1.35;transition:background .12s,transform .12s;display:inline-flex}.ui-button:hover:not(:disabled){background:var(--color-mint)}.ui-button:active:not(:disabled){transform:translateY(1px)}.ui-button.primary{background:var(--color-primary);color:var(--color-accent-ink);border-color:#d3a331}.ui-button.primary:hover:not(:disabled){background:#ffe38b}.ui-button.quiet{background:0 0}.ui-button.danger{color:var(--color-danger);border-color:var(--color-danger)}.ui-dialog{color:var(--color-text);background:var(--glass-content);border:1px solid var(--color-border);border-radius:var(--radius);width:min(480px, calc(100vw - 40px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));box-shadow:var(--glass-shadow);padding:28px;overflow-y:auto}.ui-dialog::backdrop{background:#173c3333}.dialog-body{flex-direction:column;gap:12px;display:flex}.setting{grid-template-columns:1fr auto;gap:10px;padding:8px 0;font-size:15px;line-height:1.5;display:grid}.setting output{color:var(--color-accent-strong);font-variant-numeric:tabular-nums}.setting input[type=range]{width:100%;min-height:48px;accent-color:var(--color-accent-strong);grid-column:1/-1;margin:0}.setting input[type=checkbox]{width:26px;height:26px;accent-color:var(--color-accent-strong);margin:0}.setting-toggle{align-items:center;min-height:48px}.setting select{min-height:48px;color:var(--color-text);border:1px solid var(--color-border);background:#fff9efc7;border-radius:10px;grid-column:1/-1;padding:10px}.hud-header{top:env(safe-area-inset-top);left:env(safe-area-inset-left);right:env(safe-area-inset-right);grid-template-columns:1fr auto;align-items:center;gap:12px;padding:20px 24px;display:grid;position:absolute}.hud-title{margin:4px 0 0;font-size:clamp(20px,4vw,28px)}.hud-stats{flex-wrap:wrap;grid-area:2/1/auto/-1;gap:8px;display:flex}.stats{min-width:0;margin:0}.hud-stats .stat{min-width:min(100px,100%)}.stat{background:var(--stat-surface);color:var(--color-text);border:1px solid var(--color-border);border-radius:14px;flex:1 1 0;min-width:0;padding:10px 14px}.stat-label{color:var(--color-muted);overflow-wrap:anywhere;font-size:13px;line-height:1.5}.stat-reading{flex-wrap:wrap;align-items:baseline;gap:6px;margin:2px 0 0;display:flex}.stat-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0;font-size:clamp(24px,5vw,32px);font-weight:750;line-height:1.15}.stat-unit{color:var(--color-muted);font-size:13px;font-weight:600}.stat-primary{background:var(--stat-primary-surface);border-color:var(--stat-primary-border)}.stat-primary .stat-value{color:var(--color-accent-strong)}.result-stats{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin:0 0 20px;display:grid}.result-stats .stat-primary .stat-value{font-size:clamp(36px,9vw,48px)}.result-actions{gap:10px;display:grid}.menu-stats{width:100%}.menu-stats .stat{justify-content:space-between;align-items:center;gap:12px;display:flex}.menu-stats .stat-value{font-size:22px}.hud-header .ui-button,.hud-footer .ui-button{pointer-events:auto}.hud-footer{bottom:env(safe-area-inset-bottom);left:env(safe-area-inset-left);right:env(safe-area-inset-right);justify-content:space-between;align-items:center;gap:16px;padding:12px 24px;display:flex;position:absolute}.keyboard-note{color:var(--color-muted);margin:0;font-size:12px;line-height:1.5}.board-controls{pointer-events:auto;flex-direction:column;display:flex;position:absolute}.board-row{flex:1;min-height:0;display:flex}.board-cell{background:0 0;border:0;border-radius:12px;flex:1;min-width:0;margin:4px;padding:0;opacity:1!important}.board-cell:focus-visible{outline-offset:-2px;outline:3px solid var(--color-focus)}.toast{bottom:calc(96px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 40px);color:var(--color-accent-ink);background:var(--color-accent);box-shadow:var(--glass-shadow);opacity:0;text-align:center;border-radius:12px;padding:12px 18px;font-size:14px;transition:opacity .12s;position:absolute;left:50%;transform:translate(-50%)}.toast.visible{opacity:1}.safe-area-probe{visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);position:fixed}.fatal-error{text-align:center;place-content:center;padding:2rem;display:grid}[data-reduced-motion=true] *,[data-reduced-motion=true] :before,[data-reduced-motion=true] :after{transition:none!important;animation:none!important}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}@media (height<=499px){.hud-header{gap:4px;padding-top:10px}.hud-title{font-size:18px}.hud-stats{gap:6px}.stat{padding:4px 10px}.hud-footer{padding-top:4px;padding-bottom:4px}.keyboard-note{display:none}.menu-motif{width:56px;height:56px;font-size:40px}.menu-card{gap:8px}}#app[data-layout=wide] .hud-header{grid-template-columns:1fr;width:256px;padding:24px;right:auto}#app[data-layout=wide] .hud-title{margin-bottom:8px;font-size:28px}#app[data-layout=wide] .hud-stats{flex-direction:column}#app[data-layout=wide] .hud-header .ui-button{margin-top:12px}#app[data-layout=wide] .hud-footer{flex-direction:column;align-items:stretch;width:256px;padding:24px;right:auto}#app[data-layout=wide] .toast{left:calc(50% + 128px);bottom:calc(36px + env(safe-area-inset-bottom))}[hidden]{display:none!important}@media (height<=499px){#app[data-layout=wide] .hud-header{gap:8px;padding:16px 24px}#app[data-layout=wide] .hud-title{margin-bottom:0;font-size:20px}#app[data-layout=wide] .hud-header .ui-button{margin-top:0}#app[data-layout=wide] .hud-footer{padding:12px 24px}}.board-cell[aria-disabled=true]{cursor:default}.modal-status{color:var(--color-accent-strong);margin:16px 0 0;font-size:14px;line-height:1.5}.ui-progress{width:100%;height:12px;accent-color:var(--color-accent-strong)}.ui-dialog[data-panel=levels]{padding:20px}.ui-dialog[data-panel=levels] h2{margin:0 0 16px}.level-picker{grid-template-rows:max-content minmax(64px,1fr) 48px 48px;gap:8px;min-width:0;height:min(570px,100dvh - 144px);min-height:296px;display:grid}.level-preview{background:var(--surface-content,#fff9ef7a);border-radius:18px;align-items:center;gap:16px;min-width:0;padding:8px;display:flex}.level-details{min-width:0}.level-details h3{margin:0 0 8px;font-size:18px}.level-details p{margin:4px 0;font-size:14px}.level-board{border:2px solid var(--color-accent-strong);background:#71d2b359;border-radius:12px;flex-shrink:0;gap:3px;width:96px;height:96px;padding:6px;display:grid}.level-board span{background:#fff9efd9;border-radius:3px}.level-list{grid-auto-rows:64px;align-content:start;gap:8px;min-height:0;display:grid}.level-card{justify-content:flex-start;gap:12px;width:100%;min-width:0;padding:6px 12px}.level-card .level-board{gap:2px;width:48px;height:48px;padding:3px}.level-card .button-label{text-align:start;flex:1}.level-card[aria-pressed=true]{border-color:var(--color-accent-strong);background:#71d2b34d}.level-navigation{grid-template-columns:48px minmax(40px,1fr) 48px 56px;align-items:center;gap:8px;display:grid}.level-navigation .ui-button{min-width:48px;padding:8px}.level-navigation #level-previous .button-label,.level-navigation #level-next .button-label{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.level-page{white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}@media (height<=499px){.ui-dialog[data-panel=levels]{padding:16px}.ui-dialog[data-panel=levels] h2{margin-bottom:8px}.level-picker{grid-template-rows:max-content minmax(64px,1fr) 48px 48px;min-height:264px}.level-preview>.level-board{width:72px;height:72px}}#app:fullscreen{background:var(--color-bg);width:100vw;max-width:none;height:100dvh}.storage-notice{background:var(--color-mint);color:var(--color-text);border-radius:12px;flex-basis:100%;width:100%;padding:12px;font-size:.85rem}.hud-footer:has(.storage-notice:not([hidden])){flex-wrap:wrap}.fatal-error{max-width:480px;color:var(--color-text);margin:auto;padding:24px}.direction-controls{flex-wrap:wrap;gap:8px;display:flex}.direction-controls .ui-button{flex:1;width:auto;min-width:48px}.hud-controls:empty{display:none}.hud-footer:has(.direction-controls){flex-wrap:wrap}.hud-controls{flex-basis:100%}@media (height<=499px){#app[data-layout=wide] .game-hud{pointer-events:auto;background:var(--color-bg);flex-direction:column;width:256px;display:flex;right:auto;overflow-y:auto}#app[data-layout=wide] .hud-header,#app[data-layout=wide] .hud-footer{flex:none;position:static}#app[data-layout=wide] .hud-stats{flex-direction:row;gap:4px}#app[data-layout=wide] .stat{padding:4px 8px}#app[data-layout=wide] .direction-controls .ui-button{padding:8px 4px}#app[data-layout=wide] .hud-footer .keyboard-note{display:none}}#app[data-layout=wide] .hud-footer{flex-wrap:nowrap}#app[data-layout=wide] .hud-controls{flex-basis:auto;width:100%}@media (height<=499px){#app[data-layout=wide] .hud-header{padding:12px 24px}#app[data-layout=wide] .hud-footer{gap:8px;padding:8px 24px}}.starter-icon{background-repeat:no-repeat;flex:0 0 32px;width:32px;height:32px;display:inline-block}.ui-button{gap:8px}.menu-motif .starter-icon{width:88px;height:88px}.asset-icons{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.asset-item{flex-direction:column;align-items:center;font-size:12px;display:flex}.asset-item .starter-icon{flex-basis:64px;width:64px;height:64px}.asset-effects{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}audio{width:100%}.ui-button .starter-icon{flex-basis:20px;width:20px;height:20px}.menu-screen{align-items:safe center}.asset-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.asset-tabs .ui-button{padding:10px 8px;font-size:14px}.asset-playback{gap:8px;display:grid}.asset-status{overflow-wrap:anywhere;margin:0}.asset-credit{color:var(--color-accent-strong);font-size:12px}.asset-repeat{align-items:center;gap:8px;min-height:48px;display:flex}.asset-repeat input{width:20px;height:20px}.asset-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.asset-filters .setting{min-width:0;margin:0}.asset-filters select,#asset-search{width:100%;min-width:0;min-height:48px;color:inherit;border:1px solid var(--color-border);background:#fff9efc7;border-radius:8px;padding:8px}#asset-search{grid-column:1/-1}.asset-cards{gap:12px;display:grid}.asset-card{gap:4px;min-width:0;display:grid}.asset-card .ui-button{text-align:start;overflow-wrap:anywhere;justify-content:flex-start;font-size:14px}.asset-card small{color:var(--color-muted);overflow-wrap:anywhere;font-size:12px}.asset-item span:last-child{overflow-wrap:anywhere;text-align:center}.membership-toolbar{top:max(12px, env(safe-area-inset-top));right:max(12px, env(safe-area-inset-right));position:fixed}.membership-toolbar[hidden]{display:none}.membership-dialog{color:var(--color-text);background:var(--glass-content);border:1px solid var(--color-border);width:min(92vw,560px);max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overscroll-behavior:contain;border-radius:16px;padding:20px;overflow-y:auto}.membership-dialog::backdrop{background:#173c3333}.membership-dialog h1{margin:0;font-size:26px}.membership-dialog header{z-index:1;background:var(--glass-content);justify-content:space-between;align-items:center;gap:12px;padding-bottom:12px;display:flex;position:sticky;top:0}.membership-dialog p{line-height:1.5}.membership-offers,.membership-actions{gap:10px;display:grid}.membership-actions{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.membership-toolbar button,.membership-dialog button{font:inherit;border:1px solid var(--color-border);min-height:48px;color:var(--color-text);cursor:pointer;background:#fff9eff0;border-radius:8px;padding:10px 16px;font-size:16px}.membership-dialog button:disabled{opacity:.55;cursor:default}.membership-dialog button[hidden]{display:none}.membership-dialog footer{gap:24px;margin-top:12px;display:flex}.membership-dialog a{color:var(--color-accent-strong);padding:12px 0}.membership-dialog section,.membership-dialog label{gap:8px;margin-bottom:12px;display:grid}.membership-dialog input,.membership-dialog select{box-sizing:border-box;width:100%;min-height:48px;font:inherit;border:1px solid var(--color-border);border-radius:6px;padding:8px}.membership-dialog input[type=checkbox]{width:24px}.membership-dialog [hidden]{display:none}.membership-dialog header button{flex-shrink:0}.membership-dialog header h1{overflow-wrap:anywhere}.menu-card,.ui-dialog,.membership-dialog{background:var(--glass-content);border-radius:var(--radius);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-shadow), inset 0 0 0 1px #173c3314;border:1px solid #fffc}.hud-header,.hud-footer{background:var(--glass-chrome);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);border-radius:0 0 var(--radius) var(--radius)}.hud-footer{border-radius:var(--radius) var(--radius) 0 0}.membership-dialog header{background:var(--color-panel);border-radius:12px;padding:8px}.membership-dialog input,.membership-dialog select{color:var(--color-text);background:var(--color-panel)}@media (prefers-contrast:more){.menu-card,.ui-dialog,.membership-dialog{border-color:var(--color-text)}}@media (forced-colors:active){.menu-card,.ui-dialog,.membership-dialog,.hud-header,.hud-footer{color:canvastext;-webkit-backdrop-filter:none;backdrop-filter:none;background:canvas;border:1px solid canvastext}}.membership-dialog button[data-copy=send],.membership-dialog button[data-copy=verify]{background:var(--color-primary)}.membership-toolbar button{-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:0 4px 16px #173c3314}.level-navigation #levels-back .button-label{white-space:nowrap}.services-menu-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;display:grid}.services-menu-actions .ui-button{min-width:0;min-height:48px;padding-inline:8px;font-size:1rem}.board-controls,.direction-controls{direction:ltr}.stat-value,.stat-unit,.setting select,.setting output{unicode-bidi:isolate}}#app.totem-game{background:#77492b;max-width:none}.totem-stage{z-index:0;background:linear-gradient(0deg, #0d282b9c, transparent 45%), var(--totem-background) 47% center/cover;pointer-events:auto;isolation:isolate;position:absolute;inset:0;overflow:hidden}.totem-hero{object-fit:contain;pointer-events:none;filter:drop-shadow(0 8px 10px #10251c70);width:45%;height:35%;position:absolute;bottom:28%;left:50%;transform:translate(-50%)}.totem-story{color:#fff0c9;text-align:center;text-shadow:0 1px 3px #402517;scrollbar-width:thin;background:#714425e8;border:1px solid #e8cc9166;border-radius:16px;width:min(68%,600px);max-height:18%;margin:0;padding:8px 14px;font-size:clamp(13px,1.6vw,18px);line-height:1.6;position:absolute;top:31%;left:50%;overflow:auto;transform:translate(-50%)}.totem-count{color:#fff0c9;text-shadow:0 3px 12px #402517,0 0 22px #ebb25170;margin:0;font-size:clamp(40px,7vw,90px);font-weight:800;line-height:1.1;position:absolute;top:calc(32% + 16px);left:50%;transform:translate(-50%)}.totem-track{justify-content:center;gap:20px;width:min(35%,460px);padding-top:18px;display:flex;position:absolute;bottom:13%;left:50%;transform:translate(-50%)}.totem-track:before{content:"";border-top:3px solid #b89458;border-radius:50%;height:20px;position:absolute;top:0;left:-12px;right:-12px;box-shadow:0 -2px #284135}.totem-note{color:#fff0c9;background:#492619eb;border:2px solid #c0af76;border-radius:60% 60% 52% 52%;flex:1;place-items:center;min-width:0;height:clamp(40px,5vw,72px);font-size:clamp(12px,1.5vw,18px);font-weight:800;display:grid;position:relative;box-shadow:0 4px 12px #0b251e80}.totem-note:before{content:"";background:#ae8a53;width:1px;height:19px;position:absolute;bottom:100%;left:50%}.note-0{color:#492619;background:radial-gradient(#c7e9ee 15%,#8eb8c5 60%,#3c6b91);border-color:#82afc4}.note-1{color:#583411;background:radial-gradient(#ffe8a2 15%,#e9ae53 60%,#9a6530);border-color:#f9c064}.totem-note.active{border-color:#fff4c8;box-shadow:0 0 0 3px #fff4c880,0 0 26px #ffe5a5b0}.totem-drums{left:2%;right:2%;bottom:calc(4% + var(--totem-safe-bottom,0px));pointer-events:none;justify-content:space-between;display:flex;position:absolute}.totem-drum{aspect-ratio:1.16;background:var(--totem-drums) left center/200% 100% no-repeat;cursor:pointer;touch-action:manipulation;pointer-events:auto;filter:drop-shadow(0 12px 9px #081a17a0);border:0;width:29%;min-width:96px;max-width:420px;min-height:96px;transition:transform 90ms;position:relative}.drum-1{background-position:100%}.totem-drum span{color:#492619;text-shadow:0 1px #fff1b5;white-space:pre-line;font-family:inherit;font-size:clamp(14px,2.2vw,30px);font-weight:800;line-height:1.3;position:absolute;top:25%;left:12%;right:12%}.totem-drum:disabled{opacity:1;cursor:default}.totem-drum:focus-visible{outline-offset:-8px;outline:3px solid #fff0c9}.totem-drum.struck{animation:.14s ease-out totem-strike}.totem-practice-drums{justify-content:center;gap:12px;width:100%;margin:10px auto;display:flex}.totem-practice-drums .totem-drum{width:50%;max-width:200px}.totem-practice-drums .totem-drum span{font-size:clamp(13px,2vw,20px)}.totem-game .game-hud{z-index:2;pointer-events:none}.totem-game .hud-header{top:calc(12px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));right:calc(12px + env(safe-area-inset-right));-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;background:0 0;border:0;align-items:flex-start;gap:10px;padding:0;display:flex}.totem-game .hud-info{flex:1;min-width:0}.totem-game #hud-goal{color:#fff0c9;letter-spacing:.04em;background:repeating-linear-gradient(174deg,#63442de8 0 5px,#765637e8 6px 12px);border:1px solid #aa7d47;border-radius:12px;max-width:100%;padding:9px 12px;font-size:12px;line-height:1.4;display:inline-block}.totem-game #hud-title{text-align:center;color:#fff0c9;text-shadow:0 3px 12px #402517,0 0 20px #ebb25150;margin:0;font-size:clamp(25px,3.6vw,48px);font-weight:800;line-height:1.25;position:fixed;top:18%;left:10%;right:10%}.totem-game #hud-progress{display:none}.totem-game .hud-stats{flex-wrap:nowrap;grid-area:auto;gap:8px;display:flex}.totem-game .hud-stats .stat{color:#fff0c9;min-width:62px;box-shadow:none;background:#714425ec;border:1px solid #aa7d4780;border-radius:12px;flex:0 auto;padding:6px 10px}.totem-game .hud-stats .stat-label{color:#f4dcab;font-size:10px;line-height:1.3}.totem-game .hud-stats .stat-value{color:#fff0c9;font-size:20px;line-height:1.2}.totem-game .hud-stats .stat-unit{color:#f4dcab;font-size:11px}.totem-game .hud-header .ui-button,.totem-game .hud-footer .ui-button{color:#ffe0a0;background:repeating-radial-gradient(at 40%,#5f412c 0 3px,#6c4a2e 4px 7px,#725133 8px 12px);border:2px solid #9f7546;border-radius:48% 52% 45% 55%;flex-shrink:0;width:48px;min-width:48px;height:48px;min-height:48px;padding:10px;box-shadow:inset 0 0 0 2px #bb945459,0 4px 8px #10251c70}.totem-game .hud-header .button-label,.totem-game .hud-footer .button-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.totem-game .hud-footer{bottom:calc(12px + env(safe-area-inset-bottom));left:calc(12px + env(safe-area-inset-left));right:calc(12px + env(safe-area-inset-right));-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;background:0 0;border:0;justify-content:flex-end;padding:0}.totem-game .keyboard-note{color:#fff0c9;text-align:center;background:#77492bd9;border-radius:10px;max-width:620px;margin:0 auto;padding:5px 10px;font-size:12px;line-height:1.5;position:absolute;bottom:0;left:55px;right:55px}.totem-preview{background:var(--color-panel);border-radius:20px;min-height:180px;overflow:hidden}.totem-preview img{object-fit:cover;width:100%;height:220px}.totem-preview p{margin:0;padding:12px;line-height:1.5}.services-unconfigured{background:var(--color-panel);color:var(--color-text);border-radius:12px;margin:10px 0;padding:12px;line-height:1.5}@keyframes totem-strike{50%{transform:translateY(5px)scale(.98)}}@media (orientation:portrait){.totem-hero{width:60%;height:24%;bottom:28%}.totem-story{width:86%;max-height:13%;top:29%}.totem-track{gap:14px;width:72%;bottom:48%}.totem-note{height:48px}.totem-drums{left:1%;right:1%;bottom:calc(8% + var(--totem-safe-bottom,0px))}.totem-drums .totem-drum{width:46%;min-height:108px}.totem-game .hud-header{gap:6px}.totem-game .hud-stats{gap:4px}.totem-game .hud-stats .stat{min-width:53px;padding:5px 7px}.totem-game #hud-goal{padding:8px;font-size:10px}.totem-game #hud-title{top:19%}.totem-game .keyboard-note{font-size:11px}}@media (height<=500px) and (orientation:landscape){.totem-hero{width:35%;height:34%;bottom:32%}.totem-story{width:54%;max-height:22%;font-size:12px;top:32%}.totem-drums .totem-drum{width:26%;max-width:210px;max-height:210px}.totem-track{gap:14px;width:34%;bottom:14%}.totem-note{height:40px}.totem-game #hud-title{font-size:25px;top:19%}.totem-game .keyboard-note{font-size:11px}}@media (prefers-reduced-motion:reduce){.totem-drum.struck{animation:none}}.totem-game[data-reduced-motion=true] .totem-drum.struck{animation:none}.totem-game .hud-footer .ui-button{top:calc(70px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));position:fixed}.totem-note-group{flex:1;gap:8px;min-width:0;display:flex}.totem-track[data-length="6"],.totem-track[data-length="8"]{gap:18px;width:min(44%,580px)}.totem-note.judged-perfect,.totem-note.judged-good{border-style:double;box-shadow:0 0 15px #f4d89b}.totem-note.judged-miss{opacity:.7;border-style:dashed}.totem-spotlight:after{content:"◆";color:#ffebae;font-size:10px;position:absolute;top:-16px}.totem-feedback{color:#fff9e8;text-align:center;background:#492619eb;border-radius:12px;max-width:70%;margin:0;padding:4px 10px;font-size:13px;position:absolute;top:23%;left:50%;transform:translate(-50%)}.totem-feedback:empty{display:none}.totem-world-response{pointer-events:none;opacity:calc(.12 + var(--journey-progress,0) * .36);background:radial-gradient(at 50% 38%,#ffd88844,#0000 60%);transition:opacity .6s;position:absolute;inset:0}.totem-world-response span{left:calc(9% + var(--index) * 10%);top:calc(18% + var(--row,0) * 8%);background:#ffe9b4;border-radius:50%;width:8px;height:8px;position:absolute;box-shadow:0 0 20px 7px #ffc96466}.totem-hit .totem-world-response{opacity:.75}.totem-stage[data-scene-id=rune-stone-circle] .totem-world-response span,.totem-stage[data-scene-id=echo-river-confluence] .totem-world-response span{background:#e1fff3;border-radius:50% 0 50% 50%;transform:rotate(45deg)}.totem-stage[data-scene-id=paper-campfire] .totem-world-response span{border-radius:80% 0;width:14px}.totem-settings{border-top:1px solid #e8cc9166;grid-column:1/-1;padding-top:16px}.totem-settings p{font-size:13px;line-height:1.6}.totem-settings .setting{margin:12px 0}.totem-calibration-pulse{text-align:center;color:#fff9e8;border:2px solid #0000;padding:8px}.totem-calibration-pulse.active{border-color:#ebd196;border-radius:12px}.totem-practice-notes{gap:8px;margin:16px 0;display:flex}dialog[data-panel=totem-focused-practice] .totem-practice-notes{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}dialog[data-panel=totem-focused-practice] .totem-practice-drums .totem-drum span{text-shadow:none;background:#fff0c9eb;border-radius:10px;padding:4px;font-size:clamp(12px,1.8vw,18px)}@media (orientation:portrait){.totem-track{width:78%;padding-top:12px;top:43%;bottom:auto}.totem-track[data-length="6"],.totem-track[data-length="8"]{flex-direction:column;gap:8px;width:78%}.totem-track .totem-note{height:40px;font-size:12px}.totem-hero{height:18%;bottom:28%}.totem-feedback{font-size:12px;top:25%}}@media (prefers-reduced-motion:reduce){.totem-world-response{transition:none}}#app[data-reduced-motion=true] .totem-world-response{transition:none}.totem-game #hud-title{background:#714425e8;border-radius:20px;padding:6px 14px}.totem-collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;padding:0;list-style:none;display:grid}.totem-collection li{color:var(--color-text);text-align:center;border:1px dashed #c2d1b18c;border-radius:16px;padding:12px}.totem-collection li.collected{border-style:solid;border-color:#efd496}.totem-collection img{object-fit:cover;border-radius:10px;width:100%;height:75px}.totem-collection li:not(.collected) img{filter:grayscale()}.totem-collection span,.totem-collection small{overflow-wrap:anywhere;margin-top:6px;display:block}@media (orientation:portrait){.totem-stage[data-phrase-length="6"] .totem-hero,.totem-stage[data-phrase-length="8"] .totem-hero{height:14%;bottom:24%}}.totem-note{border-radius:4px 14px}.totem-hero{filter:drop-shadow(0 8px 8px #512a2460)}.totem-relay{color:#fff4df;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);text-align:center;background:#40231cbd;border:1px solid #ffe1af66;border-radius:12px;width:max-content;max-width:90%;margin:0;padding:5px 12px;font-size:clamp(12px,1.4vw,16px);line-height:1.4;position:absolute;top:39%;left:50%;transform:translate(-50%)}.totem-stage[data-paired=true] .totem-hero-ato{width:25%;left:39%}.totem-stage[data-paired=true] .totem-hero-echo{width:25%;left:61%}.totem-hero[hidden],.totem-relay[hidden]{display:none}.totem-caller-active{filter:drop-shadow(0 0 12px #ffe5a5)}.totem-note-group{border:1px solid #ffe1af44;border-radius:10px;padding:3px}.totem-group-active{background:#fff4df15;border:2px solid #fff4df}.totem-note-group[data-caller=echo]{border-style:dashed}.totem-story,.totem-game #hud-title,.totem-game .hud-stats .stat{-webkit-backdrop-filter:blur(12px);background:#40231cbd}@media (orientation:portrait){.totem-relay{top:39%}.totem-stage[data-paired=true] .totem-hero-ato{width:38%;left:35%}.totem-stage[data-paired=true] .totem-hero-echo{width:38%;left:65%}}@media (height<=500px) and (orientation:landscape){.totem-relay{font-size:11px;top:54%}.totem-stage[data-paired=true] .totem-hero-ato{width:24%;left:39%}.totem-stage[data-paired=true] .totem-hero-echo{width:24%;left:61%}}@media (prefers-reduced-transparency:reduce),(prefers-contrast:more){.totem-story,.totem-relay,.totem-game #hud-title,.totem-game .hud-stats .stat{-webkit-backdrop-filter:none;backdrop-filter:none;background:#543629}}.totem-stage[data-paired=true] .totem-hero{width:20%;height:25%;bottom:31%}@media (orientation:portrait){.totem-stage[data-paired=true] .totem-hero{width:28%;height:10%;bottom:28%}.totem-stage[data-paired=true] .totem-drums{bottom:calc(5% + var(--totem-safe-bottom,0px))}}@media (height<=500px) and (orientation:landscape){.totem-stage[data-paired=true] .totem-hero{width:20%;height:25%;bottom:35%}.totem-stage[data-paired=true] .totem-story{max-height:10%;top:30%}.totem-stage[data-paired=true] .totem-relay{padding-block:3px;top:66%}.totem-stage[data-paired=true] .totem-track{bottom:9%}}@media (orientation:portrait) and (height<=720px){.totem-stage[data-paired=true] .totem-track{top:45%}.totem-stage[data-paired=true] .totem-note{height:30px}.totem-stage[data-paired=true] .totem-hero{height:9%;bottom:28.5%}}@media (orientation:landscape) and (height>=501px){.totem-track[data-length="6"],.totem-track[data-length="8"]{width:min(36%,580px)}.totem-track[data-length="6"] .totem-note,.totem-track[data-length="8"] .totem-note{font-size:clamp(12px,1.2vw,16px)}}@media (orientation:portrait) and (width>=600px){.totem-stage[data-paired=true] .totem-hero{height:9%;bottom:35%}}@media (orientation:landscape) and (height>=501px){.totem-stage[data-paired=true] .totem-hero{width:18%}}:root{--scene-control:var(--color-panel)}@supports (background:color-mix(in srgb, white, transparent)){:root{--scene-control:color-mix(in srgb, var(--color-panel) 92%, transparent)}}#app .scene-menu{padding:max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));display:block}#app .scene-menu .menu-card{width:min(100%,1080px);min-height:100%;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;border-radius:0;flex-direction:column;gap:18px;margin:0 auto;padding:0;display:flex;position:relative}#app .scene-menu .menu-card:before,#app .scene-menu .menu-card:after{display:none}#app .scene-menu .menu-heading{align-items:center;gap:8px;padding:60px 0 0}#app .scene-menu .menu-heading :is(h1,.eyebrow,.subtitle){width:fit-content;max-width:100%;color:var(--color-text);background:var(--scene-control);text-shadow:none;overflow-wrap:anywhere;border-radius:20px;margin:0;padding:6px 14px;line-height:1.35}#app .scene-menu .menu-heading h1{letter-spacing:.02em;font-size:clamp(27px,6vw,40px)}#app .scene-menu .menu-heading h1:before{display:none}#app .scene-menu .menu-heading .eyebrow{letter-spacing:.1em;font-size:10px}#app .scene-menu .menu-heading .subtitle{max-width:380px;font-size:13px}#app .scene-menu .menu-motif{background-color:#0000;flex-shrink:0;order:4;width:clamp(140px,30vh,240px);height:clamp(140px,30vh,240px);margin:12px auto;transform:none}#app .scene-menu .menu-tools{gap:8px;display:flex;position:absolute;top:0;right:0}#app .scene-menu .menu-tools .ui-button{width:48px;height:48px;color:var(--color-text);background:var(--scene-control);border-radius:50%;padding:10px}#app .scene-menu .menu-tools .button-label{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}#app .scene-menu .menu-dock{gap:10px;width:min(100%,480px);margin:auto auto 0;display:grid}#app .scene-menu .menu-actions{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:10px;display:grid}#app .scene-menu .menu-actions .ui-button{min-height:56px;padding:12px 10px;font-size:15px}#app .scene-menu #menu-levels{color:var(--color-text);background:var(--scene-control)}#app .scene-menu .menu-footer{flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 12px;display:flex}#app .scene-menu :is(.progress-note,.menu-stats){color:var(--color-text);background:var(--scene-control);border:0;border-radius:14px;margin:0;padding:6px 10px;font-size:11px}#app .scene-menu .menu-stats .stat{background:0 0;border:0;padding:0}#app .scene-menu .menu-stats .stat-value{font-size:14px}#app .scene-menu .menu-stats :is(.stat-label,.stat-unit){font-size:10px}#app .scene-menu #menu-collection{background:var(--scene-control);min-height:48px;color:var(--color-text);padding:8px 12px;font-size:12px}@media (orientation:landscape) and (height<=600px){#app .scene-menu .menu-card{flex-direction:row;align-items:center;gap:32px}#app .scene-menu .menu-heading{gap:6px;width:46%;padding:0}#app .scene-menu .menu-heading h1{font-size:27px}#app .scene-menu .menu-motif{width:100px;height:100px;margin:2px auto}#app .scene-menu .menu-dock{width:48%;margin:60px 0 0}}@media (height<=650px) and (orientation:portrait){#app .scene-menu .menu-heading{gap:5px;padding-top:56px}#app .scene-menu .menu-motif{width:140px;height:140px;margin:4px auto}#app .scene-menu .menu-card{gap:10px}}@media (forced-colors:active){#app .scene-menu :is(.ui-button,.progress-note,.menu-stats,h1,.eyebrow,.subtitle){color:canvastext;background:canvas}}#app .ui-dialog{width:min(420px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));max-height:min(600px,68dvh);margin:auto auto max(16px, env(safe-area-inset-bottom));padding:18px}#app .ui-dialog h2{border-bottom:0;margin:0 0 12px;padding-bottom:0;font-size:24px}#app .ui-dialog .dialog-body{gap:10px}#app .ui-dialog .dialog-body>p{margin:0;font-size:14px;line-height:1.5}#app .ui-dialog :is(summary,.rhythm-mode-controls .ui-button){cursor:pointer;min-height:48px;padding:10px}#app .ui-dialog summary{border:1px solid var(--color-border);border-radius:12px;align-items:center;gap:8px;display:flex}#app .ui-dialog summary:before{content:"+";font-weight:700}#app .ui-dialog details[open]>summary:before{content:"−"}#app .ui-dialog details p{white-space:pre-line;font-size:13px;line-height:1.6}#app .rhythm-mode-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;display:grid}#app .rhythm-mode-controls .ui-button{padding:8px 4px;font-size:12px}#app .rhythm-mode-controls [aria-pressed=true]{border-color:var(--color-focus);box-shadow:inset 0 0 0 1px var(--color-focus)}#app .mode-hint{margin:6px 0 0;font-size:12px;line-height:1.5}#app .ui-dialog[data-panel=result] .result-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}#app .ui-dialog[data-panel=result] .result-actions .ui-button{padding:10px 8px;font-size:13px}#app .ui-dialog[data-panel=result] .result-actions .primary{grid-column:1/-1}#app .ui-dialog[data-panel=result] .result-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#app .ui-dialog[data-panel=result] .stat{min-width:0;padding:8px}#app .ui-dialog[data-panel=result] .stat-label{font-size:11px}@media (height<=500px) and (orientation:landscape){#app .ui-dialog{max-height:calc(100dvh - 24px);margin-bottom:12px}}#app:is(.forest-game,.totem-game,.clockwork-game) #hud-title{width:max-content;max-width:74%;padding:6px 12px;font-size:clamp(17px,2.2vw,25px);left:50%;right:auto;transform:translate(-50%)}@media (width<=380px) and (orientation:portrait){#app.clockwork-game #hud-title{max-width:calc(100% - 136px)}}#app :is(.forest-story,.totem-story,.clockwork-story){border-radius:16px 16px 16px 4px;width:fit-content;max-width:min(72%,300px);padding:8px 12px;font-size:clamp(12px,1.5vw,15px);line-height:1.5}#app :is(.forest-feedback,.totem-feedback,.clockwork-feedback){padding:5px 10px;font-size:12px}.clockwork-world-response{pointer-events:none;position:absolute;inset:0}.clockwork-world-response span{left:calc(9% + var(--index) * 10%);top:calc(18% + var(--row) * 8%);background:#fff0af;border-radius:3px;width:9px;height:9px;position:absolute;box-shadow:0 0 16px 5px #f6cd6e70}#app :is(.forest-world-response,.totem-world-response,.clockwork-world-response){opacity:calc(.12 + var(--journey-progress,0) * .2 + var(--combo-energy,0) * .55);transition:opacity .2s ease-out}#app .world-hit :is(.forest-hero,.totem-hero,.clockwork-dingding){filter:drop-shadow(0 0 14px #ffdfa6)}#app [data-energy="2"] :is(.forest-world-response,.totem-world-response,.clockwork-world-response) span,#app [data-energy="3"] :is(.forest-world-response,.totem-world-response,.clockwork-world-response) span{animation:1.6s ease-in-out infinite alternate world-sparkle;animation-delay:calc(var(--index) * -.17s)}#app .totem-world-response span{border-radius:1px;transform:rotate(45deg)}@keyframes world-sparkle{to{transform:translateY(-7px)scale(1.3)}}@media (prefers-reduced-motion:reduce){#app :is(.forest-world-response,.totem-world-response,.clockwork-world-response){transition:none}#app :is(.forest-world-response,.totem-world-response,.clockwork-world-response) span{animation:none}}#app[data-reduced-motion=true] :is(.forest-world-response,.totem-world-response,.clockwork-world-response){transition:none}#app[data-reduced-motion=true] :is(.forest-world-response,.totem-world-response,.clockwork-world-response) span{animation:none}@media (height<=500px) and (orientation:landscape){#app .ui-dialog[data-panel$=-practice]{width:min(720px,100vw - 40px);padding:16px}#app .ui-dialog[data-panel$=-practice] .dialog-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:8px 16px;display:grid}#app .ui-dialog[data-panel$=-practice] .dialog-body>p{grid-column:1}#app .ui-dialog[data-panel$=-practice] [class$=-practice-drums]{grid-area:1/2/span 2;gap:8px;margin:0}#app .ui-dialog[data-panel$=-practice] [class$=-practice-drums] button{width:46%;min-width:48px;min-height:80px;max-height:104px}#app .ui-dialog[data-panel$=-practice] .practice-pattern{grid-area:3/1/auto/-1}#app .ui-dialog[data-panel$=-practice] #practice-phase{grid-area:4/1}#app .ui-dialog[data-panel$=-practice] #practice-feedback{grid-area:4/2}}#app .practice-pattern{grid-template-columns:repeat(var(--practice-columns,4), minmax(0, 1fr));gap:8px;display:grid}#app .practice-beat{border:1px solid var(--color-border);background:var(--glass-chrome);text-align:center;border-radius:10px;flex:48px;min-width:48px;padding:6px;font-size:12px;line-height:1.4}#app .practice-beat[data-lane=rest]{border-style:dashed}#app .practice-beat[aria-current=step]{background:var(--color-primary);color:var(--color-accent-ink);outline:2px solid var(--color-focus);outline-offset:1px;border-color:var(--color-focus);font-weight:750}#app .practice-actions{gap:10px;display:grid}#app .practice-instructions p{font-size:14px;line-height:1.5}#app #practice-feedback{min-height:3em}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]){max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .practice-actions{grid-template-columns:repeat(2,minmax(0,1fr))}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .practice-actions .ui-button{overflow-wrap:anywhere;padding:8px;font-size:14px;line-height:1.3}@media (height<=650px) and (orientation:portrait){#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]){padding:12px}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) h2{margin-bottom:6px;font-size:18px;line-height:1.2}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .dialog-body{gap:6px}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) [class$=-practice-drums]{gap:8px;margin:0}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) [class$=-practice-drums] button{width:48%;min-width:48px;height:80px;min-height:80px}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) :is(#practice-phase,#practice-feedback){font-size:12px;line-height:1.5}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .practice-pattern{gap:4px}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .practice-beat{padding:4px}}@media (height<=500px) and (orientation:landscape){#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .practice-actions{display:contents}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) .practice-instructions{grid-area:1/1/span 2}#app .ui-dialog[data-panel$=-practice]:not([data-panel$=-focused-practice]) #practice-feedback{min-height:0}}#app .practice-beat[data-feedback]{position:relative}#app .practice-beat[data-feedback]:after{background:var(--color-panel);color:var(--color-text);border-radius:50%;padding:0 3px;font-weight:800;position:absolute;top:-6px;right:-2px}#app .practice-beat[data-feedback=hit]:after{content:"✓"}#app .practice-beat[data-feedback=miss]:after{content:"×"}#app :is(.forest-note.judged-miss,.totem-note.judged-miss,.clockwork-note[data-judgment=miss]){opacity:1;position:relative}#app :is(.forest-note.judged-miss,.totem-note.judged-miss,.clockwork-note[data-judgment=miss]):before{content:"×";background:var(--color-panel);color:var(--color-text);border-radius:50%;padding:0 4px;font-size:18px;font-weight:800;line-height:1.1;position:absolute;top:-12px;right:-4px}#app :is(.forest-feedback,.totem-feedback,.clockwork-feedback){font-size:14px;line-height:1.4}#app .ui-dialog[open][data-panel$=-ready]{max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));flex-direction:column;display:flex;overflow:hidden}#app .ui-dialog[open][data-panel$=-ready] h2{flex-shrink:0}#app .ui-dialog[open][data-panel$=-ready] .dialog-body{min-height:0;overflow:hidden}#app .ready-content{overscroll-behavior:contain;flex-direction:column;gap:10px;min-height:0;padding:3px;display:flex;overflow-y:auto}#app .ready-content p{margin:0;font-size:14px;line-height:1.5}#app .ready-details p{margin-block:10px}#app .ready-actions{flex-shrink:0;gap:8px;padding:3px;display:grid}#app .ready-actions .ui-button{overflow-wrap:anywhere;min-height:48px;padding:10px;font-size:14px}#app [class$=-practice-drums][data-cue="0"] #practice-left,#app [class$=-practice-drums][data-cue="1"] #practice-right{outline:3px solid var(--color-focus);outline-offset:-3px;border-radius:16px}@media (height<=650px){#app .ui-dialog[open][data-panel$=-ready]{padding:12px}#app .ui-dialog[open][data-panel$=-ready] h2{margin-bottom:8px;font-size:20px;line-height:1.25}}@media (height<=500px) and (orientation:landscape){#app .ui-dialog[open][data-panel$=-ready]{width:min(720px,100vw - 40px)}#app .ready-actions{grid-template-columns:1fr 1fr}}#app .scene-menu{padding:max(76px, calc(env(safe-area-inset-top) + 16px)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));overflow:auto}#app .menu-title-stage{grid-template-columns:minmax(0,440px) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,72px);width:min(100%,1080px);min-height:100%;margin:auto;display:grid}#app .scene-menu .has-native-title{background:var(--totem-dialog-glass);width:100%;min-height:0;-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);box-shadow:var(--glass-shadow), inset 0 1px 1px #ffffff70;border:1px solid #ffe1af66;border-radius:10px 28px;flex-direction:column;align-items:stretch;gap:16px;padding:24px;display:flex}#app .has-native-title .menu-heading{width:100%;padding:0;display:block}#app .scene-menu .has-native-title .menu-heading .menu-native-title{aspect-ratio:2;width:100%;min-height:5.2em;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;letter-spacing:0;overflow-wrap:anywhere;background:0 0;border:0;place-items:center;margin:0;padding:0;font-size:1.5rem;line-height:1.3;display:grid;position:relative}.menu-native-title img{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.menu-native-title img[hidden]{display:none}.menu-native-title[data-title-status=loaded] .menu-native-fallback{clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}#app .has-native-title .menu-tools{order:3;justify-content:flex-end;position:static}#app .has-native-title .menu-tools .ui-button{min-width:48px;min-height:48px}#app .has-native-title .menu-dock{flex-direction:column;align-items:stretch;gap:12px;width:100%;margin:0;display:flex}#app .has-native-title .menu-actions{grid-template-columns:minmax(0,1fr);width:100%}#app .has-native-title .menu-actions .ui-button{height:auto;min-height:56px;font-size:1rem}#app .has-native-title .menu-footer{gap:8px;margin:0}#app .has-native-title :is(.progress-note,.menu-stats){box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;margin:0;padding:0}#app .has-native-title .menu-stats .stat{background:0 0;border:0}#app .has-native-title :is(.stat-label,.stat-unit,.progress-note){font-size:.875rem}#app .has-native-title .stat-value{font-size:1.25rem}#app .menu-title-hero{pointer-events:none}#app .menu-title-hero .menu-motif{background-size:contain;width:100%;height:min(62vh,560px);min-height:140px;margin:0}#app .ui-dialog[open]{top:max(76px, calc(env(safe-area-inset-top) + 12px));bottom:max(12px, env(safe-area-inset-bottom));height:fit-content;max-height:calc(100dvh - max(76px, calc(env(safe-area-inset-top) + 12px)) - max(12px, env(safe-area-inset-bottom)));min-height:0;margin-block:auto;display:block;overflow-y:auto}#app .ui-dialog .dialog-body{overflow:visible}#app .ui-dialog :is(.dialog-header,.dialog-actions){flex-shrink:0}#app .ui-dialog h2{overflow-wrap:anywhere;font-size:1.5rem}#app .ui-dialog :is(.ui-button,.setting,select,.ui-copy,.modal-status),#app .ui-dialog .dialog-body>p{font-size:1rem}#app .ui-dialog :is(summary,.rhythm-mode-controls .ui-button,details p,.ready-content p,.mode-hint,.totem-settings p,.totem-preview p){font-size:.875rem}#app .ui-dialog :is(select,input[type=range]){min-height:48px}#app .ui-dialog :is(select,.ui-button,.setting>span){overflow-wrap:anywhere;min-width:0}#app .ui-dialog[data-panel=settings] .dialog-body{flex-direction:column;align-items:stretch;display:flex}#app .ui-dialog .services-menu-actions{grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr))}#app .ui-dialog .setting{flex-wrap:wrap;grid-template-columns:minmax(0,1fr)}#app .ui-dialog .setting>:is(span,output,select,input){grid-column:1/-1}#app .ui-dialog .setting>:is(span,output){font-size:1rem}#app .ui-dialog .setting select{width:100%}#app .ui-dialog .level-details h3{overflow-wrap:anywhere;font-size:1rem}#app .ui-dialog .level-details p{overflow-wrap:anywhere;font-size:.875rem}#app .ui-dialog .level-picker{grid-template-rows:repeat(4,max-content);height:auto;min-height:0}#app .ui-dialog .level-preview{flex-wrap:wrap}#app .ui-dialog .level-list{grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(64px,auto)}#app .ui-dialog .level-card{height:auto;min-height:64px}#app .ui-dialog .level-card .button-label{white-space:normal;overflow-wrap:anywhere;min-width:0}#app .ui-dialog .level-navigation{grid-template-columns:48px minmax(0,1fr) 48px}#app .ui-dialog .level-page{white-space:normal;overflow-wrap:anywhere;font-size:.875rem}#app .ui-dialog .level-navigation #levels-back{grid-column:1/-1;min-height:48px}#app .ui-dialog[data-panel=result] :is(.result-stats,.result-actions){grid-template-columns:minmax(0,1fr);gap:12px;display:grid}#app .ui-dialog[data-panel=result] .result-actions .ui-button{width:100%;height:auto;font-size:1rem}#app .ui-dialog[data-panel=result] .stat-value{font-size:1.375rem}#app .ui-dialog[data-panel=result] .stat-primary .stat-value{font-size:1.75rem}#app .ui-dialog[data-panel=result] :is(.stat-label,.stat-unit){font-size:.875rem}#app .menu-screen:not(.scene-menu) .menu-card{background:var(--totem-dialog-glass);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}#app .menu-screen:not(.scene-menu) .menu-card h1{font-size:1.5rem}#app.totem-game .hud-header{top:max(76px, calc(env(safe-area-inset-top) + 12px));scrollbar-width:thin;pointer-events:auto;grid-template-rows:minmax(104px,auto) auto auto;grid-template-columns:minmax(0,1fr) 48px;align-items:start;gap:8px;max-height:30dvh;display:grid;overflow:auto}#app.totem-game .hud-info{display:contents}#app.totem-game #hud-title{white-space:normal;overflow-wrap:anywhere;grid-area:1/1;place-self:start center;width:fit-content;max-width:100%;font-size:1.125rem;position:static;transform:none}#app.totem-game #hud-goal{white-space:nowrap;grid-area:1/1;place-self:end center;width:fit-content;max-width:100%;margin:0;padding:4px 8px;font-size:.75rem}#app.totem-game .hud-header #pause{grid-area:1/2;position:sticky;top:0}#app.totem-game .hud-stats{grid-area:2/1/auto/-1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;display:grid}#app.totem-game .hud-stats .stat{min-width:0}#app.totem-game .hud-stats .stat-primary{flex-wrap:wrap;grid-column:1/-1;justify-content:space-between;align-items:center;gap:4px;padding:4px 10px;display:flex}#app.totem-game .hud-stats :is(.stat-label,.stat-unit){white-space:normal;font-size:.75rem}#app.totem-game .hud-stats .stat-value{font-size:1.25rem}#app.totem-game .hud-header #hud-hint{grid-area:3/1/auto/-1;width:auto;max-width:none;margin:0;font-size:.75rem;position:static;transform:none}#app.totem-game .hud-footer .keyboard-note{display:none}#app .totem-story,#app .totem-feedback{font-size:.875rem;overflow:auto}#app .totem-stage:has(.totem-feedback:not(:empty)) :is(.totem-story,.totem-count){visibility:hidden}#app .totem-track{gap:6px;padding:4px;display:flex;overflow-x:auto}#app .totem-note{flex:1 0 auto;min-width:max-content;height:auto;min-height:2.8em;padding-inline:.4em;font-size:.875rem}#app .totem-count{font-size:2rem}#app .totem-drum{place-items:center;display:grid}#app .totem-drum span{overflow-wrap:anywhere;max-width:100%;padding:6px;font-size:.875rem;line-height:1.2;position:static}#app .totem-calibration-pulse{font-size:1rem}@media (width<=700px){#app .menu-title-stage{grid-template-columns:minmax(0,440px);justify-content:center;gap:16px}#app .menu-title-hero{order:-1}#app .menu-title-hero .menu-motif{height:clamp(120px,24vh,240px)}#app .scene-menu .has-native-title{padding:20px}}@media (width>=700px) and (height<=500px){#app .menu-title-stage{grid-template-columns:minmax(0,480px) minmax(0,1fr);align-items:start}#app .menu-title-hero{position:sticky;top:0}#app.totem-game .hud-header{width:35%;max-height:calc(100dvh - 96px);right:auto}#app .totem-drums{bottom:12px;left:43%;right:2%}#app .totem-drums .totem-drum{width:142px;height:122px;min-height:96px}#app .totem-hero{display:none}}@media (forced-colors:active){#app .scene-menu .has-native-title{color:canvastext;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;background:canvas;border-color:canvastext}#app :focus-visible{outline-color:highlight}}#app .totem-drums{bottom:max(12px, var(--totem-safe-bottom,0px))}#app .ui-dialog[open][data-panel^=totem-]{max-height:calc(100dvh - max(76px, calc(env(safe-area-inset-top) + 12px)) - max(12px, env(safe-area-inset-bottom)));display:block;overflow-y:auto}#app .ui-dialog[open][data-panel^=totem-] .dialog-body{display:block;overflow:visible}#app .ui-dialog[open][data-panel^=totem-] .ready-content{overflow:visible}#app .ui-dialog[open][data-panel^=totem-] :is(.ready-actions,.practice-actions){grid-template-columns:minmax(0,1fr);display:grid}#app .ui-dialog[open][data-panel^=totem-] :is(.ready-actions,.practice-actions) .ui-button{height:auto;min-height:48px;font-size:1rem}#app .ui-dialog[open][data-panel^=totem-] .practice-pattern{grid-template-columns:repeat(auto-fit,minmax(min(100%,4em),1fr))}#app .ui-dialog[open][data-panel^=totem-] .practice-beat{overflow-wrap:anywhere;min-width:0;font-size:.875rem}#app .ui-dialog .totem-practice-notes{max-width:100%;overflow-x:auto}#app .ui-dialog :is(.ui-copy,.dialog-body>p,details p,summary){overflow-wrap:anywhere}#app.totem-game .totem-narration{background:var(--totem-dialog-glass);color:var(--color-text);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);scrollbar-width:thin;border:1px solid #ffe1af66;border-radius:16px;padding:6px 10px;position:absolute;overflow:auto;transform:translate(-50%)}#app.totem-game #totem-narration :is(.totem-story,.totem-relay,.totem-count,.totem-feedback){-webkit-backdrop-filter:none;backdrop-filter:none;width:100%;max-width:100%;max-height:none;color:var(--color-text);text-shadow:none;box-shadow:none;overflow-wrap:anywhere;background:0 0;border:0;margin:0;padding:0;position:static;transform:none}#app.totem-game .totem-narration .totem-story{font-size:.875rem;line-height:1.35}#app.totem-game .totem-narration .totem-relay{margin-bottom:6px;font-size:.75rem;line-height:1.3}#app.totem-game .totem-narration:has(.totem-feedback:not(:empty)) :is(.totem-story,.totem-count){display:none}#app .totem-track{justify-content:flex-start;padding:4px}#app .totem-track:before,#app .totem-note:before{display:none}#app .totem-note-group{flex:none;min-width:0}#app .totem-note{flex:1 0 auto;min-width:max-content;min-height:2.8em;padding-inline:.4em}#app .totem-drums .totem-drum span{background:var(--totem-drum-label-surface);color:var(--totem-drum-label-ink);white-space:normal;border-radius:12px}#app .ui-dialog .totem-practice-drums .totem-drum span{white-space:normal;background:var(--totem-drum-label-surface);color:var(--totem-drum-label-ink);border-radius:12px;font-size:.875rem}#app .totem-track{flex-wrap:nowrap;align-items:stretch}#app .totem-note-group{flex-wrap:nowrap;display:flex}#app .totem-track,#app .totem-note-group{flex-direction:row}#app .scene-menu .has-native-title .menu-stats :is(.stat-label,.stat-unit){font-size:.875rem}#app .scene-menu .has-native-title .menu-footer .ui-button{height:auto;min-height:48px;font-size:.875rem}#app .scene-menu .has-native-title .menu-stats .stat-value{font-size:1.25rem}#app .menu-card :is(.storage-notice,.ui-copy){overflow-wrap:anywhere;font-size:.875rem}#app.totem-game #totem-narration .totem-count{font-size:1.25rem;line-height:1}#app .scene-menu .has-native-title #menu-collection{font-size:.875rem}#app .ui-dialog[open][data-panel^=totem-] :is(#practice-phase,#practice-feedback){font-size:1rem;line-height:1.5}
