/* Progressive enhancement: a static open doorway without script or with reduced motion. */
.door-sequence { margin-top:34px; }
.door-sequence .game-hero { margin-top:0; --door-angle:-68deg; --light-spill:.65; }
.door-sequence.scroll-scene { height:calc(100svh + max(780px, 110svh)); position:relative; }
.scroll-scene .game-hero { position:sticky; top:16px; height:calc(100svh - 32px); min-height:440px; max-height:900px; }
.scroll-scene .game-hero-content { height:100%; min-height:0; }
.cinematic-scene { position:absolute; top:0; right:0; height:100%; width:auto; min-width:100%; aspect-ratio:3 / 2; }
.scene-image { position:absolute; inset:0; width:100%; height:100%; }
/* Door bounds match the opening in the generated 1536 x 1024 background. */
.door-sequence .doorway { left:50.6%; top:5.1%; width:32.8%; height:84.2%; right:auto; perspective:1200px; perspective-origin:0 50%; transform:none; border:0; background:transparent; box-shadow:none; overflow:visible; }
.door-sequence .doorway:before,.door-sequence .doorway:after { content:none; }
.door-leaf { position:absolute; z-index:2; inset:-1px; transform-origin:0 50%; transform:rotateY(var(--door-angle)); backface-visibility:hidden; background:#101917; border:1px solid #242b24; border-right:3px solid #61553c; box-shadow:10px 4px 25px #0008; will-change:transform; }
.door-leaf img { display:block; width:100%; height:100%; object-fit:fill; }
.floor-shade { position:absolute; left:40%; right:0; top:89%; bottom:0; pointer-events:none; background:linear-gradient(#030707cc,transparent); opacity:calc(.8 - var(--light-spill)); }
.door-sequence .horror-art:after { background:linear-gradient(90deg,#080c0e88,transparent 65%),linear-gradient(0deg,#070a0c88,transparent 25%); }
.scroll-hint { display:none; position:absolute; right:30px; bottom:33px; max-width:190px; font-size:9px; letter-spacing:.13em; color:#bfb6a3; line-height:1.8; text-align:right; }
.scroll-scene .scroll-hint { display:block; }
.scroll-hint span { display:block; color:#8f9b91; font-size:8px; }
@media(max-width:1000px) and (min-width:701px) { .scroll-hint { top:75px; bottom:auto; right:28px; } }
@media(max-width:700px) {
  .door-sequence { margin-top:20px; }
  .scroll-scene .game-hero { top:10px; height:calc(100svh - 20px); min-height:500px; }
  .door-sequence.scroll-scene { height:calc(100svh + max(720px, 110svh)); }
  .cinematic-scene { left:50%; right:auto; min-width:0; transform:translateX(-71%); }
  .door-sequence .game-hero-content { padding-bottom:28px; }
  .door-sequence .game-hero h1 { font-size:clamp(32px,9vw,60px); }
  .door-sequence .game-hero .lead { font-size:14px; margin-bottom:18px; }
  .door-sequence .game-meta { margin-top:20px; }
  .door-sequence .horror-art:after { background:linear-gradient(0deg,#070a0cf0 4%,transparent 48%); }
  .scroll-hint { top:78px; bottom:auto; left:24px; right:auto; text-align:left; font-size:8px; }
  .scroll-hint span { font-size:7px; }
}
@media(max-height:540px) and (min-width:701px) {
  .scroll-scene .game-hero { min-height:300px; }
  .door-sequence .game-hero-content { padding:70px 30px 20px; }
  .door-sequence .game-hero h1 { font-size:58px; margin-bottom:10px; }
  .door-sequence .game-hero .eyebrow { margin-bottom:12px; }
  .door-sequence .game-hero .lead { font-size:13px; margin-bottom:12px; }
  .door-sequence .game-meta { margin-top:12px; }
  .door-sequence .button { padding:10px 15px; min-height:40px; }
  .scroll-hint { top:78px; bottom:auto; }
}
/* Narrow portraits give the artwork its own area above the text. The girl's
   head and feet cannot sit behind the title, tagline or action buttons. */
@media(max-width:1000px) and (min-height:541px) {
  .door-sequence .game-hero { display:flex; flex-direction:column; }
  .door-sequence .horror-art { position:relative; inset:auto; width:100%; min-height:320px; flex:1 1 0; }
  .scroll-scene .horror-art { min-height:0; }
  .door-sequence .game-hero-content { position:static; height:auto; min-height:0; flex:0 0 auto; display:block; padding:20px 24px 24px; background:#0b1011; }
  .door-sequence .game-hero h1 { font-size:clamp(32px,6vw,54px); margin-bottom:12px; }
  .door-sequence .game-hero .eyebrow { margin-bottom:12px; }
  .door-sequence .game-hero .lead { font-size:14px; margin-bottom:16px; }
  .door-sequence .game-meta { margin-top:16px; }
  .cinematic-scene { left:auto; right:0; min-width:100%; transform:none; }
  .door-sequence .horror-art:after { background:linear-gradient(0deg,#070a0c55,transparent 25%); }
  .door-sequence .back-link { top:24px; left:24px; }
  .door-sequence .art-note { top:53px; left:24px; right:auto; font-size:7px; }
  .scroll-hint { top:76px; left:24px; right:auto; bottom:auto; text-align:left; }
}
@media(prefers-reduced-motion:reduce) {
  .door-sequence.scroll-scene { height:auto; }
  .scroll-scene .game-hero { position:relative; top:auto; height:auto; max-height:none; }
  .door-leaf { will-change:auto; }
  .scroll-scene .scroll-hint { display:none; }
}
