/* Hyrule prize display on the Shadowblade home (PREVIEW 20261201zd).
   An arched, gold-leaded window into the Zelda chamber (#zelda, data-zelda-intro).
   Painted scenery only; no character art; no story spoilers. */
.hyrule-show { padding: .6rem 0 1.4rem; }
.hyx {
  --gold: #f2cf6b; --gold2: #c99a2e; --ivory: #fff6dc; --sheikah: #6fe3f2; --night: #070d1c;
  position: relative; display: block; isolation: isolate; overflow: hidden;
  width: min(1180px, calc(100% - 1.6rem)); margin-inline: auto;
  height: min(88svh, 780px); min-height: 580px;
  color: var(--ivory); text-decoration: none;
  border-radius: 50% 50% 18px 18px / 26% 26% 18px 18px;
  background: var(--night);
  box-shadow: 0 0 0 3px #3a2a0a, 0 0 0 6px var(--gold2), 0 0 0 8px #1b1404, 0 40px 120px -30px rgba(0,0,0,.95), 0 0 90px rgba(242,207,107,.28), 0 0 160px rgba(111,227,242,.12);
  transform: translateZ(0);
}
.hyx:hover, .hyx:focus-visible { color: #fff; outline: none; }
.hyx:focus-visible { box-shadow: 0 0 0 3px #3a2a0a, 0 0 0 6px #ffe7a3, 0 0 0 9px #fff, 0 0 90px rgba(242,207,107,.6); }
@media (min-width: 900px) { .hyx { height: min(80vh, 740px); border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px; } }
@media (max-width: 700px) { .hyx { width: calc(100% - .7rem - 58px); margin-left: .55rem; margin-right: 58px; min-height: 620px; height: 84svh; border-radius: 50% 50% 14px 14px / 18% 18% 14px 14px; } }

/* painted slides: slow push + crossfade with a warm bloom */
.hyx-slides, .hyx-slide { position: absolute; inset: 0; }
.hyx-slide { background: var(--img) center / cover no-repeat; opacity: 0; transform: scale(1.16) translate3d(0, 1.5%, 0); transition: opacity 2s ease, transform 9s linear; filter: saturate(1.08); }
.hyx-slide.is-on { opacity: 1; transform: scale(1.03) translate3d(0, 0, 0); }
.hyx-slides::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,13,28,.35) 0%, rgba(7,13,28,0) 30%, rgba(7,13,28,.45) 62%, rgba(5,8,18,.96) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(255,231,163,.18), transparent 55%),
    radial-gradient(ellipse at 50% 55%, transparent 40%, rgba(0,0,0,.65) 100%); }

