@font-face { font-family: "If Story Hand"; src: url("assets/fonts/LXGWWenKaiLite-Public.woff2") format("woff2"); font-display: swap; font-weight: 400; }
:root { color-scheme: dark; --ink: #111a1d; --paper: #f4eddf; --muted: #c1b9a8; --gold: #d2b17a; --line: #d2b17a55; --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif; --hand: "If Story Hand", "Kaiti SC", "STKaiti", "KaiTi", serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.stage { position: relative; width: 100%; height: 100svh; min-height: 480px; overflow: hidden; isolation: isolate; }
.art-window { position: absolute; inset: 0; overflow: hidden; }
.plate { position: absolute; inset: 0; overflow: hidden; will-change: opacity; }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.art-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 53% 42%, transparent 28%, #0b151d3d 100%); pointer-events: none; z-index: 3; }
.dust { position: absolute; inset: 10% 8% 20% 45%; background-image: radial-gradient(1px 1px at 16% 28%, #fff5db77, transparent), radial-gradient(1px 1px at 78% 67%, #fff5db66, transparent), radial-gradient(1px 1px at 40% 82%, #fff5db55, transparent); background-size: 97px 131px, 173px 197px, 223px 149px; opacity: .27; animation: dust 23s linear infinite alternate; pointer-events: none; z-index: 4; }
@keyframes dust { to { transform: translate(-12px, 18px); } }
.shade { position: absolute; inset: 0; z-index: 5; background: linear-gradient(180deg, #08111588, transparent 25%, transparent 46%, #08111599 76%, #081115f5); pointer-events: none; }
.topbar { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; padding: 24px 40px; display: flex; align-items: center; gap: 24px; }
.wordmark { font-size: 17px; letter-spacing: .15em; text-shadow: 0 1px 10px #0008; }
.wordmark-sub { display: block; font-size: 8px; letter-spacing: .19em; margin-top: 7px; color: #eee1c7cc; }
.sound-controls { display: flex; align-items: center; margin-left: auto; gap: 12px; }
.quiet-button { border: 0; background: #10191b4d; min-height: 44px; min-width: 44px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; border-radius: 2px; }
.quiet-button:hover { background: #10191ba6; }
.sound-symbol { color: var(--gold); font-family: Georgia, serif; font-size: 18px; }
.entry { position: absolute; bottom: 10%; left: 7%; z-index: 10; max-width: 650px; }
.eyebrow { font-size: 12px; font-weight: 400; letter-spacing: .16em; color: var(--gold); }
.eyebrow span { margin: 0 12px; }
h1 { font-size: clamp(36px, 4.7vw, 66px); font-weight: 500; letter-spacing: .1em; margin: 20px 0; line-height: 1.3; }
.entry-description { font-size: 17px; line-height: 1.8; color: #f4eddfdb; }
.entry-button { margin-top: 20px; display: flex; align-items: center; gap: 50px; border: 0; border-bottom: 1px solid var(--gold); background: transparent; padding: 10px 2px 13px; font-size: 18px; min-height: 52px; }
.entry-button .arrow { font-size: 28px; color: var(--gold); transition: transform .3s; }
.entry-button:hover .arrow { transform: translate(3px, -3px); }
.sample-note { font-size: 10px; letter-spacing: .05em; margin-top: 24px; color: #c5beaeaa; }
.fort-target { position: absolute; z-index: 4; top: 38%; left: 64%; width: 29%; height: 28%; background: transparent; border: 0; }
.fort-ring { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; border: 1px solid #f5e0ad70; border-radius: 50%; box-shadow: 0 0 30px #edce8433; transition: transform .4s, border-color .4s; }
.fort-target:hover .fort-ring, .fort-target:focus-visible .fort-ring { transform: scale(1.2); border-color: #ffe3a9; }
.story { position: absolute; z-index: 8; bottom: 112px; left: 7%; width: min(720px, 65%); }
.scene-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.scene-line { width: 23px; height: 1px; background: var(--gold); }
.scene-heading h2 { font-size: 12px; color: var(--gold); letter-spacing: .13em; font-weight: 400; margin: 0; }
.captions { font-size: clamp(18px, 1.7vw, 25px); line-height: 1.85; letter-spacing: .035em; text-shadow: 0 2px 12px #0009; }
.caption { margin: 8px 0; color: #eee6d4b8; opacity: 0; transition: color .8s, opacity .8s; }
.caption.revealed { opacity: 1; }
.caption.active { color: var(--paper); }
.caption.dialogue { font-size: 1.06em; }
.speaker { display: block; color: #c9b691; font-size: 10px; letter-spacing: .12em; margin-bottom: 1px; text-shadow: none; }
.story-actions { position: absolute; z-index: 11; bottom: 40px; right: 5%; display: flex; align-items: center; gap: 24px; }
.next-button { display: inline-flex; align-items: center; gap: 20px; border: 0; padding: 0; min-height: 52px; background: transparent; font-size: 15px; letter-spacing: .1em; }
.next-circle { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #e4d2aa77; border-radius: 50%; font-size: 24px; transition: transform .3s, background .3s; }
.next-button:hover .next-circle { background: #d2b17a1c; transform: translateX(4px); }
.previous-button { background: transparent; border: 0; padding: 10px; min-height: 44px; font-size: 12px; color: var(--muted); }
.location { position: absolute; z-index: 8; bottom: 48px; left: 7%; margin: 0; font-size: 11px; color: #cabfa9aa; letter-spacing: .12em; }
.location span { margin: 0 8px; }
.time-card { position: absolute; z-index: 25; inset: 0; margin: 0; display: grid; place-items: center; background: #111a1d; letter-spacing: .35em; font-size: 23px; }
.status { position: absolute; z-index: 30; top: 100px; left: 50%; transform: translateX(-50%); padding: 12px 18px; max-width: 90%; background: #122128f0; font-size: 13px; line-height: 1.6; border: 1px solid var(--line); }
body[data-paused="true"] .dust { animation-play-state: paused; }
@media (max-width: 760px) {
  .stage { min-height: 600px; }
  .topbar { padding: 16px 20px; gap: 12px; }
  .wordmark { font-size: 14px; letter-spacing: .08em; }
  .wordmark-sub { font-size: 6px; letter-spacing: .1em; }
  .sound-controls { gap: 4px; }
  .quiet-button { padding: 8px; font-size: 11px; }
  .sound-symbol { display: none; }
  .art-window { inset: 15% 0 auto; width: 100%; height: auto; aspect-ratio: 1.55; }
  .art-vignette { background: linear-gradient(180deg, #111a1d22, transparent 25%, transparent 80%, #111a1d); }
  .shade { background: linear-gradient(180deg, #111a1d 8%, transparent 23%, transparent 48%, #111a1de8 63%, #111a1d); }
  .entry { left: 8%; bottom: 10%; width: 84%; }
  .entry h1 { font-size: 38px; margin: 14px 0; }
  .entry-description { font-size: 14px; }
  .entry-button { margin-top: 14px; font-size: 16px; gap: 40px; }
  .eyebrow { font-size: 10px; }
  .sample-note { font-size: 9px; margin-top: 18px; }
  .fort-ring { width: 44px; height: 44px; }
  .fort-target { top: 32%; height: 36%; }
  .story { left: 8%; bottom: 132px; width: 84%; }
  .scene-heading { margin-bottom: 16px; }
  .captions { font-size: 19px; line-height: 1.85; }
  .caption { margin: 12px 0; }
  .speaker { font-size: 10px; }
  .story-actions { bottom: 35px; right: 8%; gap: 14px; }
  .next-button { font-size: 13px; gap: 16px; }
  .next-circle { width: 48px; height: 48px; }
  .location { left: 8%; bottom: 102px; font-size: 9px; }
  .previous-button { font-size: 11px; }
}
@media (min-width: 761px) and (max-width: 900px) and (orientation: portrait) {
  .art-window { inset: 12% 0 auto; width: 100%; height: auto; aspect-ratio: 1.6; }
  .shade { background: linear-gradient(180deg, #111a1d 8%, transparent 25%, transparent 48%, #111a1df0 66%, #111a1d); }
  .entry { bottom: 12%; }
  .story { bottom: 160px; width: 84%; }
  .captions { font-size: 21px; }
}
@media (max-width: 760px) and (max-height: 730px) {
  .art-window { top: 13%; }
  .story { bottom: 116px; }
  .captions { font-size: 17px; line-height: 1.7; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dust { display: none; }
}
