@font-face {
  font-family: MontserratLocal;
  src: url("/assets/iem/montserrat-regular.ttf");
}

@font-face {
  font-family: MontserratLocal;
  src: url("/assets/iem/montserrat-bold.ttf");
  font-weight: 800;
}

:root {
  color-scheme: dark;
  --bg: #05050a;
  --panel: #10121b;
  --panel-2: #171927;
  --line: rgba(255, 255, 255, .14);
  --text: #f8f8ff;
  --muted: #aeb3c7;
  --pink: #f52986;
  --blue: #35a8ff;
  --yellow: #d7ff32;
  --gold: #ffd166;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: MontserratLocal, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 10, .82);
  backdrop-filter: blur(16px);
}

.brand, nav, .hero-actions, .watch, .button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand img { width: 44px; height: 44px; object-fit: contain; }

nav { gap: 18px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }

.watch, .button {
  min-height: 44px;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.button.primary, .watch {
  border-color: transparent;
  background: linear-gradient(90deg, var(--pink), #7b4bff 55%, var(--blue));
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: end;
  padding: 118px clamp(18px, 5vw, 76px) 44px;
  background:
    linear-gradient(90deg, rgba(5, 5, 10, .98) 0%, rgba(5, 5, 10, .72) 47%, rgba(5, 5, 10, .18) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 10, .1) 30%),
    url("/assets/iem/brand-kit.png") center / cover;
}

.hero-copy { max-width: 850px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(54px, 10vw, 138px);
  line-height: .82;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .92;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 14px;
  font-size: 20px;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  color: #dce1f5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.score-card {
  border: 1px solid var(--line);
  background: rgba(16, 18, 27, .82);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.score-card p {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.versus {
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

.versus img {
  height: 74px;
  object-fit: contain;
}

.versus strong {
  color: var(--pink);
  text-align: center;
  font-size: 42px;
}

.score-card span { color: var(--muted); line-height: 1.5; }

.ticker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 76px);
  transform: translateY(-28px);
  border: 1px solid var(--line);
  background: var(--line);
}

.ticker div {
  padding: 22px;
  background: rgba(16, 18, 27, .96);
}

.ticker b {
  display: block;
  color: var(--gold);
  font-size: 34px;
}

.ticker span, .match span, .match em, .rules, .map-pool span, footer, .cta p {
  color: var(--muted);
}

.section {
  padding: 54px clamp(18px, 5vw, 76px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.bracket {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 16px;
}

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

.round.featured { background: linear-gradient(180deg, rgba(245, 41, 134, .18), var(--panel)); }
.round.final { background: linear-gradient(180deg, rgba(215, 255, 50, .16), var(--panel)); }

.match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 88px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.match span, .match strong {
  grid-column: 1 / -1;
}

.match strong {
  justify-self: start;
  color: var(--yellow);
  font-size: 13px;
}

.match b:last-of-type { text-align: right; }
.match em { font-style: normal; font-size: 12px; }

.trophy {
  min-height: 260px;
  align-content: center;
}

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

.team-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.team-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 10, .96), rgba(5, 5, 10, .08));
}

.team-card.purple { border-color: rgba(123, 75, 255, .55); }
.team-card.yellow { border-color: rgba(215, 255, 50, .45); }

.team-bg {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.team-card > div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.team-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 14px;
}

.team-card h3 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 54px);
}

.team-card p { color: #dfe4f7; }

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1fr);
  gap: 28px;
}

.rules {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
  line-height: 1.6;
}

.rules li {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.map-pool {
  display: grid;
  gap: 14px;
}

.map-pool article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px 18px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.map-pool img {
  grid-row: span 2;
  width: 86px;
  filter: invert(1);
}

.map-pool b {
  font-size: 28px;
  text-transform: uppercase;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.media-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 40px clamp(18px, 5vw, 76px) 70px;
  padding: 34px;
  border: 1px solid rgba(245, 41, 134, .44);
  background:
    linear-gradient(90deg, rgba(245, 41, 134, .16), rgba(53, 168, 255, .12)),
    var(--panel);
}

.cta p { max-width: 760px; line-height: 1.5; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  nav, .watch { display: none; }
  .hero, .bracket, .teams, .split, .media-grid { grid-template-columns: 1fr; }
  .score-card { max-width: 440px; }
  .ticker { grid-template-columns: repeat(2, 1fr); transform: none; margin-top: 18px; }
  .section-head, .cta, footer { align-items: flex-start; flex-direction: column; }
  .team-card, .team-bg { min-height: 430px; }
}

@media (max-width: 560px) {
  .topbar { padding: 10px 14px; }
  .brand span { font-size: 12px; }
  .hero { min-height: 82vh; padding: 92px 14px 30px; }
  .ticker, .media-grid { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 54px 1fr 54px; }
  .versus strong { font-size: 32px; }
  .section { padding: 42px 18px; }
  .match { grid-template-columns: 1fr; }
  .match b:last-of-type { text-align: left; }
  .map-pool article { grid-template-columns: 64px 1fr; }
  .map-pool img { width: 64px; }
  .media-grid img { height: 300px; }
  .cta { margin: 20px 18px 50px; padding: 22px; }
}
