/* BLACKVEIL layered cinematic title screen — scene source is 1672x941. */
#title-screen{
  position:absolute;inset:0;overflow:hidden;z-index:40;
  background:#0b0d0e;opacity:1;
  touch-action:manipulation;
  transition:opacity .68s ease;
}
#title-screen[hidden]{display:none!important;}
#title-screen.is-leaving{opacity:0;pointer-events:none;}
#title-scene{
  position:absolute;left:50%;top:50%;width:1672px;height:941px;
  transform:translate(-50%,-50%) scale(var(--title-scale,1));
  transform-origin:center center;
  overflow:hidden;pointer-events:none;
  opacity:0;transition:opacity 1.15s cubic-bezier(.20,.70,.25,1);
}
#title-screen.is-ready #title-scene{opacity:1;}
#title-scene img{position:absolute;display:block;user-select:none;-webkit-user-drag:none;pointer-events:none;}
.title-landscape{left:0;top:0;width:1672px;height:941px;}
.title-scene-shade{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(4,6,6,.06),transparent 24%,transparent 75%,rgba(4,5,5,.08)),
    linear-gradient(180deg,rgba(4,5,6,.16),transparent 30%,transparent 72%,rgba(3,4,4,.45));
}
#title-scene .title-sun{
  left:854px;top:-75px;width:500px;height:500px;
  opacity:.22;mix-blend-mode:screen;
  animation:titleSunBreathe 7s ease-in-out infinite alternate;
}
#title-scene .title-mist-far{
  left:420px;top:522px;width:1000px;height:215px;opacity:.21;
  animation:titleMistA 24s ease-in-out infinite alternate;
}
#title-scene .title-mist-river{
  left:570px;top:605px;width:1000px;height:215px;opacity:.20;
  animation:titleMistB 30s ease-in-out infinite alternate;
}
/* The supplied flag already trails leftward from its stitched tip.
   Place that tip on the existing pole at x≈332, y≈96 with no mirroring. */
#title-scene .title-flag{
  left:-95px;top:79px;width:440px;height:331px;
  image-rendering:auto;
  filter:drop-shadow(0 4px 4px rgba(0,0,0,.22));
}
#title-scene .title-logo{
  left:391px;top:112px;width:890px;height:auto;
  filter:drop-shadow(0 7px 12px rgba(0,0,0,.55));
}
#title-scene .title-start{
  position:absolute;left:651px;top:610px;width:370px;height:149px;
  display:block;padding:0;border:0;background:transparent;
  box-shadow:none;outline-offset:0;pointer-events:auto;
  transition:transform .20s ease,filter .20s ease;
  filter:drop-shadow(0 6px 9px rgba(0,0,0,.48));
}
#title-scene .title-start img{position:static;width:100%;height:100%;object-fit:contain;}
#title-scene .title-start:hover,#title-scene .title-start:focus-visible{
  transform:translateY(-3px) scale(1.035);
  filter:brightness(1.16) drop-shadow(0 6px 12px rgba(0,0,0,.7));
}
#title-scene .title-start:focus-visible{outline:2px solid #dabb83;border-radius:9px;}
#title-scene .title-start:disabled{cursor:default;filter:brightness(.92);}
#title-scene .title-status{
  position:absolute;top:754px;left:651px;width:370px;
  color:#c8baa1;text-align:center;font:600 13px/1.5 'Hahmlet',Georgia,serif;
  letter-spacing:.6px;text-shadow:0 2px 6px #090908;
}
#title-scene .title-status.error{color:#f5a49c;}
/* Loading is intentionally above the unrevealed scene but below the ready scene. */
.title-loading{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;
  color:#baaa8b;font:500 13px/1.6 'Hahmlet',Georgia,serif;letter-spacing:.9px;text-align:center;
  background:#080909;transition:opacity .65s ease,visibility .65s;pointer-events:none;}
#title-screen.is-ready .title-loading{opacity:0;visibility:hidden;}
#title-load-retry{pointer-events:auto;padding:10px 20px;border:1px solid #997c50;border-radius:3px;
  background:#191713;color:#e6d0a4;font:600 13px/1.4 'Hahmlet',serif;}
#title-load-retry[hidden]{display:none!important;}
@keyframes titleMistA{from{transform:translateX(-30px)}to{transform:translateX(40px)}}
@keyframes titleMistB{from{transform:translateX(38px)}to{transform:translateX(-26px)}}
@keyframes titleSunBreathe{from{opacity:.17}to{opacity:.26}}
@media(prefers-reduced-motion:reduce){
  #title-screen,#title-scene,#title-scene .title-start,.title-loading{transition:none;}
  #title-scene .title-mist,#title-scene .title-sun{animation:none;}
}
