:root {
  color-scheme: dark;
  color: #eef2ff;
  background: #0b1220;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #2d3f70 0%, #0b1220 44%);
}

.page-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(19, 32, 64, 0.86);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #7dd3fc;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.05;
}

.hero p {
  max-width: 540px;
  color: #cbd5e1;
  margin-top: 16px;
  line-height: 1.75;
}

.logo-card {
  min-width: 180px;
  align-self: center;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.18), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(125, 211, 252, 0.18);
  color: #fafbff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.prediction-panel,
.stats-panel {
  padding: 28px;
  border-radius: 26px;
  background: rgba(12, 21, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.prediction-panel h2,
.stats-panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-weight: 600;
}

select,
input[type='number'] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #fbfbff;
  font-size: 1rem;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

#predictButton {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #fff;
}

button.secondary {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.result-card {
  margin-top: 28px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.result-card h3 {
  margin: 0 0 10px;
}

.result-card p {
  margin: 0;
  line-height: 1.8;
  color: #e2e8f0;
}

.stats-grid {
  display: grid;
  gap: 16px;
}

.stats-grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.stats-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
}

.stats-grid p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.bracket-panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: 26px;
  background: rgba(12, 21, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.bracket-panel h2 {
  margin-top: 0;
  margin-bottom: 22px;
  font-size: 1.5rem;
}

.bracket-grid {
  display: grid;
  gap: 22px;
}

.bracket-match {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.bracket-match h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

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

.bracket-result-card {
  margin-top: 22px;
}

.teams-panel,
.schedule-panel {
  margin-top: 28px;
  padding: 28px;
  border-radius: 26px;
  background: rgba(12, 21, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.teams-panel h2,
.schedule-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.section-copy {
  margin: 0 0 18px;
  color: #cbd5e1;
  max-width: 720px;
}

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.group-card {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.group-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.group-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.group-card li {
  margin-bottom: 8px;
  color: #e2e8f0;
}

.schedule-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.schedule-table th,
.schedule-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-table th {
  font-weight: 700;
  color: #e2e8f0;
}

.schedule-table td {
  color: #cbd5e1;
}

.schedule-table tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 860px) {
  .group-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
  }

  .schedule-table {
    min-width: 100%;
  }

  .bracket-row {
    grid-template-columns: 1fr;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }

  .bracket-row {
    grid-template-columns: 1fr;
  }
}
