/*
 * Halls of Horror — Ghost Stories (template-ghost-stories.php).
 * Fear from darkness, fog, eyes, whispers and the pocong — no gore, no
 * flashing brighter than the page (it must stay safe for search engines and
 * for people sensitive to flashing light). The only blood is the pocong art's
 * own stains, kept red by the user's choice (2026-11-01). Every animation
 * stops for prefers-reduced-motion.
 */

/* GLOBAL */
.gs-page {
  --gs-black: #020203;
  --gs-bone: #e9e1cf;
  --gs-ash: #aaa392;
  --gs-dim: #6f6a5e;
  --gs-line: rgba(233, 225, 207, 0.13);
  --gs-spectral: #c9dfd9;
  --gs-brass: #bda57a;
  --gs-display: 'IM Fell English SC', 'Times New Roman', serif;
  --gs-serif: 'EB Garamond', Georgia, serif;
  --gs-torch: clamp(74px, 11vmax, 210px);
  color: var(--gs-bone);
}
html.gs-lock {
  overflow: hidden;
}
/* tgv-btn and other classes set their own display, which beats [hidden]. */
.gs-page [hidden] {
  display: none !important;
}
/* hoh.css puts Poppins on every element of a Halls of Horror page
   (body:has(.hoh-scream-dialog) *, !important), so this page's own type must
   be !important too, named element by element, and prefixed with .gs-page to
   out-rank it. Sizes and styles stay in each element's own rule below. */
.gs-page .section-title,
.gs-page .section-title *,
.gs-page .gs-stone-rank,
.gs-page .gs-stone-rip,
.gs-page .gs-stone-title,
.gs-page .gs-input--title,
.gs-page .gs-cover-title,
.gs-page .gs-soul,
.gs-page .gs-case,
.gs-page .gs-reader-title,
.gs-page .gs-reader-photo figcaption,
.gs-page .gs-archive-title {
  font-family: var(--gs-display) !important;
}
.gs-page .section-tagline,
.gs-page .gs-clock,
.gs-page .gs-scroll,
.gs-page .gs-stone-epitaph,
.gs-page .gs-stone-by,
.gs-page .gs-input--story,
.gs-page .gs-listening,
.gs-page .gs-rules,
.gs-page .gs-cover-copy,
.gs-page .gs-soul.gs-soul--echo,
.gs-page .gs-cloud-empty,
.gs-page .gs-reader-by,
.gs-page .gs-reader-text p,
.gs-page .gs-likers,
.gs-page .gs-like-note,
.gs-page .gs-archive-excerpt,
.gs-page .gs-archive-end,
.gs-page .gs-sealed-copy,
.gs-page .gs-whisper,
.gs-page .gs-sound-hint {
  font-family: var(--gs-serif) !important;
}
.gs-page section {
  max-width: 1100px;
}
/* hoh.css pins the Back link to the screen; on this long page it would sit on
   top of every section title, so here it scrolls away with the hero. */
.gs-page .hoh-back {
  position: absolute;
}
.gs-page .section-title {
  position: relative;
  font-family: var(--gs-display);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--gs-bone);
  text-shadow: 0 0 24px rgba(201, 223, 217, 0.22), 0 2px 2px #000;
}
.gs-page .section-tagline {
  font-family: var(--gs-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gs-spectral);
}
.gs-page .section-description {
  max-width: 640px;
  color: var(--gs-ash);
  line-height: 1.55;
  opacity: 1;
}
/* The torch lights up the corridor behind the text — keep the text readable. */
.gs-page .section-kicker,
.gs-page .section-tagline,
.gs-page .section-description,
.gs-page .gs-clock {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 0 14px rgba(0, 0, 0, 0.7);
}
/* A word that is, for a blink, another word (the script adds .gs-swap-alt). */
.gs-swap-alt,
.gs-page [data-swap].is-swapped {
  display: none;
}
.gs-page [data-swap].is-swapped + .gs-swap-alt {
  display: inline;
}
/* Headers rise out of the dark as they scroll in. ghost-stories.js adds
   .gs-reveal, so without the script everything simply shows. */
.gs-page .section-header.gs-reveal {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px);
  transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease;
}
.gs-page .section-header.gs-reveal.is-seen {
  opacity: 1;
  filter: none;
  transform: none;
}
.gs-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* GLOBAL END */


/* ATMOSPHERE SECTION */
.gs-atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(130% 85% at 50% 40%, #0d1415 0%, #07090a 46%, var(--gs-black) 100%);
}
/* THE CORRIDOR — an empty school hallway that only the torch reveals. Its far
   end (47.5% 47%) is both the background position and the zoom origin, so it
   stays put on every screen while the page walks you down it (--zoom) and it
   drifts against the light (--rx / --ry). .gs-haunt is a twin layer above
   the dark, holding the far lights and the pocong, so they move as one. */
