:root {
  --black-1: #060709;
  --black-2: #0d1015;
  --charcoal: #151a21;
  --red-1: #d7193a;
  --red-2: #9a112a;
  --red-3: #700b1e;
  --white: #f7f9fd;
  --silver: #c9d1db;
  --yellow: #ffd325;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  color: var(--white);
  font-family: "Rajdhani", sans-serif;
  background:
    radial-gradient(circle at 25% 10%, rgba(215, 25, 58, 0.12), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(106, 12, 33, 0.16), transparent 40%),
    linear-gradient(180deg, #121417, #181b20 70%, #121316);
  background-size: 120% 120%, 120% 120%, 100% 100%;
  animation: bgDrift 18s ease-in-out infinite alternate;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 0.8vh 0;
  overflow: hidden;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  top: -6%;
  bottom: -6%;
  width: min(12vw, 8.5vh);
  pointer-events: none;
  opacity: 0.24;
  background: linear-gradient(180deg, transparent, rgba(214, 30, 61, 0.65), transparent);
  filter: blur(1.2vh);
  animation: sideGlow 9s ease-in-out infinite;
}

.stage::before {
  left: -2vw;
}

.stage::after {
  right: -2vw;
  animation-delay: 1.8s;
}

.totem-screen {
  position: relative;
  width: min(98vw, 56vh);
  height: 98vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 10% 69% 13% 8%;
  background: linear-gradient(180deg, #0c1117 0%, #0a0e14 100%);
  border: 1vh solid #05070a;
  box-shadow:
    inset 0 0 0 0.16vh rgba(255, 255, 255, 0.09),
    0 0 0 0.22vh rgba(215, 25, 58, 0.65),
    0 1.2vh 3.6vh rgba(0, 0, 0, 0.68);
}

.totem-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 20%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.01) 0,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 4px
    );
}

.totem-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 0.16vh solid rgba(255, 72, 103, 0.26);
  opacity: 0.42;
  animation: edgePulse 4.6s ease-in-out infinite;
}

.totem-screen > * {
  position: relative;
  z-index: 1;
}

.brand-section {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72vh;
  padding: 0.7vh 0.95vh 0.68vh;
  border-bottom: 0.18vh solid rgba(255, 84, 112, 0.95);
  background: linear-gradient(108deg, #121823 0%, #0f1622 24%, #8d1026 50%, #c51f3a 70%, #71101f 100%);
  overflow: hidden;
  isolation: isolate;
}

.brand-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.brand-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.14vh;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 111, 136, 0.86) 20%, rgba(255, 77, 111, 0.96) 80%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.brand-section > * {
  position: relative;
  z-index: 3;
}

.brand-mark {
  height: clamp(2.2rem, 5vh, 4.2rem);
  width: auto;
  object-fit: contain;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter:
    drop-shadow(0 0 0.16vh rgba(255, 255, 255, 0.35))
    drop-shadow(0 0 0.42vh rgba(255, 74, 109, 0.45))
    drop-shadow(0 0 0.78vh rgba(199, 21, 53, 0.22));
}

.brand-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.2rem, 3.35vh, 2.55rem);
  letter-spacing: 0.075em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  color: #f7fbff;
  text-shadow: 0 0.1vh 0.28vh rgba(0, 0, 0, 0.42);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-clock {
  position: relative;
  align-self: center;
  justify-self: end;
  width: fit-content;
  min-width: 0;
  max-width: clamp(11rem, 24vh, 16rem);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  margin-left: 0.2vh;
  padding: 0.08em 0.24em;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(2rem, 5.1vh, 3.65rem);
  line-height: 1;
  letter-spacing: 0.015em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-wrap: nowrap;
  font-variant-numeric: tabular-nums;
  color: #ffeec2;
  text-shadow: 0 0.18vh 0.34vh rgba(0, 0, 0, 0.72);
  box-shadow: none;
  transform: none;
}

#main-section {
  padding: 1vh;
}

.media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0.18vh solid rgba(255, 59, 90, 0.85);
  background: #000;
  box-shadow:
    inset 0 0 0 0.16vh rgba(190, 21, 49, 0.55),
    inset 0 -8vh 14vh rgba(0, 0, 0, 0.36),
    0 0 0 0.1vh rgba(255, 255, 255, 0.15);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
  z-index: 2;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.36), transparent 48%, rgba(0, 0, 0, 0.26));
  opacity: 0;
  z-index: 3;
}

