@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;600;700;800&display=swap');
:root{color-scheme:light;--text:#443846;--muted:#807281;--line:#ecd8dc;--deep:#544260}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Nunito,'DM Sans',system-ui,sans-serif;background:#fff8f0;color:var(--text)}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}
.game-body{background:radial-gradient(circle at 78% 0%,#fbe4eb,transparent 51%),radial-gradient(circle at 12% 20%,#fff1cd,transparent 47%),#fff8f0;min-height:100vh}
.game-shell{width:min(1040px,calc(100vw - 30px));margin:0 auto;padding:28px 0 42px}
.game-shell:before{content:"✦  A MORROW WISH LITTLE GAME";display:block;color:#be7b7f;font-size:11px;font-weight:900;letter-spacing:.17em;margin-bottom:17px}
.game-top{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.brand-label{font-size:12px;color:#a2708d;font-weight:900}.game-title{font-weight:900;font-size:clamp(30px,4vw,50px);letter-spacing:-.065em;margin:4px 0}.game-sub{font-size:14px;color:#817281;max-width:460px}.scoreboard{display:flex;gap:9px;align-items:center}
.score-chip{min-width:76px;text-align:center;background:#fffdf8;border:1px solid #ead9cf;border-radius:17px;padding:9px 13px;font-size:23px;font-weight:900;color:#5d4a63;box-shadow:0 5px 0 #e9d8d0}.score-chip span{display:block;font-size:9px;font-weight:900;letter-spacing:.12em;color:#a68a9b}
.icon-btn{color:#795d83;background:#fffdf8;border:1px solid #e5d4d9;border-radius:13px;padding:12px;min-width:39px;font-size:14px;font-weight:900}
.game-frame{position:relative;border:7px solid #fffdf6;border-radius:27px;overflow:hidden;background:#453b60;box-shadow:0 0 0 1px #eeddd6,0 22px 56px #7d647632}
.game-frame canvas{display:block;width:100%;aspect-ratio:16/9;touch-action:none;cursor:crosshair}
.game-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#52435abb;backdrop-filter:blur(8px);padding:15px}.game-overlay[hidden]{display:none}
.overlay-panel{max-width:475px;min-width:min(390px,100%);text-align:center;padding:30px 34px;background:#fff8ee;border:1px solid #f0d9d0;border-radius:26px;box-shadow:0 24px 70px #2a213953}
.overlay-kicker{font-size:11px;color:#c18186;font-weight:900;letter-spacing:.13em;margin-bottom:10px}.overlay-title{font-size:clamp(28px,4.8vw,49px);line-height:1.07;font-weight:900;letter-spacing:-.06em;margin:0 0 15px;color:#523e56}
.overlay-copy{color:#756777;line-height:1.65;font-size:14px;margin:0 auto 22px;max-width:370px}.play-btn{border:0;border-radius:999px;padding:14px 33px;background:#f49c92;color:#4f334d;font-weight:900;box-shadow:0 6px 0 #debcb3}.play-btn:hover{transform:translateY(-2px)}
.game-foot{margin-top:15px;display:flex;justify-content:space-between;gap:15px;align-items:center;color:#887887;font-size:12px}.game-foot strong{color:#6a8577}.pulse{display:inline-block;width:9px;height:9px;background:#9bcaa7;border-radius:100%;margin-right:7px}
@media(max-width:600px){.game-shell{width:100%;padding:20px 9px 30px}.game-top{gap:9px;align-items:flex-start}.score-chip{min-width:55px;padding:5px 7px;font-size:17px}.icon-btn{padding:10px;font-size:12px}.game-title{font-size:28px}.game-sub{font-size:11px}.game-frame{border-width:4px;border-radius:16px}.game-foot{font-size:10px}.overlay-panel{min-width:0;padding:22px 17px}.overlay-copy{font-size:12px}}

/* Phone-first arcade: controls remain tappable and PLAY NOW is never clipped. */
@media(max-width:600px){
 .game-shell{width:min(100%,480px);padding:12px 10px 30px}
 .game-shell:before{margin-bottom:8px;font-size:9px}
 .game-top{flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px}
 .game-top>div:first-child{min-width:0}
 .game-sub{max-width:none;line-height:1.4}
 .scoreboard{display:flex;justify-content:flex-start;align-items:center;gap:8px;flex-wrap:wrap}
 .score-chip{min-width:70px;padding:5px 10px}
 .scoreboard .icon-btn{min-height:44px;min-width:44px;padding:9px}
 .game-frame{min-width:0}
 .game-frame canvas{height:auto;aspect-ratio:16/9}
 .game-frame:has(.game-overlay:not([hidden])) canvas{display:none}
 .game-overlay{position:relative;inset:auto;min-height:290px;max-height:none;padding:17px 13px}
 .game-overlay[hidden]{display:none}
 .overlay-panel{max-width:100%;width:100%;max-height:none;min-width:0;padding:20px 16px}
 .overlay-title{font-size:clamp(26px,8vw,38px)}
 .overlay-copy{margin-bottom:15px;line-height:1.5}
 .play-btn{min-height:48px;min-width:155px;padding:12px 20px}
 .game-foot{gap:5px;flex-wrap:wrap}
}
@media(max-width:360px){.game-title{font-size:26px}.score-chip{min-width:62px}}
