.app-tools{justify-content:flex-end;gap:8px;max-width:930px;min-height:46px;margin:0 auto;padding:8px 12px;display:flex;position:relative}.app-tools button{min-height:32px;padding:7px 11px;font-size:11px}.settings-dialog{width:520px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow:auto}.settings-dialog h2{margin:0 0 18px;font-size:20px}.settings-dialog>.close{z-index:10;background:var(--paper);position:sticky;top:0}.settings-language{justify-content:space-between;align-items:center;gap:14px;margin:16px 0;display:flex}.settings-language select{font:inherit;min-width:130px;min-height:42px;color:var(--ink);border:2px solid var(--border);background:#fff8e8;padding:7px}.settings-dialog fieldset{border:1px solid #b19b78;margin:16px 0;padding:12px}.settings-dialog legend{padding:0 6px;font-size:13px}.setting-option{cursor:pointer;border-bottom:1px dashed #b19b78;grid-template-columns:24px 1fr;gap:7px 10px;padding:11px 0;display:grid}.setting-option:last-child{border-bottom:0}.setting-option input{accent-color:#386153;width:20px;height:20px;margin:0}.setting-option strong{font-size:13px;line-height:1.5}.setting-option small{grid-column:2;font-size:11px;font-weight:400;line-height:1.65}.settings-note{font-size:11px;line-height:1.7}.setting-volume{grid-template-columns:1fr auto;gap:10px;padding:14px 0;font-size:11px;line-height:1.6;display:grid}.setting-volume input{accent-color:#386153;grid-column:1/-1;width:100%;min-height:24px;margin:0}.settings-dialog select:focus-visible,.settings-dialog input:focus-visible{outline-offset:3px;outline:3px solid #916912}.preferences-warning{text-align:center;background:#f9d978;margin:0;padding:8px 12px;font-size:11px}.app[lang=zh-CN]{letter-spacing:0;font-family:PingFang SC,Microsoft YaHei,sans-serif}.app[lang=zh-CN] button,.app[lang=zh-CN] select,.app[lang=zh-CN] summary{font-family:inherit}.app:has(.app-tools) .map-layout{height:calc(100dvh - 46px)}@media (width>=900px){.app:has(.app-tools) .map-layout{--map-height:calc(100dvh - 110px)}}@media (width>=769px) and (width<=899px){.app:has(.app-tools) .map-layout{--map-height:calc(100dvh - 216px)}}.app:has(.app-tools) .menu-screen{min-height:calc(100dvh - 46px)}@media (width<=600px){.app-tools{min-height:44px;padding:6px 9px}.app-tools button{font-size:11px}.settings-dialog{padding:16px}.settings-dialog h2{font-size:18px}.app:has(.app-tools) .map-layout{height:calc(100dvh - 44px)}.app:has(.app-tools) .menu-screen{min-height:calc(100dvh - 44px)}}.app:has(.app-tools) .map-layout .map-header{top:8px;left:12px;right:auto}.app[lang=zh-CN] .creature-name{font-size:15px;line-height:1.4}.app[lang=zh-CN] .level,.app[lang=zh-CN] .hp{font-size:12px}.app[lang=zh-CN] .card-stat,.app[lang=zh-CN] .move,.app[lang=zh-CN] .move-meta,.app[lang=zh-CN] .types span{font-size:11px}.app[lang=zh-CN] .node-screen>header p,.app[lang=zh-CN] .stage-result>p,.app[lang=zh-CN] .node-options strong,.app[lang=zh-CN] .node-options span,.app[lang=zh-CN] .target-list>button,.app[lang=zh-CN] .target-list small,.app[lang=zh-CN] .item-dialog>p,.app[lang=zh-CN] .held-controls p,.app[lang=zh-CN] .growth-dialog p{font-size:12px}.app[lang=zh-CN] .item-dialog h2,.app[lang=zh-CN] .held-controls h2,.app[lang=zh-CN] .node-targets h2{font-size:16px}.app[lang=zh-CN] .target-list .hp,.app[lang=zh-CN] .held-item,.app[lang=zh-CN] .node-skip,.app[lang=zh-CN] .formation-controls,.app[lang=zh-CN] .formation-controls button,.app[lang=zh-CN] .held-controls button,.app[lang=zh-CN] .map-layout .team-member>strong,.app[lang=zh-CN] .map-layout .team-member>span:not(.position),.app[lang=zh-CN] .map-layout .team-panel h2,.app[lang=zh-CN] .map-layout .bag-panel h2,.app[lang=zh-CN] .map-layout .bag-panel details{font-size:11px}.app[lang=zh-CN] .map-layout .hp,.app[lang=zh-CN] .map-layout .map-footer,.app[lang=zh-CN] .map-layout .map-footer>span,.app[lang=zh-CN] .map-layout .bag-item,.app[lang=zh-CN] .map-layout .team-hint{font-size:10px}.app[lang=zh-CN] .prep-teams button>strong,.app[lang=zh-CN] .prep-teams button>span:not(.position){font-size:11px;line-height:1.25}.app[lang=zh-CN] .prep-teams button>.hp{font-size:10px;line-height:1.2}.app[lang=zh-CN] .prep-teams h2,.app[lang=zh-CN] .battle-prep .bag-panel>h2,.app[lang=zh-CN] .battle-prep .bag-panel summary{font-size:11px}.app[lang=zh-CN] .battle-prep>header p{font-size:11px;line-height:1.5}.app[lang=zh-CN] .battler:not(.active) header,.app[lang=zh-CN] .battler:not(.active) header>span,.app[lang=zh-CN] .battler:not(.active) .hp{font-size:10px}.app[lang=zh-CN] .battle-side>h2,.app[lang=zh-CN] .battle-message,.app[lang=zh-CN] .result-actions details{font-size:12px}@media (width<=768px){.app[lang=zh-CN] .map-layout{grid-template-rows:110px 40px minmax(0,1fr)}.app[lang=zh-CN] .map-layout .team-panel{height:110px;padding-right:4px}.app[lang=zh-CN] .map-layout .bag-panel{height:40px;min-height:40px}.app[lang=zh-CN] .map-layout .team-member>strong{text-overflow:ellipsis;overflow:hidden}.app[lang=zh-CN] .battle-prep{padding:8px}.app[lang=zh-CN] .battle-prep .prep-teams{margin-top:8px}.app[lang=zh-CN] .battle-prep .prep-teams>.panel{padding:5px}.app[lang=zh-CN] .final-team .creature-name,.app[lang=zh-CN] .final-team .level,.app[lang=zh-CN] .final-team .hp{font-size:11px}}@media (width<=600px){.app.phase-map .app-tools{padding-left:48px}.app.phase-map .app-tools button{min-width:0;padding:7px 6px;font-size:8px}}.run-saved{color:#2f7d32;white-space:nowrap;align-self:center;margin-right:auto;font-size:11px;font-weight:600}.run-saved-narrow{display:none}@media (width<=600px){.run-saved-wide{display:none}.run-saved-narrow{display:inline}}html.dark-mode .run-saved{color:#8fd39a}html.dark-mode{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background-color:#171b2b}html.dark-mode body{background:#171b2b}html.dark-mode .app{--paper:#252118;--ink:#e0dcd0;--border:#716957;--muted-ink:#b9b2a2;color:var(--ink);background-color:#171b2b;background-image:url(/reference/display/background-dark.png)}html.dark-mode .app.screen-run.phase-map{background-image:url(/reference/display/background-dark.png)}html.dark-mode .app :is(.panel,.creature-card,.node-targets,dialog.modal-panel,.result-actions details){background-color:var(--paper);color:var(--ink);border-color:var(--border)}html.dark-mode .app .creature-card{box-shadow:3px 3px #13120f}html.dark-mode .app button{color:var(--ink)}html.dark-mode .app :is(button.plain,.skip,.team-member,.prep-opponent){border-color:var(--border);background-color:#302b22}html.dark-mode .app :is(button.primary,.mode-tabs .selected){color:#211a0a;background-color:#d7ad49;border-color:#f4d078}html.dark-mode .app .region-card{background:#28392c;border-color:#668064}html.dark-mode .app .region-card.kanto{background:linear-gradient(115deg,#494532,#2e4a30)}html.dark-mode .app .settings-language select{color:var(--ink);border-color:var(--border);background:#1e1c14}html.dark-mode .app .setting-option input{accent-color:#77b2ee}html.dark-mode .app :is(.settings-dialog fieldset,.setting-option,.move,.held-controls,.growth-dialog section+section){border-color:var(--border)}html.dark-mode .app :is(.local-note,.team-hint,.team-panel h2>span,.creature-card .level,.creature-card .card-stat,.creature-card .hp,.battle-side>h2){color:var(--muted-ink)}html.dark-mode .app .growth-dialog h2{color:#a5de91}html.dark-mode .app .move-meta>span:not([style]){color:var(--ink);background:#45402f}html.dark-mode .app .battler .hp{color:#fff;text-shadow:1px 1px #1c2821,-1px -1px #1c2821}html.dark-mode .app .map-layout .panel{background-color:var(--paper);border-color:var(--border);box-shadow:3px 3px #13120f}html.dark-mode .app .map-layout .map-panel{background-color:#315c43}html.dark-mode .app .map-layout .map-header{background:0 0}html.dark-mode .app .map-layout .map-header button{background:var(--paper);border-color:var(--border)}html.dark-mode .app .map-layout .map-header button:after{background:var(--ink);box-shadow:0 -4px var(--ink), 0 4px var(--ink)}html.dark-mode .app .map-layout .map-footer{background:var(--paper);color:var(--ink);border-color:var(--border)}html.dark-mode .app .map-layout :is(.map-footer>span,.team-panel h2,.bag-panel h2,.bag-panel details,.team-member>strong,.team-hint){color:var(--muted-ink)}html.dark-mode .app .map-layout .team-member{background:0 0}html.dark-mode .app .map-layout .team-member>span:not(.position){color:#e3cc67}html.dark-mode .app .map-layout .bag-panel details[open]{background:var(--paper);outline-color:var(--border)}html.dark-mode .app .badge-slots i{border-color:#b0a993}html.dark-mode .app :is(.preferences-warning,.save-warning){color:#fff1bc;background:#53451c}html.dark-mode .app dialog.modal-panel::backdrop{background:#080c19c7}html.dark-mode .app :is(button,summary,select,input):focus-visible{outline-color:#ffdb67}html.dark-mode .app .choice-row .creature-card>button{color:#0000;background:0 0}.app :where([data-shortcut]:not(.map-node)){position:relative}.app .keyboard-hint{display:none}@media (hover:hover) and (pointer:fine){html.show-shortcuts .app .keyboard-hint{z-index:6;color:#fff;white-space:nowrap;pointer-events:none;text-shadow:none;background:#6b57a6;border:1px solid #171220;border-radius:4px;padding:3px 5px;font:700 10px/1 ui-monospace,Menlo,Consolas,monospace;display:block;position:absolute;top:-8px;right:-6px;box-shadow:1px 1px #171220}html.show-shortcuts .app .map-node .keyboard-hint{top:0;right:-2px}}.app .battle-columns{position:relative}.battle-effects{z-index:6;pointer-events:none;filter:drop-shadow(0 0 3px var(--fx-color));position:absolute;inset:0;overflow:visible}.battle-effects.reduced-motion{filter:none}.app .battle-ground{pointer-events:none;width:128px;height:auto;image-rendering:pixelated;position:absolute;bottom:3px;left:50%;transform:translate(-50%)}.app .portrait-stage>.portrait{z-index:1;position:relative}.app .portrait-stage>.damage,.app .portrait-stage>.healing,.app .portrait-stage>.faint-label{z-index:2}.app .battler:not(.active) .battle-ground{width:44px;bottom:0}@media (prefers-reduced-motion:reduce){.app .attacking .portrait,.app .hit,.app .damage{animation:none}.app .hp-track>span{transition:none}}.app .battle-screen[data-playback-paused=true] .hit,.app .battle-screen[data-playback-paused=true] .attacking .portrait,.app .battle-screen[data-playback-paused=true] .damage{animation-play-state:paused}.battle-review{text-align:left;width:100%;min-width:0;max-width:100%;margin-top:.5rem}.battle-review .review-details{background:#0a101c8c;border:1px solid #ffffff38;border-radius:.5rem;min-width:0;max-width:100%}.battle-review .review-details>summary{cursor:pointer;flex-wrap:wrap;align-items:baseline;gap:.35rem .6rem;padding:.5rem .7rem;list-style-position:inside;display:flex}.battle-review .review-details>summary strong{font-size:.95rem}.battle-review .review-summary{opacity:.78;overflow-wrap:anywhere;min-width:0;font-size:.72rem}.battle-review .review-panel{min-width:0;padding:0 .7rem .7rem}.battle-review .review-intro,.battle-review .review-note,.battle-review .review-empty{opacity:.8;overflow-wrap:anywhere;margin:.25rem 0 .5rem;font-size:.74rem}.battle-review .review-category{border-top:1px solid #ffffff24;min-width:0;margin-top:.5rem;padding-top:.4rem}.battle-review .review-category h3{overflow-wrap:anywhere;justify-content:space-between;gap:.5rem;margin:0;font-size:.82rem;display:flex}.battle-review .review-category h3 span{opacity:.7;font-variant-numeric:tabular-nums}.battle-review .review-list{min-width:0;margin:.3rem 0 0;padding:0;list-style:none}.battle-review .review-entry{border-left:3px solid #0000;gap:.45rem;min-width:0;padding:.35rem .4rem;display:flex}.battle-review .review-entry+.review-entry{border-top:1px solid #ffffff14}.battle-review .review-entry.controllable{border-left-color:#4ea1ff}.battle-review .review-entry.random{border-left-color:#d9a13b}.battle-review .review-entry.enemy{border-left-color:#c05a5a}.battle-review .review-index{opacity:.6;font-variant-numeric:tabular-nums;text-align:right;flex:none;min-width:1.4rem;font-size:.7rem}.battle-review .review-body{flex:auto;min-width:0}.battle-review .review-line,.battle-review .review-speed{overflow-wrap:anywhere;word-break:break-word;margin:0;font-size:.78rem;line-height:1.35}.battle-review .review-speed{opacity:.8;font-size:.72rem}.battle-review .review-badges{flex-wrap:wrap;align-items:baseline;gap:.2rem .5rem;margin-top:.2rem;display:flex}.battle-review .review-control{letter-spacing:.02em;text-transform:uppercase;opacity:.75;font-size:.66rem;display:inline-block}.battle-review .review-random{letter-spacing:.02em;text-transform:uppercase;color:#f0c46a;border:1px solid;border-radius:.75rem;padding:0 .35rem;font-size:.66rem;display:inline-block}.battle-review .review-entry.controllable .review-control{color:#8cc4ff}.battle-review .review-entry.random .review-control{color:#f0c46a}.battle-review .review-entry.enemy .review-control{color:#e08a8a}.battle-review .review-full-log{border-top:1px solid #ffffff2e;min-width:0;margin-top:.6rem;padding-top:.5rem}.battle-review .review-full-log>button{font-size:.78rem}.battle-review [data-testid=battle-review-log]{min-width:0;max-height:min(45vh,22rem);margin-top:.35rem;padding-right:.2rem;overflow:hidden auto}.battle-review [data-testid=battle-review-log] .review-entry{content-visibility:auto;contain-intrinsic-size:auto 3rem}@font-face{font-family:"Press Start 2P";src:url(/fonts/press-start-2p.ttf)format("truetype");font-display:swap;font-weight:400}.app{--paper:#e8e4d8;--ink:#181410;--border:#2a2a2a;color:var(--ink);image-rendering:pixelated;background:#78c8ee url(/reference/background.png) 50%/cover no-repeat fixed;font-family:"Press Start 2P",monospace;font-weight:400}.app img{image-rendering:pixelated}.app .portrait{object-fit:contain}.app .portrait.shiny{filter:drop-shadow(0 0 7px gold)}.app .panel,.app button{border-radius:0}.app button{font-weight:400}.app .selection-screen{position:relative}.app .selection-screen>.back{margin:0;font-size:9px;position:absolute;top:16px;left:16px}.app.screen-starter .selection-screen,.app.screen-trainer .selection-screen{flex-direction:column;justify-content:center;align-items:center;gap:56px;width:100%;max-width:900px;padding:70px 16px;display:flex}.app.screen-starter h1,.app.screen-trainer h1{text-shadow:none;color:gold;margin:0;font-size:16px;line-height:1.6}.app .choice-row{align-items:stretch;gap:12px;width:100%;max-width:564px;margin:0 auto}.app .creature-card{text-align:center;background:#e8e4d8;border:2px solid #2a2a2a;border-radius:0;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:16px;font-size:8px;font-weight:400;display:flex;position:relative;box-shadow:3px 3px #454545}.app .creature-card>.portrait{filter:drop-shadow(0 2px 8px #c898204d);flex:none;width:96px;height:96px;margin:0}.app .creature-card>.portrait.shiny{filter:drop-shadow(0 0 8px gold)}.app .creature-card .creature-name{font-size:9px;font-weight:400;line-height:9px}.app .creature-card .level{color:#504c3c;margin:0;font-size:8px;line-height:8px}.app .types{gap:4px;min-height:0;margin:0}.app .types>span{color:#101010;text-shadow:none;box-shadow:none;text-transform:uppercase;border-radius:0;padding:4px 5px;font-size:6px;line-height:6px}.app .creature-card .stat-grid{flex-direction:column;gap:3px;width:100%;padding:0;display:flex}.app .creature-card .card-stat{color:#8b8b7d;grid-template-columns:26px minmax(0,1fr) 27px;align-items:center;gap:3px;height:6px;padding:0;font-size:6px;line-height:6px;display:grid}.app .creature-card .card-stat>span{padding:0;display:block}.app .creature-card .card-stat b{font-size:6px;font-weight:400}.app .card-stat>i{background:#292929;height:5px;display:block}.app .card-stat>i>i{background:#92928a;height:100%;display:block}.app .card-stat:last-child>i>i{background:#d4b04a}.app .creature-card .hp{text-align:left;color:#8b8b7d;width:100%;margin:4px 0 0;font-size:8px;line-height:8px}.app .hp-track{background:#45453d;border:2px solid #252525;border-radius:0}.app .hp-track>span{background:#00df42;box-shadow:inset 0 -2px #009b39}.app .creature-card .hp-track{height:11px;margin:0 0 2px}.app .creature-card .hp>span{font-size:7px;line-height:7px;display:block}.app .creature-card .move{border:1px solid #2a2a2a;flex-direction:column;justify-content:center;gap:5px;width:100%;height:56px;min-height:56px;margin-top:6px;padding:7px 5px;display:flex}.app .creature-card .move>b{overflow-wrap:anywhere;font-size:7px;font-weight:400;line-height:10px}.app .move-meta{flex-wrap:wrap;justify-content:center;align-items:center;gap:3px;display:flex}.app .move-meta img{object-fit:contain;width:28px;height:14px}.app .move-meta span{color:#181410;text-transform:uppercase;white-space:nowrap;background:#d8d4c6;padding:3px 4px;font-size:5px;line-height:8px}.app .choice-row .creature-card>button{color:#0000;width:100%;height:100%;box-shadow:none;background:0 0;border:0;margin:0;padding:0;font-size:0;position:absolute;inset:0}.app .choice-row .creature-card>button:hover,.app .choice-row .creature-card>button:active{filter:none;transform:none}:is(.app .choice-row .creature-card:has(>button:hover),.app .choice-row .creature-card:has(>button:focus-visible)){border-color:#c89820;box-shadow:3px 3px #454545,0 0 16px #c8982055}.app .choice-row .creature-card>button:focus-visible{outline-offset:3px;outline:3px solid gold}.app .trainer-row{gap:16px;margin:0}.app .trainer-card{place-items:center;gap:16px;width:170px;padding:24px}.app .trainer-art{object-fit:contain;width:80px;height:80px}.app .trainer-card strong{font-size:10px}.app .encounter-screen{justify-content:center;gap:18px;padding:50px 16px}.app .encounter-screen h1{color:gold;text-shadow:none;font-size:16px}.app .encounter-screen>p{font-size:8px}.app .encounter-screen>.skip{font-size:9px}.app .team-panel h2,.app .bag-panel h2{font-size:7px}.app .map-layout .team-panel h2,.app .map-layout .bag-panel h2{font-size:7px;line-height:1.5}.app .map-layout .team-panel h2>span{font-size:6px}.app .map-layout .bag-panel details{font-size:7px}.app .map-layout .badges>span{letter-spacing:3px;white-space:nowrap;font-family:Arial,sans-serif;font-size:20px}.app .team-panel .team-member>.portrait{width:40px;height:40px;margin:0 auto 5px}.app .team-panel .team-member>strong,.app .team-panel .team-member>span:not(.position),.app .team-panel .hp{font-size:6px}.app .team-panel .team-hint{font-size:6px;line-height:1.6}.app .map-layout .map-footer{font-size:7px;line-height:1.6}.app .map-layout .map-footer>span{font-size:6px}.app .detail-dialog .creature-card{width:100%;max-width:210px;box-shadow:none;border:0;margin:auto}.app .detail-dialog .close,.app .swap-buttons button{font-size:8px}.app .battle-screen{max-width:760px;padding-top:35px}.app .battle-header h1{text-shadow:none;font-size:14px;line-height:1.6}.app .battle-header button{font-size:8px}.app .battle-side{box-shadow:none;background:0 0;border:0;padding:12px}.app .battle-side:is(.player,.enemy){background:0 0}.app .battle-side>h2{color:#3f493e;font-size:8px}.app .battler{background:#86c685 url(/reference/battle-bg.png) bottom/cover no-repeat;border:2px solid #2a2a2a;border-radius:0;padding:10px 8px}.app .battler.active{border-color:#ffe071;box-shadow:0 0 0 2px #ffe07188}.app .battler header{color:#fff;text-shadow:1px 1px #222,-1px -1px #222;font-size:8px;line-height:1.6}.app .battler header>span{font-size:7px}.app .battler .portrait{width:96px;height:96px;margin:4px auto}.app .battle-side.player .portrait{scale:-1 1}.app .battler .hp{font-size:7px}.app .damage{font-size:10px}.app .battle-message{font-size:9px;line-height:1.8}.app .result-actions>button{font-size:10px}.app .local-note{font-size:8px;line-height:1.8}.app .story-screen>header>button{flex-shrink:0;font-size:9px}.app .story-screen .logo.small{font-size:26px}@media (width<=600px){.app.screen-starter .selection-screen,.app.screen-trainer .selection-screen{gap:28px;padding:60px 12px}.app.screen-starter h1,.app.screen-trainer h1{font-size:11px}.app .choice-row{gap:8px;max-width:420px}.app .choice-row .creature-card{gap:7px;padding:8px 5px}.app .choice-row .portrait{width:68px;height:68px}.app .choice-row .creature-name{font-size:7px;line-height:10px}.app .choice-row .level{font-size:7px;line-height:8px}.app .choice-row .types{gap:2px}.app .choice-row .types>span{padding:3px 2px;font-size:5px}.app .choice-row .card-stat{grid-template-columns:22px minmax(0,1fr) 25px;gap:2px}.app .choice-row .hp>span{font-size:6px}.app .choice-row .move{height:62px;min-height:62px;padding:4px 2px}.app .choice-row .move>b{font-size:6px;line-height:9px}.app .choice-row .move-meta{gap:2px}.app .choice-row .move-meta img{width:24px;height:12px}.app .choice-row .move-meta span{padding:1px 3px;font-size:5px}.app .trainer-card{width:140px}.app .encounter-screen h1{font-size:12px}.app .encounter-screen>p{font-size:7px}.app .map-layout .map-footer{font-size:6px;line-height:1.5}.app .map-layout .map-footer>span{font-size:5px}.app .map-layout .team-member{flex-basis:86px}.app .battle-screen{padding:15px 7px}.app .battle-side{padding:4px 0}.app .battle-header h1{font-size:10px}.app .battle-header button{padding:7px 5px;font-size:7px}.app .battler header{font-size:7px}.app .battle-message{font-size:8px}}.app .region-card.johto{background:linear-gradient(90deg,#e8e4d8ed,#e8e4d898),url(/reference/johto/region.jpg) 50%/cover}.app .region-card.hoenn{background:linear-gradient(90deg,#e8e4d8ed,#e8e4d898),url(/reference/hoenn/region.jpg) 50%/cover}.app .region-card.sinnoh{background:linear-gradient(90deg,#e8e4d8ed,#e8e4d898),url(/reference/sinnoh/region.jpg) 50%/cover}.sinnoh-powers{gap:10px;margin:18px 0;display:grid}.sinnoh-powers button{text-align:left;align-items:center;gap:10px;margin:0;display:flex}.sinnoh-powers img{width:48px;height:48px;image-rendering:pixelated}.sinnoh-powers strong,.sinnoh-powers small{display:block}.sinnoh-powers small{margin-top:6px;font-size:8px;line-height:1.7}.battle-stages{flex-wrap:wrap;justify-content:center;gap:4px;margin-top:8px;display:flex}.battle-stages>span{padding:4px 3px;font-size:7px;line-height:1.5}.battle-stages .raised{color:#164624;background:#c4e5b7}.battle-stages .lowered{color:#752324;background:#f3c4bd}.creature-ability{color:#463960;margin:7px 0;font-size:8px;line-height:1.6}.creature-ability small{margin-top:4px;font-size:7px;line-height:1.7;display:block}.battle-status{flex-wrap:wrap;justify-content:center;gap:5px;font-size:8px;display:flex}.battle-status span{color:#482552;background:#e0c9ef;padding:4px}.weather-label{text-align:center;background:var(--paper);border:2px solid var(--border);padding:8px;font-size:10px;line-height:1.6}.weather-overlay{z-index:2;pointer-events:none;opacity:.4;position:absolute;inset:0;overflow:hidden}.weather-overlay:before{content:"";animation:2s linear infinite weather-drift;position:absolute;inset:-90px}.weather-rain:before{background:repeating-linear-gradient(112deg,#0000 0 40px,#72b5db99 40px 42px,#0000 42px 80px)}.weather-sandstorm:before{background:radial-gradient(#c8a97788 1px,#0000 3px) 0 0/22px 17px}.weather-hail:before{background:radial-gradient(circle,#dff5fc 2px,#0000 3px) 0 0/42px 36px}.weather-sun{background:linear-gradient(135deg,#f8df7770,#0000 65%)}.weather-sun:before{animation:none}.weather-overlay[data-paused=true]:before{animation-play-state:paused}@keyframes weather-drift{to{transform:translate(-40px,80px)}}@media (prefers-reduced-motion:reduce){.weather-overlay:before{animation:none}}.dark-mode .creature-ability{color:#d2bddf}.pickup-item{text-align:center;max-width:400px;margin:12px auto;padding:16px}.pickup-item img{image-rendering:pixelated}.pickup-item p{font-size:9px;line-height:1.7}.app .region-card.unova{background:linear-gradient(90deg,#e8e4d8ed,#e8e4d898),url(/reference/unova/region.jpg) 50%/cover}.hidden-ability-label{color:#57417b;font-size:7px;line-height:1.8;display:block}.evolution-presentation{text-align:center;width:100%;margin:4px auto 12px;position:relative}.evolution-scene{background:#172126;border:2px solid #313c38;place-items:center;height:128px;display:grid;position:relative;overflow:hidden}.evolution-scene .portrait{z-index:2;position:relative;width:96px!important;height:96px!important;margin:0!important}.evolution-presentation.silhouette .portrait{filter:brightness(0)invert()}.evolution-halo{background:radial-gradient(circle,#fffaad 0,#7cdcec 36%,#0000 70%);border-radius:50%;width:120px;height:120px;position:absolute}.evolution-sparkles{width:200px;height:120px;position:absolute}.app .skip-evolution-animation{min-height:32px;margin:8px 0 0;padding:7px;font-size:7px;position:relative}.evolution-presentation.revealed .evolution-scene{background:#274940}.evolution-presentation.reduced-motion .evolution-scene .portrait{filter:none}@media (width<=600px){.evolution-scene{height:112px}}.challenge-select{width:min(720px,100%);margin:0 auto;padding:18px 12px 40px}.challenge-select>header{align-items:center;gap:12px;margin-bottom:12px;display:flex}.challenge-select h1{font-size:15px}.challenge-intro{text-align:left;margin-bottom:16px;padding:16px}.challenge-intro>strong{color:#be3027}.challenge-intro p{margin-bottom:0;font-size:10px;line-height:1.8}.challenge-mode-card{color:#fff;text-align:left;background:linear-gradient(120deg,#292009,#121009);border:2px solid #eec600;grid-template-columns:82px 1fr auto;align-items:center;gap:18px;width:100%;padding:22px 20px;display:grid}.challenge-mode-card>img{object-fit:contain;width:80px;height:80px;image-rendering:pixelated}.challenge-mode-card strong{margin-bottom:10px;font-size:13px;display:block}.challenge-mode-card small{color:#b7b29b;font-size:10px;line-height:1.8;display:block}.challenge-mode-card>b{color:#f7dc00;white-space:nowrap;font-size:11px}.challenge-passive-screen{text-align:center;width:min(780px,100%);margin:0 auto;padding:62px 16px 32px;position:relative}.challenge-menu{position:absolute;top:8px;left:16px}.challenge-passive-screen header{max-width:560px;margin:16px auto 44px}.challenge-passive-screen h1{color:#ffe00a;text-shadow:1px 2px #7b6826;font-size:17px;line-height:1.8}.challenge-passive-screen header p{color:#514e40;font-size:12px;line-height:1.8}.passive-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px;display:grid}.passive-choice{color:#383528;background:#e9e5d9;border:2px solid #d9b322;flex-direction:column;align-items:center;gap:10px;min-width:0;min-height:176px;padding:22px 12px 16px;display:flex}.passive-icon{object-fit:contain;width:32px;height:32px;image-rendering:pixelated;flex-shrink:0}.passive-choice>strong,.passive-choice>b{color:#856802;font-size:11px;line-height:1.6}.passive-choice>span{font-size:9px;line-height:1.7}.passive-choice>b{margin-top:auto}.passive-choice.locked{opacity:1;color:#37352d;background:#a29f96}.passive-unlock{justify-content:center;align-items:center;gap:9px;font-size:8px;line-height:1.7;display:flex}.passive-lock{background:#c4c9cc;border:2px solid #2b2b2b;width:13px;min-width:13px;height:11px;display:block;position:relative}.passive-lock:before{content:"";border:2px solid #2b2b2b;border-bottom:0;border-radius:5px 5px 0 0;width:7px;height:7px;position:absolute;top:-8px;left:1px}.passive-skip{color:#e8e5d5;text-transform:uppercase;background:#262625;margin:20px auto 32px;font-size:10px}.challenge-party-preview{flex-wrap:wrap;justify-content:center;gap:18px;display:flex}.challenge-party-preview>div{flex-direction:column;align-items:center;gap:6px;font-size:9px;line-height:1.7;display:flex}.challenge-party-preview strong{font-size:9px}.passive-inventory{text-align:left;margin-top:16px}.passive-inventory h2{font-size:11px;line-height:1.7}.passive-inventory h2 span{float:right}.passive-inventory>p,.passive-inventory details p{font-size:9px;line-height:1.8}.passive-inventory details{border-bottom:1px solid #b5ad95;margin:6px 0;padding-bottom:5px}.passive-inventory summary{cursor:pointer;align-items:center;gap:7px;min-height:40px;font-size:9px;line-height:1.6;display:flex}.passive-inventory summary small{display:block}.passive-disabled{opacity:.6}.passives-toggle{display:none}.passives-dialog{width:min(440px,100vw - 24px);max-height:calc(100dvh - 24px);padding:14px;overflow-y:auto}@media (width>=601px) and (width<=768px){.app .map-layout .bag-panel:has(>.passives-toggle){gap:15px;display:flex}.app .map-layout .bag-panel:has(>.passives-toggle)>details{flex:1}}@media (width<=768px){.app .map-layout .bag-panel>.passive-inventory{display:none}.app .map-layout .passives-toggle{min-height:24px;box-shadow:none;margin-top:-4px;margin-left:8px;padding:2px 9px;font-size:8px;display:block}}.intro-result{text-align:center;color:#ebe6d4;background:#17150e;border:2px solid #d9b322;max-width:720px;margin:24px auto;padding:24px}.intro-result h1{color:#ffe00a;font-size:20px;line-height:1.7}.intro-result header p{font-size:11px;line-height:1.8}.intro-score{gap:12px;margin:25px 0;display:grid}.intro-score>span{color:#b6ac79;font-size:10px}.intro-score strong{color:#ffe00a;font-size:28px}.intro-mvp{margin:25px 0}.intro-mvp h2{color:#ffe00a;font-size:15px}.intro-mvp>strong{display:block}.intro-mvp p{font-size:10px;line-height:1.8}.intro-run-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:24px 0;display:grid}.intro-run-stats>div{border-bottom:1px solid #3d3927;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;font-size:9px;line-height:1.8;display:flex}.intro-run-stats dd{color:#f2da55;overflow-wrap:anywhere;margin:0}.intro-result-actions{flex-wrap:wrap;justify-content:center;gap:12px;margin-top:30px;display:flex}@media (width<=600px){.challenge-mode-card{grid-template-columns:58px 1fr;gap:12px;padding:14px}.challenge-mode-card>img{width:58px;height:70px}.challenge-mode-card>b{grid-column:2}.challenge-mode-card small{font-size:9px}.challenge-passive-screen{padding:58px 10px 24px}.challenge-passive-screen header{margin:12px auto 24px}.challenge-passive-screen h1{font-size:13px}.challenge-passive-screen header p{font-size:10px}.passive-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.passive-choice{padding:14px 8px}.passive-choice>strong,.passive-choice>b{font-size:9px}.passive-choice>span{font-size:8px}.intro-result{margin:18px 8px;padding:16px 12px}.intro-result h1{font-size:17px}.intro-run-stats{grid-template-columns:1fr}}.challenge-weekly-card{align-items:start}.weekly-badge{color:#f7dc00;letter-spacing:2px;background:#1b1607;border:2px solid #eec600;justify-content:center;align-items:center;width:80px;height:80px;font-size:20px;display:flex}.weekly-right{flex-direction:column;align-items:flex-end;gap:10px;display:flex}.weekly-subs{flex-direction:column;gap:6px;display:flex}.weekly-sub{text-align:left;color:#383528;background:#e9e5d9;border:2px solid #d9b322;min-width:190px;padding:7px 12px;font-size:10px;line-height:1.5}.weekly-sub.done{color:#14531f;background:#dff0d8;border-color:#1c7a2c}.weekly-sub.locked{color:#37352d;background:#a29f96;border-color:#7b766a}.weekly-sub:disabled{cursor:not-allowed}@media (width<=700px){.challenge-weekly-card{grid-template-columns:58px 1fr}.weekly-badge{width:58px;height:58px;font-size:14px}.weekly-right{grid-column:2;align-items:stretch}.weekly-sub{min-width:0}}.app .tm-offer-cards>.tm-card{text-align:center;flex-direction:column;align-items:center;gap:8px;display:flex}.tm-card .tm-detail{font-size:7px;line-height:1.8}.tm-card .tm-rarity{letter-spacing:.5px;text-transform:uppercase;border:1px solid;margin-top:auto;padding:2px 7px;font-size:7px;line-height:1.5}.tm-card.tm-common{color:#383528;background:#e9e5d9;border-color:#a49c84}.tm-card.tm-rare{color:#1d3a57;background:#dfe8f2;border-color:#2f5d8a}.tm-card.tm-legendary{color:#6b4f06;background:#f4e9c8;border-color:#8a6a12}.tm-card.selected{color:#6d1c16;background:#f6ded9;border-color:#be3027}.tm-target-types{font-size:6px;line-height:1.6}@media (width<=600px){.tm-card .tm-detail,.tm-card .tm-rarity{font-size:6px}}.challenge-endless2-card{align-items:center}.endless2-badge{color:#f7dc00;background:#1b1607;border:2px solid #eec600;justify-content:center;align-items:center;width:80px;height:80px;font-size:34px;line-height:1;display:flex}.challenge-endless2-card .endless2-resume{color:#9ad46b}.endless2-board-dialog{width:min(560px,100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;overflow-y:auto}.endless2-board{text-align:left}.endless2-board header h2{font-size:14px;line-height:1.6}.endless2-board header p{color:#6b6754;font-size:9px;line-height:1.8}.endless2-markers{gap:8px;margin:14px 0 0;padding:0;list-style:none;display:grid}.endless2-marker{color:#383528;background:#e9e5d9;border:2px solid #b5ad95;grid-template-columns:16px 1fr auto auto;align-items:center;gap:10px;padding:9px 12px;font-size:10px;display:grid}.endless2-marker.champion{color:#6b4f06;background:#f4e9c8;border-color:#8a6a12}.endless2-marker.done{color:#14531f;background:#dff0d8;border-color:#1c7a2c}.endless2-marker.current{color:#6d1c16;background:#f6ded9;border-color:#be3027}.endless2-marker-dot{background:0 0;border:2px solid;width:10px;height:10px}.endless2-marker.done .endless2-marker-dot{background:currentColor}.endless2-marker small{font-size:8px}.endless2-marker b,.endless2-marker em{letter-spacing:.5px;font-size:7px}.endless2-marker-state{text-transform:uppercase;font-size:8px}@media (width<=600px){.challenge-endless2-card{grid-template-columns:58px 1fr}.endless2-badge{width:58px;height:58px;font-size:24px}.endless2-marker{grid-template-columns:14px 1fr}}.title-pokechain-wrap{width:min(430px,100%)}.title-pokechain-card{text-align:left;background:#f0e2bd;border:3px solid #6d5a3c;border-radius:5px;align-items:center;gap:10px;width:100%;padding:10px 12px;display:flex;box-shadow:3px 4px #332e3370}.title-pokechain-card--done{background:#dfe9c6;border-color:#52703f}.title-pokechain-icon img{width:42px;height:42px;display:block}.title-pokechain-text{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.title-pokechain-name{text-transform:uppercase;letter-spacing:.5px;font-size:16px;font-weight:900}.title-pokechain-sub{color:#6d5f45;font-size:10px;line-height:1.35}.title-pokechain-meta{text-align:right;flex-direction:column;align-items:flex-end;gap:3px;font-size:10px;display:flex}.title-pokechain-streak,.title-pokechain-shield{color:#7a4a12;font-size:10px}.title-pokechain-shield.is-used{color:#9a3b2c}.title-pokechain-reward{color:#23639b;font-size:15px;font-weight:900}.title-pokechain-status{white-space:pre-line;font-size:11px}.title-pokechain-next{color:#6d5f45;font-size:9px;display:block}.pokesort-screen{max-width:720px;min-height:100dvh;margin:auto;padding:20px 14px 40px}.pokesort-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.pokesort-header h1{flex:1;margin:10px 0 6px}.pokesort-desc{text-align:center;max-width:520px;margin:0 auto 16px;font-size:12px;line-height:1.5}.pokesort-unavailable{text-align:center;padding:22px;font-size:13px}.pc-wrap{background:var(--paper);border:3px solid var(--border);border-radius:5px;flex-direction:column;gap:12px;padding:14px 10px;display:flex;box-shadow:3px 4px #332e3370}.pc-wrap--practice{border-style:dashed}.pc-chain{justify-content:center;align-items:flex-start;gap:2px;padding:4px 2px 8px;display:flex;overflow-x:auto}.pc-slot{background:#efe0b9;border:2px dashed #a28d63;border-radius:5px;flex-direction:column;flex:1 1 0;align-items:center;gap:2px;min-width:0;max-width:92px;padding:6px 2px;display:flex;position:relative}.pc-slot--dragging{opacity:.4}.pc-slot--drop{background:#dceac0;border-style:solid;border-color:#3d7a3a}.pc-sprite{aspect-ratio:1;width:100%;max-width:52px;height:auto;image-rendering:pixelated;margin:0 auto;display:block}.pc-slot-name{text-align:center;overflow-wrap:anywhere;font-size:10px;line-height:1.2}.pc-chain--solved .pc-slot,.pc-chain--revealed .pc-slot{border-style:solid}.pc-chain--solved .pc-slot{border-color:#4a8a44}.pc-chain--revealed .pc-slot{border-color:#b0574a}.pc-link{outline:none;flex-direction:column;flex:0 0 42px;align-items:center;gap:3px;min-width:0;padding-top:6px;display:flex;position:relative}.pc-link-bridge{background:#9c8a63;border-radius:2px;width:100%;height:3px;display:block}.pc-link--ok .pc-link-bridge{background:#3f9142}.pc-link--bad .pc-link-bridge{background:#b03a2e}.pc-link-chip{align-items:center;height:24px;display:flex}.pc-link-icon{width:22px;height:22px;image-rendering:pixelated}.pc-link-label{text-align:center;overflow-wrap:anywhere;font-size:9px}.pc-link-op{padding-left:2px;font-weight:900}.pc-link-tip{z-index:5;pointer-events:none;background:#fff8e2;border:2px solid #7d6a4a;border-radius:4px;width:190px;padding:8px;font-size:10px;line-height:1.4;display:none;position:absolute;top:100%;left:50%;transform:translate(-50%);box-shadow:2px 3px #332e3370}.pc-link:hover .pc-link-tip,.pc-link:focus-visible .pc-link-tip,.pc-link:focus .pc-link-tip{display:block}.pc-lives{justify-content:center;gap:6px;display:flex}.pc-life{width:22px;height:22px;image-rendering:pixelated}.pc-life--lost{filter:grayscale();opacity:.3}.pc-mode{text-align:center;color:#6b5c40;font-size:11px}.pc-controls{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.pc-controls button{padding:8px 12px;font-size:12px}.pc-status{text-align:center;flex-direction:column;gap:2px;min-height:32px;font-size:11px;line-height:1.5;display:flex}.pc-status-win{color:#2f7030;font-size:14px;font-weight:900}.pc-status-lose{color:#a4352a;font-size:14px;font-weight:900}.pc-status-sub{color:#6b5c40}.pc-history{border-top:1px dashed #a59570;padding-top:8px}.pc-history-title{text-align:center;color:#6b5c40;margin-bottom:6px;font-size:11px}.pc-history-row{justify-content:center;align-items:center;gap:2px;padding:3px 0;display:flex}.pc-history-index{color:#8a7a5c;width:14px;font-size:10px}.pc-history-slot img{width:30px;height:30px;image-rendering:pixelated;display:block}.pc-history-link{text-align:center;width:12px;font-size:11px;font-style:normal}.pc-history-link--ok{color:#2f7030}.pc-history-link--bad{color:#b03a2e}.pc-ghost{z-index:40;pointer-events:none;position:fixed;transform:translate(-50%,-50%)}.pc-ghost img{width:58px;height:58px;image-rendering:pixelated;opacity:.92}@media (width<=430px){.pokesort-screen{padding:12px 6px 30px}.pc-chain{gap:0;overflow-x:visible}.pc-slot{padding:4px 1px}.pc-slot-name{font-size:8px}.pc-link{flex-basis:20px}.pc-link-label{font-size:8px}.pc-link-op{display:block}.pc-link-tip{width:140px}.pc-life{width:18px;height:18px}.pc-history-slot img{width:22px;height:22px}.pc-history-link{width:9px;font-size:9px}.pc-history-index{width:10px;font-size:9px}}.tower-traits{text-align:left;min-width:0;margin-block:14px}.tower-traits h2{margin:0 0 10px;font-size:10px}.tower-trait-list{gap:8px;display:grid}.tower-trait{background:#f2eddd;border:1px solid #a8a18f;padding:6px}.tower-trait:not(.active){color:#605e57;background:#e0dcd0}.tower-trait summary{cursor:pointer;overflow-wrap:anywhere;font-size:8px;line-height:1.6}.tower-trait summary>span:last-child{margin-left:7px}.tower-trait-type{color:#151515;text-shadow:0 1px #ffffff70;padding:2px 5px;display:inline-block}.tower-trait p,.tower-trait-help{overflow-wrap:anywhere;margin:8px 0 2px;font-size:8px;line-height:1.9}.tower-trait-progress{background:#a5a193;height:4px;margin-top:5px}.tower-trait-progress>span{height:100%;display:block}.tower-traits.compact .tower-trait-list{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}.tower-traits.compact{width:100%}.tower-selection{width:min(460px,100%);margin:0 auto;padding:16px 10px 32px}.tower-selection>header{align-items:center;gap:8px;margin-bottom:14px;display:flex}.tower-selection>header>strong{text-align:center;color:#f8d343;background:#292c2b;border:2px solid #72766d;flex:1;padding:14px 8px;font-size:12px}.tower-selection>header>button{min-height:44px;font-size:10px}.tower-intro{margin-bottom:16px;padding:14px}.tower-intro h1{text-align:left;color:#1466ff;margin:0 0 12px;font-size:16px}.tower-intro p{margin:0;font-size:9px;line-height:1.8}.tower-stage-list{gap:12px;display:grid}.tower-stage-card{text-align:left;border-radius:0;grid-template-columns:1fr 1fr;width:100%;min-height:98px;padding:0;display:grid;overflow:hidden}.tower-stage-image{color:#fff;text-shadow:2px 2px #203033;background-position:50%;background-size:cover;flex-direction:column;justify-content:flex-end;min-width:0;padding:14px 10px 8px;display:flex}.tower-stage-image strong{overflow-wrap:anywhere;font-size:18px}.tower-stage-image small{margin-top:6px;font-size:9px}.tower-stage-stats{border-left:2px solid var(--border);flex-direction:column;justify-content:center;gap:10px;padding:12px 10px;font-size:8px;display:flex}.tower-stage-stats>span{justify-content:space-between;gap:5px;display:flex}.tower-stage-lock{align-self:center;padding:12px;font-size:9px;line-height:1.9}.tower-pc-screen{width:min(920px,100%);margin:0 auto;padding:16px 10px 30px}.tower-fallback{margin-bottom:20px}.tower-pc{color:#edf2ff;background:#091326;border:2px solid #6483c4;max-width:650px;margin:0 auto;box-shadow:3px 4px #090e1d}.tower-pc>header{background:linear-gradient(#3d60d1,#233987);justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.tower-pc h1{text-align:left;text-shadow:none;margin:0 0 9px;font-size:13px;line-height:1.6}.tower-pc header p{margin:0;font-size:8px}.tower-pc button{color:#eff3ff;background:#1d2e50;border-color:#748bbe;border-radius:0;min-height:34px;padding:8px;font-size:8px;box-shadow:2px 2px #364a71}.tower-pc button[aria-pressed=true]{background:#35518d;border-color:#adc8ff}.tower-pc-controls{border-bottom:1px solid #576ee4;flex-wrap:wrap;gap:7px;padding:12px;display:flex}.tower-pc-controls label{flex:1;min-width:150px}.tower-pc input{box-sizing:border-box;color:#fff;width:100%;min-height:35px;font:inherit;background:#1b293d;border:2px solid #748bbe;padding:8px;font-size:9px}.tower-pc input::placeholder{color:#a8bbd9;opacity:1}.tower-pc input:focus-visible{outline-offset:2px;outline:3px solid #ffd34e}.tower-pc-scopes{border-bottom:1px solid #576ee4;flex-wrap:wrap;gap:6px;padding:10px 12px;display:flex}.tower-pc-scopes button{min-height:32px;font-size:7px}.tower-pc-grid{grid-template-columns:repeat(auto-fill,minmax(95px,1fr));align-content:start;gap:10px;min-height:360px;padding:14px;display:grid}.tower-pc .tower-pc-card{min-width:0;box-shadow:none;background:#1a2a4c;border:2px solid #344a7d;flex-direction:column;justify-content:start;align-items:center;padding:8px 4px;display:flex;position:relative}.tower-pc-card .portrait{object-fit:contain;width:60px;height:60px;margin:3px auto 7px}.tower-pc-card strong{text-align:center;overflow-wrap:anywhere;font-size:7px;line-height:1.8}.tower-pc-types{flex-wrap:wrap;justify-content:center;gap:3px;margin-top:6px;display:flex}.tower-pc-types>span{color:#111;padding:2px;font-size:6px}.tower-pc-shiny{color:#69b7ff;position:absolute;top:3px;left:5px}.tower-pc-card.missing{opacity:.55}.tower-pc-card.missing .portrait{filter:grayscale()}.tower-pc-empty{grid-column:1/-1;font-size:10px;line-height:1.9}.tower-pc-preview{color:#f2f4ff;background:#111d3a;border:2px solid #718bb8;max-width:650px;margin:14px auto 0;padding:12px}.tower-pc-preview h2{font-size:10px}.tower-upcoming{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.tower-upcoming>button{min-width:0;color:inherit;box-shadow:none;background:#1d2e50;border-color:#748bbe;padding:9px 4px;font-size:8px;line-height:1.9}.tower-upcoming strong,.tower-upcoming span{overflow-wrap:anywhere;display:block}@media (width<=700px){.tower-traits.compact .tower-trait-list{grid-template-columns:repeat(2,minmax(0,1fr))}.tower-trait summary{min-height:28px}.tower-pc-controls label{flex-basis:100%}.tower-pc-controls>button{flex:1;min-height:40px}.tower-pc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:300px;padding:10px}.tower-pc>header{padding:11px}.tower-pc>header>button{flex-shrink:0;min-height:40px}}.tower-pc .visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.story-tower-entry{width:100%;margin-top:20px}.tower-boss-preview{width:min(940px,100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}.tower-preview-types small{color:#111;margin:3px;padding:2px 4px;font-size:7px;display:inline-block}.tower-traits-toggle{display:none}.tower-traits-dialog{width:min(440px,100vw - 24px);max-height:calc(100dvh - 24px);padding:14px;overflow-y:auto}@media (width<=768px){.app .map-layout .tower-bag-traits{display:none}.app .map-layout .tower-traits-toggle{min-height:24px;box-shadow:none;margin-top:-4px;margin-left:auto;padding:2px 9px;font-size:8px;display:block}}.app .choice-row .creature-card>button.tower-reroll{z-index:1;border:1px solid var(--border);width:100%;height:auto;min-height:36px;color:var(--ink);background:var(--paper);margin-top:6px;padding:8px 4px;font-size:8px;line-height:1.6;position:relative;inset:auto}@media (width<=600px){.battle-screen .tower-traits.compact .tower-trait-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))}}.app dialog.modal-panel{max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);color:inherit;margin:auto;position:fixed;overflow:auto}.app dialog.modal-panel::backdrop{background:#15223e99}.app dialog.mega-dialog{color:#54524e;background:#dfdccf;border:2px solid #2a2a2a;border-radius:0;width:520px;padding:0;font-size:10px;line-height:1.6}.mega-header{z-index:1;color:#fff;background:#359536;border-bottom:2px solid #393932;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;display:flex;position:sticky;top:0}.mega-header h1{text-shadow:none;align-items:center;margin:0;font-size:12px;display:flex}.mega-header h1 img{object-fit:contain;width:18px;height:18px;image-rendering:pixelated}.mega-header span{font-size:8px}.mega-header .close{margin:0}.mega-intro{margin:12px 14px;font-size:10px}.mega-tier h2{color:#826800;border-bottom:2px solid #4c493d;justify-content:space-between;gap:6px;margin:14px 0 10px;padding:6px 12px;font-size:8px;display:flex}.mega-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 12px 12px;display:grid}.mega-card{min-width:0;box-shadow:none;color:#54524e;background:#ebe9e1;border:2px solid #aaa;border-radius:0;padding:6px 4px}.mega-card>div{justify-content:center;align-items:end;display:flex}.mega-form-icon{object-fit:contain;width:64px;height:58px;image-rendering:pixelated}.mega-stone-icon{object-fit:contain;width:22px;height:22px;image-rendering:pixelated;vertical-align:middle}.mega-card strong,.mega-card small{font-size:8px;line-height:1.2;display:block}.mega-card.owned{border:3px solid #d9b522}.mega-card.owned small{color:#886a00}.mega-card.locked img{opacity:.45;filter:grayscale(.75)}.mega-locked-message,.mega-detail{text-align:center;padding:20px 16px}.mega-locked-message>img{object-fit:contain;width:72px;height:72px;image-rendering:pixelated}.mega-detail>.plain{margin-bottom:20px;display:block}.mega-detail h2{line-height:1.7}.mega-preview-stats{text-align:left;grid-template-columns:1fr 1fr;gap:8px;max-width:290px;margin:14px auto;display:grid}.mega-preview-stats>div{display:contents}.mega-preview-stats dd{text-align:right;margin:0}.mega-preview-note,.mega-requirement{font-size:8px}.app .app-tools .mega-menu-button{padding:3px 6px}.mega-menu-button img{object-fit:contain;width:24px;height:24px;image-rendering:pixelated}.tower-pc-stone{margin-top:5px;font-size:7px;line-height:1.5;display:block}.tower-pc-stone img{object-fit:contain;width:20px;height:20px;image-rendering:pixelated;vertical-align:middle}@media (width<=480px){.mega-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 8px 12px}.mega-card>div{position:relative}.mega-card .mega-stone-icon{width:18px;height:18px;position:absolute;bottom:0;right:0}.mega-header{padding:8px}.mega-header h1{font-size:10px}.mega-header .close{padding:6px;font-size:9px}}.vitamin-shelf{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.vitamin-shelf button{flex-direction:column;align-items:center;gap:7px;min-width:0;padding:12px 4px;font-size:8px;line-height:1.7;display:flex}.vitamin-shelf img{object-fit:contain;width:40px;height:40px}.vitamin-shelf span,.vitamin-shelf small{font-size:7px}.vitamin-info,.vitamin-cap{margin:0 0 12px;font-size:8px;line-height:1.8}.vitamin-cap{border-left:3px solid #ba861f;padding:7px 10px}.vitamin-pc{color:#eaf3ff;box-shadow:3px 3px var(--border);background:#091529;border:2px solid #748cb8}.vitamin-toolbar{border-bottom:2px solid #748cb8;gap:8px;padding:10px;display:flex}.vitamin-toolbar button,.vitamin-toolbar input{font:inherit;min-height:36px;font-size:8px}.vitamin-toolbar button{flex:none;padding:6px 8px}.vitamin-toolbar input{color:#eaf3ff;background:#1d2940;border:2px solid #748cb8;flex:1;min-width:0;padding:7px}.vitamin-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:10px;min-height:270px;max-height:45dvh;padding:12px;display:grid;overflow-y:auto}.vitamin-family{color:#eaf3ff;background:#33486e;border:2px solid #92add2;flex-direction:column;justify-content:start;align-items:center;gap:6px;min-width:0;padding:7px 4px;font-size:7px;line-height:1.7;display:flex;position:relative;box-shadow:2px 2px #7b90b3}.vitamin-family .portrait{width:64px;height:64px;margin:0}.vitamin-family strong{overflow-wrap:anywhere;font-size:7px}.vitamin-family:disabled{opacity:.65;color:#eaf3ff}.vitamin-family.done{border-color:#b6a958}.vitamin-types{flex-wrap:wrap;justify-content:center;gap:2px;font-size:5px;display:flex}.vitamin-types>span{color:#fff;padding:1px 3px}.vitamin-shiny{color:#f4d24e;position:absolute;top:4px;right:6px}.vitamin-empty{grid-column:1/-1;font-size:8px;line-height:1.9}.vitamin-confirm p{font-size:10px;line-height:1.9}.vitamin-confirm .confirm-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.vitamin-result-message{border:2px solid #568548;padding:10px;font-size:8px;line-height:1.8}@media (width<=600px){.vitamin-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-height:230px;padding:10px}.vitamin-family{padding:5px 2px;font-size:6px}.vitamin-family strong{font-size:6px}.vitamin-family .portrait{width:58px;height:58px}.vitamin-shelf{gap:7px}.vitamin-shelf button{font-size:7px}}.app dialog.shop-dialog{border:3px solid var(--border);width:560px;padding:0;font-size:9px;line-height:1.7}.shop-header{z-index:2;color:#ffe36c;border-bottom:3px solid var(--border);background:#302207;justify-content:space-between;align-items:start;gap:12px;padding:15px;display:flex;position:sticky;top:0}.shop-header h2{text-align:left;margin:0;font-size:13px;line-height:1.6}.shop-header p{margin:4px 0 0;font-size:8px}.shop-header button{flex:none;min-height:32px;padding:7px;font-size:8px}.shop-body{padding:16px}.shop-wallet{color:#ffe36c;background:#302207;border:2px solid #e7c634;justify-content:space-between;align-items:center;gap:10px;margin:0 0 14px;padding:12px;display:flex}.shop-eggs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.shop-egg{text-align:center;box-shadow:3px 3px var(--border);border:2px solid #5596ec;flex-direction:column;align-items:center;min-width:0;padding:16px 10px;display:flex}.shop-egg.legendary{border-color:#e7c634}.shop-egg img{object-fit:contain;width:80px;height:80px;margin:4px 0 12px}.shop-egg h3{margin:0 0 8px;font-size:10px;line-height:1.7}.shop-egg p{overflow-wrap:anywhere;margin:0 0 10px;font-size:8px;line-height:1.8}.shop-egg button{max-width:100%;min-height:40px;margin-top:auto;padding:9px;font-size:9px}.shop-section-title{margin:22px 0 5px;font-size:11px;line-height:1.8}.shop-section-help{margin:0 0 12px;font-size:8px}.shop-shards{box-shadow:3px 3px var(--border);border:2px solid #e7c634;flex-wrap:wrap;align-items:center;gap:12px;padding:14px;display:flex}.shop-shard-icon{object-fit:contain;width:30px;height:30px}.shop-shards p{flex:1;min-width:130px;margin:0;font-size:8px}.shop-shards button{min-height:40px;padding:9px;font-size:8px}.shop-save-state{margin:16px 0 0;font-size:8px;line-height:1.8}.shop-error{color:#932a1b;overflow-wrap:anywhere;border:2px solid;padding:10px}.shop-error button{margin-top:10px;font-size:9px;display:block}.shop-voucher-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;display:grid}.shop-voucher-grid button{overflow-wrap:anywhere;flex-direction:column;justify-content:center;align-items:center;gap:6px;min-width:0;padding:7px 3px;font-size:7px;line-height:1.7;display:flex}.shop-voucher-grid .portrait{width:64px;height:64px;margin:0}.shop-reveal{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:280px;display:flex}.shop-reveal .portrait{width:128px;height:128px;margin:0}.shop-reveal h3{margin:0;font-size:14px;line-height:1.8}.shop-reveal p{margin:0}.shop-reveal button{min-height:44px;font-size:10px}.shop-reveal .shop-reveal-egg{object-fit:contain;width:120px;height:120px;animation:.35s steps(2,end) infinite egg-shake}@keyframes egg-shake{0%,to{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}.dark-mode .shop-error{color:#ffb5a6}@media (width<=600px){.app .app-tools{gap:6px}.app .app-tools button{padding:7px 6px;font-size:7px}.app.phase-map .app-tools button{font-size:7px}.app dialog.shop-dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.shop-header{padding:12px}.shop-header h2{font-size:11px}.shop-body{padding:12px}.shop-eggs{gap:9px}.shop-egg{padding:12px 6px}.shop-egg img{width:64px;height:64px}.shop-egg h3{font-size:8px}.shop-egg button{padding:8px 5px;font-size:8px}.shop-egg p{font-size:7px}.shop-voucher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.app.screen-run.phase-map{background:#78c8ee url(/reference/background.png) 50%/cover no-repeat fixed;position:relative}.app .map-layout{--map-height:calc(100dvh - 64px);--map-width:calc(var(--map-height) * 1600 / 2668);grid-template-columns:104px minmax(0, var(--map-width)) 132px;grid-template-areas:"team map bag";justify-content:center;align-items:start;gap:clamp(8px,1vw,20px);max-width:none;height:100dvh;margin:0;padding:16px;display:grid}.app .map-layout .panel{background:#e8e4d8;border:2px solid #2a2a2a;border-radius:0;box-shadow:3px 3px #454545}.app .map-layout .map-panel{height:calc(var(--map-height) + 32px);background:#70c8a0;min-height:0;overflow:visible}.app .map-layout .map-header{z-index:2;background:0 0;border:0;padding:0;position:absolute;top:15px;left:15px}.app .map-layout .map-header>span{display:none}.app .map-layout .map-header button{background:#e8e4d8;border:2px solid #2a2a2a;width:30px;height:30px;padding:0;font-size:0;box-shadow:3px 3px #454545}.app .map-layout .map-header button:after{content:"";background:#2a2a2a;width:12px;height:2px;margin:auto;display:block;box-shadow:0 -4px #2a2a2a,0 4px #2a2a2a}.app .map-layout .route-map{min-height:0;image-rendering:pixelated;isolation:isolate;background:#70c8a0 url(/reference/map/forest.png) 50%/cover no-repeat;flex:1}.app .route-map>.route-connections{pointer-events:none;width:100%;height:calc(100% - 56px);inset:28px 0}.route-unvisited{stroke:#222;stroke-width:1.5px;stroke-dasharray:4 5}.route-next,.route-completed{stroke:#999;stroke-width:2.5px}.app .map-layout .map-node,.app .map-layout .map-node:is(.reachable,.visited,.current,.outside,.boss){width:44px;height:52px;box-shadow:none;isolation:isolate;background:0 0;border:0;border-radius:0;outline:none;padding:0;overflow:visible}.app .map-node .node-art{object-fit:contain;width:40px;height:40px;image-rendering:pixelated;pointer-events:none;opacity:.75;display:block}.app .map-node.item .node-art{width:30px;height:42px}.app .map-node.trainer .node-art{width:38px;height:52px}.app .map-node.boss .node-art{width:52px;height:52px}.app .map-node.start .node-start{color:#eee;text-align:center;opacity:1;background:#2a324b;border:1px solid #555;border-radius:50%;width:36px;height:36px;font:18px/34px monospace}.app .map-node.reachable .node-art,.app .map-node.current .node-art{opacity:1}.app .map-node.visited:not(.start) .node-art{opacity:.72;filter:brightness(.72)}.app .map-node.outside .node-art{opacity:.75}.app .map-layout .map-node.reachable:before{content:"";z-index:-1;opacity:.55;clip-path:polygon(17% 0,83% 0,83% 33%,100% 33%,100% 67%,83% 67%,83% 100%,17% 100%,17% 67%,0 67%,0 33%,17% 33%);background:#fff;width:24px;height:12px;position:absolute;bottom:2px}.app .map-layout .map-node:hover:not(:disabled){filter:brightness(1.1);transform:translate(-50%,-50%)scale(1.12)}.app .map-layout .map-node:focus-visible{outline-offset:1px;outline:2px solid #fff4b6}.app .map-layout .map-node:active:not(:disabled){transform:translate(-50%,-50%)}.app .map-node .node-completion{color:#fff;text-align:center;pointer-events:none;background:#2a324bd9;border-radius:50%;width:22px;height:22px;font:16px/22px monospace;position:absolute;inset:auto}.app .map-node .current-pointer{filter:drop-shadow(0 -1px #495b4f);pointer-events:none;border-top:7px solid #fff6b4;border-left:5px solid #0000;border-right:5px solid #0000;width:0;height:0;position:absolute;top:-6px;left:17px}.app .map-layout .map-footer{color:#514d42;background:#e8e4d8;border:0;border-top:1px solid #2a2a2a;flex-direction:column;flex:0 0 28px;justify-content:center;padding:3px 5px;font-size:6px;line-height:1.5;display:flex}.app .map-layout .map-footer>span{color:#767060;margin:1px 0 0;font-size:5px}.app .map-layout .team-panel,.app .map-layout .bag-panel{max-height:calc(100dvh - 32px);padding:10px;overflow-y:auto}.app .map-layout .team-panel h2,.app .map-layout .bag-panel h2{text-align:left;color:#837e6d;margin:0 0 6px;font-size:8px;line-height:1.4}.app .map-layout .team-panel h2>span{margin-top:3px;font-size:5px;display:block}.app .map-layout .team-list{gap:10px}.app .map-layout .team-member{box-shadow:none;background:0 0;border:0;flex-direction:column;align-items:center;gap:2px;padding:0;display:flex}.app .map-layout .team-member>.portrait{width:50px;height:50px;margin:0}.app .map-layout .team-member>strong{color:#837e6d;text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:7px;font-weight:400;line-height:1.3;overflow:hidden}.app .map-layout .team-member>span:not(.position){color:#a99a33;font-size:7px}.app .map-layout .team-member .position{display:none}.app .map-layout .hp{width:100%;margin:0;font-size:5px;line-height:1.5}.app .map-layout .hp-track{background:#555;border:2px solid #111;border-radius:0;height:9px;margin:0 0 2px}.app .map-layout .hp-track>span{background:#00d34a;box-shadow:inset 0 -2px #0003}.app .map-layout .team-hint{color:#837e6d;margin:8px 0 0;font-size:5px;line-height:1.6}.app .map-layout .bag-panel details{color:#837e6d;font-size:6px;line-height:1.6}.app .map-layout .bag-panel p{font-size:6px}.app .map-layout .badges{margin-top:8px}.app .map-layout .badges h2{margin-bottom:4px}.badge-slots{grid-template-columns:repeat(4,1fr);gap:2px;display:grid}.badge-slots i{border:1px dashed #2a2a2a50;border-radius:50%;width:24px;height:24px;display:block}@media (width>=769px) and (width<=899px){.app .map-layout{--map-height:calc(100dvh - 170px);grid-template:"team bag"110px"map map"minmax(0,1fr)/minmax(0,2fr) minmax(0,1fr);gap:8px}.app .map-layout .map-panel{width:var(--map-width);justify-self:center}.app .map-layout .team-list{flex-direction:row}.app .map-layout .team-member{flex:0 0 80px}.app .map-layout .team-panel,.app .map-layout .bag-panel{height:110px;padding:8px}.app .map-layout .team-panel h2>span{display:inline}.app .map-layout .team-member>.portrait{width:32px;height:32px}.app .map-layout .team-hint{display:none}.app .map-layout .map-header{top:140px;left:auto;right:20px}.badge-slots{grid-template-columns:repeat(8,20px)}.badge-slots i{width:20px;height:20px}}@media (width<=768px){.app .map-layout{--map-height:calc(100dvh - 130px);grid-template:"team"76px"bag"30px"map"minmax(0,1fr)/minmax(0,1fr);gap:6px;min-height:510px;padding:6px}.app .map-layout .map-panel{width:100%;height:100%}.app .map-layout .map-header{top:12px;left:auto;right:12px}.app .map-layout .map-header button{width:28px;height:28px}.app .map-layout .team-panel{height:76px;padding:4px 38px 4px 4px}.app .map-layout .team-panel h2,.app .map-layout .team-hint{display:none}.app .map-layout .team-list{flex-direction:row;gap:3px;overflow-x:auto}.app .map-layout .team-member{flex:1 0 60px}.app .map-layout .team-member>.portrait{width:32px;height:32px}.app .map-layout .team-member>strong,.app .map-layout .team-member>span:not(.position){font-size:6px}.app .map-layout .hp{font-size:5px}.app .map-layout .hp-track{height:7px}.app .map-layout .bag-panel{z-index:1;align-items:flex-start;height:30px;min-height:30px;padding:5px 8px;position:relative;overflow:visible}.app .map-layout .bag-panel h2,.app .map-layout .bag-panel .badges{display:none}.app .map-layout .bag-panel details{font-size:7px}.app .map-layout .bag-panel details[open]{background:#e8e4d8;outline:2px solid #2a2a2a;margin:-5px -8px;padding:5px 8px}.app .map-layout .bag-panel p{margin:7px 0}.app .map-layout .map-footer,.app .map-layout .map-footer>span{font-size:5px}}.app .node-screen,.app .stage-result{text-align:center;width:min(920px,100%);min-height:100dvh;margin:auto;padding:36px 18px}.app .battle-prep{width:min(700px,100%);padding:16px 12px}.battle-prep>header p{margin:6px auto;font-size:7px}.battle-prep>header h1{margin:8px 0;font-size:15px}.prep-teams{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px;margin-top:16px;display:grid}.prep-teams>.panel{grid-area:auto;width:auto;min-width:0;padding:8px}.prep-teams h2{text-align:center;margin:0 0 8px;font-size:8px;line-height:1.6}.prep-teams .team-panel h2>span{display:inline}.prep-teams .team-list,.prep-teams .node-offers{flex-direction:column;gap:5px;margin:0;display:flex;overflow:visible}.app .prep-teams .team-member,.app .prep-opponent{text-align:center;width:100%;min-width:0;min-height:59px;box-shadow:none;border:1px solid #a49c84;flex:none;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"sprite name""sprite level""sprite hp";align-items:center;gap:2px 4px;padding:5px;display:grid;position:relative}.prep-teams button>.portrait{grid-area:sprite;width:40px;height:40px;margin:0}.prep-teams button>strong{overflow-wrap:anywhere;grid-area:name;font-size:6px;line-height:1.5}.prep-teams button>span:not(.position){grid-area:level;font-size:6px}.prep-teams button>.hp{grid-area:hp;margin:0;font-size:5px}.prep-teams .hp-track{height:5px;margin-bottom:2px}.prep-teams .position{font-size:5px;position:absolute;top:2px;left:3px}.prep-teams .team-hint{display:none}.app .battle-prep>.bag-panel{margin:12px auto;padding:8px}.battle-prep .bag-panel>h2,.battle-prep .bag-panel summary{font-size:8px}.app .battle-prep>.node-options{margin:12px auto 0}.app .battle-prep>.node-options>button{min-height:44px;padding:10px}.app .growth-dialog{text-align:center;width:460px;padding:20px}.growth-dialog h2{color:#30602e;margin:8px 0 16px;font-size:15px}.growth-dialog p,.save-conflict p{overflow-wrap:anywhere;font-size:8px;line-height:1.9}.growth-dialog section+section{border-top:1px dashed #a49c84;margin-top:14px;padding-top:12px}.evolution-portraits{justify-content:center;align-items:center;gap:10px;display:flex}.evolution-portraits .portrait{width:80px;height:80px;margin:0}.growth-dialog>button{min-height:44px;margin-top:16px;font-size:9px}.growth-dialog>button:hover:not(:disabled){transform:none}.save-conflict h2{font-size:13px;line-height:1.7}.node-screen>header p,.stage-result>p{max-width:680px;margin:12px auto;font-size:9px;line-height:1.8}.node-screen h1,.stage-result h1{color:#ffdf5c;text-shadow:2px 2px #2a3b37;font-size:18px;line-height:1.7}.node-options{flex-wrap:wrap;justify-content:center;gap:12px;margin:24px auto;display:flex}.app .node-options>button{flex:180px;align-content:center;gap:12px;max-width:260px;min-height:100px;padding:18px 12px;display:grid}.node-options strong{font-size:9px;line-height:1.6}.node-options span{font-size:7px;line-height:1.8}.node-offers{flex-wrap:wrap;justify-content:center;gap:12px;margin:20px auto;display:flex}.node-offers>article{flex:0 180px}.node-screen>.bag-panel{text-align:left;width:min(600px,100%);margin:20px auto;padding:14px}.node-screen .bag-item{align-items:center;gap:8px;font-size:8px;display:flex}.node-screen .bag-panel summary{padding:8px;font-size:9px}.node-screen .badge-slots{gap:12px;display:flex}.node-screen .badge-slots i{border:1px dashed #aaa;border-radius:50%;width:20px;height:20px}.app .node-screen>.team-panel{width:min(600px,100%);margin:24px auto;padding:12px}.node-screen>.team-panel .team-list{flex-direction:row;overflow-x:auto}.node-screen>.team-panel .team-member{flex:1 0 80px}.node-screen>.team-panel .team-hint{display:none}.node-targets{background:#e8e4d8;border:2px solid #2a2a2a;margin:16px 0;padding:16px}.node-targets h2{font-size:10px;line-height:1.6}.target-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.app .target-list>button{flex-direction:column;align-items:center;gap:6px;min-width:0;padding:8px;font-size:7px;line-height:1.6;display:flex}.app .target-list .portrait{width:64px;height:64px;margin:0}.target-list .hp{width:100%;font-size:6px}.target-list small{overflow-wrap:anywhere;font-size:6px}.target-list>button:disabled{opacity:.45}.node-skip{font-size:9px}.app .held-item{font-size:6px;line-height:1.7}.held-controls{border-top:1px dashed #8b826e;margin-top:16px;padding-top:12px}.held-controls h2{font-size:9px}.held-controls p{font-size:7px;line-height:1.7}.held-controls button{margin:4px;font-size:7px}.formation-controls{margin-top:12px;font-size:8px}.formation-controls button{width:100%;margin:6px 0 0;font-size:8px}.app .item-dialog{width:560px;padding:18px}.item-dialog h2{text-align:center;margin:15px 0;font-size:11px}.item-dialog>p{font-size:8px;line-height:1.8}.app .bag-items{gap:5px;padding:6px 0;display:grid}.app .map-layout .bag-item{box-shadow:none;text-align:left;border:1px solid #aaa08b;align-items:center;gap:5px;padding:3px;font-size:6px;line-height:1.6;display:flex}.bag-item img{object-fit:contain;width:24px;height:24px}.app .map-layout .bag-item>span{overflow-wrap:anywhere;min-width:0}.app .map-layout .bag-item img{flex-shrink:0}.badge-slots>img{object-fit:contain;width:24px;height:24px}.earned-badge{width:80px;height:80px;image-rendering:pixelated;margin:16px}.final-team{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:650px;margin:24px auto;display:grid}.stage-result>button{margin:10px;font-size:10px}.stage-result>button:hover:not(:disabled){transform:none}.app .battler .healing{color:#124629;background:#b2ef9b;padding:5px;font-size:12px;position:absolute;top:10px;right:0}.app .battle-side{flex-direction:column;display:flex}.app .battle-side>h2{order:-1}.app .battler{order:1}.app .battler.active{order:0}.app .battler:not(.active){grid-template-columns:40px minmax(0,1fr);grid-template-areas:"portrait name""portrait hp";gap:1px 7px;margin-bottom:5px;padding:5px;display:grid}.app .battler:not(.active) header{grid-area:name;font-size:6px;line-height:1.5}.app .battler:not(.active) header>span{font-size:6px}.app .battler:not(.active) .portrait-stage{grid-area:portrait;align-self:center}.app .battler:not(.active) .portrait{width:40px;height:40px;margin:0}.app .battler:not(.active) .types{display:none}.app .battler:not(.active) .hp{grid-area:hp;margin:0;font-size:6px}.app .battler:not(.active) .hp-track{height:6px;margin-bottom:1px}.app .battler:not(.active) .faint-label{padding:2px 0;font-size:5px}.app .battler:not(.active) .damage,.app .battler:not(.active) .healing{z-index:1;white-space:nowrap;padding:3px;font-size:8px}.mode-help{margin:0 0 18px;font-size:10px;line-height:1.8}.encounter-screen .choice-row.single-offer{grid-template-columns:minmax(0,280px);justify-content:center}.single-offer .creature-name{font-size:15px}.single-offer .stat-grid{font-size:10px}@media (width<=768px){.app .map-layout .bag-panel details[open]{max-height:min(360px,60dvh);overflow-y:auto}.app .map-layout .bag-item{padding:5px;font-size:8px}.app .bag-items{grid-template-columns:repeat(2,minmax(0,1fr))}.app .map-layout .bag-items{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}.app .node-screen,.app .stage-result{padding:20px 8px}.node-screen h1,.stage-result h1{font-size:14px}.node-screen>header p,.stage-result>p{font-size:7px}.app .node-options>button{flex-basis:140px;min-height:85px}.target-list{grid-template-columns:repeat(2,minmax(0,1fr))}.final-team{gap:6px}.app .final-team .creature-card{padding:8px 4px}.app .final-team .portrait{width:72px;height:72px}.app .final-team .creature-name{font-size:7px;line-height:1.5}.app .final-team .hp,.app .final-team .level{font-size:6px}}.app .records-dialog{text-align:left;width:min(900px,100vw - 28px);max-width:none;padding:20px}.app .records-dialog>h2{margin:12px 0;font-size:17px}.app .records-dialog>.close{z-index:2;min-height:38px;margin-left:auto;display:block;position:sticky;top:0}.app .records-wallet{overflow-wrap:anywhere;min-width:0;font-size:12px;line-height:1.8}.app .records-save-state,.app .records-import-note{overflow-wrap:anywhere;font-size:9px;line-height:1.8}.app .records-tabs{flex-wrap:wrap;gap:7px;margin:18px 0;display:flex}.app .records-tabs>button{flex:1;min-height:42px;padding:9px 7px;font-size:9px;line-height:1.5}.app .records-tabs>button[aria-pressed=true]{background:#ffe899;border-color:#8b6518}html.dark-mode .app .records-tabs>button[aria-pressed=true]{background:#4d3b1c;border-color:#d6b25e}@media (width<=600px){.app .records-dialog{width:calc(100vw - 20px);padding:12px}.app .records-tabs{gap:5px}.app .records-tabs>button{font-size:7px}.app .records-dialog>h2{font-size:13px}}:root{color:#302923;font-synthesis:none;--paper:#f3e7cb;--ink:#493e34;--border:#5a4c3d;background:#7aa6d9;font-family:Courier New,monospace;font-weight:600}*{box-sizing:border-box}body{background:linear-gradient(#709bd3 0%,#a8cdeb 68%,#90b678 68%,#779f60 86%,#b5ad7b 86%) fixed;min-width:320px;min-height:100vh;margin:0}button,summary{font:inherit}button{cursor:pointer;border:2px solid var(--border);background:var(--paper);color:var(--ink);border-radius:3px;padding:10px 15px;line-height:1.25;box-shadow:0 3px #493c3180}button:hover:not(:disabled){filter:brightness(1.07);transform:translateY(-1px)}button:active:not(:disabled){box-shadow:none;transform:translateY(2px)}button:focus-visible,summary:focus-visible{outline-offset:3px;outline:3px solid #ffd34e}button:disabled{cursor:default;opacity:.48}h1{text-align:center;text-shadow:0 2px #ffffff70;margin:16px 0 24px;font-size:24px}h2{margin:0 0 10px;font-size:13px}p{line-height:1.5}button.primary{background:#f7d366;border-color:#78602a}button.plain{box-shadow:none;background:#f3e7cbcc;padding:3px 7px;font-size:12px}.panel,.creature-card{background:var(--paper);border:3px solid var(--border);border-radius:5px;box-shadow:3px 4px #332e3370}.app{min-height:100dvh}.logo{color:#f8d343;text-align:center;letter-spacing:-4px;text-shadow:3px 0 #234b8c,-3px 0 #234b8c,0 3px #234b8c,0 -3px #234b8c,3px 6px #263f65;font-size:clamp(38px,7vw,70px);font-weight:900;line-height:1.05;transform:rotate(-3deg)}.logo span{color:#f8f1d8;letter-spacing:2px;text-shadow:1px 2px #263f65;margin-top:15px;font-size:10px;display:block}.logo.small{letter-spacing:-2px;font-size:32px}.logo.small span{letter-spacing:1px;margin-top:7px;font-size:7px}.menu-screen{flex-direction:column;justify-content:center;align-items:center;gap:45px;min-height:100dvh;padding:30px 16px;display:flex}.menu-buttons{gap:12px;width:min(290px,100%);display:grid}.menu-buttons button{min-height:54px;font-size:20px}.menu-buttons button span{padding-top:6px;font-size:10px;display:block}.local-note{text-align:center;color:#263c35;font-size:11px}.story-screen{max-width:460px;margin:auto;padding:18px 10px 30px}.story-screen>header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.story-intro{text-align:center;padding:20px;font-size:13px;line-height:1.8}.mode-tabs{gap:8px;margin:16px 0;display:flex}.mode-tabs button{flex:1}.mode-tabs .selected{background:#ffdc71}.region-card{text-align:left;background:#9fa998;border:3px solid #566451;flex-direction:column;gap:12px;width:100%;min-height:103px;margin-bottom:13px;padding:18px 22px;display:flex}.region-card strong{font-size:22px}.region-card span{font-size:11px}.region-card.kanto{background:linear-gradient(115deg,#e4d7b0,#aecf81)}.selection-screen{max-width:950px;min-height:100dvh;margin:auto;padding:26px 16px}.back{margin-bottom:25px}.trainer-row{justify-content:center;gap:20px;margin:45px auto;display:flex}.trainer-card{gap:30px;width:170px;padding:25px 15px;display:grid}.trainer-art{color:#b94837;text-shadow:3px 3px #514839;white-space:pre;font-size:42px;line-height:.8;display:block}.trainer-art.girl{color:#d55796}.choice-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;max-width:860px;margin:auto;display:grid}.creature-card{text-align:center;min-width:0;padding:15px 12px}.creature-name{overflow-wrap:anywhere;font-size:17px;font-weight:900}.level{margin:5px 0;font-size:12px}.portrait{width:110px;height:100px;margin:8px auto;display:block;overflow:visible}.types{flex-wrap:wrap;justify-content:center;gap:4px;margin:5px 0;display:flex}.types span{color:#fff;text-shadow:1px 1px #333;border-radius:3px;padding:3px 6px;font-size:10px;box-shadow:inset 0 -2px #0002}.hp{text-align:center;margin:8px 0 2px;font-size:11px;line-height:1.5}.hp-track{background:#5a4a41;border:1px solid #3f342a;border-radius:3px;height:9px;margin-bottom:3px;overflow:hidden}.hp-track>span{background:#64bb60;height:100%;transition:width .22s linear;display:block}.stat-grid{text-align:left;grid-template-columns:1fr 1fr;gap:7px;padding:12px 0;font-size:11px;display:grid}.stat-grid span{justify-content:space-between;padding:0 6px;display:flex}.move{border-top:1px dashed #a59570;gap:7px;padding:12px 0;font-size:12px;display:grid}.move>span{font-size:10px;line-height:1.4}.creature-card>button{width:100%;min-height:40px;margin-top:10px;padding:9px 5px;font-size:12px}.map-layout{grid-template-columns:112px minmax(0,580px) 138px;grid-template-areas:"team map bag";gap:13px;max-width:880px;height:100dvh;margin:auto;padding:16px 10px;display:grid}.team-panel{grid-area:team;align-self:start;padding:10px 6px}.team-panel h2{text-align:center;font-size:10px;line-height:1.5}.team-panel h2>span{color:#6b6350;font-size:10px;display:block}.team-list{flex-direction:column;gap:7px;display:flex}.team-member{box-shadow:none;background:#e6d6b5;border:2px solid #998668;min-width:0;padding:3px 4px 5px;position:relative}.team-member strong,.team-member>span:not(.position){font-size:10px;display:block}.team-member>.portrait{width:56px;height:50px;margin:4px auto}.team-member .hp{font-size:9px}.team-member .hp-track{height:7px}.team-member .position{color:#847453;font-size:9px;position:absolute;top:1px;left:3px}.team-hint{color:#79694f;text-align:center;margin:10px 0 0;font-size:8px}.map-panel{background:#a8bf79;flex-direction:column;grid-area:map;min-height:0;display:flex;overflow:hidden}.map-header{background:#ede2c3;border-bottom:2px solid #635b43;justify-content:space-between;align-items:center;padding:9px 13px;font-size:14px;display:flex}.route-map{flex:1;min-height:330px;position:relative}.route-map>svg{width:100%;height:100%;position:absolute;inset:0}.map-node{background:#e3d5a9;border:3px solid #5e503d;border-radius:50%;justify-content:center;align-items:center;width:39px;height:39px;padding:0;font-size:23px;display:flex;position:absolute;transform:translate(-50%,-50%);box-shadow:2px 3px #52493970;opacity:1!important}.map-node:hover:not(:disabled){transform:translate(-50%,-50%)scale(1.1)}.map-node:active:not(:disabled){transform:translate(-50%,-50%)}.map-node.reachable{background:#fff2bb;border-color:#ffdf63;outline:3px solid #527d40;box-shadow:0 0 0 5px #dfec98,0 0 18px #ffffa1}.map-node.visited{background:#b6d0b0;border-color:#607862}.map-node.outside{color:#7d825e;box-shadow:none;background:#bac293;border-color:#959972}.map-node.current{background:#e7cf80;border-color:#376a9e}.map-node i{color:#2b67ac;text-shadow:0 1px #fff;font-size:17px;font-style:normal;position:absolute;top:-20px}.map-node.boss{border-radius:7px}.map-footer{text-align:center;background:#f0e7cc;border-top:2px solid #79714d;padding:9px 10px;font-size:11px;line-height:1.4}.map-footer>span{color:#817658;margin-top:4px;font-size:8px;display:block}.bag-panel{grid-area:bag;align-self:start;padding:12px 9px;font-size:11px}.bag-panel summary{cursor:pointer}.bag-panel p{font-size:10px}.badges{margin-top:26px}.badges>span{color:#a59571;letter-spacing:3px;font-size:22px;line-height:1.7}.encounter-screen{flex-direction:column;align-items:center;gap:14px;max-width:930px;min-height:100dvh;margin:auto;padding:24px 18px;display:flex}.encounter-screen h1{margin-bottom:0}.encounter-screen>p{text-align:center;margin:0 0 8px;font-size:13px}.encounter-screen .choice-row{width:100%}.encounter-screen>.team-panel{align-self:center;width:min(600px,100%);margin-top:15px}.encounter-screen .team-list{flex-direction:row;justify-content:center;overflow-x:auto}.encounter-screen .team-member{flex-shrink:0;width:96px}.encounter-screen .team-hint{display:none}.encounter-screen .team-panel h2>span{display:inline}.skip{background:#e2d8c1;min-width:170px}.release-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.battle-screen{max-width:760px;margin:auto;padding:15px 16px 30px}.battle-header{justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;display:flex}.battle-header h1{margin:8px 0;font-size:21px}.battle-header>div{gap:8px;display:flex}.battle-header button{padding:7px 10px;font-size:11px}.battle-columns{grid-template-columns:1fr 1fr;align-items:start;gap:16px;display:grid}.battle-side{background:#263544;border:3px solid #161e2a;border-radius:5px;min-height:360px;padding:12px;box-shadow:3px 4px #25303e77}.battle-side.enemy{background:#3e2830}.battle-side>h2{text-align:center;color:#ddd7c5;margin-bottom:14px;font-size:12px}.battler{background:#f0e4c7;border:3px solid #76684e;border-radius:4px;margin-bottom:12px;padding:10px 12px;position:relative}.battler header{justify-content:space-between;align-items:center;gap:5px;font-size:13px;display:flex}.battler header>span{white-space:nowrap;font-size:11px}.battler.active{border-color:#f5d574;box-shadow:0 0 0 2px #f5d57455}.portrait-stage{position:relative}.battler .portrait{width:120px;height:110px}.fainted{filter:grayscale();opacity:.48}.faint-label{text-align:center;color:#fff;background:#342b26cc;padding:3px;font-size:11px;position:absolute;bottom:0;left:0;right:0}.damage{color:#fff;background:#a22e38;border-radius:3px;padding:4px;font-size:16px;font-weight:700;animation:.6s ease-out both float;position:absolute;top:10px;right:0}.hit{animation:.3s hit}.attacking .portrait{animation:.28s attack}.battle-message{text-align:center;min-height:74px;margin-top:15px;padding:16px;font-size:13px;line-height:1.6}.result-actions{text-align:center;margin:15px 0}.result-actions>button{min-width:180px}.result-actions details{text-align:left;background:#efe1c7;border:2px solid #75644c;margin-top:15px;padding:10px;font-size:11px}.result-actions li{margin:7px 0}.modal-shade{z-index:20;background:#15223e99;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.detail-dialog{width:340px;max-width:100%;max-height:calc(100dvh - 40px);padding:12px;overflow:auto}.detail-dialog .creature-card{box-shadow:none;border:none;padding-top:5px}.close{margin-left:auto;padding:5px 8px;font-size:11px;display:block}.swap-buttons{gap:10px;display:flex}.swap-buttons button{flex:1;font-size:11px}.confirm-dialog{max-width:400px;padding:25px}.confirm-dialog button{margin:5px;font-size:12px}.save-warning{z-index:30;text-align:center;background:#f9d978;padding:8px;font-size:12px;position:fixed;bottom:0;left:0;right:0}@keyframes hit{50%{background:#f5ac9c}}@keyframes attack{50%{transform:translate(8px)}}@keyframes float{0%{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(-8px)}}@media (width<=600px){h1{margin-bottom:18px;font-size:20px}.selection-screen{padding:18px 9px}.choice-row{gap:7px}.creature-card{border-width:2px;padding:10px 5px;box-shadow:2px 3px #332e3360}.creature-name{font-size:12px}.portrait{width:76px;height:74px}.level{font-size:10px}.types{gap:2px;min-height:19px}.types span{padding:3px 4px;font-size:8px}.hp{font-size:9px}.hp-track{height:7px}.stat-grid{gap:6px;font-size:8px}.stat-grid span{padding:0 1px}.move{align-content:start;min-height:80px;font-size:10px}.move>span{font-size:8px}.creature-card>button{min-height:42px;padding:7px 2px;font-size:10px}.map-layout{grid-template:"team""bag""map"minmax(0,1fr)/minmax(0,1fr);gap:6px;height:100dvh;padding:6px}.team-panel{width:100%;min-width:0;padding:5px 6px}.team-panel h2{text-align:left;margin:0 0 4px;font-size:9px}.team-panel h2>span{display:inline}.team-list{flex-direction:row;gap:5px;overflow-x:auto}.team-member{flex:0 0 80px;padding:2px 3px 3px}.team-member>.portrait{width:43px;height:38px;margin:0 auto}.team-member strong{font-size:9px}.team-member>span:not(.position){font-size:8px}.team-member .hp{margin-top:3px;font-size:8px}.team-member .hp-track{height:5px;margin-bottom:1px}.team-hint{display:none}.bag-panel{align-items:center;gap:15px;padding:6px 9px;font-size:10px;display:flex}.bag-panel h2{margin:0;font-size:10px}.bag-panel details{flex:1}.badges{display:none}.map-header{padding:5px 10px;font-size:12px}.map-node{border-width:2px;width:30px;height:30px;font-size:18px}.map-node i{font-size:13px;top:-17px}.map-node.reachable{outline-width:2px;box-shadow:0 0 0 3px #dfec98,0 0 10px #ffffa1}.route-map{min-height:285px}.map-footer{padding:6px;font-size:9px}.map-footer>span{font-size:7px}.encounter-screen{gap:12px;padding:18px 7px}.encounter-screen>p{font-size:11px}.encounter-screen>.team-panel{margin-top:10px}.release-list{gap:6px}.battle-screen{padding:10px 7px 24px}.battle-header{gap:5px;margin-bottom:10px}.battle-header h1{font-size:16px}.battle-header button{padding:7px;font-size:10px}.battle-columns{gap:7px}.battle-side{border-width:2px;min-height:285px;padding:7px 5px}.battle-side>h2{margin-bottom:10px;font-size:9px}.battler{border-width:2px;margin-bottom:9px;padding:7px 5px}.battler header{flex-wrap:wrap;font-size:11px}.battler header>span{font-size:9px}.battler .portrait{width:85px;height:80px}.damage{font-size:12px;right:-4px}.battle-message{min-height:64px;padding:10px;font-size:11px}.result-actions{margin-top:12px}.detail-dialog .portrait{width:100px;height:95px}.detail-dialog .creature-name{font-size:17px}.detail-dialog .stat-grid{font-size:12px}.detail-dialog .move{min-height:0;font-size:13px}.detail-dialog .move>span{font-size:11px}.detail-dialog .hp{font-size:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}
