/* Cookie Heist page shell — dtm.lol tokens (same as static/css/landing.css). The game itself draws everything else. */
:root {
  --bg: #000;
  --text: #e0e0e0;
  --text-dim: #888;
  --neon-green: #39ff14;
  --neon-pink: #ff2d95;
  --neon-cyan: #00e5ff;
  --neon-yellow: #ffe600;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "VT323", monospace;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#canvas {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
  outline: none;
  background: #000;
}

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 230, 0, 0.12), transparent 60%), #000;
  transition: opacity 0.35s;
  z-index: 2;
}
#loader.hide { opacity: 0; pointer-events: none; }

.ch-title {
  margin: 0;
  font-family: "Bangers", cursive;
  font-weight: 400;
  font-size: clamp(4rem, 17vw, 7.5rem);
  letter-spacing: 3px;
  line-height: 0.95;
  transform: rotate(-3deg);
  text-shadow: 4px 4px 0 var(--neon-cyan);
}
.ch-title .pink { color: var(--neon-pink); }
.ch-title .yellow { color: var(--neon-yellow); text-shadow: 4px 4px 0 var(--neon-pink); }
.ch-tag { margin: 0.6rem 0 1.6rem; font-family: "Permanent Marker", cursive; color: var(--neon-green); font-size: 1.5rem; }

.ch-bar {
  width: min(22rem, 80vw);
  height: 18px;
  border: 3px solid var(--neon-green);
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.45);
}
#bar-fill { width: 0; height: 100%; background: var(--neon-green); transition: width 0.2s; }

.ch-status { margin: 0.8rem 0 0; color: var(--neon-cyan); font-size: 1.5rem; }
.ch-status.err { color: var(--neon-pink); max-width: 28rem; }
.ch-tip { margin: 0.4rem 0 0; color: var(--neon-yellow); font-size: 1.3rem; max-width: 26rem; min-height: 3.2em; }

.back-link {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 14px;
  z-index: 3;
  font-family: "Bangers", cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
  transition: opacity 0.3s, color 0.2s;
}
.back-link span { color: var(--neon-pink); }
.back-link:hover { color: var(--neon-cyan); }
.back-link.hide { opacity: 0; pointer-events: none; }

.seo-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
