:root{font:14px system-ui,sans-serif;color:#fff0cb;background:#102f38;color-scheme:dark}*{box-sizing:border-box}body{margin:0;display:grid;place-items:center;min-height:100dvh}button{font:750 13px system-ui;border:1px solid #58847f;border-radius:10px;color:#fff2d6;background:#214d55;min-height:44px;cursor:pointer;padding:8px 12px;touch-action:none;user-select:none}button:hover{background:#2c6467}button:focus-visible,canvas:focus-visible{outline:3px solid #ffda7d;outline-offset:2px}button:disabled{opacity:.5;cursor:default}.primary{color:#263c3c;background:#ffcc7e;border-color:#ffe3a6;box-shadow:0 3px 0 #a56839}.primary:hover{background:#ffe0a4}.game{width:min(100%,460px);padding:10px;overflow:hidden}header{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px}header strong{display:block;font-size:14px}.eyebrow{font-size:10px;letter-spacing:1.3px;color:#9cdecc;font-weight:850}.tools{display:flex;gap:5px}.tools button{font-size:11px;padding:7px}.hud{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:750;padding:8px 9px;background:#1d454b;border-radius:10px 10px 0 0}#hearts{color:#ffbda4;font-size:13px}#score{color:#ffe0a0;min-width:35px;text-align:right}.field{position:relative;aspect-ratio:420/600;max-height:calc(100dvh - 177px);margin:auto;overflow:hidden;border-radius:0 0 12px 12px;width:100%;background:#327d89}canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none}#message{position:absolute;bottom:12px;left:12px;right:12px;padding:8px 10px;background:#173b40eb;border:1px solid #8cb7a9;border-radius:8px;font-size:11px;text-align:center;pointer-events:none}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#173f4433;padding:14px}#overlay[hidden],[hidden]{display:none!important}.card{text-align:center;background:#153f46f2;border:1px solid #99bca2;box-shadow:0 12px 40px #10323a66;border-radius:18px;max-width:295px;padding:23px 20px}h1{font-size:31px;line-height:1.07;letter-spacing:-1px;margin:13px 0;color:#ffe0a0}.card p{font-size:13px;line-height:1.5;margin:13px 0}#instructions{color:#b7d4c8;font-size:11px}.card button{display:block;width:100%;margin-top:10px}#controls{display:grid;grid-template-columns:1fr 1fr 1.4fr 1.6fr;gap:8px;margin-top:10px}#controls button{min-height:50px}#controls button:first-child,#controls button:nth-child(2){font-size:23px}footer{display:flex;justify-content:space-between;gap:8px;font-size:9px;padding:9px 2px 0;color:#adccc0}#stars{color:#ffe0a0;white-space:nowrap}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}@media(max-width:350px){.game{padding:6px}header strong{font-size:12px}.tools button{font-size:10px}footer{font-size:8px}.card{padding:16px}.card h1{font-size:26px}}@media(max-height:620px){.card{padding:12px}.card h1{font-size:23px}.card p{margin:8px 0}.field{max-height:calc(100dvh - 164px)}footer{padding-top:5px}}

.game{height:min(100dvh,800px);display:flex;flex-direction:column}.game>header,.hud,#controls,footer{flex-shrink:0}.field{flex:1;min-height:0;max-height:none;aspect-ratio:auto}canvas{object-fit:fill}.sr{top:0;left:0;margin:0}html[data-embed] header .eyebrow,html[data-embed] .tools,html[data-embed] footer{display:none}html[data-embed] header{min-height:18px;margin-bottom:4px}html[data-embed] header strong{font-size:11px}html[data-embed] .game{padding:5px}html[data-embed] #controls{gap:6px;margin-top:7px}html[data-embed] #controls button{min-height:44px}html[data-embed] .card{padding:12px}html[data-embed] h1{font-size:24px;margin:6px 0}html[data-embed] .card p{font-size:11px;margin:7px 0}html[data-embed] #instructions{font-size:10px}

