/* All rules and keyframes belong to this overlay. No theme selectors. */
#tsm-curtain-root {
  all: initial;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: block;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  contain: layout style;
  --tsm-duration: 2900ms;
  --tsm-delay: 600ms;
  --tsm-easing: cubic-bezier(.42, 0, .18, 1);
  --tsm-light: .24;
  --tsm-hue: 0deg;
  /* A CSS watchdog also reveals the page if JS stops after insertion. */
  animation: tsm-emergency-clear 1ms step-end 7200ms forwards;
}
#tsm-curtain-root .tsm-half {
  position: absolute;
  z-index: 1;
  top: -2px;
  bottom: -2px;
  width: calc(50% + 1px);
  pointer-events: none;
  filter: var(--tsm-color-filter, none);
}
#tsm-curtain-root .tsm-half--left { left: 0; }
#tsm-curtain-root .tsm-half--right { right: 0; }
#tsm-curtain-root .tsm-pleat {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tsm-x);
  width: calc(100% / var(--tsm-count) + 1.5px);
  overflow: hidden;
  will-change: transform;
  pointer-events: auto;
  animation: tsm-gather var(--tsm-duration) var(--tsm-easing) var(--tsm-delay) both;
}
#tsm-curtain-root .tsm-half--right .tsm-pleat { left: auto; right: var(--tsm-x); }
#tsm-curtain-root .tsm-fabric {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tsm-offset);
  width: var(--tsm-panel-width);
  background-image: var(--tsm-texture);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
#tsm-curtain-root .tsm-half--right .tsm-fabric {
  left: auto;
  right: var(--tsm-offset);
  background-position: left center;
}
/* A light-only overlay, never a substitute for the photographic fabric. */
#tsm-curtain-root .tsm-illumination {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 36%, rgba(255, 197, 125, .65), transparent 67%);
  mix-blend-mode: screen;
  opacity: var(--tsm-light);
  animation: tsm-light-out var(--tsm-duration) ease-out var(--tsm-delay) both;
}
#tsm-curtain-root .tsm-title {
  all: initial;
  position: absolute;
  z-index: 3;
  top: 47%;
  left: 50%;
  width: min(85%, 600px);
  transform: translate(-50%, -50%);
  color: #dfc897;
  font: 400 clamp(10px, 1.05vw, 16px)/1.8 Georgia, 'Times New Roman', serif;
  letter-spacing: .28em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 8px #120304;
  pointer-events: none;
  opacity: .92;
  animation: tsm-title-out 450ms ease var(--tsm-delay) both;
}
#tsm-curtain-root .tsm-skip {
  all: initial;
  position: absolute;
  z-index: 4;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  padding: 12px 16px;
  border: 1px solid #ad8e5966;
  border-radius: 2px;
  background: #140507b8;
  color: #dfc897;
  font: 11px/1.2 system-ui, sans-serif;
  letter-spacing: .12em;
  cursor: pointer;
  pointer-events: auto;
  animation: tsm-skip-out 300ms ease calc(var(--tsm-delay) + 350ms) both;
}
#tsm-curtain-root .tsm-skip:focus-visible { outline: 2px solid #efdfb4; outline-offset: 4px; }
@keyframes tsm-gather {
  0% { transform: translate3d(0, 0, 0); }
  62% { transform: translate3d(var(--tsm-pull-mid), 0, 0); }
  86% { transform: translate3d(var(--tsm-pull-settle), 0, 0); }
  94% { transform: translate3d(var(--tsm-pull-rebound), 0, 0); }
  100% { transform: translate3d(var(--tsm-pull-end), 0, 0); }
}
@keyframes tsm-title-out { to { opacity: 0; visibility: hidden; } }
@keyframes tsm-skip-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes tsm-light-out { 0%, 10% { opacity: var(--tsm-light); } 78%, 100% { opacity: 0; } }
@keyframes tsm-emergency-clear { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes tsm-reduced-fade { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#tsm-curtain-root[data-reduced="true"] { animation: tsm-reduced-fade 180ms ease-out both; }
#tsm-curtain-root[data-reduced="true"] .tsm-pleat,
#tsm-curtain-root[data-reduced="true"] .tsm-title,
#tsm-curtain-root[data-reduced="true"] .tsm-illumination,
#tsm-curtain-root[data-reduced="true"] .tsm-skip { animation: none; }
@media (prefers-reduced-motion: reduce) {
  #tsm-curtain-root:not([data-motion-preview="full"]):not([data-reduced="true"]) { display: none; pointer-events: none; }
}
