/* Halloween page sections — blurred photo + glass panels (imported via halloween.css end) */

html.hw-loading body {
  overflow: hidden;
}

/* ── Entry loader ── */
html[data-theme="halloween"] .hw-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

html[data-theme="halloween"] .hw-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html:not([data-theme="halloween"]) .hw-loader {
  display: none !important;
}

html[data-theme="halloween"] .hw-loader__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(249, 115, 22, 0.2), transparent 55%),
    url("/images/hero-cinematic.jpg?v=2") center 38% / cover no-repeat;
  filter: blur(8px) brightness(0.35) saturate(1.1);
  transform: scale(1.06);
}

html[data-theme="halloween"] .hw-loader__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

html[data-theme="halloween"] .hw-loader__panel {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 40px 28px;
  animation: hw-loader-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hw-loader-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

html[data-theme="halloween"] .hw-loader__ring {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 112px;
  height: 112px;
  margin-left: -56px;
  border-radius: 50%;
  border: 2px solid rgba(249, 115, 22, 0.15);
  border-top-color: #fb923c;
  border-right-color: rgba(251, 146, 60, 0.55);
  animation: hw-loader-spin 1.1s linear infinite;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.25);
}

@keyframes hw-loader-spin {
  to { transform: rotate(360deg); }
}

html[data-theme="halloween"] .hw-loader__mark {
  position: relative;
  display: block;
  margin: 24px auto 12px;
  animation: hw-loader-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(249, 115, 22, 0.45));
}

@keyframes hw-loader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

html[data-theme="halloween"] .hw-loader__brand {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff7ed, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="halloween"] .hw-loader__hint {
  margin: 6px 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 146, 60, 0.75);
}

html[data-theme="halloween"] .hw-loader__track {
  width: min(220px, 70vw);
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

html[data-theme="halloween"] .hw-loader__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.65);
  animation: hw-loader-bar 1.15s ease-in-out infinite alternate;
}

@keyframes hw-loader-bar {
  from { width: 12%; transform: translateX(0); }
  to { width: 88%; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="halloween"] .hw-loader__ring,
  html[data-theme="halloween"] .hw-loader__mark,
  html[data-theme="halloween"] .hw-loader__fill,
  html[data-theme="halloween"] .hw-loader__panel {
    animation: none !important;
  }
  html[data-theme="halloween"] .hw-loader__fill {
    width: 70%;
  }
}

/* ── Download overlay ── */
.hw-dl {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hw-dl.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hw-dl__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

html[data-theme="halloween"] .hw-dl__backdrop {
  background:
    rgba(0, 0, 0, 0.82)
    url("/images/hero-cinematic.jpg?v=2") center / cover no-repeat;
  background-blend-mode: multiply;
  filter: blur(4px) brightness(0.45);
  transform: scale(1.05);
}

.hw-dl__card {
  position: relative;
  z-index: 2;
  width: min(360px, 92vw);
  padding: 32px 28px 26px;
  text-align: center;
  border-radius: 28px;
  background: rgba(8, 4, 2, 0.88);
  border: 1px solid rgba(249, 115, 22, 0.28);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(251, 146, 60, 0.08),
    0 0 60px rgba(249, 115, 22, 0.2);
  transform: translateY(12px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.hw-dl.is-open .hw-dl__card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.hw-dl__icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: #fb923c;
}

.hw-dl__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hw-dl__svg--spin {
  animation: hw-loader-spin 0.9s linear infinite;
}

.hw-dl__svg--check {
  opacity: 0;
  transform: scale(0.6);
  color: #4ade80;
}

.hw-dl.is-success .hw-dl__svg--spin {
  opacity: 0;
  transform: scale(0.6);
}

.hw-dl.is-success .hw-dl__svg--check {
  opacity: 1;
  transform: scale(1);
}

.hw-dl.is-error .hw-dl__svg--spin {
  color: #f87171;
  animation: hw-dl-shake 0.45s ease;
}

@keyframes hw-dl-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.hw-dl__title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff7ed;
}

.hw-dl__sub {
  margin: 8px 0 18px;
  font-size: 13px;
  color: rgba(255, 237, 213, 0.65);
  line-height: 1.45;
  word-break: break-word;
}

.hw-dl__track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hw-dl__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ea580c, #fb923c, #fdba74);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.55);
  transition: width 0.35s ease;
}

.hw-dl.is-success .hw-dl__fill {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.45);
}

.hw-dl__burst {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.hw-dl__burst span {
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: #fb923c;
  box-shadow: 0 0 12px #f97316;
  animation: hw-dl-spark var(--d, 0.6s) ease-out forwards;
  transform: rotate(var(--a, 0deg)) translateY(0);
}

@keyframes hw-dl-spark {
  to {
    transform: rotate(var(--a, 0deg)) translateY(-120px);
    opacity: 0;
  }
}

html[data-theme="halloween"] a.ext-download.is-downloading,
html[data-theme="halloween"] .ext-download.is-downloading {
  pointer-events: none;
  animation: hw-btn-dl-pulse 0.8s ease-in-out infinite;
}

@keyframes hw-btn-dl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
}

  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/images/hero-cinematic.jpg?v=2") center 40% / cover no-repeat;
  filter: blur(36px) saturate(1.12) brightness(0.42);
  transform: scale(1.14);
  animation: hw-bg-drift 50s ease-in-out infinite alternate;
}

