*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#120f20;color:#ffebbb;font-family:Arial,sans-serif;touch-action:none;overscroll-behavior:none}button{cursor:pointer;touch-action:none;-webkit-tap-highlight-color:transparent;font-family:inherit;font-weight:900;color:#ffefba;background:linear-gradient(#68507b,#2a203d);border:2px solid #b99acd;border-radius:9px;box-shadow:0 4px #080711}button:focus-visible{outline:3px solid #fff6ba;outline-offset:3px}header{height:65px;position:absolute;top:env(safe-area-inset-top,0);left:0;right:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px;background:linear-gradient(#37233f,#171423);z-index:5;border-bottom:3px solid #8a6548}.brand{font-size:14px;font-weight:1000;line-height:1}.brand b{display:block;color:#ebc075;font-size:20px}.stat{border:1px solid #9d7a58;background:#171221;border-radius:4px;padding:5px 12px;text-align:center;min-width:100px}.stat small{font-size:8px;letter-spacing:1px;display:block;color:#a9c5b4}.stat strong{font-family:monospace;font-size:20px;display:block}header button{width:38px;height:40px;font-size:23px}#arena{position:absolute;top:69px;bottom:118px;left:0;right:0;background:radial-gradient(ellipse,#3d2341,#0c1020 75%)}canvas{width:100%;height:100%;display:block}#status{position:absolute;bottom:94px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:900;color:#b9ffc7;white-space:nowrap;text-align:center;z-index:4;text-shadow:1px 2px #000}.controls{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:24px;align-items:center;justify-content:space-between;width:min(600px,90%);z-index:6}.controls button{width:128px;height:60px;border-radius:30px;background:radial-gradient(circle at 35% 20%,#b377e4,#622ca2 60%,#361d61);border:3px solid #c9a3f1;box-shadow:0 6px #2f1745,inset 0 3px #e5cfff66;font-size:11px;line-height:1.35}.controls #launch{width:84px;height:66px;border-radius:50%;background:radial-gradient(circle at 30% 20%,#ffdf81,#ed9b38 65%,#b95b29);border-color:#ffeabc;color:#3a1c20;box-shadow:0 6px #733225,inset 0 3px #fff8c366}.controls button.held{transform:translateY(4px);filter:brightness(1.25)}#sound{position:absolute;left:12px;bottom:100px;width:32px;height:32px;font-size:20px;z-index:7}.arcade-return{top:76px!important;font-size:9px!important;padding:7px 9px!important;z-index:7!important;background:#20192e!important;border-color:#b99b66!important}.overlay{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,#16162980,#0a091aec);z-index:20;display:grid;place-items:center;padding:24px;text-align:center}.overlay[hidden]{display:none}.overlay section{max-width:520px}.moon{color:#f1d087;font-size:105px;line-height:1;text-shadow:0 0 45px #e2ad56;transform:rotate(-20deg)}#tag{font-size:11px;font-weight:900;letter-spacing:3px;color:#c3efce}h1{font-family:"Arial Black",Arial,sans-serif;font-weight:1000;font-size:clamp(48px,8vw,80px);letter-spacing:-2px;line-height:.98;transform:rotate(-3deg);margin:16px 0 30px;color:#eeeadc;-webkit-text-stroke:1px #594233;text-shadow:3px 4px #4f365a,6px 7px #090918}h1 span{display:block;color:#e6b55f}#message{max-width:360px;margin:0 auto 24px;color:#dfd4dc;font-size:15px;line-height:1.6}#start{height:56px;padding:0 25px;border:3px solid #ffe8a7;background:linear-gradient(#ffe19b,#d6943c);color:#301b29;box-shadow:0 6px #6d3e36,0 9px #090b19;font-size:17px;border-radius:12px}#start:active{transform:translateY(3px)}.tips{margin-top:28px;color:#b9adb9;font-size:11px;line-height:1.9}@media(max-width:650px){header{gap:5px;height:61px}.brand{font-size:11px;width:59px}.brand b{font-size:14px}.stat{min-width:0;padding:5px 6px;flex:1;max-width:90px}.stat strong{font-size:14px}.stat small{font-size:7px}header button{width:30px;height:35px;font-size:20px;flex:none}#arena{top:64px}.controls{gap:12px;width:92%}.controls button{width:106px;height:57px;font-size:10px}.controls #launch{width:70px;height:64px;font-size:10px}.arcade-return{top:68px!important}.moon{font-size:80px}}@media(max-height:500px){#arena{top:55px;bottom:64px}header{height:52px}.controls{bottom:8px;width:80%}.controls button{height:40px;width:100px}.controls #launch{height:42px;width:68px}#status{bottom:54px}#sound{bottom:12px}.moon{display:none}h1{font-size:42px;margin:8px 0 14px}#message{font-size:12px;margin-bottom:12px}.tips{margin-top:16px}#start{height:44px}}

/* Controls must stay holdable without browser selection or callouts. */
button,button *,canvas,.controls,#status,.overlay,.stat,.brand{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button{-webkit-appearance:none;appearance:none}

/* PC: tablero a altura completa y controles en los laterales. */
@media(min-width:1100px) and (min-height:600px) and (hover:hover) and (pointer:fine){
#arena{top:8px;bottom:8px;left:260px;right:260px;border-radius:12px}
header{top:86px;left:16px;right:auto;width:228px;height:auto;padding:18px 12px;display:flex;flex-wrap:wrap;gap:12px;border:2px solid #8a6548;border-radius:14px;justify-content:center}
.brand{width:100%;text-align:center;font-size:22px}
.brand b{font-size:30px}
.stat{width:100%;min-width:0;padding:10px 12px}
.stat small{font-size:10px}.stat strong{font-size:24px}
.arcade-return{top:18px!important;left:16px!important}
.controls{left:auto;right:24px;bottom:36px;transform:none;width:212px;flex-direction:column;gap:28px}
#sound{left:20px;bottom:20px;width:44px;height:44px}
}

@media(min-width:1100px) and (min-height:600px) and (hover:hover) and (pointer:fine){
#status{left:auto;right:20px;bottom:312px;transform:none;width:220px;white-space:normal;font-size:13px;line-height:1.5}
}
