* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1e293b;
  position: sticky;
  top: 0;
  font-size: 16px;
}
.topbar .team { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .score b { color: #facc15; }

.card { max-width: 640px; margin: 0 auto; padding: 24px 16px 64px; }
.muted { color: #94a3b8; }
h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 24px; }

.options { display: flex; flex-direction: column; gap: 12px; }
.options button {
  font-size: 18px;
  line-height: 1.35;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.options button:hover:not(:disabled) { background: #334155; }
.options button:disabled { opacity: .55; cursor: default; }

label { display: block; margin-bottom: 8px; color: #94a3b8; }
input {
  width: 100%;
  font-size: 18px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  margin-bottom: 16px;
}
.primary {
  width: 100%;
  font-size: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 0;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
.primary:hover { background: #1d4ed8; }
.danger {
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #b91c1c;
  background: #7f1d1d;
  color: #fff;
  cursor: pointer;
}
.danger:hover:not(:disabled) { background: #991b1b; }
.danger:disabled { opacity: .6; cursor: default; }
.error { color: #fca5a5; }

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, .85);
  z-index: 10;
}
.overlay[hidden] { display: none; }
.overlay-card { text-align: center; padding: 48px 32px; border-radius: 16px; width: min(90vw, 420px); }
.overlay-card.ok { background: #14532d; }
.overlay-card.bad { background: #7f1d1d; }
.overlay-card.neutral { background: #1e293b; }
.mark { font-size: 96px; line-height: 1; font-weight: 700; }
.big { font-size: 32px; margin-top: 16px; font-weight: 600; }

table.board { width: 100%; border-collapse: collapse; margin-top: 8px; }
table.board th, table.board td { padding: 10px 8px; border-bottom: 1px solid #1e293b; text-align: left; }
table.board th { color: #94a3b8; font-weight: 600; }
table.board td:last-child, table.board th:last-child { text-align: right; }
h2 { margin-top: 32px; font-size: 20px; }