.gs-room,
.gs-haunt {
  position: absolute;
  inset: -4%;
  transform-origin: 47.5% 47%;
  transform: translate3d(var(--rx, 0%), var(--ry, 0%), 0) scale(var(--zoom, 1));
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gs-room {
  background: url('../../assets/halls-of-horror/no-way-out-hallway.webp') 47.5% 47% / cover no-repeat;
  filter: brightness(0.6) saturate(0.55) contrast(1.08);
}
/* The tubes still working at the far end: a little of the corridor shows
   through the dark there, flickering now and then. */
.gs-haunt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../../assets/halls-of-horror/no-way-out-hallway.webp') 47.5% 47% / cover no-repeat;
  filter: brightness(0.95) saturate(0.5);
  -webkit-mask-image: radial-gradient(circle at 47.5% 47%, #000 0, rgba(0, 0, 0, 0.55) 5%, transparent 13%);
  mask-image: radial-gradient(circle at 47.5% 47%, #000 0, rgba(0, 0, 0, 0.55) 5%, transparent 13%);
  opacity: 0.5;
  animation: gsTube 7s steps(1) infinite;
  transition: opacity 0.3s ease;
}
.gs-atmos.is-dead .gs-haunt::before {
  opacity: 0.08;
  animation: none;
}
.gs-fog {
  position: absolute;
  left: 0;
  width: 200%;
  background: url('../../assets/halls-of-horror/floor-fog.png') repeat-x 0 100% / 50% 100%;
  animation: gsFogDrift 90s linear infinite;
}
.gs-fog--far {
  bottom: -4vh;
  height: 48vh;
  opacity: 0.2;
}
.gs-fog--near {
  bottom: -12vh;
  height: 34vh;
  opacity: 0.13;
  filter: blur(2px);
  animation-duration: 60s;
  animation-direction: reverse;
}
/* THE POCONG — stands in the corridor, sized and placed by the script in %
   of .gs-haunt (closer each visit). The wrapper owns the place and the
   bad-signal twitch, the picture inside owns the hop and the lunge, so the
   two transforms never fight. See-through (screen blend), in the art's own
   colours — its blood stains stay red (the user's call, 2026-11-01). The
   ratio is pocong.webp's own. */
.gs-pocong {
  position: absolute;
  left: 47.5%;
  bottom: 46.5%;
  height: 9%;
  aspect-ratio: 906 / 1736;
  opacity: 0;
  transform: translateX(-50%);
  filter: brightness(0.74) contrast(1.15) saturate(1.15) blur(0.4px);
  mix-blend-mode: screen;
  transition: opacity 0.45s ease;
}
.gs-pocong img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform-origin: 50% 100%;
}
.gs-pocong.is-here {
  opacity: var(--o, 0.5);
  animation: gsApparition 2.6s steps(1) infinite;
}
/* Moving along the floor — only while it hops, so it never slides from where
   it stood last time. */
.gs-pocong.is-hopping {
  transition: opacity 0.45s ease, left 0.44s cubic-bezier(0.45, 0, 0.55, 1), bottom 0.44s cubic-bezier(0.45, 0, 0.55, 1), height 0.44s cubic-bezier(0.45, 0, 0.55, 1);
}
.gs-pocong.is-hop img {
  animation: gsHop 0.56s ease-in-out;
}
/* Right in front of you: solid, sharp, there at once, and still coming. */
.gs-pocong.is-face {
  filter: brightness(0.55) contrast(1.25) saturate(1.15);
  mix-blend-mode: normal;
  transition: none;
}
.gs-pocong.is-face img {
  transform-origin: 50% 22%;
  animation: gsLunge 2s cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}
/* Gone: cut away, never faded. */
.gs-pocong.is-gone {
  transition-duration: 0.1s;
}
/* A knock jolts the corridor. `translate` adds to the layers' own transform
   (drift and zoom) instead of replacing it. --knock (px) grows as the knocks
   come closer. */
.gs-atmos.is-knock .gs-room,
.gs-atmos.is-knock .gs-haunt {
  animation: gsKnock 0.3s ease-out;
}
/* The dark itself, with the torch's hole in it. --lx / --ly follow the
   pointer (or drift on their own), set by ghost-stories.js. */
.gs-torch {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 32%),
    rgba(1, 1, 2, 0) 0,
    rgba(1, 1, 2, 0.08) calc(var(--gs-torch) * 0.55),
    rgba(1, 1, 2, 0.62) calc(var(--gs-torch) * 1.35),
    rgba(1, 1, 2, 0.88) calc(var(--gs-torch) * 2.4),
    rgba(1, 1, 2, 0.92) 100%);
}
/* How much light the torch gives: the script sets this layer's opacity to
   (1 - power) × 0.92, so a dying torch fills its own hole with dark. */
.gs-unlit {
  position: absolute;
  inset: 0;
  background: #010102;
  opacity: 0;
}
/* FOG — drawn live by ghost-stories.js (WebGL) when the device can; the
   drifting fog picture (.gs-fog) is the stand-in when it can't. */
.gs-fog-gl {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}
.gs-atmos.has-fog-gl .gs-fog-gl {
  display: block;
}
.gs-atmos.has-fog-gl .gs-fog {
  display: none;
}
/* EYES — .gs-eye holds the lids (--lid) and the glow, .gs-eye-in blinks, and
   the pupil follows the torch (--px / --py from -1 to 1, set by the script).
   They open slowly and creep closer (scale) for as long as they stare. */
.gs-eyes-pair {
  position: absolute;
  display: flex;
  gap: calc(var(--s) * 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(1);
  transition: opacity 1.8s ease, transform var(--life, 8s) linear;
}
.gs-eyes-pair.is-open {
  opacity: 0.96;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(1.22);
}
.gs-eyes-pair.is-fade {
  opacity: 0;
  transition: opacity 1.4s ease, transform var(--life, 8s) linear;
}
.gs-eyes-pair.is-squint.is-shut {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s, transform var(--life, 8s) linear;
}
.gs-eye {
  position: relative;
  display: block;
  width: var(--s);
  height: calc(var(--s) * 0.5);
  transform: scale(var(--mx, 1), var(--lid, 0.04));
  transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.2, 1);
  filter: drop-shadow(0 0 calc(var(--s) * 0.3) var(--glow)) drop-shadow(0 0 calc(var(--s) * 1.1) var(--glow-far));
}
.gs-eye + .gs-eye {
  --mx: -1;
}
.gs-eyes-pair.is-open .gs-eye {
  --lid: 1;
}
.gs-eyes-pair.is-squint .gs-eye {
  --lid: 0.34;
  transition-duration: 0.2s;
}
.gs-eyes-pair.is-shut .gs-eye {
  --lid: 0.03;
  transition-duration: 0.14s;
}
.gs-eye-in {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, var(--c1) 0%, var(--c2) 42%, var(--c3) 80%, transparent 100%);
  animation: gsBlink 5s infinite;
}
.gs-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  height: 96%;
  border-radius: 50%;
  background: #070300;
  transform: translate(-50%, -50%) translate(calc(var(--px, 0) * var(--s) * 0.24), calc(var(--py, 0) * var(--s) * 0.07));
  transition: transform 0.2s ease-out;
}
/* The second eye is mirrored, so its pupil moves the other way on x. */
.gs-eye + .gs-eye .gs-pupil {
  transform: translate(-50%, -50%) translate(calc(var(--px, 0) * var(--s) * -0.24), calc(var(--py, 0) * var(--s) * 0.07));
}
/* Watchers: gold, slanted, slit pupils. */
.gs-eyes--watcher {
  --c1: #fffbe2;
  --c2: #f2c44c;
  --c3: #6a3f04;
  --glow: rgba(242, 196, 76, 0.6);
  --glow-far: rgba(242, 196, 76, 0.2);
}
.gs-eyes--watcher .gs-eye-in {
  clip-path: polygon(0 58%, 18% 20%, 56% 0, 100% 34%, 84% 80%, 40% 100%);
}
/* Embers: small, red, low to the floor. */
.gs-eyes--ember {
  gap: calc(var(--s) * 0.7);
  --c1: #ffd8c2;
  --c2: #ff3b1f;
  --c3: #4e0300;
  --glow: rgba(255, 59, 31, 0.65);
  --glow-far: rgba(255, 59, 31, 0.22);
}
.gs-eyes--ember .gs-eye {
  height: calc(var(--s) * 0.8);
}
.gs-eyes--ember .gs-eye-in {
  border-radius: 50%;
}
.gs-eyes--ember .gs-pupil {
  width: 32%;
  height: 44%;
  background: rgba(28, 0, 0, 0.88);
}
/* Hollow: pale, soft and drooping, no pupils, a darker shape around them like
   a face — and they hardly ever blink. */
