:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: #000000;
  --border: #2a2a2a;
  --text: #e8e9ec;
  --muted: #9aa0ac;
  --accent: #ff2500;
  --good: #4caf6f;
  --bad: #e0575a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(#a52a2d 2px, var(--bg) 3px);
  background-size: 12px 12px;
  background-attachment: fixed;
  animation: moveBackground 120s linear infinite;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text);
  min-height: 100vh;
}

@keyframes moveBackground {
  from { background-position: 100%; }
  to { background-position: 0; }
}

a { color: inherit; }

header, footer {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 12vh;
  background-color: var(--bg);
}

header { justify-content: flex-start; padding: 0 1.25rem; }
footer { justify-content: center; gap: 1.5rem; padding: 1rem 0; }

.wordmark {
  color: var(--accent);
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  user-select: none;
}

.footer-links a { color: var(--accent); font-size: 2em; line-height: 0; }
.footer-links a:hover { opacity: 0.8; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent);
  background: black;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.status-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.online { background: var(--good); }
.status-dot.offline { background: var(--bad); }

#players-list {
  color: var(--muted);
  font-size: 0.9rem;
}

button {
  font: inherit;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
button:hover { opacity: 0.85; }
button:disabled { opacity: 0.6; cursor: default; }

form { display: grid; gap: 0.75rem; margin-top: 0.5rem; }

label { font-size: 0.9rem; color: var(--muted); }

input, textarea {
  font: inherit;
  background: #0a0a0a;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  width: 100%;
}

/* honeypot -- hidden from real users, left in the tab order for bots that fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message { font-size: 0.9rem; }
.form-message.error { color: var(--bad); }
.form-message.success { color: var(--good); }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.state-pending { color: #d9a441; }
.state-approved { color: var(--good); }
.state-denied { color: var(--bad); }
.row-actions button { margin-right: 0.4rem; padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.deny-btn { background: var(--bad); color: white; }

::selection {
  color: var(--accent);
  background-color: white;
}
