* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e8eefc;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app {
  width: 100%;
  max-width: 760px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.subtitle {
  margin: 0 0 18px;
  opacity: 0.85;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.choice {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #e8eefc;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}

.choice:hover {
  background: rgba(255,255,255,0.14);
}

.choice:active {
  transform: scale(0.98);
}

.panel {
  padding: 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.value {
  font-size: 18px;
  font-weight: 700;
}

.result {
  margin: 10px 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.score {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-label {
  font-size: 12px;
  opacity: 0.85;
}

.score-value {
  font-size: 16px;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #e8eefc;
  cursor: pointer;
}

.actions button:hover {
  background: rgba(255,255,255,0.14);
}

.actions .danger {
  border-color: rgba(255, 120, 120, 0.45);
}

.footer {
  margin-top: 14px;
  opacity: 0.75;
}