.media-frame.is-switching::after {
  animation: frameSwitch 520ms ease;
}

#media-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#media-container .image-shell {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#media-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: translateZ(0);
  backface-visibility: hidden;
}

#media-container .image-item {
  animation-duration: var(--img-motion-ms, 10000ms);
  animation-timing-function: linear;
  animation-fill-mode: both;
  will-change: transform;
}

#media-container .image-item.motion-pan-left {
  animation-name: imageDriftLeft;
}

#media-container .image-item.motion-pan-right {
  animation-name: imageDriftRight;
}

#media-container .image-item.motion-pan-up {
  animation-name: imageDriftUp;
}

#media-container .image-item.motion-pan-down {
  animation-name: imageDriftDown;
}

.slide-item {
  animation: mediaCutIn 540ms cubic-bezier(0.14, 0.7, 0.2, 1) both;
}

.video-item {
  animation: mediaCutIn 420ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

#logo-section {
  border-top: 0.22vh solid var(--red-1);
  border-bottom: 0.18vh solid rgba(255, 67, 98, 0.55);
  background: linear-gradient(180deg, #131b28 0%, #0d1420 100%);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.4vh;
  padding: 0.65vh 1.15vh;
}

#marquee-section {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.8vh;
  padding: 0.35vh 0.7vh;
  border-top: 0.2vh solid rgba(255, 59, 90, 0.75);
  background: linear-gradient(180deg, #7f0f23 0%, #550916 100%);
  overflow: hidden;
}

.marquee-label {
  white-space: nowrap;
  padding: 0.18em 0.62em;
  border: 0.08vh solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 9, 13, 0.45);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.9vh, 1.3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.marquee-window {
  overflow: hidden;
  min-width: 0;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 0;
  will-change: transform;
  animation: marqueeMove var(--marquee-duration, 22s) linear infinite;
}

.marquee-text {
  display: inline-block;
  white-space: nowrap;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(0.85rem, 2vh, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f4f8ff;
}

.sponsor-text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1rem, 2.25vh, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  color: #f0f5ff;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(3vw, 2vh);
}

.logo-row img {
  height: 52%;
  max-width: 29%;
  max-height: 6vh;
  object-fit: contain;
  filter: drop-shadow(0 0.16vh 0.5vh rgba(0, 0, 0, 0.5));
  animation: none;
}

.logo-row img:nth-child(2) {
  animation-delay: 0.9s;
}

.news-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(44%, 1fr) auto;
  background: #0b0e13;
  animation: newsSlideIn 420ms ease-out both;
  border: 0.16vh solid rgba(255, 59, 90, 0.7);
}

.news-slide::before {
  content: none;
}

.news-slide-image-box {
  position: relative;
  overflow: hidden;
  background-color: #090d13;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 0.16vh solid rgba(255, 59, 90, 0.7);
}

.news-slide-image-item {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  animation-duration: var(--news-img-motion-ms, 30000ms);
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.news-slide-image-item.news-motion-pan-left {
  animation-name: newsImageDriftLeft;
}

.news-slide-image-item.news-motion-pan-right {
  animation-name: newsImageDriftRight;
}

.news-slide-image-item.news-motion-pan-up {
  animation-name: newsImageDriftUp;
}

.news-slide-image-item.news-motion-pan-down {
  animation-name: newsImageDriftDown;
}

.news-slide-image-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.4));
}

.news-slide-image-box::after {
  content: "";
  position: absolute;
  right: 0.6vh;
  top: 0.6vh;
  z-index: 3;
  width: 2.4vh;
  height: 2.4vh;
  border-top: 0.24vh solid rgba(255, 255, 255, 0.7);
  border-right: 0.24vh solid rgba(255, 255, 255, 0.7);
  opacity: 0.75;
}

.news-slide-headline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  gap: 0.35vh;
  width: 100%;
  height: auto;
  padding: 0.7vh 1.05vh 0.85vh;
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.96) 0%, rgba(10, 16, 27, 0.98) 100%);
  border-top: 0.15vh solid rgba(255, 59, 90, 0.65);
  animation: lowerThirdRise 500ms ease-out both;
}

