html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
}
.wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px;
  box-sizing: border-box;
}
.center { text-align: center; }
.title { margin: 8px 0 4px; color: #1A74BA; }
.subtitle { margin: 0 0 12px; font-weight: 600; }
.dice-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.dice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
}
.holds-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  font-size: 13px;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}
button {
  padding: 8px 16px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background: #1A74BA;
  color: #fff;
  cursor: pointer;
}
button:active { opacity: 0.85; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  border: 1px solid #d1d5db;
  padding: 8px;
  text-align: left;
  font-size: 14px;
}
th { background: #e5edf5; }
.cell { cursor: pointer; }
.cell:hover { background: #dbeafe; }
.strike {
  text-decoration: line-through;
  cursor: default;
  background-color: #e5e7eb;
  color: #6b7280;
}
input { margin: 4px; }
@media (max-width: 420px) {
  .dice { width: 40px; height: 40px; font-size: 18px; }
  th, td { padding: 6px; font-size: 13px; }
}
