* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  color: white;
  background: #02030c;
}

/* =========================
   BACKGROUND
========================= */

.background {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 50% 35%, rgba(139, 227, 255, 0.28), transparent 22%),
    radial-gradient(circle at 20% 70%, rgba(238, 107, 243, 0.22), transparent 28%),
    radial-gradient(circle at 80% 65%, rgba(255, 183, 60, 0.16), transparent 25%),
    url("bag.png") center / cover no-repeat;
  filter: brightness(0.82) saturate(1.65);
  transition: filter 0.5s ease, background-image 0.5s ease;
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.38)),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.42) 82%);
}

.team-glow {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: 0;
  transition: opacity 0.45s ease, background 0.45s ease;
  pointer-events: none;
}

body.team-volts .team-glow,
body.selected-volts .team-glow {
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(0, 135, 255, 0.34), transparent 56%),
    radial-gradient(circle at 70% 30%, rgba(139, 227, 255, 0.18), transparent 38%);
}

body.team-flame .team-glow,
body.selected-flame .team-glow {
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(255, 70, 30, 0.32), transparent 56%),
    radial-gradient(circle at 70% 30%, rgba(255, 183, 60, 0.18), transparent 38%);
}

body.team-leaf .team-glow,
body.selected-leaf .team-glow {
  opacity: 1;
  background:
    radial-gradient(circle at center, rgba(40, 255, 100, 0.28), transparent 56%),
    radial-gradient(circle at 70% 30%, rgba(150, 255, 120, 0.16), transparent 38%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.075;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, black 20%, transparent 75%);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, #ffffff 1px, transparent 1px),
    radial-gradient(circle, #8be3ff 1px, transparent 1px),
    radial-gradient(circle, #ee6bf3 1px, transparent 1px);
  background-size: 90px 90px, 150px 150px, 230px 230px;
  animation: particlesMove 22s linear infinite;
  opacity: 0.42;
  transition: opacity 0.5s ease;
}

@keyframes particlesMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(120px);
  }
}

/* =========================
   PAGE LAYOUT
========================= */

.scene {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero {
  position: relative;
  width: min(1500px, 94vw);
  text-align: center;
  padding: 72px 70px 48px;
  border-radius: 42px;
  background: rgba(3, 7, 22, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 90px rgba(0, 80, 255, 0.26),
    0 0 120px rgba(238, 107, 243, 0.16),
    inset 0 0 60px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(9px) saturate(1.25);
  animation: heroIntro 1s ease forwards;
  transition:
    box-shadow 0.45s ease,
    border-color 0.45s ease,
    background 0.45s ease,
    transform 0.45s ease;
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   SELECTED TEAM THEME
========================= */

body.selected-volts .hero {
  border-color: rgba(139, 227, 255, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 130, 255, 0.12), transparent 45%),
    rgba(3, 7, 22, 0.28);
  box-shadow:
    0 0 110px rgba(0, 130, 255, 0.38),
    0 0 160px rgba(139, 227, 255, 0.18),
    inset 0 0 70px rgba(139, 227, 255, 0.06);
}

body.selected-flame .hero {
  border-color: rgba(255, 150, 80, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 80, 35, 0.12), transparent 45%),
    rgba(3, 7, 22, 0.28);
  box-shadow:
    0 0 110px rgba(255, 70, 40, 0.36),
    0 0 160px rgba(255, 183, 60, 0.18),
    inset 0 0 70px rgba(255, 110, 60, 0.06);
}

body.selected-leaf .hero {
  border-color: rgba(120, 255, 140, 0.32);
  background:
    radial-gradient(circle at 50% 0%, rgba(50, 255, 110, 0.11), transparent 45%),
    rgba(3, 7, 22, 0.28);
  box-shadow:
    0 0 110px rgba(40, 255, 100, 0.32),
    0 0 160px rgba(160, 255, 120, 0.16),
    inset 0 0 70px rgba(70, 255, 120, 0.055);
}

/* =========================
   TOP ACTIONS
========================= */

.top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.action-label {
  max-width: 72px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  color: rgba(220,232,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.55);
}

.language-wrapper,
.download-wrapper {
  position: relative;
}

.lang-toggle,
.download-toggle,
.share-toggle,
.theme-toggle,
.music-top-toggle {
  appearance: none;
  -webkit-appearance: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 50% 25%, rgba(139,227,255,0.18), transparent 58%),
    rgba(5, 8, 22, 0.76);
  backdrop-filter: blur(14px);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(139,227,255,0.22),
    inset 0 0 14px rgba(255,255,255,0.05);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.theme-toggle {
  font-size: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(238,107,243,0.28), transparent 58%),
    rgba(5, 8, 22, 0.82);
}

