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

:root {
  --sky0: #d7f0ff;
  --sky1: #9ed4f5;
  --snow: #f4fbff;
  --ice: #6fb6e6;
  --accent: #ff4d5e;
  --ink: #16324a;
  --sub: #5f8bab;
}

html, body {
  height: 100%;
  background:
    radial-gradient(120% 70% at 50% 0%, #eafaff 0%, #bfe6ff 55%, #8cc7ee 100%);
  color: var(--ink);
  font-family: "DungGeunMo", "Galmuri11", ui-monospace, "Apple SD Gothic Neo", monospace;
  -webkit-font-smoothing: none;
  overflow: hidden;
  touch-action: none;
  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(215,240,255,.95), rgba(215,240,255,0));
  font-size: 13px; letter-spacing: .5px;
}
.topbar .back { color: var(--accent); text-decoration: none; font-weight: 700; opacity: .95; }
.topbar .back:hover { opacity: 1; text-shadow: 0 0 8px rgba(255,77,94,.5); }
.topbar .brand { color: var(--ink); opacity: .85; font-size: 12px; }
.topbar .hs { color: var(--ink); font-size: 12px; }
.topbar .hs b { color: var(--accent); }

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

canvas#game {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  background: #cdeaff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 24px 60px rgba(28,70,110,.35),
              0 0 80px rgba(140,199,238,.4);
  border-radius: 10px;
  touch-action: none;
}

.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 rgba(255,255,255,.7);
}

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