.night-fallback { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; background: #05080e url("/assets/poster-desk.webp") center / cover no-repeat; }
@media (max-aspect-ratio: 4/5) { .night-fallback { background-image: url("/assets/poster-mob.webp"); } }
.night-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; display: block; opacity: 0; transition: opacity 1.4s ease; touch-action: pan-y; outline: none; }
.scene-on .night-canvas { opacity: 1; }
.page { position: relative; z-index: 2; pointer-events: none; }
.page a, .page button, .page summary, .page .hero-plate, .page .chapter-plate, .page .record { pointer-events: auto; }
.hero { display: flex; flex-direction: column; min-height: 100vh; padding-top: 24px; padding-bottom: 32px; }
.hero .hero-plate { padding: 20px 20px 8px; background: linear-gradient(rgba(5, 8, 14, 0.9), rgba(5, 8, 14, 0.78)); border-top: 1px solid rgba(242, 180, 94, 0.7); }
.hero .hero-kicker { margin-bottom: 12px; font-family: "Big Shoulders Text", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8fd3e8; }
.hero h1 { font-size: 34px; letter-spacing: 0.5px; }
.hero .hero-intro { color: #e3ddd0; }
.hero .scene-loader { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: "Big Shoulders Text", sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #b9c3cf; }
.hero .scene-loader-track { position: relative; flex: 1 1 auto; height: 2px; background: rgba(233, 228, 216, 0.18); }
.hero .scene-loader-bar { position: absolute; top: 0; left: 0; height: 2px; width: 0; background: #f2b45e; transition: width 0.3s ease; }
.scene-on .hero .scene-loader, .no-webgl .hero .scene-loader { display: none; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 12px; }
.hero .hero-link { display: inline-block; padding: 6px 0; font-family: "Big Shoulders Text", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: #f2b45e; text-decoration: none; border-bottom: 1px solid rgba(242, 180, 94, 0.7); }
.hero .hero-link:hover { color: #ffd08a; }
.hero .scroll-cue { margin-top: auto; padding-top: 24px; text-align: center; font-family: "Big Shoulders Text", sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #c9d3de; text-shadow: 0 1px 8px #000000; }
.journey { position: relative; }
.journey::before { content: ""; display: block; height: 50vh; }
.chapter { position: relative; }
.chapter::after { content: ""; display: block; height: 45vh; }
.chapter .chapter-track { min-height: 125vh; }
.chapter.chapter-long .chapter-track { min-height: 260vh; }
.chapter.chapter-town .chapter-track { min-height: 219vh; }
.chapter.chapter-clearing .chapter-track { min-height: 92vh; }
.chapter .chapter-frame { position: sticky; top: 100vh; transform: translateY(calc(-100% - 76px)); }
.chapter .chapter-plate { padding: 14px 18px 2px; background: rgba(5, 8, 14, 0.86); border-top: 1px solid rgba(143, 211, 232, 0.5); }
.chapter .chapter-number { margin: 0 0 4px; font-family: "Big Shoulders Text", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8fd3e8; }
.chapter .chapter-plate h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.chapter .chapter-plate p { color: #e6e0d3; }
.record { position: relative; z-index: 2; padding: 300px 0 32px; background: linear-gradient(rgba(7, 11, 18, 0), #070b12 260px); }
.record .record-section { margin-bottom: 56px; }
.record h2 { font-size: 22px; letter-spacing: 1px; text-transform: uppercase; }
.record p { color: #e3ddd0; }
.record .section-label { margin: 0 0 8px; font-family: "Big Shoulders Text", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8fd3e8; }
.timeline { list-style: none; border-top: 1px solid rgba(233, 228, 216, 0.2); }
.timeline .timeline-item { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(233, 228, 216, 0.2); color: #e3ddd0; }
.timeline .timeline-year { font-family: "Big Shoulders Text", sans-serif; font-weight: 600; font-size: 16px; color: #f2b45e; }
.statement-list { list-style: none; border-top: 1px solid rgba(233, 228, 216, 0.2); }
.statement-list .statement-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid rgba(233, 228, 216, 0.2); }
.statement-list .statement-date { font-family: "Big Shoulders Text", sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #b9c3cf; }
.title-card { position: fixed; top: 28%; left: 0; z-index: 3; width: 100%; padding: 18px 16px; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; background: linear-gradient(90deg, rgba(5, 8, 14, 0), rgba(5, 8, 14, 0.72) 25%, rgba(5, 8, 14, 0.72) 75%, rgba(5, 8, 14, 0)); }
.title-card.is-shown { opacity: 1; }
.title-card .title-card-number { font-family: "Big Shoulders Text", sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 6px; text-transform: uppercase; color: #f2b45e; }
.title-card .title-card-name { margin: 4px 0; font-family: "Big Shoulders Text", sans-serif; font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: 4px; text-transform: uppercase; color: #f4efe3; }
.title-card .title-card-place { font-family: "Big Shoulders Text", sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #c9d6e0; }
.scene-controls { position: fixed; left: 16px; bottom: 16px; z-index: 4; display: none; flex-wrap: wrap; gap: 8px; }
.scene-on .scene-controls { display: flex; }
.scene-controls .hud-button { min-height: 36px; padding: 8px 12px; font-family: "Big Shoulders Text", sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #e9e4d8; background: rgba(5, 8, 14, 0.86); border: 1px solid rgba(233, 228, 216, 0.4); border-radius: 0; cursor: pointer; }
.scene-controls .hud-button:hover { border-color: #f2b45e; }
.scene-controls .hud-button.is-active { color: #f2b45e; border-color: #f2b45e; }
.chapter-index { display: none; }
.lamp-counter { position: fixed; top: 16px; left: 0; z-index: 3; width: 100%; text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.in-lamps .lamp-counter { opacity: 1; }
.lamp-counter .lamp-counter-text { display: inline-block; padding: 6px 14px; font-family: "Big Shoulders Text", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: #f2b45e; background: rgba(5, 8, 14, 0.82); }
.lamp-tip { position: fixed; top: 0; left: 0; z-index: 4; display: none; padding: 6px 10px; font-family: "Big Shoulders Text", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 1.5px; color: #f4efe3; background: rgba(5, 8, 14, 0.9); border: 1px solid #f2b45e; pointer-events: none; white-space: nowrap; }
.lamp-tip.is-shown { display: block; }
.roam-hint { position: fixed; top: 16px; left: 0; z-index: 4; display: none; width: 100%; text-align: center; pointer-events: none; }
.roam-hint .roam-hint-text { display: inline-block; padding: 6px 14px; font-family: "Big Shoulders Text", sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #e9e4d8; background: rgba(5, 8, 14, 0.85); }
.roam-stick { position: fixed; left: 24px; bottom: 72px; z-index: 4; display: none; width: 120px; height: 120px; border: 1px solid rgba(233, 228, 216, 0.45); border-radius: 50%; background: rgba(5, 8, 14, 0.4); touch-action: none; }
.roam-stick .roam-knob { position: absolute; top: 40px; left: 40px; width: 40px; height: 40px; border-radius: 50%; background: rgba(242, 180, 94, 0.85); }
.is-roaming .page, .is-roaming .site-header, .is-roaming .site-footer, .is-roaming .title-card, .is-roaming .lamp-counter { visibility: hidden; }
.is-roaming .roam-hint { display: block; }
.is-roaming .night-canvas { touch-action: none; }
.is-roaming.coarse .roam-stick { display: block; }
@media (prefers-reduced-motion: reduce) {
  .night-canvas, .title-card, .lamp-counter, .hero .scene-loader-bar { transition: none; }
}
@media (min-width: 768px) {
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 48px; }
  .hero .hero-plate { padding: 24px 28px 8px; }
  .hero .hero-intro { font-size: 18px; }
  .chapter .chapter-plate { padding: 16px 24px 4px; }
  .chapter .chapter-plate h2 { font-size: 28px; }
  .chapter .chapter-plate p { font-size: 18px; }
  .record h2 { font-size: 28px; }
  .record p { font-size: 18px; }
  .timeline .timeline-item { font-size: 18px; }
  .title-card .title-card-name { font-size: 48px; }
}
@media (min-width: 1024px) {
  .scene-on .chapter-index { position: fixed; top: 50%; right: 24px; z-index: 4; display: block; transform: translateY(-50%); }
  .chapter-index .chapter-index-list { list-style: none; margin: 0; }
  .chapter-index .chapter-index-link { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-family: "Big Shoulders Text", sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #b9c3cf; text-decoration: none; text-shadow: 0 1px 6px #000000; }
  .chapter-index .chapter-index-link::before { content: ""; display: inline-block; width: 8px; height: 8px; border: 1px solid rgba(233, 228, 216, 0.6); }
  .chapter-index .chapter-index-link.is-active { color: #f2b45e; }
  .chapter-index .chapter-index-link.is-active::before { background: #f2b45e; border-color: #f2b45e; }
}