.lang-toggle:hover,
.download-toggle:hover,
.share-toggle:hover,
.theme-toggle:hover,
.music-top-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  background: rgba(10, 16, 40, 0.9);
  border-color: rgba(139,227,255,0.34);
  box-shadow:
    0 0 28px rgba(139,227,255,0.34),
    inset 0 0 18px rgba(255,255,255,0.07);
}

.music-top-toggle.active {
  border-color: rgba(139,227,255,0.45);
  background:
    radial-gradient(circle at 50% 25%, rgba(139,227,255,0.28), transparent 55%),
    rgba(5, 8, 22, 0.86);
  box-shadow:
    0 0 30px rgba(139,227,255,0.38),
    0 0 48px rgba(238,107,243,0.18),
    inset 0 0 18px rgba(255,255,255,0.07);
}

.lang-toggle:focus-visible,
.download-toggle:focus-visible,
.share-toggle:focus-visible,
.theme-toggle:focus-visible,
.music-top-toggle:focus-visible,
.team-btn:focus-visible,
.mode-btn:focus-visible,
.choose-team-btn:focus-visible,
#commentName:focus-visible,
#commentText:focus-visible,
#commentSubmitBtn:focus-visible,
.rating-star:focus-visible {
  outline: 2px solid rgba(139,227,255,0.9);
  outline-offset: 4px;
}

/* =========================
   MENUS
========================= */

.language-menu,
.download-menu {
  position: absolute;
  top: 58px;
  right: 0;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: rgba(5, 8, 22, 0.93);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(18px);
  box-shadow:
    0 0 35px rgba(139,227,255,0.18),
    inset 0 0 20px rgba(255,255,255,0.035);
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.language-menu.open,
.download-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.language-menu {
  width: 170px;
  max-height: 310px;
  gap: 7px;
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,227,255,0.65) rgba(255,255,255,0.08);
}

.language-menu::-webkit-scrollbar {
  width: 6px;
}

.language-menu::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

.language-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(#8be3ff, #ee6bf3);
  border-radius: 999px;
}

.lang-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 9px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 900;
  color: white;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.lang-btn:hover {
  transform: translateX(-2px);
  background: rgba(255,255,255,0.12);
}

.lang-btn.active {
  color: #06101f;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
}

.download-menu {
  width: 220px;
  gap: 8px;
  padding: 12px;
}

.download-title {
  color: #dce8ff;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4px;
}

.download-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  color: #06101f;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  text-decoration: none;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 18px rgba(139,227,255,0.18);
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.download-menu a:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

/* =========================
   BADGE / HEADER
========================= */

.pkxd-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 48px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #dce8ff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 24px rgba(139,227,255,0.12);
}