.gs-eyes--hollow {
  gap: calc(var(--s) * 1.5);
  --c1: #eef7f3;
  --c2: #a9c1ba;
  --c3: rgba(64, 92, 86, 0.55);
  --glow: rgba(190, 214, 206, 0.45);
  --glow-far: rgba(190, 214, 206, 0.14);
}
.gs-eyes--hollow.is-open:not(.is-fade):not(.is-shut) {
  opacity: 0.82;
}
.gs-eyes--hollow .gs-eye {
  height: calc(var(--s) * 0.55);
  transform: scale(var(--mx, 1), var(--lid, 0.04)) rotate(-11deg);
}
.gs-eyes--hollow .gs-eye-in {
  border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  filter: blur(0.6px);
  animation-duration: 12s !important;
}
.gs-eyes--hollow .gs-pupil {
  display: none;
}
.gs-eyes--hollow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: calc(var(--s) * 5.2);
  height: calc(var(--s) * 6.6);
  border-radius: 46% 46% 40% 40%;
  background: radial-gradient(ellipse at 50% 38%, rgba(0, 0, 0, 0.72), transparent 70%);
  transform: translate(-50%, -36%);
}
.gs-whisper {
  font-style: italic;
  font-size: clamp(16px, 2.3vw, 20px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: rgba(222, 232, 228, 0.6);
  text-shadow: 0 0 12px rgba(201, 223, 217, 0.4);
  animation: gsWhisper 7s ease-in-out forwards;
}
.gs-whisper.is-margin {
  position: absolute;
}
/* Narrow screens: a subtitle from nowhere, above the page. The dark halo
   keeps it readable over whatever text is underneath. */
.gs-voices {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}
.gs-whisper.is-subtitle {
  max-width: 560px;
  font-size: clamp(17px, 2.6vw, 22px);
  color: rgba(226, 236, 232, 0.88);
  text-align: center;
  text-shadow: 0 0 8px #000, 0 0 18px #000, 0 0 30px rgba(201, 223, 217, 0.35);
}
/* The knocks written out, like a film's captions, when the sound is off. */
.gs-whisper.is-caption {
  letter-spacing: 0.18em;
  animation: gsCaption 4.6s ease forwards;
}
.gs-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 95% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  animation: gsBreathe 9s ease-in-out infinite;
}
.gs-blackout {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
}
.gs-atmos.is-out .gs-blackout {
  opacity: 0.7;
}
.gs-atmos.is-dead .gs-blackout {
  opacity: 0.55;
}
/* LIGHTS OUT — the page itself sinks into the dark too, so the eyes behind
   it show through. */
.gs-page .page-wrapper > section {
  transition: opacity 0.35s ease;
}
.gs-page.is-lights-out .page-wrapper > section {
  opacity: 0.2;
}
/* The pocong right in front of you: the page all but gone, so nothing stands
   between you and its face. */
.gs-page.is-face-to-face .page-wrapper > section {
  opacity: 0.07;
}
.gs-grain {
  position: fixed;
  inset: -20%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: gsGrain 1.1s steps(6) infinite;
}
/* ATMOSPHERE SECTION END */


/* SOUND SECTION */
.gs-sound {
  position: fixed;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px 10px 12px;
  border: 1px solid rgba(233, 225, 207, 0.2);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.78);
  color: var(--gs-bone);
  font: 600 11px/1 Poppins, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gs-sound:focus-visible {
  outline: 2px solid var(--gs-spectral);
  outline-offset: 3px;
}
.gs-sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.gs-sound-bars i {
  display: block;
  width: 3px;
  height: 4px;
  background: currentColor;
  opacity: 0.55;
}
.gs-sound.is-on .gs-sound-bars i {
  opacity: 1;
  animation: gsBars 0.9s ease-in-out infinite alternate;
}
.gs-sound.is-on .gs-sound-bars i:nth-child(2) {
  animation-delay: -0.3s;
}
.gs-sound.is-on .gs-sound-bars i:nth-child(3) {
  animation-delay: -0.6s;
}
.gs-sound-hint {
  position: fixed;
  left: 14px;
  bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: auto;
  max-width: 220px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(233, 225, 207, 0.16);
  border-radius: 6px;
  background: rgba(5, 6, 7, 0.88);
  color: var(--gs-ash);
  font: italic 15px/1.3 var(--gs-serif);
  opacity: 1;
  animation: gsHint 6s ease forwards;
}
/* SOUND SECTION END */


