/* The launch screen is the cover of the player's illustrated route journal. */
#game {
  --guide-ink: #243e37;
  --guide-muted: #566958;
  --guide-green: #244e42;
  --guide-gold: #ad864d;
  --guide-sheet: #faf3df;
  --guide-serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
}
#game .game-dialog.menu-title {
  width:min(780px,calc(100% - 22px)); max-width:780px;
  border:1px solid #b7a177!important; border-image:none!important; border-radius:15px;
  padding:0; overflow:hidden; background:var(--guide-sheet)!important;
  box-shadow:0 18px 70px #10251a80,0 0 0 3px #f2e3c324;
}
#game .menu-title>header {
  position:absolute; width:1px; height:1px; min-height:0; overflow:hidden; clip-path:inset(50%); padding:0;
}
#game .menu-title>.menu-body { padding:0!important; max-height:calc(100dvh - 20px); display:block; overflow:auto; }
.arrival-book { display:grid; grid-template-columns:1.05fr 1fr; color:var(--guide-ink); }
.arrival-art {
  position:relative; isolation:isolate; overflow:hidden; min-height:300px;
  background:#748473 url('assets/render/home-dawn.webp') 50% 64%/cover;
}
.arrival-art::before { content:""; position:absolute; inset:0; background:linear-gradient(165deg,#15382fd9,transparent 68%); }
#game .arrival-art h3 {
  position:absolute; top:18px; left:20px; margin:0; color:#fff7db; line-height:1.18;
  font:700 clamp(40px,7vw,72px)/1.05 var(--guide-serif); letter-spacing:.09em; text-shadow:0 2px 12px #182f27;
}
#game .arrival-art h3 span { display:block; margin-top:8px; font-size:.52em; letter-spacing:.06em; }
.arrival-art .arrival-painting-pet {
  position:absolute; right:4%; bottom:1%; width:58%; height:65%;
  background:transparent; transform:none; filter:drop-shadow(0 4px 3px #0d241f30);
}
.arrival-painting-pet canvas { width:100%; height:100%; }
.arrival-page { padding:24px clamp(16px,3vw,28px) 12px; background:linear-gradient(125deg,#fffaed,#f3e7cc); }
.island-itinerary { display:flex; gap:0; list-style:none; margin:0; padding:0; }
.island-itinerary li { flex:1; display:grid; justify-items:center; position:relative; min-width:0; gap:6px; color:#6b6451; }
.island-itinerary li:not(:last-child)::before { content:""; position:absolute; top:5px; left:50%; width:100%; border-top:1px dashed #a88d61; }
.island-itinerary i { z-index:1; width:10px; height:10px; transform:rotate(45deg); background:#f3e8cf; border:1px solid #a18c67; }
.island-itinerary .current i { background:#44705e; border-color:#244e42; box-shadow:0 0 0 3px #71917e38; }
.island-itinerary .remembered i { background:#b68738; border-color:#8b682c; }
.island-itinerary li span { font:600 clamp(11px,2.8vw,14px)/1.4 var(--guide-serif); }
#game .arrival-letter { margin:18px 0; font:500 16px/1.7 var(--guide-serif); color:#37473c; }
.arrival-choices { display:grid; gap:8px; }
#game .arrival-choices .button { width:100%; min-height:46px; min-width:0; border-radius:8px; padding:8px 13px; font-weight:700; }
#game button.arrival-main, #game .courtyard-ticket {
  border:1px solid #426046!important; background:linear-gradient(115deg,#1b473d,#39644d)!important;
  color:#fff9e4!important; box-shadow:inset 0 0 0 2px #e6d59b22,0 2px 3px #283c2c26;
}
.arrival-main span { font-size:1.15em; }
#game .arrival-tools { display:flex; align-items:center; gap:7px; justify-content:flex-end; margin-top:7px; }
#game .arrival-tools>span { margin-right:auto; color:#64604e; font-size:11px; }
#game .arrival-tools button { border:0!important; background:none!important; box-shadow:none; min-height:44px; min-width:44px; padding:0 3px; color:#315541; font-size:13px; }

#game .companion-pass {
  display:flex; pointer-events:auto; align-items:center; text-align:left; gap:6px; color:#253e34;
  border:1px solid #877c5b; border-radius:10px 20px 10px 12px;
  background:#fbf5e7f2!important; min-height:45px; padding:3px 10px 3px 4px;
}
.companion-pass img { width:38px; height:38px; object-fit:contain; }
.companion-pass b,.companion-pass small { display:block; white-space:nowrap; line-height:1.4; }
.companion-pass b { font:700 15px/1.4 var(--guide-serif); }
.companion-pass em { font:600 11px system-ui; color:#5b654f; }
.companion-pass small { font-size:11px; }
#game .courtyard-heading { display:none!important; }
#game .context.home { display:none!important; }
#game[data-stage=home] #controls { justify-content:center; pointer-events:none; }
#game .courtyard-ticket { pointer-events:auto; display:flex; align-items:center; gap:11px; width:min(100%,420px); min-height:55px; margin:0; padding:6px 11px; border-radius:9px 18px 9px 18px; }
.ticket-compass { display:grid; place-items:center; width:35px; height:35px; border-radius:50%; border:1px solid #dcb97e; background:#ebe3c4; }
.ticket-compass .painted-icon { width:28px; height:28px; }
.ticket-route { display:grid; text-align:left; gap:1px; line-height:1.35; }
.ticket-route small { font-size:11px; color:#e6d6ac; }
.ticket-route strong { font:700 17px/1.3 var(--guide-serif); }
.ticket-go { margin-left:auto; white-space:nowrap; font-size:13px; }
.ticket-go span { margin-left:3px; font-size:20px; }
#game .save-note { visibility:hidden; }
#game .scene-hotspots button { opacity:1; border:none!important; box-shadow:none!important; padding:0; }
#game .scene-hotspots button span {
  position:absolute; left:50%; top:79%; transform:translateX(-50%); white-space:nowrap;
  font:650 13px/1.4 var(--guide-serif); padding:3px 9px; color:#fff7e3;
  border:1px solid #dac791; border-radius:3px 9px; background:#213f35e8;
}
#game .scene-hotspots button span::before { content:""; display:inline-block; width:5px; height:5px; margin:0 5px 2px 0; transform:rotate(45deg); background:#edc37b; }
#game .scene-hotspots button:focus-visible span { outline:3px solid white; outline-offset:2px; }
#game .scene-hotspots button[data-home-object=pet] span { top:63%; }
#game .care-feedback { margin:8px 0; line-height:1.5; color:#2a5743; font-weight:700; }
#game .care-feedback:empty { display:none; }
#game .companion-card { position:relative; overflow:hidden; background:linear-gradient(135deg,#ecede1,#f5e8cc); border-color:#b7b18f; }
#game .companion-card img { object-fit:contain; }
#game .game-dialog .section-tabs button[aria-selected=true] { background:#315849!important; color:#fffae4; border-color:#315849; }
#game .menu-pet .care-actions .button { border-radius:10px; }
#game .menu-pet .care-actions .button small { line-height:1.35; }
@media (prefers-reduced-motion:no-preference) {
  #game:not([data-reduce-motion=true]) .just-fed img { animation: berry-nod 480ms ease-out; transform-origin:50% 88%; }
  @keyframes berry-nod { 28% {transform:translateY(2px) scale(1.02,.96)} 60% {transform:translateY(-3px) scale(.99,1.02)} }
}
@media(max-width:640px) {
  .arrival-book { grid-template-columns:1fr; }
  .arrival-art { min-height:0; height:clamp(132px,27dvh,235px); background-position:center 65%; }
  .arrival-art .arrival-painting-pet { width:45%; right:1%; height:88%; }
  #game .arrival-art h3 { top:16px; left:17px; }
  .arrival-page { padding:15px 16px 5px; }
  #game .arrival-letter { margin:10px 0 12px; font-size:15px; }
  #game .arrival-tools { margin:0; }
  #game .hud .top { align-items:flex-start; }
  #game .ticket-route strong { font-size:15px; }
  #game .courtyard-ticket { gap:8px; }
}
@media(max-height:440px) and (min-width:520px) {
  .arrival-book { grid-template-columns:1fr 1.3fr; }
  .arrival-art { min-height:0; height:100%; }
  .arrival-page { padding:9px 14px 0; }
  #game .arrival-letter { margin:6px 0 8px; font-size:14px; }
  .arrival-choices { gap:4px; }
}

#game .departure-landscape {
  position:relative; isolation:isolate; display:flex; align-items:flex-end; overflow:hidden;
  min-height:clamp(87px,16dvh,145px); padding:12px 14px; margin-bottom:12px; border-radius:8px 17px;
  background:#345240 center 55%/cover; border:1px solid #9e936f;
}
#game .departure-landscape.chapter-0 { background-image:url('assets/story/forest.webp'); }
#game .departure-landscape.chapter-1 { background-image:url('assets/story/cloud.webp'); }
#game .departure-landscape.chapter-2 { background-image:url('assets/story/forge.webp'); }
.departure-landscape::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(75deg,#19372ee6,transparent 80%); }
#game .departure-landscape h3 { color:#fff6df; margin:0; font:700 24px/1.3 var(--guide-serif); }
#game .departure-landscape .eyebrow { color:#f5e6bd; margin:0 0 4px; font-size:12px; }
#game #objective:not(:empty) {
  pointer-events:auto; padding:0; text-align:left; width:max-content; max-width:min(430px,45%);
  background:#fcf4e5f2!important; border-radius:5px 14px 8px 13px!important; border-left:3px solid #54735e;
}
#game .route-objective-toggle {
  display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:5px 10px;
  color:var(--guide-ink); background:none!important; border:none!important; border-radius:inherit; box-shadow:none; text-align:left;
}
.route-text { display:grid; }
#game .route-step { font-size:11px; line-height:1.24; color:#55654f; }
#game .objective .route-text b { font:700 15px/1.4 var(--guide-serif)!important; }
.route-chevron { color:#526347; margin-left:auto; }
.route-objective-toggle[aria-expanded=true] .route-chevron { transform:rotate(180deg); }
#game #route-objective-detail { display:block; padding:0 9px 8px; font-size:13px!important; }
#game #route-objective-detail[hidden] { display:none; }
@media(max-width:640px) and (orientation:portrait){
  #game #objective:not(:empty) {
    top:79px!important; left:10px!important; right:auto; max-width:calc(100% - 112px);
    transform:none!important;
  }
  #game .context:not(.home):not(.interactable) {
    padding:4px 9px; font-size:12px; width:fit-content; max-width:calc(100% - 30px);
  }
}

#game .game-dialog .section-tabs button[aria-selected=true] { color:#fff8e0!important; }
#game .plan-consequence b,#game .promise-preview>b,#game .mission-panel .eyebrow { color:#315840!important; }
#game .promise-preview small,#game .plan-consequence small { color:#4a604d!important; }
#game .menu-pet .section-tabs { margin:0 0 7px; padding:0 0 5px; }
#game .menu-pet .companion-card { min-height:0; margin:0 0 8px; padding:9px 11px; gap:12px; }
#game .menu-pet .companion-card>img { height:102px; width:clamp(60px,19vw,110px); }
#game .menu-pet .companion-card h3 { margin:0 0 5px; }
#game .menu-pet .growth-meter { margin:3px 0; }
#game .menu-pet .care-actions { margin:7px 0; align-items:stretch; }
#game .menu-pet .care-actions button { min-height:76px; padding:5px 7px; gap:2px; }
#game .menu-pet .care-actions button .painted-icon { width:28px; height:28px; }
#game .menu-pet .care-actions small { font-size:12px; }
#game .menu-body .rename-fold summary { color:#355642; font-weight:650; }
#game .menu-body .rename-fold input { color:#273f35; background:#fffaf0; }
