:root {
  --color-green: #2e7d32;
  --color-red: #c62828;
  --color-border: #d9d9d9;
  --color-bg: #fafafa;
  --color-text: #222;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-bottom: 1px solid var(--color-border);
}

.site-header .brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.2rem;
}

.site-header nav a {
  margin-right: 0.75rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}

.player-badge {
  margin-left: auto;
  font-size: 0.9rem;
  color: #555;
}

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

footer {
  text-align: center;
  color: #888;
  padding: 2rem 1rem;
}

.messages {
  list-style: none;
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.message {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.message-success {
  background: #e6f4ea;
  color: var(--color-green);
}

.message-error {
  background: #fdecea;
  color: var(--color-red);
}

.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

form p {
  margin: 0.75rem 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

button, .button {
  display: inline-block;
  background: var(--color-text);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.1rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}

button:hover, .button:hover {
  opacity: 0.85;
}

.button.secondary {
  background: #eee;
  color: var(--color-text);
}

.button.danger {
  background: var(--color-red);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

.team-green {
  color: var(--color-green);
  font-weight: 600;
}

.team-red {
  color: var(--color-red);
  font-weight: 600;
}

.errorlist {
  list-style: none;
  padding: 0;
  color: var(--color-red);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.question-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.question-list-item:last-child {
  border-bottom: none;
}

.qrcode-image {
  display: block;
  margin: 1rem 0;
  max-width: 300px;
}
