@font-face {
  font-family: "Relidux";
  src: url("../fonts/Relidux.otf") format("opentype");
  font-display: swap;
}

:root {
  --bg: #050816;
  --bg-top: #66737a;
  --bg-mid: #4a575f;
  --bg-low: #1a242b;
  --bg-bottom: #050816;
  --ink: #f6e5b9;
  --muted: #a89b80;
  --live: #ff1d28;
  --twitch: #9146ff;
  --card-w: clamp(136px, 9.5vw, 178px);
  --slot-w: clamp(104px, 7.25vw, 138px);
  --slot-gap: clamp(0.9rem, 1.55vw, 1.75rem);
  --pill-w: clamp(13rem, calc(var(--card-w) * 1.6), 18rem);
  --pill-h: clamp(2.24rem, calc(var(--card-w) * 0.245), 2.76rem);
  --row-gap: clamp(4rem, 8vh, 7.25rem);
  --brand-w: clamp(240px, 20vw, 405px);
  --brand-anchor-shift: calc(var(--brand-w) * 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(
      180deg,
      var(--bg-top) 0%,
      var(--bg-mid) 45%,
      var(--bg-low) 72%,
      var(--bg-bottom) 100%
    );
  background-size: 42px 42px, 42px 42px, auto;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.1;
  mix-blend-mode: soft-light;
}

.site-header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.4rem);
  padding: clamp(0.8rem, 1.7vh, 1.5rem) clamp(1rem, 3vw, 3rem) clamp(0.8rem, 2vh, 1.8rem);
  overflow: hidden;
}

.brand-lockup {
  grid-column: 2;
  justify-self: center;
  display: block;
  width: var(--brand-w);
  max-width: 92vw;
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.72));
  transform: translateX(var(--brand-anchor-shift));
  user-select: none;
  -webkit-user-drag: none;
}

.status-legend {
  grid-column: 3;
  justify-self: end;
  width: clamp(14.5rem, 17vw, 19.5rem);
  padding: clamp(0.72rem, 0.8vw, 0.95rem) clamp(0.8rem, 1vw, 1.15rem);
  font-family: "Relidux", Impact, Haettenschweiler, "Arial Black", sans-serif;
  color: #080808;
  background:
    linear-gradient(145deg, rgba(255, 249, 229, 0.94), rgba(224, 197, 143, 0.92)),
    #efd9ab;
  border: 3px solid #090909;
  border-radius: 8px;
  box-shadow:
    0 0.78rem 1.15rem rgba(0, 0, 0, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.legend-row {
  display: grid;
  grid-template-columns: 2.05rem 1fr;
  align-items: center;
  gap: 0.76rem;
  min-height: 2rem;
}

.legend-row + .legend-row {
  margin-top: 0.44rem;
}

.legend-label {
  font-size: clamp(0.88rem, 0.86vw, 1.08rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.legend-swatch {
  display: block;
  justify-self: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border: 3px solid #080808;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0.12rem 0 rgba(0, 0, 0, 0.28);
}

.legend-swatch--online {
  background: #13bd4a;
}

.legend-swatch--offline {
  background: #ff1d28;
}

.legend-swatch--eliminated {
  background: #b8b8b8;
}

.legend-crown {
  justify-self: center;
  width: 2rem;
  height: auto;
  filter:
    drop-shadow(0 0.08rem 0 rgba(0, 0, 0, 0.72))
    drop-shadow(0 0.15rem 0.18rem rgba(0, 0, 0, 0.34));
}

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 2vh, 2rem) 1.5rem 5rem;
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(7, var(--slot-w));
  gap: var(--row-gap) var(--slot-gap);
  align-items: start;
  justify-items: center;
  justify-content: center;
  width: min(1280px, 100%);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.86rem;
  justify-items: center;
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 1rem clamp(2rem, 4vh, 3.5rem);
  color: rgba(246, 229, 185, 0.84);
  text-align: center;
}

.footer-disclaimer {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(0.76rem, 0.78vw, 0.92rem);
  line-height: 1.55;
  text-shadow: 0 0.18rem 0.32rem rgba(0, 0, 0, 0.48);
}

.footer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.68rem;
  font-family: "Relidux", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(0.82rem, 0.86vw, 1rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f6e5b9;
}

.discord-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #f6e5b9;
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.discord-profile:hover,
.discord-profile:focus-visible {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 0.42rem rgba(88, 101, 242, 0.54));
}

.discord-profile img {
  display: block;
  width: 1.18rem;
  height: auto;
}

.streamer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: var(--grid-col);
  grid-row: var(--grid-row);
  justify-self: center;
  width: var(--card-w);
  min-height: calc(var(--card-w) * 1.32);
}

.banner-link {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  outline: none;
}

.banner-link:focus-visible .streamer-banner {
  filter:
    drop-shadow(0 0 0.6rem rgba(246, 229, 185, 0.92))
    drop-shadow(0 1.1rem 1rem rgba(0, 0, 0, 0.75));
}

.streamer-banner {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1.1rem 1rem rgba(0, 0, 0, 0.74));
  transition: transform 150ms ease, filter 150ms ease;
}

.banner-link:hover .streamer-banner {
  transform: translateY(-3px) scale(1.025);
  filter:
    drop-shadow(0 0 0.42rem rgba(246, 229, 185, 0.24))
    drop-shadow(0 1.3rem 1.05rem rgba(0, 0, 0, 0.78));
}

