/* ============================================================
   TREMPYON — styles
   Warm 90s Halloween, dark & cozy, modern bones.
   ============================================================ */

:root {
  --night:    #0d0a10;
  --night-2:  #140f18;
  --plum:     #1d1422;
  --plum-2:   #2a1c30;
  --plum-3:   #3b2843;
  --ember:    #e8772e;
  --pumpkin:  #ff9a3c;
  --candle:   #ffcf7a;
  --bone:     #efe2c8;
  --bone-dim: #b9ab92;
  --moss:     #7b8650;
  --blood:    #8e2b2b;
  --line:     rgba(239, 226, 200, .12);

  --f-display: "IM Fell English", Georgia, serif;
  --f-sc:      "IM Fell English SC", Georgia, serif;
  --f-body:    "Crimson Pro", Georgia, serif;
  --f-type:    "Special Elite", "Courier New", monospace;
  --f-vt:      "VT323", "Courier New", monospace;

  --wrap: 1180px;
  --radius: 14px;
  --glow-ember: 0 0 24px rgba(232, 119, 46, .45), 0 0 60px rgba(232, 119, 46, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--candle); }
a:hover { color: var(--pumpkin); }
::selection { background: var(--ember); color: var(--night); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ember); color: var(--night); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px dashed var(--candle); outline-offset: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.vt { font-family: var(--f-vt); letter-spacing: .06em; }

/* ---------- ambient layers ---------- */
#leaves { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 41; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)}
  60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)}
}
.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 39;
  background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-type); font-size: 1rem; letter-spacing: .03em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn--sm { font-size: .9rem; padding: .6em 1.1em; }