.news-slide-headline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24%;
  height: 0.26vh;
  background: #ffffff;
}

.news-slide-kicker {
  width: fit-content;
  padding: 0.11em 0.5em;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(0.68rem, 1.35vh, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  border: 0.08vh solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #be1e3a 0%, #8f1329 100%);
  box-shadow: 0 0.12vh 0.28vh rgba(0, 0, 0, 0.45);
}

.news-slide-title {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.4rem, 3.8vh, 2.9rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  color: #f8fbff;
  text-shadow: 0 0.15vh 0.4vh rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: var(--news-title-lines, 3);
  -webkit-box-orient: vertical;
  overflow: hidden;
  align-self: stretch;
}

.panel-message {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dde5f3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1rem, 2.4vh, 2rem);
  background: linear-gradient(180deg, #0b0f16, #05070a);
}

.timeup-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 2.5vh 2vw;
  background:
    radial-gradient(circle at center, rgba(214, 22, 54, 0.28), rgba(0, 0, 0, 0.86) 60%),
    rgba(0, 0, 0, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.timeup-overlay.active {
  opacity: 1;
  pointer-events: auto;
  animation: timeupBackdrop 900ms ease;
}

.timeup-card {
  width: min(92vw, 980px);
  border: 0.28vh solid rgba(255, 76, 108, 0.96);
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.95), rgba(8, 10, 14, 0.98));
  box-shadow:
    0 0 0 0.2vh rgba(255, 255, 255, 0.14),
    0 0 3vh rgba(219, 25, 61, 0.35);
  text-align: center;
  padding: 2.2vh 2vw 2.4vh;
  animation: timeupPop 420ms cubic-bezier(0.15, 0.9, 0.25, 1), timeupPulse 1.05s ease-in-out 480ms infinite;
}

.timeup-attention {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1vh;
  margin-bottom: 1.05vh;
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
}

.timeup-dot {
  width: 1.25vh;
  height: 1.25vh;
  border-radius: 50%;
  background: #ff3e63;
  box-shadow: 0 0 1vh rgba(255, 67, 105, 0.8);
  animation: timeupBlink 700ms ease-in-out infinite;
}

.timeup-attention-text {
  font-size: clamp(1rem, 2.6vh, 2rem);
  font-weight: 700;
  color: #ffd9df;
}

.timeup-countdown {
  min-width: 5.6ch;
  padding: 0.15em 0.5em;
  border: 0.1vh solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 10, 15, 0.72);
  border-radius: 0.2vh;
  font-size: clamp(1.05rem, 2.45vh, 1.9rem);
  font-weight: 700;
  color: #ffffff;
}

.timeup-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.9rem, 9.8vh, 8.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 0.24vh 0.62vh rgba(0, 0, 0, 0.6),
    0 0 1.5vh rgba(255, 77, 109, 0.5);
}

.timeup-message {
  margin-top: 1.35vh;
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1.45rem, 4.2vh, 3.8rem);
  font-weight: 700;
  color: #ecf3ff;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timeup-message-line {
  display: block;
}

.timeup-thankyou-line {
  margin-top: 0.2em;
}

.timeup-progress {
  width: 100%;
  height: 0.95vh;
  margin-top: 1.7vh;
  border: 0.08vh solid rgba(255, 255, 255, 0.26);
  background: rgba(5, 7, 11, 0.7);
  overflow: hidden;
}

