@font-face {
  font-family: "Wicked Mouse";
  src: url("https://cdn.colonist.io/dist/assets/WickedMouse.f0105b5f5ecddbca01a3.otf") format("opentype");
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #177fde;
  font-family: "Vremena Grotesk Bold", "Inter", sans-serif;
  color: #fff;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 40px);
}

.cta-slot {
  width: 100%;
  max-width: calc(500px * 2 + clamp(8px, 2cqi, 18px) * 2);
  container: slot/inline-size;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 2cqi, 18px);
}

.live-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: clamp(6px, 1.6cqi, 14px);
  padding: clamp(8px, 1.8cqi, 14px) clamp(14px, 3cqi, 22px);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  font-family: "Vremena Grotesk Bold", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 2cqi, 15px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}
.live-bar[data-active=true] {
  opacity: 1;
  transform: translateY(0);
}

.live-bar__dot {
  width: clamp(7px, 1.6cqi, 9px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #5cff7a;
  box-shadow: 0 0 0 0 rgba(92, 255, 122, 0.7);
  animation: live-pulse 1.6s ease-out infinite;
  align-self: center;
}

.live-bar__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4ch;
  white-space: nowrap;
}

.live-bar__num {
  font-size: clamp(15px, 3.2cqi, 24px);
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.live-bar__label {
  opacity: 0.78;
}

.live-bar__sep {
  opacity: 0.45;
  user-select: none;
}

.live-bar__stat--season {
  color: #fff;
  letter-spacing: 0.06em;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(92, 255, 122, 0.65);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(92, 255, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(92, 255, 122, 0);
  }
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2cqi, 18px);
}

.cta--primary {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.cta--secondary {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

@container slot (max-width: 420px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta--primary {
    grid-column: 1;
    grid-row: 1;
  }
  .cta--secondary {
    grid-column: 1;
    grid-row: 2;
  }
}
.cta {
  appearance: none;
  border: 0;
  margin: 0;
  padding: clamp(4px, 2.2cqi, 18px) clamp(10px, 4cqi, 28px);
  font: inherit;
  color: #fff;
  text-align: center;
  cursor: pointer;
  container-type: inline-size;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 3.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.8cqi, 6px);
  border-radius: clamp(14px, 4.5cqi, 28px);
  overflow: hidden;
  transition: transform 180ms cubic-bezier(0.2, 0.9, 0.3, 1.3), filter 180ms ease-out;
}
.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.cta:active {
  transform: translateY(1px) scale(0.995);
}
.cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.cta[aria-busy=true] {
  cursor: progress;
  filter: saturate(0.7) brightness(0.92);
}

.cta__title {
  font-family: "Wicked Mouse", "Impact", sans-serif;
  font-weight: 400;
  letter-spacing: clamp(0.4px, 0.4cqi, 1.4px);
  font-size: clamp(13px, 9cqi, 34px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateY(-0.02em);
}

.cta__subtitle {
  font-family: "Vremena Grotesk Bold", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 4cqi, 17px);
  line-height: 1.15;
  opacity: 0.96;
}

.cta--primary {
  background: linear-gradient(180deg, #f5a623 0%, #f06800 100%);
}

.cta--secondary {
  background: linear-gradient(180deg, #3bd836 0%, #1fab1c 100%);
}

.lb-modal {
  border: 0;
  padding: 0;
  border-radius: 18px;
  width: calc(100vw - 32px);
  max-width: 440px;
  background: #0d3a66;
  color: #fff;
  font-family: "Vremena Grotesk Bold", "Inter", sans-serif;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: visible;
}
.lb-modal::backdrop {
  background: rgba(8, 24, 48, 0.55);
  backdrop-filter: blur(3px);
}
.lb-modal[open] {
  animation: lb-modal-in 220ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

@keyframes lb-modal-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.lb-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease-out;
}
.lb-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.lb-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lb-modal__head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-modal__title {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-modal__source {
  margin: 0;
  font-family: "Vremena Grotesk Bold", "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}
.lb-modal__source code {
  font-family: ui-monospace, "Menlo", "Consolas", monospace;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.lb-modal__season {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px 4px;
}

.lb-modal__season-num {
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lb-modal__countdown {
  font-family: ui-monospace, "Menlo", "Consolas", monospace;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.lb-modal__scopes {
  padding: 12px 24px 22px;
}

.lb-modal__scopes-heading {
  margin: 8px 0 4px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.lb-modal__hint {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.lb-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lb-modal__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 14px;
}

.lb-modal__rank {
  font-family: ui-monospace, "Menlo", "Consolas", monospace;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  grid-row: span 2;
  align-self: center;
}

.lb-modal__name {
  font-size: 15px;
}

.lb-modal__stats {
  font-family: "Vremena Grotesk Bold", "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.lb-modal__item--note {
  display: block;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  padding: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
  .cta:hover, .cta:active {
    transform: none;
  }
  .live-bar,
  .live-bar__dot {
    animation: none;
    transition: none;
  }
}
