:root{background:#f3ddc1;color:#352638;font-family:system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0}
main{width:min(100%,510px);margin:auto;padding:9px 10px max(10px,env(safe-area-inset-bottom))}
header a{font-size:.75rem;font-weight:900;color:#654459}
h1{font-size:1.35rem;margin:3px 0 9px}
#stage{position:relative;height:clamp(305px,68dvh,650px);overflow:hidden;border:2px solid #836872;border-radius:14px;background:#dfb6aa}
canvas{width:100%;height:100%;display:block;touch-action:none}
#hud{position:absolute;inset:9px 9px auto;display:flex;justify-content:space-between;pointer-events:none}
#hud span,#speech{background:#fff5dc;border:2px solid #926e79;border-radius:7px;color:#3a2c40;padding:5px 8px;font-weight:900}
#speech{position:absolute;inset:52px auto auto 50%;transform:translateX(-50%);white-space:nowrap;pointer-events:none}
#speech:empty{display:none}
#reveal{position:absolute;inset:36% 7% auto;text-align:center;background:#ffd878;color:#542b43;border:4px solid #a54e65;border-radius:12px;font-size:1.55rem;font-weight:1000;padding:13px;pointer-events:none}
#intro{position:absolute;inset:0;background:#41284188;display:grid;place-items:center;padding:17px}
#intro[hidden],#reveal[hidden]{display:none}
#intro div{background:#fff2de;padding:17px;border:2px solid #805866;border-radius:12px;max-width:310px}
h2,p{margin:0 0 9px}
button{border:0;border-radius:8px;min-height:44px;background:#783c60;color:#fff;font:inherit;font-weight:900;touch-action:none}
#start{width:100%}
#controls{display:grid;grid-template-columns:1fr 2fr 1fr;gap:6px;margin-top:7px}
#fire{background:#bb5547}
:root{background:#352845;color:#fff0c2}
header a{color:#ffce77}
#stage{background:#392b54;border-color:#755e8f}
#intro div{background:#fff0cb;color:#452f4d}
#controls{grid-template-columns:1fr}
#drop{background:#efab56;color:#422b43}

#controls{grid-template-columns:repeat(3,1fr)}#controls button{background:#efab56;color:#422b43}#tray{display:flex;justify-content:space-between;background:#4f3b60;color:#ffe7ad;border-radius:8px;margin:6px 0 0;padding:8px;font-weight:800}#jackpot{position:absolute;left:50%;top:35%;transform:translateX(-50%);background:#ffd36c;color:#63385b;padding:9px 16px;border-radius:9px;border:3px solid #f17d99;font-size:22px;font-weight:1000;white-space:nowrap;pointer-events:none}#ribbons{position:absolute;top:34%;left:50%;pointer-events:none}#ribbons i{position:absolute;width:8px;height:15px;border-radius:2px}