.pkxd-badge img {
  height: 26px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

.event-date {
  display: inline-block;
  margin-bottom: 28px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #dce8ff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 28px rgba(139,227,255,0.16);
}

/* =========================
   ORBIT SIGNS
========================= */

.signs-orbit {
  position: relative;
  width: 560px;
  height: 190px;
  margin: 0 auto 18px;
  animation: signsIntro 1.2s ease forwards;
}

@keyframes signsIntro {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.signs-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 82px;
  width: 560px;
  height: 110px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(80, 180, 255, 0.23);
  box-shadow:
    0 0 25px rgba(0, 120, 255, 0.42),
    0 0 45px rgba(255, 0, 160, 0.28),
    0 0 55px rgba(0, 255, 90, 0.26);
}

.orbit-line {
  position: absolute;
  left: 50%;
  top: 82px;
  width: 560px;
  height: 110px;
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.9;
}

.orbit-blue {
  border-top: 3px solid rgba(0, 150, 255, 0.78);
  animation: orbitSpin 7s linear infinite;
}

.orbit-red {
  border-right: 3px solid rgba(255, 47, 117, 0.74);
  animation: orbitSpin 8.5s linear infinite reverse;
}

.orbit-green {
  border-bottom: 3px solid rgba(33, 255, 115, 0.74);
  animation: orbitSpin 10s linear infinite;
}

@keyframes orbitSpin {
  from {
    transform: translateX(-50%) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.sign {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
  filter:
    drop-shadow(0 0 12px rgba(255,255,255,0.62))
    drop-shadow(0 0 26px currentColor);
  animation: floatSign 4.8s ease-in-out infinite;
  transition:
    opacity 0.45s ease,
    filter 0.45s ease,
    left 0.45s ease,
    right 0.45s ease,
    top 0.45s ease,
    width 0.45s ease,
    height 0.45s ease,
    transform 0.45s ease,
    scale 0.45s ease;
}

.sign-volt {
  width: 140px;
  height: 140px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: #1f7cff;
}

.sign-flame {
  width: 110px;
  height: 110px;
  left: 82px;
  top: 64px;
  color: #ff315c;
  animation-delay: 0.8s;
}

.sign-leaf {
  width: 110px;
  height: 110px;
  right: 82px;
  top: 64px;
  color: #42ff6d;
  animation-delay: 1.6s;
}

@keyframes floatSign {
  0%, 100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

body.selected-volts .sign-flame,
body.selected-volts .sign-leaf,
body.selected-flame .sign-volt,
body.selected-flame .sign-leaf,
body.selected-leaf .sign-volt,
body.selected-leaf .sign-flame {
  opacity: 0;
  filter: grayscale(1) blur(1px);
  scale: 0.72;
}

body.selected-volts .sign-volt,
body.selected-flame .sign-flame,
body.selected-leaf .sign-leaf {
  left: 50%;
  right: auto;
  top: 4px;
  width: 158px;
  height: 158px;
  transform: translateX(-50%);
  opacity: 1;
  scale: 1.08;
  z-index: 5;
}

/* =========================
   TITLE
========================= */

h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(255,255,255,0.70),
    0 0 35px rgba(255,255,255,0.24);
  animation: titleIntro 1.2s ease forwards;
}

@keyframes titleIntro {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.title-small,
.title-main {
  display: block;
}

h1 span {
  display: block;
  margin-top: 18px;
  font-size: clamp(70px, 8vw, 128px);
  letter-spacing: -2px;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    #00a2ff,
    #7de8ff,
    #ff5ec7,
    #ffb86b,
    #9fff75,
    #52ffb5,
    #00a2ff
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: smoothGradient 14s linear infinite;
  filter:
    drop-shadow(0 0 10px rgba(0,160,255,0.76))
    drop-shadow(0 0 26px rgba(255,90,180,0.30));
}

@keyframes smoothGradient {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 300% center;
  }
}

/* =========================
   MODE SWITCH
========================= */

.mode-switch {
  margin-top: 30px;
  display: inline-flex;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 24px rgba(139,227,255,0.10);
}

.mode-btn {
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  background: transparent;
  color: #dce8ff;
  font-weight: 900;
  letter-spacing: 0.5px;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.mode-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
}

.mode-btn.active {
  color: #050816;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  box-shadow: 0 0 22px rgba(139,227,255,0.22);
}

/* =========================
   TIMER
========================= */

.timer {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  animation: timerIntro 1.4s ease forwards;
}

.timer.hidden {
  display: none;
}

@keyframes timerIntro {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.time-card {
  position: relative;
  overflow: hidden;
  padding: 34px 20px 26px;
  border-radius: 28px;
  backdrop-filter: blur(10px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 0 34px rgba(80, 160, 255, 0.16),
    inset 0 0 26px rgba(255,255,255,0.035);
}

.time-card::before {
  content: "";
  position: absolute;
  top: -80%;
  left: -40%;
  width: 80%;
  height: 220%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );
  transform: rotate(25deg);
  animation: shine 5.2s ease-in-out infinite;
}

@keyframes shine {
  0%, 45% {
    left: -90%;
  }

  75%, 100% {
    left: 130%;
  }
}

.time-card span {
  position: relative;
  display: block;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 900;
  line-height: 1;
}

.time-card span.tick {
  animation: numberTick 0.35s ease;
}

@keyframes numberTick {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }

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

.time-card:nth-child(1) span {
  color: #4fc3ff;
  text-shadow: 0 0 18px rgba(79,195,255,0.9), 0 0 45px rgba(0,110,255,0.56);
}

.time-card:nth-child(2) span {
  color: #ff5da8;
  text-shadow: 0 0 18px rgba(255,93,168,0.86), 0 0 45px rgba(255,0,120,0.52);
}

.time-card:nth-child(3) span {
  color: #ffb36b;
  text-shadow: 0 0 18px rgba(255,179,107,0.86), 0 0 45px rgba(255,120,0,0.46);
}

.time-card:nth-child(4) span {
  color: #7dff8a;
  text-shadow: 0 0 18px rgba(125,255,138,0.86), 0 0 45px rgba(0,255,90,0.50);
}

.time-card p {
  position: relative;
  margin: 12px 0 0;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cfd7ff;
}

/* =========================
   PANELS
========================= */

.progress-panel,
.theories-panel {
  display: none;
  margin: 38px auto 0;
  max-width: 780px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,227,255,0.13), transparent 46%),
    rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 0 46px rgba(139,227,255,0.18),
    inset 0 0 30px rgba(255,255,255,0.04);
}

.progress-panel.active,
.theories-panel.active {
  display: block;
  animation: panelReveal 0.35s ease forwards;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #dce8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.progress-bar {
  position: relative;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.09);
  box-shadow:
    inset 0 0 18px rgba(0,0,0,0.38),
    0 0 24px rgba(139,227,255,0.12);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  box-shadow:
    0 0 18px rgba(139,227,255,0.78),
    0 0 34px rgba(238,107,243,0.42);
  transition: width 0.45s ease;
}

.progress-text {
  margin: 14px 0 0;
  color: rgba(220,232,255,0.78);
  font-size: 14px;
  font-weight: 800;
}

/* =========================
   THEORIES
========================= */

.theories-head {
  margin-bottom: 24px;
}

.theories-head h2,
.theories-panel h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  text-shadow:
    0 0 18px rgba(139,227,255,0.45),
    0 0 34px rgba(238,107,243,0.24);
}

