/* ==========================================================================
   Rotary Knights — Theme System (Night Sortie Dark / Briefing Map Parchment
   Light / 1914 Winter Aerodrome Holiday) + Biplane Santa Fly-By & Aerodrome
   ========================================================================== */

:root {
  --rk-pop-bg: #101b1f;
  --rk-pop-border: rgba(232, 188, 107, 0.24);
  --rk-chip-bg: #0b1316;
  --hl-c1: #fde68a;
  --hl-c1-glow: rgba(253, 230, 138, 0.85);
  --hl-c2: #e8bc6b;
  --hl-c2-glow: rgba(232, 188, 107, 0.82);
  --hl-c3: #fffbeb;
  --hl-c3-glow: rgba(255, 251, 235, 0.9);
  --hl-c4: #d97706;
  --hl-c4-glow: rgba(217, 119, 6, 0.78);
}

/* Briefing Map (Light Parchment Theme) ------------------------------------ */
html[data-theme='light'] {
  color-scheme: light;
  --ink: #f4ede0;
  --panel: #fbf7ef;
  --panel-light: #efe6d4;
  --paper: #f8f1e2;
  --text: #182528;
  --muted: #455654;
  --gold: #86540b;
  --line: #cfc2aa;
  --bg-dark: var(--ink);
  --bg-card: var(--panel);
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: #50615f;
  --accent-primary: var(--gold);
  --accent-hover: #6c4308;
  --border-color: var(--line);
  --rk-pop-bg: #fbf7ef;
  --rk-pop-border: rgba(24, 37, 40, 0.2);
  --rk-chip-bg: #efe6d4;
}

html[data-theme='light'] .site-header {
  background: rgba(244, 237, 224, 0.94);
  border-bottom-color: rgba(24, 37, 40, 0.16);
}

/* Subtle dark leather plaque behind the gold wordmark PNG in light mode */
html[data-theme='light'] .site-header .brand {
  background: #142126;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid rgba(134, 84, 11, 0.45);
}

html[data-theme='light'] .fest-strip {
  background: #e9dec9;
  border-bottom-color: var(--line);
}

html[data-theme='light'] .roles-section,
html[data-theme='light'] .full-game-plan {
  background: #ece3d2;
}

html[data-theme='light'] .demo-section {
  background: linear-gradient(120deg, #ece3d2, #f4ede0);
}

html[data-theme='light'] .button-gold {
  background: #86540b;
  color: #fffdf8;
}

html[data-theme='light'] .button-gold:hover {
  background: #6c4308;
  color: #fffdf8;
}

html[data-theme='light'] .button-outline {
  border-color: #7d6d56;
  color: #182528;
}

html[data-theme='light'] .button-outline:hover {
  background: #e5d9c3;
  border-color: #86540b;
  color: #6c4308;
}

html[data-theme='light'] .preview-tabs button:hover {
  background: rgba(24, 37, 40, 0.06);
}

html[data-theme='light'] .screenshot-note {
  color: #4a5b58;
}

html[data-theme='light'] .enlarge-label {
  background: rgba(11, 19, 22, 0.92);
  color: #f0ede5;
  border-color: #b7a88d;
}

html[data-theme='light'] .role {
  border-top-color: #b7a88d;
}

html[data-theme='light'] .demo-contents article {
  border-top-color: #c2b49a;
}

html[data-theme='light'] .dispatch-quote {
  background: #fffdf7;
  box-shadow: 10px 10px 0 rgba(24, 37, 40, 0.14);
}

html[data-theme='light'] .signup input {
  background: #fffdf8;
  border-color: #9e8f75;
  color: #182528;
}

html[data-theme='light'] .signup input::placeholder {
  color: #5d6c69;
}

html[data-theme='light'] .signup-status[data-state='error'] {
  color: #9f2d18;
}

html[data-theme='light'] .signup-status[data-state='success'] {
  color: #1f5f32;
}

html[data-theme='light'] .roadmap-aside,
html[data-theme='light'] .privacy-tldr {
  background: #fbf7ef;
}

html[data-theme='light'] dialog {
  background: #fbf7ef;
  border-color: #b7a88d;
}

/* Header Controls Group & Theme Trigger ----------------------------------- */
.rk-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}

.rk-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 3px;
  border: 1px solid var(--rk-pop-border);
  background: var(--rk-pop-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.rk-theme-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.rk-theme-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.rk-theme-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #e8bc6b;
  box-shadow: 0 0 6px rgba(232, 188, 107, 0.95);
}

