/* V4.6 — Eco Musical: interface dedicada por fases, motor/registro do V4.5 preservados. */
.ep46-echo-game{--ep46-ink:#153c4d;--ep46-teal:#098a7e;min-width:0;min-height:100vh;background:radial-gradient(ellipse at top,#e5f8f4 0%,#f0f8f9 47%,#f6fafb 100%);color:var(--ep46-ink)}
.ep46-echo-game *{box-sizing:border-box}
.ep46-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px clamp(14px,3vw,40px);min-height:68px;background:#fff;border-bottom:1px solid #dcebed}
.ep46-brand{display:flex;align-items:center;gap:10px}.ep46-brand img{width:38px;height:38px}.ep46-brand>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 9px}.ep46-brand strong{font-size:19px;font-weight:850}.ep46-brand small{font-size:12px;color:#73909a;font-weight:650}
.ep46-top-actions{display:flex;align-items:center;gap:9px}.ep46-mode{padding:9px 13px;color:#13766d;background:#dff6ed;border:1px solid #c8e8dc;border-radius:30px;font-size:12px;font-weight:800}.ep46-top-actions .button{background:white;color:#416271;border:1px solid #cddfe5;min-height:41px}
.ep46-container{width:min(100%,1430px);margin:auto;padding:clamp(16px,2.5vw,30px) clamp(12px,2.8vw,38px) 50px}
.ep46-title{display:flex;align-items:center;gap:14px;margin-bottom:16px}.ep46-title-icon{display:grid;place-items:center;flex:0 0 60px;width:60px;height:60px;border-radius:18px;color:white;background:linear-gradient(130deg,#159e91,#13788c);font-size:47px;font-weight:800;line-height:1;box-shadow:0 8px 21px #08665e30}.ep46-title>div{min-width:0}.ep46-kicker{font-size:10px;letter-spacing:.12em;font-weight:850;color:#178578}.ep46-title h1{margin:3px 0;font-size:clamp(25px,3vw,38px);line-height:1.15;letter-spacing:-.04em}.ep46-title p{font-size:13px;color:#5b7b88;margin:0}.ep46-status{margin-left:auto;padding:9px 12px;border-radius:50px;background:#e4f6ef;border:1px solid #c8e9de;color:#196d68;font-weight:780;font-size:11px;white-space:normal;text-align:center}
.ep46-progress{display:grid;grid-template-columns:max-content minmax(40px,1fr) auto;gap:14px;align-items:center;padding:14px 19px;margin:0 0 17px;background:#fff;border:1px solid #deebeb;box-shadow:0 5px 14px #084c5210;border-radius:16px;font-size:12px}.ep46-progress strong{font-size:14px}.ep46-progress>span{font-size:11px;color:#64808b;font-weight:750}.ep46-progress-track{height:10px;background:#dfebed;border-radius:50px;overflow:hidden}.ep46-progress-track>i{display:block;height:100%;border-radius:50px;background:linear-gradient(90deg,#099c8e,#78cfae)}
.ep46-stage-grid{display:grid;grid-template-columns:minmax(300px,.92fr) minmax(430px,1.08fr);gap:17px;align-items:stretch}
.ep46-listen,.ep46-answer{min-width:0;min-height:415px;position:relative;display:flex;flex-direction:column;border-radius:22px;border:1px solid #d9ebea;box-shadow:0 15px 35px #164b5912;padding:21px 20px;overflow:hidden}
.ep46-listen{align-items:center;text-align:center;background:radial-gradient(circle at 50% 37%,#d5f6ef 0,#eafaf6 53%,#f7fcfd 100%)}.ep46-answer{background:#fff}
.ep46-stage-label{display:inline-flex;align-self:center;justify-content:center;padding:8px 18px;border-radius:100px;color:#fff;background:linear-gradient(110deg,#087d78,#069b8d);font-size:13px;font-weight:900;letter-spacing:.015em}.ep46-answer-label{background:linear-gradient(110deg,#53b33a,#279b4b)}
.ep46-listen-center,.ep46-standby{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:13px;flex:1;width:100%;min-width:0;padding:18px 3px}.ep46-listen-center h2,.ep46-standby h2{font-size:clamp(20px,2.4vw,29px);letter-spacing:-.03em;line-height:1.2;margin:5px 0 0}.ep46-listen-center p,.ep46-standby p{font-size:13px;line-height:1.5;margin:0;max-width:360px;color:#557685}
.ep46-wave{display:flex;align-items:center;justify-content:center;gap:6px;width:150px;height:150px;border:9px solid #ffffffc9;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #c7edeb,0 14px 35px #137c7a1a}.ep46-wave i{display:block;width:8px;height:32px;border-radius:10px;background:#0b9c90}.ep46-wave i:nth-child(2),.ep46-wave i:nth-child(6){height:54px}.ep46-wave i:nth-child(3),.ep46-wave i:nth-child(5){height:78px}.ep46-wave i:nth-child(4){height:95px}.ep46-wave.is-playing i{animation:ep46-wave-bounce .55s ease-in-out infinite alternate}.ep46-wave.is-playing i:nth-child(even){animation-delay:-.24s}@keyframes ep46-wave-bounce{from{transform:scaleY(.58)}to{transform:scaleY(1)}}
.ep46-playing-note{display:grid;place-items:center;width:150px;height:150px;background:var(--ep46-playing);border:8px solid #fff;box-shadow:0 0 0 2px #d2eae8,0 13px 32px #12536425;border-radius:38px}.ep46-playing-note span{font-size:56px;font-weight:900;color:#163b47;text-shadow:0 2px #ffffff88}
.ep46-replay{width:100%;max-width:365px;min-height:48px!important;margin:5px auto 0;font-weight:800!important;border-radius:13px!important;background:#058b82!important;border:1px solid #058b82!important}.ep46-replay:disabled{opacity:.48!important;cursor:not-allowed}
.ep46-answer-head{text-align:center}.ep46-answer-head h2{font-size:clamp(18px,2.1vw,25px);line-height:1.2;margin:12px 0 6px;letter-spacing:-.025em}.ep46-answer-head p{font-size:12px;color:#587986;line-height:1.45;margin:0 auto;max-width:430px}
.ep46-steps{display:flex;align-items:center;justify-content:center;gap:11px;padding:18px 0 14px}.ep46-step{display:block;width:24px;height:24px;flex:0 0 24px;border-radius:50%;border:3px solid #c6d9df;background:#eaf2f4}.ep46-step.is-done{background:#16a38e;border-color:#16a38e;box-shadow:0 0 0 4px #dff7ee}
.ep46-notes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:4px 0 6px}.ep46-note{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:137px;padding:10px 5px;border-radius:17px;border:2px solid #ffffff;background:var(--ep46-note);color:#163b47;cursor:pointer;touch-action:manipulation;box-shadow:inset 0 -7px 0 #00000013,0 8px 17px #082e3a12;transition:transform .14s,filter .14s}.ep46-note strong{display:block;padding:6px 8px 3px;border-radius:7px;font-size:14px;font-weight:900;background:#ffffffc9}.ep46-note small{font-size:11px;font-weight:800;background:#ffffffa9;border-radius:6px;padding:3px 6px}.ep46-note-icon{font-size:44px;line-height:1;color:#fff;text-shadow:0 3px 4px #143b5038}.ep46-note:hover:not(:disabled){transform:translateY(-3px);filter:saturate(1.16)}.ep46-note:focus-visible,.ep46-echo-game button:focus-visible,.ep46-echo-game summary:focus-visible{outline:3px solid #075c70;outline-offset:3px}.ep46-note:disabled{opacity:.45;cursor:not-allowed}.ep46-note.is-lit{box-shadow:0 0 0 5px #147c8440,inset 0 -7px 0 #00000012}
.ep46-reference-notes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:7px 0 12px}.ep46-reference-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:66px;border:1px solid #d4e7e7;border-radius:13px;background:#f6fbfb;font-size:12px}.ep46-reference-item i{width:22px;height:22px;border-radius:7px;box-shadow:inset 0 -3px 0 #0001}.ep46-reference-item small{font-size:10px;color:#5f818a}.ep46-reference-item strong{font-size:12px}
.ep46-answer .ep45-external-panel{margin-top:10px;margin-bottom:3px;padding:12px;border-radius:15px;box-shadow:none}.ep46-answer .ep45-external-panel h3{font-size:14px}.ep46-answer .ep45-external-panel>p{font-size:11px}.ep46-answer .ep45-observe-buttons{gap:7px}.ep46-answer .ep45-observe-button{min-height:43px}.ep46-physical-message{margin-top:10px;background:#eef8f4;border:1px solid #c7e3dc;border-radius:12px;padding:12px;color:#23645f;font-size:12px;line-height:1.5}.ep46-waiting{display:block;text-align:center;color:#66858f;font-size:11px;margin-top:8px}
.ep46-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;padding:16px 0 10px}.ep46-tools{display:flex;flex-wrap:wrap;gap:9px}.ep46-tools .button{min-height:44px;background:#fff;border:1px solid #c7dee3;color:#23576a}.ep46-toolbar>span{font-size:12px;color:#577785;font-weight:730}.ep46-feedback{margin:8px 0 13px;padding:10px 13px;background:#e6f6f1;border:1px solid #c9e8df;border-radius:12px;color:#256964;font-size:12px;line-height:1.45;font-weight:700}.ep46-pro{margin-top:12px;border-radius:14px;border:1px solid #cbe4e2;background:#f4fbfa}.ep46-pro summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;padding:15px;font-size:13px;color:#245762;font-weight:830}.ep46-pro summary small{font-size:11px;font-weight:600;color:#66828b}.ep46-pro-content{padding:0 15px 16px;display:grid;gap:12px;grid-template-columns:1fr 1fr}.ep46-pro-content label{font-size:12px;font-weight:750;display:flex;flex-direction:column;gap:7px}.ep46-pro-content select,.ep46-pro-content textarea{width:100%;border-radius:10px;border:1px solid #c6dfe2;background:#fff;color:#123b4b;padding:10px;font:inherit}.ep46-pro-content textarea{min-height:85px;resize:vertical}
@media(max-width:1050px){.ep46-stage-grid{grid-template-columns:1fr}.ep46-listen,.ep46-answer{min-height:320px}.ep46-listen-center,.ep46-standby{min-height:215px}.ep46-notes{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.ep46-top{min-height:56px;padding:9px 12px}.ep46-brand strong{font-size:16px}.ep46-brand small{display:none}.ep46-brand img{width:32px;height:32px}.ep46-top-actions{gap:6px}.ep46-top-actions .button{min-height:36px;padding:6px 9px;font-size:11px}.ep46-mode{padding:6px 9px;font-size:10px}.ep46-container{padding:13px 10px 35px}.ep46-title{gap:9px;margin-bottom:12px;flex-wrap:wrap}.ep46-title-icon{width:45px;height:45px;flex-basis:45px;font-size:35px;border-radius:13px}.ep46-title h1{font-size:24px}.ep46-title p{font-size:11px}.ep46-status{padding:6px 9px;font-size:10px;margin-left:0}.ep46-progress{gap:9px;padding:10px 11px;margin-bottom:12px;font-size:11px}.ep46-progress strong{font-size:12px}.ep46-stage-grid{gap:12px}.ep46-listen,.ep46-answer{border-radius:18px;min-height:0;padding:15px 12px}.ep46-listen-center,.ep46-standby{min-height:215px;gap:9px;padding:13px 0}.ep46-wave,.ep46-playing-note{width:100px;height:100px}.ep46-wave{gap:4px;border-width:6px}.ep46-wave i{width:5px;height:23px}.ep46-wave i:nth-child(2),.ep46-wave i:nth-child(6){height:35px}.ep46-wave i:nth-child(3),.ep46-wave i:nth-child(5){height:50px}.ep46-wave i:nth-child(4){height:65px}.ep46-playing-note{border-width:6px}.ep46-playing-note span{font-size:38px}.ep46-listen-center h2,.ep46-standby h2{font-size:22px}.ep46-listen-center p,.ep46-standby p{font-size:12px}.ep46-stage-label{font-size:11px;padding:6px 12px}.ep46-answer-head h2{font-size:18px;margin-top:9px}.ep46-answer-head p{font-size:12px}.ep46-steps{padding:12px 0}.ep46-step{width:18px;height:18px;flex-basis:18px}.ep46-note{min-height:91px;border-radius:12px}.ep46-note-icon{font-size:30px}.ep46-note strong{font-size:11px;padding:3px 4px}.ep46-note small{font-size:10px;padding:2px 4px}.ep46-toolbar{justify-content:center}.ep46-toolbar>span{text-align:center}.ep46-pro summary small{display:none}.ep46-pro-content{grid-template-columns:1fr}}
@media(max-width:360px){.ep46-notes{grid-template-columns:repeat(2,minmax(0,1fr))}.ep46-note{min-height:80px}.ep46-reference-notes{grid-template-columns:repeat(2,minmax(0,1fr))}.ep46-top-actions .ep46-mode{max-width:112px;text-align:center}.ep46-progress{grid-template-columns:max-content 1fr}.ep46-progress>span{display:none}}
@media(prefers-reduced-motion:reduce){.ep46-echo-game *, .ep46-echo-game *:before,.ep46-echo-game *:after{animation:none!important;transition:none!important}}
.ep46-echo-game.calm .ep46-wave i{animation:none!important}
.ep46-echo-game.high-contrast .ep46-listen,.ep46-echo-game.high-contrast .ep46-answer,.ep46-echo-game.high-contrast .ep46-note{border-color:#0d3e4e}