.theories-head p,
.theories-subtitle {
  margin: 10px auto 0;
  max-width: 620px;
  color: rgba(220,232,255,0.75);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.theory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.theory-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  text-align: left;
  background:
    radial-gradient(circle at 0% 0%, rgba(139,227,255,0.12), transparent 42%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 0 24px rgba(139,227,255,0.08),
    inset 0 0 18px rgba(255,255,255,0.025);
}

.theory-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 0 18px rgba(139,227,255,0.14);
  font-size: 22px;
}

.theory-card h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.theory-card p {
  margin: 0;
  color: rgba(220,232,255,0.74);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* =========================
   TEAM BUTTONS
========================= */

.hashtags {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.team-btn {
  cursor: pointer;
  position: relative;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.team-btn:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(255,255,255,0.14);
}

.team-btn.selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #06101f;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  box-shadow: 0 0 16px rgba(139,227,255,0.55);
  font-size: 14px;
}

.team-btn.volts {
  color: #5cc7ff;
  box-shadow: 0 0 24px rgba(0, 120, 255, 0.32);
}

.team-btn.flame {
  color: #ff7a6d;
  box-shadow: 0 0 24px rgba(255, 60, 50, 0.32);
}

.team-btn.leaf {
  color: #72ff87;
  box-shadow: 0 0 24px rgba(40, 255, 100, 0.32);
}

/* =========================
   TEAM ENERGY
========================= */

.team-energy {
  margin: 34px auto 0;
  max-width: 820px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,227,255,0.12), transparent 45%),
    rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow:
    0 0 44px rgba(139,227,255,0.14),
    inset 0 0 26px rgba(255,255,255,0.035);
}

.team-energy-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(21px, 2.5vw, 30px);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(139,227,255,0.36);
}

.team-energy-head p {
  margin: 10px 0 0;
  color: rgba(220,232,255,0.78);
  font-size: 14px;
  font-weight: 800;
}

.energy-list {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.energy-row {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.energy-row.selected {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.25);
}

.energy-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #dce8ff;
  font-size: 15px;
}

.energy-row-top strong {
  font-size: 17px;
}

.energy-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  box-shadow: inset 0 0 14px rgba(0,0,0,0.32);
}

.energy-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

