/* The illustrated opening is isolated from the in-game interface. */
@font-face{font-family:TitleFell;src:url('./assets/fonts/IMFeENrm28P.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:TitleFell;src:url('./assets/fonts/IMFeENit28P.ttf') format('truetype');font-style:italic;font-weight:400;font-display:swap}
@font-face{font-family:TitleCrimson;src:url('./assets/fonts/CrimsonText-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}

body[data-mode="ready"]{overflow:hidden;background:#0d1a1d}
body[data-mode="ready"] .app-shell{visibility:hidden}
body:not([data-mode="ready"]) .title-layer{display:none}
.title-layer{
  --title-serif:TitleFell,Georgia,serif;
  position:fixed;inset:0;z-index:15;overflow:auto;
  background:linear-gradient(180deg,#050d1020 0%,#07101415 45%,#06101430 100%),linear-gradient(0deg,#050c1275,transparent 45%,#06101445),#0d1a1d url('./assets/title-world.png') center 57%/cover no-repeat;
}
.title-screen{
  position:relative;text-align:center;width:100%;min-height:100svh;
  display:flex;flex-direction:column;align-items:center;
  padding:clamp(65px,13vh,150px) 25px 70px;
  animation:title-arrive 1.8s ease-out both;
}
.title-ornament{width:150px;height:55px;flex-shrink:0;color:#c6d1b7;margin-bottom:10px;filter:drop-shadow(0 0 10px #c7e1cb28)}
.title-eyebrow{font:italic clamp(16px,1.5vw,21px) var(--title-serif);color:#b7c7b8;letter-spacing:.5px;margin:6px 0 16px}
.title-screen .game-title{font:400 clamp(70px,9.5vw,140px)/1 var(--title-serif);letter-spacing:-4px;margin:0;color:#e4e5d0;text-shadow:0 3px 3px #061113,0 0 35px #c7e2ca22}
.title-screen .game-title:after{content:'';display:block;width:140px;height:1px;margin:26px auto 22px;background:linear-gradient(90deg,transparent,#c0cbae88,transparent)}
.title-copy{font:italic clamp(17px,1.6vw,21px)/1.55 var(--title-serif);color:#b9c7b9;margin:0;text-shadow:0 2px 5px #051216}
.title-actions{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:18px}
.title-screen .title-start{position:relative;background:none;border:0;border-radius:0;padding:11px 35px;color:#e6e8d2;font:25px/1.2 var(--title-serif);letter-spacing:0;display:inline-flex;justify-content:center;align-items:center;min-height:50px;box-shadow:none;transition:color .2s,text-shadow .2s}
.title-screen .title-start:before,.title-screen .title-start:after{content:'';position:absolute;top:50%;width:7px;height:7px;border:1px solid #a9baa0;transform:rotate(45deg);transition:translate .2s}
.title-screen .title-start:before{left:8px;border-top:0;border-right:0}
.title-screen .title-start:after{right:8px;border-bottom:0;border-left:0}
.title-screen .title-start:hover{background:none;box-shadow:none;color:#fffce4;text-shadow:0 0 17px #d1e3b87a}
.title-screen .title-start:hover:before{translate:-5px 0}
.title-screen .title-start:hover:after{translate:5px 0}
.title-screen .title-help{background:none;border:0;padding:5px 7px;font:17px TitleCrimson,Georgia,serif;color:#aabca9}
.title-screen .title-help:hover{color:#e2e7ce}
.title-screen button:focus-visible{outline:none;color:#fffce4;text-decoration:underline;text-underline-offset:9px;text-decoration-thickness:1px}
.title-subtitle{position:absolute;bottom:24px;left:20px;right:20px;text-align:center;color:#9db5a498;font:italic 15px var(--title-serif);letter-spacing:1px;margin:0}
@keyframes title-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:680px) and (min-width:701px){
  .title-screen{padding-top:37px}
  .title-ornament{height:34px;margin-bottom:2px}
  .title-eyebrow{margin-bottom:10px}
  .title-screen .game-title{font-size:88px}
  .title-screen .game-title:after{margin:17px auto}
  .title-actions{margin-top:19px;gap:6px}
  .title-subtitle{bottom:15px}
  .title-copy{font-size:18px}
}
@media(max-width:700px){
  .title-layer{background-position:center,center,50% 54%}
  .title-screen{padding:clamp(90px,18vh,155px) 18px 70px}
  .title-ornament{width:100px;height:40px}
  .title-eyebrow{font-size:16px;margin-bottom:18px}
  .title-screen .game-title{font-size:clamp(56px,13.5vw,92px);letter-spacing:-2px}
  .title-screen .game-title:after{margin:21px auto;width:100px}
  .title-copy{font-size:17px}
  .title-actions{margin-top:32px}
  .title-screen .title-start{font-size:23px}
  .title-subtitle{font-size:13px;bottom:20px}
}
@media(prefers-reduced-motion:reduce){.title-screen,.title-screen button,.title-screen button:before,.title-screen button:after{animation:none;transition:none}}
