@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap');
:root{--ink:#243e35;--cream:#f7f3e8;--yellow:#f5c94f;--orange:#e7784c;--line:#dcd9c9}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Zen Maru Gothic',sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #dc7048;outline-offset:3px}.nav,.game-nav{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 6%;border-bottom:1px solid var(--line)}.brand{font-family:Arial,sans-serif;font-size:17px;font-weight:900;letter-spacing:.08em}.brand span{color:#df7951}.brand small{font-family:'Zen Maru Gothic',sans-serif;letter-spacing:0;font-size:11px;margin-left:14px;border-left:1px solid #bcbfad;padding-left:14px}.nav-note{font-size:12px;font-weight:700}.home,.game-wrap{max-width:1130px;margin:auto;padding:0 32px}.home-top{min-height:420px;display:flex;align-items:center;justify-content:space-between;gap:30px}.eyebrow,.section-num{font:12px 'DotGothic16',sans-serif;letter-spacing:.1em;color:#718478}.home h1{font-size:clamp(38px,5.5vw,68px);line-height:1.35;letter-spacing:.04em;margin:19px 0}.home h1 em{font-style:normal;color:#de7953}.intro{font-size:15px;line-height:2.1}.home-illustration{width:340px;height:240px;border-radius:48% 52% 45% 55%;background:#e5e9d1;display:flex;align-items:center;justify-content:center;gap:8px;font-size:65px}.home-illustration span:nth-child(2){font-size:100px}.section-head{display:flex;align-items:end;justify-content:space-between;border-bottom:2px solid var(--ink);padding-bottom:16px;margin-bottom:24px}.section-head h2{margin:7px 0 0;font-size:24px}.count{font-size:12px}.game-card{display:grid;grid-template-columns:1.15fr 1fr;border:1px solid #c8cfba;background:#fffefa;max-width:830px;transition:transform .2s,box-shadow .2s}.game-card:hover{transform:translateY(-4px);box-shadow:5px 5px 0 #ccd4b9}.card-art{height:260px;background:#a6c0a4;position:relative;overflow:hidden;display:grid;place-items:center}.sun{position:absolute;right:12%;top:12%;width:75px;height:75px;border-radius:50%;background:#f7dc82}.art-hills{position:absolute;bottom:-75px;background:#738f71;width:130%;height:160px;border-radius:50%}.card-dog{font-size:112px;z-index:1}.dango{position:absolute;left:15%;top:25%;font-size:42px;transform:rotate(-25deg)}.art-label{position:absolute;bottom:15px;left:17px;font:12px 'DotGothic16';color:white;z-index:2}.card-info{padding:28px 34px;display:flex;flex-direction:column}.card-top{display:flex;justify-content:space-between;font:12px 'DotGothic16';color:#809287}.card-info h3{font-size:29px;margin:28px 0 10px}.card-info h3 span{font-size:18px;float:right}.card-info p{font-size:14px;line-height:1.9;margin:0}.play-link{margin-top:auto;font-size:13px;font-weight:900;color:#d76c46}.play-link b{float:right}footer{border-top:1px solid var(--line);margin-top:90px;padding:24px 0 35px;font:11px Arial;letter-spacing:.1em;color:#758479;display:flex;justify-content:space-between}footer span,footer a{font-family:'Zen Maru Gothic';letter-spacing:0}.game-body{background:#eef0e2}.game-nav{height:58px;background:#f8f6ed}.game-nav>a:first-child{font-size:12px;font-weight:700}.icon-btn{border:0;background:none;color:var(--ink);font-size:14px}.icon-btn span{font-size:10px}.game-wrap{max-width:1000px}.game-title{display:flex;align-items:end;justify-content:space-between;padding:24px 0 17px}.game-title h1{font-size:32px;margin:4px 0 0;letter-spacing:.08em}.game-title h1 span{color:#e2784b}.game-title p{font-size:12px;line-height:1.7;margin:0;text-align:right}.machine{background:#304a3c;padding:12px;border-radius:12px;box-shadow:0 7px 0 #20392e}.machine-top,.machine-bottom{display:flex;justify-content:space-between;align-items:center;color:#e8efd5;font:11px 'DotGothic16';height:28px;letter-spacing:.06em}.machine-top span:nth-child(2){color:#eacb75}.stage{position:relative;aspect-ratio:8/5;overflow:hidden;background:#a9c7bd;border:3px solid #1d382d;touch-action:none}.stage canvas{display:block;width:100%;height:100%;image-rendering:pixelated}.overlay{position:absolute;inset:0;background:rgba(31,50,40,.68);display:flex;align-items:center;justify-content:center;text-align:center;padding:12px}.hidden{display:none!important}.start-content,.result-content{background:#faf6e9;border:4px solid #e4c878;box-shadow:0 0 0 4px #3c4c35;padding:clamp(14px,3vw,28px) clamp(18px,4vw,42px);max-width:500px;width:100%;max-height:100%;overflow:auto}.mini{font:11px 'DotGothic16';color:#ca744c;letter-spacing:.08em;margin:0}.start-content h2{font-size:clamp(30px,5vw,52px);line-height:1;margin:13px 0;color:#df774b;text-shadow:2px 2px #f3d98c}.start-content h2 span{color:#3e6849}.start-content>p:not(.mini){line-height:1.8;font-size:14px}.how{display:flex;justify-content:center;gap:14px;font-size:11px;margin:17px 0}.how b{color:#d8764b;display:block;font:12px 'DotGothic16'}.primary,.secondary{border:0;padding:12px 24px;font-weight:900;background:#e4774b;color:white;box-shadow:0 4px 0 #b95330;border-radius:4px}.primary span{margin-left:24px}.start-content small{display:block;font-size:10px;color:#7a8c79;margin-top:12px}.hud{position:absolute;top:14px;left:15px;right:15px;display:flex;justify-content:space-between;pointer-events:none;font:14px 'DotGothic16';color:#fff8db;text-shadow:2px 2px #314b3a}.hud>div{background:#304a3cdc;padding:8px 12px;border:2px solid #f3df9c}.hud strong{font-size:23px;color:#f9df80}.ammo{color:#f9df80}.stage-message{position:absolute;top:23%;left:50%;transform:translateX(-50%);background:#fff5d8;color:#284537;padding:8px 16px;border:3px solid #dcaa56;font-weight:bold;white-space:nowrap;pointer-events:none}.result-content h2{font-size:24px;margin:8px 0}.result-team{display:flex;justify-content:center;gap:8px}.result-animal{background:#e9eedc;border:2px solid #c3d0ad;min-width:75px;padding:5px;font-size:11px}.result-animal span{font-size:32px;display:block}.ending{font-size:13px;font-weight:700;line-height:1.7;min-height:3em}.result-footer{font:10px 'DotGothic16';color:#8a9984}.result-actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.result-actions button{font-size:11px}.secondary{background:#3c5846;box-shadow:0 4px 0 #263e31}.text-btn{border:0;background:none;color:#3c5846;text-decoration:underline}.below{display:flex;justify-content:space-between;margin-top:28px;font-size:12px}.below p{line-height:1.9;color:#5e7165}.below>span{font:12px 'DotGothic16';color:#91a294}.game-wrap footer{margin-top:50px}@media(max-width:600px){.nav{height:64px}.nav-note{display:none}.home,.game-wrap{padding:0 18px}.home-top{min-height:0;padding:46px 0;display:block}.home h1{font-size:41px}.home-illustration{width:100%;height:180px;margin-top:25px}.game-card{grid-template-columns:1fr}.card-art{height:200px}.card-info{min-height:210px}.game-title{padding:18px 0 12px}.game-title h1{font-size:27px}.machine{padding:7px}.machine-top,.machine-bottom{font-size:9px;height:23px}.machine-top span:nth-child(2){display:none}.stage{aspect-ratio:4/5}.how{gap:8px}.start-content,.result-content{padding:14px}.start-content h2{font-size:34px}.hud{font-size:11px;left:7px;right:7px;top:7px}.hud>div{padding:5px}.hud strong{font-size:18px}.ammo{display:none}.below{font-size:11px}.result-animal{min-width:65px}.result-animal span{font-size:26px}.result-content h2{font-size:20px}.ending{font-size:12px}.result-actions button{padding:9px 13px}footer{margin-top:55px}}
.game-nav .brand{font-size:17px;letter-spacing:.08em}.ending{white-space:pre-line;font-size:12px;line-height:1.6}.result-content{padding-top:14px;padding-bottom:14px}.result-team{gap:6px}@media(max-width:600px){.ending{font-size:11px;line-height:1.5;margin:7px 0}.result-content h2{margin:5px 0}.result-footer{margin:5px 0}}

.result-sprite{display:block;width:68px;height:60px;object-fit:contain;image-rendering:pixelated;margin:auto}.result-animal{min-width:72px}.result-animal.hero{background:#f7e7c2;border-color:#e9bc70}@media(max-width:600px){.result-sprite{width:50px;height:45px}.result-animal{min-width:55px;padding:3px;font-size:10px}}

/* A shared portrait scene keeps companions around Momotaro without individual frames. */
.result-scene{display:block;width:min(100%,420px);height:auto;margin:0 auto;image-rendering:pixelated}.result-mvp{color:#c9633e;font-weight:900;font-size:13px;margin:2px 0}.result-content .ending{min-height:0;margin:5px 0 8px}.result-content{max-width:520px}.result-footer{margin:4px 0 8px}@media(max-width:600px){.result-scene{width:min(100%,320px)}.result-mvp{font-size:11px}.result-content .ending{font-size:11px;line-height:1.5}}

/* Keep the game canvas in its native 8:5 ratio on narrow screens. */
.stage #game{position:absolute;top:50%;left:0;transform:translateY(-50%);width:100%;height:auto;aspect-ratio:8/5}.stage #result-scene{position:static;transform:none;width:min(100%,420px);height:auto;aspect-ratio:5/2}.battle{position:absolute;inset:0;display:flex;align-items:center;background:#253a42}.stage #battle-canvas{width:100%;height:auto;aspect-ratio:8/5;image-rendering:pixelated}.machine{padding-bottom:12px}@media(max-width:600px){.stage #result-scene{width:min(100%,320px)}.machine{padding-bottom:7px}}

.share-fallback{border-top:1px solid #d9d6c4;margin-top:12px;padding-top:8px;color:#536b5a;font-size:11px;line-height:1.5}.share-fallback p{margin:0 0 5px}.share-fallback .text-btn{font-weight:700;font-size:11px;padding:4px 8px}

.result-actions a.secondary{display:inline-block;font-size:11px;line-height:1.5}.share-note{font-size:10px;line-height:1.5;color:#6b7e6f;margin:10px 0 0}@media(max-width:600px){.result-actions a.secondary{padding:9px 13px}.share-note{margin-top:7px}}