.energy-row.volts .energy-fill {
  background: linear-gradient(90deg, #007cff, #8be3ff);
  box-shadow: 0 0 18px rgba(0,130,255,0.62);
}

.energy-row.flame .energy-fill {
  background: linear-gradient(90deg, #ff315c, #ffb36b);
  box-shadow: 0 0 18px rgba(255,80,40,0.60);
}

.energy-row.leaf .energy-fill {
  background: linear-gradient(90deg, #21ff73, #b8ff6a);
  box-shadow: 0 0 18px rgba(40,255,100,0.55);
}

.vote-meta {
  margin: 18px auto 0;
  max-width: 720px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.vote-status,
.total-votes,
.vote-change-link {
  margin: 0;
  color: rgba(220, 232, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.total-votes {
  color: rgba(255,255,255,0.86);
  text-shadow: 0 0 14px rgba(139,227,255,0.28);
}

.vote-leader {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-shadow:
    0 0 14px rgba(139, 227, 255, 0.55),
    0 0 26px rgba(238, 107, 243, 0.28);
}

.vote-change-link {
  width: fit-content;
  margin: 2px auto 0;
  color: #8be3ff;
  opacity: 0.86;
  cursor: default;
}

/* =========================
   VIDEO HUB
========================= */

.video-hub,
.watch-more {
  margin: 34px auto 0;
  max-width: 980px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,227,255,0.10), transparent 46%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 0 40px rgba(139,227,255,0.12),
    inset 0 0 26px rgba(255,255,255,0.03);
}

.video-hub-head h2,
.watch-more h2,
.watch-more h3 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-shadow:
    0 0 18px rgba(139,227,255,0.36),
    0 0 30px rgba(238,107,243,0.18);
}

.video-hub-head p,
.watch-more p {
  margin: 14px auto 0;
  max-width: 720px;
  text-align: center;
  color: rgba(220,232,255,0.78);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.video-section {
  margin-top: 28px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(139,227,255,0.09), transparent 42%),
    rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
}

.video-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.video-section-head h3,
.video-group h4 {
  margin: 0;
  color: #dce8ff;
  font-size: 18px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-section-head a,
.watch-links a {
  display: inline-block;
  flex: 0 0 auto;
  padding: 10px 15px;
  border-radius: 999px;
  color: #050816;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 0 22px rgba(139,227,255,0.22);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 20px rgba(139,227,255,0.10);
}

.video-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(255,255,255,0.12);
}

.video-card h4,
.video-card-title {
  display: block;
  margin: 0;
  padding: 12px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

/* =========================
   COMMUNITY COMMS
========================= */

.community-comms {
  margin: 34px auto 0;
  width: min(1220px, 88vw);
  max-width: 1220px;
  padding: 34px 38px;
  border-radius: 32px;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,227,255,0.13), transparent 45%),
    rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    0 0 46px rgba(139,227,255,0.14),
    inset 0 0 28px rgba(255,255,255,0.035);
}

.comms-head {
  text-align: center;
  margin-bottom: 22px;
}

.comms-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 28px;
  background:
    radial-gradient(circle at 50% 30%, rgba(139,227,255,0.28), transparent 58%),
    rgba(5, 8, 22, 0.66);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    0 0 26px rgba(139,227,255,0.22),
    inset 0 0 18px rgba(255,255,255,0.04);
}

.comms-head h3 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-shadow:
    0 0 18px rgba(139,227,255,0.40),
    0 0 30px rgba(238,107,243,0.20);
}

.comms-head p {
  margin: 12px auto 0;
  max-width: 620px;
  text-align: center;
  color: rgba(220,232,255,0.76);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.community-rating {
  margin: 18px auto 22px;
  padding: 22px 30px;
  width: min(720px, 100%);
  max-width: 720px;
  border-radius: 26px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 204, 77, 0.16), transparent 55%),
    rgba(5, 8, 22, 0.58);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 0 28px rgba(255,204,77,0.12),
    inset 0 0 22px rgba(255,255,255,0.03);
}

.community-rating-title {
  margin-bottom: 10px;
  color: rgba(220,232,255,0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.1px;
}

.community-rating-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

#averageStars {
  color: #ffcc4d;
  font-size: 30px;
  letter-spacing: 5px;
  text-shadow:
    0 0 12px rgba(255,204,77,0.75),
    0 0 28px rgba(255,179,107,0.35);
}

#averageRating {
  color: white;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(139,227,255,0.35);
}

.rating-count {
  margin-top: 10px;
  color: rgba(220,232,255,0.56);
  font-size: 12px;
  font-weight: 800;
}

.comments-list,
#commentsList {
  width: 100%;
  min-width: 0;
  margin-top: 20px;
  display: grid;
  gap: 14px;
  max-height: 470px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,227,255,0.7) rgba(255,255,255,0.08);
}

.comments-list::-webkit-scrollbar,
#commentsList::-webkit-scrollbar {
  width: 7px;
}

.comments-list::-webkit-scrollbar-track,
#commentsList::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

.comments-list::-webkit-scrollbar-thumb,
#commentsList::-webkit-scrollbar-thumb {
  background: linear-gradient(#8be3ff, #ee6bf3);
  border-radius: 999px;
}

.comm-message {
  width: 100%;
  min-width: 0;
  padding: 16px 22px;
  border-radius: 22px;
  text-align: left;
  background:
    radial-gradient(circle at 0% 0%, rgba(139,227,255,0.11), transparent 42%),
    rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 0 22px rgba(139,227,255,0.09),
    inset 0 0 16px rgba(255,255,255,0.025);
}

.comm-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comm-top strong {
  color: #8be3ff;
  font-size: 17px;
  font-weight: 900;
  word-break: break-word;
  text-shadow: 0 0 12px rgba(139,227,255,0.45);
}

.comm-top span {
  color: rgba(220,232,255,0.55);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.comm-message p {
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  word-break: break-word;
}

.comment-empty {
  padding: 18px;
  border-radius: 22px;
  text-align: center;
  color: rgba(220,232,255,0.66);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
}

.comment-form,
#commentForm {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 190px minmax(360px, 1fr) 300px 70px;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,227,255,0.09), transparent 55%),
    rgba(5, 8, 22, 0.62);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 0 22px rgba(0,0,0,0.22),
    0 0 24px rgba(139,227,255,0.08);
}

#commentForm > *,
.comment-form > * {
  min-width: 0;
}