@media (max-width: 900px) {
  .rk-header-actions {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .rk-theme-btn {
    padding: 0 9px;
    font-size: 11px;
  }
  .rk-header-actions .button-small {
    font-size: 11px;
    padding: 9px 11px;
  }
}

/* Floating Theme Picker Popover ------------------------------------------- */
.rk-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 326px;
  max-width: calc(100vw - 24px);
  padding: 15px;
  border-radius: 8px;
  background: var(--rk-pop-bg);
  border: 1px solid var(--rk-pop-border);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.52);
  z-index: 90;
  color: var(--text);
  text-align: left;
}

.rk-popover[hidden] {
  display: none !important;
}

.rk-pop__sec + .rk-pop__sec {
  margin-top: 12px;
}

.rk-pop__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.rk-pop__label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.rk-pop__meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-align: right;
}

.rk-pop__sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.rk-pop__div {
  height: 1px;
  margin: 12px 0;
  background: var(--rk-pop-border);
}

.rk-seg {
  display: grid;
  gap: 4px;
  padding: 4px;
  border-radius: 6px;
  background: var(--rk-chip-bg);
  border: 1px solid var(--rk-pop-border);
}

.rk-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rk-seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rk-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.rk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }

.rk-seg-btn,
.rk-chip,
.rk-pal-btn {
  border-radius: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 5px;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.rk-chip,
.rk-pal-btn {
  background: var(--rk-chip-bg);
  border-color: var(--rk-pop-border);
}

.rk-seg-btn:hover,
.rk-chip:hover,
.rk-pal-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

.rk-seg-btn[aria-checked='true'],
.rk-chip[aria-checked='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: #122025;
}

html[data-theme='light'] .rk-seg-btn[aria-checked='true'],
html[data-theme='light'] .rk-chip[aria-checked='true'] {
  color: #fffdf8;
}

.rk-pal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
}

.rk-pal-btn[aria-checked='true'] {
  border-color: var(--gold);
  color: var(--text);
  background: rgba(232, 188, 107, 0.16);
}

.rk-dots {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}

.rk-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.rk-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rk-pop-border);
}

.rk-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--rk-pop-border);
  background: var(--rk-chip-bg);
  padding: 0;
  flex-shrink: 0;
  transition: background-color 0.16s, border-color 0.16s;
}

.rk-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.16s, background-color 0.16s;
}

.rk-switch[aria-checked='true'] {
  background: #b91c1c;
  border-color: #ef4444;
}

.rk-switch[aria-checked='true'] .rk-switch__thumb {
  transform: translateX(18px);
  background: #fffbeb;
}

.rk-fun-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.rk-fun-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 5px;
  border: 1px solid rgba(232, 188, 107, 0.45);
  background: rgba(232, 188, 107, 0.14);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.rk-fun-btn:hover {
  border-color: var(--gold);
  background: rgba(232, 188, 107, 0.25);
}

.rk-pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rk-pop-border);
}

.rk-reset-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--rk-pop-border);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.rk-reset-btn:hover {
  color: var(--text);
  border-color: var(--gold);
}

/* Holiday Palettes -------------------------------------------------------- */
html[data-holiday-palette='truce'] {
  --hl-c1: #dc2626;
  --hl-c1-glow: rgba(220, 38, 38, 0.8);
  --hl-c2: #22c55e;
  --hl-c2-glow: rgba(34, 197, 94, 0.78);
  --hl-c3: #facc15;
  --hl-c3-glow: rgba(250, 204, 21, 0.82);
  --hl-c4: #fef3c7;
  --hl-c4-glow: rgba(254, 243, 199, 0.85);
}

html[data-holiday-palette='frost'] {
  --hl-c1: #7dd3fc;
  --hl-c1-glow: rgba(125, 211, 252, 0.84);
  --hl-c2: #f8fafc;
  --hl-c2-glow: rgba(248, 250, 252, 0.92);
  --hl-c3: #93c5fd;
  --hl-c3-glow: rgba(147, 197, 253, 0.82);
  --hl-c4: #cbd5e1;
  --hl-c4-glow: rgba(203, 213, 225, 0.78);
}

html[data-holiday-palette='flares'] {
  --hl-c1: #ef4444;
  --hl-c1-glow: rgba(239, 68, 68, 0.82);
  --hl-c2: #f59e0b;
  --hl-c2-glow: rgba(245, 158, 11, 0.82);
  --hl-c3: #2dd4bf;
  --hl-c3-glow: rgba(45, 212, 191, 0.78);
  --hl-c4: #fef08a;
  --hl-c4-glow: rgba(254, 240, 138, 0.88);
}

