*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:#08051d;color:#fffaf1;font-family:ui-rounded,"Trebuchet MS","Aptos Rounded","Segoe UI",Verdana,sans-serif;touch-action:none;user-select:none}
#game{position:fixed;inset:0;width:100vw;height:100vh;display:block;background:#08051d;cursor:crosshair}
.hud{position:fixed;left:14px;right:14px;top:12px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;pointer-events:none}
.brand{font-size:14px;font-weight:950;letter-spacing:.04em;color:#fff9c7;text-shadow:0 0 8px #ffd166,0 0 18px #00e8ff,0 2px 12px rgba(0,0,0,.58)}
.stats{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:min(720px,72vw)}
.pill{min-height:34px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:linear-gradient(180deg,rgba(15,18,50,.72),rgba(16,8,35,.58));box-shadow:0 0 16px rgba(0,232,255,.18),inset 0 0 18px rgba(255,209,102,.1);backdrop-filter:blur(10px);padding:8px 11px;font-size:13px;font-weight:900;white-space:nowrap}
.pill span{color:#fff6a8;text-shadow:0 0 10px rgba(255,209,102,.65)}
.energy{width:146px;height:10px;border:1px solid rgba(255,255,255,.3);border-radius:999px;overflow:hidden;background:rgba(0,0,0,.24);margin-top:5px;box-shadow:0 0 14px rgba(255,255,255,.08)}
.energy span{display:block;height:100%;width:100%;background:linear-gradient(90deg,#58ffc5,#fff36b,#ff7ac8,#64e9ff);box-shadow:0 0 18px rgba(255,243,107,.62)}
.overlay{position:fixed;inset:0;z-index:5;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,209,102,.22),transparent 32%),linear-gradient(215deg,rgba(97,232,255,.24),transparent 48%),linear-gradient(180deg,rgba(8,5,29,.8),rgba(11,3,20,.96));padding:24px;text-align:center}
.overlay.hidden{display:none}
.title{font-size:clamp(44px,9vw,106px);font-weight:950;line-height:.9;letter-spacing:0;background:linear-gradient(90deg,#fff36b,#64e9ff,#ff7ac8,#58ffc5);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 22px rgba(100,233,255,.44)) drop-shadow(0 10px 34px rgba(0,0,0,.5))}
.sub{max-width:650px;margin:18px auto 0;color:#f3efff;font-size:clamp(15px,2.5vw,20px);line-height:1.45;text-shadow:0 2px 18px rgba(0,0,0,.42)}
.start{margin-top:28px;border:0;border-radius:999px;padding:15px 28px;background:linear-gradient(90deg,#fff36b,#64e9ff,#ff7ac8);color:#070913;font-weight:950;font-size:18px;cursor:pointer;box-shadow:0 0 24px rgba(100,233,255,.38),0 18px 48px rgba(0,0,0,.32)}
.start:hover{transform:translateY(-1px)}
.touch{position:fixed;left:14px;right:14px;bottom:14px;z-index:4;display:none;justify-content:space-between;align-items:flex-end;pointer-events:none}
.pad,.actions{pointer-events:auto}
.pad{display:grid;grid-template-columns:48px 48px 48px;grid-template-rows:48px 48px 48px;gap:6px}
.actions{display:flex;gap:10px;align-items:flex-end}
.pad button,.dash,.fire{border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(14,17,35,.66);color:#fff;font-weight:950;font-size:19px;backdrop-filter:blur(8px);box-shadow:0 0 18px rgba(100,233,255,.14)}
.pad button:nth-child(1){grid-column:2}
.pad button:nth-child(2){grid-column:1;grid-row:2}
.pad button:nth-child(3){grid-column:2;grid-row:2}
.pad button:nth-child(4){grid-column:3;grid-row:2}
.pad button:nth-child(5){grid-column:2;grid-row:3}
.dash,.fire{align-self:end;width:82px;height:82px;border-radius:50%;font-size:14px}
.fire{background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.58),rgba(255,243,107,.36) 28%,rgba(255,122,200,.44) 64%,rgba(14,17,35,.74));box-shadow:0 0 22px rgba(255,122,200,.34),0 0 34px rgba(255,243,107,.22)}
.dash{background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.44),rgba(100,233,255,.44) 34%,rgba(14,17,35,.74) 70%);box-shadow:0 0 22px rgba(100,233,255,.32)}
@media(pointer:coarse){.touch{display:flex}.pill{font-size:12px;padding:7px 9px}.brand{font-size:13px}.energy{width:104px}.dash,.fire{width:74px;height:74px;font-size:12px}}
@media(max-width:620px){.hud{align-items:flex-start}.stats{max-width:230px}.pill{min-height:30px;font-size:11px;padding:6px 8px}.actions{flex-direction:column;gap:8px}.dash,.fire{width:66px;height:66px}.pad{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px}}