#commentName,
#commentText {
  width: 100%;
  min-width: 0;
  height: 58px;
  border: 1px solid rgba(255,255,255,0.15);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
    rgba(5, 8, 22, 0.72);
  color: white;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,0.30),
    0 0 18px rgba(139,227,255,0.07);
  font-size: 15px;
  font-weight: 900;
  outline: none;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

#commentName {
  grid-column: 1;
  grid-row: 1;
  border-radius: 999px;
  padding: 0 18px;
}

#commentText {
  grid-column: 2;
  grid-row: 1;
  max-height: 58px;
  resize: none;
  overflow: hidden;
  border-radius: 20px;
  padding: 17px 18px;
  font-family: Arial, sans-serif;
  line-height: 1.25;
}

#commentName::placeholder,
#commentText::placeholder {
  color: rgba(220,232,255,0.48);
}

#commentName:focus,
#commentText:focus {
  border-color: rgba(139,227,255,0.55);
  background:
    linear-gradient(180deg, rgba(139,227,255,0.10), rgba(255,255,255,0.04)),
    rgba(5, 8, 22, 0.82);
  box-shadow:
    0 0 24px rgba(139,227,255,0.22),
    inset 0 0 18px rgba(0,0,0,0.28);
}

.rating-box {
  grid-column: 3;
  grid-row: 1;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 26px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 179, 107, 0.14), transparent 60%),
    rgba(5, 8, 22, 0.66);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    inset 0 0 16px rgba(0,0,0,0.25),
    0 0 18px rgba(255,179,107,0.10);
}

.rating-star {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  border: none;
  padding: 0;
  background: transparent;
  color: rgba(220,232,255,0.28);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  text-shadow: none;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease,
    filter 0.18s ease;
}

.rating-star:hover {
  transform: translateY(-2px) scale(1.14);
  color: #ffdd8a;
  text-shadow:
    0 0 10px rgba(255,221,138,0.65),
    0 0 22px rgba(255,179,107,0.35);
}

.rating-star.active {
  color: #ffcc4d;
  text-shadow:
    0 0 10px rgba(255,204,77,0.85),
    0 0 24px rgba(255,179,107,0.42);
}

#commentSubmitBtn {
  grid-column: 4;
  grid-row: 1;
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  justify-self: center;
  align-self: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #06101f;
  background: linear-gradient(135deg, #8be3ff, #ee6bf3, #72ff87);
  font-size: 25px;
  font-weight: 900;
  box-shadow:
    0 0 24px rgba(139,227,255,0.30),
    0 0 38px rgba(238,107,243,0.16);
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    box-shadow 0.22s ease;
}

#commentSubmitBtn:hover {
  transform: translateY(-2px) scale(1.06);
  filter: brightness(1.15);
  box-shadow:
    0 0 32px rgba(139,227,255,0.42),
    0 0 50px rgba(238,107,243,0.24);
}

#commentSubmitBtn:active {
  transform: scale(0.96);
}

