@font-face{font-family:Nunito;font-style:normal;font-weight:400 900;font-display:swap;src:url('assets/fonts/Nunito-Latin.woff2') format('woff2')}
:root{--ink:#263c33;--muted:#788478;--paper:#f5f6ef;--green:#365e45;--mint:#e8eedf;--lime:#d4e88b;--line:#e3e8dc;--orange:#e79a69;--shadow:0 5px 24px #283a2710;font-family:Nunito,'Avenir Next',system-ui,sans-serif;color:var(--ink);font-synthesis:none;background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e0a363;outline-offset:3px}button{border:0}a{color:inherit;text-decoration:none}button svg{pointer-events:none}button:disabled{opacity:.45}h1,h2,h3,p{margin:0}img{max-width:100%}[hidden]{display:none!important}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon.small{width:16px;height:16px}.app-shell{max-width:1240px;margin:auto;padding:0 34px}.site-header{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:28px;font-weight:900;letter-spacing:-1.1px;line-height:1.1}.brand-mark{width:46px;height:46px;display:grid;place-items:center;background:#e5ebdd;border-radius:15px}.brand-mark svg{width:36px;height:36px}.brand small{display:block;letter-spacing:2px;font-size:8px;font-weight:900;margin-top:6px;color:#7b887a}.header-actions{display:flex;align-items:center;gap:10px}.trainer-button{display:flex;align-items:center;gap:9px;background:white;border:1px solid var(--line);border-radius:30px;padding:6px 13px 6px 6px;font-weight:800;font-size:13px}.trainer-avatar{height:31px;min-width:31px;border-radius:50%;background:#e7edda;display:grid;place-items:center;color:var(--green);font-weight:900}.icon-button{width:38px;height:38px;background:transparent;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}.icon-button:hover{background:#e9edde}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:28px 0 25px}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:900;color:#8a927e;margin-bottom:6px}h1{font-size:31px;letter-spacing:-1px;font-weight:900;line-height:1.2}h1 span{color:#789158}.heading-tag{display:flex;align-items:center;gap:7px;border:1px solid #dce4d2;border-radius:30px;padding:8px 12px;font-size:11px;font-weight:700;color:#73805f}.live-dot{width:6px;height:6px;border-radius:50%;background:#8cab65}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px}.play-column{min-width:0}.arena-card{border:1px solid #e2e8d7;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);background:white}.arena{height:350px;position:relative;isolation:isolate;overflow:hidden;--sky-top:#cae6ed;--sky-bottom:#ebf3d8;--mountain-far:#b6d2c6;--mountain-near:#91bca4;--hill:#91b879;--ground-top:#b9d494;--ground-bottom:#9cc477;--tree:#6c9c77}.arena[data-biome='1']{--sky-top:#cbe6d7;--sky-bottom:#e8edd1;--mountain-far:#8cbca2;--mountain-near:#6f9f82;--hill:#6fa674;--ground-top:#a8c58a;--ground-bottom:#85af6f;--tree:#406c54}.arena[data-biome='2']{--sky-top:#bde2ef;--sky-bottom:#e1f5e8;--mountain-far:#91c5c5;--mountain-near:#64b1b5;--hill:#80c4be;--ground-top:#e0d7ad;--ground-bottom:#d5ca94;--tree:#6eaa90}.arena[data-biome='3']{--sky-top:#f3dec7;--sky-bottom:#f8eccd;--mountain-far:#d2b39b;--mountain-near:#c49575;--hill:#c8a284;--ground-top:#e0c794;--ground-bottom:#d4b382;--tree:#a58b61}.arena[data-biome='4']{--sky-top:#abb3d2;--sky-bottom:#d5c9e3;--mountain-far:#8d91b9;--mountain-near:#737b9d;--hill:#8994a8;--ground-top:#aab5a8;--ground-bottom:#899d9b;--tree:#5c7285}.arena[data-biome='5']{--sky-top:#ecc8b3;--sky-bottom:#fae9b9;--mountain-far:#c6b5b7;--mountain-near:#a99b9e;--hill:#acaf8f;--ground-top:#d5d293;--ground-bottom:#b9bc7c;--tree:#7f956b}.landscape{position:absolute;width:100%;height:100%;inset:0;z-index:-2}.arena-topline{position:absolute;top:16px;left:18px;right:18px;display:flex;justify-content:space-between;align-items:center;z-index:3}.location-pill{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:800;color:#4f7060;background:#ffffff8c;backdrop-filter:blur(8px);padding:6px 9px;border-radius:20px}.battle-pill{font-size:9px;letter-spacing:1px;font-weight:900;background:#345246db;color:#fff;padding:7px 10px;border-radius:20px}.pokemon-status{position:absolute;z-index:3;background:#fffffff0;border:1px solid #ffffffc2;border-radius:12px;box-shadow:0 5px 15px #263c3310;padding:12px 14px;width:220px;backdrop-filter:blur(4px)}.enemy-status{top:63px;left:25px}.status-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.status-title strong{font-weight:900;font-size:17px}.status-title>span{color:#8a9383;font-weight:800;font-size:10px}.hp-row{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:8px;font-weight:900;color:#7e9871}.hp-track{flex:1;background:#e9edde;height:7px;border-radius:6px;overflow:hidden}.hp-track i{height:100%;width:100%;display:block;background:#85af62;border-radius:6px;transition:width .5s ease,background .5s}.status-bottom{margin-top:5px;display:flex;justify-content:space-between;font-size:8px;color:#939b8e;font-weight:800;letter-spacing:.5px}.player-status{right:23px;bottom:31px;width:224px}.status-title .partner-label{font-size:7px;letter-spacing:.7px;color:#87a071}.hearts{display:flex;gap:5px;margin-top:7px}.hearts svg{width:18px;height:18px;fill:#e58e72;stroke:none;transition:fill .3s,transform .3s}.hearts svg.empty{fill:#e6e8e0}.pokemon-position{position:absolute;z-index:2}.pokemon-art{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 8px 2px #364b2730);animation:float 3.7s ease-in-out infinite;user-select:none}.enemy-position{height:203px;width:203px;right:9%;top:67px}.player-position{height:230px;width:230px;left:12%;bottom:10px}.player-art{animation-delay:-1.8s}.ground-shadow{position:absolute;left:8%;right:8%;bottom:0;height:35px;background:#456c3d25;border:7px solid #cddbab77;border-radius:50%;z-index:-1;transform:rotate(-4deg);box-shadow:0 0 0 14px #e7edce24}.player-position .ground-shadow{bottom:12px}.enemy-position .ground-shadow{bottom:6px}.arena-message{position:absolute;bottom:8px;left:18px;right:18px;text-align:center;z-index:4;font-size:10px;font-weight:800;color:#38543b;pointer-events:none}.pause-control{position:absolute;bottom:33px;left:16px;z-index:5;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;color:#436f4b;background:#faffdf9e}.battle-caption{display:flex;align-items:center;justify-content:space-between;padding:11px 17px;font-size:10px;color:#819078;font-weight:700}.battle-caption>span:first-child{display:flex;align-items:center;gap:7px}.tiny-spark{color:#c89b4e;font-size:17px}.question-card{margin-top:16px;border:1px solid var(--line);border-radius:18px;background:#fff;padding:17px 21px 0;box-shadow:var(--shadow);position:relative}.question-top{display:flex;align-items:center;justify-content:space-between}.turn-label{display:flex;align-items:center;gap:7px;font-size:12px}.turn-dot{height:7px;width:7px;background:#88aa67;border-radius:50%}.time-readout{font-size:13px;font-weight:900;font-variant-numeric:tabular-nums;color:#7f8e6a}.timer-track{height:7px;background:#f0f2e9;margin-top:9px;border-radius:5px;position:relative;overflow:hidden}.timer-fill{width:100%;height:100%;background:#a6c776;border-radius:5px;transition:background .3s}.timer-fill.strong{background:#d6bf68}.timer-fill.hit{background:#e2a275}.timer-marker{position:absolute;top:0;bottom:0;width:2px;background:#fff9}.timer-marker.first{left:35%}.timer-marker.second{left:70%}.question-content{display:grid;grid-template-columns:1fr 197px;gap:22px;padding:17px 0}.problem-side{display:flex;flex-direction:column;min-width:0;justify-content:center}.problem-label{font-size:8px;letter-spacing:1.2px;font-weight:900;color:#a2a98e}.equation{display:flex;gap:13px;align-items:center;justify-content:center;font-size:43px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-1px;white-space:nowrap;margin:6px 0}.operator,.equals{color:#98a589;font-weight:600;font-size:33px}#answer{width:84px;height:65px;min-width:0;text-align:center;border:2px solid #c5d2ac;border-radius:12px;background:#f7f9ed;color:var(--ink);font-size:37px;font-weight:900;padding:0;caret-color:#799452}#answer::placeholder{color:#a9b791}#answer:disabled{border-style:dashed;background:#f9faf5}#answer:focus{outline:0;box-shadow:0 0 0 3px #c7d9a32b;border-color:#96ad70}.input-hint{font-size:9px;color:#a0a694;text-align:center;margin:1px 0 12px}.primary-button{display:flex;justify-content:center;align-items:center;gap:10px;background:var(--green);color:white;border-radius:11px;min-height:44px;font-size:13px;font-weight:800;padding:10px 20px;box-shadow:0 3px 0 #224830;transition:background .15s,transform .15s}.primary-button:hover{background:#446e50}.primary-button:active{transform:translateY(2px);box-shadow:0 1px 0 #224830}.attack-button{width:100%;min-height:40px;font-size:12px}.attack-button .icon{width:16px;height:16px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.keypad button{border:1px solid #e4e8dc;border-bottom:3px solid #dfe5d7;background:#f8f9f3;border-radius:9px;font-size:18px;font-weight:800;min-height:36px;display:grid;place-items:center;padding:0;transition:background .12s,transform .12s}.keypad button:active:not(:disabled){transform:translateY(2px);border-bottom-width:1px}.keypad button:hover:not(:disabled){background:#edf2df}.keypad .key-secondary{font-size:11px;color:#8b957d;background:#f1f3e9}.key-secondary .icon{width:18px;height:18px}.power-guide{border-top:1px solid #edf0e6;display:flex;justify-content:center;gap:24px;padding:10px 0;font-size:9px;color:#9caa89}.power-guide span{display:flex;align-items:center;gap:4px}.power-guide b{color:#7e8a6b;font-weight:800}.power-dot{width:5px;height:5px;border-radius:50%;display:inline-block}.power-dot.super{background:#8cb95b}.power-dot.strong{background:#dbc36a}.power-dot.hit{background:#e5b68c}.session-strip{display:flex;justify-content:center;gap:26px;padding:15px 0 0}.session-strip>div{display:flex;align-items:center;gap:6px;font-size:10px;color:#9aa38d}.session-strip strong{font-size:12px;color:#657557}.session-strip .icon{width:15px;height:15px;color:#aab794}.journey-column{display:flex;flex-direction:column;gap:16px}.journey-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:21px 18px 0;box-shadow:var(--shadow)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.section-title h2{font-size:14px;letter-spacing:-.2px;font-weight:900}.section-title>span{font-size:10px;color:#9aa38e;font-weight:800}.journey-progress{height:4px;border-radius:3px;background:#edf0e6;margin:13px 0 12px;overflow:hidden}.journey-progress i,.evolution-progress i{height:100%;display:block;background:#97af6e;transition:width .5s;border-radius:3px}.route-list{display:flex;flex-direction:column;gap:3px}.route-item{display:grid;grid-template-columns:35px 1fr 15px;gap:10px;align-items:center;text-align:left;padding:10px 6px;border-radius:10px;width:100%;background:transparent}.route-item.current{background:#f0f4e7;margin:4px -3px;padding:12px 9px;width:calc(100% + 6px)}.route-item.locked{opacity:.53}.route-icon{height:33px;width:33px;display:grid;place-items:center;border-radius:10px;background:#f0f2e9;color:#859575}.route-icon .icon{width:19px;height:19px}.route-item.current .route-icon{background:#dce8bd;color:#729748}.route-text strong{display:block;font-size:11px;font-weight:800}.route-text small{display:block;font-size:9px;color:#929c86;margin-top:2px}.route-lock{color:#a1ad95}.route-lock .icon{width:12px;height:12px}.level-dots{display:flex;gap:5px;margin-top:7px}.level-dot{width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#e3e9d6;color:#99a28d;font-size:8px;font-weight:900;border:1px solid transparent}.level-dot.won{background:#9ab568;color:#fff}.level-dot.active{color:#54703c;border-color:#9fb57a;background:#fff}.text-button{color:#768768;background:transparent;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:space-between}.map-button{border-top:1px solid #edf0e6;margin-top:9px;padding:13px 0;width:100%}.evolution-card{border:1px solid #e4e7d3;border-radius:18px;background:#edf0df;padding:17px 19px}.evolution-card .section-title h2{font-size:12px}.evolution-card .section-title>span{color:#b9ad69;font-size:17px}.evolution-preview{height:79px;display:flex;justify-content:center;align-items:center;gap:16px;margin:6px 0}.evolution-preview img{width:73px;height:73px;object-fit:contain;filter:drop-shadow(0 5px 3px #40502412)}.evolution-preview img:last-child{filter:grayscale(.5);opacity:.55}.evolution-preview>span{color:#98a375;font-size:20px}.evolution-card>strong{display:block;font-size:12px;font-weight:900}.evolution-card>p{font-size:10px;line-height:1.5;color:#97a17e;margin-top:3px}.evolution-progress{height:5px;background:#dce4c9;border-radius:4px;margin-top:12px;overflow:hidden}.evolution-bottom{display:flex;justify-content:space-between;font-size:8px;color:#94a275;font-weight:800;margin-top:5px}.training-log-button{display:flex;align-items:center;text-align:left;gap:11px;padding:4px 6px;background:transparent}.log-icon{width:36px;height:36px;border-radius:11px;background:#eaeede;color:#8b9d6d;display:grid;place-items:center}.training-log-button>span:nth-child(2){flex:1}.training-log-button strong{display:block;font-size:11px;font-weight:800}.training-log-button small{display:block;font-size:9px;color:#9ca48f;margin-top:3px}.training-log-button>span:last-child{color:#9eaa88;font-size:13px}footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:30px;padding:17px 0 20px;font-size:9px;color:#a0a794}footer button{font-size:9px;background:transparent;color:#8e9981;padding:0}
.feedback-panel{min-height:204px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px 15px;gap:8px}.feedback-panel h3{font-size:23px;font-weight:900;letter-spacing:-.4px}.feedback-panel p{font-size:12px;color:#87917a;line-height:1.6}.feedback-panel .correction{font-size:33px;font-weight:900;color:var(--ink);letter-spacing:1px}.feedback-panel .primary-button{margin-top:5px;min-width:200px}.feedback-badge{font-size:9px;letter-spacing:1.4px;font-weight:900;padding:5px 10px;background:#edf4df;border-radius:20px;color:#8a9f67}.feedback-badge.miss{background:#fbefdf;color:#bd9564}.feedback-panel .damage-label{font-size:13px;font-weight:900;color:#75984c}.battle-fx{position:absolute;inset:0;pointer-events:none;z-index:8}.damage-float{position:absolute;left:70%;top:31%;font-size:42px;font-weight:900;color:#fff;text-shadow:0 3px 0 #6d943e,0 0 15px #4c793f66;animation:damageUp 1s ease-out forwards}.damage-float.missed{left:25%;top:58%;font-size:22px;text-shadow:0 2px 0 #ba826c}.attack-orb{position:absolute;left:30%;top:65%;width:36px;height:36px;border-radius:50%;background:var(--attack-color,#ffb34c);box-shadow:0 0 20px var(--attack-color,#ffb34c),0 0 40px #fff;animation:projectile .4s ease-in forwards}.attack-orb.super{width:62px;height:62px}.impact-star{position:absolute;left:70%;top:38%;font-size:95px;color:#fff4ac;animation:impact .5s ease-out both;text-shadow:0 0 30px #ffe87e}.enemy-position.hurt{animation:hurt .45s}.player-position.attack{animation:lunge .4s}.player-position.hurt{animation:hurt .45s}.enemy-position.fainted{opacity:.25;transform:translateY(25px) scale(.85);transition:opacity .7s,transform .7s}.arena.flash:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:7;background:#fffad2;animation:flash .4s forwards}.confetti{position:absolute;left:var(--x);top:-12px;width:8px;height:13px;background:var(--c);animation:confettiFall var(--d) ease-in forwards;transform:rotate(var(--r));z-index:9;border-radius:2px}
dialog{width:min(610px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;border:1px solid #e3e8d9;border-radius:24px;padding:0;background:#fbfcf6;color:var(--ink);box-shadow:0 30px 120px #172d3840}dialog::backdrop{background:#203c3b66;backdrop-filter:blur(6px)}.dialog-inner{padding:29px}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:17px}.dialog-header h2{font-size:25px;font-weight:900;letter-spacing:-.6px}.dialog-header p{font-size:12px;color:#88957c;line-height:1.6;margin-top:5px}.dialog-close{height:30px;width:30px;border-radius:50%;background:#e9edde;font-size:22px;line-height:1;flex-shrink:0}.dialog-eyebrow{font-size:9px;letter-spacing:1.5px;color:#92a46f;font-weight:900;margin-bottom:7px}.starter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:19px 0}.starter-card{position:relative;border:2px solid #e5e9de;background:#fff;border-radius:16px;padding:13px 6px 12px;text-align:center;transition:background .2s,border-color .2s,transform .2s}.starter-card:hover{transform:translateY(-3px)}.starter-card.selected{background:#f1f5e6;border-color:#94ad6d}.starter-card img{height:108px;width:108px;object-fit:contain;filter:drop-shadow(0 5px 4px #324a2d17)}.starter-card strong{display:block;font-size:13px;font-weight:900;margin-top:5px}.starter-card small{display:block;font-size:8px;text-transform:uppercase;letter-spacing:1px;color:#9ba788;margin-top:3px}.starter-check{position:absolute;right:9px;top:8px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;border:1px solid #d8e1ca;font-size:11px;color:#fff}.starter-card.selected .starter-check{background:#86a35f;border-color:#86a35f}.field-label{display:block;font-size:11px;font-weight:800;margin-bottom:6px}.text-field,.select-field{border:1px solid #dce3d1;background:#fff;border-radius:10px;width:100%;padding:11px 13px;color:var(--ink);font-size:14px}.dialog-row{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:16px}.dialog-hint{font-size:10px;line-height:1.6;color:#98a28a;margin-top:14px;text-align:center}.dialog-main-button{width:100%;margin-top:20px}.how-it-works{display:flex;justify-content:center;gap:18px;margin:17px 0 0;font-size:10px;color:#8c9c76}.how-it-works>span{display:flex;align-items:center;gap:5px}.how-it-works b{font-size:12px;color:#6b8851}.profile-list{display:flex;flex-direction:column;gap:10px}.profile-choice{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e0e5d8;border-radius:13px;padding:10px 14px;text-align:left}.profile-choice.active{border:2px solid #a4ba80;background:#f1f6e6}.profile-choice img{width:56px;height:56px;object-fit:contain}.profile-choice .profile-detail{flex:1}.profile-choice strong{font-size:14px;display:block}.profile-choice small{font-size:10px;display:block;color:#93a17f;margin-top:4px}.profile-choice>span:last-child{color:#9caf80}.secondary-button{border:1px solid #dce4d1;border-bottom-width:2px;background:#eef2e5;border-radius:10px;min-height:41px;font-size:12px;font-weight:800;padding:8px 15px}.secondary-button:hover{background:#e3ebd7}.settings-row{padding:16px 0;border-top:1px solid #e5eada}.settings-row label,.settings-row .setting-name{font-size:13px;font-weight:800;display:block;margin-bottom:7px}.settings-row p{font-size:11px;color:#909e7f;line-height:1.6;margin-top:8px}.settings-row.inline{display:flex;align-items:center;justify-content:space-between}.settings-row.inline .setting-name{margin:0}.toggle{border-radius:30px;padding:7px 13px;font-size:12px;font-weight:800;background:#e1eacf;color:#5d7b43}.settings-note{border-radius:12px;padding:12px;background:#f0f4e7;color:#849471;font-size:11px;line-height:1.6}.map-grid{display:flex;flex-direction:column;gap:18px}.map-route h3{font-size:12px;font-weight:900}.map-route h3 span{font-size:10px;font-weight:600;color:#9aa68b;margin-left:7px}.map-battles{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:8px}.map-level{padding:8px 3px;background:white;border:1px solid #e1e6d8;border-radius:12px;position:relative;min-width:0}.map-level.current{border:2px solid #93ae68;background:#f1f5e8}.map-level:disabled{opacity:.4}.map-level img{width:57px;height:57px;object-fit:contain;display:block;margin:auto}.map-level strong{font-size:8px;display:block;overflow:hidden;text-overflow:ellipsis}.map-level>small{position:absolute;left:6px;top:5px;color:#8c997b;font-size:8px;font-weight:900}.map-stars{font-size:9px;color:#c3ac62;letter-spacing:1px;min-height:15px}.result-inner{text-align:center;padding:32px}.result-inner .dialog-eyebrow{margin-top:4px}.result-art{width:155px;height:155px;object-fit:contain;filter:drop-shadow(0 9px 4px #42652d20)}.result-inner h2{font-size:28px;font-weight:900;letter-spacing:-.7px;margin-top:10px}.result-inner>p{font-size:12px;color:#8d9c7a;line-height:1.7;margin-top:7px}.big-stars{color:#d7b750;letter-spacing:9px;font-size:34px;line-height:1;margin:14px 0}.big-stars .empty{color:#e2e6d8}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:20px 0;border:1px solid #e1e7d6;border-radius:13px;background:#f3f6eb;padding:13px 0}.result-stats>div+div{border-left:1px solid #e1e7d6}.result-stats strong{font-size:20px;font-weight:900;display:block}.result-stats small{font-size:9px;color:#8b9a76;display:block;margin-top:2px}.result-inner .primary-button{width:100%;margin-top:15px}.result-inner>.text-button{margin:14px auto 0}.evolution-celebration{position:relative;width:210px;height:210px;display:grid;place-items:center;margin:6px auto}.evolution-celebration:before{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle,#e2ebb4 0%,#eff3d760,transparent 70%);animation:evolveGlow 2s infinite}.evolution-celebration img{position:relative;width:190px;height:190px;object-fit:contain;animation:evolveReveal 1.3s ease-out both}.evolution-arrow{display:flex;align-items:center;justify-content:center;gap:13px;font-size:11px;color:#8d9b76;margin-top:12px}.journal-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px}.journal-summary>div{padding:13px 5px;border:1px solid #e1e7d7;border-radius:12px;text-align:center;background:#f1f5e8}.journal-summary strong{display:block;font-size:21px;font-weight:900}.journal-summary small{font-size:9px;color:#8b9c78}.fact-grid{display:grid;grid-template-columns:25px repeat(12,minmax(0,1fr));gap:3px}.fact-grid>span{min-height:27px;display:grid;place-items:center;border-radius:5px;font-size:8px;color:#8c9a7e;font-weight:800}.fact-grid>.fact-cell{background:#edf0e5;color:#c4ccba}.fact-grid>.fact-cell.practiced{background:#e7e3bf;color:#8a8750}.fact-grid>.fact-cell.growing{background:#dce8bb;color:#76904f}.fact-grid>.fact-cell.confident{background:#8fb26a;color:#fff}.fact-legend{display:flex;gap:11px;justify-content:center;margin-top:12px;font-size:8px;color:#8d9a7d}.fact-legend i{display:inline-block;width:7px;height:7px;background:#edf0e5;border-radius:2px;margin-right:3px}.fact-legend i.practiced{background:#e7e3bf}.fact-legend i.growing{background:#dce8bb}.fact-legend i.confident{background:#8fb26a}.review-facts{font-size:11px;line-height:1.8;padding:13px;border:1px solid #e5e9dc;border-radius:10px;margin-top:16px;color:#8f9b80}.review-facts strong{color:#617849}.review-facts span{display:inline-block;background:#edf2e3;border-radius:5px;padding:2px 6px;margin:5px 5px 0 0;font-weight:800;color:#7e916b}.about-copy p{font-size:12px;color:#89967b;line-height:1.8;margin-bottom:12px}.about-copy h3{font-size:14px;font-weight:900;margin:15px 0 6px}.about-copy a{text-decoration:underline}.about-copy ul{padding-left:19px;font-size:12px;color:#89967b;line-height:1.9}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:#2d4e3eea;color:white;padding:12px 18px;border-radius:12px;max-width:calc(100% - 32px);font-size:12px;box-shadow:0 5px 20px #20362d22;z-index:30;transition:transform .25s;text-align:center}.toast.visible{transform:translateX(-50%) translateY(0)}
@keyframes float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}@keyframes lunge{50%{transform:translate(40px,-20px)}}@keyframes hurt{0%,100%{transform:translateX(0);filter:none}20%,60%{transform:translateX(8px);filter:brightness(1.6)}40%,80%{transform:translateX(-8px)}}@keyframes damageUp{0%{opacity:0;transform:translateY(20px) scale(.7)}25%{opacity:1;transform:translateY(0) scale(1.2)}100%{opacity:0;transform:translateY(-65px) scale(1)}}@keyframes projectile{to{left:72%;top:40%;transform:scale(.7)}}@keyframes impact{0%{opacity:0;transform:scale(.2) rotate(-30deg)}40%{opacity:1}100%{opacity:0;transform:scale(1.5) rotate(20deg)}}@keyframes flash{0%{opacity:.5}100%{opacity:0}}@keyframes confettiFall{to{top:110%;transform:rotate(480deg) translateX(30px)}}@keyframes evolveGlow{50%{transform:scale(1.15);opacity:.7}}@keyframes evolveReveal{0%{filter:brightness(4);transform:scale(.45);opacity:0}50%{filter:brightness(2);opacity:1}100%{filter:brightness(1);transform:scale(1)}}
@media(min-width:1400px){.app-shell{padding-top:9px}.page-heading{padding-top:33px;padding-bottom:28px}.arena{height:370px}.question-content{padding:19px 0}.question-card{margin-top:19px}.journey-column{gap:20px}.journey-card{padding-top:24px}.route-item{padding-top:12px;padding-bottom:12px}}
@media(max-width:1050px){.app-shell{padding:0 24px}.game-layout{grid-template-columns:minmax(0,1fr) 247px;gap:17px}.question-card{padding-left:16px;padding-right:16px}.question-content{gap:15px;grid-template-columns:1fr 170px}.equation{font-size:37px;gap:9px}#answer{width:68px;font-size:33px}.operator,.equals{font-size:27px}.player-position{left:7%}.enemy-position{right:5%;width:185px;height:185px}.pokemon-status{width:195px}.player-status{width:205px}.journey-card{padding-left:15px;padding-right:15px}.session-strip{gap:15px}.session-strip>div{font-size:9px}.route-text strong{font-size:10px}}
@media(max-width:800px){.app-shell{padding:0 20px;max-width:650px}.site-header{height:79px}.brand{font-size:24px}.brand-mark{width:40px;height:40px}.brand-mark svg{width:31px;height:31px}.brand small{font-size:7px;letter-spacing:1.6px}.game-layout{grid-template-columns:1fr}.journey-column{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.journey-card{grid-row:span 2}.journey-card .route-item{padding-top:7px;padding-bottom:7px}.evolution-card{height:fit-content}.training-log-button{align-self:start}.page-heading{padding:24px 0 20px}h1{font-size:28px}.heading-tag{display:none}.arena{height:335px}.player-position{left:10%;width:225px;height:225px}.enemy-position{right:8%;width:195px;height:195px}.question-content{grid-template-columns:1fr 190px;gap:20px}.equation{font-size:43px;gap:13px}#answer{width:82px}.journey-column{margin-top:4px}.route-text strong{font-size:11px}.session-strip{padding-bottom:7px}footer{margin-top:23px}.keypad button{min-height:39px}}
@media(max-width:480px){.app-shell{padding:0 13px}.site-header{height:70px}.brand{font-size:21px;gap:7px}.brand-mark{height:35px;width:35px;border-radius:12px}.brand-mark svg{width:28px;height:28px}.brand small{font-size:6px;letter-spacing:1.2px;margin-top:4px}.header-actions{gap:6px}.trainer-button{padding:4px 6px 4px 4px;gap:5px;max-width:113px;font-size:11px}.trainer-button #trainer-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:50px}.trainer-button>.icon{display:none}.trainer-avatar{height:26px;min-width:26px;font-size:12px}.icon-button{height:31px;width:31px}.icon-button .icon{height:17px;width:17px}.page-heading{padding:18px 0 17px}.eyebrow{font-size:7px;letter-spacing:1.3px}h1{font-size:26px}.arena-card{border-radius:16px}.arena{height:277px}.arena-topline{top:12px;left:12px;right:12px}.location-pill{font-size:8px;padding:5px 7px}.location-pill .icon{width:12px;height:12px}.battle-pill{font-size:7px;letter-spacing:.6px;padding:6px 8px}.pokemon-status{width:164px;padding:9px 10px;border-radius:10px}.enemy-status{left:13px;top:51px}.status-title strong{font-size:13px}.status-title>span{font-size:8px}.status-bottom{font-size:7px}.hp-row{margin-top:6px;font-size:7px}.hp-track{height:5px}.player-status{right:13px;bottom:31px;width:166px}.status-title .partner-label{font-size:5.5px;letter-spacing:.3px}.player-position{height:170px;width:170px;left:6%;bottom:14px}.enemy-position{height:156px;width:156px;right:5%;top:51px}.ground-shadow{height:24px;border-width:5px;box-shadow:0 0 0 9px #e7edce24}.hearts{gap:3px;margin-top:5px}.hearts svg{width:14px;height:14px}.arena-message{font-size:8px;bottom:9px;left:36px;right:12px}.pause-control{bottom:9px;left:10px;height:23px;width:23px}.pause-control .icon{width:12px;height:12px}.battle-caption{font-size:8px;padding:8px 12px}.tiny-spark{font-size:13px}.question-card{margin-top:12px;border-radius:15px;padding:13px 14px 0}.turn-label{font-size:11px}.time-readout{font-size:12px}.timer-track{height:6px;margin-top:8px}.question-content{grid-template-columns:minmax(0,1fr) 132px;gap:13px;padding:16px 0}.problem-label{font-size:6px;letter-spacing:.7px}.equation{font-size:29px;gap:6px;margin:9px 0}.operator,.equals{font-size:23px}#answer{width:57px;height:51px;font-size:26px;border-radius:9px;flex-shrink:1}.input-hint{font-size:7px;line-height:1.5;margin:0 0 10px}.attack-button{font-size:10px;min-height:37px;padding:8px 10px;gap:5px}.keypad{gap:5px}.keypad button{min-height:34px;font-size:17px;border-radius:7px}.keypad .key-secondary{font-size:9px}.key-secondary .icon{width:15px;height:15px}.power-guide{gap:13px;font-size:7px;padding:9px 0}.power-guide span{gap:3px}.power-dot{width:4px;height:4px}.session-strip{gap:13px;padding:12px 0 3px;justify-content:space-around}.session-strip>div{gap:4px;font-size:8px}.session-strip strong{font-size:10px}.session-strip .icon{height:12px;width:12px}.journey-column{grid-template-columns:1.07fr 1fr;gap:12px;margin-top:4px}.journey-card{padding:15px 12px 0;border-radius:15px}.section-title h2{font-size:11px}.section-title>span{font-size:8px}.journey-progress{margin:10px 0 9px}.route-item{grid-template-columns:25px 1fr 8px;gap:7px;padding-left:2px;padding-right:2px}.route-item.current{padding:9px 5px}.route-icon{width:25px;height:25px;border-radius:7px}.route-icon .icon{width:15px;height:15px}.route-text strong{font-size:9px}.route-text small{font-size:7px}.route-lock .icon{width:9px;height:9px}.level-dots{gap:3px;margin-top:5px}.level-dot{width:17px;height:17px;font-size:7px}.map-button{font-size:8px;padding:10px 0}.evolution-card{padding:14px 12px;border-radius:15px}.evolution-card .section-title h2{font-size:10px}.evolution-preview{gap:6px;height:70px;margin:9px 0}.evolution-preview img{width:58px;height:58px}.evolution-preview>span{font-size:15px}.evolution-card>strong{font-size:10px}.evolution-card>p{font-size:8px}.evolution-bottom{font-size:7px;gap:5px}.evolution-bottom>span:last-child{display:none}.training-log-button{gap:7px;flex-wrap:wrap;padding:0 1px}.log-icon{height:29px;width:29px;border-radius:8px}.log-icon .icon{width:18px;height:18px}.training-log-button strong{font-size:9px}.training-log-button small{font-size:8px;max-width:90px}.training-log-button>span:last-child{display:none}footer{font-size:7px;gap:14px;align-items:flex-start;padding:15px 0 19px}footer button{font-size:7px;flex-shrink:0}.feedback-panel{min-height:180px;padding:14px 4px}.feedback-panel h3{font-size:20px}.feedback-panel p{font-size:10px}.feedback-panel .correction{font-size:29px}.feedback-panel .primary-button{font-size:11px;min-height:36px}.dialog-inner{padding:23px 19px}.dialog-header h2{font-size:23px}.dialog-header p{font-size:11px}.starter-grid{gap:7px;margin:17px 0}.starter-card{border-radius:12px;padding:14px 3px 12px}.starter-card img{height:83px;width:83px}.starter-card strong{font-size:11px}.starter-card small{font-size:7px}.starter-check{height:15px;width:15px;font-size:9px;right:7px;top:6px}.dialog-row{gap:10px}.field-label{font-size:10px}.text-field,.select-field{font-size:12px;padding:10px}.how-it-works{gap:12px;font-size:8px}.how-it-works b{font-size:10px}.dialog-hint{font-size:9px}.map-battles{gap:5px}.map-level img{width:47px;height:47px}.map-level strong{font-size:6px}.map-level{border-radius:9px}.map-route h3{font-size:11px}.map-route h3 span{font-size:8px}.map-stars{font-size:7px}.result-inner{padding:26px 21px}.result-inner h2{font-size:25px}.result-inner>p{font-size:11px}.fact-grid{grid-template-columns:18px repeat(12,minmax(0,1fr));gap:2px}.fact-grid>span{font-size:6px;min-height:22px;border-radius:3px}.fact-legend{gap:7px;font-size:7px}.journal-summary strong{font-size:18px}.journal-summary small{font-size:8px}.damage-float{font-size:32px}.damage-float.missed{font-size:17px}}
@media(max-width:360px){.app-shell{padding:0 10px}.brand{font-size:19px}.brand small{letter-spacing:.8px}.brand-mark{width:30px;height:30px}.trainer-button{max-width:86px}.trainer-button #trainer-name{max-width:42px}.trainer-avatar{display:none}h1{font-size:24px}.question-content{grid-template-columns:minmax(0,1fr) 119px;gap:9px}.equation{gap:4px;font-size:25px}#answer{width:47px;font-size:24px}.operator,.equals{font-size:20px}.player-status{width:151px}.enemy-status{width:151px}.player-position{left:3%}.enemy-position{right:2%}.starter-card img{height:72px;width:72px}.starter-card strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}.pokemon-art{animation:none}.attack-orb{display:none}.confetti{display:none}}
body.reduce-motion *,body.reduce-motion *:before,body.reduce-motion *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}body.reduce-motion .attack-orb,body.reduce-motion .confetti{display:none}
/* Keep both partners clear of the health cards at every screen size. */
.toast{opacity:0;pointer-events:none}.toast.visible{opacity:1}
.player-position{width:200px;height:200px;bottom:15px}
.enemy-position{width:180px;height:180px;top:48px}
.enemy-position.attack{animation:counterLunge .4s}
@keyframes counterLunge{50%{transform:translate(-30px,18px)}}
@media(max-width:800px){.player-position{width:190px;height:190px}.enemy-position{width:175px;height:175px;top:47px}}
@media(max-width:480px){.player-position{width:150px;height:150px;bottom:17px;left:8%}.enemy-position{width:136px;height:136px;top:43px;right:6%}.keypad button{min-height:40px}.equation{font-size:30px;gap:4px}.operator,.equals{font-size:21px}#answer{width:53px;font-size:25px}.text-field,.select-field{font-size:16px}.dialog-row{grid-template-columns:1fr}.dialog-row>div+div{margin-top:3px}}
@media(max-width:360px){.equation{font-size:24px;gap:3px}.operator,.equals{font-size:19px}#answer{width:43px;font-size:23px}.keypad button{min-height:39px}}

/* Sound controls include a direct playback check. */
.sound-setting-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.sound-setting-heading .setting-name{margin-bottom:0}
.sound-test-row{display:flex;align-items:center;gap:14px;margin-top:12px}
.sound-test-button{flex-shrink:0;min-height:44px}
.sound-test-button:disabled{opacity:.5;cursor:default}
.settings-row .sound-test-row p{margin:0;color:#637653;line-height:1.6;flex:1}
@media(max-width:400px){.sound-test-row{align-items:flex-start;gap:11px}.sound-test-button{padding:8px 12px}.settings-row .sound-test-row p{font-size:10px}}
