html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  background: #05070f; font-family: 'Segoe UI', Verdana, sans-serif; color: #eaf0ff;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
canvas { display: block; width: 100vw; height: 100vh; touch-action: none; }

.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(3,5,15,0.72); backdrop-filter: blur(2px); z-index: 10;
}
.hidden { display: none !important; }

.panel {
  background: linear-gradient(160deg, #0f1638, #1a1044);
  border: 1px solid rgba(160,180,255,0.35);
  box-shadow: 0 0 40px rgba(120,140,255,0.35), 0 0 80px rgba(80,60,200,0.2) inset;
  border-radius: 18px; padding: 28px 36px; text-align: center; max-width: 90vw; width: 420px;
}
.panel h1 { margin: 0 0 8px; font-size: 1.8em; letter-spacing: 2px;
  text-shadow: 0 0 12px #a8c0ff, 0 0 24px #7090ff; }
.panel h2 { margin-top: 0; }
.catface { font-family: monospace; font-size: 1.3em; line-height: 1.3; margin: 10px 0 18px;
  text-shadow: 0 0 8px #fff; }

.big-btn {
  display: block; width: 100%; margin: 10px 0; padding: 16px; font-size: 1.3em;
  border-radius: 14px; border: none; cursor: pointer;
  background: radial-gradient(circle at 30% 30%, #ffe9a8, #ffb84d);
  color: #40260a; font-weight: bold;
  box-shadow: 0 0 18px rgba(255,200,100,0.7), 0 4px 0 #b9781f;
}
.big-btn:active { transform: translateY(3px); box-shadow: 0 0 10px rgba(255,200,100,0.5); }

.small-btn {
  display: inline-block; margin: 8px 4px; padding: 8px 18px; font-size: 0.95em;
  border-radius: 10px; border: 1px solid rgba(200,210,255,0.4); cursor: pointer;
  background: rgba(255,255,255,0.06); color: #dfe6ff;
}
.small-btn:active { background: rgba(255,255,255,0.16); }

.hs { margin-top: 10px; color: #ffe9a8; text-shadow: 0 0 8px rgba(255,220,150,0.6); }
.hint { margin-top: 16px; font-size: 0.75em; opacity: 0.65; line-height: 1.4; }

label { display: block; margin: 14px 0; text-align: left; font-size: 0.95em; }
label input[type=range] { width: 100%; }
label select { width: 100%; padding: 6px; border-radius: 8px; margin-top: 4px; }
label.chk { display: flex; align-items: center; gap: 8px; }
label.chk input { width: auto; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#scoreBox {
  position: absolute; top: 14px; right: 18px; font-size: 1.4em;
  text-shadow: 0 0 10px rgba(150,180,255,0.8); transition: opacity 0.6s;
}
#comboVal { color: #ffd27a; font-size: 0.8em; }
#exitPaw {
  position: absolute; top: 10px; left: 10px; font-size: 1.6em; opacity: 0.35;
  pointer-events: auto; padding: 10px; touch-action: none;
}

.leashPrompt { position: absolute; top: 20%; width: 100%; text-align: center; font-size: 1.2em;
  text-shadow: 0 0 10px #fff; }
#lockL2 .big-btn { position: absolute; bottom: 12%; width: 260px; left: 50%; margin-left: -130px; }

#sessionSummary { margin: 10px 0 18px; font-size: 0.95em; line-height: 1.6; color: #cfe0ff; }
