/* The supplied castle paintings remain the primary surface. */
.hero.story.story-enhanced { height: 500svh; }
.story-vignette { background: linear-gradient(180deg,#080d1473,transparent 21%,transparent 66%,#080d1470 87%,#080d14ca); }
.story-copy,.story[data-current="2"] .story-copy,.story[data-current="3"] .story-copy { top:auto; bottom:145px; width:min(33%,440px); }
.hero.story h1,.story[data-current="2"] h1,.story[data-current="3"] h1 { font-size:clamp(30px,3.3vw,56px); }
html[data-language="zh"] .hero.story h1,html[data-language="zh"] .story[data-current="2"] h1,html[data-language="zh"] .story[data-current="3"] h1 { font-size:clamp(29px,3.1vw,50px); line-height:1.3; }
.story-eyebrow { margin-bottom:13px; }
.story-subtitle { margin-top:13px; font-size:.9375rem; }
.story-actions { max-width:52%; bottom:145px; gap:8px; }
.story-actions button { background:#11150fd4; }
.story-enter,.hall-game-entry,.game-candle { position:absolute; padding:0; z-index:3; border-radius:8px; cursor:pointer; touch-action:manipulation; }
.story-enter { left:60.9%; top:62%; width:4.4%; height:12%; }
.hall-game-entry { left:79%; top:41%; width:19%; height:45%; }
.room-candle { left:64.6%; top:51.4%; width:3.1%; height:7.2%; z-index:3; min-width:22px; min-height:28px; }
.game-candle { left:36.5%; top:8.7%; width:14.5%; height:16.3%; }
.story-enter:hover,.hall-game-entry:hover,.game-candle:hover,.room-candle:hover { box-shadow:inset 0 0 26px #f5c07820; }
.story-enter:focus-visible,.hall-game-entry:focus-visible,.game-candle:focus-visible { outline:2px solid #f8d494; outline-offset:3px; }
.story-deck { left:19%; top:53.3%; width:51%; height:12.8%; transform:none; z-index:3; filter:none; cursor:pointer; border-radius:30%; }
.story-deck:hover { filter:none; box-shadow:0 0 26px #ffd38a15; }
.story-deck:focus-visible { outline:2px solid #f8d494; outline-offset:4px; }
.portal-spill { left:27%; top:53%; width:33%; height:13%; opacity:0; }
.story-activated .portal-spill { opacity:.28; }
.story-destination { bottom:245px; background:#11150fe6; border-radius:4px; }
.story-radio { left:83.5%; top:38%; width:6%; height:10.7%; z-index:3; }
.story-matches { left:12.7%; top:51.7%; width:7%; height:3.8%; z-index:3; }
.hearth-bed { left:13.4%; top:58.7%; width:6.1%; height:13.4%; z-index:2; }
.hearth-target { left:13.6%; top:63%; width:5.4%; height:8%; z-index:3; }
.hearth-foreground { clip-path:polygon(13.6% 63%,14.4% 60.3%,16% 59%,17.8% 60.4%,18.9% 63%,18.9% 70.6%,13.6% 70.6%); filter:brightness(.14) saturate(.35); opacity:1; transition:opacity 1s; }
.fire-burning .hearth-foreground { opacity:0; }
.match-label { font-size:.75rem; opacity:0; transition:opacity .2s; }
.story-matches:hover .match-label,.story-matches:focus-visible .match-label,.match-held .match-label { opacity:1; }
.fire-hint { bottom:205px; font-size:.875rem; }
.story:not(.story-enhanced) .story-scene { display:none; }
.story:not(.story-enhanced) .story-scene:first-child { display:block; }
@media(max-width:1050px) and (min-width:761px) {
  .story-actions { max-width:56%; }
  .story-actions button { padding:8px 10px; }
  .story-actions .story-family-action { display:none; }
  .story[data-current="3"] .story-actions { flex-wrap:nowrap; }
  .story[data-current="3"] .story-actions > button { flex:1; min-width:0; padding:8px; line-height:1.35; }
  .story[data-current="3"] .story-actions .story-next { flex:0 0 44px; justify-content:center; }
  .story[data-current="3"] .story-next-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media(max-width:760px), (max-aspect-ratio:4/5) {
  .hero.story.story-enhanced { height:460svh; }
  .story-vignette { background:linear-gradient(180deg,transparent 40%,#090e12 78%); }
  .story-copy,.story[data-current="2"] .story-copy,.story[data-current="3"] .story-copy { top:calc(134px + var(--story-image-height) + 12px); bottom:auto; left:24px; width:calc(100% - 48px); }
  .hero.story h1,.story[data-current="2"] h1,.story[data-current="3"] h1,html[data-language="zh"] .hero.story h1,html[data-language="zh"] .story[data-current="2"] h1,html[data-language="zh"] .story[data-current="3"] h1 { font-size:clamp(27px,6.9vw,39px); line-height:1.18; }
  .story-eyebrow { margin-bottom:8px; }
  .story-subtitle { margin-top:8px; }
  .story-actions { bottom:126px; max-width:none; }
  .story[data-current="2"] .story-actions .story-next { display:flex; }
  .story-actions .story-family-action { display:none; }
  .story[data-current="3"] .story-actions { flex-wrap:nowrap; }
  .story[data-current="3"] .story-actions > button { flex:1; min-width:0; padding:8px; line-height:1.35; }
  .story[data-current="3"] .story-actions .story-next { flex:0 0 44px; justify-content:center; }
  .story[data-current="3"] .story-next-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .story-matches { left:11%; top:47%; min-width:32px; min-height:32px; }
  .story-radio { min-width:30px; min-height:30px; }
  .story-destination { top:88px; bottom:auto; right:24px; max-width:53%; padding:6px 10px; }
  .fire-hint { bottom:182px; }
}
@media(max-width:760px) and (max-height:740px) {
  .story-subtitle { display:none; }
  .story-viewport { --story-image-height:min(calc(100vw * .55957),calc(100svh - 430px)); }
}
@media(prefers-reduced-motion:reduce) { .hearth-foreground,.match-label { transition:none; } }
