/* Silent Hill Media XI — New Year 2027 splash (concept)
   Self-contained aside from the music player and egg media, which live on the site root. */

@font-face {
  font-family: Cinzel;
  src: url("fonts/Cinzel-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070605;
  --fg: #d7cbb8;
  --fg-dim: #8a7d6c;
  --rust: #b08a62;
  --rust-deep: #6e3f2a;
  --fog: 200, 198, 192;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: Cinzel, Palatino, "Palatino Linotype", "Times New Roman", serif;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  cursor: default;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(0,0,0,.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.5));
}
.grain {
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 5;
  opacity: .16;
  background: url("grain.png") repeat;
  mix-blend-mode: overlay;
  animation: grain-shift 1.2s steps(2, end) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.2%); }
  75% { transform: translate(-0.6%, -0.8%); }
  100% { transform: translate(0, 0); }
}
body.is-static .grain { opacity: .55; animation-duration: .08s; }

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7vh 24px 8vh;
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 2.45rem);
  letter-spacing: .38em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--fg);
  text-shadow: 0 0 28px rgba(0,0,0,.8);
  font-feature-settings: "kern" 1, "liga" 1;
}
h1 .ln { white-space: nowrap; }
h1 .xi {
  font-weight: 600;
  color: var(--rust);
  letter-spacing: .22em;
  margin-left: .15em;
  text-shadow: 0 0 18px rgba(176, 138, 98, .25);
}

/* Easter egg hot letters: no decoration, only a slight cursor change */
.egg {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  line-height: inherit;
  border-radius: 0;
}
.egg:focus { outline: none; }
.egg:focus-visible { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; text-decoration-color: rgba(176, 138, 98, .45); }

.hero {
  position: relative;
  cursor: pointer;
  width: min(100%, 960px);
  margin: 4.2vh auto 3.6vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05),
    0 24px 80px rgba(0,0,0,.65),
    0 0 80px rgba(40, 30, 18, .25);
}
.hero > img:first-of-type {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: contrast(1.04) saturate(.92);
}
.fog {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.8s ease;
  background:
    radial-gradient(ellipse 55% 70% at 86% 38%, rgba(var(--fog), .55), transparent 70%),
    radial-gradient(ellipse 50% 60% at 78% 78%, rgba(var(--fog), .32), transparent 70%),
    linear-gradient(100deg, transparent 38%, rgba(var(--fog), .18) 72%, rgba(var(--fog), .42) 100%);
  animation: fog-drift 32s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes fog-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1.05); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.1); }
}
.hero.is-clear .fog { opacity: .12; }

/* Invisible hover/tap zone in the thick fog on the right of the picture */
.fog-hotspot {
  position: absolute;
  top: 0;
  right: 0;
  width: 32%;
  height: 68%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.fog-hotspot:focus { outline: none; }

/* Welcome sign (WELCOME TO SILENT HILL XI), almost invisible until the fog thins */
.welcome {
  position: absolute;
  right: 1.5%;
  bottom: 2%;
  width: 32%;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  filter: none;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 1.8s ease;
}
.hero.is-clear .welcome { opacity: .95; }

.year {
  margin: 0;
  font-weight: 500;
  font-size: clamp(.72rem, 1.55vw, .95rem);
  letter-spacing: .62em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-left: .62em; /* optical balance for letter-spacing */
}

.whisper {
  margin: 6.5vh 0 0;
  max-width: 28em;
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: .72rem;
  letter-spacing: .14em;
  line-height: 1.6;
  color: transparent; /* hidden until highlighted; avoids antialias glow */
  user-select: text;
  cursor: default;
}
.whisper::selection { color: #d7cbb8; background: #2a2018; }
.whisper::-moz-selection { color: #d7cbb8; background: #2a2018; }

/* Hidden official OST list — present in the DOM so the existing player can queue it */
.shm-eggs-audio {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Cutscene overlay */
.cutscene {
  position: fixed;
  inset: 0;
  z-index: 2147483001; /* above the SHM player */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.94);
  padding: 4vh 4vw;
}
.cutscene[hidden] { display: none !important; }
.cutscene-frame {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 640 / 412;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 80px rgba(0,0,0,.8);
}
.cutscene video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.cutscene-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  border: 0;
  background: none;
  color: #c9bda8;
  font: 500 .75rem/1 Cinzel, Palatino, serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  cursor: pointer;
  padding: .4rem 0;
}
.cutscene-close:focus-visible { outline: 1px solid var(--rust); outline-offset: 3px; }

@media (max-width: 640px) {
  main { padding: 8vh 18px 10vh; }
  h1 {
    letter-spacing: .22em;
    font-size: clamp(1.2rem, 6.4vw, 1.7rem);
  }
  h1 .ln { display: block; }
  h1 .ln + .ln { margin-top: .45em; }
  .year { letter-spacing: .36em; padding-left: .36em; }
  .hero { margin: 5vh auto 4vh; }
  .welcome { width: 42%; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .fog { animation: none; }
  .fog, .welcome { transition: none; }
}

/* Invisible percentage hotspot on the hero (the streetlamp).
   It sits above the fog hover zone and stops the hero's OST click. */
.egg-hotspot {
  position: absolute;
  z-index: 4;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.egg-hotspot:focus { outline: none; }
.egg-hotspot:focus-visible { outline: 1px solid rgba(176, 138, 98, .45); outline-offset: 2px; }
.egg-lamp {
  left: 50.5%;
  top: 13%;
  width: 7.5%;
  height: 28%;
}

/* Full-page falling snow. Above the page, grain and vignette; below the
   player (2147483000), cutscene and lightbox. Clicks pass through. */
.snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

