/*
 * DREAM AWAKENING / scoped Hero enhancement (V56 preserved)
 * All selectors, animations and custom properties are prefixed dcd-hero-fx-.
 * This stylesheet intentionally has NO global selectors or layout overrides.
 */
.hero.dcd-hero-fx-root {
  --dcd-hero-fx-duration: 3200ms;
  --dcd-hero-fx-intensity: .75;
  --dcd-hero-fx-x: 0px;
  --dcd-hero-fx-y: 0px;
}

.hero.dcd-hero-fx-root .dcd-hero-fx-scene,
.hero.dcd-hero-fx-root .dcd-hero-fx-intro,
.hero.dcd-hero-fx-root .dcd-hero-fx-orbit-light {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.hero.dcd-hero-fx-root .dcd-hero-fx-scene { z-index: 1; }
.hero.dcd-hero-fx-root .dcd-hero-fx-particles { display:block; width:100%; height:100%; }
.hero.dcd-hero-fx-root .dcd-hero-fx-glow {
  position:absolute;
  inset:-4%;
  opacity:0;
  background:
    radial-gradient(ellipse 19% 30% at 80% 38%, rgba(247,197,112,.10), transparent 75%),
    radial-gradient(ellipse 28% 26% at 68% 80%, rgba(147,49,57,.10), transparent 72%);
  transform:translate3d(var(--dcd-hero-fx-x),var(--dcd-hero-fx-y),0);
  transition:opacity 1.2s ease;
  will-change:transform;
  pointer-events:none;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-background-glow .dcd-hero-fx-glow {opacity:var(--dcd-hero-fx-intensity)}
.hero.dcd-hero-fx-root.dcd-hero-fx-background-breathing .dcd-hero-fx-glow {animation:dcd-hero-fx-breathe 26s ease-in-out infinite alternate}

.hero.dcd-hero-fx-root .dcd-hero-fx-intro {z-index:5;background:#050508;opacity:0;visibility:hidden}
.hero.dcd-hero-fx-root .dcd-hero-fx-star {
  position:absolute;left:50%;top:50%;width:125px;height:125px;
  transform:translate(-50%,-50%) scale(.65);
  background:url('./assets/star-glow.svg') center/contain no-repeat;
  opacity:0;filter:drop-shadow(0 0 26px rgba(222,154,71,.38));
  pointer-events:none;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active .dcd-hero-fx-intro {
  visibility:visible;
  animation:dcd-hero-fx-curtain var(--dcd-hero-fx-duration) both linear;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active .dcd-hero-fx-star {
  animation:dcd-hero-fx-awaken var(--dcd-hero-fx-duration) both ease-out;
}

/* The original <br> positions and inline content dimensions remain untouched. */
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .hero-text > .eyebrow {
  animation:dcd-hero-fx-rise calc(var(--dcd-hero-fx-duration) * .22) calc(var(--dcd-hero-fx-duration) * .29) both ease-out;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .dcd-hero-fx-title-line {
  animation:dcd-hero-fx-line calc(var(--dcd-hero-fx-duration) * .20) both ease-out;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .dcd-hero-fx-title-line:nth-of-type(1) {animation-delay:calc(var(--dcd-hero-fx-duration) * .37)}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .dcd-hero-fx-title-line:nth-of-type(2) {animation-delay:calc(var(--dcd-hero-fx-duration) * .46)}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .dcd-hero-fx-title-line:nth-of-type(3) {animation-delay:calc(var(--dcd-hero-fx-duration) * .54)}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .hero-intro {
  animation:dcd-hero-fx-rise calc(var(--dcd-hero-fx-duration) * .22) calc(var(--dcd-hero-fx-duration) * .58) both ease-out;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active.dcd-hero-fx-title-reveal .hero-micro {
  animation:dcd-hero-fx-rise calc(var(--dcd-hero-fx-duration) * .19) calc(var(--dcd-hero-fx-duration) * .70) both ease-out;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active .hero-actions .button {
  animation:dcd-hero-fx-rise calc(var(--dcd-hero-fx-duration) * .15) calc(var(--dcd-hero-fx-duration) * .6875) both ease-out;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active .hero-actions .button + .button {animation-delay:calc(var(--dcd-hero-fx-duration) * .719)}
.hero.dcd-hero-fx-root.dcd-hero-fx-intro-active .hero-art .hero-mark {
  animation:dcd-hero-fx-logo-reveal calc(var(--dcd-hero-fx-duration) * .19) calc(var(--dcd-hero-fx-duration) * .80) both ease-in-out;
}

.hero.dcd-hero-fx-root .hero-text .gold.italic {position:relative}
.hero.dcd-hero-fx-root.dcd-hero-fx-title-shimmer .hero-text .gold.italic {
  animation:dcd-hero-fx-metal-shimmer 10s ease-in-out infinite;
}
.hero.dcd-hero-fx-root .dcd-hero-fx-button-light {
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;overflow:hidden;opacity:0;
  background:linear-gradient(112deg,transparent 24%,rgba(242,203,142,.03) 43%,rgba(255,224,169,.15) 50%,rgba(242,203,142,.03) 56%,transparent 73%);
  background-size:280% 100%;background-position:100% 0;
}
.hero.dcd-hero-fx-root .hero-actions .button {isolation:isolate}
.hero.dcd-hero-fx-root.dcd-hero-fx-button-glow .hero-actions .dcd-hero-fx-button-light {
  opacity:.64;
  animation:dcd-hero-fx-glass-sweep 7s ease-in-out infinite;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-button-glow .hero-actions .button:nth-child(2) .dcd-hero-fx-button-light {animation-delay:1.15s}
@media (hover:hover) and (pointer:fine) {
  .hero.dcd-hero-fx-root.dcd-hero-fx-button-glow .hero-actions .button:hover .dcd-hero-fx-button-light {
    opacity:.92;
    background:radial-gradient(circle at var(--dcd-hero-fx-btn-x,50%) var(--dcd-hero-fx-btn-y,50%), rgba(255,222,174,.23),rgba(230,178,103,.045) 28%,transparent 60%);
    animation:none;
  }
}
.hero.dcd-hero-fx-root .dcd-hero-fx-ripple {
  position:absolute;left:var(--dcd-hero-fx-btn-x,50%);top:var(--dcd-hero-fx-btn-y,50%);
  width:10px;height:10px;border:1px solid rgba(255,228,179,.72);border-radius:50%;
  box-shadow:0 0 14px rgba(239,180,111,.26);pointer-events:none;opacity:0;
  transform:translate(-50%,-50%);animation:dcd-hero-fx-ripple .52s ease-out forwards;
}
.hero.dcd-hero-fx-root .dcd-hero-fx-orbit-light {
  inset:-12%;border-radius:50%;opacity:0;
  background:radial-gradient(ellipse at center,transparent 37%,rgba(240,193,122,.12) 59%,transparent 72%);
  mix-blend-mode:screen;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-logo-glow .dcd-hero-fx-orbit-light {
  opacity:.50;
  animation:dcd-hero-fx-orbit 11s ease-in-out infinite;
}
.hero.dcd-hero-fx-root.dcd-hero-fx-logo-glow .hero-art:hover .dcd-hero-fx-orbit-light {opacity:.76;filter:brightness(1.18)}
.hero.dcd-hero-fx-root.dcd-hero-fx-paused .dcd-hero-fx-glow,
.hero.dcd-hero-fx-root.dcd-hero-fx-paused .dcd-hero-fx-orbit-light,
.hero.dcd-hero-fx-root.dcd-hero-fx-paused .dcd-hero-fx-button-light,
.hero.dcd-hero-fx-root.dcd-hero-fx-paused .hero-text .gold.italic {animation-play-state:paused}

@keyframes dcd-hero-fx-curtain {
  0%,15% {opacity:1}
  32% {opacity:.78}
  47%,100% {opacity:0}
}
@keyframes dcd-hero-fx-awaken {
  0% {opacity:0;transform:translate(-50%,-50%) scale(.56)}
  9% {opacity:.32}
  17% {opacity:.90;transform:translate(-50%,-50%) scale(1.06)}
  32% {opacity:.10;transform:translate(-50%,-50%) scale(1.32)}
  45%,100% {opacity:0}
}
@keyframes dcd-hero-fx-rise {
  from {opacity:0;translate:0 15px;filter:blur(2px)}
  to {opacity:1;translate:0 0;filter:blur(0)}
}
@keyframes dcd-hero-fx-line {from {opacity:0;filter:blur(2px)} to {opacity:1;filter:blur(0)}}
@keyframes dcd-hero-fx-logo-reveal {from {opacity:0}to{opacity:1}}
@keyframes dcd-hero-fx-metal-shimmer {
  0%,75%,100% {text-shadow:0 0 0 rgba(244,204,144,0)}
  84% {text-shadow:0 0 13px rgba(244,204,144,.40),0 0 28px rgba(229,155,86,.20)}
}
@keyframes dcd-hero-fx-glass-sweep {0%,62%{background-position:100% 0}88%,100%{background-position:0 0}}
@keyframes dcd-hero-fx-orbit {0%,100%{opacity:.30}48%{opacity:.62}65%{opacity:.35}}
@keyframes dcd-hero-fx-breathe {from{opacity:.35}to{opacity:.76}}
@keyframes dcd-hero-fx-ripple {0%{width:10px;height:10px;opacity:.75}100%{width:145px;height:145px;opacity:0}}

@media (max-width:680px) {
  .hero.dcd-hero-fx-root .dcd-hero-fx-glow {inset:0;filter:none}
  .hero.dcd-hero-fx-root .dcd-hero-fx-star {width:92px;height:92px}
  .hero.dcd-hero-fx-root.dcd-hero-fx-title-shimmer .hero-text .gold.italic {animation-duration:12s}
}
@media (prefers-reduced-motion:reduce) {
  .hero.dcd-hero-fx-root .dcd-hero-fx-intro {display:none}
  .hero.dcd-hero-fx-root .dcd-hero-fx-star {display:none}
  .hero.dcd-hero-fx-root .dcd-hero-fx-glow,
  .hero.dcd-hero-fx-root .dcd-hero-fx-orbit-light,
  .hero.dcd-hero-fx-root .dcd-hero-fx-button-light,
  .hero.dcd-hero-fx-root .hero-text .gold.italic,
  .hero.dcd-hero-fx-root .hero-actions .button,
  .hero.dcd-hero-fx-root .hero-art .hero-mark,
  .hero.dcd-hero-fx-root .dcd-hero-fx-title-line,
  .hero.dcd-hero-fx-root .hero-text > .eyebrow,
  .hero.dcd-hero-fx-root .hero-intro,
  .hero.dcd-hero-fx-root .hero-micro {animation:none;opacity:1;translate:none;filter:none}
}