.btn--ember { background: linear-gradient(180deg, var(--pumpkin), var(--ember)); color: #1b0e06; box-shadow: var(--glow-ember); }
.btn--ember:hover { color: #1b0e06; transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,154,60,.65), 0 0 80px rgba(232,119,46,.3); }
.btn--ghost { background: rgba(13,10,16,.4); color: var(--bone); border-color: rgba(239,226,200,.35); backdrop-filter: blur(4px); }
.btn--ghost:hover { color: var(--candle); border-color: var(--candle); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - var(--wrap)) / 2));
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.is-scrolled { background: rgba(13,10,16,.78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: 8px; }
.nav__brand { display: flex; align-items: center; gap: .55rem; color: var(--bone); text-decoration: none; font-family: var(--f-sc); font-size: 1.5rem; }
.nav__brand:hover { color: var(--candle); }
.nav__mark { width: 30px; height: 30px; color: var(--candle); filter: drop-shadow(0 0 6px rgba(255,179,71,.6)); }
.nav__links { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.nav__links a { color: var(--bone-dim); text-decoration: none; font-family: var(--f-type); font-size: .95rem; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--candle); transform: scaleX(0); transition: transform .3s; }
.nav__links a:hover { color: var(--candle); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__leave { font-family: var(--f-type); font-size: .9rem; background: none; color: var(--pumpkin); border: 1px dashed rgba(255,154,60,.5); border-radius: 999px; padding: .4em .9em; cursor: pointer; }
.nav__leave:hover { background: rgba(232,119,46,.12); }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span:not(.sr) { display: block; width: 24px; height: 2px; background: var(--bone); margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 820px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(13,10,16,.97); opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .nav__links a { font-size: 1.4rem; }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(3) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- live indicators ---------- */
.live-pill {
  display: inline-flex; align-items: center; gap: .45rem; margin-left: .9rem; margin-right: auto;
  font-family: var(--f-vt); font-size: 1.15rem; letter-spacing: .12em; text-decoration: none;
  color: #fff; background: #d8261a; padding: .05rem .65rem; border-radius: 4px;
  box-shadow: 0 0 16px rgba(255,74,58,.6);
}
.live-pill[hidden] { display: none; }
.live-pill:hover { color: #fff; background: #ff3b2b; }
.live-pill__dot, .status-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(1) infinite; flex: none; }
.status-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .3rem .55rem; margin-top: 1.8rem;
  padding: .55rem 1.1rem; border-radius: 999px; text-decoration: none; font-family: var(--f-type); font-size: .92rem;
  color: var(--bone); background: rgba(13,10,16,.6); border: 1px solid rgba(239,226,200,.25); backdrop-filter: blur(4px);
}
.status-chip[hidden] { display: none; }
.status-chip:hover { color: var(--candle); border-color: var(--candle); }
.status-chip b { font-weight: 400; color: var(--candle); }
.status-chip.is-live { background: rgba(160,20,12,.55); border-color: #ff4a3a; box-shadow: 0 0 24px rgba(255,74,58,.45); }
.status-chip.is-live b { color: #fff; }
.status-chip__sub { flex-basis: 100%; color: var(--bone); opacity: .85; font-size: .85rem; }
.status-chip.is-soon, .status-chip.is-late, .status-chip.is-notice { border-color: rgba(255,154,60,.6); }
.crt__static .vt.is-live { color: #ff6a5a; text-shadow: 0 0 10px rgba(255,74,58,.8); }
.crt__led { opacity: .35; }
.crt__led.is-live { opacity: 1; animation: blink 1.4s steps(1) infinite; }
.hero__pop { margin-top: 1.2rem !important; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 120% 80% at 70% 10%, #3a2440 0%, #22162a 35%, #120c16 70%, var(--night) 100%);
}
.sky { position: absolute; inset: 0; z-index: -3; }
.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%,  #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #ffe9b5aa 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 12%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 83% 26%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 6%,  #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 34%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 4%,  #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 30%, #fff4 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 36%, #fff4 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .55; } }
.moon {
  position: absolute; right: clamp(6%, 14vw, 18%); top: 12%;
  width: clamp(90px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff4d6 0%, #f6dca0 45%, #e3b66a 100%);
  box-shadow: 0 0 60px rgba(255,214,140,.55), 0 0 160px rgba(255,180,90,.25);
}
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(170,120,60,.22); }
.moon::before { width: 22%; height: 22%; left: 55%; top: 28%; }
.moon::after  { width: 14%; height: 14%; left: 30%; top: 60%; }
.moon__glow { position: absolute; inset: -80%; border-radius: 50%; background: radial-gradient(circle, rgba(255,200,120,.16), transparent 60%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
.clouds {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 6% at 20% 22%, rgba(80,55,90,.55), transparent 70%),
    radial-gradient(ellipse 25% 5% at 70% 30%, rgba(60,40,70,.6), transparent 70%),
    radial-gradient(ellipse 35% 7% at 55% 14%, rgba(90,60,95,.35), transparent 70%);
  animation: drift 70s linear infinite alternate;
}
@keyframes drift { to { transform: translateX(-8%); } }

.skyline { position: absolute; inset: auto 0 0 0; width: 100%; height: 64%; z-index: -2; }
.skyline .far   { fill: #2a1d33; }
.skyline .mid   { fill: #1a1220; }
.skyline .near  { fill: #0b080d; }
.skyline .win   { fill: #ffbe5c; }
.skyline .win.dim { fill: #b9772f; opacity: .55; }
.skyline .win.flicker { animation: flicker 4s infinite steps(1); }
.skyline .far .win, .skyline .win.far-w { opacity: .45; }
.skyline .glow { fill: url(#winGlow); }
.skyline .jack { animation: jack 3s ease-in-out infinite alternate; }
.skyline .bat  { fill: #0b080d; }
@keyframes flicker { 0%,100%{opacity:1} 43%{opacity:.4} 45%{opacity:1} 71%{opacity:.7} 73%{opacity:1} }
@keyframes jack { to { opacity: .7; } }

.fog { position: absolute; left: -10%; right: -10%; height: 40%; bottom: -6%; z-index: -1; pointer-events: none; filter: blur(18px); }
.fog--1 { background: radial-gradient(ellipse 40% 50% at 30% 70%, rgba(190,170,210,.14), transparent 70%), radial-gradient(ellipse 40% 50% at 80% 60%, rgba(190,170,210,.11), transparent 70%); animation: fog 38s ease-in-out infinite alternate; }
.fog--2 { background: radial-gradient(ellipse 50% 40% at 60% 80%, rgba(255,200,150,.08), transparent 70%); animation: fog 52s ease-in-out infinite alternate-reverse; }
@keyframes fog { to { transform: translateX(8%); } }

.hero__content { position: relative; z-index: 2; text-align: center; padding: 110px 16px 26vh; max-width: 900px; }
.hero__content::before {
  content: ""; position: absolute; inset: 60px -12% 18vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(13,10,16,.78) 0%, rgba(13,10,16,.45) 45%, transparent 72%);
}
.osd { font-family: var(--f-vt); font-size: 1.35rem; color: #c9f5c9; text-shadow: 0 0 6px rgba(160,255,160,.6); letter-spacing: .1em; margin: 0 0 1.2rem; display: inline-flex; align-items: center; gap: .6rem; opacity: .85; }
.osd__dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 8px #ff4a3a; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__kicker { font-family: var(--f-type); color: var(--pumpkin); letter-spacing: .25em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .4rem; }
.hero__title { margin: 0; line-height: .95; font-weight: 400; }
.hero__welcome { display: block; font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); color: var(--bone-dim); }
.hero__name {
  display: inline-block; font-family: var(--f-sc); font-size: clamp(4rem, 2rem + 11vw, 10rem);
  color: var(--candle);
  text-shadow: 0 0 18px rgba(255,170,80,.55), 0 0 60px rgba(232,119,46,.35), 0 4px 0 #6b2e0f;
  letter-spacing: .02em;
}
.warp { animation: warp 9s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes warp {
  0%,100% { transform: skewX(0) scaleY(1); }
  25% { transform: skewX(-1.5deg) scaleY(1.015); }
  55% { transform: skewX(1.2deg) scaleY(.99); }
  80% { transform: skewX(-.4deg); }
}
.hero__lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: var(--bone); max-width: 36em; margin: 1.4rem auto 2rem; text-shadow: 0 2px 12px #000; }
.hero__lede em { color: var(--candle); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.hero__pop { font-family: var(--f-type); color: var(--bone-dim); font-size: .9rem; margin-top: 2rem; opacity: .85; }
.hero__pop span { color: var(--pumpkin); }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 2px; color: var(--bone-dim); text-decoration: none; font-family: var(--f-type); font-size: .8rem; }
.scroll-cue svg { width: 22px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- ticker ---------- */
.ticker { position: relative; z-index: 5; overflow: hidden; background: linear-gradient(90deg, #2b1308, #3a1a0a, #2b1308); border-block: 1px solid rgba(255,154,60,.35); }
.ticker__track { display: flex; gap: 3rem; width: max-content; padding: .7rem 0; animation: ticker 70s linear infinite; font-family: var(--f-type); color: var(--candle); font-size: .95rem; white-space: nowrap; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section__head { text-align: center; margin-bottom: clamp(40px, 6vw, 70px); }
.eyebrow { font-family: var(--f-type); text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; color: var(--pumpkin); margin: 0 0 .5rem; }
.section h2 { font-family: var(--f-sc); font-weight: 400; font-size: clamp(2.4rem, 1.6rem + 3.5vw, 4.4rem); line-height: 1; margin: 0; color: var(--bone); }
.section h2::after { content: "❦"; display: block; font-size: 1.4rem; color: var(--ember); margin-top: .8rem; opacity: .8; }
.section__sub { font-family: var(--f-display); font-style: italic; color: var(--bone-dim); font-size: 1.2rem; margin: .4rem 0 0; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- town ---------- */
.town { background: linear-gradient(180deg, var(--night) 0%, var(--plum) 100%); }
.town__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.letter {
  position: relative; padding: clamp(28px, 4vw, 48px);
  background:
    linear-gradient(180deg, rgba(255,240,210,.05), rgba(255,240,210,.02)),
    var(--plum-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), inset 0 0 80px rgba(0,0,0,.35);
}
.letter::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,207,122,.12); border-radius: 8px; pointer-events: none; }
.letter p { margin: 0 0 1em; }
.letter__drop { font-family: var(--f-display); font-size: 1.15rem; display: inline; }
.letter__drop::first-letter { float: left; font-family: var(--f-sc); font-size: 4.2em; line-height: .8; color: var(--pumpkin); padding: .08em .1em 0 0; text-shadow: 0 0 20px rgba(232,119,46,.4); }
.letter__drop + p { display: inline; }
.letter__drop + p::after { content: ""; display: block; margin-bottom: 1em; }
.letter__sign { font-family: var(--f-display); font-style: italic; font-size: 1.25rem; color: var(--candle); text-align: right; margin-top: 1.6em !important; }

.signs { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.sign {
  position: relative; padding: 22px 22px 22px 84px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,119,46,.08), transparent 60%), var(--night-2);
  border: 1px solid var(--line); transition: transform .35s, border-color .35s, box-shadow .35s;
}
.sign:hover { transform: translateX(6px); border-color: rgba(255,154,60,.45); box-shadow: -8px 0 30px -12px rgba(232,119,46,.5); }
.sign__num { position: absolute; left: 22px; top: 18px; font-family: var(--f-sc); font-size: 2.2rem; color: var(--ember); width: 44px; text-align: center; }
.sign h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; margin: 0 0 .2rem; color: var(--candle); }
.sign p { margin: 0; color: var(--bone-dim); }

.clocktower {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  margin-top: clamp(60px, 8vw, 100px); padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(ellipse at 15% 50%, rgba(255,190,100,.12), transparent 50%), var(--night-2);
}
.clock { width: clamp(120px, 18vw, 190px); filter: drop-shadow(0 0 24px rgba(255,190,100,.25)); }
.clock__rim  { fill: #2b1d14; stroke: #8a6a3a; stroke-width: 3; }
.clock__face { fill: #f2e2bc; }
.clock__ticks line { stroke: #3b2a1a; stroke-width: 2; }
.clock__ticks text { font-family: var(--f-sc); font-size: 16px; fill: #3b2a1a; text-anchor: middle; dominant-baseline: central; }
.clock__hand { stroke: #1b120c; stroke-linecap: round; transform-origin: 100px 100px; }
.clock__hand--h { stroke-width: 6; }
.clock__hand--m { stroke-width: 3.5; }
.clock__pin { fill: var(--ember); }
.clocktower__quote { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.2; margin: .2rem 0 .6rem; }
.clocktower__quote em { color: var(--candle); }
.clocktower__note { color: var(--bone-dim); margin: 0; font-style: italic; }

/* ---------- now showing ---------- */
.showing {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, var(--plum) 0%, #170f14 100%);
}
.showing__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; }

.crt { margin: 0; }
.crt__body {
  position: relative; padding: clamp(14px, 2.4vw, 28px); padding-bottom: 64px;
  background: linear-gradient(180deg, #3a3036, #241c22 60%, #1a1418);
  border-radius: 28px;
  box-shadow: 0 40px 80px -30px #000, inset 0 2px 0 rgba(255,255,255,.08), inset 0 -6px 18px rgba(0,0,0,.5);
}
.crt__screen {
  position: relative; aspect-ratio: 16/10; border-radius: 22px / 28px; overflow: hidden;
  background: #050506; box-shadow: inset 0 0 50px rgba(0,0,0,.9), 0 0 0 6px #120d10;
}
.crt__embed, .crt__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crt__static {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 16px;
  background:
    radial-gradient(ellipse at center, rgba(255,190,120,.12), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1'/><feColorMatrix values='0 0 0 0 .6  0 0 0 0 .55  0 0 0 0 .6  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    #0b0a0d;
  animation: static .25s steps(3) infinite;
}
.crt__static.is-hidden { display: none; }
@keyframes static { 33% { background-position: 0 0, 40px 20px, 0 0; } 66% { background-position: 0 0, -30px 50px, 0 0; } }
.crt__static .vt { font-size: 2.4rem; color: #c9f5c9; text-shadow: 0 0 8px rgba(160,255,160,.7); margin: 0; }
.crt__msg { font-family: var(--f-type); color: var(--bone); margin: 0 0 .6rem; }
.crt__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 80px rgba(0,0,0,.7);
  mix-blend-mode: multiply;
}
.crt__panel { position: absolute; left: 28px; right: 28px; bottom: 18px; display: flex; align-items: center; gap: 14px; }
.crt__brand { font-family: var(--f-vt); color: #9b8a90; letter-spacing: .25em; font-size: 1.1rem; margin-right: auto; }
.crt__knob { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6a5c62, #1e171b); box-shadow: 0 2px 4px #000; }
.crt__led { width: 8px; height: 8px; border-radius: 50%; background: #ff4a3a; box-shadow: 0 0 10px #ff4a3a; }
.crt figcaption { text-align: center; color: var(--bone-dim); margin-top: 14px; font-size: 1.2rem; }

.shelf { display: grid; gap: 18px; }
.tape {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 10px; text-decoration: none; color: var(--bone);
  background: linear-gradient(180deg, #1a1618, #0f0c0e);
  border: 1px solid #000; box-shadow: 0 14px 30px -14px #000, inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.tape:hover { color: var(--bone); transform: translateX(-10px) rotate(-1deg); box-shadow: 0 20px 40px -14px #000, 10px 0 40px -18px var(--tape-c); }
.tape--twitch { --tape-c: #9b6bff; --label: #e9dcff; }
.tape--yt     { --tape-c: #ff5a4a; --label: #ffe1d6; }
.tape--write  { --tape-c: #ffb347; --label: #fff0cf; }
.tape__label {
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 4px; color: #23170f;
  background:
    linear-gradient(90deg, var(--tape-c) 0 10px, transparent 10px),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(0,0,0,.08) 19px 20px),
    var(--label);
  padding-left: 24px;
}
.tape__label strong { font-family: var(--f-type); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.tape__label span:last-child { font-size: .95rem; line-height: 1.35; color: #4a3826; }
.tape__cat { font-family: var(--f-vt); font-size: 1.05rem; letter-spacing: .12em; color: #5a3a20; }
.tape__reels { display: flex; gap: 8px; padding: 10px 12px; background: #0a0809; border-radius: 6px; }
.tape__reels i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle, #0a0809 0 28%, #d6ccc0 30% 36%, #3a3034 38%); }
.tape:hover .tape__reels i { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tape__sticker { position: absolute; top: -10px; right: 70px; transform: rotate(8deg); background: #ffde4a; color: #c0261a; font-family: var(--f-type); font-size: .8rem; padding: 4px 8px; border-radius: 50% / 40%; box-shadow: 0 4px 10px #0008; text-align: center; line-height: 1.1; }
.tape__sticker--late { background: #ff6a4a; color: #fff6dd; font-size: .7rem; }

.schedule {
  margin-top: clamp(50px, 7vw, 80px); padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius); background: #0e0b10; border: 1px solid var(--line);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6);
}
.schedule__title { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; margin: 0 0 1rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.schedule__title .vt { background: #2a3cff; color: #fff; padding: 0 .5rem; font-size: 1.3rem; border-radius: 3px; box-shadow: 0 0 12px rgba(42,60,255,.5); }
.schedule__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.schedule__list li { padding: 14px 16px; border-radius: 10px; background: linear-gradient(180deg, #1c1420, #140f16); border: 1px solid var(--line); }
.schedule__list .day { font-family: var(--f-vt); font-size: 1.4rem; color: #c9f5c9; letter-spacing: .08em; display: block; }
.schedule__list .time { font-family: var(--f-type); color: var(--pumpkin); font-size: .95rem; }
.schedule__list .title { display: block; color: var(--bone-dim); margin-top: .2rem; line-height: 1.35; }
.schedule__list .tag { display: inline-block; margin-top: .6rem; font-family: var(--f-vt); font-size: 1.05rem; letter-spacing: .08em; padding: 0 .5rem; border-radius: 3px; background: rgba(255,255,255,.06); color: var(--bone-dim); text-transform: uppercase; }
.schedule__list li.is-live { border-color: rgba(255,74,58,.7); box-shadow: 0 0 28px -6px rgba(255,74,58,.6); }
.schedule__list li.is-live .tag { background: #ff4a3a; color: #fff; animation: blink 1.4s steps(1) infinite; }
.schedule__list li.is-soon, .schedule__list li.is-late { border-color: rgba(255,154,60,.6); box-shadow: 0 0 24px -6px rgba(232,119,46,.6); }
.schedule__list li.is-soon .tag, .schedule__list li.is-late .tag { background: var(--ember); color: #1b0e06; }
.schedule__list li.is-cancelled { opacity: .55; }
.schedule__list li.is-cancelled .time, .schedule__list li.is-cancelled .title { text-decoration: line-through; text-decoration-color: var(--blood); }
.schedule__list li.is-cancelled .tag { background: var(--blood); color: var(--bone); }
.schedule__list li.is-missed { opacity: .6; }
.notice { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 10px; background: rgba(232,119,46,.12); border: 1px dashed rgba(255,154,60,.5); color: var(--candle); font-family: var(--f-type); }

.schedule__note { color: var(--bone-dim); font-size: .95rem; font-style: italic; margin: 1rem 0 0; }

/* ---------- library ---------- */
.library { background: linear-gradient(180deg, #170f14 0%, #120d12 100%); }
.library::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255,190,100,.08), transparent 70%);
}
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.book {
  display: grid; grid-template-columns: 22px 1fr; border-radius: 6px 12px 12px 6px; overflow: hidden;
  background: var(--plum-2); border: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px #000; transition: transform .4s, box-shadow .4s;
}
.book:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 34px 50px -20px #000, 0 0 40px -10px rgba(255,190,100,.25); }
.book__spine { background: linear-gradient(90deg, rgba(0,0,0,.4), transparent 40%, rgba(255,255,255,.08) 60%, rgba(0,0,0,.3)), var(--spine); }
.book__body { padding: 24px 24px 22px; display: flex; flex-direction: column; }
.book__kind { font-family: var(--f-type); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--pumpkin); margin: 0; }
.book h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; margin: .3rem 0 .6rem; color: var(--candle); }
.book p { color: var(--bone-dim); margin: 0 0 1rem; }
.book__link { margin-top: auto; font-family: var(--f-type); text-decoration: none; }
.library__more { text-align: center; margin-top: 40px; }

/* ---------- neighborhood ---------- */
.hood { background: linear-gradient(180deg, #120d12 0%, var(--plum) 100%); }
.hood__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }

.corkboard {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: clamp(22px, 3vw, 36px);
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.15) 0 2px, transparent 3px) 0 0/14px 14px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.05) 0 1px, transparent 2px) 0 0/11px 11px,
    linear-gradient(135deg, #6b4a2c, #4f3520);
  border: 14px solid #2b1a10;
  box-shadow: inset 0 0 50px rgba(0,0,0,.55), 0 30px 60px -24px #000;
}
.note {
  position: relative; padding: 26px 20px 20px; color: #2a1d12; font-family: var(--f-body);
  background: #f4e7c4; box-shadow: 0 10px 20px -6px rgba(0,0,0,.6); transition: transform .35s;
}
.note h3 { font-family: var(--f-type); font-weight: 400; font-size: 1.25rem; margin: 0 0 .4rem; color: #6b2a10; }
.note p, .note li { font-size: 1.02rem; line-height: 1.45; margin: 0 0 .8rem; }
.note ul { padding-left: 1.1em; margin: 0; }
.note li { margin-bottom: .3rem; }
.note--a { transform: rotate(-2deg); background: #f6e3b4; }
.note--b { transform: rotate(1.6deg); background: #e9efd6; }
.note--c { transform: rotate(1deg); background: #f3d7c8; }
.note--d { transform: rotate(-3deg); }
.note:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.pin { position: absolute; top: 8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a6a, #a21f12); box-shadow: 2px 4px 4px rgba(0,0,0,.5); }
.polaroid { background: #fbf8f1; padding: 12px 12px 8px; }
.polaroid__img { background: radial-gradient(circle at 50% 40%, #3a2a3a, #120c14); aspect-ratio: 5/4; display: grid; place-items: center; }
.polaroid__img svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(255,150,60,.6)); }
.polaroid__cap { font-family: var(--f-type); text-align: center; color: #3a2a1a; margin: .5rem 0 0 !important; font-size: .9rem !important; }
.tape-strip { position: absolute; top: -10px; left: 50%; width: 80px; height: 22px; margin-left: -40px; background: rgba(255,240,200,.55); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }

.hood__side { display: grid; gap: 22px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.panel h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 .8rem; color: var(--candle); }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 10px;
  text-decoration: none; color: var(--bone); background: rgba(255,255,255,.025); border: 1px solid transparent; transition: background .25s, border-color .25s, transform .25s;
}
.links a:hover { background: rgba(232,119,46,.1); border-color: rgba(255,154,60,.35); transform: translateX(4px); color: var(--bone); }
.links__ico { font-size: 1.2rem; }
.links__h { margin-left: auto; font-family: var(--f-type); font-size: .82rem; color: var(--bone-dim); text-align: right; overflow-wrap: anywhere; }

.guestbook__hint { color: var(--bone-dim); font-size: .95rem; margin: 0 0 .8rem; }
#guestbook-form { display: grid; gap: 8px; }
#guestbook-form input, #guestbook-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--bone); background: #0b090d; resize: vertical;
  border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem;
}
#guestbook-form input:focus, #guestbook-form textarea:focus { outline: none; border-color: var(--pumpkin); box-shadow: 0 0 0 3px rgba(232,119,46,.2); }
#guestbook-form button { justify-self: end; }
.guestbook__list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 10px; max-height: 260px; overflow: auto; }
.guestbook__list li { padding: .6rem .8rem; border-left: 2px solid var(--ember); background: rgba(255,255,255,.02); border-radius: 0 8px 8px 0; font-size: .98rem; }
.guestbook__list b { font-family: var(--f-type); font-weight: 400; color: var(--pumpkin); }
.guestbook__list time { display: block; font-family: var(--f-vt); color: var(--bone-dim); font-size: .95rem; }

/* ---------- farewell ---------- */
.farewell { padding: clamp(80px, 10vw, 130px) 0; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(232,119,46,.16), transparent 70%), var(--plum); }
.farewell__line { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 1.6rem; }

/* ---------- footer ---------- */
.foot { background: #08060a; border-top: 1px solid var(--line); padding: 50px 0 26px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: center; }
.foot__name { font-family: var(--f-sc); font-size: 2rem; margin: 0; color: var(--candle); }
.foot__tag { font-family: var(--f-display); font-style: italic; color: var(--bone-dim); margin: 0; }
.foot__retro { display: grid; gap: 12px; justify-items: end; }
.counter { margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.counter__label { font-family: var(--f-type); font-size: .85rem; color: var(--bone-dim); }
.counter__digits { font-family: var(--f-vt); font-size: 1.5rem; letter-spacing: .18em; color: #7dff7d; background: #000; padding: 0 .5rem; border: 2px inset #444; text-shadow: 0 0 6px rgba(125,255,125,.7); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; justify-content: flex-end; }
.badge { font-family: var(--f-vt); font-size: 1rem; padding: 0 .5rem; border: 1px solid #555; background: linear-gradient(180deg, #2a2a2a, #111); color: #ddd; }
.badge--alt { background: linear-gradient(180deg, #3a1a5a, #1a0a2a); border-color: #7a4aaa; }
.webring { display: flex; gap: .8rem; align-items: center; font-family: var(--f-type); font-size: .85rem; color: var(--bone-dim); flex-wrap: wrap; justify-content: flex-end; }
.webring a { text-decoration: none; }
.foot__fine { text-align: center; color: #6e6270; font-size: .85rem; margin: 34px 16px 0; font-family: var(--f-type); }

/* ---------- leave overlay ---------- */
.leave {
  position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; text-align: center; padding: 16px;
  background: radial-gradient(ellipse at center, #1a0f12 0%, #000 75%);
  opacity: 0; transition: opacity 1.4s ease;
}
.leave[hidden] { display: none; }
.leave.is-on { opacity: 1; }
.leave__line { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 1.2rem + 4vw, 4rem); color: var(--candle); text-shadow: 0 0 30px rgba(255,170,80,.5); margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 1.6s .8s, transform 1.6s .8s; }
.leave__sub { font-family: var(--f-type); color: var(--bone-dim); margin-top: 1rem; opacity: 0; transition: opacity 1.2s 2.6s; }
.leave.is-on .leave__line { opacity: 1; transform: none; }
.leave.is-on .leave__sub { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .town__grid, .showing__grid, .hood__grid { grid-template-columns: 1fr; }
  .books { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .foot__inner { flex-direction: column; text-align: center; }
  .foot__retro { justify-items: center; }
  .counter, .badges, .webring { justify-content: center; }
}
@media (max-width: 600px) {
  .corkboard { grid-template-columns: 1fr; border-width: 10px; }
  .clocktower { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sign { padding-left: 70px; }
  .sign__num { left: 14px; }
  .tape { grid-template-columns: 1fr; }
  .tape__reels { display: none; }
  .tape__sticker { right: 12px; }
  .crt__brand { font-size: .9rem; }
  .hero__content { padding-bottom: 26vh; }
  .moon { width: 76px; top: 76px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  #leaves { display: none; }
}
