/* Prova Infinita — estilos locais, sem dependências externas */
[hidden]{display:none!important}
:root{--ink:#14213d;--yellow:#ffd447}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#101d35;color:var(--ink);font-family:Arial,Helvetica,sans-serif}button{font:inherit}.site-shell{min-height:100vh;background:radial-gradient(circle at 50% -20%,#38537d 0,#152747 43%,#0d192d 100%);padding-bottom:24px;overflow:hidden}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:auto;padding:0 24px;color:white}.brand{display:flex;align-items:center;gap:10px;font-size:18px;letter-spacing:.12em}.brand b{color:var(--yellow)}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border:3px solid var(--yellow);border-radius:14px;color:var(--yellow);font-size:27px;font-weight:900;transform:rotate(-4deg)}.icon-button{width:40px;height:40px;border:1px solid #ffffff44;border-radius:50%;background:#ffffff14;color:white;font-size:23px;cursor:pointer}.game-card{width:min(1120px,calc(100% - 28px));margin:auto;background:#e9eef7;border-radius:27px;box-shadow:0 30px 80px #050b18aa,0 0 0 1px #ffffff24;overflow:hidden}.status-row{height:142px;background:linear-gradient(180deg,#eff4fb,#dbe5f1);display:grid;grid-template-columns:1fr minmax(360px,1.65fr) 1fr;align-items:center;gap:24px;padding:14px 32px}.status-chip{justify-self:center;text-align:center}.status-chip>span{display:block;font-size:11px;font-weight:900;letter-spacing:.22em;color:#64748b;margin-bottom:9px}.hearts{display:flex;gap:7px}.hearts i{font-size:28px;font-style:normal;color:#ef476f;filter:drop-shadow(0 2px 0 #bd2145)}.hearts i.lost{color:#aab5c4;filter:none}.timer b{display:block;font-size:35px;color:#183052;line-height:1}.timer small{font-size:15px;margin-left:2px}.timer.danger b{color:#e12e50;animation:pulse .7s infinite}.chalkboard{align-self:stretch;background:linear-gradient(145deg,#183c35,#0d2825);border:8px solid #9b6335;border-radius:13px;box-shadow:inset 0 0 24px #0008,0 6px 0 #724422;display:flex;align-items:center;justify-content:center;gap:14px;color:#fff;padding:10px 20px;position:relative}.chalkboard:after{content:"";position:absolute;bottom:-12px;left:8%;right:8%;height:5px;background:#d29756;border-radius:4px}.chalkboard small{position:absolute;top:9px;left:0;right:0;text-align:center;font-size:9px;letter-spacing:.2em;color:#b9d4c8}.chalkboard strong{font-family:"Comic Sans MS",cursive;font-size:34px;white-space:nowrap;margin-top:11px}.chalkboard em{color:#f9d65c;font-style:normal}.answer-slots{display:flex;gap:7px;margin-top:12px}.answer-slots span{display:grid;place-items:center;width:43px;height:45px;border-bottom:3px solid #ffffffaa;font:bold 31px "Comic Sans MS",cursive}.answer-slots span.next{color:#ffd447;border-color:#ffd447;animation:pulse 1s infinite}.answer-slots span.filled{color:#73e0a9}.playfield{height:min(680px,calc(100vh - 245px));min-height:470px;position:relative;overflow:hidden;touch-action:none;background:linear-gradient(#d8ebf0 0 68%,#c9925f 68% 100%);box-shadow:inset 0 8px 18px #0e294533;transition:filter .15s}.playfield:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 49.8%,#ffffff22 50%,transparent 50.2%),radial-gradient(circle at 50% 25%,#fff9,transparent 38%);pointer-events:none}.flash-good{filter:saturate(1.35) brightness(1.1)}.flash-bad{animation:shake .22s ease}.ceiling-lights{position:absolute;top:0;left:15%;right:15%;display:flex;justify-content:space-between}.ceiling-lights i{width:25%;height:9px;background:#fff;border-radius:0 0 20px 20px;box-shadow:0 0 35px 15px #fff9}.windows{position:absolute;top:14%;left:5%;right:5%;display:flex;justify-content:space-between}.windows i{width:16%;height:145px;border:10px solid #f6fafb;background:linear-gradient(135deg,#8fd7ff,#d9f2ff);box-shadow:0 8px 20px #446b7b33;opacity:.8}.wall-details{position:absolute;inset:20% 20% auto;display:flex;justify-content:space-around;color:#7094a3;font:bold 44px Georgia;opacity:.25}.floor-lines{position:absolute;left:-15%;right:-15%;top:68%;bottom:0;background:repeating-linear-gradient(90deg,transparent 0 12%,#835d3b33 12.2% 12.6%),repeating-linear-gradient(0deg,transparent 0 32px,#845c3933 33px 35px);transform:perspective(500px) rotateX(35deg);transform-origin:top}.falling-number{position:absolute;z-index:5;width:62px;height:62px;border-radius:19px;background:linear-gradient(145deg,#fff,#e8edf5);border:4px solid #fff;box-shadow:0 7px 0 #91a1b5,0 12px 18px #263a5266;display:grid;place-items:center}.falling-number:after{content:"";position:absolute;inset:5px;border:2px dashed #c8d1df;border-radius:11px}.falling-number span{font-weight:1000;font-size:35px;color:#214eaf;z-index:1;text-shadow:0 2px #fff}.falling-number:nth-of-type(3n) span{color:#d72d5d}.falling-number:nth-of-type(4n) span{color:#0f8a67}.player{position:absolute;z-index:8;bottom:5.2%;width:120px;height:170px;transform:translateX(-50%);transition:left .06s linear;display:flex;align-items:flex-end;justify-content:center}.player img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 8px 6px #25334c55);user-select:none}.shadow{position:absolute;z-index:4;bottom:4.4%;width:105px;height:22px;border-radius:50%;background:#18283f42;filter:blur(3px);transform:translateX(-50%);transition:left .06s linear}.target-hint{position:absolute;right:20px;bottom:17px;background:#10233de8;color:white;padding:9px 13px;border-radius:12px;font-size:11px;font-weight:900;letter-spacing:.12em;box-shadow:0 5px 16px #13213a55}.target-hint b{display:inline-grid;place-items:center;background:var(--yellow);color:#18233d;width:28px;height:28px;border-radius:8px;font-size:18px;margin-left:7px}.overlay{position:absolute;z-index:20;inset:0;background:#0b1832b8;backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}.overlay-panel,.result-panel{width:min(460px,95%);background:linear-gradient(165deg,#fff,#f3f6fb);border-radius:28px;padding:30px 36px;text-align:center;box-shadow:0 22px 70px #02081799,0 0 0 6px #ffffff2b}.eyebrow{display:inline-block;padding:6px 11px;border-radius:8px;background:#e7edff;color:#2851ae;font-size:11px;font-weight:900;letter-spacing:.2em}.overlay h1{font-size:42px;line-height:1;margin:12px 0 10px;color:#142b50}.overlay-panel>p{margin:0 auto 18px;line-height:1.5;color:#50627b}.mini-example{display:flex;justify-content:center;align-items:center;gap:8px;background:#173d35;color:#fff;border:5px solid #9b6335;border-radius:10px;padding:10px;margin:15px auto;width:max-content;font:bold 21px "Comic Sans MS",cursive}.mini-example b{display:grid;place-items:center;background:#ffd447;color:#1b2a42;width:34px;height:34px;border-radius:8px}.overlay ul{list-style:none;padding:0;margin:18px 0;text-align:left;display:grid;gap:9px}.overlay li{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#41516a}.overlay li span{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:50%;background:#dfe8fa;color:#2455b7}.primary-button{border:0;border-radius:14px;background:linear-gradient(180deg,#ffd95b,#ffc92d);color:#172844;font-weight:1000;letter-spacing:.06em;padding:15px 22px;box-shadow:0 6px 0 #d59c15,0 10px 22px #b3862338;cursor:pointer;transition:.15s}.primary-button:hover{transform:translateY(-2px)}.primary-button:active{transform:translateY(4px);box-shadow:0 2px 0 #d59c15}.primary-button span{font-size:20px;margin-left:9px}.overlay-panel>small{display:block;margin-top:16px;color:#7b8799;font-size:10px}.result-panel{padding:40px}.result-icon{display:grid;place-items:center;width:76px;height:76px;margin:-78px auto 14px;border-radius:50%;background:#ffd447;color:#183052;border:7px solid white;box-shadow:0 9px 20px #06112655;font-size:42px;font-weight:900}.result-panel.lost .result-icon{background:#ef476f;color:#fff}.result-panel h2{font-size:32px;color:#172c4d;margin:8px}.result-panel p{color:#5a687b;line-height:1.6;margin:10px 0 24px}footer{height:60px;display:flex;align-items:center;justify-content:center;gap:16px;color:#9fb0cb;font-size:12px}footer span{font-weight:900;letter-spacing:.15em;color:#dce5f6}footer p{margin:0}@keyframes pulse{50%{transform:scale(1.08)}}@keyframes shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
@media(max-width:720px){.topbar{height:56px;padding:0 14px}.brand{font-size:14px}.brand-mark{width:34px;height:34px}.game-card{width:100%;border-radius:0}.status-row{height:116px;grid-template-columns:70px 1fr 65px;gap:7px;padding:10px 8px}.chalkboard{border-width:5px;padding:7px;gap:5px}.chalkboard strong{font-size:24px}.answer-slots{gap:3px}.answer-slots span{width:27px;height:34px;font-size:23px}.hearts{gap:2px}.hearts i{font-size:19px}.timer b{font-size:27px}.playfield{height:calc(100vh - 172px);min-height:500px}.windows i{height:110px}.falling-number{width:52px;height:52px;border-radius:15px}.falling-number span{font-size:29px}.player{width:96px;height:145px}.overlay-panel{padding:24px 20px}.overlay h1{font-size:34px}.overlay ul{gap:7px}.target-hint{right:10px;bottom:10px}.site-shell{padding-bottom:0}footer{display:none}}

/* Ciclo real de corrida de Peter */
.player{width:150px;height:190px;transition:left .04s linear;pointer-events:none}
.peter-sprite{width:100%;height:100%;background-repeat:no-repeat;background-size:contain;background-position:center bottom;filter:drop-shadow(0 8px 6px #25334c55);transform-origin:50% 90%;will-change:transform,background-image}
.player.running .peter-sprite{animation:runner-bob .18s ease-in-out infinite alternate}
.player.facing-left .peter-sprite{transform:scaleX(-1)}
.player.running.facing-left .peter-sprite{animation:runner-bob-left .18s ease-in-out infinite alternate}
@keyframes runner-bob{to{transform:translateY(-4px) rotate(-1.5deg)}}
@keyframes runner-bob-left{from{transform:scaleX(-1)}to{transform:scaleX(-1) translateY(-4px) rotate(-1.5deg)}}
@media(max-width:720px){.player{width:120px;height:160px}}

/* Progressão da Prova Infinita */
.score-chip>b{display:block;color:#214eaf;font-size:34px;line-height:.9;margin-bottom:10px}.score-chip>small{display:block;color:#64748b;font-size:9px;font-weight:900;letter-spacing:.2em;margin-bottom:5px}.score-chip .hearts i{font-size:20px}.time-progress{height:7px;background:#aebdce;box-shadow:inset 0 2px 4px #52657a55;overflow:hidden}.time-progress i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#24b47e,#7bd66c);transition:width .2s linear,background .3s}.time-progress i.warning{background:linear-gradient(90deg,#f2bd2c,#ffd447)}.time-progress i.danger{background:linear-gradient(90deg,#dc3157,#ef476f)}.player.invulnerable{animation:peter-hit .12s steps(2,end) infinite}.round-message{position:absolute;z-index:15;left:50%;top:22%;transform:translate(-50%,-50%);padding:13px 20px;border-radius:14px;background:#143c35e8;color:#fff;font-size:15px;font-weight:1000;letter-spacing:.05em;box-shadow:0 8px 24px #11243c55;border:2px solid #75e0ae;animation:round-pop .7s ease both;pointer-events:none}.round-message b{color:#ffd447}@keyframes peter-hit{50%{opacity:.22;filter:saturate(.3)}}@keyframes round-pop{0%{opacity:0;transform:translate(-50%,-30%) scale(.8)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.05)}100%{opacity:0;transform:translate(-50%,-70%) scale(1)}}
@media(max-width:720px){.score-chip>b{font-size:27px;margin-bottom:7px}.score-chip>small{font-size:7px}.score-chip .hearts i{font-size:15px}.time-progress{height:5px}}

/* Rodadas, pontuação e equações com lacunas */
.equation-display{display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;margin-top:13px;min-height:48px}.equation-display strong{margin:0;font-size:32px}.equation-display .answer-slots{margin:0}.equation-display .fixed-result{font:bold 31px "Comic Sans MS",cursive;letter-spacing:4px}.equation-display .pattern{display:flex;align-items:center;gap:3px}.equation-display .pattern>span{display:grid;place-items:center;min-width:28px;height:43px;font:bold 30px "Comic Sans MS",cursive}.equation-display .pattern .known{color:#fff}.equation-display .pattern .missing{border-bottom:3px solid #ffd447;color:#ffd447}.game-meta{height:34px;display:flex;align-items:center;justify-content:center;gap:22px;background:#172a48;color:#c6d2e6;font-size:10px;font-weight:900;letter-spacing:.13em}.game-meta b{color:#ffd447;font-size:14px}.round-dots{display:flex;gap:5px}.round-dots i{width:9px;height:9px;border-radius:50%;background:#64748b;box-shadow:inset 0 1px 2px #0006}.round-dots i.done{background:#73e0a9;box-shadow:0 0 8px #73e0a988}.combo{padding:5px 9px;border-radius:8px;background:#ffffff12;color:#91a4c2}.combo.hot{background:#ffd447;color:#172844;animation:pulse .45s ease}.thinking-curtain{position:absolute;z-index:14;left:50%;top:19%;transform:translateX(-50%);padding:8px 14px;border-radius:11px;background:#173d35e8;border:2px solid #80dfb4;color:white;font-size:11px;font-weight:1000;letter-spacing:.12em;pointer-events:none}.playfield{height:min(646px,calc(100vh - 279px))}
@media(max-width:720px){.equation-display{gap:5px}.equation-display strong{font-size:22px}.equation-display .answer-slots span{width:25px}.equation-display .pattern>span{font-size:22px;min-width:20px;height:32px}.game-meta{height:30px;gap:9px;font-size:7px}.game-meta b{font-size:11px}.combo{padding:4px 6px}.playfield{height:calc(100vh - 202px);min-height:470px}}

/* Objetos especiais, alarme, recorde e cenários por rodada */
.delay-alarm{position:absolute;right:10px;top:8px;padding:4px 7px;border-radius:7px;background:#ef476f;color:#fff;font-size:8px;font-weight:1000;letter-spacing:.08em;box-shadow:0 0 0 3px #ef476f33;animation:alarm-pulse .55s ease-in-out infinite alternate}.chalkboard.delayed{box-shadow:inset 0 0 24px #0008,0 6px 0 #724422,0 0 0 4px #ef476f55}.special-object{position:absolute;z-index:6;width:66px;height:66px;border-radius:50%;display:grid;place-items:center;border:4px solid #fff;box-shadow:0 7px 0 #8494aa,0 12px 20px #17294366;font-size:34px}.special-object:after{content:"";position:absolute;inset:5px;border:2px dashed #ffffffaa;border-radius:50%}.special-object span{z-index:1;filter:drop-shadow(0 2px 1px #0002)}.special-object.book{background:linear-gradient(145deg,#8ce1b8,#28a77a)}.special-object.clock{background:linear-gradient(145deg,#ffe57d,#f2ad27)}.special-object.eraser{background:linear-gradient(145deg,#ff9ebb,#e94f78)}
.scene-banner{position:absolute;z-index:1;left:3%;right:3%;top:4%;height:62px;pointer-events:none;opacity:.48;transition:opacity .5s}.scene-banner i,.scene-banner b,.scene-banner span{position:absolute;display:block;transition:all .65s ease}.scene-banner i{left:2%;width:48px;height:48px;border-radius:50%;background:#ffd447;box-shadow:0 0 24px #ffd44799}.scene-banner b{left:50%;width:120px;height:46px;transform:translateX(-50%);border-radius:8px;background:#ffffff66;border:5px solid #fff}.scene-banner span{right:2%;width:54px;height:54px;background:#5eb6d2;clip-path:polygon(50% 0,100% 38%,82% 100%,18% 100%,0 38%)}
.playfield[data-scene="1"]{background:linear-gradient(#e7edf8 0 68%,#bb8b67 68% 100%)}.playfield[data-scene="1"] .scene-banner i{border-radius:8px;background:#ee6c86}.playfield[data-scene="1"] .scene-banner b{background:#c5dcff}.playfield[data-scene="1"] .scene-banner span{background:#6e64ba;transform:rotate(12deg)}
.playfield[data-scene="2"]{background:linear-gradient(#dcefe7 0 68%,#c79a60 68% 100%)}.playfield[data-scene="2"] .scene-banner i{background:#70c1a0;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%)}.playfield[data-scene="2"] .scene-banner b{background:#fff0a8;transform:translateX(-50%) rotate(-2deg)}.playfield[data-scene="2"] .scene-banner span{background:#e77e52}
.playfield[data-scene="3"]{background:linear-gradient(#dbe5f5 0 68%,#a97d62 68% 100%)}.playfield[data-scene="3"] .scene-banner i{background:#77a9e8}.playfield[data-scene="3"] .scene-banner b{background:#e6c7ff;width:145px}.playfield[data-scene="3"] .scene-banner span{background:#f0b341;transform:rotate(-12deg)}
@keyframes alarm-pulse{to{transform:scale(1.06);filter:brightness(1.18)}}
@media(max-width:720px){.game-meta{gap:6px}.special-object{width:54px;height:54px;font-size:28px}.scene-banner{height:48px}.delay-alarm{right:5px;top:5px;font-size:6px}}

/* Desafios avançados e rodada especial de entrega */
.vertical-equation{display:grid!important;grid-template-columns:24px auto;gap:0 8px!important;align-items:center!important;font:bold 25px "Comic Sans MS",cursive;line-height:1.02;margin-top:14px}.vertical-equation .vertical-op{grid-row:2;grid-column:1;color:#ffd447}.vertical-equation .vertical-a,.vertical-equation .vertical-b,.vertical-equation .vertical-result{grid-column:2;text-align:right;letter-spacing:4px}.vertical-equation .vertical-result{border-top:2px solid #fff;padding-top:2px}.vertical-equation .missing{display:inline-block;min-width:22px;color:#ffd447;border-bottom:2px solid #ffd447;text-align:center}.chalkboard.thinking{animation:board-think .65s ease-in-out infinite alternate}.player.celebrating{z-index:12}.player.celebrating .peter-sprite{animation:peter-celebrate .32s ease-in-out 4 alternate!important}.delivery-zone{position:absolute;z-index:7;left:50%;bottom:6%;width:176px;height:92px;transform:translateX(-50%);border:3px dashed #ffd447;border-radius:50%;background:#173d3566;box-shadow:0 0 0 8px #ffd4471f,0 0 28px #ffd44755;display:grid;place-items:center;color:#fff;font-size:10px;font-weight:1000;letter-spacing:.12em}.delivery-zone span{margin-top:-12px}.delivery-zone i{position:absolute;left:9px;right:9px;bottom:10px;height:8px;border-radius:5px;background:#ffffff33;overflow:hidden}.delivery-zone i:after{content:"";display:block;width:var(--delivery,0%);height:100%;background:#ffd447;transition:width .06s linear}.delivery-zone.ready{background:#2da97977;box-shadow:0 0 0 8px #6de4ad2b,0 0 32px #6de4ad88}.power-status{min-width:24px;color:#fff;font-size:15px;letter-spacing:2px;white-space:nowrap}.special-object.shield{background:linear-gradient(145deg,#9ed7ff,#367fd0)}.special-object.pencil{background:linear-gradient(145deg,#ffe76e,#eaa922)}.special-object.star{background:linear-gradient(145deg,#d7b1ff,#8b5cd2)}
@keyframes board-think{to{filter:brightness(1.12);box-shadow:inset 0 0 24px #0008,0 6px 0 #724422,0 0 16px #78dfb399}}
@keyframes peter-celebrate{from{transform:translateX(-50%) translateY(0) rotate(-2deg)}to{transform:translateX(-50%) translateY(-22px) rotate(3deg)}}
@media(max-width:720px){.vertical-equation{font-size:20px}.delivery-zone{width:145px;height:76px}.power-status{font-size:11px;letter-spacing:0}}

/* Música independente e contas verticais com lacunas em todas as linhas */
.audio-controls{display:flex;gap:8px}.icon-button.muted{opacity:.52;color:#9aabc3}.vertical-equation{grid-template-rows:13px repeat(3,auto)!important;font-size:24px!important;line-height:1!important;margin-top:13px!important}.vertical-equation .vertical-work{grid-column:2;grid-row:1;text-align:right;color:#82e6b5;font-size:10px;letter-spacing:2px;min-height:11px}.vertical-equation .vertical-a{grid-row:2}.vertical-equation .vertical-op{grid-row:3!important}.vertical-equation .vertical-b{grid-row:3}.vertical-equation .vertical-result{grid-row:4}.vertical-equation .vertical-a,.vertical-equation .vertical-b,.vertical-equation .vertical-result{grid-column:2}.vertical-equation .missing{animation:pulse 1s infinite}.vertical-equation .work-missing{font-size:11px;min-width:13px}
@media(max-width:720px){.audio-controls{gap:5px}.audio-controls .icon-button{width:34px;height:34px;font-size:19px}.vertical-equation{font-size:19px!important}}

/* Contas avançadas mantêm a mesma leitura horizontal das demais */
.advanced-equation{display:flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;font:bold 32px "Comic Sans MS",cursive}.advanced-equation em{color:#f9d65c;font-style:normal}.inline-number{display:inline-flex;align-items:center;letter-spacing:1px}.inline-number>span{display:inline-grid;place-items:center;min-width:20px}.inline-number .missing{min-width:27px;height:38px;color:#ffd447;border-bottom:3px solid #ffd447;animation:pulse 1s infinite}
@media(max-width:720px){.advanced-equation{gap:5px;font-size:23px}.inline-number>span{min-width:15px}.inline-number .missing{min-width:21px;height:30px}}

/* Sequência exclusiva de comemoração */
.player.celebrating{width:180px;height:205px}.player.celebrating .peter-sprite{animation:none!important;transform:none!important}
@media(max-width:720px){.player.celebrating{width:145px;height:175px}}

/* Direção de arte premium: cenário, números e coletáveis ilustrados */
.playfield{background-color:#b77936;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;box-shadow:inset 0 10px 24px rgba(8,28,48,.22);transition:filter .15s,background-image .35s ease}
.playfield[data-scene="0"]{background-image:linear-gradient(180deg,rgba(10,35,58,.04),rgba(10,28,45,.12)),url('assets/art/backgrounds/scene-0.webp')!important}.playfield[data-scene="1"]{background-image:linear-gradient(180deg,rgba(10,35,58,.02),rgba(10,28,45,.1)),url('assets/art/backgrounds/scene-1.webp')!important}.playfield[data-scene="2"]{background-image:linear-gradient(180deg,rgba(10,35,58,.02),rgba(10,28,45,.08)),url('assets/art/backgrounds/scene-2.webp')!important}.playfield[data-scene="3"]{background-image:linear-gradient(180deg,rgba(10,35,58,.02),rgba(10,28,45,.08)),url('assets/art/backgrounds/scene-3.webp')!important}.playfield[data-scene="4"]{background-image:linear-gradient(180deg,rgba(10,35,58,.02),rgba(10,28,45,.1)),url('assets/art/backgrounds/scene-4.webp')!important}.playfield[data-scene="5"]{background-image:linear-gradient(180deg,rgba(10,20,38,.02),rgba(5,14,29,.13)),url('assets/art/backgrounds/scene-5.webp')!important}.playfield[data-scene="6"]{background-image:linear-gradient(180deg,rgba(12,25,60,.02),rgba(8,18,45,.12)),url('assets/art/backgrounds/scene-6.webp')!important}.playfield:before{z-index:2;background:linear-gradient(90deg,rgba(11,41,63,.12),transparent 18%,transparent 82%,rgba(11,41,63,.12));pointer-events:none}.scene-banner,.ceiling-lights,.windows,.wall-details,.floor-lines{display:none!important}
.falling-number{width:78px;height:78px;border:0;border-radius:0;background:transparent url('assets/art/number-token.png') center/contain no-repeat;box-shadow:none;filter:drop-shadow(0 9px 7px rgba(13,31,52,.32));display:grid;place-items:center}.falling-number:after{display:none}.falling-number span,.falling-number:nth-of-type(3n) span,.falling-number:nth-of-type(4n) span{color:#0c3970!important;font:1000 35px/1 "Trebuchet MS",Arial,sans-serif;text-shadow:0 2px 0 #fff,0 3px 5px rgba(18,46,78,.25);transform:translateY(-1px)}
.special-object{width:82px;height:82px;border:0;border-radius:0;background-color:transparent!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important;box-shadow:none;filter:drop-shadow(0 9px 7px rgba(13,31,52,.34))}.special-object:after{display:none}.special-object span{display:none}.special-object.book{background-image:url('assets/art/items/book.png')}.special-object.clock{background-image:url('assets/art/items/clock.png')}.special-object.eraser{background-image:url('assets/art/items/eraser.png')}.special-object.shield{background-image:url('assets/art/items/shield.png')}.special-object.pencil{background-image:url('assets/art/items/pencil.png')}.special-object.star{background-image:url('assets/art/items/star.png')}
.power-status{display:flex;align-items:center;gap:3px;min-width:26px}.power-icon{display:block;width:25px;height:25px;background-position:center;background-repeat:no-repeat;background-size:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}.power-icon.shield{background-image:url('assets/art/items/shield.png')}.power-icon.pencil{background-image:url('assets/art/items/pencil.png')}.power-icon.star{background-image:url('assets/art/items/star.png')}
.target-hint{background:linear-gradient(180deg,rgba(10,38,65,.96),rgba(5,24,44,.96));border:1px solid rgba(255,212,71,.45);box-shadow:0 8px 20px rgba(5,21,38,.38),inset 0 1px 0 rgba(255,255,255,.14)}.target-hint b{background:linear-gradient(145deg,#ffe77a,#f4b92a);box-shadow:inset 0 1px 0 #fff8,0 2px 0 #aa7112}.round-message{background:linear-gradient(180deg,rgba(13,69,61,.97),rgba(7,47,43,.97));border-color:#88e3b7;box-shadow:0 10px 28px rgba(5,24,42,.42)}
@media(max-width:720px){.falling-number{width:64px;height:64px}.falling-number span,.falling-number:nth-of-type(3n) span,.falling-number:nth-of-type(4n) span{font-size:29px}.special-object{width:68px;height:68px}.power-icon{width:19px;height:19px}.playfield{background-position:center!important}}

/* Centralização óptica dos algarismos dentro da placa ilustrada */
.falling-number{position:absolute;display:block}.falling-number span,.falling-number:nth-of-type(3n) span,.falling-number:nth-of-type(4n) span{position:absolute;left:50%;top:47.5%;width:48%;height:48%;display:flex;align-items:center;justify-content:center;margin:0;padding:0;transform:translate(-50%,-50%)!important;text-align:center;font-variant-numeric:tabular-nums;letter-spacing:0}

/* Pausa profissional entre rodadas e proteção sem piscar Peter */
.player.invulnerable{animation:none!important}.player.invulnerable .peter-sprite{filter:drop-shadow(0 0 7px #ef476f) drop-shadow(0 8px 6px #25334c55)}
.round-break{position:absolute;z-index:19;inset:0;display:grid;place-items:center;padding:20px;background:linear-gradient(180deg,rgba(8,25,47,.66),rgba(5,17,35,.86));backdrop-filter:blur(4px)}
.round-break-panel{width:min(440px,94%);padding:30px 32px 32px;text-align:center;border-radius:26px;background:linear-gradient(165deg,#fff,#edf3fb);box-shadow:0 24px 70px #020817aa,0 0 0 6px #ffffff2b;border:1px solid #fff}
.round-break-panel h2{margin:12px 0 6px;color:#142b50;font-size:31px}.round-stage{height:190px;margin:8px 0 20px;display:grid;grid-template-columns:1fr 1.25fr;align-items:center;gap:5px;border-radius:22px;background:linear-gradient(145deg,#e8f1ff,#fff7dc);border:1px solid #d9e3f0;overflow:hidden;box-shadow:inset 0 1px 0 #fff}.round-peter{align-self:end;width:185px;height:185px;margin-left:5px;background-image:url('assets/celebrate/peter-celebrate-sheet-v2.webp');background-repeat:no-repeat;background-size:400% 100%;background-position:0 center;filter:drop-shadow(0 7px 5px #20324a44);animation:round-peter-frames 1.08s steps(1) infinite}.round-points{padding-right:18px}.round-points p{margin:0 0 7px;color:#64748b;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.round-points strong{display:grid;place-items:center;min-width:150px;height:92px;border-radius:19px;background:linear-gradient(145deg,#173d35,#0d2825);border:5px solid #9b6335;color:#ffd447;font-size:40px;line-height:1;box-shadow:inset 0 0 18px #0008,0 8px 18px #13213a33;font-variant-numeric:tabular-nums}.round-break-panel small{display:block;margin-top:16px;color:#748297;font-size:10px}.round-break-panel .primary-button{min-width:260px}.primary-button:disabled{cursor:wait;opacity:.6;transform:none;box-shadow:0 4px 0 #d59c15}@keyframes round-peter-frames{0%,24.99%{background-position:0 center}25%,49.99%{background-position:33.333% center}50%,74.99%{background-position:66.666% center}75%,100%{background-position:100% center}}
@media(max-width:720px){.round-break-panel{padding:25px 14px 27px}.round-break-panel h2{font-size:26px}.round-stage{height:158px;grid-template-columns:1fr 1.18fr}.round-peter{width:150px;height:150px;margin-left:0}.round-points{padding-right:10px}.round-points strong{min-width:118px;height:76px;font-size:34px}.round-points p{font-size:9px}.round-break-panel .primary-button{min-width:0;width:100%;font-size:13px}}

/* Composição compacta para execução integral dentro do portal */
.site-shell{min-height:100vh;padding-bottom:0}.topbar{height:54px}.status-row{height:112px}.playfield{height:calc(100vh - 247px);min-height:440px}footer{height:40px}.brand-mark{font-size:0;border:0;background:transparent url('../assets/brand/peter-math-logo.webp') center/contain no-repeat;transform:none;filter:drop-shadow(0 3px 5px #050b1866)}
@media(max-width:720px){.topbar{height:56px}.status-row{height:116px}.playfield{height:calc(100vh - 207px);min-height:440px}.brand-mark{width:40px;height:40px}}

/* HUD realinhado, sem a faixa azul interna */
.topbar{display:none!important}.site-shell{background:#101d35}.game-card{width:min(1120px,100%);border-radius:20px;margin:0 auto}.status-row{height:126px;grid-template-columns:190px minmax(390px,1fr) 190px;gap:20px;padding:10px 26px;overflow:hidden}.chalkboard{align-self:center;width:100%;height:104px;padding:12px 20px;border-width:7px;box-shadow:inset 0 0 24px #0008,0 4px 0 #724422}.chalkboard:after{bottom:3px;height:4px}.score-chip{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.score-chip>span{margin-bottom:5px}.score-chip>b{margin-bottom:6px}.score-chip>small{margin-bottom:3px}.hearts{height:23px;align-items:center;justify-content:center;gap:6px}.score-chip .hearts i{font-size:20px;line-height:1}.timer{display:flex;flex-direction:column;align-items:center;justify-content:center}.game-meta{height:36px;position:relative;padding-right:78px}.hud-audio{position:absolute;right:10px;top:5px;height:26px;padding:0 9px 0 7px;display:flex;align-items:center;gap:6px;border:1px solid #ffffff2e;border-radius:9px;background:#ffffff12;color:#dce7f8;font-size:8px;font-weight:900;letter-spacing:.1em;cursor:pointer}.hud-audio i{position:relative;width:13px;height:13px;display:block}.hud-audio i:before{content:"";position:absolute;left:1px;top:4px;width:5px;height:6px;background:#ffd447;clip-path:polygon(0 28%,45% 28%,100% 0,100% 100%,45% 72%,0 72%)}.hud-audio i:after{content:"";position:absolute;right:0;top:2px;width:5px;height:9px;border-right:2px solid #ffd447;border-radius:50%}.hud-audio.muted{opacity:.55}.hud-audio.muted i:after{border:0;width:12px;height:2px;top:6px;right:-1px;background:#ef476f;transform:rotate(-45deg)}.playfield{height:calc(100vh - 209px);min-height:440px}footer{height:40px}
@media(max-width:720px){.game-card{border-radius:0}.status-row{height:116px;grid-template-columns:72px minmax(0,1fr) 66px;gap:7px;padding:8px}.chalkboard{height:100px;padding:8px 6px;border-width:5px}.score-chip .hearts i{font-size:16px}.hearts{gap:2px}.game-meta{height:34px;padding-right:51px;gap:6px}.hud-audio{right:5px;top:5px;width:42px;padding:0;justify-content:center}.hud-audio span{display:none}.playfield{height:calc(100vh - 155px);min-height:440px}}

/* Sistema de até cinco vidas e coração coletável */
.special-object.heart{background-image:url('assets/art/items/heart.png');animation:heart-float .7s ease-in-out infinite alternate;filter:drop-shadow(0 0 10px rgba(255,71,111,.7)) drop-shadow(0 9px 7px rgba(13,31,52,.34))}
.round-life-bonus{width:max-content;margin:8px auto -1px;padding:6px 11px 6px 7px;display:flex;align-items:center;gap:7px;border-radius:999px;background:#fff0f3;border:1px solid #ff9bb0;color:#bd2145;font-size:10px;font-weight:1000;letter-spacing:.08em;box-shadow:0 4px 12px #b5204130}.round-life-bonus i{width:24px;height:22px;background:url('assets/art/items/heart.png') center/contain no-repeat;filter:drop-shadow(0 2px 2px #7c173744)}.round-life-bonus[hidden]{display:none}.round-life-bonus+.round-stage{margin-top:7px}
@keyframes heart-float{to{filter:drop-shadow(0 0 16px rgba(255,71,111,.95)) drop-shadow(0 11px 8px rgba(13,31,52,.3))}}
@media(max-width:720px){.score-chip .hearts{gap:2px}.score-chip .hearts i{font-size:13px}.round-life-bonus{font-size:9px}}

/* Pausa — única inclusão visual na composição desktop */
.game-meta{padding-right:148px}.hud-pause{position:absolute;right:77px;top:5px;height:26px;padding:0 9px 0 7px;display:flex;align-items:center;gap:6px;border:1px solid #ffffff2e;border-radius:9px;background:#ffffff12;color:#dce7f8;font-size:8px;font-weight:900;letter-spacing:.1em;cursor:pointer}.hud-pause i{position:relative;width:12px;height:13px;display:block}.hud-pause i:before,.hud-pause i:after{content:"";position:absolute;top:2px;width:3px;height:9px;border-radius:1px;background:#ffd447}.hud-pause i:before{left:2px}.hud-pause i:after{right:2px}.hud-pause:hover,.hud-audio:hover{background:#ffffff20}
.pause-overlay{position:absolute;z-index:40;inset:0;display:grid;place-items:center;padding:18px;background:linear-gradient(180deg,rgba(7,24,45,.72),rgba(4,15,31,.9));backdrop-filter:blur(5px)}.pause-overlay[hidden]{display:none}.pause-panel{width:min(390px,94%);padding:30px;text-align:center;border-radius:25px;background:linear-gradient(165deg,#fff,#eef4fb);box-shadow:0 24px 70px #020817aa,0 0 0 6px #ffffff2b}.pause-panel h2{margin:12px 0 7px;color:#142b50;font-size:30px}.pause-panel p{margin:0 0 22px;color:#607188;line-height:1.45}.pause-panel .primary-button,.pause-panel .secondary-button{width:100%}.secondary-button{margin-top:13px;padding:12px 18px;border:1px solid #cbd8e6;border-radius:13px;background:#fff;color:#29445f;font-weight:950;letter-spacing:.05em;cursor:pointer}.secondary-button:hover{background:#f2f6fa}

/* Mobile/tablet: jogo proporcional e integral no viewport */
@media(max-width:1024px) and (pointer:coarse){
  html,body{width:100%;height:100%;overscroll-behavior:none}.site-shell{min-height:100%;padding:0}.game-card{width:100%;max-width:none;margin:0;border-radius:0}.status-row{height:clamp(100px,15dvh,116px)}.game-meta{height:34px;padding-right:92px}.hud-pause{right:48px;width:40px;padding:0;justify-content:center}.hud-pause span{display:none}.hud-audio{right:4px;width:40px;padding:0;justify-content:center}.hud-audio span{display:none}.playfield{height:calc(100dvh - clamp(100px,15dvh,116px) - 41px);min-height:0}.player{width:clamp(88px,24vw,118px);height:clamp(126px,34vw,168px);bottom:3.4%}.shadow{width:clamp(70px,21vw,100px);height:clamp(14px,4vw,20px);bottom:3%}.falling-number{width:clamp(46px,13vw,64px);height:clamp(46px,13vw,64px)}.falling-number span,.falling-number:nth-of-type(3n) span,.falling-number:nth-of-type(4n) span{font-size:clamp(24px,7vw,31px)}.special-object{width:clamp(50px,14vw,68px);height:clamp(50px,14vw,68px)}.target-hint{right:8px;bottom:8px;padding:6px 8px;font-size:8px}.target-hint b{width:24px;height:24px;font-size:15px;margin-left:4px}.thinking-curtain{top:15%;font-size:9px;padding:6px 10px}.round-message{top:18%;font-size:11px;padding:9px 12px}.overlay-panel,.result-panel,.pause-panel{max-height:calc(100dvh - 24px);overflow:auto}.overlay-panel{padding:20px 18px}.overlay h1{font-size:clamp(29px,9vw,38px);margin-top:6px}.overlay-panel>p{font-size:13px;margin-bottom:10px}.overlay ul{margin:12px 0}.overlay li{font-size:11px}.mini-example{margin:10px auto;padding:7px;font-size:18px}.primary-button{padding:12px 16px}.pause-panel{padding:24px 20px}.pause-panel h2{font-size:26px}
  html.mobile-expanded,html.mobile-expanded body{width:100%;height:100%;overflow:hidden;background:#101d35}html.mobile-expanded .site-shell,html.mobile-expanded .game-card{height:100dvh}html.mobile-expanded footer{display:none}
}
@media(max-width:720px){.game-meta{padding-right:92px;gap:4px}.hud-pause{right:48px}.playfield{height:calc(100dvh - clamp(100px,15dvh,116px) - 41px);min-height:0}.player{width:88px;height:126px}.falling-number{width:48px;height:48px}.special-object{width:52px;height:52px}.round-break{padding:8px}.round-break-panel{max-height:calc(100dvh - 16px);overflow:auto}}

/* Resposta visual mais imediata exclusivamente no mobile em orientação vertical */
@media(max-width:1024px) and (orientation:portrait) and (pointer:coarse){
  .player,.shadow{transition-duration:.025s}
}

/* Composição específica para celulares e tablets de baixa altura na horizontal */
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse){
  .status-row{height:80px;grid-template-columns:76px minmax(280px,1fr) 70px;gap:6px;padding:4px 8px}.score-chip>span,.timer>span{font-size:8px;margin-bottom:2px}.score-chip>b{font-size:23px;margin-bottom:2px}.score-chip .hearts{height:14px;gap:1px}.score-chip .hearts i{font-size:11px}.timer b{font-size:25px}.timer small{font-size:11px}.chalkboard{height:72px;padding:5px 12px;border-width:5px}.chalkboard:after{bottom:2px;height:3px}.chalkboard small{top:5px;font-size:7px}.equation-display{min-height:36px;margin-top:8px;gap:6px}.equation-display strong{font-size:25px}.answer-slots{gap:3px}.answer-slots span{width:30px;height:32px;font-size:22px}.equation-display .answer-slots{margin:0}.equation-display .pattern>span{min-width:22px;height:31px;font-size:22px}.advanced-equation{font-size:23px;gap:5px}.inline-number .missing{height:29px}.game-meta{height:28px;padding-right:82px;gap:7px;font-size:7px}.game-meta b{font-size:10px}.round-dots i{width:7px;height:7px}.combo{padding:3px 6px}.hud-pause,.hud-audio{top:3px;width:36px;height:22px}.hud-pause{right:43px}.hud-audio{right:4px}.hud-pause i,.hud-audio i{transform:scale(.85)}.playfield{height:calc(100dvh - 115px);min-height:0}.player,.player.celebrating{width:72px;height:102px;bottom:3%}.shadow{width:62px;height:12px;bottom:2.5%}.falling-number{width:40px;height:40px}.falling-number span,.falling-number:nth-of-type(3n) span,.falling-number:nth-of-type(4n) span{font-size:21px}.special-object{width:44px;height:44px}.target-hint{right:5px;bottom:5px;padding:4px 6px;font-size:7px}.target-hint b{width:20px;height:20px;font-size:13px}.thinking-curtain{top:9%;font-size:7px;padding:4px 7px}.round-message{top:13%;font-size:9px;padding:6px 9px}
  #intro,.pause-overlay,#result,.round-break{position:fixed;inset:0;z-index:60;padding:max(7px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left));overflow:hidden}.overlay-panel{width:min(680px,94%);max-height:calc(100dvh - 14px);padding:9px 16px;border-radius:16px;overflow:auto}.overlay h1{font-size:26px;line-height:1;margin:2px 0 4px}.overlay-panel>p{font-size:10px;line-height:1.2;margin:0 auto 4px}.mini-example{margin:4px auto;padding:4px 7px;border-width:3px;font-size:14px}.mini-example b{width:25px;height:25px}.overlay ul{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:5px 0}.overlay li{gap:4px;font-size:8px;line-height:1.15}.overlay li span{flex-basis:18px;height:18px;font-size:8px}.overlay-panel .primary-button{padding:8px 14px;font-size:10px}.overlay-panel>small{display:none}.eyebrow{padding:4px 8px;font-size:8px}.pause-panel{width:min(390px,88%);max-height:calc(100dvh - 14px);padding:12px 18px;border-radius:16px;overflow:auto}.pause-panel h2{font-size:21px;margin:4px 0 2px}.pause-panel p{font-size:10px;margin-bottom:8px}.pause-panel .primary-button,.pause-panel .secondary-button{padding:8px 12px;font-size:9px}.secondary-button{margin-top:6px}.round-break-panel{width:min(540px,92%);padding:8px 14px 10px;border-radius:16px;max-height:calc(100dvh - 14px);overflow:auto}.round-break-panel h2{font-size:20px;margin:3px}.round-life-bonus{margin:2px auto;font-size:7px;padding:2px 6px}.round-life-bonus i{width:16px;height:15px}.round-stage{height:92px;margin:3px 0 6px}.round-peter{width:92px;height:92px}.round-points p{font-size:7px}.round-points strong{min-width:108px;height:50px;font-size:24px;border-width:3px}.round-break-panel .primary-button{min-width:205px;padding:8px 12px;font-size:9px}.round-break-panel small{margin-top:5px;font-size:7px}.result-panel{width:min(430px,88%);max-height:calc(100dvh - 14px);padding:12px 18px 14px;border-radius:18px;overflow:auto}.result-icon{width:42px;height:42px;margin:0 auto 3px;font-size:23px;border-width:4px}.result-panel h2{font-size:21px;line-height:1.1;margin:4px 0}.result-panel p{font-size:9px;line-height:1.25;margin:4px 0 8px}.result-panel .primary-button{padding:9px 15px;font-size:10px}.result-panel .primary-button span{font-size:15px;margin-left:5px}
}

/* Abertura premium com Peter como protagonista */
.intro-panel{position:relative;width:min(760px,94%);min-height:370px;padding:0;display:grid;grid-template-columns:1.12fr .88fr;overflow:hidden;text-align:left;border:1px solid #fff;background:linear-gradient(112deg,#fff 0 57%,#e9f3ff 57% 100%);box-shadow:0 28px 80px #020817b8,0 0 0 6px #ffffff2b}
.intro-panel:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 83% 18%,#fff8a9aa 0 11%,transparent 34%),linear-gradient(135deg,transparent 0 66%,#94c8ff35 66% 100%);pointer-events:none}
.intro-copy{position:relative;z-index:2;padding:38px 12px 30px 40px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.intro-kicker{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;color:#2756ae;background:#e8efff;border:1px solid #cddcff;font-size:9px;font-weight:1000;letter-spacing:.15em}
.intro-kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:#ffd447;box-shadow:0 0 0 3px #ffd44733}
.overlay .intro-panel h1{margin:11px 0 7px;font-size:43px;line-height:.98;letter-spacing:-.035em;color:#142b50}
.intro-tagline{max-width:365px;margin:0!important;color:#526981!important;font-size:15px!important;font-weight:750;line-height:1.38!important}
.intro-features{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:19px 0 18px}
.intro-features>div{min-height:61px;padding:8px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d9e5ef;border-radius:13px;background:#f7fafdee;color:#3e5870;box-shadow:0 5px 14px #24445d0d}
.intro-features b{display:grid;place-items:center;flex:0 0 31px;height:31px;border-radius:10px;color:#fff;background:linear-gradient(145deg,#2c69c9,#214eaf);font-size:18px;line-height:1;box-shadow:0 4px 8px #214eaf35}
.intro-features span{font-size:9px;font-weight:900;line-height:1.18}
.intro-bonus{flex:0 0 31px;height:31px;background:url('assets/art/items/star.png') center/contain no-repeat;filter:drop-shadow(0 3px 4px #6c45a344)}
.intro-start{min-width:245px;padding:14px 22px;font-size:14px}
.difficulty-picker{width:100%;margin:-7px 0 16px}.difficulty-picker>span{display:block;margin:0 0 6px;color:#6b7d91;font-size:8px;font-weight:1000;letter-spacing:.16em;text-transform:uppercase}.difficulty-options{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border:1px solid #d4e0ed;border-radius:13px;background:#edf3f8;box-shadow:inset 0 1px 3px #1c355015}.difficulty-options button{min-width:0;padding:7px 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#536a80;cursor:pointer;font-weight:1000;font-size:10px;line-height:1.05;transition:.15s}.difficulty-options button small{display:block;margin-top:3px;color:#8291a1;font-size:7px;font-weight:800}.difficulty-options button.selected{border-color:#c4d7ee;background:#fff;color:#214eaf;box-shadow:0 3px 9px #233d5720}.difficulty-options button.selected small{color:#547395}.difficulty-options button:focus-visible{outline:3px solid #ffd447;outline-offset:2px}
.target-hint[hidden]{display:none}
.intro-copy>small{margin:13px 0 0 4px;color:#718198;font-size:9px}
.intro-hero{position:relative;z-index:1;min-width:0;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.intro-halo{position:absolute;width:255px;height:255px;left:50%;top:48%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fffbd0 0 43%,#ffd447 44% 47%,#89baf466 48% 61%,transparent 62%);filter:drop-shadow(0 14px 28px #214eaf24)}
.intro-hero img{position:relative;z-index:2;width:auto;height:335px;max-width:none;object-fit:contain;filter:drop-shadow(0 13px 10px #1f315444);transform:translateX(-3px)}
.intro-number{position:absolute;z-index:3;width:49px;height:49px;display:grid;place-items:center;border:4px solid #fff;border-radius:15px;color:#214eaf;background:linear-gradient(145deg,#fffdf1,#ffe786);box-shadow:0 6px 0 #d09a20,0 10px 18px #24395d38;font-size:26px;font-weight:1000;transform:rotate(-8deg)}
.intro-number-one{left:9%;top:17%}.intro-number-two{right:7%;top:31%;color:#d72d5d;transform:rotate(9deg)}
@media(max-width:720px) and (orientation:portrait){#intro{padding:6px}.intro-panel{width:min(430px,94%);min-height:0;max-height:calc(100% - 12px);grid-template-columns:1fr;grid-template-rows:148px auto;background:linear-gradient(180deg,#e9f3ff 0 32%,#fff 32% 100%);overflow:hidden}.intro-hero{grid-row:1;align-items:center;padding:5px 0}.intro-copy{grid-row:2;padding:10px 16px 12px;align-items:center;text-align:center}.intro-hero img{width:auto;height:138px;max-height:calc(100% - 10px);object-fit:contain;object-position:center;transform:none}.intro-halo{width:132px;height:132px;top:50%}.intro-number{width:34px;height:34px;border-width:3px;border-radius:11px;font-size:18px}.intro-number-one{left:19%;top:19%}.intro-number-two{right:18%;top:30%}.intro-kicker{padding:4px 8px;font-size:7px}.overlay .intro-panel h1{font-size:29px;margin:6px 0 3px}.intro-tagline{max-width:310px;font-size:10px!important;line-height:1.25!important}.intro-features{margin:9px 0;gap:4px}.intro-features>div{min-height:44px;padding:4px 3px;gap:3px;border-radius:10px}.intro-features b,.intro-bonus{flex-basis:24px;width:24px;height:24px;font-size:14px}.intro-features span{font-size:7px}.intro-start{width:100%;min-width:0;padding:10px 13px;font-size:11px}.intro-start span{font-size:16px}.intro-copy>small{margin:7px 0 0;font-size:7px}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse){.intro-panel{width:min(670px,94%);min-height:0;height:min(310px,calc(100dvh - 14px));grid-template-columns:1.2fr .8fr}.intro-copy{padding:18px 8px 15px 24px}.intro-kicker{padding:4px 8px;font-size:7px}.overlay .intro-panel h1{font-size:31px;margin:7px 0 4px}.intro-tagline{font-size:10px!important}.intro-features{margin:10px 0 9px;gap:5px}.intro-features>div{min-height:46px;padding:5px;gap:4px;border-radius:9px}.intro-features b,.intro-bonus{flex-basis:25px;width:25px;height:25px;font-size:14px}.intro-features span{font-size:7px}.intro-start{min-width:205px;padding:9px 14px!important;font-size:10px!important}.intro-copy>small{margin-top:8px;font-size:7px}.intro-hero img{height:270px}.intro-halo{width:205px;height:205px}.intro-number{width:36px;height:36px;border-width:3px;border-radius:11px;font-size:19px}.intro-number-one{left:5%;top:15%}.intro-number-two{right:4%;top:30%}}

/* HUD proporcional exclusivamente no mobile em orientação vertical */
@media(max-width:720px) and (orientation:portrait){
  .status-row{height:108px;grid-template-columns:68px minmax(0,1fr) 68px;gap:5px;padding:6px 7px}
  .status-chip>span{margin-bottom:4px;font-size:8px;letter-spacing:.18em}
  .score-chip>b,.timer b{font-size:25px;line-height:1;margin-bottom:5px}
  .timer small{font-size:11px}
  .score-chip .hearts{height:17px;gap:2px}
  .score-chip .hearts i{font-size:15px;line-height:1}
  .chalkboard{height:88px;padding:7px 6px;border-width:5px;border-radius:11px}
  .chalkboard:after{bottom:2px;height:3px}
  .chalkboard small{top:5px;font-size:7px}
  .equation-display{min-height:38px;margin-top:7px;gap:4px}
  .equation-display strong{font-size:21px}
  .answer-slots{gap:2px}
  .answer-slots span,.equation-display .answer-slots span{width:24px;height:30px;font-size:20px;border-bottom-width:2px}
  .equation-display .pattern>span{min-width:19px;height:29px;font-size:20px}
  .advanced-equation{font-size:20px;gap:4px}
  .inline-number .missing{height:27px}
  .time-progress{height:5px}
  .game-meta{height:56px;padding:3px 6px;display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,1.1fr) minmax(0,1fr);grid-template-rows:24px 26px;column-gap:4px;row-gap:0;align-items:center;justify-items:center;font-size:8px;letter-spacing:.08em}
  .game-meta>span:nth-of-type(1){grid-row:1;grid-column:1;justify-self:start;white-space:nowrap}
  .round-dots{grid-row:1;grid-column:2;justify-self:center;gap:5px}
  .round-dots i{width:8px;height:8px}
  .power-status{position:absolute;z-index:2;top:6px;right:74px;min-width:0;font-size:10px;overflow:visible}
  .combo{grid-row:1;grid-column:3;justify-self:center;width:64px;padding:4px 5px;border-radius:7px;font-size:8px;line-height:1;letter-spacing:.06em;text-align:center;white-space:nowrap}
  .game-meta>span:nth-of-type(3){grid-row:2;grid-column:1;justify-self:start;white-space:nowrap}
  .game-meta>span:nth-of-type(4){grid-row:2;grid-column:2;justify-self:center;white-space:nowrap;text-align:center}
  .game-meta b{font-size:11px}
  .hud-pause,.hud-audio{position:relative;right:auto;top:auto;width:28px;height:23px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:7px}
  .hud-pause{grid-row:2;grid-column:3;justify-self:center;transform:translateX(-17px)}.hud-audio{grid-row:2;grid-column:3;justify-self:center;transform:translateX(17px)}
  .hud-pause i,.hud-audio i{transform:scale(.78)}
  .game-meta:before{content:"";position:absolute;z-index:0;left:8px;right:8px;top:28px;height:1px;background:linear-gradient(90deg,transparent,#ffffff2b 14%,#73e0a955 50%,#ffffff2b 86%,transparent);pointer-events:none}
  .game-meta>*:not(.power-status){position:relative;z-index:1}
  .playfield{height:calc(100dvh - 169px);min-height:0}
}

/* Mensagens premium com ilustrações de Peter */
.premium-message{position:relative;width:min(700px,94%);min-height:330px;padding:0;display:grid;grid-template-columns:.92fr 1.08fr;overflow:hidden;text-align:left;border:1px solid #fff;border-radius:28px;background:linear-gradient(112deg,#e9f3ff 0 43%,#fff 43% 100%);box-shadow:0 28px 80px #020817b8,0 0 0 6px #ffffff2b}
.premium-message:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 24%,#fff9adbb 0 12%,transparent 35%),linear-gradient(135deg,transparent 0 70%,#8bbfff24 70% 100%);pointer-events:none}
.message-art{position:relative;z-index:1;min-width:0;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.message-halo{position:absolute;left:50%;top:49%;width:245px;height:245px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#fffbd0 0 42%,#ffd447 43% 46%,#8dbcf35e 47% 61%,transparent 62%)}
.message-art img{position:relative;z-index:2;width:auto;height:300px;max-width:115%;object-fit:contain;filter:drop-shadow(0 13px 10px #1f315440)}
.message-copy{position:relative;z-index:2;padding:34px 34px 28px 20px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.message-copy .eyebrow{padding:6px 10px;border:1px solid #cadbff;border-radius:999px;background:#e8efff;color:#2756ae;font-size:9px;letter-spacing:.14em}
.premium-message .message-copy h2{margin:10px 0 7px;color:#142b50;font-size:31px;line-height:1.05;letter-spacing:-.02em}
.premium-message .message-copy p{margin:0 0 19px;color:#5b7187;font-size:13px;line-height:1.48}
.premium-message .primary-button,.premium-message .secondary-button{width:100%}
.premium-message .primary-button{padding:13px 17px;font-size:12px}
.premium-message .secondary-button{margin-top:10px;padding:11px 15px;font-size:10px}
.premium-message .result-icon{position:absolute;z-index:4;right:14px;top:18px;width:48px;height:48px;margin:0;border-width:5px;font-size:27px}
.result-panel.premium-message{padding:0}.result-panel.premium-message .message-copy p{margin-bottom:17px}.result-panel.premium-message .message-copy p small{font-size:9px;color:#74879a}
.round-break-panel{position:relative;overflow:hidden;border:1px solid #fff;background:linear-gradient(155deg,#fff 0 56%,#eef5ff 100%);box-shadow:0 28px 80px #020817b8,0 0 0 6px #ffffff2b}
.round-break-panel:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 38%,#fff6a66b,transparent 34%),linear-gradient(135deg,transparent 0 72%,#91c1ff24 72%);pointer-events:none}
.round-break-panel>*{position:relative;z-index:1}.round-break-panel>.eyebrow{border:1px solid #cadbff;border-radius:999px}
.round-stage{background:linear-gradient(145deg,#e7f2ff,#fff8d7);border-color:#cedfec;box-shadow:inset 0 1px 0 #fff,0 8px 22px #24445d14}
@media(max-width:720px) and (orientation:portrait){.premium-message{width:min(350px,94%);min-height:0;max-height:calc(100% - 12px);grid-template-columns:1fr;grid-template-rows:132px auto;border-radius:24px}.message-art{grid-row:1;align-items:center;padding-top:4px}.message-art img{height:150px;max-height:128px}.message-halo{width:130px;height:130px}.message-copy{grid-row:2;padding:12px 18px 17px;align-items:center;text-align:center}.message-copy .eyebrow{padding:4px 8px;font-size:7px}.premium-message .message-copy h2{font-size:25px;margin:6px 0 4px}.premium-message .message-copy p{font-size:10px;line-height:1.3;margin-bottom:11px}.premium-message .primary-button{padding:10px 13px;font-size:10px}.premium-message .secondary-button{margin-top:7px;padding:9px 12px;font-size:9px}.premium-message .result-icon{right:20%;top:9px;width:38px;height:38px;border-width:4px;font-size:21px}.result-panel.premium-message .message-copy p{margin-bottom:10px}.round-break-panel{border-radius:22px}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse){.premium-message{width:min(610px,92%);min-height:0;height:min(260px,calc(100dvh - 14px));grid-template-columns:.82fr 1.18fr;border-radius:20px}.message-art img{height:235px}.message-halo{width:190px;height:190px}.message-copy{padding:15px 22px 14px 8px}.message-copy .eyebrow{padding:4px 8px;font-size:7px}.premium-message .message-copy h2{font-size:23px;margin:6px 0 4px}.premium-message .message-copy p{font-size:9px;line-height:1.3;margin-bottom:9px}.premium-message .primary-button{padding:9px 12px;font-size:9px}.premium-message .secondary-button{margin-top:6px;padding:8px 11px;font-size:8px}.premium-message .result-icon{right:9px;top:9px;width:36px;height:36px;border-width:4px;font-size:20px}}

/* Seletor de dificuldade responsivo */
@media(max-width:720px) and (orientation:portrait){.intro-panel{grid-template-rows:140px auto;background:linear-gradient(180deg,#e9f3ff 0 30%,#fff 30% 100%)}.intro-hero img{height:132px;max-height:calc(100% - 8px)}.intro-copy{padding:8px 16px 10px}.overlay .intro-panel h1{font-size:28px;margin:5px 0 2px}.intro-tagline{font-size:9px!important;line-height:1.2!important}.intro-features{margin:7px 0}.intro-features>div{min-height:40px;padding:3px}.intro-features b,.intro-bonus{flex-basis:22px;width:22px;height:22px;font-size:13px}.difficulty-picker{margin:0 0 7px;text-align:left}.difficulty-picker>span{margin-bottom:3px;font-size:6px}.difficulty-options{padding:3px;border-radius:10px}.difficulty-options button{padding:5px 6px;font-size:8px}.difficulty-options button small{margin-top:2px;font-size:6px}.intro-start{padding:9px 13px;font-size:10px}.intro-copy>small{margin-top:5px;font-size:6px}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse){.intro-panel{width:min(700px,94%);height:min(330px,calc(100dvh - 14px))}.intro-copy{padding:13px 8px 11px 24px}.overlay .intro-panel h1{font-size:29px;margin:5px 0 3px}.intro-tagline{font-size:9px!important}.intro-features{margin:7px 0}.intro-features>div{min-height:39px;padding:4px}.difficulty-picker{margin:0 0 6px}.difficulty-picker>span{margin-bottom:3px;font-size:6px}.difficulty-options{padding:3px;border-radius:9px}.difficulty-options button{padding:4px 6px;font-size:8px}.difficulty-options button small{margin-top:1px;font-size:6px}.intro-start{padding:8px 14px!important;font-size:9px!important}.intro-copy>small{margin-top:5px;font-size:6px}.intro-hero img{height:280px}}

/* Botões de modo sem subtítulos */
.difficulty-options button{display:grid;place-items:center;min-height:36px;padding:8px 10px;font-size:10px;line-height:1}
@media(max-width:720px) and (orientation:portrait){.difficulty-options button{min-height:28px;padding:5px 7px;font-size:8px}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse){.difficulty-options button{min-height:26px;padding:4px 7px;font-size:8px}}

/* Ajustes tipográficos exclusivos para títulos localizados mais longos */
html[lang="es"] .overlay .intro-panel h1,html[lang="it"] .overlay .intro-panel h1{font-size:34px}
html[lang="fr"] .overlay .intro-panel h1{font-size:31px}
html[lang="de"] .overlay .intro-panel h1{font-size:34px}
@media(max-width:720px) and (orientation:portrait){html[lang="es"] .overlay .intro-panel h1,html[lang="fr"] .overlay .intro-panel h1,html[lang="it"] .overlay .intro-panel h1,html[lang="de"] .overlay .intro-panel h1{font-size:22px;line-height:1.02}}
@media(max-width:1024px) and (max-height:600px) and (orientation:landscape) and (pointer:coarse){html[lang="es"] .overlay .intro-panel h1,html[lang="fr"] .overlay .intro-panel h1,html[lang="it"] .overlay .intro-panel h1,html[lang="de"] .overlay .intro-panel h1{font-size:23px;line-height:1.02}}