@keyframes hw-bg-drift {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-2%, 1.5%, 0); }
}

html[data-theme="halloween"] .hw-sec {
  position: relative;
  z-index: 3;
  padding: clamp(44px, 7vw, 80px) 0;
}

html[data-theme="halloween"] .hw-sec__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

html[data-theme="halloween"] .hw-sec__grid--reverse {
  direction: rtl;
}

html[data-theme="halloween"] .hw-sec__grid--reverse > * {
  direction: ltr;
}

html[data-theme="halloween"] .hw-glass {
  padding: clamp(22px, 3vw, 32px);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transition: border-color 0.35s var(--ease, ease), box-shadow 0.35s ease, transform 0.35s ease;
}

html[data-theme="halloween"] .hw-glass:hover {
  border-color: rgba(251, 146, 60, 0.38);
  box-shadow: 0 28px 72px rgba(249, 115, 22, 0.14);
}

html[data-theme="halloween"] .hw-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-bright);
}

html[data-theme="halloween"] .hw-h2 {
  margin: 0;
  font-family: "Bebas Neue", var(--display), sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff7ed;
  line-height: 1.05;
}

html[data-theme="halloween"] .hw-lead {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 48ch;
}

html[data-theme="halloween"] .hw-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 700;
  color: var(--aqua-bright);
}

html[data-theme="halloween"] .hw-sec-head--center {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}

html[data-theme="halloween"] .hw-sec-head--center .hw-lead {
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="halloween"] .hw-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

html[data-theme="halloween"] .hw-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: #fff7ed;
}

html[data-theme="halloween"] .hw-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

html[data-theme="halloween"] .hw-card__n {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: rgba(249, 115, 22, 0.35);
  margin-bottom: 8px;
}

html[data-theme="halloween"] .hw-checklist {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

html[data-theme="halloween"] .hw-checklist li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

html[data-theme="halloween"] .hw-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px var(--aqua-glow);
}

html[data-theme="halloween"] .hw-panel-mock {
  padding: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

html[data-theme="halloween"] .hw-panel-mock__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

html[data-theme="halloween"] .hw-panel-mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.45);
}

html[data-theme="halloween"] .hw-panel-mock__title {
  font-weight: 800;
  color: #fff7ed;
  margin-bottom: 12px;
}

html[data-theme="halloween"] .hw-panel-mock__launch {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #140808;
  font-weight: 800;
  margin-bottom: 16px;
  animation: hw-pulse-glow 2.8s ease-in-out infinite;
}

@keyframes hw-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  50% { box-shadow: 0 0 24px 4px rgba(249, 115, 22, 0.35); }
}

html[data-theme="halloween"] .hw-panel-mock__row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(249, 115, 22, 0.12);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-theme="halloween"] .hw-panel-mock__row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

html[data-theme="halloween"] .dot--live { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
html[data-theme="halloween"] .dot--idle { background: #f97316; }
html[data-theme="halloween"] .dot--off { background: #6b7280; }

html[data-theme="halloween"] .hw-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="halloween"] .hw-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

html[data-theme="halloween"] .hw-step__n {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--aqua-bright);
  line-height: 1;
}

html[data-theme="halloween"] .hw-step h3 {
  margin: 0 0 6px;
  color: #fff7ed;
}

html[data-theme="halloween"] .hw-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

html[data-theme="halloween"] .hw-faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

html[data-theme="halloween"] .hw-faq .faq-item {
  padding: 0;
  overflow: hidden;
}

html[data-theme="halloween"] .hw-faq .faq-q {
  width: 100%;
  padding: 16px 18px;
}

html[data-theme="halloween"] .yt-player--hw {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #0a0604;
}

html[data-theme="halloween"] .yt-player--hw .yt-player__poster {
  position: absolute;
  inset: 0;
  background: url("/images/hero-cinematic.jpg?v=2") center 30% / cover no-repeat;
  filter: saturate(0.85) brightness(0.65);
  transform: scale(1.05);
}

html[data-theme="halloween"] .yt-player--hw .yt-player__veil {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
}

html[data-theme="halloween"] .hw-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease, ease), transform 0.65s var(--ease, ease);
}

html[data-theme="halloween"] .hw-rise.in {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="halloween"] .site-foot {
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(249, 115, 22, 0.12);
  backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  html[data-theme="halloween"] .hw-sec__grid,
  html[data-theme="halloween"] .hw-cards {
    grid-template-columns: 1fr;
  }
  html[data-theme="halloween"] .hw-sec__grid--reverse {
    direction: ltr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="halloween"] .hw-blur-bg,
  html[data-theme="halloween"] .hw-panel-mock__launch {
    animation: none !important;
  }
  html[data-theme="halloween"] .hw-rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