/* HERO SECTION */
.gs-page #hero {
  min-height: calc(100svh - var(--navbar-height));
}
/* The hero surfaces from the dark on load, one line after another. */
#hero .section-header > *,
#hero .section-content > * {
  animation: gsEmerge 1.8s ease both;
}
#hero .section-header > :nth-child(2) { animation-delay: 0.25s; }
#hero .section-header > :nth-child(3) { animation-delay: 0.5s; }
#hero .section-header > :nth-child(4) { animation-delay: 0.9s; }
#hero .section-header > :nth-child(5) { animation-delay: 1.15s; }
#hero .section-header > :nth-child(6) { animation-delay: 1.3s; }
#hero .section-content > * { animation-delay: 1.5s; }
.gs-logo {
  width: clamp(190px, 50vw, 330px);
  height: auto;
  opacity: 0.86;
  filter: drop-shadow(0 0 18px rgba(201, 223, 217, 0.16));
}
.gs-page h1.section-title::after {
  content: attr(data-echo);
  position: absolute;
  inset: 0;
  color: rgba(201, 223, 217, 0.5);
  opacity: 0;
  filter: blur(2px);
  pointer-events: none;
  animation: gsEcho 11s ease-in-out 3s infinite;
}
.gs-flick {
  transition: opacity 0.05s;
}
.gs-flick.is-out {
  opacity: 0.12;
}
.gs-clock {
  min-height: 1.5em;
  max-width: 560px;
  font: italic 500 clamp(16px, 2.2vw, 19px)/1.5 var(--gs-serif);
  color: var(--gs-dim);
  letter-spacing: 0.02em;
  opacity: 1;
}
.gs-clock.is-typing::after {
  content: '▍';
  margin-left: 2px;
  animation: gsCaret 0.9s steps(1) infinite;
}
.gs-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.gs-scroll {
  margin-top: 34px;
  font: italic 15px/1 var(--gs-serif);
  letter-spacing: 0.24em;
  color: var(--gs-dim);
  opacity: 1;
  animation: gsBreathe 4s ease-in-out infinite;
}
.gs-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 46px;
  margin: 12px auto 0;
  background: linear-gradient(180deg, var(--gs-dim), transparent);
}
/* HERO SECTION END */


