body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  /* improved dark purple gradient: subtle radial highlights over a deep linear base */
  background-color: #12031a; /* fallback */
  background-image:
    radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.14) 0%, rgba(138, 43, 226, 0.04) 25%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(72, 14, 116, 0.12) 0%, rgba(72, 14, 116, 0.03) 30%, transparent 60%),
    linear-gradient(135deg, #12031a 0%, #2a0833 42%, #4a1f7a 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  color: #e6e6f0;
  margin: 0;
  padding: 2rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container {
  /* increased width for management page and general layout */
  max-width: 1020px;
  margin: 0 auto;
}
h1 {
  margin-bottom: 1rem;
  color: #f8f7ff;
}
/* scoreboard panel */
main.container > table,
.panel {
  width: 100%;
  border-collapse: collapse;
  background: rgba(12, 7, 23, 0.55); /* translucent dark panel */
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #e9e6ff;
}
th {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  font-weight: 600;
  color: #f3edf9;
}
.num { text-align: center; }
.total { font-weight: 700; color: #fff; }

/* keep player column left-aligned, center all other columns (rounds + total) */
th:first-child,
td:first-child {
  text-align: left;
}
th:not(:first-child),
td:not(:first-child) {
  text-align: center;
}

/* subtle row hover for clarity */
tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

/* responsive tweaks */
@media (max-width: 540px) {
  th, td { padding: 0.6rem 0.6rem; }
  .container { padding: 0 1rem; }
}

/* buttons */
.btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: #f3edf9;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.04);
}
.btn.primary {
  background: linear-gradient(180deg, rgba(100, 46, 255, 0.18), rgba(80, 34, 220, 0.18));
  border: 1px solid rgba(120, 80, 255, 0.25);
}
.btn.danger {
  background: rgba(255,50,80,0.08);
  border: 1px solid rgba(255,50,80,0.12);
  color: #ffd7d9;
}

/* forms */
.form-inline input[type="text"],
.form-inline input[type="number"],
input[type="text"],
input[type="number"] {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  color: #f3edf9;
  padding: 0.45rem 0.6rem;
  margin-right: 0.5rem;
  border-radius: 6px;
}

/* Make numeric input fields smaller and centered */
input[type="number"] {
  width: 12.5ch;
  min-width: 10.5ch;
  max-width: 12.5rem;
  box-sizing: border-box;
  text-align: center;
}

.form-inline input[type="number"] {
  width: 5.5ch;
}

@media (max-width: 540px) {
  input[type="number"] { width: 4.5ch; }
}

.panel { padding: 1rem 1rem 1.25rem 1rem; margin-bottom: 1rem; }
.actions { white-space: nowrap; }
