:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: #f1f1f1;
  color: #0b2545;
}

.layout {
  display: flex;
  gap: 24px;
  padding: 20px;
  max-width: 1200px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 720px;
  width: 95%;
  flex: 2;
  box-shadow: 0 8px 24px rgba(123, 123, 123, 0.08);
}

.rules {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 720px;
  flex: 1;
  box-shadow: 0 8px 24px rgba(123, 123, 123, 0.08);
}

h1 {
  margin: 0 0 10px;
  font-size: 20px;
}

.top-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.info {
  font-size: 14px;
  color: #334155;
}

.dice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.die {
  font-size: 40px;
  color: black;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.die.held {
  outline: 3px solid #ffd166;
  background: #e9e9e9;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button.secondary {
  background: #6b7280;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.scoreboard {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 12px;
}

.player-box {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  background: #f1f5f9;
}

.result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #ecfeff;
  color: #ffffff;
}

small {
  color: #64748b;
}

.muted {
  color: #64748b;
  font-size: 13px;
}