/* HAUNTED SECTION */
.gs-yard {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 8px;
}
.gs-graves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2.6vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.gs-grave {
  flex: 0 1 30%;
  order: 3;
}
.gs-grave--1 {
  flex-basis: 36%;
  order: 2;
}
.gs-grave--2 {
  order: 1;
}
.gs-stone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3px, 0.8vw, 8px);
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 16% 9% 10%;
  border: 0;
  border-radius: 50% 50% 5px 5px / 34% 34% 5px 5px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 45% at 30% 18%, rgba(255, 255, 255, 0.11), transparent 70%),
    radial-gradient(circle at 76% 84%, rgba(54, 74, 52, 0.42), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(54, 74, 52, 0.3), transparent 26%),
    linear-gradient(180deg, #7a7970 0%, #55544d 52%, #2e2d28 100%);
  box-shadow: inset 0 -34px 44px rgba(0, 0, 0, 0.55), inset 0 10px 22px rgba(255, 255, 255, 0.05), 0 26px 44px rgba(0, 0, 0, 0.65);
  color: #171614;
  font-family: var(--gs-display);
  text-align: center;
  cursor: pointer;
  transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.6s ease, filter 0.4s ease, box-shadow 0.4s ease;
}
.gs-grave--1 .gs-stone {
  aspect-ratio: 3 / 4.3;
  transition-delay: 0.25s;
}
.gs-grave--3 .gs-stone {
  transition-delay: 0.5s;
}
/* The graves rise when the yard scrolls in (ghost-stories.js adds .gs-rise). */
.gs-yard.gs-rise .gs-stone {
  opacity: 0;
  transform: translateY(54px);
}
.gs-yard.gs-rise.is-risen .gs-stone {
  opacity: 1;
  transform: none;
}
/* A hairline crack across the top, clear of the engraving. */
.gs-stone::before {
  content: '';
  position: absolute;
  top: 3%;
  right: 13%;
  width: 14%;
  height: 22%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 100'%3E%3Cpath d='M30 0 L22 18 L28 30 L14 52 L20 64 L8 86 L12 100' fill='none' stroke='%23161512' stroke-width='1.6' stroke-opacity='.55'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}
.gs-stone > span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22), 0 -1px 0 rgba(0, 0, 0, 0.5);
}
/* Candlelight on the face of every grave that holds a story. */
.gs-grave:not(.is-empty) .gs-stone::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 158, 64, 0.26), transparent 70%);
  pointer-events: none;
  animation: gsCandleGlow 1.7s ease-in-out infinite;
  transition: opacity 0.25s ease;
}
.gs-page.is-lights-out .gs-stone::after {
  opacity: 0;
}
.gs-candle {
  position: relative;
  z-index: 3;
  display: block;
  width: 9px;
  height: 20px;
  margin: 10px auto 0;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #b9ad8c, #f0e7cd 45%, #a99c79);
  box-shadow: 0 0 10px rgba(255, 170, 70, 0.3);
}
.gs-candle i {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 8px;
  height: 17px;
  margin-left: -4px;
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 75%, #fffbe8 0%, #ffd27a 35%, #ff8a1f 70%, rgba(255, 90, 0, 0) 100%);
  box-shadow: 0 0 12px 4px rgba(255, 160, 50, 0.45), 0 0 40px 14px rgba(255, 140, 40, 0.16);
  transform-origin: 50% 100%;
  animation: gsFlame 1.7s ease-in-out infinite;
  transition: opacity 0.25s ease;
}
.gs-page.is-lights-out .gs-candle i {
  opacity: 0;
}
.gs-page.is-lights-out .gs-candle {
  filter: brightness(0.3);
  box-shadow: none;
}
.gs-stone-rank {
  font-size: clamp(20px, 4.6vw, 40px);
  line-height: 1;
}
.gs-stone-rip {
  display: none;
  font-size: clamp(9px, 1.5vw, 13px);
  letter-spacing: 0.28em;
}
.gs-stone-title {
  font-size: clamp(14px, 3.3vw, 27px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.gs-stone-epitaph {
  display: none;
  font: italic 15px/1.3 var(--gs-serif);
}
.gs-stone-by {
  display: none;
  font-family: var(--gs-serif);
  font-size: clamp(10px, 1.6vw, 14px);
  font-style: italic;
  overflow-wrap: anywhere;
}
.gs-stone-votes {
  margin-top: auto;
  padding: 4px 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, #c6aa6f, #7d6438);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #1d150a;
  font: 600 clamp(9px, 1.4vw, 12px)/1.2 Poppins, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-shadow: none !important;
  white-space: nowrap;
}
.gs-stone:focus-visible {
  outline: 2px solid var(--gs-spectral);
  outline-offset: 4px;
}
.gs-grave.is-empty .gs-stone {
  cursor: default;
  filter: brightness(0.55) grayscale(0.4);
}
/* HAUNTED SECTION END */


/* TELL SECTION */
.gs-report {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 4.5vw, 44px);
  overflow: hidden;
  border: 1px solid var(--gs-line);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(15, 18, 19, 0.9), rgba(6, 7, 8, 0.94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  text-align: left;
}
.gs-report-fog {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 18% 22%, rgba(201, 223, 217, 0.07), transparent 70%),
    radial-gradient(45% 35% at 82% 70%, rgba(201, 223, 217, 0.06), transparent 70%);
  animation: gsBreathe 10s ease-in-out infinite;
}
.gs-hand {
  position: absolute;
  z-index: -1;
  top: var(--hy, 18%);
  left: var(--hx, 62%);
  width: 110px;
  height: auto;
  color: #dfe9e6;
  opacity: 0;
  filter: blur(2.5px);
  transform: rotate(var(--hr, -12deg));
  transition: opacity 5s ease;
}
.gs-report.is-touched .gs-hand {
  opacity: 0.085;
}
.gs-report-fields {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
}
.gs-report.is-sealing .gs-report-fields {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-14px) scale(0.98);
}
.gs-field label,
.gs-field-top label {
  display: block;
  font: 600 11px/1.3 Poppins, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gs-ash);
}
.gs-field label small {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--gs-dim);
}
.gs-field-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.gs-field > label {
  margin-bottom: 8px;
}
.gs-count {
  flex-shrink: 0;
  font: 500 12px/1 Poppins, Arial, sans-serif;
  color: var(--gs-dim);
  font-variant-numeric: tabular-nums;
}
.gs-count.is-near {
  color: #d9a35b;
}
.gs-count.is-full {
  color: var(--primary);
}
.gs-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(233, 225, 207, 0.15);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--gs-bone);
  font: 400 16px/1.4 Poppins, Arial, sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  -webkit-user-select: text;
  user-select: text;
}
.gs-input::placeholder {
  color: var(--gs-dim);
  opacity: 1;
}
.gs-input:focus {
  outline: none;
  border-color: rgba(201, 223, 217, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 223, 217, 0.08), 0 0 34px rgba(201, 223, 217, 0.07);
}
.gs-input--title {
  font: 400 clamp(22px, 5vw, 28px)/1.2 var(--gs-display);
  letter-spacing: 0.05em;
}
.gs-input--story {
  min-height: 230px;
  resize: vertical;
  font: 400 18px/1.6 var(--gs-serif);
}
.gs-hint,
.gs-listening {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gs-dim);
  opacity: 1;
}
.gs-listening {
  font: italic 16px/1.4 var(--gs-serif);
  color: var(--gs-spectral);
  opacity: 0;
  transition: opacity 2.5s ease;
}
.gs-listening.is-shown {
  opacity: 0.75;
}
.gs-listening.is-typing::after {
  content: '▍';
  margin-left: 1px;
  animation: gsCaret 0.9s steps(1) infinite;
}
.gs-evidence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.gs-evidence .gs-evidence-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px dashed rgba(233, 225, 207, 0.25);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.gs-evidence:has(.gs-file:focus-visible) .gs-evidence-btn {
  outline: 2px solid var(--gs-spectral);
  outline-offset: 3px;
}
.gs-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.gs-evidence-preview {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid var(--gs-line);
  border-radius: 2px;
  filter: grayscale(0.4);
}
.gs-evidence-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--gs-ash);
}
.gs-evidence-clear {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--gs-line);
  border-radius: 50%;
  background: transparent;
  color: var(--gs-ash);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.gs-handle {
  display: flex;
  align-items: stretch;
}
.gs-handle > span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(233, 225, 207, 0.15);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--gs-dim);
}
.gs-handle .gs-input {
  border-radius: 0 3px 3px 0;
}
.gs-rules {
  margin: 0;
  font: italic 16px/1.45 var(--gs-serif);
  color: var(--gs-ash);
  opacity: 1;
}
.gs-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 2px solid var(--primary);
  background: rgba(255, 0, 19, 0.07);
  color: #ffb3b8;
  font-size: 14px;
  line-height: 1.4;
  opacity: 1;
}
.gs-error:empty {
  display: none;
}
.gs-submit {
  width: 100%;
  padding-top: 17px;
  padding-bottom: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gs-submit[aria-busy='true'] {
  opacity: 0.7;
  pointer-events: none;
}
.gs-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  background: rgba(3, 4, 5, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  text-align: center;
}
.gs-cover[hidden] {
  display: none;
}
.gs-cover-kicker {
  font: 600 11px/1.3 Poppins, Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 1;
}
.gs-cover-title {
  font: 400 clamp(26px, 6vw, 36px)/1.1 var(--gs-display);
  color: var(--gs-bone);
  opacity: 1;
}
.gs-cover-copy {
  max-width: 380px;
  margin-bottom: 8px;
  font: italic 17px/1.45 var(--gs-serif);
  color: var(--gs-ash);
  opacity: 1;
}
/* TELL SECTION END */


/* RESTLESS SECTION */
.gs-cloud {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
/* A wide field, 90% of the screen, whatever the section's own width. The rim
   fades out, so titles drift in and out of the dark at the edges. */
.gs-cloud.is-live {
  display: block;
  width: 90vw;
  max-width: none;
  height: clamp(420px, 68svh, 640px);
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}
@media (max-width: 600px) {
  .gs-cloud.is-live {
    height: clamp(480px, 85svh, 720px);
  }
}
.gs-cloud.is-live::before {
  content: '';
  position: absolute;
  inset: 18% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 223, 217, 0.12), transparent 70%);
  filter: blur(12px);
  animation: gsBreathe 7s ease-in-out infinite;
}
.gs-soul {
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--gs-bone);
  font: 400 clamp(17px, 3.8vw, 24px)/1.1 var(--gs-display);
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 0 14px rgba(201, 223, 217, 0.5), 0 0 2px #000;
  transition: color 0.25s, text-shadow 0.25s, filter 0.7s;
}
.gs-cloud.is-live .gs-soul {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}
.gs-soul[data-depth='far'] {
  filter: blur(2.4px);
  pointer-events: none;
}
.gs-soul[data-depth='mid'] {
  filter: blur(0.9px);
}
.gs-soul:focus-visible {
  color: #fff;
  outline: 1px dotted var(--gs-spectral);
  outline-offset: 2px;
  text-shadow: 0 0 20px rgba(201, 223, 217, 0.95), 0 0 46px rgba(201, 223, 217, 0.45);
}
.gs-soul--echo {
  color: var(--gs-ash);
  font-family: var(--gs-serif);
  font-style: italic;
  letter-spacing: 0.02em;
  cursor: default;
  pointer-events: none;
}
.gs-soul.is-twitch {
  animation: gsTwitch 0.42s steps(2) 1;
}
.gs-cloud-empty {
  margin: 0;
  font: italic 18px/1.5 var(--gs-serif);
  color: var(--gs-ash);
  opacity: 1;
}
/* hoh.css turns --primary brass on every Halls of Horror page, so the
   archive button sets its own red (the theme's brand values) and is made
   bigger, with a still red glow, so it stands out from the cloud of titles. */