.live-pin {
  position: absolute;
  top: clamp(-1.7rem, -1.35vw, -1.1rem);
  left: clamp(0.35rem, 0.85vw, 0.72rem);
  z-index: 2;
  width: clamp(1.05rem, 1.25vw, 1.36rem);
  height: auto;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 0.32rem rgba(255, 29, 40, 0.8))
    drop-shadow(0 0 0.8rem rgba(255, 29, 40, 0.42));
  opacity: 0;
  transform: scale(0.82);
}

.streamer-card[data-status="online"] .live-pin {
  opacity: 1;
  transform: scale(1);
}

.crown-pin {
  position: absolute;
  top: clamp(-1.88rem, -1.45vw, -1.18rem);
  right: clamp(0.28rem, 0.72vw, 0.62rem);
  z-index: 2;
  width: clamp(1.38rem, 1.55vw, 1.75rem);
  height: auto;
  opacity: 0;
  transform: rotate(9deg) scale(0.88);
  filter:
    drop-shadow(0 0 0.22rem rgba(246, 229, 185, 0.72))
    drop-shadow(0 0.32rem 0.42rem rgba(0, 0, 0, 0.64));
}

.streamer-card[data-champion="true"] .crown-pin {
  opacity: 1;
  transform: rotate(9deg) scale(1);
}

.twitch-pill {
  display: flex;
  align-items: center;
  gap: clamp(0.42rem, 0.42vw, 0.58rem);
  width: var(--pill-w);
  height: var(--pill-h);
  margin-top: 0.56rem;
  padding: 0.2rem 0.86rem 0.2rem 0.22rem;
  color: var(--twitch);
  text-decoration: none;
  background: #fff;
  border: 2px solid #0a0a0a;
  border-radius: 999px;
  box-shadow: none;
  transition:
    transform 190ms ease,
    box-shadow 190ms ease,
    background-color 190ms ease;
}

.streamer-card:hover .twitch-pill,
.twitch-pill:focus-visible {
  transform: translateY(-1px);
  background: #fff;
  box-shadow:
    0 0.35rem 0.55rem rgba(0, 0, 0, 0.34),
    0 0 0.65rem rgba(255, 255, 255, 0.08);
}

.twitch-icon {
  flex: 0 0 auto;
  width: calc(var(--pill-h) - 0.42rem);
  height: auto;
  margin-left: -0.02rem;
}

.twitch-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - var(--pill-h) - 0.72rem);
  height: calc(var(--pill-h) - 0.68rem);
  object-fit: contain;
  object-position: center;
}

@media (max-width: 840px) {
  :root {
    --card-w: clamp(132px, 38vw, 168px);
    --pill-w: min(17rem, calc(var(--card-w) * 1.28));
    --pill-h: clamp(2.12rem, calc(var(--card-w) * 0.22), 2.52rem);
    --row-gap: 3.5rem;
    --slot-gap: clamp(1.15rem, 5vw, 2rem);
    --brand-w: clamp(260px, 66vw, 405px);
    --brand-anchor-shift: calc(var(--brand-w) * 0.08);
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-inline: 1rem;
  }

  .brand-lockup {
    grid-column: 1;
    width: var(--brand-w);
    transform: translateX(var(--brand-anchor-shift));
  }

  .status-legend {
    grid-column: 1;
    justify-self: center;
    width: min(88vw, 23rem);
    padding: 0.68rem 0.85rem;
  }

  .legend-row {
    grid-template-columns: 2rem 1fr;
    min-height: 1.86rem;
  }

  .legend-label {
    font-size: clamp(0.82rem, 3.1vw, 1rem);
  }

  .stream-grid {
    grid-template-columns: repeat(2, var(--card-w));
  }

  .site-footer {
    width: min(92vw, 36rem);
    padding-bottom: 2.25rem;
  }

  .streamer-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --card-w: min(78vw, 232px);
    --pill-w: min(88vw, calc(var(--card-w) * 1.18));
    --pill-h: clamp(2.18rem, calc(var(--card-w) * 0.2), 2.64rem);
    --row-gap: 3rem;
    --brand-w: min(82vw, 340px);
    --brand-anchor-shift: calc(var(--brand-w) * 0.045);
  }

  .site-header {
    gap: 0.7rem;
    padding-top: 0.7rem;
  }

  .status-legend {
    width: min(88vw, 20.5rem);
    border-width: 2px;
  }

  .legend-row {
    grid-template-columns: 1.8rem 1fr;
    gap: 0.58rem;
    min-height: 1.7rem;
  }

  .legend-row + .legend-row {
    margin-top: 0.34rem;
  }

  .legend-swatch {
    width: 1.22rem;
    border-width: 2px;
    border-radius: 5px;
  }

  .legend-crown {
    width: 1.62rem;
  }

  .legend-label {
    font-size: clamp(0.72rem, 3.25vw, 0.9rem);
  }

  .stage {
    padding-inline: 1rem;
  }

  .stream-grid {
    grid-template-columns: var(--card-w);
  }

  .footer-disclaimer {
    font-size: 0.72rem;
  }

  .footer-credit {
    gap: 0.5rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 400px) {
  :root {
    --card-w: min(72vw, 210px);
    --pill-w: min(76vw, calc(var(--card-w) * 1.08));
    --pill-h: clamp(2rem, calc(var(--card-w) * 0.19), 2.34rem);
    --brand-w: min(74vw, 285px);
    --brand-anchor-shift: calc(var(--brand-w) * 0.02);
  }

  .status-legend {
    width: min(76vw, 17.5rem);
    padding: 0.54rem 0.62rem;
  }

  .legend-row {
    grid-template-columns: 1.56rem 1fr;
    gap: 0.48rem;
  }

  .legend-label {
    font-size: clamp(0.64rem, 3vw, 0.78rem);
  }

  .stage {
    padding-inline: 0.5rem;
  }
}
