/* fan/zelda.css: /worlds/zelda/ only. Back from git history (510e7cf^) on
   2026-11-21, when the page came out of /worlds/nintendo/ again.

   Hyrule field at dusk. Three ridges and a castle small on the middle one,
   because in every one of these games the castle is visible from the start
   and a very long way off, and that distance is the design. Gold on green,
   which is the only palette the series has ever really used. */

body[data-fan="zelda"] { --a: #e8c247; }

/* ── the backdrop ── */
.zl-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, #16223a 0%, #16302c 34%, #10201c 64%, #060c0a 100%);
}

.zl-sky > span { position: absolute; inset: 0; }

.zl-glow {
  background:
    radial-gradient(38% 26% at 50% 16%, rgba(232,194,71,.20), transparent 72%),
    radial-gradient(60% 30% at 50% 60%, rgba(63,213,137,.07), transparent 74%);
}

.zl-stars {
  background-size: 300px 300px;
  background-image:
    radial-gradient(1.3px 1.3px at 40px 40px, rgba(250,240,200,.55), transparent),
    radial-gradient(1.1px 1.1px at 176px 88px, rgba(220,240,220,.4), transparent),
    radial-gradient(1.5px 1.5px at 254px 32px, rgba(255,245,215,.45), transparent),
    radial-gradient(1.2px 1.2px at 92px 204px, rgba(230,240,225,.35), transparent);
  opacity: .55;
  mask-image: linear-gradient(#000 0 42%, transparent 68%);
  -webkit-mask-image: linear-gradient(#000 0 42%, transparent 68%);
}

.zl-field { position: absolute; inset: auto 0 0 0; height: 52%; }

.zl-field svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.zlf-far  { fill: #16302c; }

.zlf-mid  { fill: #102420; }

.zlf-near { fill: #0a1714; }

/* the castle is lit and everything else is not, which is the whole point of
   where it sits in these games */
.zlf-castle path {
  fill: #1c3a34; stroke: rgba(232,194,71,.5); stroke-width: 2;
  filter: drop-shadow(0 0 10px rgba(232,194,71,.35));
}

/* ── hero ── */
body[data-fan="zelda"] .fan-title {
  font-family: Copperplate, "Copperplate Gothic Light", Georgia, serif;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: clamp(1.4rem, 4.2vw, 3rem);
  background: linear-gradient(180deg, #fbf0c4, #e8c247 58%, #a07c14);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── the Triforce ── */
.zl-art { padding: 0 var(--gutter); max-width: var(--maxw); margin: 2.6rem 0 0; }

.zl-art svg { display: block; width: min(380px, 100%); margin-inline: auto; }

.zla-p {
  fill: #e8c247;
  filter: drop-shadow(0 0 14px rgba(232,194,71,.5));
}

/* the three breathe very slightly out of step, which is the only motion the
   shape can take without becoming a logo animation */
.zla-tri path { animation: zl-lift 5.4s ease-in-out infinite alternate; }
.zla-tri path:nth-child(2) { animation-delay: -1.8s; }
.zla-tri path:nth-child(3) { animation-delay: -3.6s; }

@keyframes zl-lift { from { opacity: .82; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .zla-tri path { animation: none; } }

.zl-art figcaption {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}
