* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background: #fff;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Noto Sans JP', 'Noto Sans', sans-serif;
}

#gameCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#ui {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

#score-area {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#score {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -1px;
}

#combo-display {
  font-size: 1.1rem;
  color: #e44;
  font-weight: 700;
  min-width: 80px;
  text-align: left;
}

#level-display {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

#center-kanji {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(0,0,0,0.06);
  transition: font-size 0.3s ease, opacity 0.3s ease;
  white-space: nowrap;
}

#game-over {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#game-over.hidden {
  display: none;
}

.go-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
  border: 2px solid #111;
  background: #fff;
}

.go-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
}

.go-score {
  font-size: 1.4rem;
  color: #333;
}

.go-best {
  font-size: 1rem;
  color: #888;
}

#restart-btn {
  margin-top: 8px;
  padding: 14px 40px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.05em;
}