/* leaded-glass tracery over the arch (gold came lines) */
.hyx-lead { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .5; }
.hyx-lead svg { width: 100%; height: 100%; }
.hyx-lead path, .hyx-lead line { fill: none; stroke: var(--gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hyx-lead .soft { opacity: .35; }
/* god rays from the top of the arch */
.hyx-rays { position: absolute; left: 50%; top: -30%; width: 160%; aspect-ratio: 1; transform: translateX(-50%); z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,236,180,.0) 0deg 7deg, rgba(255,236,180,.16) 9deg 11deg, rgba(255,236,180,0) 13deg 20deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 18%, transparent 52%); mask-image: radial-gradient(circle at 50% 50%, #000 0 18%, transparent 52%);
  animation: hyxRays 60s linear infinite; animation-play-state: var(--fx-play); }
@keyframes hyxRays { to { transform: translateX(-50%) rotate(360deg); } }
.hyx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* sigil: rotating glyph ring + Triforce that assembles */
.hyx-sigil { position: absolute; left: 50%; top: 34%; width: min(58vw, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.hyx-sigil svg { width: 100%; height: 100%; overflow: visible; }
.hyx-sigil .ring { fill: none; stroke: var(--gold); transform-origin: 100px 100px; animation-play-state: var(--fx-play); }
.hyx-sigil .g1 { stroke-width: .7; stroke-dasharray: 1 5; opacity: .8; animation: hyxRot 50s linear infinite; }
.hyx-sigil .g2 { stroke-width: 2.2; stroke-dasharray: 10 4 2 4; opacity: .5; animation: hyxRot 32s linear infinite reverse; }
.hyx-sigil .g3 { stroke: var(--sheikah); stroke-width: .8; stroke-dasharray: 22 10; opacity: .45; animation: hyxRot 20s linear infinite; }
@keyframes hyxRot { to { transform: rotate(360deg); } }
.hyx-sigil .tri { fill: url(#hyxGold); stroke: #fff6dc; stroke-width: .6; opacity: 0; filter: drop-shadow(0 0 6px rgba(255,231,163,.9)); transition: transform 1.4s cubic-bezier(.16,1,.3,1), opacity 1s ease; }
.hyx-sigil .t1 { transform: translate(0, -60px) rotate(-30deg); transform-origin: 100px 75px; }
.hyx-sigil .t2 { transform: translate(-70px, 50px) rotate(40deg); transform-origin: 80px 110px; }
.hyx-sigil .t3 { transform: translate(70px, 50px) rotate(-40deg); transform-origin: 120px 110px; }
.hyx.is-in .hyx-sigil .tri { opacity: .92; transform: none; }
.hyx.is-in .hyx-sigil .t1 { transition-delay: .5s; } .hyx.is-in .hyx-sigil .t2 { transition-delay: .7s; } .hyx.is-in .hyx-sigil .t3 { transition-delay: .9s; }
.hyx-sigil .glow { fill: rgba(255,231,163,.5); opacity: 0; transform-origin: 100px 100px; }
.hyx.is-in .hyx-sigil .glow { animation: hyxGlow 4.5s ease-in-out 2s infinite; animation-play-state: var(--fx-play); }
@keyframes hyxGlow { 0%,100% { opacity: 0; transform: scale(.9); } 50% { opacity: .55; transform: scale(1.15); } }

/* plaque at the top of the arch */
.hyx-plaque { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); z-index: 5; font: 400 .74rem/1 "Marcellus SC", Georgia, serif; letter-spacing: .38em; color: #ffe7a3; text-shadow: 0 0 10px rgba(0,0,0,.9); white-space: nowrap; }
.hyx-plaque::before, .hyx-plaque::after { content: "\2726"; margin: 0 .7em; color: var(--gold); }
@media (max-width: 520px) { .hyx-plaque { top: 7%; font-size: .6rem; letter-spacing: .26em; } }

/* copy */
.hyx-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.3rem 2.2rem; text-align: center; }
.hyx-kicker { display: inline-block; margin: 0 0 .9rem; padding: .5em 1.2em; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font: italic 400 .95rem/1 "IM Fell English", Georgia, serif; letter-spacing: .08em; color: #ffe7a3; background: rgba(7,13,28,.55); }
.hyx-title { margin: 0; line-height: .95; animation: none !important; text-shadow: none !important; }
.hyx-t1 { position: relative; display: block; font-family: "Marcellus SC", "Cinzel", serif; font-weight: 400; font-size: clamp(3.4rem, 17vw, 9rem); letter-spacing: .1em;
  background: linear-gradient(100deg, #b7892a 0%, #ffe7a3 30%, #fffbe9 45%, #f2cf6b 58%, #9c7420 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(242,207,107,.55)) drop-shadow(0 4px 0 rgba(30,18,0,.85));
  animation: hyxSheen 7s ease-in-out infinite; animation-play-state: var(--fx-play); }
@keyframes hyxSheen { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hyx-t2 { display: block; margin-top: .5rem; font: italic 400 clamp(1.05rem, 4.2vw, 1.6rem)/1.15 "IM Fell English", Georgia, serif; letter-spacing: .04em; color: var(--ivory); text-shadow: 0 2px 12px #000; }
.hyx-era { margin: .9rem 0 .55rem; display: flex; justify-content: center; gap: .7em; font: 400 .86rem/1 "Marcellus SC", Georgia, serif; letter-spacing: .26em; color: var(--sheikah); min-height: 1em; text-shadow: 0 0 10px rgba(111,227,242,.6); }
.hyx-era > span { display: inline-block; transition: opacity .4s, transform .6s cubic-bezier(.16,1,.3,1), filter .4s; }
.hyx-era.is-swap > span { opacity: 0; transform: translateY(.6em); filter: blur(4px); }
.hyx-era-sep { color: var(--gold); }
.hyx-lede { max-width: 35rem; margin: 0 auto 1.25rem; font: 400 1.08rem/1.55 "IM Fell English", Georgia, serif; color: rgba(255,246,220,.94); text-shadow: 0 2px 10px #000; }
.hyx-cta { position: relative; display: inline-flex; align-items: center; gap: .8rem; overflow: hidden; min-height: 56px;
  padding: 1rem 2.1rem; border-radius: 999px; font: 400 1.12rem/1 "Marcellus SC", Georgia, serif; letter-spacing: .2em;
  color: #1a1203; background: linear-gradient(180deg, #fff3c9, #f2cf6b 50%, #c99a2e); border: 2px solid #fff6dc;
  box-shadow: 0 0 0 4px rgba(7,13,28,.8), 0 0 34px rgba(242,207,107,.75); }
.hyx-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.9) 50%, transparent 70%); transform: translate3d(-120%,0,0); animation: hyxSweep 3.4s ease-in-out 1.2s infinite; animation-play-state: var(--fx-play); }
@keyframes hyxSweep { 0% { transform: translate3d(-120%,0,0); } 45%,100% { transform: translate3d(120%,0,0); } }
.hyx-cta-glyph { font-size: .85rem; transition: transform .3s; }
.hyx:hover .hyx-cta-glyph { transform: translateX(5px); }
.hyx:hover .hyx-slide.is-on { filter: saturate(1.2) brightness(1.07); }
@media (max-width: 520px) { .hyx-cta { padding: .95rem 1.5rem; font-size: 1rem; letter-spacing: .14em; } .hyx-lede { font-size: 1rem; } .hyx-copy { padding-bottom: 1.7rem; } }

/* iris of light opens as the display scrolls in (Animus uses a letterbox; Hyrule opens from the centre) */
.hyx-iris { position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: 1; transition: opacity 1.3s ease .2s; background: radial-gradient(circle at 50% 42%, rgba(255,240,200,.95) 0 6%, #000 40%); }
.hyx.is-in .hyx-iris { opacity: 0; }
.hyx .hyx-copy > * { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
.hyx.is-in .hyx-copy > * { opacity: 1; transform: none; }
.hyx.is-in .hyx-kicker { transition-delay: .8s; } .hyx.is-in .hyx-title { transition-delay: .95s; } .hyx.is-in .hyx-era { transition-delay: 1.1s; } .hyx.is-in .hyx-lede { transition-delay: 1.2s; } .hyx.is-in .hyx-cta { transition-delay: 1.35s; }
.hyx .hyx-t1 { letter-spacing: .45em; transition: letter-spacing 1.8s cubic-bezier(.16,1,.3,1) .9s; }
.hyx.is-in .hyx-t1 { letter-spacing: .1em; }
@media (max-width: 520px) { .hyx.is-in .hyx-t1 { letter-spacing: .06em; } }
/* tap: a gold flare before the Zelda intro takes over */
.hyx.is-tap .hyx-slides { animation: hyxTap .55s ease-out both; }
@keyframes hyxTap { 0% { filter: brightness(1); } 35% { filter: brightness(2.4) sepia(.6) saturate(1.6); } 100% { filter: brightness(1); } }

@media (prefers-reduced-motion: reduce) {
  .hyx-iris { display: none; }
  .hyx .hyx-copy > *, .hyx .hyx-sigil .tri { opacity: 1; transform: none; transition: none; }
  .hyx .hyx-t1 { letter-spacing: .1em; transition: none; }
  .hyx-slide { transition: opacity .01ms; }
  .hyx *, .hyx *::before, .hyx *::after { animation: none !important; }
}
/* pause every loop while the display is off screen or the flame button is off */
.hyx:not(.is-vis) *, .hyx:not(.is-vis) *::before, .hyx:not(.is-vis) *::after { animation-play-state: paused !important; }
html[data-flame="off"] .hyx *, html[data-flame="off"] .hyx *::before, html[data-flame="off"] .hyx *::after { animation-play-state: paused !important; }
html[data-hub]:not([data-hub="home"]) .hyrule-show { display: none; }
@media (min-width: 701px) {
  .hyx-sigil { top: 27%; width: min(30vw, 250px); }
  .hyx-t1 { font-size: clamp(3.4rem, 10vw, 7rem); }
  .hyx-plaque { top: 6%; }
}
@media (min-width: 701px) and (max-height: 820px) { .hyx-sigil { top: 25%; width: 210px; } }
