.he-game{--he-paper:var(--ui-panel);--he-ink:var(--ui-ink);--he-muted:var(--ui-muted);color:var(--he-ink);background:var(--he-paper);border:1px solid var(--ui-line);border-radius:22px;overflow:hidden;min-width:0;isolation:isolate;font-family:var(--font-body,system-ui)}
.he-game *{box-sizing:border-box}.he-game [hidden]{display:none!important}.he-game :is(p,h3,h4){margin:0}
.he-game button{font:600 12px var(--font-body,system-ui);min-height:42px;padding:10px 14px;background:var(--ui-soft);color:var(--he-ink);border:1px solid var(--ui-line);border-radius:10px;box-shadow:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transform:none;touch-action:manipulation}
.he-game button:hover:not(:disabled){background:var(--ui-hover);border-color:var(--ui-accent);transform:none}.he-game button:disabled{cursor:default;opacity:.45}.he-game :is(button,input,summary):focus-visible{outline:3px solid var(--ui-accent);outline-offset:4px}.he-game button>svg{width:18px;height:18px;flex-shrink:0}
.he-game .he-primary{background:var(--ui-primary);color:var(--ui-on-primary);border-color:transparent}.he-game .he-primary:hover:not(:disabled){background:var(--ui-primary);filter:brightness(1.07)}
.he-eyebrow{font-size:9px;font-weight:700;letter-spacing:.2em;line-height:1.6;color:var(--ui-accent)}
.he-hero{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:30px 32px 25px;border-bottom:1px solid var(--ui-line);background:radial-gradient(ellipse at 100% 0,#c7aa791a,transparent 65%)}
.he-hero h3{font:400 clamp(30px,4.3vw,44px)/1.12 Georgia,'Times New Roman',serif;letter-spacing:-.035em;margin:10px 0 14px}.he-hero p:last-child{color:var(--he-muted);font-size:12px;line-height:1.8}.he-hero-mark{width:124px;flex-shrink:0;color:var(--ui-gold);text-align:center}.he-hero-mark svg{width:104px;height:104px}.he-hero-mark span{display:block;font-size:7px;letter-spacing:.17em;margin-top:9px}
.he-settings{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 28px 10px;flex-wrap:wrap}.he-modes{display:flex;padding:4px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:13px;gap:4px}.he-game .he-modes button{display:grid;justify-items:start;gap:5px;min-width:95px;border:1px solid transparent;background:transparent;padding:10px 14px}.he-modes b{font-size:12px;font-weight:600}.he-modes span{font-size:9px;color:var(--he-muted);font-weight:400}.he-game .he-modes button[aria-pressed=true]{background:var(--he-paper);border-color:var(--ui-line);box-shadow:0 2px 6px #091b2714;color:var(--ui-accent)}
.he-audio-controls{display:flex;align-items:center;gap:12px}.he-audio-controls button{width:42px;padding:10px;position:relative}.he-audio-controls button[aria-pressed=false]{color:var(--he-muted)}.he-audio-controls button[aria-pressed=false]:after{content:'';position:absolute;width:24px;border-top:2px solid currentColor;transform:rotate(-45deg)}.he-audio-controls label{display:grid;grid-template-columns:1fr 1fr;gap:7px 15px;font-size:9px;color:var(--he-muted);width:126px}.he-audio-controls output{text-align:right}.he-audio-controls input{grid-column:1/-1;width:100%;min-height:18px;margin:0;accent-color:var(--ui-primary);cursor:pointer}.he-mode-help{padding:0 28px 21px;font-size:11px;line-height:1.7;color:var(--he-muted)}
.he-studio{position:relative;isolation:isolate;overflow:hidden;padding:24px;background:radial-gradient(ellipse at 50% 0,#31545577,transparent 75%),repeating-linear-gradient(92deg,#aa8e5822 0 1px,transparent 1px 4px) 0 0/10px 100% no-repeat,repeating-linear-gradient(89deg,#aa8e5822 0 1px,transparent 1px 5px) 100% 0/10px 100% no-repeat,#102b32;color:#e6eee7;border-top:1px solid #bfa57677;border-bottom:1px solid #bfa57677;outline-offset:-4px}
.he-studio:before,.he-studio:after{content:'';position:absolute;top:10px;width:4px;height:4px;border:1px solid #dbc5a366;background:#7f725a;border-radius:50%;box-shadow:0 calc(100% + 430px) #7f725a;pointer-events:none}.he-studio:before{left:7px}.he-studio:after{right:7px}
.he-console{display:grid;grid-template-columns:38px minmax(170px,1fr) minmax(80px,.9fr) auto;align-items:center;gap:13px;padding:16px 18px;background:linear-gradient(150deg,#18333a,#09232c);border:1px solid #91aaa62e;border-radius:12px;box-shadow:inset 0 1px #eff8d811,0 4px 12px #06192133;min-height:86px}
.he-phase-indicator{width:36px;height:36px;border:1px solid #b5d3c033;background:#9bcabb0a;border-radius:50%;display:grid;place-content:center;color:#b5d6c8}.he-phase-indicator svg{width:19px;height:19px}.he-console-label{font-size:7px;color:#a1beb9;letter-spacing:.16em;font-weight:700}.he-console-heading h4{font-size:16px;line-height:1.3;letter-spacing:-.025em;font-weight:500;margin-top:5px;color:#e8efe0}.he-wave{display:block;width:100%;height:48px;min-width:0;opacity:.75}.he-round{border-left:1px solid #9cb8ab29;padding-left:18px;min-width:91px}.he-round>span{font-size:6px;letter-spacing:.18em;color:#a8c2b9}.he-round strong{display:block;font-size:28px;line-height:1.3;letter-spacing:-.055em;font-weight:500;color:#dce6c9;font-variant-numeric:tabular-nums}.he-round small{font-size:11px;letter-spacing:0;color:#829e9e;font-weight:400}
.he-studio[data-phase=listen] :is(.he-phase-indicator,.he-console-label),.he-studio[data-phase=review] :is(.he-phase-indicator,.he-console-label){color:#ebd09b}.he-studio[data-phase=input] .he-phase-indicator{color:#b6e9cf;background:#74cbae25;border-color:#9ce2be88;box-shadow:0 0 20px #97dbaf15}.he-studio[data-phase=input] .he-console-label{color:#b6e9cf}.he-studio[data-phase=input] .he-console{border-color:#8acbaa55}
.he-message-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 2px 0;min-height:43px}.he-status{font-size:11px;line-height:1.6;color:#bdd0c7}.he-note-label{font-size:8px;color:#bed4cb;letter-spacing:.06em;white-space:nowrap;font-variant-numeric:tabular-nums}.he-steps{display:flex;gap:5px;align-items:center;min-height:23px;margin:2px 0 10px}.he-steps span{display:block;width:12px;height:3px;border-radius:3px;background:#8ba39e38;flex:0 1 12px}.he-steps span.is-done{background:#9edec4}.he-steps span.is-current{background:var(--he-playing,#e2c392);box-shadow:0 0 10px var(--he-playing,#e2c392)}.he-steps span.is-missed{background:#e8a29c}
.he-pad-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.he-pad-grid[data-voices="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.he-pad-grid:is([data-voices="5"],[data-voices="6"]){grid-template-columns:repeat(6,minmax(0,1fr))}.he-pad-grid:is([data-voices="5"],[data-voices="6"]) .he-pad{grid-column:span 2}.he-pad-grid[data-voices="5"] .he-pad:nth-child(4){grid-column:2/span 2}.he-pad-grid[data-voices="7"]{grid-template-columns:repeat(8,minmax(0,1fr))}.he-pad-grid[data-voices="7"] .he-pad{grid-column:span 2}.he-pad-grid[data-voices="7"] .he-pad:nth-child(5){grid-column:2/span 2}
.he-game .he-pad{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:12px 13px 14px;gap:0;min-width:0;border:1px solid #92b5b345;border-radius:13px;background:radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--voice) 10%,transparent),transparent 75%),linear-gradient(150deg,#294149,#15313b);box-shadow:inset 0 1px #e4e8d41a,0 5px 0 #061d28,0 9px 16px #03132138;transform:translateY(0);transition:box-shadow .15s,border-color .15s,background .15s,transform .12s;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.he-game .he-pad:hover:not(:disabled){background:radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--voice) 15%,transparent),transparent 80%),#29444b;border-color:color-mix(in srgb,var(--voice) 65%,transparent);transform:translateY(-1px)}
:root[data-theme] .game-root .he-game .he-pad:disabled{opacity:1;cursor:default}.he-game .he-pad:focus-visible{outline-color:var(--voice);outline-offset:4px}.he-pad-top{display:flex;align-items:center;justify-content:space-between;width:100%;height:20px}.he-pad kbd{display:grid;place-items:center;width:21px;height:21px;border:1px solid #b8ccbe26;border-radius:5px;color:#adbfba;background:#081f2b30;font:500 9px var(--font-body,system-ui)}.he-pad-led{width:6px;height:6px;border-radius:50%;background:color-mix(in srgb,var(--voice) 45%,#0c2932);border:1px solid #e8ecd332;box-shadow:0 1px 2px #031923}.he-art{display:block;margin:3px -9px 7px;aspect-ratio:260/160;pointer-events:none}.he-instrument{display:block;width:100%;height:auto;overflow:visible;filter:drop-shadow(0 4px 3px #04131f33)}.he-pad-caption{display:flex;justify-content:space-between;align-items:baseline;gap:8px;position:relative;z-index:1}.he-pad-caption strong{font-size:12px;letter-spacing:-.01em;font-weight:600;color:#e1ebdf}.he-pad-caption>span{font-size:8px;font-weight:400;letter-spacing:.07em;color:var(--voice)}.he-pad-description{display:block;font-size:8px;line-height:1.5;color:#9db6b3;font-weight:400;margin-top:4px}.he-pad-ripple{position:absolute;inset:5px;border-radius:9px;border:1px solid transparent;pointer-events:none}
.he-game .he-pad.is-lit{border-color:var(--voice);background:radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--voice) 26%,transparent),transparent 85%),#314a50;box-shadow:inset 0 0 32px color-mix(in srgb,var(--voice) 9%,transparent),0 4px 0 #071c28,0 0 28px color-mix(in srgb,var(--voice) 19%,transparent);transform:translateY(2px)}.he-pad.is-lit .he-pad-led{background:#f0f3d8;box-shadow:0 0 6px var(--voice),0 0 17px var(--voice)}.he-pad.is-lit .he-pad-caption strong{color:#fff6df}.he-pad.is-lit .he-pad-ripple{animation:he-ring .55s ease-out}.he-game .he-pad.is-wrong{border-color:#ed9c94;background:radial-gradient(ellipse at 50% 30%,#df987734,transparent 75%),#3b3c42;animation:he-miss .3s ease}.he-pad .he-resonance{opacity:0}.he-pad.is-lit .he-resonance{animation:he-resonate .5s ease-out}.he-pad.is-lit .he-bell{transform-origin:130px 43px;animation:he-bell .5s ease-out}.he-pad.is-lit .he-mallet{transform-origin:35px 23px;animation:he-mallet .25s ease-out}.he-pad.is-lit .he-bar{animation:he-key .26s ease-out;animation-delay:calc(var(--n)*.004s)}.he-pad.is-lit .he-tine,.he-pad.is-lit .he-string{animation:he-string .12s linear 3;transform-box:fill-box;transform-origin:center}.he-pad.is-lit .he-struck{transform:translateY(3px);fill:#ccb79b}.he-pad.is-lit .he-bow{animation:he-bow .42s ease}.he-pad.is-lit .he-glass{animation:he-glass .15s linear 3;transform-origin:130px 110px}
.he-transport{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:23px}.he-transport>div{display:flex;gap:8px}.he-game .he-transport button{min-height:42px;font-size:11px;border-color:#9bbdb241;background:#1f3d46;color:#d5e5dc}.he-game .he-transport .he-primary{background:#c9dfc4;color:#183a3d;border-color:#dde5c0;min-width:135px}.he-game .he-transport button:hover:not(:disabled){background:#34545b}.he-game .he-transport .he-primary:hover:not(:disabled){background:#d9e6cf}.he-input-hint{font-size:9px;line-height:1.7;color:#a4bcb7;text-align:right;max-width:200px}
.he-paused{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:18px;background:#071d2dcc;backdrop-filter:blur(7px)}.he-pause-card{max-width:340px;text-align:center;color:var(--he-ink);background:var(--he-paper);border:1px solid var(--ui-line);border-radius:16px;padding:27px}.he-pause-card>svg{width:31px;height:31px;color:var(--ui-accent);margin-bottom:13px}.he-pause-card h4{font:400 26px/1.2 Georgia,serif;margin:9px 0 12px;letter-spacing:-.03em}.he-pause-card>p:not(.he-eyebrow){font-size:12px;line-height:1.7;color:var(--he-muted)}.he-pause-card button{margin-top:19px}
.he-session{display:grid;grid-template-columns:auto auto minmax(100px,1fr);gap:28px;align-items:center;padding:23px 28px}.he-session>div>span{font-size:7px;font-weight:600;letter-spacing:.15em;color:var(--he-muted)}.he-session strong{display:block;font-size:25px;font-weight:500;letter-spacing:-.045em;margin-top:6px;color:var(--he-ink)}.he-session small{font-size:9px;color:var(--he-muted);letter-spacing:0;font-weight:400}.he-goal>div{height:5px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:5px;overflow:hidden;margin-top:12px}.he-goal>div>span{display:block;height:100%;background:var(--ui-accent);transition:width .25s}
.he-result{position:relative;overflow:hidden;display:flex;gap:19px;margin:0 28px 24px;padding:22px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:15px}.he-result[data-outcome=win]{background:radial-gradient(ellipse at 90% 0,#b2c99820,transparent 65%),var(--ui-soft);border-color:var(--ui-success)}.he-result-emblem{display:grid;place-content:center;flex-shrink:0;width:46px;height:46px;background:var(--ui-accent-soft);border:1px solid var(--ui-line);color:var(--ui-accent);border-radius:13px}.he-result-emblem svg{width:25px;height:25px}.he-result[data-outcome=win] .he-result-emblem{color:var(--ui-gold);background:var(--ui-gold-soft);animation:he-award .7s ease-out}.he-result h4{font:400 29px/1.2 Georgia,serif;letter-spacing:-.03em;margin:7px 0 10px}.he-result p:not(.he-eyebrow){font-size:11px;color:var(--he-muted);line-height:1.8}.he-recap{display:flex;flex-wrap:wrap;gap:5px;margin-top:14px}.he-recap>span{display:flex;align-items:center;gap:5px;border:1px solid var(--ui-line);background:var(--he-paper);padding:4px 7px;border-radius:5px;font-size:9px;color:var(--he-ink)}.he-recap small{display:inline-grid;place-items:center;background:var(--voice);color:#17313a;font-size:7px;min-width:13px;height:13px;border-radius:50%}.he-recap>span.is-expected{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent)}.he-result-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.he-result-actions button{font-size:11px}
.he-guide{margin:0 28px 25px;border:1px solid var(--ui-line);border-radius:12px;overflow:hidden}.he-guide summary{font-size:12px;font-weight:600;padding:16px;cursor:pointer}.he-guide summary span{color:var(--he-muted);font-size:10px;font-weight:400;margin-left:15px}.he-guide>div{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding:5px 20px 20px}.he-guide h4{font-size:12px;margin-bottom:9px}.he-guide p{font-size:11px;color:var(--he-muted);line-height:1.8}.he-guide .he-save-note{padding:0 20px 20px;font-size:10px}
@keyframes he-ring{from{border-color:var(--voice);transform:scale(.96);opacity:.8}to{border-color:var(--voice);transform:scale(1.08);opacity:0}}
@keyframes he-bell{0%,100%{transform:rotate(0)}20%{transform:rotate(6deg)}55%{transform:rotate(-4deg)}80%{transform:rotate(2deg)}}
@keyframes he-mallet{0%,100%{transform:rotate(-4deg)}35%{transform:rotate(8deg)}}
@keyframes he-key{0%,100%{transform:translateY(0)}30%{transform:translateY(2px)}}
@keyframes he-string{0%,100%{transform:translateX(0)}25%{transform:translateX(1px)}75%{transform:translateX(-1px)}}
@keyframes he-glass{0%,100%{transform:rotate(0)}25%{transform:rotate(.5deg)}75%{transform:rotate(-.5deg)}}
@keyframes he-bow{0%,100%{transform:translate(0,0)}45%{transform:translate(-7px,-4px)}}
@keyframes he-resonate{0%{opacity:0}30%{opacity:.7}100%{opacity:0}}
@keyframes he-miss{0%,100%{transform:translateX(0)}30%{transform:translateX(-3px)}65%{transform:translateX(3px)}}
@keyframes he-award{from{transform:scale(.7) rotate(-12deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
@media(max-width:950px){.he-console{grid-template-columns:34px 1fr auto;gap:11px}.he-wave{display:none}.he-pad-grid{gap:10px}.he-game .he-pad{padding:10px}.he-pad-description{font-size:7px}.he-pad-caption strong{font-size:11px}.he-settings{gap:16px}.he-audio-controls label{width:110px}.he-modes button{min-width:80px}}
@media(max-width:700px){.he-hero{padding:26px 23px}.he-hero-mark{width:90px}.he-hero-mark svg{width:80px;height:80px}.he-hero h3{font-size:35px}.he-settings{padding:20px 23px 12px}.he-mode-help{padding:0 23px 18px}.he-studio{padding:20px}.he-pad-grid[data-voices]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.he-pad-grid[data-voices] .he-pad:nth-child(n){grid-column:auto}.he-pad-grid:is([data-voices="3"],[data-voices="5"],[data-voices="7"]) .he-pad:nth-last-child(n){grid-column:auto}.he-pad-grid[data-voices="3"] .he-pad:nth-child(3),.he-pad-grid[data-voices="5"] .he-pad:nth-child(5),.he-pad-grid[data-voices="7"] .he-pad:nth-child(7){grid-column:1/-1;width:calc((100% - 12px)/2);justify-self:center}.he-game .he-pad{padding:11px 13px}.he-art{max-height:130px;aspect-ratio:260/150;margin:0 -3px 5px}.he-instrument{height:100%;width:100%}.he-pad-description{font-size:8px}.he-pad-caption strong{font-size:12px}.he-console{padding:14px}.he-console-heading h4{font-size:14px}.he-input-hint{max-width:160px}.he-session{padding:22px 23px;gap:19px}.he-session small{display:block;margin-top:3px}.he-guide,.he-result{margin-left:23px;margin-right:23px}.he-result{padding:19px;gap:13px}.he-guide summary span{display:block;margin:6px 0 0 15px}}
@media(max-width:480px){.game-card:has(.he-game){padding:16px 0 0;overflow:hidden}.game-card:has(.he-game)>.back-button{margin-left:16px}.game-card:has(.he-game)>.game-header{padding:0 16px}.he-game{border:0;border-radius:0 0 22px 22px}.he-hero{padding:23px 18px;gap:12px}.he-hero h3{font-size:31px}.he-hero p:last-child{font-size:11px}.he-hero p br{display:none}.he-hero-mark{width:64px}.he-hero-mark svg{width:61px;height:61px}.he-hero-mark span{display:none}.he-settings{padding:18px 16px 11px;gap:13px}.he-modes{width:100%;justify-content:space-between;gap:2px}.he-game .he-modes button{min-width:0;flex:1;padding:9px 10px}.he-modes b{font-size:11px}.he-modes span{font-size:8px}.he-audio-controls{width:100%;gap:12px}.he-audio-controls label{width:auto;flex:1;max-width:none}.he-audio-controls button{width:37px;min-height:37px}.he-mode-help{padding:0 18px 18px;font-size:10px}.he-studio{padding:15px 13px 17px}.he-console{padding:12px 10px;grid-template-columns:1fr auto;gap:8px;min-height:74px}.he-phase-indicator{display:none}.he-console-heading h4{font-size:14px}.he-console-label{font-size:6px;letter-spacing:.13em}.he-round{min-width:66px;padding-left:10px}.he-round strong{font-size:26px}.he-round small{font-size:9px}.he-round>span{font-size:6px}.he-message-row{gap:8px;align-items:flex-start;padding:13px 1px 0}.he-status{font-size:10px}.he-note-label{font-size:7px;white-space:normal;max-width:65px;min-width:40px;text-align:right;line-height:1.6}.he-steps{gap:4px;margin-bottom:8px;min-height:20px}.he-pad-grid[data-voices]{gap:11px 9px}.he-game .he-pad{border-radius:10px;padding:9px 10px 11px}.he-pad kbd{width:18px;height:18px;font-size:8px}.he-pad-top{height:18px}.he-art{margin:1px -7px 4px;aspect-ratio:260/160}.he-pad-caption strong{font-size:11px}.he-pad-caption>span{font-size:7px}.he-pad-description{font-size:7px}.he-pad-grid[data-voices="3"] .he-pad:nth-child(3),.he-pad-grid[data-voices="5"] .he-pad:nth-child(5),.he-pad-grid[data-voices="7"] .he-pad:nth-child(7){width:calc((100% - 9px)/2)}.he-transport{align-items:stretch;flex-direction:column;gap:12px;padding-top:20px}.he-transport>div{justify-content:center;gap:7px}.he-game .he-transport .he-primary{min-width:0;flex:1}.he-game .he-transport button{font-size:11px;padding:10px 12px;min-height:42px}.he-input-hint{text-align:center;max-width:none;font-size:8px}.he-session{padding:20px 18px;gap:16px;grid-template-columns:1fr 1fr}.he-session .he-goal{grid-column:1/-1}.he-session strong{font-size:27px}.he-session small{display:inline;font-size:8px}.he-session>div>span{font-size:6px}.he-goal>div{margin-top:8px}.he-guide,.he-result{margin-left:16px;margin-right:16px;margin-bottom:20px}.he-guide>div{grid-template-columns:1fr;gap:20px;padding:5px 15px 18px}.he-guide .he-save-note{padding:0 15px 17px}.he-guide summary{font-size:11px;padding:14px}.he-guide summary span{font-size:9px}.he-result{display:block;padding:18px 15px}.he-result-emblem{width:37px;height:37px;border-radius:11px;margin-bottom:14px}.he-result-emblem svg{width:22px;height:22px}.he-result .he-eyebrow{font-size:7px}.he-result h4{font-size:26px}.he-result p:not(.he-eyebrow){font-size:10px}.he-result-actions button{font-size:10px;padding:9px 11px;flex:1}.he-result-actions button svg{width:15px;height:15px}.he-pause-card{padding:20px}.he-pause-card h4{font-size:25px}.he-pause-card>p:not(.he-eyebrow){font-size:11px}}
@media(max-width:360px){.he-hero-mark{display:none}.he-hero h3{font-size:31px}.he-pad-description{display:none}.he-game .he-pad{padding:9px}.he-console-heading h4{font-size:12px}.he-round{min-width:62px}.he-round strong{font-size:24px}.he-session small{display:block}.he-session strong{font-size:26px}}
@media(max-width:480px){.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]){grid-template-columns:repeat(3,minmax(0,1fr));gap:11px 7px}.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]) .he-pad:nth-child(n){grid-column:auto;width:100%;padding:8px 7px 10px}.he-pad-grid[data-voices="7"] .he-pad:nth-child(7){grid-column:2}.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]) .he-pad-description,.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]) .he-pad-caption>span{display:none}.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]) .he-pad-caption strong{font-size:10px}.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]) .he-pad kbd{width:15px;height:15px;font-size:7px}.he-pad-grid:is([data-voices="5"],[data-voices="6"],[data-voices="7"]) .he-art{margin:1px -4px 5px}}
@media(prefers-reduced-motion:reduce){.he-game *,.he-game *:before,.he-game *:after{animation:none!important;transition:none!important}.he-game .he-pad.is-lit{transform:none}.he-pad.is-lit .he-resonance{opacity:.55}}

.he-game>.arcade-game-wallet{margin:0;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;padding:15px 28px;font-size:11px;line-height:1.65;background:var(--ui-soft)}
.he-run-options{display:flex;align-items:center;gap:18px;margin:0 28px 22px;padding:14px 16px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-soft)}
.he-run-options label{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:600;white-space:nowrap}.he-run-options input{width:64px;min-height:39px;padding:8px;border:1px solid var(--ui-line);border-radius:7px;background:var(--ui-panel);color:var(--ui-ink);font:600 14px var(--font-body,system-ui)}.he-run-options p{color:var(--ui-muted);font-size:10px;line-height:1.7;max-width:260px}.he-run-options a{color:var(--ui-accent);margin-left:auto;font-size:11px;line-height:1.6;text-underline-offset:3px}.he-result p.he-earned{margin-top:15px;color:var(--ui-accent);font-weight:600}

/* The studio has its own daylight materials; dark mode retains the night room. */
:root[data-theme=light] .he-studio{background:radial-gradient(ellipse at 50% 0,#ffffffc9,transparent 75%),repeating-linear-gradient(92deg,#96724725 0 1px,transparent 1px 4px) 0 0/10px 100% no-repeat,repeating-linear-gradient(89deg,#96724725 0 1px,transparent 1px 5px) 100% 0/10px 100% no-repeat,#ecf0e6;color:#263e36;border-color:#b9b293}
:root[data-theme=light] .he-console{background:linear-gradient(150deg,#ffffff,#e7eee4);border-color:#bdccc0;box-shadow:inset 0 1px #fff,0 4px 12px #4e69520d}
:root[data-theme=light] .he-phase-indicator{color:#456e63;background:#dbe7db;border-color:#a9c4b6}
:root[data-theme=light] .he-console-label{color:#526f63}
:root[data-theme=light] .he-console-heading h4{color:#243e32}
:root[data-theme=light] .he-round{border-color:#bed0c1}
:root[data-theme=light] .he-round>span,:root[data-theme=light] .he-round small{color:#546d5d}
:root[data-theme=light] .he-round strong{color:#2c523c}
:root[data-theme=light] .he-studio:is([data-phase=listen],[data-phase=review]) :is(.he-phase-indicator,.he-console-label){color:#7a561e}
:root[data-theme=light] .he-studio[data-phase=input] .he-phase-indicator{color:#216648;background:#c9e7cf;border-color:#65a481;box-shadow:0 0 20px #4e966a0d}
:root[data-theme=light] .he-studio[data-phase=input] .he-console-label{color:#216648}
:root[data-theme=light] .he-studio[data-phase=input] .he-console{border-color:#78a98b}
:root[data-theme=light] :is(.he-status,.he-note-label,.he-input-hint){color:#476456}
:root[data-theme=light] .he-steps span{background:#adc2ae66}
:root[data-theme=light] .he-steps span.is-done{background:#4c9670}
:root[data-theme=light] .he-steps span.is-current{background:#8e6529;box-shadow:0 0 8px #bc8b4940}
:root[data-theme=light] .he-steps span.is-missed{background:#b44e47}
:root[data-theme=light] .he-game .he-pad{border-color:#b4c4b8;background:radial-gradient(ellipse at 50% 20%,color-mix(in srgb,var(--voice) 18%,transparent),transparent 75%),linear-gradient(155deg,#fffef7,#e3e9dd);box-shadow:inset 0 1px #fff,0 5px 0 #bac9b9,0 9px 16px #536f5121}
:root[data-theme=light] .he-game .he-pad:hover:not(:disabled){background:radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--voice) 30%,transparent),transparent 85%),#f8fbef;border-color:#729d87}
:root[data-theme=light] .he-pad kbd{color:#416652;background:#e3ecdf;border-color:#b9cfbd}
:root[data-theme=light] .he-pad-led{background:color-mix(in srgb,var(--voice) 60%,#5d8074);border-color:#fff;box-shadow:0 1px 2px #73857555}
:root[data-theme=light] .he-pad-caption strong{color:#2d4737}
:root[data-theme=light] .he-pad-caption>span{color:#4e6c58}
:root[data-theme=light] .he-pad-description{color:#526f5e}
:root[data-theme=light] .he-game .he-pad.is-lit{border-color:#4a8063;background:radial-gradient(ellipse at 50% 35%,color-mix(in srgb,var(--voice) 54%,transparent),transparent 95%),#fffbed;box-shadow:inset 0 0 26px #fff9c566,0 4px 0 #9ab59e,0 0 20px color-mix(in srgb,var(--voice) 28%,transparent)}
:root[data-theme=light] .he-pad.is-lit .he-pad-caption strong{color:#214b30}
:root[data-theme=light] .he-pad.is-lit .he-pad-led{background:#3a8162;border-color:#faffed;box-shadow:0 0 8px #72a77b80}
:root[data-theme=light] .he-game .he-pad.is-wrong{border-color:#ad5449;background:radial-gradient(ellipse at 50% 30%,#e5b1a588,transparent 75%),#f4e6de}
:root[data-theme=light] .he-game .he-pad:focus-visible{outline-color:#316b55}
:root[data-theme=light] .he-game .he-transport button{background:#f3f6ec;color:#365944;border-color:#afc4b2}
:root[data-theme=light] .he-game .he-transport button:hover:not(:disabled){background:#dce8d8}
:root[data-theme=light] .he-game .he-transport .he-primary{background:#3b7055;color:#fffdf0;border-color:#35634a}
:root[data-theme=light] .he-game .he-transport .he-primary:hover:not(:disabled){background:#315f47}
:root[data-theme=light] .he-paused{background:#edf3e3d1}

.he-library-layout{display:block!important}.he-customizer{border-radius:16px}.he-custom-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px;border-bottom:1px solid var(--ui-line)}.he-custom-header h3{font:400 32px/1.15 Georgia,serif;letter-spacing:-.03em;margin:8px 0 12px}.he-custom-header p:last-child{font-size:12px;color:var(--ui-muted);line-height:1.8;max-width:520px}.he-customizer a{color:var(--ui-accent);font-size:12px;line-height:1.7;text-underline-offset:3px}.he-custom-header>a{white-space:nowrap}
.he-custom-workspace{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;padding:24px}.he-custom-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;border:1px solid var(--ui-line);border-radius:14px;background:radial-gradient(ellipse at 50% 30%,#cab88018,transparent 75%),var(--ui-soft);min-width:0}.he-custom-art{width:100%;max-width:350px;padding:15px 0}.he-custom-art .he-instrument{width:100%;height:auto}.he-custom-preview h4{font:400 30px/1.2 Georgia,serif;margin:0 0 10px}.he-custom-description{font-size:12px;color:var(--ui-muted)}.he-custom-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:23px}.he-custom-actions button{font-size:11px}.he-custom-lock{margin-top:14px!important;color:var(--ui-muted);font-size:10px;line-height:1.8}.he-custom-lock a{font-size:inherit}
.he-lineup>div>p:last-child{font-size:11px;line-height:1.8;margin:7px 0 14px;color:var(--ui-muted)}.he-slot-list{display:grid;gap:6px}.he-game .he-slot-list button{display:flex;justify-content:flex-start;text-align:left;gap:12px;padding:9px 12px;background:var(--ui-panel);border-radius:8px}.he-game .he-slot-list button[aria-pressed=true]{background:var(--ui-accent-soft);border-color:var(--ui-accent)}.he-slot-list kbd{font:500 11px var(--font-body,system-ui);width:26px;height:26px;background:var(--ui-soft);border:1px solid var(--ui-line);border-radius:7px;display:grid;place-items:center}.he-slot-list strong{font-size:11px;font-weight:600}.he-slot-list small{display:block;font-size:9px;font-weight:400;color:var(--ui-muted);margin-top:4px}.he-slot-list button>span:last-child{font-size:9px;margin-left:auto;color:var(--ui-muted)}.he-lineup>button{margin-top:12px;font-size:10px}
.he-custom-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 24px;padding:18px 0;border-top:1px solid var(--ui-line);border-bottom:1px solid var(--ui-line)}.he-custom-status{font-size:11px;color:var(--ui-muted);line-height:1.8;max-width:420px}.he-customizer .he-audio-controls{flex-shrink:0}.he-customizer .he-audio-controls button{width:auto;white-space:nowrap}.he-customizer .he-audio-controls button:after{display:none}.he-collection{padding:24px}.he-collection-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:18px}.he-collection-heading h4{font:400 23px Georgia,serif}.he-collection-heading>span{font-size:10px;color:var(--ui-muted)}.he-instrument-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.he-game .he-choice{display:flex;flex-direction:column;gap:7px;text-align:center;padding:10px 10px 14px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-soft);min-width:0}.he-choice>span{width:100%;pointer-events:none}.he-choice strong{font-size:11px;font-weight:600}.he-choice small{font-size:9px;font-weight:400;color:var(--ui-muted)}.he-game .he-choice[aria-pressed=true]{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-accent);background:var(--ui-accent-soft)}.he-collection>p{font-size:11px;color:var(--ui-muted);line-height:1.8;margin-top:18px}.he-custom-art.is-playing .he-instrument{animation:he-award .45s ease-out}.he-custom-art.is-playing .he-string{animation:he-string .12s linear 4;transform-box:fill-box;transform-origin:center}.he-shop-art{display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at center,#cbb98c20,transparent 80%),var(--ui-soft);border-bottom:1px solid var(--ui-line);aspect-ratio:1.6}.he-shop-art svg{width:100%;max-width:280px}
@media(max-width:800px){.he-run-options{flex-wrap:wrap;gap:12px}.he-run-options p{max-width:none;flex:1;min-width:150px}.he-run-options a{width:100%;margin:0}.he-custom-header{align-items:flex-start;flex-direction:column;gap:15px}.he-custom-workspace{grid-template-columns:1fr 1fr;gap:16px;padding:18px}.he-custom-preview{padding:16px}.he-custom-bar{flex-wrap:wrap}.he-instrument-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.he-run-options{margin:0 16px 20px;padding:13px}.he-game>.arcade-game-wallet{padding:14px 18px}.he-custom-header{padding:20px}.he-custom-header h3{font-size:29px}.he-custom-workspace{grid-template-columns:1fr;padding:16px;gap:20px}.he-custom-art{max-width:240px;padding:8px 0}.he-custom-actions{margin-top:17px}.he-custom-bar{margin:0 16px}.he-customizer .he-audio-controls{width:100%}.he-collection{padding:22px 16px}.he-collection-heading{align-items:flex-start;flex-direction:column;gap:8px}.he-instrument-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.he-customizer .he-audio-controls label{max-width:none;flex:1}}

/* Short concert finales lead into the existing result panel. */
.he-finale{--he-finale-ink:#e3ebdc;--he-finale-muted:#a9c4b7;--he-finale-gold:#e6c989;--he-finale-surface:#122e34;width:min(860px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;border:1px solid #a9956866;border-radius:23px;background:var(--he-finale-surface);color:var(--he-finale-ink);box-shadow:0 24px 100px #0008,0 0 80px #d9c28a13;outline:none}
.he-finale::backdrop{background:#04121ccb;backdrop-filter:blur(7px)}
.he-finale[open]{animation:he-finale-open .3s ease-out}
.he-finale-heading{position:relative;text-align:center;padding:27px 24px 16px;background:radial-gradient(ellipse at 50% 100%,#b2c69e14,transparent 70%);border-bottom:1px solid #a9bd9b18}
.he-finale-heading .he-eyebrow{color:var(--he-finale-gold);font-size:8px;letter-spacing:.22em}
.he-game .he-finale-heading h4{font:400 clamp(29px,4.5vw,41px)/1.12 Georgia,serif;color:var(--he-finale-ink);letter-spacing:-.04em;margin:10px 0 11px}
.he-finale .he-finale-caption{font-size:12px;line-height:1.7;color:var(--he-finale-muted)}
.he-finale-stage{position:relative;height:clamp(210px,39vh,345px);overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#375c465c,transparent 67%),linear-gradient(#132c32,#203a3c 78%,#102c34);isolation:isolate}
.he-finale-stage canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.he-finale-ensemble{position:absolute;inset:0;pointer-events:none}
.he-finalist{position:absolute;text-align:center;transform:translate(-50%,-50%);transform-origin:50% 82%;will-change:transform,opacity;filter:drop-shadow(0 7px 7px #061c2744)}
.he-finalist>div{width:100%;filter:drop-shadow(0 0 calc(var(--pulse,0)*13px) color-mix(in srgb,var(--voice) 65%,transparent))}
.he-finalist .he-instrument{display:block;width:100%;height:auto;filter:none}
.he-finalist>span{display:block;font-size:10px;font-weight:500;line-height:1.6;color:var(--he-finale-ink);margin-top:2px;text-shadow:0 1px 8px var(--he-finale-surface)}
.he-finalist.is-playing .he-mallet{transform-origin:35px 23px;animation:he-mallet .35s ease-out}
.he-finalist.is-playing .he-bell{transform-origin:130px 43px;animation:he-bell .5s ease-out}
.he-finalist.is-playing .he-string,.he-finalist.is-playing .he-tine{animation:he-string .14s linear 3;transform-box:fill-box;transform-origin:center}
.he-finale-medal{position:absolute;top:24%;left:50%;width:112px;height:112px;color:var(--he-finale-gold);filter:drop-shadow(0 0 22px #d7c98a38);transform:translate(-50%,-50%);opacity:0;pointer-events:none}
.he-finale-medal svg{display:block;width:100%;height:100%}
.he-finale[data-outcome=loss] .he-finale-medal{width:82px;height:82px;color:#a3cfc8;filter:drop-shadow(0 0 15px #93bfaa29)}
.he-finale[data-outcome=loss] .he-finale-star{display:none}
.he-finale .he-finale-stage-caption{position:absolute;bottom:10px;left:12px;right:12px;text-align:center;font-size:10px;line-height:1.7;letter-spacing:.025em}
.he-finale-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 24px 20px;border-top:1px solid #a5bfaa24;background:var(--he-finale-surface)}
.he-finale .he-finale-count{color:var(--he-finale-muted);font-size:11px;line-height:1.6}
.he-finale-footer>div{display:flex;gap:8px;flex-wrap:wrap}
.he-game .he-finale-footer button{font-size:11px;min-height:40px;border-color:#96bbab40;color:var(--he-finale-ink);background:#29454a}
.he-game .he-finale-footer button:hover{background:#365951;border-color:#a8c7b166}
.he-game .he-finale-footer .he-primary{background:#d7e4c4;color:#284439;border-color:#dfebce}
.he-game .he-finale-footer .he-primary:hover{background:#e5eed7}
.he-finale-progress{height:3px;background:#b6caab0b}
.he-finale-progress>span{display:block;height:100%;width:0;background:var(--he-finale-gold)}
.he-finale[data-paused=true] .he-finalist *{animation-play-state:paused}
:root[data-theme=light] .he-finale{--he-finale-ink:#294639;--he-finale-muted:#526f5f;--he-finale-gold:#94712c;--he-finale-surface:#f2f4e8;border-color:#bcb896;box-shadow:0 25px 100px #1b342c44}
:root[data-theme=light] .he-finale::backdrop{background:#d6ded3b8}
:root[data-theme=light] .he-finale-stage{background:radial-gradient(ellipse at 50% 30%,#fffff2,transparent 70%),linear-gradient(#eef2e8,#e1e8da)}
:root[data-theme=light] .he-finale[data-outcome=loss] .he-finale-medal{color:#4e8675}
:root[data-theme=light] .he-finale-footer{border-color:#c8d4c3}
:root[data-theme=light] .he-game .he-finale-footer button{background:#e4eddf;color:#365742;border-color:#b5cab7}
:root[data-theme=light] .he-game .he-finale-footer button:hover{background:#d7e5d3}
:root[data-theme=light] .he-game .he-finale-footer .he-primary{background:#3a7055;color:#fffdef;border-color:#346347}
:root[data-theme=light] .he-game .he-finale-footer .he-primary:hover{background:#2e5e45}
@keyframes he-finale-open{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:540px){.he-finale{border-radius:17px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.he-finale-heading{padding:24px 17px 17px}.he-finale .he-finale-caption{font-size:11px}.he-finale-heading .he-eyebrow{font-size:7px}.he-finale-stage{height:280px}.he-finale-medal{width:94px;height:94px;top:26%}.he-finalist>span{font-size:8px}.he-finale .he-finale-stage-caption{font-size:9px;bottom:8px}.he-finale-footer{padding:15px;display:block}.he-finale .he-finale-count{text-align:center;margin-bottom:13px}.he-finale-footer>div{justify-content:center;gap:6px}.he-game .he-finale-footer button{font-size:10px;padding:9px 10px;min-height:40px}}
@media(max-height:540px){.he-finale-heading{padding:12px 16px}.he-game .he-finale-heading h4{font-size:26px;margin:6px 0}.he-finale .he-finale-caption{font-size:10px}.he-finale-stage{height:165px}.he-finale-medal{width:69px;height:69px}.he-finale-footer{padding:10px 15px}.he-finale .he-finale-count{margin-bottom:7px}.he-finalist>span{font-size:8px}}
