:root {
  color-scheme: dark;
  --bg: #080b13;
  --panel: #111827;
  --panel-2: #172033;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #2b7fff;
  --orange: #ff6b00;
  --green: #22c55e;
  --amber: #fbbf24;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #07111f 0%, var(--bg) 100%);
  color: var(--text);
}

button, input, textarea {
  font: inherit;
}

.app-shell {
  width: min(440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.hero {
  display: grid;
  gap: 18px;
  padding: 28px 18px 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(8, 11, 19, 0.82)),
    url("assets/traintoday-cartell.jpg") center top / cover;
  min-height: 300px;
  align-content: end;
}

.brand-logo {
  width: 220px;
  max-width: 84%;
}

.eyebrow {
  margin: 0 0 6px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.02;
}

#eventMeta {
  margin-top: 8px;
  color: #dbeafe;
  font-size: 14px;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(8, 11, 19, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.tab.active {
  color: white;
  background: rgba(43, 127, 255, 0.22);
}

.view {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.card h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p, .muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section-title {
  color: #e2e8f0;
  font-size: 13px;
  text-transform: uppercase;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.status-row:first-of-type {
  margin-top: 10px;
}

.status-row strong {
  color: var(--text);
  text-align: right;
}

.ordered-list {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1;
  margin-bottom: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #bfdbfe;
  background: rgba(43, 127, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.match {
  display: grid;
  gap: 8px;
}

.match-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-weight: 800;
}

.team-row.pending {
  color: var(--muted);
}

.score {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.sponsor {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}

.sponsor img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 5px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: white;
  background: #0b1220;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.4;
}

.primary {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-weight: 900;
}

.secondary {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  background: transparent;
  font-weight: 900;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.notice {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.09);
}
