@import "https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;900&family=Press+Start+2P&display=swap";:root{color:#31264d;font-synthesis:none;text-rendering:optimizelegibility;--ink:#31264d;--purple:#6d3ed1;--purple-dark:#422080;--pink:#ff78bb;--yellow:#ffd95a;--cyan:#70e6e2;--cream:#fffaf0;--success:#14785f;--error:#b63d62;background:#f9dfff;font-family:Nunito,system-ui,sans-serif}*{box-sizing:border-box}body{background:linear-gradient(90deg,#ffffff2e 2px,#0000 2px) 0 0/32px 32px,linear-gradient(#ffffff2e 2px,#0000 2px) 0 0/32px 32px,linear-gradient(160deg,#c7f5ff 0%,#f9dfff 48%,#ffe7a8 100%);min-width:320px;min-height:100vh;margin:0}body:has(.intro-screen){overflow:hidden}body:has(.battle-scene-intro){overflow:hidden}.pwa-message{z-index:1100;border:3px solid var(--purple-dark);background:var(--cream);border-radius:18px;width:min(440px,100% - 156px);padding:14px 16px;position:fixed;bottom:16px;right:128px;overflow:visible;box-shadow:0 10px #31264d38}.pwa-message__juju{object-fit:contain;pointer-events:none;transform-origin:0 100%;width:140px;height:140px;animation:.38s ease-out forwards pwa-juju-arrival;position:absolute;bottom:-12px;right:-108px;transform:translate(130%)}.pwa-message__content{opacity:0;pointer-events:none;align-items:center;gap:12px;transition:opacity .18s ease-out,transform .18s ease-out;display:flex;transform:translateY(8px)}.pwa-message--ready .pwa-message__content,.home-welcome--ready .home-welcome__content{opacity:1;pointer-events:auto;transform:translateY(0)}.pwa-message p{flex:1;margin:0;font-weight:700}.pwa-message .primary-button,.pwa-message .text-button{flex:none}.pwa-message--error{border-color:var(--error)}@keyframes pwa-juju-arrival{to{transform:translate(0)}}.home-welcome{z-index:1050;border:3px solid var(--purple-dark);background:var(--cream);border-radius:22px;width:min(390px,100% - 156px);min-height:92px;padding:18px 20px;animation:4s ease-in-out forwards home-welcome-life;position:fixed;bottom:24px;right:156px;box-shadow:0 10px #31264d38}.home-welcome p{margin:0;font-weight:900;line-height:1.35}.home-welcome__content{opacity:0;pointer-events:none;padding-right:34px;transition:opacity .18s ease-out,transform .18s ease-out;transform:translateY(8px)}.vector-case-warning{z-index:1080;border:3px solid var(--purple-dark);background:var(--cream);border-radius:20px;width:min(470px,100% - 160px);padding:16px 46px 16px 18px;position:fixed;bottom:20px;right:132px;box-shadow:0 10px #31264d38}.vector-case-warning__content{opacity:0;transition:opacity .18s ease-out,transform .18s ease-out;transform:translateY(8px)}.vector-case-warning--ready .vector-case-warning__content{opacity:1;transform:translateY(0)}.vector-case-warning p{margin:0;line-height:1.35}.vector-case-warning p+p{margin-top:5px}.vector-case-warning__juju{object-fit:contain;pointer-events:none;width:150px;height:150px;animation:.42s ease-out both home-welcome-juju;position:absolute;bottom:-10px;right:-108px}.home-welcome__juju{object-fit:contain;pointer-events:none;width:155px;height:155px;animation:.42s ease-out both home-welcome-juju;position:absolute;bottom:-8px;right:-108px}.profile-restore{text-align:center;border-top:1px solid #4220802e;margin-top:24px;padding-top:20px}.profile-restore p{margin:0 0 12px;font-weight:700}@keyframes home-welcome-juju{0%{transform:translate(120%)}to{transform:translate(0)}}@keyframes home-welcome-life{0%,82%{opacity:1}to{opacity:0}}.math-fraction{vertical-align:middle;text-align:center;grid-template-rows:auto auto;min-width:1.15em;margin:0 .08em;font-family:Georgia,Times New Roman,serif;font-size:.92em;line-height:1;display:inline-grid}.math-fraction__numerator{border-bottom:.08em solid;padding:0 .14em .08em}.math-fraction__denominator{padding:.08em .14em 0}.math-vector{vertical-align:middle;text-align:center;grid-template-rows:.45em auto;min-width:1.35em;margin:0 .08em;line-height:1;display:inline-grid}.math-vector__arrow{align-self:end;font-family:Arial,sans-serif;font-size:.72em;font-weight:700;line-height:.65}.math-vector__name{line-height:1}.vector-question{gap:.75rem;width:min(100%,34rem);margin-inline:auto;display:grid}.vector-question__instruction,.vector-question__equation{display:block}.vector-question__equation{color:var(--purple-dark);text-align:center;font-size:1.18em;font-weight:900}.vector-diagram{background:#ffffffd1;border:3px solid #6d3ed147;border-radius:1rem;width:min(100%,21rem);height:auto;margin-inline:auto;display:block}.vector-diagram__grid{fill:none;stroke:#d8cfec;stroke-width:1px}.vector-diagram__axis{fill:none;stroke:var(--ink);stroke-width:2.5px}.vector-diagram__axis-head{fill:var(--ink)}.vector-diagram__tick{fill:none;stroke:var(--ink);stroke-width:1.5px}.vector-diagram .vector-diagram__graduation{font-size:11px;font-weight:700}.vector-diagram__arrows line{stroke:#d42d82;stroke-linecap:round;stroke-width:5px}.vector-diagram__arrows polygon{fill:#d42d82}.vector-diagram__point circle{fill:var(--purple-dark)}.geometry-segment{stroke:#d42d82;stroke-linecap:round;stroke-width:4px}.vector-diagram text{fill:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:18px;font-weight:900}.question-notation-reminder{color:#665d75;text-align:center;border-top:1px solid #665d753d;width:min(42rem,100%);margin:1rem auto -.4rem;padding-top:.55rem;font-size:clamp(.68rem,1.8vw,.78rem);font-weight:700;line-height:1.3}@media (width<=520px){.vector-question{gap:.55rem}.vector-diagram{width:min(100%,17rem)}}.probability-tree,.box-plot,.pythagoras-triangle,.thales-figure,.trig-triangle{background:#ffffffd1;border:3px solid #6d3ed147;border-radius:1rem;width:min(100%,24rem);height:auto;margin-inline:auto;display:block}.thales-figure__side{stroke:var(--ink);stroke-width:2.5px}.thales-figure__inner{stroke:var(--purple-dark)}.thales-figure__label{fill:#d42d82;text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:13px;font-weight:900}.thales-figure__vertex{fill:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:14px;font-weight:900}.pythagoras-triangle__side{stroke:var(--ink);stroke-width:2.5px}.pythagoras-triangle__mark{fill:none;stroke:var(--purple-dark);stroke-width:2px}.pythagoras-triangle__label{fill:#d42d82;text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:15px;font-weight:900}.pythagoras-triangle__vertex{fill:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:14px;font-weight:900}.trig-triangle__side{stroke:var(--ink);stroke-width:2.5px;fill:none}.trig-triangle__mark{fill:none;stroke:var(--purple-dark);stroke-width:2px}.trig-triangle__tick{stroke:var(--purple-dark);stroke-width:2px}.trig-triangle__arc{fill:none;stroke:#d42d82;stroke-width:2px}.trig-triangle__label,.trig-triangle__angle{fill:#d42d82;text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:14px;font-weight:900}.trig-triangle__vertex{fill:var(--ink);text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:14px;font-weight:900}.probability-tree__lines line{stroke:var(--ink);stroke-width:2px}.probability-tree__node{fill:var(--purple-dark)}.probability-tree__branch-label{fill:#d42d82;text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:13px;font-weight:900}.probability-tree__node-label{fill:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:14px;font-weight:900}.box-plot__axis{stroke:var(--ink);stroke-width:2px}.box-plot__tick{stroke:var(--ink);stroke-width:1.5px}.box-plot__tick-label{fill:var(--ink);text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:12px;font-weight:700}.box-plot__whisker,.box-plot__cap{stroke:var(--ink);stroke-width:2px}.box-plot__box{fill:#6d3ed12e;stroke:var(--purple-dark);stroke-width:2.5px}.box-plot__median{stroke:#d42d82;stroke-width:3px}.box-plot__series-label{fill:var(--purple-dark);font-family:Nunito,system-ui,sans-serif;font-size:12px;font-weight:900}.bar-chart,.pie-chart{background:#ffffffd1;border:3px solid #6d3ed147;border-radius:1rem;width:min(100%,24rem);height:auto;margin-inline:auto;display:block}.bar-chart__axis{stroke:var(--ink);stroke-width:2px}.bar-chart__gridline{stroke:#d8cfec;stroke-width:1px}.bar-chart__tick-label{fill:var(--ink);text-anchor:end;font-family:Nunito,system-ui,sans-serif;font-size:11px;font-weight:700}.bar-chart__bar{fill:#6d3ed18c;stroke:var(--purple-dark);stroke-width:2px}.bar-chart__bar--a{fill:#6d3ed18c;stroke:var(--purple-dark)}.bar-chart__bar--b{fill:#d42d828c;stroke:#d42d82}.bar-chart__label{fill:var(--ink);text-anchor:middle;font-family:Nunito,system-ui,sans-serif;font-size:12px;font-weight:900}.bar-chart__legend-label,.pie-chart__legend-label{fill:var(--ink);font-family:Nunito,system-ui,sans-serif;font-size:12px;font-weight:900}.pie-chart__segment{fill:none;stroke-width:60px}.pie-chart__segment--0{stroke:var(--purple-dark)}.pie-chart__segment--1{stroke:#d42d82}.pie-chart__segment--2{stroke:#2ea884}.pie-chart__segment--3{stroke:#e2a63a}.pie-chart__legend-swatch.pie-chart__segment--0{fill:var(--purple-dark)}.pie-chart__legend-swatch.pie-chart__segment--1{fill:#d42d82}.pie-chart__legend-swatch.pie-chart__segment--2{fill:#2ea884}.pie-chart__legend-swatch.pie-chart__segment--3{fill:#e2a63a}.contingency-table,.frequency-table{border-collapse:collapse;width:min(100%,26rem);margin:0 auto;font-weight:700}.contingency-table th,.contingency-table td,.frequency-table th,.frequency-table td{border:2px solid var(--ink);text-align:center;padding:8px 12px}.contingency-table thead th,.contingency-table tbody th,.contingency-table .contingency-table__totals,.frequency-table th{background:#6d3ed11f}.evaluation-import,.evaluation-setup,.evaluation-summary{margin-top:24px;padding:clamp(22px,4vw,32px)}.evaluation-import h2,.evaluation-setup h2,.evaluation-summary h2{margin-top:0}.inline-form{gap:10px;display:grid}.evaluation-domain-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 28px;display:grid}.evaluation-domain-option{cursor:pointer;background:#fff;border:2px solid #6d3ed147;border-radius:12px;align-items:center;gap:10px;min-height:58px;padding:10px 12px;font-weight:800;display:flex}.evaluation-domain-option:has(input:checked){border-color:var(--purple);background:#f1e9ff;box-shadow:3px 3px #6d3ed140}.evaluation-domain-option input{width:20px;height:20px;accent-color:var(--purple)}.evaluation-parameter-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px;display:grid}.evaluation-parameter-grid label{color:var(--purple-dark);gap:8px;font-weight:900;display:grid}.evaluation-parameter-grid select{border:3px solid var(--ink);width:100%;min-height:48px;color:var(--ink);font:inherit;background:#fff;border-radius:10px;padding:8px 12px}.evaluation-parameter-grid--contest{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}.contest-rules-summary,.contest-score-rules{background:#f7f1ff;border:2px solid #6d3ed147;border-radius:12px}.contest-rules-summary{gap:4px;min-height:78px;padding:12px 14px;display:grid}.contest-rules-summary strong{color:var(--purple-dark)}.contest-rules-summary span{font-size:.95rem}.contest-score-rules{gap:6px;margin:22px 0;padding:14px 16px;display:grid}.contest-score-rules p{margin:0}.contest-results__player{color:var(--purple-dark);font-size:1.25rem;font-weight:900;margin-bottom:4px!important}.contest-compare-message{color:var(--purple-dark);font-weight:900;margin:20px auto!important}.evaluation-code{overflow-wrap:anywhere;color:var(--purple);font-family:"Press Start 2P",monospace;font-size:clamp(1rem,4vw,1.5rem);line-height:1.7}.evaluation-print-subject{border:3px solid var(--ink);background:#fff;border-radius:16px;margin-top:24px;padding:28px}.evaluation-print-subject[hidden]{display:none}.evaluation-print-subject li{margin:0 0 28px;padding-left:8px}.evaluation-print-subject li>div{margin-top:8px;font-size:1.05rem}.evaluation-print-answer{margin-top:14px}.evaluation-no-correction{color:var(--purple);margin:18px 0 0;font-weight:800}.arcade-timer--countdown{min-width:116px}.evaluation-results .answer-review__item .correction{margin-top:14px}.evaluation-priority{border:3px solid var(--purple);text-align:left;background:#f1e9ff;border-radius:14px;margin:28px 0;padding:20px}.evaluation-priority--success{border-color:var(--success);background:#effff8}.evaluation-priority h2{margin:6px 0 8px}.evaluation-priority p:not(.level-label){margin:0 0 16px}.intro-screen{z-index:1000;background:#000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow:hidden}.intro-screen picture{justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;display:flex}.intro-screen__image{object-fit:contain;object-position:center;opacity:0;flex:0 auto;width:auto;max-width:100%;height:auto;max-height:100%;display:block}.intro-screen--playing .intro-screen__image{animation:4.8s linear forwards intro-image-sequence}@keyframes intro-image-sequence{0%{opacity:0}15%,80%{opacity:1}to{opacity:0}}button,input{font:inherit}button{cursor:pointer}.game-shell{width:min(900px,100% - 32px);margin:0 auto;padding:48px 0}.home-shell{flex-direction:column;min-height:100vh;display:flex}.brand{text-align:center;margin-bottom:32px}.home-header .brand{margin-top:32px}.settings-button{border:3px solid var(--ink);background:var(--cream);min-height:44px;color:var(--ink);border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:8px 14px;font-weight:900;display:inline-flex}.settings-button:hover{transform:translateY(-1px)}.home-profile-footer{justify-items:center;gap:5px;margin-top:auto;padding-top:32px;display:grid}.home-profile-button{justify-content:center;min-width:min(100%,260px)}.app-version{color:#665d75;text-align:center;margin:0;font-size:.76rem;font-weight:700}.settings-button:focus-visible,.danger-button:focus-visible{outline:4px solid var(--cyan);outline-offset:3px}.confirmation-check:has(input:focus-visible){outline:4px solid var(--cyan);outline-offset:3px}.profile-shell{place-items:center;min-height:100vh;display:grid}.profile-panel,.settings-panel{width:min(100%,700px);padding:32px}.profile-panel{text-align:center}.profile-panel__icon{background:var(--purple);color:#fff;width:64px;height:64px;box-shadow:5px 5px 0 var(--ink);border-radius:18px;place-items:center;margin:0 auto 16px;font-size:2rem;display:grid}.profile-panel__lead{max-width:540px;margin:12px auto 20px}.local-data-notice{border:3px solid var(--ink);text-align:left;background:#eefaff;border-radius:16px;align-items:flex-start;gap:12px;margin:24px 0;padding:16px;display:flex}.local-data-notice>span{font-size:1.5rem}.local-data-notice p{margin:0}.local-data-notice a{color:var(--purple);font-weight:700}.local-data-notice a:hover,.local-data-notice a:focus-visible{text-decoration-thickness:2px}.profile-form{text-align:left}.profile-form label{margin-bottom:8px;font-weight:900;display:block}.profile-form__row{grid-template-columns:1fr auto;gap:12px;display:grid}.profile-form input,.identity-fields input,.backup-code-field input{border:3px solid var(--ink);min-width:0;min-height:52px;color:var(--ink);background:#fff;border-radius:12px;padding:12px 16px;font-size:1.05rem}.profile-form input:focus,.identity-fields input:focus,.backup-code-field input:focus{outline:4px solid var(--cyan);outline-offset:2px}.identity-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.identity-fields label,.backup-code-field>span{margin-bottom:8px;font-weight:900;display:block}.identity-fields input,.backup-code-field input{width:100%}.profile-form__actions{justify-content:flex-end;margin-top:16px;display:flex}.backup-code-field{margin-top:20px;display:block}.backup-code-field small{font-weight:700}.form-success{min-height:24px;color:var(--success);margin:8px 0 0;font-weight:900}.settings-panel__back{margin-bottom:16px}.settings-section{border-top:2px solid var(--ink);margin-top:24px;padding-top:24px}.settings-section h2{margin-bottom:6px}.profile-summary{border:3px solid var(--ink);background:linear-gradient(145deg,#fffaf0,#f5ebff);border-radius:20px;grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);align-items:stretch;gap:24px;margin-top:20px;padding:24px;display:grid}.profile-summary__details{align-content:center;gap:14px;display:grid}.profile-summary__details p{gap:3px;margin:0;display:grid}.profile-summary__details p span{color:#665d75;text-transform:uppercase;letter-spacing:.05em;font-size:.82rem;font-weight:900}.profile-summary__details p strong{font-size:1.08rem}.profile-summary__details button{width:100%}.profile-brenda{border:3px solid var(--purple-dark);background:linear-gradient(145deg,#ff73bd,#bf6fe8);border-radius:18px;grid-template-rows:minmax(0,1fr) auto;min-height:270px;margin:0;display:grid;overflow:hidden}.profile-brenda img{object-fit:contain;width:100%;height:100%;min-height:0}.profile-brenda figcaption{background:var(--cream);text-align:center;padding:8px 10px;font-weight:900}.app-version--profile{margin-top:24px}.episode-progress-shell{padding-bottom:64px}.episode-progress-worlds{gap:24px;margin-top:24px;display:grid}.episode-progress-world{padding:clamp(20px,4vw,32px)}.episode-progress-world>h2{margin-top:0}.episode-progress-domain{background:#ffffff8c;border:2px solid #6d3ed159;border-radius:14px;margin-top:12px}.episode-progress-domain summary{color:var(--purple-dark);cursor:pointer;padding:14px 16px;font-weight:900}.episode-progress-quest{padding:0 16px 16px}.episode-progress-quest h3{margin:12px 0 8px;font-size:1rem}.episode-progress-quest ul{gap:6px;margin:0;padding:0;list-style:none;display:grid}.episode-progress-quest label{background:#fffaf0;border-radius:10px;grid-template-columns:auto 1fr;align-items:center;gap:0 10px;padding:8px 10px;display:grid}.episode-progress-quest input{width:20px;height:20px;accent-color:var(--success);grid-row:1/3}.episode-progress-quest small{color:#665d75}.danger-zone{background:#fff1f1;border:3px solid #922a34;border-radius:16px;padding:20px}.danger-button{color:#fff;background:#ad303b;border:3px solid #641d24;border-radius:12px;min-height:48px;padding:12px 16px;font-weight:900}.danger-button:hover{background:#922731}.reset-dialog{border:4px solid var(--ink);background:var(--cream);width:min(100% - 32px,544px);color:var(--ink);border-radius:20px;padding:0;box-shadow:10px 10px #19143059}.reset-dialog::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#141026b3}.reset-dialog form{padding:24px}.confirmation-check{border:2px solid var(--ink);cursor:pointer;background:#fff;border-radius:12px;align-items:flex-start;gap:12px;margin:20px 0;padding:16px;display:flex}.confirmation-check input{flex:none;width:22px;height:22px;margin-top:2px}.dialog-actions{justify-content:flex-end;gap:12px;margin-top:20px;display:flex}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.mode-card{border:4px solid var(--ink);min-width:0;min-height:360px;box-shadow:7px 7px 0 var(--purple);background:#fffaf0f5;border-radius:20px;flex-direction:column;gap:20px;padding:24px;display:flex}.mode-card--available{background:linear-gradient(145deg,#fffaf0,#fff1a8)}.mode-card--upcoming{opacity:.72;box-shadow:7px 7px #9b82d3}.mode-card__icon{border:3px solid var(--ink);background:var(--yellow);border-radius:16px;place-items:center;width:58px;height:58px;font-size:1.8rem;display:grid}.mode-card h2{color:var(--purple-dark);margin:0 0 8px}.mode-card p:not(.level-label){margin:0}.mode-card>button{width:100%;margin-top:auto}.secondary-button:disabled{cursor:not-allowed;filter:grayscale(.6);opacity:.7;transform:none}.settings-actions{flex-wrap:wrap;gap:12px;display:flex}@media (width<=700px){.profile-panel,.settings-panel{padding:24px 20px}.profile-summary{grid-template-columns:1fr}.profile-brenda{min-height:320px}.settings-button{justify-content:center}.profile-form__row,.identity-fields{grid-template-columns:1fr}.profile-form__row .primary-button{width:100%}.dialog-actions{flex-direction:column-reverse;align-items:stretch}.dialog-actions button{width:100%}.mode-grid{grid-template-columns:1fr}.mode-card{min-height:0}.settings-actions{flex-direction:column;align-items:stretch}}@media (width>=701px) and (width<=980px){.mode-grid{grid-template-columns:1fr}.mode-card{grid-template-columns:auto 1fr auto;align-items:center;min-height:0;display:grid}.mode-card>button{width:auto;margin-top:0}}.brand__sparkle{color:var(--yellow);text-shadow:3px 3px 0 var(--purple);font-size:2.5rem;display:block}.brand__eyebrow,.level-label{color:var(--purple);text-transform:uppercase;margin:0 0 12px;font-family:"Press Start 2P",monospace;font-size:.68rem;line-height:1.7}.brand h1{color:var(--purple-dark);text-shadow:5px 5px 0 var(--pink);margin:0;font-family:"Press Start 2P",monospace;font-size:clamp(2rem,8vw,4.6rem);line-height:1.2}.brand__subtitle{margin:24px 0 0;font-size:1.15rem;font-weight:700}.quest-title{color:var(--ink);margin:0 0 24px;font-size:clamp(1.5rem,4vw,2.3rem)}.domain-intro,.quest-description{margin:-12px 0 24px;font-size:1.05rem;font-weight:700}.world-list,.domain-list,.quest-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.world-card,.domain-card,.quest-card{grid-template-rows:auto 1fr auto;align-items:start;gap:20px;padding:28px;display:grid}.quest-card:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc(50% - 10px)}.world-card__content h3,.domain-card__content h3,.quest-card__content h3{margin:0 0 8px;font-size:1.35rem}.world-card__content p,.domain-card__content p,.quest-card__content p{margin:0}.world-card .primary-button,.domain-card .primary-button,.quest-card .primary-button{justify-self:start}.quest-progress{color:var(--purple);font-weight:900;margin-top:14px!important}.domain-card__status{border:2px solid var(--ink);color:var(--ink);text-transform:uppercase;letter-spacing:.02em;background:#ffe27a;border-radius:999px;padding:4px 10px;font-size:.72rem;font-weight:900;display:inline-block;margin:4px 0 0!important}.domain-character{justify-items:center;gap:8px;height:172px;margin:0;display:grid;position:relative}.domain-character__button{border:3px solid var(--ink);width:192px;height:192px;box-shadow:5px 5px 0 var(--purple);cursor:pointer;background:linear-gradient(145deg,#ff73bd,#bf6fe8);border-radius:24px;padding:0;position:absolute;bottom:28px;right:calc(50% - 104px);overflow:hidden}.domain-character__image{object-fit:contain;width:100%;height:100%;transform:translateY(var(--character-shift-y,0)) scale(var(--character-scale,1));display:block}.domain-character__button:hover,.domain-character__button:focus-visible{border-color:var(--purple-dark);box-shadow:7px 7px 0 var(--purple);transform:translate(-2px,-2px)}.domain-character__image[data-character=wolfie]{--character-shift-y:-32%;--character-scale:1.45}.domain-character__image[data-character=felix]{--character-shift-y:-30%;--character-scale:1.45}.domain-character__image[data-character=teacher]{--character-shift-y:-5%;--character-scale:1.12}.domain-character__button:focus-visible{outline:4px solid var(--gold);outline-offset:5px}.domain-character figcaption{color:var(--purple-dark);font-weight:900;position:absolute;top:152px}.character-evolution{z-index:1000;background:#0a0414f0;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.character-evolution__scene{color:#fff;text-align:center;justify-items:center;width:min(100%,680px);display:grid}.character-evolution__scene h2{margin:4px 0 16px;font-size:clamp(2rem,6vw,4rem)}.character-evolution__stage{opacity:1;width:min(70vw,480px);height:min(70vh,480px);transition:opacity .3s;position:relative}.character-evolution__stage--hidden{opacity:0}.character-evolution__stage img{object-fit:contain;width:100%;height:100%;display:block;position:absolute;inset:0}.character-evolution__label{min-height:1.5em;color:var(--gold);margin:12px 0 0;font-size:1.2rem;font-weight:900}.character-evolution__gallery{display:none}.character-evolution__close{color:#fff;cursor:pointer;width:52px;height:52px;font:inherit;background:#ffffff1f;border:3px solid #fff;border-radius:50%;font-size:2rem;line-height:1;position:absolute;top:20px;right:24px}.character-evolution__close:hover,.character-evolution__close:focus-visible{border-color:var(--gold);color:var(--gold);outline:none}.character-evolution--reduced-motion .character-evolution__stage,.character-evolution--reduced-motion .character-evolution__label{display:none}.character-evolution--reduced-motion .character-evolution__gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.character-evolution--reduced-motion .character-evolution__gallery img{aspect-ratio:1;object-fit:contain;width:100%;display:block}.episode-list{gap:20px;display:grid}.question-context{flex-wrap:wrap;align-items:center;gap:10px 16px;display:flex}.question-context .level-label{margin:0}.school-level{border:2px solid var(--purple);color:var(--purple-dark);background:#f0e8ff;border-radius:999px;margin:0;padding:5px 10px;font-size:.85rem;font-weight:900}.episode-card{grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:24px 32px;display:grid}.episode-card--locked{background:#fffaf0b8;box-shadow:6px 6px #9b82d3}.episode-card__content h3{margin:0 0 6px;font-size:1.3rem}.episode-card__content p{margin:0}.difficulty-avatar{border:3px solid var(--ink);width:96px;height:96px;box-shadow:4px 4px 0 var(--purple);background:linear-gradient(145deg,#ff73bd,#bf6fe8);border-radius:16px;place-items:center;display:grid;position:relative;overflow:hidden}.difficulty-avatar__image{object-fit:cover;width:100%;height:100%;transform:translateY(var(--character-shift-y,0)) scale(var(--character-scale,1));display:block}.difficulty-avatar__image[data-character=wolfie]{--character-shift-y:-32%;--character-scale:1.5}.difficulty-avatar__image[data-character=felix]{--character-shift-y:-30%;--character-scale:1.5}.difficulty-avatar__image[data-character=teacher]{--character-shift-y:-4%;--character-scale:1.12}.difficulty-avatar__badge{border:2px solid var(--ink);background:var(--yellow);min-width:30px;height:30px;color:var(--purple-dark);box-shadow:2px 2px 0 var(--ink);border-radius:8px;place-items:center;padding:0 5px;font-family:"Press Start 2P",monospace;font-size:.62rem;display:grid;position:absolute;bottom:4px;right:4px}.difficulty-summary{border:2px solid var(--purple);background:#f4ebff;border-radius:10px;grid-template-columns:auto 1fr;gap:0 10px;width:fit-content;margin-top:12px;padding:8px 12px;display:grid}.episode-card__content .difficulty-summary__stars,.difficulty-summary__stars{color:#d06b00;letter-spacing:.04em;text-shadow:1px 1px 0 var(--yellow);grid-row:1/3;align-self:center;margin:0;font-size:1rem}.episode-card__content .difficulty-summary__label,.difficulty-summary__label{color:var(--purple-dark);margin:0;font-weight:900}.episode-card__content .difficulty-summary__advice,.difficulty-summary__advice{color:var(--ink);margin:0;font-size:.9rem;font-weight:700}.question-difficulty{align-items:center;gap:16px;width:fit-content;margin:0 0 28px;display:flex}.question-difficulty .difficulty-avatar{border-radius:12px;flex:none;width:76px;height:76px}.difficulty-summary--compact{margin-top:0}.episode-status{max-width:180px;color:var(--purple-dark);text-align:right;font-weight:900}.panel{border:4px solid var(--ink);box-shadow:8px 8px 0 var(--purple);background:#fffaf0f5;border-radius:20px}.start-panel{grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:32px;display:grid}.upcoming-panel{background:#fffaf0b8;grid-template-columns:auto 1fr;align-items:center;gap:20px;margin-top:24px;padding:24px 32px;display:grid;box-shadow:6px 6px #9b82d3}.start-panel h2,.upcoming-panel h2,.feedback h2{color:var(--ink);margin:0 0 8px}.start-panel p,.upcoming-panel p{margin:0}.best-score{color:var(--purple);font-weight:900;margin-top:8px!important}.pixel-badge{border:4px solid var(--ink);background:var(--yellow);width:88px;height:88px;color:var(--purple-dark);border-radius:16px;place-items:center;font-family:"Press Start 2P",monospace;font-size:2rem;display:grid;box-shadow:inset -8px -8px #ffae54}.pixel-badge--star{margin:0 auto 24px}.pixel-badge--small{border-width:3px;border-radius:12px;width:64px;height:64px;font-size:1.2rem;box-shadow:inset -6px -6px #ffae54}.primary-button,.secondary-button{border:3px solid var(--ink);min-height:48px;box-shadow:4px 4px 0 var(--ink);border-radius:10px;padding:12px 20px;font-weight:900;transition:translate .12s,box-shadow .12s}.primary-button{background:var(--pink);color:var(--ink)}.secondary-button{background:var(--cyan);color:var(--ink);margin-top:16px}.primary-button:hover,.secondary-button:hover{box-shadow:2px 2px 0 var(--ink);translate:2px 2px}.primary-button:focus-visible,.secondary-button:focus-visible,.text-button:focus-visible,input:focus-visible{outline:4px solid var(--yellow);outline-offset:3px}.screen-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px;font-weight:900;display:flex}.screen-header p{text-align:right;margin:0}.adventure-location{color:var(--ink);text-align:right;flex-wrap:wrap;justify-content:flex-end;gap:5px;margin:0;font-size:.82rem;font-weight:900;display:flex}.adventure-location__item--current{color:var(--pink)}.adventure-location__separator{color:#756b83}.game-header{grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;margin-bottom:12px;font-weight:900;display:grid}.game-header__context{align-items:center;gap:12px;display:flex}.game-header__score{text-align:right}.game-header__right{justify-items:end;gap:5px;display:grid}.game-header p{margin:0}.arcade-timer{border:4px solid var(--ink);min-width:116px;box-shadow:inset 0 0 0 3px #4b386b, 4px 4px 0 var(--purple);text-align:center;background:linear-gradient(#ffffff1a 50%,#0000 50%) 0 0/100% 4px,#171126;border-radius:8px;padding:6px 14px 9px;display:grid}.arcade-timer__label{color:var(--yellow);letter-spacing:.14em;font-family:"Press Start 2P",monospace;font-size:.52rem;line-height:1.5}.arcade-timer__digits{color:#fff7c7;text-shadow:2px 0 #ff7a45,-2px 0 #b83564,0 2px 8px #ffd95a8c;font-family:"Press Start 2P",monospace;font-size:1.35rem;line-height:1.3}.arcade-timer--stopped .arcade-timer__digits{color:var(--cyan);text-shadow:2px 0 0 var(--purple), 0 2px 8px #70e6e28c}.text-button{width:fit-content;color:var(--purple-dark);background:0 0;border:0;padding:8px;font-weight:900}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.progress-track{border:3px solid var(--ink);background:var(--cream);border-radius:999px;height:18px;margin-bottom:24px;overflow:hidden}.progress-track__fill{background:repeating-linear-gradient(90deg, var(--pink) 0, var(--pink) 18px, #ffaad2 18px, #ffaad2 26px);height:100%}.question-panel{padding:clamp(24px,6vw,56px)}.question-panel>h1,.results-panel h1{color:var(--ink);margin:0 0 36px;font-size:clamp(1.8rem,5vw,3rem);line-height:1.25}.question-title__instruction,.question-title__expression{display:block}.question-title__instruction{margin-bottom:.3em;font-size:.68em;line-height:1.35}.question-title__expression{white-space:nowrap;width:fit-content;max-width:100%;overflow:auto hidden}.question-title__expression--table{white-space:pre;padding:.12em .18em;font-family:Courier New,Courier,monospace;font-size:.82em;line-height:1.55}.question-title__expression--multiline{white-space:pre-line;line-height:1.5}form label{margin-bottom:8px;font-weight:900;display:block}.answer-row{grid-template-columns:1fr auto;gap:12px;display:grid}input{border:3px solid var(--ink);width:100%;min-width:0;color:var(--ink);background:#fff;border-radius:10px;padding:12px 16px;font-size:1.3rem;font-weight:900}input:disabled{background:#eee8f2}.field-help,.form-error{min-height:24px;margin:8px 0 0;font-size:.95rem}.form-error{color:var(--error);font-weight:900}.feedback{border:3px solid;border-radius:12px;margin-top:28px;padding:20px;display:none}.feedback--success,.feedback--error{display:block}.feedback--success{border-color:var(--success);color:#0a5745;background:#dcfff1}.feedback--error{border-color:var(--error);color:#84203f;background:#ffe2ec}.feedback p{margin:0}.correction h3,.method-reminder h3{margin:0 0 6px;font-size:1rem}.method-reminder{border:2px dashed var(--purple);color:var(--ink);background:#ffffff8c;border-radius:8px;margin-top:16px;padding:16px}.results-panel{text-align:center;max-width:850px;margin:8vh auto 0;padding:clamp(32px,8vw,64px)}.results-panel h1{margin-bottom:16px}.results-panel p:not(.level-label){margin:0 0 28px;font-size:1.15rem}.results-time{border:3px solid var(--ink);width:fit-content;min-width:220px;box-shadow:4px 4px 0 var(--purple);color:#fff7c7;background:#171126;border-radius:10px;margin:0 auto 28px;padding:12px 20px;display:grid}.results-time__label{color:var(--yellow);text-transform:uppercase;font-family:"Press Start 2P",monospace;font-size:.55rem;line-height:1.8}.results-time strong{font-family:"Press Start 2P",monospace;font-size:1rem;line-height:1.8}.results-panel .unlock-message{border:2px solid;border-radius:10px;padding:14px;font-weight:900}.answer-review{text-align:left;margin:36px 0}.answer-review__header{justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px;display:flex}.answer-review__header h2{color:var(--ink);margin:6px 0 0}.answer-review__list{gap:16px;margin:0;padding:0;list-style:none;display:grid}.answer-review__item{border:3px solid;border-radius:12px;padding:18px}.answer-review__item--correct{border-color:var(--success);background:#effff8}.answer-review__item--error{border-color:var(--error);background:#fff0f5;box-shadow:4px 4px #f3a6c0}.answer-review__item-header{justify-content:space-between;align-items:center;gap:16px;display:flex}.answer-review__item--correct .answer-review__item-header strong{color:var(--success)}.answer-review__item--error .answer-review__item-header strong{color:var(--error)}.results-panel .answer-review__prompt{margin:14px 0;font-size:1rem;font-weight:800}.answer-review__answers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;display:grid}.answer-review__answers div{background:#ffffffb3;border:2px solid #33234933;border-radius:8px;padding:10px 12px}.answer-review__answers dt{color:var(--purple);margin-bottom:4px;font-size:.8rem;font-weight:900}.answer-review__answers dd{color:var(--ink);margin:0;font-size:1.1rem;font-weight:900}.domain-celebration{border:3px solid var(--ink);box-shadow:6px 6px 0 var(--purple);text-align:left;background:linear-gradient(145deg,#ff74c2,#f7b8ee);border-radius:16px;grid-template-columns:180px 1fr;align-items:center;gap:24px;margin:0 0 32px;padding:20px;display:grid}.domain-celebration__image{border:3px solid var(--ink);object-fit:cover;border-radius:14px;width:180px;height:180px;display:block}.domain-celebration__content h2{color:var(--purple-dark);margin:8px 0 12px}.results-panel .domain-celebration__message{margin:0;font-size:1rem;font-weight:900}.unlock-message--success{border-color:var(--success);color:var(--success);background:#dcfff1}.unlock-message--pending{border-color:var(--purple);color:var(--purple-dark);background:#f0e8ff}.results-panel .text-button{margin:16px auto 0;display:block}@media (width>=701px) and (height<=900px){.game-shell:has(.question-panel){padding:clamp(12px,2.5vh,24px) 0}.game-shell:has(.question-panel) .game-header{margin-bottom:8px}.game-shell:has(.question-panel) .progress-track{height:14px;margin-bottom:clamp(10px,2vh,18px)}.question-panel{padding:clamp(18px,3.5vh,32px)}.question-panel>h1{margin-bottom:clamp(14px,3vh,24px);font-size:clamp(1.5rem,4.2vh,2.35rem)}.feedback{margin-top:clamp(10px,2vh,18px);padding:clamp(10px,2vh,16px)}.method-reminder{margin-top:10px;padding:10px}.feedback .secondary-button{min-height:42px;margin-top:8px;padding-block:8px}}@media (width>=701px) and (height<=650px){.game-shell:has(.question-panel){padding:4px 0}.game-shell:has(.question-panel) .arcade-timer{padding-block:3px 5px}.game-shell:has(.question-panel) .progress-track{margin-bottom:8px}.question-panel{padding:14px 20px}.question-panel>h1{margin-bottom:10px;font-size:1.45rem}.question-panel .level-label{margin-bottom:6px}.question-panel .field-help,.question-panel .form-error{min-height:18px;margin-top:4px;font-size:.85rem}.feedback{margin-top:6px;padding:8px 12px}}@media (width<=700px){.game-shell{width:min(100% - 20px,900px);padding:24px 0}.game-shell:has(.question-panel){padding:12px 0}.start-panel{text-align:center;grid-template-columns:1fr;justify-items:center;padding:24px}.world-list,.domain-list,.quest-list,.evaluation-domain-grid,.evaluation-parameter-grid{grid-template-columns:1fr}.world-card,.domain-card,.quest-card{text-align:center;justify-items:center;padding:24px}.domain-celebration{text-align:center;grid-template-columns:1fr;justify-items:center}.quest-card:last-child:nth-child(odd){grid-column:auto;justify-self:stretch;width:auto}.world-card .primary-button,.domain-card .primary-button,.quest-card .primary-button{justify-self:center}.domain-character__button{width:176px;height:176px;right:calc(50% - 92px)}.character-evolution--reduced-motion .character-evolution__gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.episode-card{text-align:center;grid-template-columns:1fr;justify-items:center;padding:20px}.difficulty-summary{justify-self:center}.question-difficulty{align-items:stretch}.difficulty-summary--compact{align-content:center}.episode-status{text-align:center;max-width:none}.upcoming-panel{text-align:center;grid-template-columns:1fr;justify-items:center;padding:20px}.screen-header p{display:none}.screen-header .adventure-location{max-width:62%;font-size:.72rem}.game-header{grid-template-columns:1fr auto;grid-template-areas:"context score""timer timer";gap:8px}.game-header__context{grid-area:context}.game-header__context p{display:none}.arcade-timer{grid-area:timer;justify-self:center}.game-header__score,.game-header__right{grid-area:score}.game-header__right .adventure-location{max-width:150px;font-size:.64rem}.answer-row{grid-template-columns:1fr}.question-panel{padding:clamp(18px,6vw,28px)}.question-panel>h1{margin-bottom:20px;font-size:clamp(1.4rem,7vw,2rem)}.question-title__expression{font-size:.9em}.feedback{margin-top:16px;padding:14px}.answer-review__header{align-items:start;display:grid}.answer-review__answers{grid-template-columns:1fr}}@page{size:A4 landscape;margin:8mm 10mm}@media print{body{color:#000;background:#fff;font-family:Arial,sans-serif;font-size:8.5pt}.no-print,.pwa-message,.evaluation-summary{display:none!important}.game-shell,.evaluation-preview-shell{width:100%;max-width:none;margin:0;padding:0}.evaluation-print-subject,.evaluation-print-subject[hidden]{border:0;margin:0;padding:0;display:block}.evaluation-print-subject h2{margin:0 0 2mm;font-size:14pt}.evaluation-print-subject>p{margin:0 0 4mm}.evaluation-print-subject ol{columns:2;column-gap:14mm;margin:0;padding-left:7mm}.evaluation-print-subject li{break-inside:avoid;margin:0 0 2.2mm;padding-left:1mm}.evaluation-print-subject li>div{margin-top:0;font-size:8.5pt;line-height:1.2}.evaluation-print-answer{margin:1mm 0 0;font-size:8pt}}@media (prefers-reduced-motion:reduce){.intro-screen--playing .intro-screen__image{opacity:1;animation:none}*,:before,:after{scroll-behavior:auto!important;transition:none!important}}@media (width<=700px){.pwa-message{width:min(440px,100% - 32px);padding-top:62px;right:16px}.pwa-message__juju{width:112px;height:112px;animation-name:pwa-juju-arrival-mobile;inset:-88px -2px auto auto;transform:translateY(-130%)}.home-welcome{width:min(390px,100% - 32px);padding-top:62px;bottom:16px;right:16px}.home-welcome__content{padding-right:0}.home-welcome__juju{width:112px;height:112px;animation:.42s ease-out both home-welcome-juju-mobile;top:-88px;bottom:auto;right:-2px;transform:translateY(130%)}.vector-case-warning{width:calc(100% - 32px);padding:62px 16px 16px;bottom:16px;right:16px}.vector-case-warning__juju{width:112px;height:112px;animation:.42s ease-out both home-welcome-juju-mobile;top:-88px;bottom:auto;right:-2px;transform:translateY(130%)}}@keyframes pwa-juju-arrival-mobile{to{transform:translateY(0)}}@keyframes home-welcome-juju-mobile{to{transform:translateY(0)}}.celebration-preview{width:min(1180px,100% - 32px);margin:0 auto;padding:32px 0 48px}.celebration-preview__header{margin-bottom:24px}.celebration-preview__header h1{margin:6px 0 8px}.celebration-preview__header p:last-child{max-width:720px;margin:0}.celebration-preview__workspace{grid-template-columns:minmax(0,1fr) minmax(260px,340px);align-items:stretch;gap:24px;display:grid}.celebration-preview__stage{background:radial-gradient(circle at 50% 40%,#f8b6ff 0 14%,#b849d0 50%,#52217f 100%);border:4px solid #361968b3;border-radius:28px;place-items:center;min-height:min(680px,72vh);display:grid;position:relative;overflow:hidden;box-shadow:inset 0 -24px 50px #210a4159}.celebration-preview__stage[data-background=light]{background:#f5f1fa}.celebration-preview__stage[data-background=dark]{background:#171221}.celebration-preview__stage[data-background=checker]{background-color:#fff;background-image:linear-gradient(45deg,#d7d7d7 25%,#0000 25%),linear-gradient(-45deg,#d7d7d7 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#d7d7d7 75%),linear-gradient(-45deg,#0000 75%,#d7d7d7 75%);background-position:0 0,0 16px,16px -16px,-16px 0;background-size:32px 32px}.brenda-celebration{--celebration-duration:1.35s;--celebration-bounce:34px;--celebration-tilt:4deg;aspect-ratio:1;transform-origin:50% 88%;width:min(92%,610px);animation:brenda-celebration-bounce var(--celebration-duration) ease-in-out infinite;will-change:transform;position:relative}.brenda-celebration--paused,.brenda-celebration--paused .brenda-celebration__pose{animation-play-state:paused}.brenda-celebration__pose{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;filter:drop-shadow(0 16px 4px #2a0d4547);position:absolute;inset:0}.brenda-celebration__pose--open{animation:brenda-pose-open var(--celebration-duration) step-end infinite}.brenda-celebration__pose--fists{animation:brenda-pose-fists var(--celebration-duration) step-end infinite}.celebration-preview__controls{background:#ffffffeb;border:1px solid #643e9e40;border-radius:24px;flex-direction:column;gap:10px;padding:24px;display:flex;box-shadow:0 18px 44px #42256e24}.celebration-preview__buttons{flex-wrap:wrap;gap:8px;margin-bottom:12px;display:flex}.celebration-preview__control{justify-content:space-between;gap:16px;margin-top:10px;font-weight:700;display:flex}.celebration-preview__control output{color:#6d3ed1;white-space:nowrap}.celebration-preview__controls input[type=range]{accent-color:#6d3ed1;width:100%}.celebration-preview__controls select{min-height:44px;font:inherit;background:#fff;border:1px solid #522a8b59;border-radius:12px;padding:8px 12px}.celebration-preview__back{align-self:flex-start;margin-top:auto}.anton-diabolical-preview{width:min(1180px,100% - 32px);margin:0 auto;padding:32px 0 48px}.anton-diabolical-preview__header{margin-bottom:24px}.anton-diabolical-preview__header h1{margin:6px 0 8px}.anton-diabolical-preview__header p:last-child{margin:0}.anton-diabolical-preview__choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;display:grid}.anton-diabolical-preview__choice{background:#ffffffeb;border:1px solid #643e9e40;border-radius:24px;padding:16px;box-shadow:0 18px 44px #42256e24}.anton-diabolical-preview__choice h2{margin:0 0 12px;font-size:1.1rem}.anton-diabolical-preview__stage{background:radial-gradient(circle at 50% 35%,#40234f,#0d0a19 68%);border:4px solid #361968b3;border-radius:18px;min-height:min(620px,68vh);position:relative;overflow:hidden}.anton-diabolical-preview__frame{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;opacity:0;filter:drop-shadow(0 12px 8px #00000073);position:absolute;inset:0}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame{animation:1.44s step-end infinite anton-diabolical-frame-eight}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame{animation:1.08s step-end infinite anton-diabolical-frame-six}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:first-child{animation-delay:0s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(2){animation-delay:-.18s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(3){animation-delay:-.36s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(4){animation-delay:-.54s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(5){animation-delay:-.72s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(6){animation-delay:-.9s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(7){animation-delay:-1.08s}.anton-diabolical-preview__stage--a .anton-diabolical-preview__frame:nth-child(8){animation-delay:-1.26s}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame:first-child{animation-delay:0s}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame:nth-child(2){animation-delay:-.18s}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame:nth-child(3){animation-delay:-.36s}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame:nth-child(4){animation-delay:-.54s}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame:nth-child(5){animation-delay:-.72s}.anton-diabolical-preview__stage--b .anton-diabolical-preview__frame:nth-child(6){animation-delay:-.9s}.anton-diabolical-preview__back{margin-top:24px;display:inline-block}.motion-preview{width:min(1180px,100% - 32px);margin:0 auto;padding:32px 0 48px}.motion-preview__header{margin-bottom:20px}.motion-preview__header h1{margin:6px 0 8px}.motion-preview__header p:last-child{margin:0}.motion-preview__toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:22px;display:flex}.motion-preview__speed{align-items:center;gap:8px;margin-left:auto;font-weight:700;display:inline-flex}.motion-preview__speed select{min-height:40px;font:inherit;background:#fff;border:1px solid #522a8b59;border-radius:10px;padding:6px 10px}.motion-preview__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.motion-preview__card{background:#ffffffeb;border:1px solid #643e9e40;border-radius:20px;padding:16px;box-shadow:0 18px 44px #42256e24}.motion-preview__card h2{margin:0;font-size:1.1rem}.motion-preview__card p{color:#584a66;min-height:2.8em;margin:5px 0 12px}.motion-preview__stage{background-color:#f8f4ff;background-image:linear-gradient(45deg,#ded6ec 25%,#0000 25%),linear-gradient(-45deg,#ded6ec 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ded6ec 75%),linear-gradient(-45deg,#0000 75%,#ded6ec 75%);background-position:0 0,0 16px,16px -16px,-16px 0;background-size:32px 32px;border:3px solid #361968b3;border-radius:16px;place-items:center;min-height:330px;display:grid;position:relative;overflow:hidden}.motion-preview__stage img{--motion-horizontal-calibration:0px;object-fit:contain;width:100%;height:100%;image-rendering:pixelated;transform:translateX(var(--motion-horizontal-calibration));transition:none;position:absolute;inset:0}.motion-preview__back{margin-top:24px;display:inline-block}.battle-scene-preview{width:min(1460px,100% - 32px);margin:0 auto;padding:28px 0 44px}.battle-scene-intro{z-index:1001;background:#000;justify-content:center;align-items:center;display:flex;position:fixed;inset:0;overflow:hidden}.battle-scene.battle-scene--intro{aspect-ratio:1672/941;border:0;border-radius:0;flex:none;width:auto;max-width:calc(100vw - 12px);height:min(100dvh - 12px,56.28vw);max-height:calc(100dvh - 12px)}.battle-scene-preview__header{margin-bottom:16px}.battle-scene-preview__header h1{margin:6px 0 8px}.battle-scene-preview__header p:last-child{margin:0}.battle-scene-preview__toolbar{flex-wrap:wrap;gap:10px;margin-bottom:16px;display:flex}.battle-scene{aspect-ratio:1672/941;border:4px solid var(--purple-dark);isolation:isolate;background:#25104c;border-radius:20px;width:100%;position:relative;overflow:hidden}.battle-scene__background{z-index:0;width:100%;height:100%;display:block;position:absolute;inset:0}.battle-scene__background img{object-fit:cover;width:100%;height:100%;image-rendering:pixelated;display:block}.battle-scene--intro .battle-scene__background img{object-fit:contain}.battle-scene__grid{z-index:8;pointer-events:none;color:#fff7b8;text-shadow:1px 1px #241041,-1px -1px #241041;background-image:linear-gradient(90deg,#fff7b857 1px,#0000 1px),linear-gradient(#fff7b857 1px,#0000 1px);background-size:3.33333% 5%;border:2px solid #fff7b8b8;font-family:monospace;font-size:clamp(8px,.72vw,12px);font-weight:700;line-height:1;position:absolute;inset:0}.battle-grid__axis,.battle-grid__x-mark,.battle-grid__y-mark{position:absolute}.battle-grid__axis{z-index:1;background:#241041d1;border-radius:3px;padding:2px 3px}.battle-grid__axis--x{top:3px;right:3px}.battle-grid__axis--y{top:3px;left:3px}.battle-grid__x-mark{top:3px;left:calc(var(--grid-index) * 100% / 30);transform:translate(-50%)}.battle-grid__x-mark:first-of-type{transform:none}.battle-grid__y-mark{top:calc(var(--grid-index) * 100% / 20);left:3px;transform:translateY(-50%)}.battle-grid__y-mark:last-child{transform:translateY(-100%)}.battle-scene__fade{z-index:10;pointer-events:none;background:#000;position:absolute;inset:0}.battle-scene__title{z-index:11;color:#ffe77a;letter-spacing:.04em;text-shadow:4px 4px #54106f,-2px -2px #3d124e,0 0 16px #ff93e0b8;white-space:nowrap;justify-content:center;margin:0;font-family:"Press Start 2P",monospace;font-size:clamp(2rem,5.4vw,5.8rem);line-height:1.15;display:flex;position:absolute;top:5.5%;left:50%;transform:translate(-50%)}.battle-scene__title span{opacity:0;transform:translateY(.18em)scale(.88)}.battle-scene__title .battle-scene__title-letter--visible{animation:.16s steps(2,end) forwards battle-title-letter-in}.battle-actor{z-index:2;transform-origin:bottom;position:absolute}.battle-actor img{--battle-right-lock:0px;object-fit:contain;width:100%;height:100%;image-rendering:pixelated;transform:translateX(var(--battle-right-lock));display:block}.battle-actor__bob{width:100%;height:100%}.battle-actor--roland{aspect-ratio:1;width:15%;animation:2.8s ease-in-out infinite battle-roland-sway;top:9%;left:3.33333%}.battle-actor--brenda{aspect-ratio:1;width:18.75%;top:67.5%;left:-21%}.battle-actor--tala{aspect-ratio:1;width:18.75%;top:47.5%;left:-19%}.battle-actor--pablo{aspect-ratio:627/700;width:30%;top:-1%;left:20.6667%}.battle-actor--pablo .battle-actor__bob{animation:1.6s ease-in-out infinite battle-pablo-entrance-bob}.battle-actor--demon{z-index:1;aspect-ratio:1;width:37.5%;top:37.5%;left:63.3333%}.battle-scene--tala-hovering .battle-actor--tala{animation:2.4s ease-in-out infinite battle-tala-hover}.battle-scene--brenda-arrived .battle-actor--brenda{animation:2.8s ease-in-out infinite battle-brenda-sway}.battle-scene--pablo-hovering .battle-actor--pablo{animation:none}.battle-scene--pablo-hovering .battle-actor--pablo .battle-actor__bob{animation:2.1s ease-in-out infinite battle-pablo-hover}.battle-scene--paused .battle-actor,.battle-scene--paused .battle-actor__bob,.battle-scene--paused .battle-scene__fade{animation-play-state:paused}.battle-scene-preview__back{margin-top:20px;display:inline-block}@keyframes battle-brenda-arrival{0%{left:-21%}to{left:40%}}@keyframes battle-title-letter-in{0%{opacity:0;transform:translateY(.18em)scale(.88)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes battle-title-fade-out{0%{opacity:1}to{opacity:0}}@keyframes battle-tala-arrival{0%{top:47.5%;left:-19%}72%{top:47.5%;left:13.3333%}93%{top:52.5%;left:20%}to{top:52.5%;left:23.3333%}}@keyframes battle-pablo-arrival{0%{top:-38%}to{top:-1%}}@keyframes battle-roland-sway{0%,to{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}@keyframes battle-brenda-sway{0%,to{transform:rotate(-1.5deg)}50%{transform:rotate(1.5deg)}}@keyframes battle-tala-hover{0%,to{transform:translate(0)}25%{transform:translate(.45%,-.7%)}50%{transform:translateY(-1.15%)}75%{transform:translate(-.45%,-.7%)}}@keyframes battle-pablo-hover{0%,to{transform:translateY(0)}50%{transform:translateY(-1.2%)}}@keyframes battle-pablo-entrance-bob{0%,to{transform:translateY(0)}50%{transform:translateY(-2%)}}@keyframes battle-fade-from-black{0%{opacity:1}to{opacity:0}}@keyframes battle-fade-to-black{0%{opacity:0}to{opacity:1}}@media (orientation:portrait){.battle-scene.battle-scene--intro,.battle-scene.battle-scene--preview{aspect-ratio:1672/2972;flex:none;width:auto;max-width:calc(100vw - 12px);height:min(100dvh - 12px,177.78vw);max-height:calc(100dvh - 12px)}.battle-scene--preview{margin-inline:auto}.battle-scene--intro .battle-scene__background img{object-fit:contain}.battle-actor--roland{top:37%}.battle-actor--brenda{top:55.52%}.battle-actor--tala{top:49.19%}.battle-actor--pablo{top:33.83%}.battle-actor--demon{top:46.02%}.battle-scene__title{font-size:clamp(1.35rem,7vw,2.8rem);top:16%}.battle-scene--moving.battle-scene--brenda-arrived .battle-actor--brenda{top:55.52%}.battle-scene--moving.battle-scene--tala-hovering .battle-actor--tala{top:50.78%}@keyframes battle-brenda-arrival{0%{top:55.52%;left:-21%}to{top:55.52%;left:40%}}@keyframes battle-tala-arrival{0%{top:49.19%;left:-19%}72%{top:49.19%;left:13.3333%}93%{top:50.78%;left:20%}to{top:50.78%;left:23.3333%}}@keyframes battle-pablo-arrival{0%{top:-35%}to{top:33.83%}}}.brenda-result-overlay{z-index:1000;opacity:1;place-items:center;padding:1.5rem;transition:opacity .35s;display:grid;position:fixed;inset:0}.brenda-result-overlay--leaving{opacity:0;pointer-events:none}.brenda-result-overlay__veil{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#1e0e389e;position:absolute;inset:0}.brenda-result-reaction{z-index:1;background:#f7f3ffeb;border:3px solid #d8c9f0;border-radius:1.25rem;grid-template-columns:minmax(13rem,20rem) minmax(13rem,23rem);align-items:center;gap:1.5rem;width:min(100%,46rem);padding:1.25rem 1.5rem;display:grid;position:relative;box-shadow:0 1.25rem 3.5rem #11052573}.brenda-result-reaction--failure{background:#fff5f7eb;border-color:#e4bcc8}.brenda-result-reaction__sprite{aspect-ratio:1;justify-self:center;width:min(100%,20rem);animation:1.35s ease-in-out infinite brenda-result-bounce;position:relative}.brenda-result-reaction--failure .brenda-result-reaction__sprite,.brenda-celebration--failure-preview{animation:1.1s ease-in-out infinite brenda-result-head-shake}.brenda-result-reaction__pose{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;filter:drop-shadow(0 5px #23123a33);position:absolute;inset:0}.brenda-result-reaction__pose--open,.brenda-result-reaction__pose--left,.brenda-celebration__pose--left{animation:1.35s step-end infinite brenda-result-pose-a}.brenda-result-reaction__pose--fists,.brenda-result-reaction__pose--right,.brenda-celebration__pose--right{animation:1.35s step-end infinite brenda-result-pose-b}.brenda-result-reaction--failure .brenda-result-reaction__pose--left,.brenda-result-reaction--failure .brenda-result-reaction__pose--right,.brenda-celebration--failure-preview .brenda-celebration__pose--left,.brenda-celebration--failure-preview .brenda-celebration__pose--right{animation-duration:1.1s}.brenda-result-reaction p{color:#443451;margin:0;font-size:clamp(1.1rem,2.6vw,1.65rem);font-weight:700}@keyframes brenda-result-bounce{0%,to{transform:translateY(0)}40%{transform:translateY(-12px)rotate(-3deg)}70%{transform:translateY(-7px)rotate(3deg)}}@keyframes anton-diabolical-frame-eight{0%,12.49%{opacity:1}12.5%,to{opacity:0}}@keyframes anton-diabolical-frame-six{0%,16.66%{opacity:1}16.67%,to{opacity:0}}@keyframes brenda-result-head-shake{0%,to{transform:translate(-7px)rotate(-1.5deg)}50%{transform:translate(7px)rotate(1.5deg)}}@keyframes brenda-result-pose-a{0%,49%{opacity:1}50%,to{opacity:0}}@keyframes brenda-result-pose-b{0%,49%{opacity:0}50%,to{opacity:1}}@keyframes brenda-celebration-bounce{0%,to{transform:translateY(0)rotate(0)scale(1)}18%{transform:translateY(calc(var(--celebration-bounce) * -1)) rotate(calc(var(--celebration-tilt) * -1)) scale(.98, 1.03)}34%{transform:translateY(0)rotate(0)scale(1.04,.96)}54%{transform:translateY(calc(var(--celebration-bounce) * -.62)) rotate(var(--celebration-tilt)) scale(.99, 1.02)}70%{transform:translateY(0)rotate(0)scale(1.025,.975)}}@keyframes brenda-pose-open{0%,33%,76%,to{opacity:1}34%,75%{opacity:0}}@keyframes brenda-pose-fists{0%,33%,76%,to{opacity:0}34%,75%{opacity:1}}@media (width<=780px){.celebration-preview__workspace,.motion-preview__grid{grid-template-columns:1fr}.motion-preview__speed{justify-content:space-between;width:100%;margin-left:0}.celebration-preview__stage{min-height:min(560px,62vh)}.celebration-preview__controls{min-height:420px}.anton-diabolical-preview__choices{grid-template-columns:1fr}.anton-diabolical-preview__stage{min-height:min(560px,62vh)}.brenda-result-reaction{text-align:center;grid-template-columns:1fr;max-width:26rem}}.battle-actor--brenda,.battle-actor--tala,.battle-actor--pablo{opacity:0}.battle-scene--moving .battle-actor--brenda,.battle-scene--moving .battle-actor--tala,.battle-scene--pablo-entering .battle-actor--pablo{opacity:1}.battle-scene--moving .battle-actor--brenda{animation:6.1s linear forwards battle-brenda-arrival}.battle-scene--moving .battle-actor--tala{animation:2.31s linear 11.1s forwards battle-tala-arrival}.battle-scene--pablo-entering .battle-actor--pablo{animation:3.15s linear forwards battle-pablo-arrival}.battle-scene--moving.battle-scene--brenda-arrived .battle-actor--brenda{animation:2.8s ease-in-out infinite battle-brenda-sway;top:67.5%;left:40%}.battle-scene--moving.battle-scene--tala-hovering .battle-actor--tala{animation:2.4s ease-in-out infinite battle-tala-hover;top:52.5%;left:23.3333%}.battle-scene--moving.battle-scene--pablo-hovering .battle-actor--pablo{animation:none}.battle-scene--fading-in .battle-scene__fade{animation:1.4s linear forwards battle-fade-from-black}.battle-scene--fading-out .battle-scene__fade{animation:1.4s linear forwards battle-fade-to-black}.battle-scene--title-fading .battle-scene__title{animation:.7s linear forwards battle-title-fade-out}@media (orientation:portrait){.battle-scene--moving.battle-scene--brenda-arrived .battle-actor--brenda{top:55.52%}.battle-scene--moving.battle-scene--tala-hovering .battle-actor--tala{top:50.78%}}
