:root{--ink:var(--theme-ink);--green:var(--theme-accent);--light:var(--theme-surface);--pale:var(--theme-paper);--muted:var(--theme-muted);--line:var(--theme-line);font-family:Consolas,'Courier New',monospace}body{background:var(--theme-bg);background-image:radial-gradient(ellipse at 40% 0,rgb(var(--theme-bg-rgb) / 0.3765),transparent 65%)}.shell{max-width:1480px;padding:14px 22px}.masthead{margin-bottom:12px}.brand{gap:13px}.brand-logo{width:160px;height:auto}h1{font-size:25px;color:var(--theme-surface)}.edition{letter-spacing:1.4px;font-size:10px}.console{grid-template-columns:minmax(0,1fr) 238px;gap:0;padding:0;background:var(--theme-surface);border:1px solid var(--theme-line);border-radius:9px;overflow:hidden;box-shadow:0 10px 30px rgb(var(--theme-shadow-rgb) / 0.3137)}.play-column{border:0;box-shadow:none}.screen-top{min-height:38px;padding:10px 16px;border:0;background:var(--theme-surface);color:var(--theme-ink);font-size:11px}.viewport{height:clamp(350px,calc(100vh - 285px),680px);aspect-ratio:auto}#world{width:100%;height:100%;display:block}.map-label{top:13px;left:15px;background:rgb(var(--theme-paper-rgb) / 0.9255);border:0;border-radius:4px;box-shadow:0 2px 8px rgb(var(--theme-shadow-rgb) / 0.2078);font-size:12px;padding:8px 11px;letter-spacing:0}.map-label:before{display:none}.map-label span{font-size:9px;color:var(--theme-muted)}.map-chip{border:0;border-radius:3px;font-size:10px;background:rgb(var(--theme-paper-rgb) / 0.9216);padding:7px 10px}.dialog{min-height:112px;padding:12px 17px;background:var(--theme-paper);border-top:1px solid var(--theme-line);box-shadow:none}.dialog-label{font-size:10px;letter-spacing:1.1px;color:var(--theme-ink);margin-bottom:7px}.dialog-label:before{display:none}#dialog-content{font-size:14px;line-height:1.35}.dialog-small{font-size:11px;color:var(--theme-muted)}.trail-note{float:right;color:var(--theme-muted)}.screen-bottom{border-top:1px solid var(--theme-line);background:var(--theme-surface);padding:7px 15px;font-size:8px;color:var(--theme-muted)}.journal{border:0;border-left:1px solid var(--theme-line);box-shadow:none;border-radius:0;background:var(--theme-surface);padding:16px 14px;color:var(--theme-ink)}.journal-heading{font-size:10px;color:var(--theme-muted);border-bottom-color:var(--theme-line)}.portrait{background:transparent;border:0;width:80px;height:80px;padding:0}.friend-row{gap:7px}.friend-label{font-size:9px;color:var(--theme-muted)}.friend-name{font:700 19px Georgia,serif;color:var(--theme-ink);overflow-wrap:anywhere}.species-label{font-size:10px;color:var(--theme-muted)}.companion-card,.controls{border-bottom:1px solid var(--theme-line)}.hp-label{color:var(--theme-muted)}.bar{border:0;background:#d6dac0;height:8px;padding:0}.stats{font-size:10px;color:var(--theme-muted)}.stats strong{color:var(--theme-ink)}kbd{background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-line);border-radius:3px;box-shadow:none}.direction kbd{box-shadow:none;width:36px;height:33px;font-size:23px}.direction-pad{margin-top:11px}.controls p,.quest p{font-size:11px;color:var(--theme-muted)}.learned-keys span{border-color:var(--theme-line);color:var(--theme-muted);font-size:11px;padding:2px 3px}.quest{padding-top:14px}.section-row h2{font-size:12px;color:var(--theme-ink)}.section-row>span{color:var(--theme-muted);font-size:9px}.mini-slot{background:var(--theme-paper);border-color:var(--theme-line);width:37px;height:39px}.journal-button{background:var(--theme-paper);border-color:var(--theme-line);color:var(--theme-ink);border-bottom-width:1px}.journal-foot{display:none}.footer{margin-top:14px;font-size:9px}.footer>div{gap:12px}.panel{background:rgb(var(--theme-paper-rgb) / 0.9333);border:1px solid var(--theme-line);border-radius:8px;box-shadow:0 10px 35px rgb(var(--theme-shadow-rgb) / 0.4392);padding:21px;max-height:94%;width:90%;color:var(--theme-ink);background-image:none}.panel h2{color:var(--theme-ink);font-size:30px}.panel-eyebrow{color:var(--theme-muted);font-size:10px}.panel p{font-size:12px}.choice{border:1px solid var(--theme-line);border-bottom-width:2px;border-radius:5px;box-shadow:none;background:var(--theme-surface)}.choice strong{color:var(--theme-ink);background:var(--theme-paper);border-color:var(--theme-line);font-size:22px}.choice small{color:var(--theme-ink)}.choice canvas{width:114px;height:118px}.origin{color:var(--theme-muted)}.action{background:var(--theme-accent);border-color:var(--theme-line);border-bottom-width:2px;box-shadow:none}.action.light{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}.collection-list{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.pet-card{background:var(--theme-surface);border-color:var(--theme-line);border-bottom-width:1px;border-radius:5px;padding:9px;min-height:135px}.pet-card canvas{width:75px;height:75px}.pet-card strong{font-size:14px;color:var(--theme-ink);overflow-wrap:anywhere}.pet-card.selected{background:var(--theme-surface);border-color:var(--theme-accent);box-shadow:none}.pet-card div{font-size:9px}.battle-scene{background:#d6e3cd;background-image:radial-gradient(ellipse at 75% 55%,#f7f4dc,transparent 62%),linear-gradient(#e7efda,#9cbaa6);color:#315c58;padding:19px 22px}.battle-scene[data-region=Beach]{background:linear-gradient(#e7f0de,#dcc791)}.battle-scene[data-region=City]{background:linear-gradient(#dce4e0,#829f9c)}.battle-scene[data-region=IceCAPS]{background:linear-gradient(#edf4eb,#a3c7cf)}.battle-scene:after{display:none}.enemy-info{background:rgb(var(--theme-paper-rgb) / 0.9098);border:1px solid var(--theme-line);border-radius:5px;box-shadow:none;width:52%;padding:11px 14px}.enemy-info h2{font-size:26px;color:var(--theme-ink);overflow-wrap:anywhere}.enemy-info p{font-size:10px;color:var(--theme-muted)}.battle-tag{border:0;border-radius:4px;box-shadow:none;color:var(--theme-ink)}.battle-art{inset:23% 3% 6%}.enemy-sprite{width:43%;right:6%;bottom:13%;animation:none;filter:drop-shadow(0 4px 0 #284f4430)}.ally-sprite{width:30%;left:5%;bottom:2%;filter:drop-shadow(0 4px 0 #284f4430)}.battle-art:before,.ally-platform{background:#e8e6c090;box-shadow:0 4px #46685735}.battle-ground{font-size:10px;color:var(--theme-ink);text-shadow:none}.typing-prompt{font-size:26px;color:var(--theme-ink)}.typing-prompt .caret{border-color:var(--theme-line)}.input-display,.notice{font-size:11px;color:var(--theme-muted);min-height:15px}.battle-actions{gap:6px;margin-top:7px}.battle-actions button{font-size:11px;border-color:var(--theme-line);border-bottom-width:1px;padding:6px 7px;border-radius:4px;background:var(--theme-surface);color:var(--theme-ink)}.battle-actions button.active{background:var(--theme-accent);color:var(--theme-paper)}.battle-actions kbd{font-size:9px}.guide p{font-size:12px;line-height:1.5}.key-line{color:var(--theme-muted)}.journal-button:focus-visible,.pet-card:focus-visible{outline-color:var(--theme-accent)}
@media(max-width:1100px){.shell{padding:13px}.console{grid-template-columns:minmax(0,1fr) 216px;padding:0;gap:0}.choice canvas{width:90px;height:100px}.journal{padding:13px 11px}.panel{padding:15px}.viewport{height:clamp(330px,calc(100vh - 280px),650px)}.pet-card strong{font-size:12px}.enemy-info h2{font-size:21px}}
@media(max-width:800px){.console{grid-template-columns:1fr}.journal{display:grid;grid-template-columns:1fr 1fr;border-left:0;border-top:1px solid var(--theme-line);padding:12px 16px;gap:0 20px}.journal-heading{display:none}.companion-card,.controls{padding:7px 0}.quest{grid-column:1/-1;padding:10px 0}.viewport{height:clamp(300px,52vh,540px)}.dialog{min-height:117px}.masthead-end{display:none}.friend-name{font-size:20px}.trail-note{display:none}.panel h2{font-size:25px}.collection-list{grid-template-columns:repeat(5,minmax(0,1fr))}.pet-card{min-height:110px;padding:6px}.pet-card canvas{width:55px;height:55px}.pet-card strong{font-size:11px}.pet-card div{font-size:8px}.guide p{font-size:11px}}
@media(max-width:500px){.shell{padding:10px}.brand-logo{width:136px;height:auto}.brand{gap:8px}h1{font-size:19px}.edition{font-size:8px}.screen-top{font-size:9px;padding:9px}#lesson{font-size:8px}.viewport{height:330px}.panel{width:95%;padding:12px}.choices{gap:5px}.choice canvas{width:58px;height:68px}.choice small{font-size:11px}.panel h2{font-size:21px}.choice strong{font-size:19px}.dialog{padding:11px}#dialog-content{font-size:12px}.battle-actions button{font-size:10px;padding:5px}.collection-list{grid-template-columns:repeat(3,minmax(0,1fr))}.pet-card{min-height:88px}.pet-card canvas{width:48px;height:48px}.collection-panel{max-height:95%}.map-label{font-size:11px}.enemy-info{width:62%}.enemy-info h2{font-size:18px}.enemy-info p{font-size:9px}.battle-tag{font-size:8px}.battle-ground{font-size:8px}.typing-prompt{font-size:23px}.portrait{width:65px;height:65px}.guide p{font-size:10px}.footer{gap:10px}.journal{gap:0 12px}}

.city-interact{border:1px solid var(--theme-line);border-radius:5px;background:var(--theme-surface);color:var(--theme-ink);padding:5px 10px;font:600 12px system-ui;cursor:pointer}.city-interact:focus-visible{outline:3px solid var(--theme-accent);outline-offset:2px}
.villain-intro-art{width:144px;height:144px;display:block;margin:8px auto;object-fit:contain}.villain-intro-panel p{font-size:16px;line-height:1.55}.player-name-field{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0;font-size:14px}.player-name-field input{font:inherit;padding:8px 10px;border:1px solid var(--theme-line);border-radius:6px;background:var(--theme-paper);color:var(--theme-ink);max-width:220px}.leaderboard-summary{margin-top:14px;border-top:1px solid var(--theme-line);padding-top:10px;font-size:13px}.leaderboard-summary h3{font-size:16px;margin:3px 0}.leaderboard-summary ol{padding-left:24px;margin:8px 0}.leaderboard-summary li{padding:3px 0}.leaderboard-status{line-height:1.4}.leaderboard-actions{display:flex;gap:8px;flex-wrap:wrap}.leaderboard-actions button{font:inherit;padding:5px 9px}.leaderboard-confirm{background:var(--theme-surface);padding:10px;border:1px solid var(--theme-line);border-radius:6px;margin:8px 0}.leaderboard-summary small{display:block;margin:5px 0;color:var(--theme-muted)}
