:root{color-scheme:dark;font:16px system-ui,sans-serif;color:#f2f5ff;background:#111f30}*{box-sizing:border-box}body{margin:0}main{max-width:920px;margin:auto;padding:12px}button{font:inherit;font-weight:700;color:#111f30;background:#a4edca;border:0;border-radius:10px;min-height:48px;padding:12px 16px;cursor:pointer}button:focus-visible,#game:focus-visible{outline:3px solid #f6cc56;outline-offset:3px}button:disabled{opacity:.6}button.pressed{background:#f6cc56;transform:translateY(2px)}[hidden]{display:none!important}.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}.toolbar strong{margin-right:auto}.toolbar span{font-size:.875rem}.stage{position:relative}#game{width:100%;aspect-ratio:3/2;background:#20394a;overflow:hidden;border-radius:12px;touch-action:none}canvas{display:block}#start-panel{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;background:#182e3eee;border-radius:12px}h1{font-size:clamp(1.2rem,5vw,2rem);margin:0}p{line-height:1.5;color:#bdcedd}#start-panel p{max-width:390px}#controls{display:flex;justify-content:space-between;gap:12px;margin-top:12px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#controls button{min-width:64px;min-height:56px;touch-action:none;-webkit-user-select:none;-webkit-touch-callout:none}.directions{display:flex;gap:10px}#status{font-size:.875rem;margin-bottom:0}#play-feedback{margin-top:12px;padding:14px;border:1px solid #55757f;border-radius:12px}h2{font-size:1.25rem;margin:0}#play-feedback p{margin:8px 0}#play-feedback button{margin-right:8px}@media(max-width:360px){main{padding:8px}.toolbar{gap:6px}.toolbar strong{width:100%}.toolbar button{padding:10px;font-size:.875rem}#start-panel p{font-size:.875rem;margin:8px 0}}#start-panel{position:static;background:transparent;padding:4px 0 12px;align-items:stretch;text-align:left}#start-panel>p{max-width:none}.game-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.game-choices button{display:flex;flex-direction:column;gap:10px;padding:12px;text-align:left;background:#1b3445;color:#f2f5ff;border:1px solid #55757f;overflow:hidden;min-width:0}.game-choices button:hover{border-color:#a4edca;background:#254356}.game-choices button>strong{font-size:1rem}.game-choices button>span:last-child{color:#bdcedd;font-size:.875rem;font-weight:400;line-height:1.45}.card-art{display:flex;align-items:center;justify-content:center;width:100%;height:125px;border-radius:6px;background-size:cover;background-position:center}.card-art img{width:auto;height:80px;object-fit:contain;filter:drop-shadow(0 6px 8px #0008)}.forest{background-image:url(/demo/art/forest.svg)}.dojo{background-image:url(/demo/art/dojo-garden.svg),url(/demo/art/dojo.svg)}.road{background-image:url(/demo/art/road.svg)}.cosmos{background-image:url(/demo/art/cosmos.svg)}#adventure-hud{display:flex;gap:12px;flex-wrap:wrap;font-size:.875rem;margin-top:12px;color:#d7eee5}#adventure-message{width:100%;margin:0;min-height:2.6em}#combat-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}#combat-controls button{flex:1;min-width:80px;padding:12px 8px;font-size:.875rem;touch-action:manipulation}.toolbar button{font-size:.875rem;padding:10px 12px}button strong,button span{overflow-wrap:anywhere}#game{max-width:100%}@media(max-width:360px){.game-choices{gap:8px}.card-art{height:100px}.game-choices button{padding:8px}.game-choices button>strong{font-size:.875rem}.game-choices button>span:last-child{font-size:.8rem}.toolbar strong{width:100%}}#controls{flex-wrap:wrap}.directions{flex-wrap:wrap;flex:1}#controls button{min-width:48px;padding:12px}#controls>[data-control=jump]{min-width:84px}.game-choices button[aria-pressed=true]{border:2px solid #a4edca;background:#254356}.preview-section{margin:20px 0}.preview-section>p{margin:6px 0 12px}.scene-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.scene-previews button{display:flex;flex-direction:column;text-align:left;gap:8px;min-width:0;padding:8px;background:#1b3445;color:#f2f5ff;border:1px solid #55757f}.scene-previews svg{width:100%;height:auto;border-radius:6px}.scene-previews strong{font-size:.875rem}.scene-previews span{font-size:.75rem;color:#bdcedd;font-weight:400}.scene-previews button:hover{border-color:#a4edca}@media(max-width:360px){.scene-previews{gap:6px}.scene-previews button{padding:5px}.scene-previews strong{font-size:.75rem}}.forest{background-image:url(/demo/art/forest-cartoon-v2.png)}.card-art.forest svg{height:100px;width:50px;filter:drop-shadow(0 5px 5px #0006)}.dojo{background-image:url(/demo/art/dojo-cartoon-v2.png)}.road{background-image:url(/demo/art/race-cartoon-v2.png)}.cosmos{background-image:url(/demo/art/space-cartoon-v2.png)}.card-art>svg{height:110px;width:100px;filter:drop-shadow(0 5px 5px #0006)}
