/* Video Drop's cyan highlights, with the current Android-safe motion retained. */
body.event-theme-nightmares .price-switch-option.event {
  color: #9cefff;
  -webkit-text-fill-color: #9cefff;
  background: none;
  filter: none;
  text-shadow: 0 1px 3px #061225;
}
body.event-theme-nightmares .price-switch-option.event.active {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
body.event-theme-nightmares .price-switch-option.event::before { content: none; }
body.event-theme-nightmares .price-switch-option.event::after {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(135deg, #125bb5, #218bc4 65%, #22bfd2);
  border-color: #8eefff;
  text-shadow: 0 1px 3px #072a50;
  box-shadow: 0 0 9px #32e8ff66, 0 3px 8px #0006;
}
body.event-theme-nightmares .price-switch.event .price-switch-thumb {
  background: linear-gradient(125deg, #2257cc, #208fd3 56%, #32d8eb);
  box-shadow: 0 6px 20px #32c8ff44, inset 0 1px 0 #b7f7ff66;
}
body.event-theme-nightmares .event-inline-title {
  color: #91eaff;
  -webkit-text-fill-color: #91eaff;
  background: none;
  filter: none;
  text-shadow: 0 0 7px #32caff44;
}
body.event-theme-nightmares .event-inline-time,
body.event-theme-nightmares .event-time-badge {
  color: #d8fbff;
  text-shadow: 0 0 8px #32caff44;
}
body.event-theme-nightmares .event-video-strip {
  background: linear-gradient(135deg, #07192d, #09182a 65%, #1d1236);
  border-color: #32e8ff66;
  box-shadow: inset 0 1px 0 #ffffff26, 0 0 20px #32caff33;
}
body.event-theme-nightmares .event-video-tile {
  position: absolute;
  top: 4px;
  left: 6px;
  border-color: #9be9ff66;
  box-shadow: 0 4px 12px #0005;
  animation: xkVideoBlueReel 18s linear infinite;
  animation-delay: calc((var(--video-index) - 8) * 2s);
  animation-play-state: paused;
}
body.event-theme-nightmares .event-video-track {
  width: 100%;
  animation: none;
  transform: none;
  will-change: auto;
}
body.event-theme-nightmares .event-video-strip.is-running .event-video-tile {
  animation-play-state: running;
}
body.mode-event.event-theme-nightmares .card-wrapper {
  background: linear-gradient(135deg, #32e8ff, #4084ff 58%, #9b75e8);
  box-shadow: 0 0 34px #32caff40, 0 0 68px #406bff26;
}
body.mode-event.event-theme-nightmares .card-wrapper::before {
  background: radial-gradient(circle at 50% 0%, #32e8ff26, #497dff1f, transparent 72%);
}
body.mode-event.event-theme-nightmares .card {
  background:
    radial-gradient(circle at 12% -4%, #32e8ff24, transparent 36%),
    radial-gradient(circle at 88% 14%, #5284ff1f, transparent 38%),
    radial-gradient(circle at 50% 105%, #ad5bb512, transparent 42%),
    linear-gradient(180deg, #070d1b, #0e0a17);
  border-color: #32e8ff42;
}
body.mode-event.event-theme-nightmares .badge {
  background: #0b1830;
  border-color: #32e8ff70;
  box-shadow: 0 0 16px #32caff24;
}
body.mode-event.event-theme-nightmares .title {
  color: #f5fdff;
  -webkit-text-fill-color: #f5fdff;
  text-shadow: 0 0 16px #32caff66, 0 1px 3px #000;
}
body.mode-event.event-theme-nightmares .price,
body.mode-event.event-theme-nightmares .reveal-msg { color: #d8fbff; }
body.mode-event.event-theme-nightmares .main-btn-wrap::before {
  background: radial-gradient(ellipse, #32caff38, #467aff24 44%, transparent 75%);
}
body.mode-event.event-theme-nightmares .btn {
  background: linear-gradient(125deg, #285cce, #248fc9 56%, #2ac3cf);
  border-color: #8eecff99;
  color: #fff;
  text-shadow: 0 1px 3px #072550;
  box-shadow: 0 0 30px #32caff55, 0 14px 36px #0007;
  animation: xkVideoBlueBreath 2.8s ease-in-out infinite alternate;
}
body.mode-event.event-theme-nightmares .chances-card {
  background: radial-gradient(circle at 20% 0%, #32e8ff12, transparent 42%), #1332521a;
  border-color: #54d7ff55;
}
body.event-theme-nightmares .event-boost-badge {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 2px #04233d;
  background: linear-gradient(135deg, #1c61a1, #208291 65%, #2589ad);
  border-color: #81eaffaa;
  box-shadow: inset 0 1px 0 #ffffff33, 0 0 8px #32caff24;
}
body.mode-event.event-theme-nightmares .reze-event-stars span {
  color: #adf1ff;
  text-shadow: 0 0 9px #32caff77;
}
body.mode-event.event-theme-nightmares .reze-event-stars span:nth-child(3n) { color: #97baff; }
body.mode-event.event-theme-nightmares .reze-event-stars span:nth-child(4n) { color: #e9c8f4; }
body.event-theme-nightmares .video-event-count {
  display: block;
  margin: 0 0 6px;
  color: #82efff;
  -webkit-text-fill-color: #82efff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 0 12px #32caff66, 0 1px 3px #000;
}
body.event-theme-nightmares .video-event-count strong {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 900;
}
@keyframes xkVideoBlueBreath {
  from { transform: scale(1); }
  to { transform: scale(1.012); }
}
/* Nine players loop individually, without a second set of video decoders. */
@keyframes xkVideoBlueReel {
  from { transform: translate3d(352px, 0, 0); }
  to { transform: translate3d(-44px, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.mode-event.event-theme-nightmares .btn { animation: none !important; }
  body.event-theme-nightmares .event-video-tile { animation-play-state: paused !important; }
}


/* Video Event only. Motion uses opacity/transform, not animated filters. */
body.event-theme-nightmares .video-event-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 3px 5px;
  margin-bottom: 7px;
}
body.event-theme-nightmares .video-event-count {
  display: inline;
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
}
body.event-theme-nightmares .video-event-extra {
  color: #e0e8f0;
  font-size: 12px;
  white-space: nowrap;
}
body.event-theme-nightmares .event-time-badge {
  margin-left: 0;
  padding: 3px 8px;
  color: #ff8b9c;
  -webkit-text-fill-color: #ff8b9c;
  background: #381321;
  border-color: #e85a7280;
  text-shadow: 0 0 7px #ff345c55;
  box-shadow: 0 0 10px #ff345c25;
}
body.event-theme-nightmares .event-time-badge::before {
  content: '\23f3';
  margin-right: 4px;
}
body.mode-event.event-theme-nightmares .main-btn-wrap::before {
  top: -20px;
  bottom: auto;
  height: calc(100% + 40px);
  width: min(340px, 100%);
  background: radial-gradient(ellipse, #27dbff9c 0%, #277cff66 38%, #1970ff26 60%, transparent 74%);
  filter: none;
  animation: xkVideoCompactGlow 3s ease-in-out infinite alternate;
}
body.mode-event.event-theme-nightmares .btn {
  box-shadow: 0 0 24px #39d9ff80, 0 0 48px #258aff50, 0 12px 30px #0006;
  animation: xkVideoCompactBreath 3s ease-in-out infinite alternate;
}
body.mode-event.event-theme-nightmares .btn:disabled { animation: none; }
body.event-theme-nightmares .event-boost-badge {
  top: 1px;
  letter-spacing: 0;
}
body.event-theme-nightmares .event-inline-meta { line-height: 1.5; }
body.event-theme-nightmares .event-inline-title {
  display: inline-block;
  position: relative;
  color: #36d9ff;
  -webkit-text-fill-color: #36d9ff;
  background: none;
  filter: none;
  text-shadow: 0 0 7px #32caff66;
  animation: none;
}
body.event-theme-nightmares .event-inline-title::after {
  content: attr(data-video-title);
  position: absolute;
  inset: 0;
  color: #d0a1ff;
  -webkit-text-fill-color: #d0a1ff;
  text-shadow: 0 0 7px #9674ff66;
  opacity: 0;
  pointer-events: none;
  animation: xkVideoCompactTitle 3.6s ease-in-out infinite alternate;
}
body.event-theme-nightmares .event-inline-time {
  color: #ff748e;
  -webkit-text-fill-color: #ff748e;
  text-shadow: 0 0 8px #ff345c66;
  animation: xkVideoCompactTimer 2.5s ease-in-out infinite alternate;
}
@keyframes xkVideoCompactBreath {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}
@keyframes xkVideoCompactGlow {
  from { opacity: .7; transform: translateX(-50%) scale(.94); }
  to { opacity: 1; transform: translateX(-50%) scale(1.04); }
}
@keyframes xkVideoCompactTitle {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes xkVideoCompactTimer {
  from { opacity: .78; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.mode-event.event-theme-nightmares .main-btn-wrap::before,
  body.mode-event.event-theme-nightmares .btn,
  body.event-theme-nightmares .event-inline-title::after,
  body.event-theme-nightmares .event-inline-time { animation: none !important; }
}

/* Static text, with a small clipped highlight moved only by transforms. */
body.mode-event.event-theme-nightmares #subtitleText { opacity: 1; }
body.event-theme-nightmares .video-event-count {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}
body.event-theme-nightmares .video-count-shine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24%;
  overflow: hidden;
  pointer-events: none;
  opacity: .8;
  contain: paint;
  transform: translateX(-100%);
  animation: xkVideoCountSweep 5s linear infinite;
}
body.event-theme-nightmares .video-count-shine > span {
  display: block;
  width: 416.666667%;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
  transform: translateX(24%);
  animation: xkVideoCountCounterSweep 5s linear infinite;
}
body.event-theme-nightmares .video-count-shine strong { text-shadow: none; }
body.event-theme-nightmares .video-event-extra { color: #bcc9d8; }
body.event-theme-nightmares .event-time-badge {
  padding: 3px 9px;
  color: #ff7c8d;
  -webkit-text-fill-color: #ff7c8d;
  background: #111523;
  border-color: #ca7a8d40;
  box-shadow: inset 0 1px 0 #ffffff08;
  text-shadow: 0 1px 2px #0008;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
body.event-theme-nightmares .event-time-badge::before { opacity: .7; }
body.mode-event.event-theme-nightmares .btn {
  animation: xkVideoPolishBreath 3.4s ease-in-out infinite alternate;
}
@keyframes xkVideoPolishBreath {
  from { transform: scale(1); }
  to { transform: scale(1.012); }
}
/* Counter-motion keeps the letters still while the highlight crosses them. */
@keyframes xkVideoCountSweep {
  0%, 62% { transform: translateX(-100%); }
  100% { transform: translateX(516.666667%); }
}
@keyframes xkVideoCountCounterSweep {
  0%, 62% { transform: translateX(24%); }
  100% { transform: translateX(-124%); }
}
@media (prefers-reduced-motion: reduce) {
  body.event-theme-nightmares .video-count-shine { display: none; }
  body.event-theme-nightmares .video-count-shine,
  body.event-theme-nightmares .video-count-shine > span { animation: none !important; }
}

/* Restore the standard NEW badge independently of the blue event theme. */
body.event-theme-nightmares .price-switch-option.event::after {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(135deg, #ff3fb4, #ff5a88 56%, #ff9a45);
  border-color: #ffffff7a;
  text-shadow: none;
  box-shadow: 0 0 8px #ff3fb494, 0 0 14px #ff5a884d, 0 4px 10px #00000047;
}
/* Keep the halo attached to the button, without a wider expanding layer. */
body.mode-event.event-theme-nightmares .main-btn-wrap::before {
  content: none;
  animation: none;
}
body.mode-event.event-theme-nightmares .btn {
  box-shadow: 0 0 20px #39d9ff80, 0 0 32px #258aff45, 0 10px 24px #0005;
  text-shadow: none;
}
body.mode-event.event-theme-nightmares #btnText { text-shadow: none; }
/* A blurred text shadow clipped at the label bounds creates a rectangular rim. */
body.event-theme-nightmares .video-event-count,
body.event-theme-nightmares .video-event-count strong,
body.event-theme-nightmares .video-count-shine,
body.event-theme-nightmares .video-count-shine > span {
  text-shadow: none;
  box-shadow: none;
  background: none;
  border: 0;
  outline: 0;
}

/* Warm primary action; cool, quieter secondary information. */
body.mode-event.event-theme-nightmares .btn {
  background: linear-gradient(120deg, #c92e5c, #cf3e57 55%, #cd4a4e);
  border-color: #ffacb5a6;
  color: #fff;
  text-shadow: none;
  box-shadow: 0 0 20px #ff567a73, 0 0 32px #e83c6940, 0 10px 24px #0005;
}
body.event-theme-nightmares .event-boost-badge {
  background: linear-gradient(135deg, #30233f, #3e2b50);
  border-color: #b29bd38c;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
  box-shadow: inset 0 1px 0 #ffffff14;
}
body.event-theme-nightmares .price-switch.event .price-switch-thumb {
  background: linear-gradient(180deg, #284f78, #193656 56%, #142b46);
  box-shadow: inset 0 0 0 1px #72ceeea6, inset 0 2px 0 #c9f4ff26, 0 3px 8px #0005;
}
body.event-theme-nightmares #limitedEventSubtitleTime {
  color: #ff8290;
  -webkit-text-fill-color: #ff8290;
  background: #0b101b;
  font-weight: 900;
  text-shadow: none;
}

body.mode-event.event-theme-nightmares .btn {
  background: linear-gradient(115deg, #e50937, #f92a48 52%, #ff6756);
  border-color: #ffb3bb99;
  text-shadow: none;
  box-shadow:
    0 0 34px rgba(255, 30, 72, .60),
    0 14px 34px rgba(255, 78, 50, .36),
    inset 0 1px 0 rgba(255, 255, 255, .20);
}
/* Original Reze badge palette, scoped to Video Event. */
body.event-theme-nightmares .event-boost-badge {
  color: #fff8ff;
  -webkit-text-fill-color: #fff8ff;
  text-shadow: 0 1px 2px rgba(39, 5, 65, .62);
  background:
    radial-gradient(circle at 24% 13%, rgba(255,255,255,.42), transparent 42%),
    linear-gradient(135deg, rgba(255, 91, 167, .92), rgba(164, 91, 255, .88) 52%, rgba(255, 168, 83, .74));
  border-color: rgba(245, 196, 255, .58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(50, 6, 74, .18),
    0 0 10px rgba(205, 92, 255, .24),
    0 0 12px rgba(255, 90, 168, .18);
}
body.event-theme-nightmares #limitedEventSubtitleTime {
  color: #ff3b52;
  -webkit-text-fill-color: #ff3b52;
  background: #090e18;
  text-shadow: 0 0 6px rgba(255, 35, 64, .24);
}

body.event-theme-nightmares .video-event-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
}
body.event-theme-nightmares .video-event-status .event-time-badge,
body.event-theme-nightmares .video-event-collected {
  box-sizing: border-box;
  min-height: 22px;
  margin: 0;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
body.event-theme-nightmares .video-event-collected {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #c3d5e2;
  background: #101a29;
  border: 1px solid #59c4e53d;
  border-radius: 999px;
  text-shadow: none;
}
body.event-theme-nightmares .video-event-collected b {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
}
body.event-theme-nightmares .video-event-collected b span {
  color: #82deef;
  -webkit-text-fill-color: #82deef;
}

body.event-theme-nightmares .event-inline-time {
  color: #ff3b52;
  -webkit-text-fill-color: #ff3b52;
  text-shadow: 0 0 6px rgba(255, 35, 64, .24);
}
body.event-theme-nightmares button.video-event-collected {
  appearance: none;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
body.event-theme-nightmares button.video-event-collected:hover {
  background: #142337;
  border-color: #82deef80;
}
body.event-theme-nightmares button.video-event-collected:focus-visible {
  outline: 2px solid #82deef;
  outline-offset: 2px;
}


/* Eight tiles, retaining the previous reel's 44px spacing and 2s cadence. */
body.event-theme-video2.event-theme-nightmares .event-video-tile {
  animation-name: malfoidPreviewReel;
  animation-duration: 16s;
  animation-delay: calc((var(--video-index) - 7) * 2s);
}

@keyframes malfoidPreviewReel {
  from { transform: translate3d(308px, 0, 0); }
  to { transform: translate3d(-44px, 0, 0); }
}


/* Halloween theme with a short, non-interactive bat entrance. */
body.mode-event.event-theme-nightmares .page::before { z-index: -1; background: linear-gradient(180deg, #090313bf, #09030ce0); }
body.mode-event.event-theme-nightmares .card-wrapper {
  background: linear-gradient(125deg, #ffb044, #ff723a 28%, #b266ff 64%, #ef853e);
  box-shadow: 0 0 28px #ff77295e, 0 0 62px #c35cff38, 0 20px 42px #0009;
}
body.mode-event.event-theme-nightmares .card-wrapper::before {
  inset: -2px; background: linear-gradient(125deg, #ff8a4266, #9d5cfa66 65%, #ff952b66);
  filter: blur(22px); opacity: .9; animation: nightmareCardAura 3.6s ease-in-out infinite alternate;
}
body.mode-event.event-theme-nightmares .card {
  background: radial-gradient(ellipse at 0% 0%, #b6472429, transparent 48%), radial-gradient(ellipse at 100% 10%, #9e46dc24, transparent 48%), linear-gradient(155deg, #21101e, #120b1c 58%, #170e18);
  border-color: #ffba7a45;
}
body.mode-event.event-theme-nightmares .badge { color: #ffe6c8; background: #442024; border: 1px solid #ffac5680; box-shadow: inset 0 1px 0 #ffffff1a, 0 0 14px #ff8b3b4d; }
body.mode-event.event-theme-nightmares #titleText {
  display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 12px; margin-bottom: 8px;
  color: #fff8f2; -webkit-text-fill-color: #fff8f2; text-shadow: 0 0 14px #ff843e33; letter-spacing: 0; line-height: 1.25;
}
body.event-theme-nightmares .nightmares-presenter { display: block; font-size: 8px; line-height: 13px; font-weight: 650; color: #c8bacf; -webkit-text-fill-color: #c8bacf; text-shadow: none; }
body.event-theme-nightmares .nightmares-heading {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; min-height: 32px;
  font-size: 20px; line-height: 28px; font-weight: 900; color: #fff6ed; -webkit-text-fill-color: #fff6ed;
}
body.event-theme-nightmares .nightmares-heading > span:nth-child(2) { min-width: 0; }
body.event-theme-nightmares .nightmares-symbol { flex: 0 0 auto; font-size: 18px; font-weight: 400; line-height: 1.4; -webkit-text-fill-color: initial; }
body.event-theme-nightmares .nightmares-edition { font-size: 11px; line-height: 18px; font-weight: 500; color: #d5bfdf; -webkit-text-fill-color: #d5bfdf; text-shadow: none; }
body.event-theme-nightmares .nightmares-contents { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 9px; line-height: 1.3; }
body.event-theme-nightmares .nightmares-sets-line { display: block; max-width: 100%; color: #ffb54d; -webkit-text-fill-color: #ffb54d; font-size: 15px; font-weight: 900; }
body.event-theme-nightmares .nightmares-count-spark { color: #ffd787; -webkit-text-fill-color: #ffd787; font-size: 12px; text-shadow: 0 0 9px #ff9d3a80; }
body.event-theme-nightmares .nightmares-count-shimmer { color: #ffb54d; -webkit-text-fill-color: #ffb54d; text-shadow: 0 0 12px #ff9d323b; }
body.event-theme-nightmares .nightmares-count-shimmer strong { font-weight: 950; }
body.event-theme-nightmares .nightmares-photos-line { display: block; max-width: 100%; font-size: 17px; font-weight: 900; line-height: 1.3; }
body.event-theme-nightmares .nightmares-photo-shimmer { color: #d8b2ff; -webkit-text-fill-color: #d8b2ff; text-shadow: 0 0 12px #a963f04d; }
body.event-theme-nightmares .nightmares-photo-shimmer strong { font-size: 20px; font-weight: 950; }
body.event-theme-nightmares .nightmares-inside { font-size: 13px; font-weight: 500; color: #f4eaf6; -webkit-text-fill-color: #f4eaf6; text-shadow: none; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  body.event-theme-nightmares .nightmares-count-shimmer,
  body.event-theme-nightmares .nightmares-photo-shimmer {
    background-size: 240% 100%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: nightmareContentShimmer 5.8s linear infinite; text-shadow: none;
  }
  body.event-theme-nightmares .nightmares-count-shimmer { background-image: linear-gradient(110deg, #ffa62c 0%, #ffb34a 32%, #fff3c5 46%, #fff 51%, #ffb34a 63%, #ffa62c 100%); }
  body.event-theme-nightmares .nightmares-photo-shimmer { background-image: linear-gradient(110deg, #ce99ff 0%, #e2bdff 32%, #fff4e7 46%, #fff 51%, #e2bdff 63%, #ce99ff 100%); animation-delay: .5s; }
}
body.event-theme-nightmares .video-event-status { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; }
body.event-theme-nightmares .video-event-collected {
  color: #edddf7; background: #20132f; border-color: #b780df75; box-shadow: inset 0 1px 0 #ffffff14, 0 0 12px #ad62e12b;
  font-size: 11px; padding: 3px 8px;
}
body.event-theme-nightmares .video-event-collected b { color: #fff; -webkit-text-fill-color: #fff; }
body.event-theme-nightmares .video-event-collected b span { color: #dcb3ff; -webkit-text-fill-color: #dcb3ff; }
body.event-theme-nightmares .event-time-badge,
body.event-theme-nightmares #limitedEventSubtitleTime {
  color: #ff5372; -webkit-text-fill-color: #ff5372; background: #2d1020; border-color: #ff537270;
  text-shadow: 0 0 7px #ff416633; box-shadow: 0 0 11px #ed3c6626; font-size: 10px; padding: 3px 8px;
}
body.event-theme-nightmares .event-video-strip { background: linear-gradient(120deg, #42203a, #271235 60%, #482418); border-color: #d596f591; box-shadow: inset 0 1px 0 #ffffff26, 0 0 19px #bd66fc59, 0 0 35px #e5732926; }
body.event-theme-nightmares .event-video-tile { border-color: #f0c0ef80; box-shadow: 0 4px 12px #0008; animation-name: malfoidPreviewReel; animation-duration: 16s; animation-delay: calc((var(--video-index) - 7) * 2s); }
body.mode-event.event-theme-nightmares .price,
body.mode-event.event-theme-nightmares .reveal-msg { color: #efdfed; }
body.mode-event.event-theme-nightmares .main-btn-wrap::before {
  top: 50%; bottom: auto; left: 50%; width: min(330px, 100%); height: 88px;
  background: radial-gradient(ellipse, #ff6e22b3, #ff692d66 43%, #ff722b1a 65%, transparent 78%);
  filter: blur(12px); transform: translate(-50%, -50%); animation: nightmareButtonAura 2.7s ease-in-out infinite alternate;
}
body.mode-event.event-theme-nightmares .btn {
  color: #fff; background: linear-gradient(108deg, #ff3828, #ff7524 50%, #ffad32); border-color: #ffd19fba;
  box-shadow: 0 0 32px #ff752b9e, 0 0 58px #ff55244d, 0 12px 28px #b5362440, inset 0 1px 0 #fff6d966;
  text-shadow: 0 1px 2px #7f291940; animation: nightmareButtonBreath 2.7s ease-in-out infinite alternate;
}
body.mode-event.event-theme-nightmares .btn:disabled { animation: none; }
body.mode-event.event-theme-nightmares #btnText { text-shadow: inherit; }
body.mode-event.event-theme-nightmares .chances-card { background: linear-gradient(115deg, #2f16202e, #341a422e), #170e20; border-color: #c58be578; }
body.event-theme-nightmares .event-boost-badge {
  position: relative; isolation: isolate; overflow: hidden; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: 82px; min-width: 82px; height: 15px; padding: 0 3px; font-size: 9px; line-height: 1; font-weight: 750; letter-spacing: 0;
  color: #fff; -webkit-text-fill-color: #fff; background: linear-gradient(115deg, #a4461b, #e97721 58%, #ae521d); border-color: #ffbd68ad;
  text-shadow: 0 1px 1px #692211; box-shadow: inset 0 1px 0 #ffedc54d, 0 0 8px #ff862b47; animation: nightmaresBadgePulse 3.4s ease-in-out infinite alternate;
}
body.event-theme-nightmares .chances-card-row:nth-child(even) .event-boost-badge { background: linear-gradient(115deg, #813baa, #b55cdd 58%, #8840a7); border-color: #e0b6ffb3; box-shadow: inset 0 1px 0 #f2d8ff4d, 0 0 8px #bc6af247; }
body.event-theme-nightmares .event-boost-badge::after {
  content: ""; position: absolute; top: -25%; bottom: -25%; left: 0; width: 26%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff4ddd9, transparent); transform: translateX(-160%) skewX(-18deg); animation: nightmaresBadgeShine 5s ease-in-out infinite;
}
body.event-theme-nightmares .chances-card-row:nth-child(even) .event-boost-badge::after { animation-delay: .55s; }
body.event-theme-nightmares .price-switch.event .price-switch-thumb { background: linear-gradient(115deg, #e75b21, #ff942f 58%, #db6322); box-shadow: inset 0 1px 0 #fff0cc73, 0 0 17px #ff852966; }
body.event-theme-nightmares .price-switch-option.event { color: #ffb550; -webkit-text-fill-color: #ffb550; text-shadow: 0 0 8px #ff7d284d; }
body.event-theme-nightmares .price-switch-option.event.active { color: #fff; -webkit-text-fill-color: #fff; }
body.event-theme-nightmares .price-switch-option.event::after { color: #fff; -webkit-text-fill-color: #fff; background: linear-gradient(125deg, #ba4fea, #f16aad); border-color: #f7c2ff99; box-shadow: 0 0 10px #d05ffb8c; }
body.event-theme-nightmares .event-inline-title { color: #ffab43; -webkit-text-fill-color: #ffab43; text-shadow: 0 0 8px #ff8b3b70; }
body.event-theme-nightmares .event-inline-title::after { content: none; animation: none; }
body.event-theme-nightmares .event-inline-new { color: #ffe29b; -webkit-text-fill-color: #ffe29b; text-shadow: 0 0 8px #ffbf4f59; }
body.event-theme-nightmares .event-inline-time { color: #ff5372; -webkit-text-fill-color: #ff5372; text-shadow: 0 0 6px #ff416640; animation: none; }
body.mode-event.event-theme-nightmares .reze-event-stars span { color: #ffc183; text-shadow: 0 0 8px #ff923e99; }
body.mode-event.event-theme-nightmares .reze-event-stars span:nth-child(3n) { color: #d3a1ff; text-shadow: 0 0 8px #c067ff99; }
body.mode-event.event-theme-nightmares .reze-event-stars span:nth-child(4n) { color: #efe2f5; }
@keyframes nightmareContentShimmer { from { background-position: 120% 50%; } to { background-position: -120% 50%; } }
@keyframes nightmareCardAura { from { opacity: .65; } to { opacity: .95; } }
@keyframes nightmareButtonAura { from { opacity: .7; } to { opacity: 1; } }
@keyframes nightmareButtonBreath { from { transform: scale(1); } to { transform: scale(1.018); } }
@keyframes nightmaresBadgePulse { from { opacity: .9; } to { opacity: 1; } }
@keyframes nightmaresBadgeShine { 0%, 20% { transform: translateX(-160%) skewX(-18deg); } 70%, 100% { transform: translateX(540%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) {
  body.event-theme-nightmares .nightmares-count-shimmer,
  body.event-theme-nightmares .nightmares-photo-shimmer,
  body.event-theme-nightmares .event-boost-badge,
  body.event-theme-nightmares .event-boost-badge::after,
  body.mode-event.event-theme-nightmares .btn,
  body.mode-event.event-theme-nightmares .card-wrapper::before,
  body.mode-event.event-theme-nightmares .main-btn-wrap::before { animation: none !important; }
  body.event-theme-nightmares .event-boost-badge::after { opacity: 0; }
}

body.event-theme-nightmares .nightmares-contents { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 3px 5px; }
body.event-theme-nightmares .nightmares-contents-row { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; font-size: 14px; font-weight: 900; line-height: 21px; }
body.event-theme-nightmares .nightmares-contents-row strong { font-size: 16px; font-weight: 950; }
body.event-theme-nightmares .nightmares-count-divider { color: #d4a795; -webkit-text-fill-color: #d4a795; font-size: 12px; font-weight: 500; }
body.event-theme-nightmares .nightmares-inside { font-size: 10px; }
.nightmare-event-intro {
  position: fixed; inset: 0; z-index: 40000; isolation: isolate; pointer-events: none; overflow: hidden;
  background: #08020c26; animation: nightmareIntroVeil 1.8s ease-out both;
}
.nightmare-intro-light {
  position: absolute; inset: -10%; z-index: 0;
  background: radial-gradient(ellipse at 50% 42%, #ff9b3266 0%, #ff6a2a40 25%, #8a2b2a1a 48%, transparent 70%);
  animation: nightmareIntroLight 1.8s ease-out both;
}
.nightmare-intro-bats { position: absolute; inset: 0; z-index: 3; }
.nightmare-flying-bat {
  position: absolute; left: 50%; top: 42%; width: var(--bat-size); aspect-ratio: 100 / 58;
  opacity: 0; animation: nightmareBatFlight 1.45s cubic-bezier(.2,.48,.38,1) both;
  animation-delay: var(--flight-delay); will-change: transform, opacity;
}
.nightmare-flying-bat svg { display: block; width: 100%; height: 100%; overflow: visible; fill: #14091c; stroke: #e9ac768c; stroke-width: .65; stroke-linejoin: round; }
.nightmare-bat-wing { transform-box: view-box; transform-origin: 50px 31px; animation: nightmareWingLeft .24s ease-in-out infinite alternate; animation-delay: var(--flap-delay); }
.nightmare-bat-wing-right { animation-name: nightmareWingRight; }
.nightmare-flying-bat:nth-child(3n) .nightmare-bat-wing { animation-duration: .28s; }
.nightmare-bat-eyes { fill: none; stroke: #ffcc7b; stroke-width: 1.4; stroke-linecap: round; }
@keyframes nightmareIntroVeil { 0% { opacity: 0; } 12%, 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nightmareIntroLight { 0% { opacity: 0; } 18%, 48% { opacity: 1; } 100% { opacity: 0; } }
@keyframes nightmareBatFlight {
  0% { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(0deg) scale(.45); }
  12% { opacity: .95; }
  72% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--ex), var(--ey)) rotate(var(--bat-rotation)) scale(1.25); }
}
@keyframes nightmareWingLeft { from { transform: rotate(-12deg) scaleY(.65); } to { transform: rotate(8deg) scaleY(1.03); } }
@keyframes nightmareWingRight { from { transform: rotate(12deg) scaleY(.65); } to { transform: rotate(-8deg) scaleY(1.03); } }
@media (prefers-reduced-motion: reduce) { .nightmare-event-intro { display: none; } }


/* Only the Halloween event layout. Result text keeps its normal flow and height. */
body.mode-event.event-theme-nightmares .page::before {
  z-index: 24;
  background: rgba(0, 0, 0, .70);
}
body.mode-event.event-theme-nightmares .nightmares-presenter,
body.mode-event.event-theme-nightmares #priceText {
  display: none;
}
body.mode-event.event-theme-nightmares .main-btn-wrap {
  margin-top: 22px;
  margin-bottom: 6px;
}
body.mode-event.event-theme-nightmares #againBtn {
  margin-top: 2px;
}
body.mode-event.event-theme-nightmares #status {
  margin-top: 6px;
}
body.mode-event.event-theme-nightmares #chancesCard {
  margin-top: 4px;
}
body.event-theme-nightmares .nightmares-sets-new {
  display: inline-block;
  font-size: 12px;
  line-height: inherit;
  font-weight: 800;
  color: #ff5267;
  -webkit-text-fill-color: #ff5267;
  text-shadow: none;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  body.event-theme-nightmares .nightmares-sets-new {
    background-image: linear-gradient(110deg, #ff3656 0%, #ff6377 34%, #ffe3e6 49%, #ff6377 62%, #ff3656 100%);
    background-size: 240% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nightmareNewSetsShimmer 4.8s linear infinite;
  }
}
@keyframes nightmareNewSetsShimmer {
  from { background-position: 120% 50%; }
  to { background-position: -120% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  body.event-theme-nightmares .nightmares-sets-new { animation: none; }
}