/* Hide holiday elements outside Holiday season ---------------------------- */
.rk-lights,
.rk-aerodrome-strip,
.rk-christmas-aerodrome,
.rk-santa-stage,
.rk-atmosphere,
.rk-surge-flash {
  display: none;
}

/* Header Hangar String Lights --------------------------------------------- */
html[data-season='holiday'] .rk-lights {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 24px;
  overflow: hidden;
  pointer-events: none;
}

.rk-lights__bulb {
  position: relative;
  flex: 0 0 32px;
  height: 18px;
  background: radial-gradient(
    circle at 50% -26px,
    transparent 30px,
    rgba(196, 174, 126, 0.45) 30.5px,
    rgba(196, 174, 126, 0.45) 31.6px,
    transparent 32.1px
  );
}

html[data-theme='light'] .rk-lights__bulb {
  background: radial-gradient(
    circle at 50% -26px,
    transparent 30px,
    rgba(24, 37, 40, 0.36) 30.5px,
    rgba(24, 37, 40, 0.36) 31.6px,
    transparent 32.1px
  );
}

.rk-lights__bulb::before {
  content: '';
  position: absolute;
  top: 3.5px;
  left: calc(50% - 2px);
  width: 4px;
  height: 3px;
  border-radius: 1px;
  background: #5b6962;
}

.rk-lights__bulb::after {
  content: '';
  position: absolute;
  top: 6px;
  left: calc(50% - 3px);
  width: 6px;
  height: 9px;
  border-radius: 50% / 40% 40% 60% 60%;
  background: var(--bulb);
  box-shadow: 0 0 7px 1.5px var(--bulb-glow);
}

.rk-lights__bulb:nth-child(4n + 1) { --bulb: var(--hl-c1); --bulb-glow: var(--hl-c1-glow); }
.rk-lights__bulb:nth-child(4n + 2) { --bulb: var(--hl-c2); --bulb-glow: var(--hl-c2-glow); }
.rk-lights__bulb:nth-child(4n + 3) { --bulb: var(--hl-c3); --bulb-glow: var(--hl-c3-glow); }
.rk-lights__bulb:nth-child(4n + 4) { --bulb: var(--hl-c4); --bulb-glow: var(--hl-c4-glow); }

/* SVG Shared Bulbs (Hangar, Spruce Tree, Biplane Santa) ------------------- */
.rk-bulb--1 { fill: var(--hl-c1); filter: drop-shadow(0 0 3px var(--hl-c1-glow)); }
.rk-bulb--2 { fill: var(--hl-c2); filter: drop-shadow(0 0 3px var(--hl-c2-glow)); }
.rk-bulb--3 { fill: var(--hl-c3); filter: drop-shadow(0 0 3px var(--hl-c3-glow)); }
.rk-bulb--4 { fill: var(--hl-c4); filter: drop-shadow(0 0 3px var(--hl-c4-glow)); }

/* Christmas Aerodrome Strip under .fest-strip ----------------------------- */
html[data-season='holiday'] .rk-aerodrome-strip {
  display: block;
  border-bottom: 1px solid rgba(232, 188, 107, 0.28);
  background: linear-gradient(90deg, rgba(16, 30, 32, 0.96), rgba(26, 42, 38, 0.96), rgba(16, 30, 32, 0.96));
}

html[data-season='holiday'][data-theme='light'] .rk-aerodrome-strip {
  background: linear-gradient(90deg, #efe5d2, #e5d8bf, #efe5d2);
  border-bottom-color: var(--line);
}

.rk-aerodrome-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 10px;
}

.rk-aerodrome-strip__title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text);
}

.rk-aerodrome-strip__title strong {
  color: var(--gold);
  font-weight: 600;
}

.rk-aerodrome-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rk-pop-border);
  background: var(--rk-pop-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s, background-color 0.15s;
}

.rk-pill:hover {
  border-color: var(--gold);
  background: rgba(232, 188, 107, 0.16);
}

.rk-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hl-c2);
  box-shadow: 0 0 6px var(--hl-c2-glow);
}

