:root {
  --bg: #cfe8f6; /* light blue/gray */
  --panel: rgba(255, 255, 255, 0.75);
  --border: rgba(0, 0, 0, 0.12);
  --text: rgba(0, 0, 0, 0.85);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

.wrap {
  min-height: 100%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.hud {
  width: min(96vw, 600px);
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 700;
}

#game {
  width: min(96vw, 600px);
  height: auto;
  background: #e9f5fb;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  touch-action: manipulation;
}

.below {
  width: min(96vw, 600px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message {
  font-weight: 600;
}

.btn {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  font-weight: 700;
  cursor: pointer;
}

.btn:active {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn:active {
    transform: none;
  }
}