.gs-page .gs-archive-open {
  --primary: #ff0013;
  --primary-hover: #cc000f;
  margin-top: 8px;
  padding: 16px 36px;
  font-size: 16px;
  box-shadow: 0 0 22px rgba(255, 0, 19, 0.35);
}
.gs-page .gs-archive-open:hover,
.gs-page .gs-archive-open:focus-visible {
  box-shadow: 0 0 30px rgba(255, 0, 19, 0.55);
}
/* RESTLESS SECTION END */


/* DIALOG SECTION */
.gs-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding-right: 14px;
  padding-bottom: 14px;
  padding-left: 14px;
  border: 0;
  background: transparent;
  color: var(--gs-bone);
  overflow: hidden;
}
.gs-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gs-dialog::backdrop {
  background: rgba(1, 1, 2, 0.84);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gs-dialog[open] .gs-panel {
  animation: gsRise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* While a story is open, frost creeps in from the edges of the screen. */
.gs-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(214, 232, 240, 0.32) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012 0.03' numOctaves='5' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.86 0 0 0 0 0.93 0 0 0 0 0.97 1.7 0 0 0 -0.66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") center / 600px 600px;
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, transparent 72%, #000 100%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, transparent 72%, #000 100%);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.gs-dialog[open] .gs-frost {
  animation: gsFrost 16s ease-out forwards;
}
.gs-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  max-height: 100%;
  padding: 0 clamp(18px, 4vw, 36px) clamp(20px, 3.5vw, 30px);
  border: 1px solid var(--gs-line);
  border-radius: 4px;
  background: linear-gradient(180deg, #0e1213 0%, #060708 100%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.85);
  text-align: left;
}
.gs-panel .tgv-modal-close {
  background: rgba(233, 225, 207, 0.08);
  color: var(--gs-bone);
}
.gs-panel .tgv-modal-close:hover,
.gs-panel .tgv-modal-close:focus-visible {
  background: rgba(233, 225, 207, 0.18);
}
.gs-panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.gs-case {
  margin: 0 0 6px;
  font: 400 13px/1.3 var(--gs-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gs-brass);
  opacity: 1;
}
.gs-reader-title {
  margin: 0 0 6px;
  font: 400 clamp(30px, 7vw, 46px)/1.05 var(--gs-display);
  letter-spacing: 0.03em;
  color: var(--gs-bone);
  text-shadow: 0 0 26px rgba(201, 223, 217, 0.25);
  overflow-wrap: anywhere;
}
.gs-reader-by {
  margin: 0 0 18px;
  font: italic 17px/1.4 var(--gs-serif);
  color: var(--gs-ash);
  opacity: 1;
}
.gs-reader-photo {
  margin: 0 0 20px;
}
.gs-reader-photo img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border: 1px solid var(--gs-line);
  filter: grayscale(0.35) contrast(1.05);
}
.gs-reader-photo figcaption {
  margin-top: 6px;
  font: 400 11px/1 var(--gs-display);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gs-dim);
}
.gs-reader-text p {
  width: auto;
  margin: 0 0 0.9em;
  font: 400 clamp(18px, 2.3vw, 20px)/1.65 var(--gs-serif);
  color: #e6dfcd;
  opacity: 1;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.gs-reader-text.is-inking {
  animation: gsInk 1.8s cubic-bezier(0.3, 0.6, 0.2, 1) both;
}
.gs-like-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gs-line);
}
.gs-like svg {
  width: 18px;
  height: 18px;
}
.gs-like[aria-busy='true'] {
  opacity: 0.6;
  pointer-events: none;
}
.gs-like.is-bump {
  animation: gsBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gs-likers {
  font: italic 16px/1.3 var(--gs-serif);
  color: var(--gs-ash);
}
.gs-like-note {
  margin: 10px 0 0;
  font: italic 16px/1.4 var(--gs-serif);
  color: var(--gs-ash);
  opacity: 1;
}
.gs-like-note a {
  color: var(--gs-bone);
  text-decoration: underline;
}
/* A vote that finished a "Vote on Stories" mission — same gold as .gs-reward. */
.gs-like-note.is-won {
  color: #e6d3a8;
}
.gs-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.gs-share .tgv-btn {
  padding: 10px 16px;
  font-size: 12px;
}
.gs-next {
  width: 100%;
  margin-top: 18px;
}
.gs-archive-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.gs-archive-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--gs-line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--gs-bone);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  animation: gsRise 0.5s ease both;
}
.gs-archive-title {
  font: 400 21px/1.1 var(--gs-display);
  letter-spacing: 0.03em;
}
.gs-archive-excerpt {
  display: -webkit-box;
  overflow: hidden;
  font: 400 16px/1.45 var(--gs-serif);
  color: var(--gs-ash);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.gs-archive-meta {
  font-size: 12px;
  color: var(--gs-dim);
}
.gs-loader {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 22px 0 4px;
  opacity: 1;
}
.gs-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gs-ash);
  animation: gsDot 1s ease-in-out infinite;
}
.gs-loader span:nth-child(2) {
  animation-delay: 0.15s;
}
.gs-loader span:nth-child(3) {
  animation-delay: 0.3s;
}
.gs-loader[hidden] {
  display: none;
}
.gs-archive-end {
  margin: 22px 0 4px;
  font: italic 16px/1.4 var(--gs-serif);
  color: var(--gs-dim);
  text-align: center;
  opacity: 1;
}
.gs-seal {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 4px 0 18px;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 34% 30%, #b8323a 0%, #7a1118 55%, #43070b 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 -6px 10px rgba(0, 0, 0, 0.45), inset 0 4px 8px rgba(255, 255, 255, 0.12);
  color: rgba(25, 3, 5, 0.75);
}
.gs-seal svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.2));
}
.gs-dialog[open] .gs-seal {
  animation: gsStamp 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both;
}
.gs-sealed-copy {
  margin: 0 0 16px;
  font: 400 18px/1.55 var(--gs-serif);
  color: var(--gs-ash);
  opacity: 1;
}
.gs-reward {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(189, 165, 122, 0.45);
  border-radius: 3px;
  background: rgba(189, 165, 122, 0.08);
  color: #e6d3a8;
  font: 500 14px/1.45 Poppins, Arial, sans-serif;
  opacity: 1;
}
.gs-reward.is-pending {
  color: var(--gs-ash);
  border-style: dashed;
}
.gs-reward.is-error,
.gs-reward.is-profile {
  border-color: rgba(255, 0, 19, 0.4);
  background: rgba(255, 0, 19, 0.06);
  color: #ffc2c6;
}
.gs-profile-btn {
  align-self: flex-start;
  margin-bottom: 16px;
}
.gs-sealed-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Contest popup: the prize picture on top, the line under it, one button. */
.gs-panel--contest {
  max-width: 480px;
  padding-top: clamp(20px, 4vw, 36px);
  text-align: center;
}
/* Close button pinned to the top right corner, the cross drawn with two lines
   so it sits dead centre whatever font the page forces on the "×" glyph. */