.comment-counter {
  grid-column: 2 / 3;
  grid-row: 2;
  width: 100%;
  margin-top: -6px;
  padding: 0 8px 0 6px;
  text-align: right;
  color: rgba(220,232,255,0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.comment-counter span.warning {
  color: #ffb36b;
  text-shadow: 0 0 12px rgba(255,179,107,0.48);
}

.comment-counter span.limit {
  color: #ff5da8;
  text-shadow:
    0 0 12px rgba(255,93,168,0.65),
    0 0 22px rgba(238,107,243,0.35);
}

.comments-note {
  margin: 10px 0 0;
  color: rgba(220,232,255,0.56);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.comm-input {
  display: none;
}

/* =========================
   FOOTER
========================= */

.portal-credit {
  margin: 34px auto 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-radius: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 0 26px rgba(139,227,255,0.12);
  color: #dce8ff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.portal-credit b {
  color: #8be3ff;
  text-shadow: 0 0 14px rgba(139,227,255,0.72);
}

.portal-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-credit a,
.portal-links a {
  display: inline-block;
  padding: 9px 15px;
  border-radius: 999px;
  color: #050816;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(139,227,255,0.25);
}

.site-note {
  margin: 30px auto 0;
  max-width: 880px;
  padding: 18px 22px;
  border-radius: 24px;
  color: rgba(220,232,255,0.72);
  font-size: 12px;
  line-height: 1.5;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.site-note p {
  margin: 6px 0;
}

/* =========================
   POPUP
========================= */

.team-popup {
  position: fixed;
  left: 50%;
  bottom: 38px;
  width: min(560px, calc(100% - 32px));
  padding: 34px 30px 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(139,227,255,0.12), transparent 44%),
    rgba(8, 10, 30, 0.90);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 70px rgba(139, 227, 255, 0.24);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    box-shadow 0.35s ease;
  z-index: 140;
  text-align: center;
}

.team-popup.active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.team-popup.volts {
  box-shadow: 0 0 90px rgba(0, 120, 255, 0.50);
}

.team-popup.flame {
  box-shadow: 0 0 90px rgba(255, 80, 45, 0.50);
}

.team-popup.leaf {
  box-shadow: 0 0 90px rgba(40, 255, 100, 0.46);
}

.popup-icon {
  font-size: 54px;
  margin-bottom: 10px;
}

.team-popup h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.team-popup p {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 16px;
  border: none;
  background: transparent;
  color: white;
  font-size: 30px;
  cursor: pointer;
  opacity: 0.75;
}

.choose-team-btn {
  margin-top: 22px;
  cursor: pointer;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  color: #06101f;
  background: linear-gradient(90deg, #8be3ff, #ee6bf3, #72ff87);
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(139,227,255,0.26);
}

.choose-team-btn:disabled {
  cursor: default;
  opacity: 0.65;
  filter: grayscale(0.25);
}

/* =========================
   TOAST
========================= */

.team-activated-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px);
  color: white;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow:
    0 0 34px rgba(139,227,255,0.25),
    inset 0 0 18px rgba(255,255,255,0.05);
  opacity: 0;
  transform: translate(-50%, 22px) scale(0.94);
  pointer-events: none;
  transition: 0.28s ease;
}

.team-activated-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* =========================
   EVENT ATMOSPHERE
========================= */

body.near-100 .hero {
  box-shadow:
    0 0 120px rgba(0,120,255,0.34),
    0 0 150px rgba(238,107,243,0.23),
    inset 0 0 65px rgba(255,255,255,0.055);
}

body.near-75 .background {
  filter: brightness(0.70) saturate(1.65);
}

body.near-75 .particles {
  opacity: 0.54;
}

body.near-50 .particles {
  opacity: 0.68;
  animation-duration: 15s;
}

body.near-25 .particles {
  opacity: 0.82;
  animation-duration: 12s;
}

body.near-7 .hero {
  animation: heroPulse 2.8s ease-in-out infinite;
}

body.near-1 .hero {
  animation: heroPulseFast 1.6s ease-in-out infinite;
}

@keyframes heroPulse {
  0%,100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.01);
  }
}

@keyframes heroPulseFast {
  0%,100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.018);
    filter: brightness(1.14);
  }
}

.started {
  grid-column: 1 / -1;
  padding: 30px;
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  color: #8be3ff;
  text-shadow:
    0 0 18px rgba(139, 227, 255, 1),
    0 0 50px rgba(238, 107, 243, 0.78);
}

/* =========================
   TABLET
========================= */

