* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #0b1026; color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
#game-root { position: fixed; inset: 0; overflow: hidden; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#gamearter-toolbar { position: absolute; top: 12px; left: 12px; }
.hidden { display: none !important; }

#hud { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center;
  pointer-events: none; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
#hud-score { font-size: clamp(28px, 6vmin, 52px); font-weight: 800; letter-spacing: 1px; line-height: 1; }
#hud-sub { font-size: clamp(13px, 2.6vmin, 18px); opacity: .85; margin-top: 4px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.mote-icon { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #9ff3ff; box-shadow: 0 0 8px #7fe9ff; }

#buttons { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 5; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  background: rgba(10,16,40,.55); color: #fff; font-size: 18px; font-weight: 800; cursor: pointer; }
.icon-btn.muted { opacity: .5; text-decoration: line-through; }
.icon-btn:focus { outline: none; }

.screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(8,12,34,.35), rgba(8,12,34,.75)); cursor: pointer; padding: 16px; }
.panel { text-align: center; max-width: 520px; width: 100%; }
.logo { display: flex; flex-direction: column; line-height: .92; font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 12vmin, 96px); letter-spacing: 2px; }
.logo span:first-child { color: #e9ff6b; text-shadow: 0 0 18px rgba(220,255,90,.75), 0 4px 0 #5a6b10; }
.logo span:last-child { color: #fff; text-shadow: 0 0 16px rgba(140,220,255,.6), 0 4px 0 #2a3a7a; }
.tagline { margin-top: 12px; font-size: clamp(15px, 3vmin, 20px); opacity: .9; }
.howto { list-style: none; margin: 16px auto 0; font-size: clamp(14px, 2.6vmin, 18px); opacity: .85; line-height: 1.6; }
.cta { margin-top: 18px; font-size: clamp(17px, 3.4vmin, 24px); font-weight: 800; color: #e9ff6b; animation: pulse 1.4s ease-in-out infinite; }
.best { margin-top: 10px; opacity: .8; font-size: clamp(14px, 2.6vmin, 18px); }
h2 { font-size: clamp(32px, 8vmin, 60px); font-weight: 900; text-transform: uppercase; color: #fff; text-shadow: 0 0 16px rgba(140,220,255,.6); }
.final { font-size: clamp(56px, 16vmin, 120px); font-weight: 900; color: #e9ff6b; text-shadow: 0 0 24px rgba(220,255,90,.6); line-height: 1.1; }
.newbest { font-weight: 800; color: #ffb35c; font-size: clamp(16px, 3vmin, 22px); }
.small-btn { margin-top: 16px; padding: 6px 14px; border-radius: 16px; border: 2px solid rgba(255,255,255,.35);
  background: rgba(10,16,40,.55); color: #fff; font-weight: 700; cursor: pointer; font-size: 14px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