.gs-panel--contest .tgv-modal-close {
  position: absolute;
  top: 35px;
  right: 35px;
  z-index: 2;
  margin: 0;
  padding: 0;
  font-size: 0;
  background: rgba(6, 7, 8, 0.72);
  color: var(--gs-bone);
}
.gs-panel--contest .tgv-modal-close::before,
.gs-panel--contest .tgv-modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.gs-panel--contest .tgv-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.gs-panel--contest .tgv-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.gs-panel--contest .tgv-modal-close:hover,
.gs-panel--contest .tgv-modal-close:focus-visible {
  background: rgba(6, 7, 8, 0.9);
}
@media (max-width: 520px) {
  .gs-panel--contest .tgv-modal-close {
    top: 24px;
    right: 24px;
  }
}
.gs-contest-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
}
.gs-contest-copy {
  margin: 0 0 20px;
  font: 400 20px/1.5 var(--gs-serif);
  color: var(--gs-bone);
  opacity: 1;
}
/* DIALOG SECTION END */


/* KEYFRAMES */
@keyframes gsFogDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
/* A tired fluorescent tube: one short dip at a time, never more than one a
   second, and never brighter than its normal glow. */
@keyframes gsTube {
  0%, 41%, 43%, 78%, 80%, 100% { opacity: 0.5; }
  42% { opacity: 0.3; }
  79% { opacity: 0.36; }
}
@keyframes gsApparition {
  0%, 60%, 62%, 88%, 90%, 100% { transform: translateX(-50%); }
  61% { transform: translateX(calc(-50% + 3px)) skewX(-2deg); }
  89% { transform: translateX(calc(-50% - 2px)); }
}
/* A pocong's hop, its feet still bound: crouch, up, land heavy. The feet stay
   put (transform-origin at the bottom); the wrapper carries it forward. */