@media (min-width: 761px) and (max-width: 1100px) {
  .hero {
    width: min(1100px, 94vw);
    padding-left: 42px;
    padding-right: 42px;
  }

  .community-comms {
    width: min(980px, 94vw);
    max-width: 980px;
    padding: 28px 24px;
  }

  #commentForm,
  .comment-form {
    grid-template-columns: 160px minmax(260px, 1fr) 235px 62px;
    gap: 12px;
    padding: 16px;
  }

  #commentName,
  #commentText {
    height: 54px;
    max-height: 54px;
  }

  .rating-box {
    width: 235px;
    min-width: 235px;
    max-width: 235px;
    height: 54px;
    gap: 8px;
    padding: 0 18px;
  }

  .rating-star {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 24px;
  }

  #commentSubmitBtn {
    width: 58px;
    min-width: 58px;
    height: 58px;
    min-height: 58px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {
  .scene {
    min-height: auto;
    display: block;
    padding: 14px;
    padding-bottom: 90px;
  }

  .hero {
    width: 100%;
    padding: 24px 14px 32px;
    border-radius: 28px;
  }

  .top-actions {
    top: 10px;
    right: 10px;
    gap: 10px;
  }

  .action-label {
    display: none;
  }

  .lang-toggle,
  .download-toggle,
  .share-toggle,
  .theme-toggle,
  .music-top-toggle {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .language-menu {
    top: 50px;
    width: 155px;
    max-height: 270px;
  }

  .download-menu {
    top: 50px;
    width: 205px;
  }

  .pkxd-badge {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px;
    font-size: 12px;
  }

  .pkxd-badge img {
    height: 22px;
  }

  .event-date {
    font-size: 11px;
    letter-spacing: 1.2px;
    margin-bottom: 20px;
    padding: 9px 14px;
  }

  .signs-orbit {
    width: 300px;
    max-width: 100%;
    height: 140px;
  }

  .signs-orbit::before,
  .orbit-line {
    top: 62px;
    width: 300px;
    max-width: 100%;
    height: 78px;
  }

  .sign-volt {
    width: 92px;
    height: 92px;
  }

  .sign-flame,
  .sign-leaf {
    width: 76px;
    height: 76px;
    top: 50px;
  }

  .sign-flame {
    left: 36px;
  }

  .sign-leaf {
    right: 36px;
  }

  body.selected-volts .sign-volt,
  body.selected-flame .sign-flame,
  body.selected-leaf .sign-leaf {
    top: 4px;
    width: 108px;
    height: 108px;
    transform: translateX(-50%);
    scale: 1.1;
  }

  h1 {
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -1px;
  }

  h1 span {
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -2px;
    max-width: 100%;
    white-space: nowrap;
    transform: scaleX(0.86);
    transform-origin: center;
  }

  .mode-switch {
    margin-top: 24px;
    max-width: 100%;
    overflow-x: auto;
  }

  .mode-btn {
    font-size: 12px;
    padding: 9px 13px;
    white-space: nowrap;
  }

  .timer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
  }

  .time-card {
    padding: 24px 10px 18px;
    border-radius: 22px;
  }

  .time-card p {
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .progress-panel,
  .theories-panel,
  .team-energy,
  .video-hub,
  .watch-more,
  .community-comms {
    padding: 20px 14px;
    border-radius: 24px;
  }

  .hashtags {
    gap: 12px;
  }

  .team-btn {
    font-size: 13px;
    padding: 10px 14px;
  }

  .theory-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-section {
    padding: 16px;
    border-radius: 22px;
  }

  .video-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 14px;
  }

  .video-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .community-comms {
    width: 100%;
    max-width: 100%;
    margin-top: 26px;
    overflow: hidden;
  }

  .community-rating {
    width: 100%;
    max-width: 100%;
    padding: 16px 14px;
  }

  .community-rating-main {
    gap: 12px;
  }

  #averageStars {
    font-size: 25px;
    letter-spacing: 2px;
  }

  #averageRating {
    font-size: 18px;
  }

  #commentsList,
  .comments-list {
    max-height: 360px;
    padding-right: 8px;
  }

  .comm-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .comm-message {
    padding: 15px 16px;
  }

  .comm-message p {
    font-size: 15px;
  }

  #commentForm,
  .comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 26px;
  }

  #commentName,
  #commentText,
  .rating-box,
  #commentSubmitBtn,
  .comment-counter {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #commentName,
  #commentText {
    height: 48px;
    max-height: 48px;
  }

  .rating-box {
    height: 52px;
    justify-content: center;
    gap: 16px;
    padding: 0 14px;
  }

  .rating-star {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 25px;
  }

  #commentSubmitBtn {
    height: 50px;
    min-height: 50px;
    border-radius: 999px;
  }

  .comment-counter {
    text-align: right;
    padding-right: 4px;
    margin-top: -4px;
  }

  .portal-credit {
    font-size: 12px;
    border-radius: 22px;
  }

  .portal-credit a,
  .portal-links a {
    font-size: 12px;
  }

  .site-note {
    font-size: 11px;
    padding: 15px 14px;
  }

  .team-popup {
    bottom: 20px;
    padding: 30px 22px 24px;
  }

  .team-popup h2 {
    font-size: 28px;
  }

  .team-popup p {
    font-size: 16px;
  }

  .team-activated-toast {
    bottom: 22px;
    font-size: 12px;
    padding: 12px 16px;
  }
}

@media (max-width: 420px) {
  .scene {
    padding: 10px;
    padding-bottom: 80px;
  }

  .hero {
    padding: 22px 12px 30px;
  }

  .signs-orbit {
    width: 250px;
    height: 120px;
  }

  .signs-orbit::before,
  .orbit-line {
    width: 250px;
    height: 66px;
    top: 58px;
  }

  .sign-volt {
    width: 76px;
    height: 76px;
  }

  .sign-flame,
  .sign-leaf {
    width: 64px;
    height: 64px;
    top: 48px;
  }

  .sign-flame {
    left: 24px;
  }

  .sign-leaf {
    right: 24px;
  }

  body.selected-volts .sign-volt,
  body.selected-flame .sign-flame,
  body.selected-leaf .sign-leaf {
    top: 2px;
    width: 94px;
    height: 94px;
    transform: translateX(-50%);
    scale: 1.08;
  }

  h1 {
    font-size: 30px;
  }

  h1 span {
    font-size: 34px;
    transform: scaleX(0.82);
  }

  .timer {
    gap: 10px;
  }

  .time-card {
    padding: 20px 8px 16px;
    border-radius: 20px;
  }

  .team-btn {
    font-size: 12px;
    padding: 9px 12px;
  }

  .rating-box {
    gap: 10px;
    padding: 0 10px;
  }

  .rating-star {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 23px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
