/* Video Drop's cyan highlights, with the current Android-safe motion retained. */
body.event-theme-malfoid .price-switch-option.event {
  color: #9cefff;
  -webkit-text-fill-color: #9cefff;
  background: none;
  filter: none;
  text-shadow: 0 1px 3px #061225;
}
body.event-theme-malfoid .price-switch-option.event.active {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
body.event-theme-malfoid .price-switch-option.event::before { content: none; }
body.event-theme-malfoid .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-malfoid .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-malfoid .event-inline-title {
  color: #91eaff;
  -webkit-text-fill-color: #91eaff;
  background: none;
  filter: none;
  text-shadow: 0 0 7px #32caff44;
}
body.event-theme-malfoid .event-inline-time,
body.event-theme-malfoid .event-time-badge {
  color: #d8fbff;
  text-shadow: 0 0 8px #32caff44;
}
body.event-theme-malfoid .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-malfoid .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-malfoid .event-video-track {
  width: 100%;
  animation: none;
  transform: none;
  will-change: auto;
}
body.event-theme-malfoid .event-video-strip.is-running .event-video-tile {
  animation-play-state: running;
}
body.mode-event.event-theme-malfoid .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-malfoid .card-wrapper::before {
  background: radial-gradient(circle at 50% 0%, #32e8ff26, #497dff1f, transparent 72%);
}
body.mode-event.event-theme-malfoid .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-malfoid .badge {
  background: #0b1830;
  border-color: #32e8ff70;
  box-shadow: 0 0 16px #32caff24;
}
body.mode-event.event-theme-malfoid .title {
  color: #f5fdff;
  -webkit-text-fill-color: #f5fdff;
  text-shadow: 0 0 16px #32caff66, 0 1px 3px #000;
}
body.mode-event.event-theme-malfoid .price,
body.mode-event.event-theme-malfoid .reveal-msg { color: #d8fbff; }
body.mode-event.event-theme-malfoid .main-btn-wrap::before {
  background: radial-gradient(ellipse, #32caff38, #467aff24 44%, transparent 75%);
}
body.mode-event.event-theme-malfoid .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-malfoid .chances-card {
  background: radial-gradient(circle at 20% 0%, #32e8ff12, transparent 42%), #1332521a;
  border-color: #54d7ff55;
}
body.event-theme-malfoid .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-malfoid .reze-event-stars span {
  color: #adf1ff;
  text-shadow: 0 0 9px #32caff77;
}
body.mode-event.event-theme-malfoid .reze-event-stars span:nth-child(3n) { color: #97baff; }
body.mode-event.event-theme-malfoid .reze-event-stars span:nth-child(4n) { color: #e9c8f4; }
body.event-theme-malfoid .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-malfoid .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-malfoid .btn { animation: none !important; }
  body.event-theme-malfoid .event-video-tile { animation-play-state: paused !important; }
}


/* Video Event only. Motion uses opacity/transform, not animated filters. */
body.event-theme-malfoid .video-event-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 3px 5px;
  margin-bottom: 7px;
}
body.event-theme-malfoid .video-event-count {
  display: inline;
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
}
body.event-theme-malfoid .video-event-extra {
  color: #e0e8f0;
  font-size: 12px;
  white-space: nowrap;
}
body.event-theme-malfoid .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-malfoid .event-time-badge::before {
  content: '\23f3';
  margin-right: 4px;
}
body.mode-event.event-theme-malfoid .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-malfoid .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-malfoid .btn:disabled { animation: none; }
body.event-theme-malfoid .event-boost-badge {
  top: 1px;
  letter-spacing: 0;
}
body.event-theme-malfoid .event-inline-meta { line-height: 1.5; }
body.event-theme-malfoid .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-malfoid .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-malfoid .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-malfoid .main-btn-wrap::before,
  body.mode-event.event-theme-malfoid .btn,
  body.event-theme-malfoid .event-inline-title::after,
  body.event-theme-malfoid .event-inline-time { animation: none !important; }
}

/* Static text, with a small clipped highlight moved only by transforms. */
body.mode-event.event-theme-malfoid #subtitleText { opacity: 1; }
body.event-theme-malfoid .video-event-count {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
}
body.event-theme-malfoid .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-malfoid .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-malfoid .video-count-shine strong { text-shadow: none; }
body.event-theme-malfoid .video-event-extra { color: #bcc9d8; }
body.event-theme-malfoid .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-malfoid .event-time-badge::before { opacity: .7; }
body.mode-event.event-theme-malfoid .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-malfoid .video-count-shine { display: none; }
  body.event-theme-malfoid .video-count-shine,
  body.event-theme-malfoid .video-count-shine > span { animation: none !important; }
}

/* Restore the standard NEW badge independently of the blue event theme. */
body.event-theme-malfoid .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-malfoid .main-btn-wrap::before {
  content: none;
  animation: none;
}
body.mode-event.event-theme-malfoid .btn {
  box-shadow: 0 0 20px #39d9ff80, 0 0 32px #258aff45, 0 10px 24px #0005;
  text-shadow: none;
}
body.mode-event.event-theme-malfoid #btnText { text-shadow: none; }
/* A blurred text shadow clipped at the label bounds creates a rectangular rim. */
body.event-theme-malfoid .video-event-count,
body.event-theme-malfoid .video-event-count strong,
body.event-theme-malfoid .video-count-shine,
body.event-theme-malfoid .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-malfoid .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-malfoid .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-malfoid .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-malfoid #limitedEventSubtitleTime {
  color: #ff8290;
  -webkit-text-fill-color: #ff8290;
  background: #0b101b;
  font-weight: 900;
  text-shadow: none;
}

body.mode-event.event-theme-malfoid .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-malfoid .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-malfoid #limitedEventSubtitleTime {
  color: #ff3b52;
  -webkit-text-fill-color: #ff3b52;
  background: #090e18;
  text-shadow: 0 0 6px rgba(255, 35, 64, .24);
}

body.event-theme-malfoid .video-event-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 8px;
}
body.event-theme-malfoid .video-event-status .event-time-badge,
body.event-theme-malfoid .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-malfoid .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-malfoid .video-event-collected b {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
}
body.event-theme-malfoid .video-event-collected b span {
  color: #82deef;
  -webkit-text-fill-color: #82deef;
}

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


/* Malfoid Nude Event TEST theme. The temporary Video Event #2 previews stay in place. */
body.event-theme-malfoid {
  --malfoid-emerald: #19a86b;
  --malfoid-emerald-bright: #42d98f;
  --malfoid-emerald-deep: #063b2c;
  --malfoid-silver: #dbe5df;
  --malfoid-silver-muted: #9eb2a9;
  --malfoid-ink: #030a08;
}

body.mode-event.event-theme-malfoid .page::before {
  background:
    radial-gradient(circle at 50% 12%, rgba(29, 159, 102, .13), transparent 42%),
    rgba(0, 5, 4, .78);
}

body.mode-event.event-theme-malfoid .card-wrapper {
  background: linear-gradient(140deg, #8ca79b, #15925f 38%, #0c4f3b 70%, #d3ddd8);
  box-shadow:
    0 0 26px rgba(42, 203, 133, .28),
    0 0 58px rgba(4, 86, 61, .22),
    0 20px 44px rgba(0, 0, 0, .58);
}

body.mode-event.event-theme-malfoid .card-wrapper::before {
  background: radial-gradient(circle at 50% 0%, rgba(88, 222, 155, .18), rgba(207, 222, 215, .07), transparent 70%);
  filter: blur(12px);
}

body.mode-event.event-theme-malfoid .card {
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 174, 111, .18), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(199, 216, 207, .10), transparent 38%),
    linear-gradient(180deg, rgba(4, 21, 16, .99), rgba(3, 9, 8, .99));
  border-color: rgba(193, 215, 204, .20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 18px 42px rgba(0, 0, 0, .72);
}

body.mode-event.event-theme-malfoid .badge {
  color: #e8f2ed;
  background: rgba(4, 40, 29, .76);
  border: 1px solid rgba(97, 211, 151, .36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 14px rgba(38, 190, 120, .16);
}

body.event-theme-malfoid .event-video-strip {
  background:
    radial-gradient(circle at 16% 14%, rgba(45, 190, 124, .22), transparent 38%),
    radial-gradient(circle at 86% 22%, rgba(205, 222, 214, .12), transparent 40%),
    linear-gradient(135deg, #03130e, #071c15 58%, #111a17);
  border-color: rgba(83, 218, 151, .44);
  box-shadow:
    inset 0 1px 0 rgba(232, 244, 238, .15),
    0 0 18px rgba(36, 196, 123, .22),
    0 10px 24px rgba(0, 0, 0, .34);
}

body.event-theme-malfoid .event-video-tile {
  border-color: rgba(205, 225, 215, .34);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .55), 0 0 7px rgba(56, 214, 139, .18);
  filter: saturate(.78) contrast(1.03) hue-rotate(18deg);
}

body.mode-event.event-theme-malfoid .title {
  color: #f5faf7;
  -webkit-text-fill-color: #f5faf7;
  text-shadow: 0 0 14px rgba(77, 217, 148, .34), 0 2px 3px rgba(0, 0, 0, .72);
}

body.event-theme-malfoid .video-event-summary {
  margin-bottom: 7px;
}

body.event-theme-malfoid .malfoid-event-count {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  overflow: visible;
  color: #c9d8d1;
  -webkit-text-fill-color: #c9d8d1;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-shadow: none;
  white-space: nowrap;
}

body.event-theme-malfoid .malfoid-event-count strong {
  color: #55e49b;
  -webkit-text-fill-color: #55e49b;
  font-weight: 950;
  text-shadow: 0 0 9px rgba(59, 220, 145, .24);
}

body.event-theme-malfoid .malfoid-event-count span {
  color: #dce7e1;
  -webkit-text-fill-color: #dce7e1;
}

body.event-theme-malfoid .video-event-status {
  gap: 6px 8px;
}

body.event-theme-malfoid .video-event-collected {
  color: #c8d8d0;
  background: #071712;
  border-color: rgba(76, 203, 139, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.event-theme-malfoid .video-event-collected b {
  color: #eff7f3;
  -webkit-text-fill-color: #eff7f3;
}

body.event-theme-malfoid .video-event-collected b span {
  color: #69dca4;
  -webkit-text-fill-color: #69dca4;
}

body.event-theme-malfoid button.video-event-collected:hover {
  background: #0a2119;
  border-color: rgba(102, 225, 164, .56);
}

body.event-theme-malfoid button.video-event-collected:focus-visible {
  outline-color: #63dfa5;
}

body.event-theme-malfoid .event-time-badge,
body.event-theme-malfoid #limitedEventSubtitleTime {
  color: #cbd9d2;
  -webkit-text-fill-color: #cbd9d2;
  background: #07100d;
  border-color: rgba(173, 199, 186, .25);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 10px rgba(33, 155, 100, .10);
}

body.mode-event.event-theme-malfoid .price,
body.mode-event.event-theme-malfoid .reveal-msg {
  color: #dce9e2;
}

body.mode-event.event-theme-malfoid .main-btn-wrap::before {
  content: "";
  top: 50%;
  bottom: auto;
  width: min(292px, 86%);
  height: 72px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(45, 218, 139, .34), rgba(17, 126, 83, .17) 48%, transparent 74%);
  filter: blur(10px);
  opacity: .88;
  transform: translate(-50%, -50%);
  animation: malfoidButtonAura 2.8s ease-in-out infinite alternate;
}

body.mode-event.event-theme-malfoid .btn {
  color: #f8fcfa;
  background:
    radial-gradient(circle at 28% 8%, rgba(255, 255, 255, .20), transparent 36%),
    linear-gradient(118deg, #075b40, #0e8b59 52%, #38be7c);
  border-color: rgba(196, 231, 213, .52);
  text-shadow: 0 1px 2px rgba(0, 31, 21, .72);
  box-shadow:
    0 0 24px rgba(35, 201, 124, .38),
    0 13px 30px rgba(0, 66, 45, .36),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  animation: malfoidButtonBreath 2.8s ease-in-out infinite alternate;
}

body.mode-event.event-theme-malfoid #btnText {
  text-shadow: 0 1px 2px rgba(0, 31, 21, .72);
}

body.mode-event.event-theme-malfoid .chances-card {
  background:
    linear-gradient(90deg, rgba(18, 83, 59, .10), rgba(204, 220, 212, .035)),
    rgba(2, 13, 10, .50);
  border-color: rgba(102, 193, 148, .28);
}

body.event-theme-malfoid .event-boost-badge {
  color: #eef8f3;
  -webkit-text-fill-color: #eef8f3;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, .22), transparent 42%),
    linear-gradient(135deg, #0a543b, #12875a 58%, #6e9482);
  border-color: rgba(188, 223, 206, .48);
  text-shadow: 0 1px 2px rgba(0, 24, 16, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 9px rgba(41, 196, 124, .18);
}

body.event-theme-malfoid .price-switch.event .price-switch-thumb {
  background:
    radial-gradient(circle at 28% 12%, rgba(255, 255, 255, .18), transparent 38%),
    linear-gradient(180deg, #167551, #0a5139 58%, #063b2c);
  box-shadow:
    inset 0 0 0 1px rgba(142, 226, 183, .56),
    inset 0 2px 0 rgba(255, 255, 255, .10),
    0 3px 9px rgba(0, 0, 0, .44),
    0 0 13px rgba(38, 198, 124, .18);
}

body.event-theme-malfoid .price-switch-option.event {
  color: #b9d9c9;
  -webkit-text-fill-color: #b9d9c9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .62);
}

/* Keep the app-wide pink NEW badge so the switch still reads as a familiar new mode. */
body.event-theme-malfoid .price-switch-option.event::after {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(135deg, #ff3fb4, #ff5a88 56%, #ff9a45);
  border-color: rgba(255, 255, 255, .48);
  text-shadow: none;
  box-shadow: 0 0 8px rgba(255, 63, 180, .58), 0 0 14px rgba(255, 90, 136, .30), 0 4px 10px rgba(0, 0, 0, .28);
}

body.event-theme-malfoid .event-inline-title {
  color: #5ce49f;
  -webkit-text-fill-color: #5ce49f;
  background: none;
  filter: none;
  text-shadow: 0 0 7px rgba(52, 213, 139, .32);
}

body.event-theme-malfoid .event-inline-title::after {
  color: #d9e4de;
  -webkit-text-fill-color: #d9e4de;
  text-shadow: 0 0 6px rgba(130, 190, 160, .24);
}

body.event-theme-malfoid .event-inline-time {
  color: #a9beb4;
  -webkit-text-fill-color: #a9beb4;
  text-shadow: none;
}

body.mode-event.event-theme-malfoid .reze-event-stars span {
  color: rgba(202, 226, 214, .88);
  text-shadow: 0 0 6px rgba(223, 238, 230, .34), 0 0 13px rgba(41, 201, 126, .42);
}

body.mode-event.event-theme-malfoid .reze-event-stars span:nth-child(3n) {
  color: rgba(73, 219, 146, .80);
}

body.mode-event.event-theme-malfoid .reze-event-stars span:nth-child(4n) {
  color: rgba(163, 188, 176, .78);
}

@keyframes malfoidButtonBreath {
  from { transform: scale(1); }
  to { transform: scale(1.012); }
}

@keyframes malfoidButtonAura {
  from { opacity: .62; transform: translate(-50%, -50%) scale(.95); }
  to { opacity: .92; transform: translate(-50%, -50%) scale(1.03); }
}

@media (max-width: 380px) {
  body.event-theme-malfoid .malfoid-event-count {
    font-size: 13px;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mode-event.event-theme-malfoid .main-btn-wrap::before,
  body.mode-event.event-theme-malfoid .btn {
    animation: none !important;
  }
}


/* Refinements for the Malfoid TEST review. Loaded after the v1 theme. */
body.event-theme-malfoid .price-switch-option.event {
  color: #39ef88;
  -webkit-text-fill-color: #39ef88;
  text-shadow: 0 0 8px rgba(27, 232, 115, .34), 0 1px 2px #001b0e;
}

body.event-theme-malfoid .price-switch-option.event.active {
  color: #f2fff6;
  -webkit-text-fill-color: #f2fff6;
}

body.event-theme-malfoid .event-inline-new {
  color: #ffd875;
  -webkit-text-fill-color: #ffd875;
  text-shadow: 0 0 7px rgba(255, 194, 61, .35);
}

body.event-theme-malfoid .event-inline-title::after {
  content: none;
  animation: none;
}

body.event-theme-malfoid .event-inline-time,
body.event-theme-malfoid .event-time-badge,
body.event-theme-malfoid #limitedEventSubtitleTime {
  color: #ff3b52;
  -webkit-text-fill-color: #ff3b52;
  text-shadow: 0 0 6px rgba(255, 35, 64, .24);
}

body.event-theme-malfoid .event-time-badge,
body.event-theme-malfoid #limitedEventSubtitleTime {
  background: #110c10;
  border-color: rgba(255, 80, 107, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.event-theme-malfoid .malfoid-event-count {
  gap: 5px;
}

body.event-theme-malfoid .malfoid-count-group {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

body.event-theme-malfoid .malfoid-event-count strong {
  color: #f4faf7;
  -webkit-text-fill-color: #f4faf7;
  text-shadow: none;
}

body.event-theme-malfoid .malfoid-event-count .malfoid-count-label,
body.event-theme-malfoid .malfoid-event-count .malfoid-count-inside {
  color: #4ae89c;
  -webkit-text-fill-color: #4ae89c;
  text-shadow: 0 0 8px rgba(41, 214, 129, .16);
}

body.event-theme-malfoid .malfoid-event-count .malfoid-count-plus {
  color: #aabeb3;
  -webkit-text-fill-color: #aabeb3;
}

body.mode-event.event-theme-malfoid .main-btn-wrap::before {
  width: min(318px, 94%);
  height: 86px;
  background: radial-gradient(ellipse, rgba(255, 29, 66, .58), rgba(255, 74, 39, .25) 47%, transparent 74%);
  filter: blur(12px);
}

body.mode-event.event-theme-malfoid .btn {
  color: #fff;
  background: linear-gradient(112deg, #f00635, #ff2949 52%, #ff6546);
  border-color: rgba(255, 182, 189, .65);
  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, .24);
}

body.mode-event.event-theme-malfoid #btnText {
  text-shadow: none;
}

body.event-theme-malfoid .event-boost-badge {
  box-sizing: border-box;
  min-width: 76px;
  padding: 1px 7px;
  color: #f2fff7;
  -webkit-text-fill-color: #f2fff7;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  background:
    linear-gradient(180deg, rgba(236, 255, 244, .18), transparent 54%),
    linear-gradient(115deg, #07513a, #0c8d59 58%, #719c86);
  border-color: rgba(178, 235, 201, .55);
  text-shadow: 0 1px 2px rgba(0, 26, 16, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 7px rgba(40, 206, 123, .16);
}

@media (max-width: 380px) {
  body.event-theme-malfoid .malfoid-event-count {
    gap: 4px;
  }
}


/* Emerald boosts and a restrained highlight across the reward counts. */
body.event-theme-malfoid .malfoid-event-count .malfoid-count-inside {
  color: #f4faf7;
  -webkit-text-fill-color: #f4faf7;
  text-shadow: none;
}

body.event-theme-malfoid .event-boost-badge {
  width: 72px;
  min-width: 72px;
  height: 15px;
  padding: 0 3px;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  -webkit-text-fill-color: #fff;
  background:
    linear-gradient(180deg, rgba(220, 255, 234, .25), transparent 56%),
    linear-gradient(115deg, #07563c, #11794f 53%, #155f41);
  border-color: rgba(128, 230, 169, .60);
  box-shadow: inset 0 1px 0 rgba(228, 255, 237, .36), 0 0 7px rgba(38, 203, 118, .20);
  text-shadow: 0 1px 1px rgba(0, 47, 25, .85), 0 0 2px rgba(0, 47, 25, .40);
  animation: xkMalfoidEmeraldPulse 2.6s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

body.event-theme-malfoid .chances-card-row:nth-child(even) .event-boost-badge {
  background:
    linear-gradient(180deg, rgba(228, 255, 237, .30), transparent 56%),
    linear-gradient(115deg, #0b6845, #198754 53%, #20734c);
  border-color: rgba(170, 244, 191, .80);
  box-shadow: inset 0 1px 0 rgba(237, 255, 241, .46), 0 0 8px rgba(61, 224, 131, .29);
}

body.event-theme-malfoid .event-boost-badge::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(234, 255, 242, .88), transparent);
  opacity: .75;
  pointer-events: none;
  z-index: -1;
  transform: translate3d(-160%, 0, 0) skewX(-18deg);
  animation: xkMalfoidEmeraldShine 4.2s ease-in-out infinite;
  will-change: transform;
}

body.event-theme-malfoid .chances-card-row:nth-child(even) .event-boost-badge::after {
  animation-delay: .45s;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  body.event-theme-malfoid .malfoid-event-count strong,
  body.event-theme-malfoid .malfoid-event-count .malfoid-count-label {
    background-size: 250% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: xkMalfoidCountShimmer 6.8s linear infinite;
  }

  body.event-theme-malfoid .malfoid-event-count strong {
    background-image: linear-gradient(110deg, #f4faf7 0%, #f4faf7 35%, #ffe7a3 46%, #fffdf1 51%, #f4faf7 62%, #f4faf7 100%);
  }

  body.event-theme-malfoid .malfoid-event-count .malfoid-count-label {
    background-image: linear-gradient(110deg, #4ae89c 0%, #4ae89c 35%, #d5f5b4 46%, #fff0c4 51%, #4ae89c 62%, #4ae89c 100%);
  }

  body.event-theme-malfoid .malfoid-count-group:nth-child(3) strong,
  body.event-theme-malfoid .malfoid-count-group:nth-child(3) .malfoid-count-label {
    animation-delay: .55s;
  }
}

@keyframes xkMalfoidEmeraldPulse {
  from { opacity: .90; transform: scale(1); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes xkMalfoidEmeraldShine {
  0% { transform: translate3d(-160%, 0, 0) skewX(-18deg); }
  68%, 100% { transform: translate3d(460%, 0, 0) skewX(-18deg); }
}

@keyframes xkMalfoidCountShimmer {
  from { background-position: 120% 50%; }
  to { background-position: -120% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body.event-theme-malfoid .event-boost-badge,
  body.event-theme-malfoid .event-boost-badge::after,
  body.event-theme-malfoid .malfoid-event-count strong,
  body.event-theme-malfoid .malfoid-event-count .malfoid-count-label {
    animation: none !important;
    transform: none;
  }

  body.event-theme-malfoid .event-boost-badge::after {
    opacity: 0;
  }
}


/* Reuse the Reze reveal choreography with the Malfoid portrait and emerald light. */
body.event-theme-malfoid #rezeEventBlast .reze-blast-vignette {
  background:
    radial-gradient(ellipse at 50% 42%, rgba(12, 117, 75, .10), transparent 34%),
    linear-gradient(180deg, rgba(1, 8, 5, .74), rgba(1, 11, 7, .82)) !important;
}

body.event-theme-malfoid #rezeEventBlast .reze-event-aura {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(237, 255, 247, .30) 0 5%, rgba(28, 227, 135, .58) 14%, rgba(12, 147, 94, .64) 34%, rgba(6, 80, 53, .24) 58%, transparent 76%) !important;
  box-shadow:
    0 0 54px rgba(26, 210, 128, .48),
    0 0 112px rgba(22, 172, 103, .36),
    0 0 160px rgba(10, 109, 74, .28) !important;
}

body.event-theme-malfoid #rezeEventBlast .reze-event-rays {
  background:
    conic-gradient(
      from 8deg,
      transparent 0deg,
      rgba(214, 245, 226, .26) 8deg,
      transparent 18deg,
      transparent 45deg,
      rgba(79, 238, 148, .28) 54deg,
      transparent 68deg,
      transparent 106deg,
      rgba(31, 197, 124, .34) 118deg,
      transparent 132deg,
      transparent 176deg,
      rgba(193, 234, 207, .22) 186deg,
      transparent 202deg,
      transparent 240deg,
      rgba(79, 238, 148, .24) 252deg,
      transparent 268deg,
      transparent 312deg,
      rgba(31, 197, 124, .28) 324deg,
      transparent 342deg
    ) !important;
}

body.event-theme-malfoid #rezeEventBlast .reze-event-character {
  width: min(330px, 72vw) !important;
  max-height: 52vh !important;
  filter:
    drop-shadow(0 0 12px rgba(54, 233, 145, .38))
    drop-shadow(0 0 24px rgba(18, 158, 100, .30))
    drop-shadow(0 16px 22px rgba(0, 0, 0, .58)) !important;
}

body.event-theme-malfoid #rezeEventBlast .reze-event-title {
  color: #f0fff6;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, .25), transparent 42%),
    linear-gradient(135deg, rgba(5, 68, 43, .96), rgba(20, 139, 87, .94) 58%, rgba(109, 172, 132, .90));
  border-color: rgba(195, 239, 211, .48);
  text-shadow: 0 1px 2px rgba(0, 31, 18, .75), 0 0 12px rgba(43, 230, 137, .32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    0 0 22px rgba(28, 194, 111, .30),
    0 0 32px rgba(18, 123, 81, .22);
  letter-spacing: 0;
}

body.event-theme-malfoid #rezeEventBlast .reze-event-subtitle {
  color: #e4f6e9;
  background: rgba(4, 27, 17, .78);
  border-color: rgba(150, 220, 174, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 0 16px rgba(36, 203, 119, .18);
  letter-spacing: 0;
}

@media (max-width: 640px) {
  body.event-theme-malfoid #rezeEventBlast .reze-event-aura {
    box-shadow: 0 0 38px rgba(26, 210, 128, .34), 0 0 78px rgba(22, 172, 103, .22) !important;
  }

  body.event-theme-malfoid #rezeEventBlast .reze-event-character {
    width: min(278px, 66vw) !important;
    max-height: 48vh !important;
    filter: drop-shadow(0 0 10px rgba(54, 233, 145, .32)) drop-shadow(0 14px 20px rgba(0, 0, 0, .58)) !important;
  }
}


/* Preserve the existing height cap so the portrait stays above the title. */
body.event-theme-malfoid #rezeEventBlast .reze-event-character {
  width: min(370px, 72vw) !important;
}

@media (max-width: 640px) {
  body.event-theme-malfoid #rezeEventBlast .reze-event-character {
    width: min(310px, 74vw) !important;
  }
}


/* Eight tiles, retaining the previous reel's 44px spacing and 2s cadence. */
body.event-theme-video2.event-theme-malfoid .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); }
}