@keyframes gsHop {
  0%, 100% { transform: none; }
  16% { transform: scale(1.04, 0.94); }
  52% { transform: translateY(-11%) scale(0.97, 1.04); }
  84% { transform: scale(1.05, 0.93); }
}
@keyframes gsLunge {
  0% { transform: scale(0.86); }
  14% { transform: scale(1.02); }
  100% { transform: scale(1.1); }
}
@keyframes gsKnock {
  0%, 100% { translate: 0 0; }
  18% { translate: var(--knock, 4px) calc(var(--knock, 4px) * 0.35); }
  42% { translate: calc(var(--knock, 4px) * -0.7) 0; }
  70% { translate: calc(var(--knock, 4px) * 0.3) 0; }
}
@keyframes gsCaption {
  0% { opacity: 0; filter: blur(0); }
  5%, 70% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; filter: blur(6px); }
}
@keyframes gsFlame {
  0%, 100% { transform: scale(1, 1) rotate(-1deg); opacity: 0.95; }
  25% { transform: scale(0.9, 1.08) rotate(2deg); }
  50% { transform: scale(1.05, 0.93) rotate(-2deg); opacity: 0.85; }
  75% { transform: scale(0.96, 1.05) rotate(1deg); }
}
@keyframes gsCandleGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}
@keyframes gsFrost {
  from { opacity: 0; -webkit-mask-size: 240% 240%; mask-size: 240% 240%; }
  to { opacity: 0.7; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
}
@keyframes gsBreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}
@keyframes gsBlink {
  0%, 46%, 52%, 100% { transform: scaleY(1); }
  49% { transform: scaleY(0.08); }
}
@keyframes gsWhisper {
  0% { opacity: 0; filter: blur(6px); letter-spacing: 0.02em; translate: 0 8px; }
  28% { opacity: 0.8; filter: blur(0); }
  70% { opacity: 0.6; filter: blur(0.5px); }
  100% { opacity: 0; filter: blur(9px); letter-spacing: 0.32em; translate: 0 -10px; }
}
@keyframes gsGrain {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-6%, 4%); }
  33% { transform: translate(4%, -7%); }
  50% { transform: translate(-3%, -4%); }
  67% { transform: translate(7%, 3%); }
  83% { transform: translate(-7%, 6%); }
}
@keyframes gsEcho {
  0%, 82%, 100% { opacity: 0; transform: translate(0, 0); }
  85% { opacity: 0.55; transform: translate(-5px, 2px); }
  88% { opacity: 0; transform: translate(4px, -1px); }
  90% { opacity: 0.35; transform: translate(-2px, 0); }
  93% { opacity: 0; }
}
@keyframes gsCaret {
  50% { opacity: 0; }
}
/* Opacity and colour only: the transform belongs to the cloud's own motion. */
@keyframes gsTwitch {
  0% { opacity: 0.12; }
  35% { opacity: 1; text-shadow: -2px 0 rgba(255, 0, 19, 0.55), 2px 0 rgba(140, 220, 255, 0.5); }
  65% { opacity: 0.3; }
  100% { opacity: 1; }
}
@keyframes gsInk {
  from { clip-path: inset(0 0 100% 0); filter: blur(3px); opacity: 0.3; }
  to { clip-path: inset(0 0 0 0); filter: blur(0); opacity: 1; }
}
@keyframes gsRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes gsEmerge {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes gsStamp {
  0% { opacity: 0; transform: scale(2.2) rotate(-28deg); }
  70% { opacity: 1; transform: scale(0.94) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes gsBump {
  40% { transform: scale(1.1); }
}
@keyframes gsDot {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.15); }
}
@keyframes gsBars {
  from { height: 3px; }
  to { height: 12px; }
}
@keyframes gsHint {
  0%, 85% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
/* KEYFRAMES END */


/* Desktop ONLY hover */
@media (hover: hover) and (pointer: fine) {
  .gs-yard .gs-stone:hover {
    filter: brightness(1.14);
    box-shadow: inset 0 -34px 44px rgba(0, 0, 0, 0.5), 0 0 60px rgba(201, 223, 217, 0.16), 0 26px 44px rgba(0, 0, 0, 0.65);
  }
  .gs-grave.is-empty .gs-stone:hover {
    filter: brightness(0.55) grayscale(0.4);
    box-shadow: inset 0 -34px 44px rgba(0, 0, 0, 0.55), 0 26px 44px rgba(0, 0, 0, 0.65);
  }
  .gs-soul:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(201, 223, 217, 0.95), 0 0 46px rgba(201, 223, 217, 0.45);
  }
  .gs-archive-card:hover {
    border-color: rgba(233, 225, 207, 0.32);
    background: rgba(255, 255, 255, 0.045);
  }
  .gs-sound:hover {
    border-color: rgba(233, 225, 207, 0.45);
  }
}

/* Mobile (disable hover + allow active click style) */
@media (hover: none) and (pointer: coarse) {
  .gs-stone:active {
    filter: brightness(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gs-haunt::before,
  .gs-pocong.is-here,
  .gs-pocong img,
  .gs-atmos.is-knock .gs-room,
  .gs-atmos.is-knock .gs-haunt,
  .gs-fog,
  .gs-vignette,
  .gs-grain,
  .gs-scroll,
  .gs-report-fog,
  .gs-cloud.is-live::before,
  .gs-eye-in,
  .gs-candle i,
  .gs-grave:not(.is-empty) .gs-stone::after,
  .gs-page h1.section-title::after,
  .gs-dialog[open] .gs-panel,
  .gs-dialog[open] .gs-seal,
  .gs-dialog[open] .gs-frost,
  .gs-archive-card,
  .gs-sound-hint,
  #hero .section-header > *,
  #hero .section-content > * {
    animation: none !important;
  }
  .gs-room,
  .gs-haunt {
    transition: none;
  }
  .gs-whisper {
    animation-name: gsWhisperStill;
  }
  .gs-page .section-header.gs-reveal,
  .gs-yard.gs-rise .gs-stone {
    filter: none;
    transform: none;
    transition: opacity 0.6s ease;
  }
  .gs-yard.gs-rise .gs-stone {
    opacity: 1;
  }
  @keyframes gsWhisperStill {
    0%, 100% { opacity: 0; }
    30%, 70% { opacity: 0.6; }
  }
}

@media (min-width: 480px) {
  .gs-stone-rip,
  .gs-stone-by {
    display: block;
  }
}

@media (min-width: 640px) {
  .gs-stone-epitaph {
    display: block;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 768px) {
  .gs-sealed-actions {
    flex-direction: row;
  }
  .gs-sealed-actions .tgv-btn {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .gs-sound {
    left: 24px;
    bottom: 24px;
  }
  .gs-sound-hint {
    left: 24px;
    bottom: 74px;
  }
}
