:root {
  --bg: #070808;
  --panel: #151719;
  --panel-2: #202327;
  --steel: #aeb5b8;
  --muted: #7e888d;
  --text: #eef2f1;
  --red: #e62828;
  --red-dark: #7b1111;
  --line: #343a3f;
  --green: #5ff090;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(230, 40, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 40, 40, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, #202327, var(--bg) 45%);
  background-size: 100% 38px, 38px 100%, auto;
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  min-height: 360px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 48px clamp(20px, 6vw, 72px);
  border-bottom: 1px solid var(--red-dark);
  background-image:
    linear-gradient(90deg, rgba(7, 8, 8, 0.94), rgba(7, 8, 8, 0.76), rgba(7, 8, 8, 0.42)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 6px),
    url("/assets/industrial-football-control-room.png");
  background-position: center;
  background-size: cover;
}

.site-header.compact {
  min-height: 240px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 700;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.intro {
  max-width: 720px;
  color: var(--steel);
  font-size: 1.1rem;
  line-height: 1.5;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 48px;
}

.shell.narrow {
  width: min(860px, calc(100% - 32px));
}

.status-grid,
.prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.panel,
.section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(32, 35, 39, 0.96), rgba(13, 14, 15, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.panel {
  padding: 18px;
}

.panel.strong {
  margin-bottom: 18px;
  border-color: var(--red-dark);
}

.section {
  margin-top: 16px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.scanline {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--red), transparent);
}

.label,
.muted {
  color: var(--muted);
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--steel);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

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

.button.ghost:hover,
.button.primary:hover {
  box-shadow: 0 0 24px rgba(230, 40, 40, 0.36);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 0.84rem;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #090a0b;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

select[multiple] {
  min-height: 172px;
}

input:focus,
select:focus {
  outline: 1px solid var(--red);
}

.wide {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.login-row {
  display: flex;
  align-items: end;
  gap: 12px;
}

.login-row label {
  flex: 1;
}

.prediction-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(7, 8, 8, 0.64);
}

.prediction-card.submitted {
  border-color: rgba(95, 240, 144, 0.72);
  background: linear-gradient(180deg, rgba(22, 58, 36, 0.78), rgba(7, 8, 8, 0.72));
}

.prediction-card h3 {
  margin-bottom: 10px;
  color: var(--green);
}

.prediction-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.prediction-card dt {
  color: var(--muted);
}

.prediction-card dd {
  margin: 0;
}

.message {
  margin-top: 16px;
  color: var(--green);
}

.message.error {
  color: #ff6969;
}

.confirmation {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.confirmation h2 {
  max-width: 680px;
  color: var(--text);
}

.bradley-stage {
  position: relative;
  width: min(260px, 100%);
  min-height: 260px;
  display: grid;
  place-items: center;
}

.bradley-stage img {
  max-width: 180px;
  width: 70%;
  border: 1px solid var(--line);
  background: #d9dddf;
  box-shadow: 0 0 28px rgba(230, 40, 40, 0.22);
}

.speech-bubble {
  position: absolute;
  left: 58%;
  top: 32%;
  max-width: 150px;
  padding: 12px 16px;
  border: 1px solid var(--red);
  background: var(--text);
  color: #0a0b0c;
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(230, 40, 40, 0.36);
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -12px;
  bottom: 12px;
  width: 20px;
  height: 20px;
  background: var(--text);
  border-left: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  transform: rotate(45deg);
}

.thanks {
  margin: 0;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 330px;
    display: block;
  }

  .site-header .button {
    margin-top: 18px;
  }

  .status-grid,
  .prediction-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .login-row {
    display: grid;
  }
}