.timeup-progress-bar {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(1);
  background: linear-gradient(90deg, #ff486a 0%, #ff9e58 100%);
  box-shadow: 0 0 0.8vh rgba(255, 96, 123, 0.62);
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99;
}

.noscript-inner {
  width: min(85vw, 580px);
  text-align: center;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
}

@keyframes bgDrift {
  0% {
    background-position: 23% 12%, 84% 82%, 50% 50%;
  }

  100% {
    background-position: 27% 8%, 88% 86%, 50% 50%;
  }
}

@keyframes sideGlow {
  0%,
  100% {
    opacity: 0.18;
    transform: translateY(-1.2vh);
  }

  50% {
    opacity: 0.32;
    transform: translateY(1.2vh);
  }
}

@keyframes edgePulse {
  0%,
  100% {
    opacity: 0.3;
    box-shadow: inset 0 0 0 0 rgba(255, 76, 108, 0);
  }

  50% {
    opacity: 0.52;
    box-shadow: inset 0 0 1.2vh rgba(255, 76, 108, 0.2);
  }
}

@keyframes brandSweep {
  0% {
    transform: translateX(-36%);
  }

  100% {
    transform: translateX(36%);
  }
}

@keyframes topScan {
  0% {
    opacity: 0.2;
    transform: translateX(-40%);
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.2;
    transform: translateX(40%);
  }
}

@keyframes mediaCutIn {
  0% {
    opacity: 0;
    transform: scale(1.04);
    filter: contrast(1.08) saturate(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: contrast(1) saturate(1);
  }
}

@keyframes imageDriftLeft {
  0% {
    transform: scale(1.02) translate3d(1.2%, 0.6%, 0);
  }

  100% {
    transform: scale(1.08) translate3d(-1.2%, -0.6%, 0);
  }
}

@keyframes imageDriftRight {
  0% {
    transform: scale(1.02) translate3d(-1.2%, 0.6%, 0);
  }

  100% {
    transform: scale(1.08) translate3d(1.2%, -0.6%, 0);
  }
}

@keyframes imageDriftUp {
  0% {
    transform: scale(1.02) translate3d(0.8%, 1.1%, 0);
  }

  100% {
    transform: scale(1.08) translate3d(-0.8%, -1.1%, 0);
  }
}

@keyframes imageDriftDown {
  0% {
    transform: scale(1.02) translate3d(0.8%, -1.1%, 0);
  }

  100% {
    transform: scale(1.08) translate3d(-0.8%, 1.1%, 0);
  }
}

@keyframes newsImageDriftLeft {
  0% {
    transform: scale(1.14) translate3d(8%, 0, 0);
  }

  100% {
    transform: scale(1.14) translate3d(-8%, 0, 0);
  }
}

@keyframes newsImageDriftRight {
  0% {
    transform: scale(1.14) translate3d(-8%, 0, 0);
  }

  100% {
    transform: scale(1.14) translate3d(8%, 0, 0);
  }
}

@keyframes newsImageDriftUp {
  0% {
    transform: scale(1.01) translate3d(0.7%, 0.9%, 0);
  }

  100% {
    transform: scale(1.07) translate3d(-0.7%, -0.9%, 0);
  }
}

@keyframes newsImageDriftDown {
  0% {
    transform: scale(1.01) translate3d(0.7%, -0.9%, 0);
  }

  100% {
    transform: scale(1.07) translate3d(-0.7%, 0.9%, 0);
  }
}

@keyframes logoFlash {
  0%,
  100% {
    filter: drop-shadow(0 0.16vh 0.5vh rgba(0, 0, 0, 0.5));
  }

  50% {
    filter: drop-shadow(0 0.2vh 0.75vh rgba(215, 25, 58, 0.45));
  }
}

@keyframes newsSlideIn {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lowerThirdRise {
  0% {
    opacity: 0;
    transform: translateY(1.4vh);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes frameSwitch {
  0% {
    opacity: 0;
  }

  35% {
    opacity: 0.5;
  }

  100% {
    opacity: 0;
  }
}

@keyframes marqueeMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--marquee-distance, 420px)));
  }
}

@keyframes timeupPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0.2vh rgba(255, 255, 255, 0.14),
      0 0 2.2vh rgba(219, 25, 61, 0.28);
  }

  50% {
    transform: scale(1.01);
    box-shadow:
      0 0 0 0.2vh rgba(255, 255, 255, 0.2),
      0 0 3.8vh rgba(219, 25, 61, 0.46);
  }
}

@keyframes timeupPop {
  0% {
    opacity: 0;
    transform: scale(0.93);
  }

  70% {
    opacity: 1;
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes timeupBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@keyframes timeupBackdrop {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.perf-mode body {
  animation: none !important;
}

.perf-mode .totem-screen::before,
.perf-mode .brand-section::before,
.perf-mode .media-frame::before,
.perf-mode .logo-row img {
  animation: none !important;
}

@media (max-aspect-ratio: 10/16) {
  .totem-screen {
    width: 100vw;
    height: 100vh;
    border-width: 0;
  }
}

@media (min-aspect-ratio: 4/3) {
  .totem-screen {
    width: min(55vw, 54vh);
  }
}