/* Moving WWI Biplane Santa Fly-By ----------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-season='holiday'][data-holiday-santa='on'] .rk-santa-stage,
  html[data-season='holiday'] .rk-santa-stage.is-launching {
    display: block;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    height: 112px;
    overflow: hidden;
    pointer-events: none;
    z-index: 40;
  }

  .rk-santa-rig {
    position: absolute;
    top: 4px;
    left: -340px;
    width: clamp(200px, 22vw, 290px);
    will-change: transform;
    animation: rk-biplane-cruise 26s linear -5s infinite;
  }

  .rk-santa-stage.is-launching .rk-santa-rig {
    animation: rk-biplane-launch 9.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1 forwards;
  }

  .rk-santa-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.42));
    animation: rk-biplane-bob 2.4s ease-in-out infinite;
  }

  .rk-prop-blur {
    transform-origin: 244px 58px;
    animation: rk-prop-spin 0.16s linear infinite;
  }
}

@keyframes rk-biplane-cruise {
  0% { transform: translate3d(0, 8px, 0) rotate(-1.5deg); opacity: 0; }
  4% { opacity: 1; }
  26% { transform: translate3d(calc(50vw + 180px), -10px, 0) rotate(1.5deg); }
  48% { transform: translate3d(calc(100vw + 420px), 6px, 0) rotate(-1deg); opacity: 1; }
  50%, 100% { transform: translate3d(calc(100vw + 420px), 6px, 0); opacity: 0; }
}

@keyframes rk-biplane-launch {
  0% { transform: translate3d(0, 14px, 0) rotate(-3.5deg); opacity: 0; }
  7% { opacity: 1; }
  52% { transform: translate3d(calc(52vw + 170px), -12px, 0) rotate(2deg); opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translate3d(calc(100vw + 420px), 4px, 0) rotate(-1deg); opacity: 0; }
}

@keyframes rk-biplane-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes rk-prop-spin {
  0%, 100% { opacity: 0.9; transform: scaleY(1); }
  50% { opacity: 0.45; transform: scaleY(0.72); }
}

/* Dressed-Up Christmas Aerodrome Panoramic Footer Scene ------------------- */
html[data-season='holiday'] .rk-christmas-aerodrome {
  display: block;
  position: relative;
  height: 156px;
  overflow: hidden;
  border-top: 1px solid rgba(232, 188, 107, 0.25);
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 251, 235, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle at 31% 14%, rgba(232, 188, 107, 0.78) 0 1px, transparent 1.6px),
    radial-gradient(circle at 49% 22%, rgba(255, 251, 235, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 67% 16%, rgba(125, 211, 252, 0.75) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 24%, rgba(255, 251, 235, 0.82) 0 1px, transparent 1.6px),
    linear-gradient(180deg, #071014 0%, #101e24 62%, #19292b 100%);
}

.rk-christmas-aerodrome__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rk-christmas-aerodrome__caption {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7dac0;
  background: rgba(7, 16, 20, 0.72);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(232, 188, 107, 0.32);
  white-space: nowrap;
  pointer-events: none;
}

/* Snow & Sparkles Screen Atmosphere --------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-season='holiday'][data-holiday-effect='snow'] .rk-atmosphere,
  html[data-season='holiday'][data-holiday-effect='sparkles'] .rk-atmosphere {
    display: block;
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
  }

  .rk-atmosphere__p {
    position: absolute;
    left: var(--p-x);
    width: var(--p-size);
    height: var(--p-size);
    border-radius: 999px;
    will-change: transform, opacity;
  }

  html[data-holiday-effect='snow'] .rk-atmosphere__p {
    top: -12px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(203, 213, 225, 0.65) 60%, transparent 100%);
    box-shadow: 0 0 5px rgba(226, 232, 240, 0.55);
    animation: rk-snow-fall var(--p-dur) linear var(--p-delay) infinite;
  }

  html[data-holiday-effect='sparkles'] .rk-atmosphere__p {
    top: var(--p-y);
    background: radial-gradient(circle, #fffbeb 0%, var(--hl-c2) 55%, transparent 100%);
    box-shadow: 0 0 9px var(--hl-c2-glow);
    animation: rk-sparkle-twinkle 3.2s ease-in-out var(--p-delay) infinite;
  }
}

@keyframes rk-snow-fall {
  0% { transform: translate3d(0, -14px, 0); opacity: 0.82; }
  50% { transform: translate3d(var(--p-drift), 52vh, 0); opacity: 0.72; }
  100% { transform: translate3d(0, 105vh, 0); opacity: 0.36; }
}

@keyframes rk-sparkle-twinkle {
  0%, 100% { transform: scale(0.45); opacity: 0.14; }
  50% { transform: scale(1.3); opacity: 0.92; }
}

/* Hangar Surge Flash ------------------------------------------------------ */
.rk-surge-flash.is-surging {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
  animation: rk-surge 1.35s ease-out 1 forwards;
}

html.is-rk-blaze .rk-lights__bulb::after,
html.is-rk-blaze .rk-bulb {
  filter: brightness(1.55) drop-shadow(0 0 8px var(--hl-c2-glow));
}

@keyframes rk-surge {
  0% { background: rgba(0, 0, 0, 0); }
  12% { background: rgba(0, 0, 0, 0.72); }
  24% { background: rgba(254, 240, 138, 0.18); }
  36% { background: rgba(0, 0, 0, 0.6); }
  54% { background: rgba(254, 240, 138, 0.32); }
  100% { background: rgba(0, 0, 0, 0); }
}

/* Synchronized Light Patterns (gated on prefers-reduced-motion) ----------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-season='holiday'][data-holiday-pattern='chase'] .rk-lights__bulb::after,
  html[data-season='holiday']:not([data-holiday-pattern]) .rk-lights__bulb::after {
    animation: rk-chase 1.6s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i, 0) * -0.1s);
  }
  html[data-season='holiday'][data-holiday-pattern='chase'] .rk-bulb,
  html[data-season='holiday']:not([data-holiday-pattern]) .rk-bulb {
    animation: rk-svg-chase 1.7s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i, 0) * -0.09s);
  }

  html[data-season='holiday'][data-holiday-pattern='alternate'] .rk-lights__bulb::after {
    animation: rk-alternate 1.5s ease-in-out infinite;
  }
  html[data-season='holiday'][data-holiday-pattern='alternate'] .rk-lights__bulb:nth-child(even)::after {
    animation-delay: -0.75s;
  }
  html[data-season='holiday'][data-holiday-pattern='alternate'] .rk-bulb {
    animation: rk-svg-alternate 1.5s ease-in-out infinite;
  }
  html[data-season='holiday'][data-holiday-pattern='alternate'] .rk-bulb:nth-of-type(even) {
    animation-delay: -0.75s;
  }

  html[data-season='holiday'][data-holiday-pattern='sparkle'] .rk-lights__bulb::after {
    animation: rk-sparkle 2.2s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i, 0) * -0.37s);
  }
  html[data-season='holiday'][data-holiday-pattern='sparkle'] .rk-bulb {
    animation: rk-svg-sparkle 2.1s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i, 0) * -0.41s);
  }

  html[data-season='holiday'][data-holiday-pattern='wave'] .rk-lights__bulb::after {
    animation: rk-wave 2.8s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i, 0) * -0.14s);
  }
  html[data-season='holiday'][data-holiday-pattern='wave'] .rk-bulb {
    animation: rk-svg-wave 2.6s ease-in-out infinite;
    animation-delay: calc(var(--bulb-i, 0) * -0.14s);
  }

  html[data-season='holiday'][data-holiday-pattern='glow'] .rk-lights__bulb::after,
  html[data-season='holiday'][data-holiday-pattern='glow'] .rk-bulb {
    animation: rk-twinkle 3.5s ease-in-out infinite;
  }
}

@keyframes rk-chase {
  0%, 100% { opacity: 0.25; transform: scale(0.92); box-shadow: 0 0 2px 0 var(--bulb-glow); }
  22% { opacity: 1; transform: scale(1.18); box-shadow: 0 0 10px 3px var(--bulb-glow), 0 0 18px 4px var(--bulb-glow); }
  48% { opacity: 0.34; transform: scale(0.95); }
}
@keyframes rk-svg-chase { 0%, 100% { opacity: 0.25; } 24% { opacity: 1; } 52% { opacity: 0.35; } }
@keyframes rk-alternate {
  0%, 42% { opacity: 1; transform: scale(1.14); box-shadow: 0 0 10px 2.5px var(--bulb-glow); }
  52%, 92% { opacity: 0.2; transform: scale(0.9); box-shadow: none; }
  100% { opacity: 1; transform: scale(1.14); }
}
@keyframes rk-svg-alternate { 0%, 42% { opacity: 1; } 52%, 92% { opacity: 0.22; } 100% { opacity: 1; } }
@keyframes rk-sparkle {
  0%, 58%, 100% { opacity: 0.34; transform: scale(0.94); }
  70% { opacity: 1; transform: scale(1.24); box-shadow: 0 0 12px 3px var(--bulb-glow); }
  82% { opacity: 0.42; }
}
@keyframes rk-svg-sparkle { 0%, 58%, 100% { opacity: 0.3; } 70% { opacity: 1; } 84% { opacity: 0.4; } }
@keyframes rk-wave {
  0%, 100% { opacity: 0.28; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 10px 2.5px var(--bulb-glow); }
}
@keyframes rk-svg-wave { 0%, 100% { opacity: 0.28; } 50% { opacity: 1; } }
@keyframes rk-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.56; } }

@media print {
  .rk-lights,
  .rk-aerodrome-strip,
  .rk-christmas-aerodrome,
  .rk-santa-stage,
  .rk-atmosphere,
  .rk-surge-flash,
  .rk-theme-btn,
  .rk-popover {
    display: none !important;
  }
}
