* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  background: #1a1a2e;
  color: #eee;
}

#app {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

.lobby {
  text-align: center;
}

.lobby h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
}

#status-text {
  min-height: 1.5rem;
  margin: 1rem 0 1.5rem;
  font-size: 1.1rem;
  color: #a8dadc;
}

#play-button {
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  background: #e63946;
  color: #fff;
  cursor: pointer;
}

#play-button:hover {
  background: #d62839;
}

#play-button.hidden {
  display: none;
}

#status-text.win {
  color: #2ecc71;
}

#status-text.lose {
  color: #e74c3c;
}

body.in-game {
  align-items: stretch;
}

#app.game-mode {
  max-width: none;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.game {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 0;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f0f1a;
  cursor: crosshair;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.game-overlay.hidden {
  display: none;
}

#game-result-text {
  font-size: 2rem;
  margin: 0;
}

#game-result-text.win {
  color: #2ecc71;
}

#game-result-text.lose {
  color: #e74c3c;
}

#play-again-button {
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  background: #e63946;
  color: #fff;
  cursor: pointer;
}

#play-again-button:hover {
  background: #d62839;
}
