:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  background: radial-gradient(circle at 20% 20%, #fce9ff 0%, #e6e9ff 38%, #d2e8ff 72%, #d4d6ff 100%);
}

canvas {
  display: block;
  touch-action: none;
}

.hud {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: min(94vw, 540px);
  padding: 0.95rem 1rem;
  background: rgb(255 255 255 / 74%);
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgb(106 78 155 / 22%);
  backdrop-filter: blur(9px);
}

h1 {
  margin: 0;
  font-size: 1.06rem;
}

p {
  margin: 0.34rem 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: #3e454f;
}

#status,
#stage {
  color: #1e8f74;
}

#hint {
  color: #af6832;
}

.stage-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
  margin-top: 0.58rem;
}

.stage-jump button {
  border: 0;
  border-radius: 999px;
  background: #2fbb9a;
  color: #fff;
  font-size: 0.76rem;
  padding: 0.42rem 0.68rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgb(47 187 154 / 32%);
}

@media (max-width: 700px) {
  .hud {
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(95vw, 640px);
    padding: 0.8rem 0.88rem;
  }

  p {
    font-size: 0.79rem;
  }

  .stage-jump button {
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
  }
}
