*{box-sizing:border-box}body{margin:0;background:radial-gradient(at top,#31495a,#101e2b);color:#fff1d2;font-family:system-ui,sans-serif;overscroll-behavior:none}main{max-width:1440px;margin:auto;padding:0 18px}header{height:85px;display:flex;align-items:center;justify-content:space-between;gap:15px}a{font-weight:800;letter-spacing:2px;font-size:12px;text-decoration:none;color:#fff}a span{color:#ffc954}h1{font-size:clamp(20px,3vw,37px);font-weight:950;font-style:italic;margin:0;color:#ffd05e;text-shadow:2px 3px #703f21}h1 i{color:#ff7655}button{cursor:pointer;color:#fff3d1;background:linear-gradient(#355c72,#183b52);border:1px solid #c9a768;border-radius:10px;padding:10px 16px;font:inherit;touch-action:none;user-select:none}button:focus-visible{outline:3px solid #fff2bc}.chosen,button.active{background:linear-gradient(#daa64a,#93621f);box-shadow:0 0 12px #ffcf7388}.stage{position:relative;border-radius:17px;overflow:hidden;box-shadow:0 18px 60px #0008;border:2px solid #b28a49}canvas{display:block;width:100%;aspect-ratio:16/9;touch-action:none}.hud{position:absolute;top:15px;right:18px;left:18px;display:flex;justify-content:space-between;pointer-events:none;gap:10px}.hud>span{background:#162734e8;border:1px solid #cfad6b;padding:9px 16px;border-radius:7px;font-size:12px;letter-spacing:2px}.hud b{font-size:21px;color:#ffda74;margin-left:10px}#hearts{color:#ff776c;font-size:22px;letter-spacing:4px}#overlay{position:absolute;inset:0;display:grid;place-items:center;background:#132c4266;backdrop-filter:blur(3px)}.card{max-width:560px;width:90%;text-align:center;padding:30px;background:linear-gradient(#132b3df5,#172c3bf5);border:1px solid #ffd98d;border-radius:17px;box-shadow:0 20px 80px #0008}.card small{font-size:9px;letter-spacing:2px;color:#f4ca7d}.card h2{font:700 34px Georgia;margin:14px 0}.card p{font-size:14px;line-height:1.8;color:#d7e2e6}.primary{display:block;margin:18px auto 0;background:linear-gradient(#f3bc54,#b87824);color:#1e2a32;font-weight:800;min-width:190px}#modes{display:flex;gap:10px;justify-content:center}#notice{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);background:#182a38dd;border-radius:8px;padding:7px 18px;pointer-events:none;font-weight:600;color:#ffdf9c}#notice:empty{display:none}.bottom{display:flex;align-items:center;justify-content:space-around;gap:20px;padding:13px 0}.bottom small{display:block;color:#a5bfca;font-size:10px;margin-top:5px}.bottom p{font-size:12px;line-height:1.5}.pad{display:grid;grid-template-columns:100px 100px;gap:7px;transform:rotate(0deg)}.pad button{height:58px;font-size:30px;padding:0;border:2px solid #eac88c;box-shadow:0 4px #081622}.pad button:nth-child(2){background:linear-gradient(#bd5c53,#82362e)}.pad button:nth-child(3){background:linear-gradient(#cb9a38,#967018)}.pad button:nth-child(4){background:linear-gradient(#408c68,#246343)}[hidden]{display:none!important}@media(max-width:700px){main{padding:0 5px}header{height:60px}header a{font-size:8px}header button{font-size:10px;padding:8px}h1{font-size:19px}.hud{top:7px;left:7px;right:7px}.hud>span{font-size:8px;padding:5px 8px}.hud b{font-size:13px}#hearts{font-size:13px}.bottom{gap:8px}.bottom p{display:none}.bottom>b{font-size:10px}.pad{grid-template-columns:90px 90px}.card{padding:15px}.card h2{font-size:23px}.card p{font-size:11px}.card small{font-size:7px}#modes button{font-size:10px}.bottom>div:first-child{font-size:10px}}@media(orientation:landscape) and (max-height:550px){main{max-width:calc((100dvh - 130px)*1.778 + 20px)}header{height:42px}h1{font-size:19px}header button{font-size:9px;padding:5px}.bottom{padding:6px 0}.pad{grid-template-columns:80px 80px;gap:3px}.pad button{height:32px;font-size:24px}.card{padding:13px}.card h2{font-size:22px;margin:7px}.card p{font-size:10px}.primary{margin-top:8px}.hud>span{padding:5px;font-size:8px}.hud b{font-size:13px}#hearts{font-size:13px}}
@media(min-width:701px) and (min-height:551px){main{max-width:min(1440px,calc((100dvh - 240px)*1.778 + 36px))}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
#score{display:inline-block;transform-origin:center}
