* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg0: #06121a;
  --neon: #2fe6ff;
  --neon2: #ff5d8f;
  --neon3: #ffd23f;
  --neon4: #7CFF6B;
  --ink: #eaf6ff;
  --sub: #6fa8b8;
}

html, body {
  height: 100%;
  background: radial-gradient(120% 80% at 50% 0%, #122a3f 0%, var(--bg0) 70%);
  color: var(--ink);
  font-family: "DungGeunMo", "Galmuri11", ui-monospace, "Apple SD Gothic Neo", monospace;
  -webkit-font-smoothing: none;
  overflow: hidden;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(6,18,26,.92), rgba(6,18,26,0));
  font-size: 13px; letter-spacing: .5px;
}
.topbar .back { color: var(--neon); text-decoration: none; opacity: .9; }
.topbar .back:hover { opacity: 1; text-shadow: 0 0 8px var(--neon); }
.topbar .brand { color: var(--ink); opacity: .8; font-size: 12px; }
.topbar .hs { color: var(--neon3); font-size: 12px; }

#stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  touch-action: none;
}

canvas#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  background: #06121a;
  box-shadow: 0 0 0 2px rgba(47,230,255,.25), 0 24px 60px rgba(0,0,0,.6),
              0 0 80px rgba(255,93,143,.10);
  border-radius: 6px;
  touch-action: none;
  cursor: pointer;
}

.hint {
  position: fixed; bottom: 14px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--sub); z-index: 20; pointer-events: none;
  text-shadow: 0 1px 2px #000; transition: opacity 1s;
  padding: 0 12px;
}

@media (max-width: 640px) {
  .topbar .brand { display: none; }
}
