:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8f4;
  color: #151915;
  --green: #1f7a45;
  --deep: #092015;
  --lime: #c8f24a;
  --line: #dfe5da;
  --muted: #647064;
  --yellow: #f7c948;
  --blue: #235bd8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  fill: none;
  height: 1.1em;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.1em;
}

main {
  min-height: 100vh;
  overflow-x: hidden;
}

.topbar {
  align-items: center;
  background: rgba(246, 248, 244, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  padding: 16px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--deep);
  border: 2px solid var(--lime);
  color: var(--lime);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

nav a {
  border-radius: 999px;
  color: #394339;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

nav a:hover {
  background: #eaf0e6;
}

.icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hero {
  background:
    linear-gradient(120deg, rgba(9, 32, 21, 0.94), rgba(13, 83, 45, 0.86)),
    radial-gradient(circle at 74% 12%, rgba(200, 242, 74, 0.42), transparent 30%),
    url("https://images.unsplash.com/photo-1517927033932-b3d18e61fb3a?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.7fr);
  min-height: calc(100vh - 75px);
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.hero-copy {
  align-self: center;
  max-width: 820px;
}

.live-pill {
  align-items: center;
  background: rgba(200, 242, 74, 0.14);
  border: 1px solid rgba(200, 242, 74, 0.45);
  color: var(--lime);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  padding: 9px 12px;
}

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

h1 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
  margin-top: 22px;
  max-width: 880px;
}

.hero-copy p {
  color: #e1eadc;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin-top: 24px;
  max-width: 720px;
}

.search-panel {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  color: var(--deep);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 34px;
  max-width: 780px;
  padding: 10px;
}

.search-panel input {
  border: 0;
  color: var(--deep);
  min-width: 0;
  outline: 0;
  padding: 14px 0;
}

.search-panel button,
.alert-panel button {
  background: var(--lime);
  border: 0;
  color: var(--deep);
  font-weight: 900;
  padding: 14px 20px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-filters button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
}

.quick-filters .active {
  background: #fff;
  color: var(--deep);
}

.hero-board {
  align-self: end;
  background: rgba(5, 15, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  padding: 18px;
}

.board-header,
.pulse-card,
.event-card,
.match-row,
.platform-row,
.panel-title,
.section-heading,
.stat,
.event-meta,
.event-kicker {
  display: flex;
}

.board-header {
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.board-header span {
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-header strong {
  font-size: 22px;
}

.pulse-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--lime);
  gap: 14px;
  justify-content: space-between;
  margin-top: 10px;
  padding: 14px;
}

.pulse-card strong,
.pulse-card span {
  display: block;
}

.pulse-card span {
  color: #cfd8ca;
  font-size: 13px;
  margin-top: 3px;
}

.pulse-card em {
  color: var(--yellow);
  flex: 0 0 auto;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.stats-band {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  align-items: center;
  background: #fff;
  gap: 10px;
  min-width: 0;
  padding: 18px clamp(14px, 3vw, 32px);
}

.stat svg {
  color: var(--green);
  flex: 0 0 auto;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.stat strong {
  font-size: 28px;
  margin-left: auto;
}

.content-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding: 36px clamp(18px, 4vw, 56px) 64px;
}

.section-heading {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.panel h2 {
  color: var(--deep);
  font-size: 26px;
  letter-spacing: 0;
}

.text-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--green);
  display: inline-flex;
  font-weight: 900;
  gap: 4px;
}

.event-list {
  display: grid;
  gap: 14px;
}

.empty-state {
  background: #fff;
  border: 1px dashed #bfccb8;
  color: var(--muted);
  font-weight: 800;
  padding: 28px;
  text-align: center;
}

.event-card {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 220px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.event-main {
  min-width: 0;
}

.event-kicker {
  align-items: center;
  gap: 10px;
}

.event-kicker span,
.event-kicker b {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-kicker span {
  color: var(--blue);
}

.event-kicker b {
  background: #eef7e6;
  color: var(--green);
  padding: 5px 8px;
}

.event-card h3 {
  color: var(--deep);
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-top: 10px;
}

.event-card p {
  color: var(--muted);
  font-weight: 700;
  margin-top: 8px;
}

.event-card .risk-note {
  border-left: 3px solid var(--yellow);
  color: #556055;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 14px;
  padding-left: 10px;
}

.event-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.event-meta span {
  align-items: center;
  background: #f1f4ef;
  color: #354035;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 6px;
  padding: 8px 10px;
}

.event-deadline {
  align-self: stretch;
  background: #f7faf2;
  border: 1px solid #e6eddc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

.event-deadline span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-deadline strong {
  color: var(--deep);
  line-height: 1.2;
  margin-top: 8px;
}

.event-deadline button {
  align-items: center;
  align-self: flex-start;
  background: var(--deep);
  border: 0;
  color: var(--lime);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  margin-top: 16px;
  width: 38px;
}

.heat {
  background: #edf1ea;
  bottom: 0;
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.heat span {
  background: linear-gradient(90deg, var(--green), var(--lime));
  display: block;
  height: 100%;
  width: var(--heat);
}

.side-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}

.panel-title {
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.panel-title svg {
  color: var(--green);
}

.panel-title h2 {
  font-size: 19px;
}

.match-row,
.platform-row {
  align-items: center;
  border-top: 1px solid var(--line);
  gap: 12px;
  padding: 14px 0;
}

.match-row:first-of-type,
.platform-row:first-of-type {
  border-top: 0;
}

.match-row div,
.platform-row div {
  min-width: 0;
}

.match-row strong,
.platform-row strong,
.match-row span,
.platform-row span {
  display: block;
}

.match-row strong,
.platform-row strong {
  color: var(--deep);
  font-size: 15px;
}

.match-row span,
.platform-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.match-row b {
  background: #fff5cf;
  color: #8a6400;
  font-size: 12px;
  margin-left: auto;
  padding: 6px 8px;
}

.grade {
  align-items: center;
  background: var(--deep);
  color: var(--lime);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.alert-panel {
  background: var(--deep);
  color: #fff;
}

.alert-panel svg {
  color: var(--lime);
}

.alert-panel h2 {
  color: #fff;
  margin-top: 12px;
}

.alert-panel p {
  color: #cfd8ca;
  line-height: 1.5;
  margin-top: 10px;
}

.alert-panel button {
  margin-top: 18px;
  width: 100%;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-board {
    align-self: stretch;
  }

  .stats-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-deadline {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
  }

  .event-deadline button {
    align-self: center;
    grid-row: 1 / span 2;
    justify-self: end;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 12px 14px;
  }

  .brand small {
    display: none;
  }

  .hero,
  .content-grid {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    gap: 28px;
    padding-top: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .search-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-panel button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 16px 14px;
  }

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

  .section-heading h2 {
    font-size: 23px;
  }

  .event-card {
    padding: 16px;
  }

  .event-card h3 {
    font-size: 24px;
  }

  .pulse-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
