/* Stage 18 — full-height illustration and complete choices on the right.
   Health is in the top status strip. Only story/report pages are measured by
   viewport_reading.js; every choice stays in the right-hand control dock.
   No gameplay state or automatic timing lives here.
   The readable natural-flow fallback is intentional for extreme window/zoom
   sizes and environments without usable DOM measurement. */
#game.scene-layout {
  --layout-gap:clamp(.65rem,1.2vw,1.25rem);
  --side-space:clamp(.6rem,1.2vw,1.25rem);
  --game-columns:minmax(0,1fr);
  --game-rows:auto minmax(0,1fr);
  display:grid!important;
  grid-template-columns:var(--game-columns)!important;
  grid-template-rows:var(--game-rows)!important;
  grid-template-areas:none!important;
  align-content:stretch!important;
  align-items:stretch!important;
  gap:.55rem!important;
  min-width:0!important;
  min-height:0!important;
  padding:max(.5rem,env(safe-area-inset-top)) max(var(--side-space),env(safe-area-inset-right)) max(.6rem,env(safe-area-inset-bottom)) max(var(--side-space),env(safe-area-inset-left))!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#102735,#081924);
}
#game.scene-layout::before,#game.scene-layout::after { display:none; }
#game.scene-layout [hidden] { display:none!important; }
#game.scene-layout #top-status { display:grid; gap:.3rem; min-width:0; }
#game.scene-layout #status-overview {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(29rem,43%);
  align-items:center;
  gap:.5rem 1rem;
  min-width:0;
  padding-bottom:.35rem;
  border-bottom:1px solid #c8ac7d29;
}
#game.scene-layout:is([data-phase="title"],[data-phase="packing"]) #status-overview { grid-template-columns:1fr; }
#game.scene-layout #journey-bar {
  position:static!important; display:flex; align-items:center; gap:1rem;
  width:100%!important; min-width:0!important; min-height:0!important;
  margin:0!important; padding:0!important;
}
#game.scene-layout:is([data-phase="title"],[data-phase="briefing"],[data-phase="packing"]) #journey-bar { display:none; }
#game.scene-layout #journey-bar #route-progress {
  grid-area:auto!important; position:static!important; inset:auto!important;
  flex:1 1 auto; width:auto!important; min-width:0!important; max-width:none!important;
  margin:0!important; padding:0!important; transform:none!important;
  border:0; border-radius:0; background:none; backdrop-filter:none; box-shadow:none;
}
#game.scene-layout #journey-bar .progress-label { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.15rem .75rem; font-size:.875rem; line-height:1.3; }
#game.scene-layout #journey-bar .progress-track { height:.25rem; margin-top:.25rem; }
#game.scene-layout #journey-bar #flight-view-scene,
#game.scene-layout #hud .stat.settings button {
  position:static!important; inset:auto!important; display:block; flex:0 0 auto;
  min-width:0; min-height:2.75rem; margin:0; padding:.4rem .7rem;
  border:1px solid #a88c6170; border-radius:.45rem; background:#213946;
  box-shadow:none; backdrop-filter:none; font-size:.875rem; line-height:1.25;
}
#game.scene-layout #hud {
  grid-area:auto!important; position:static!important; inset:auto!important;
  display:flex!important; align-items:center!important; justify-content:flex-start!important;
  flex-wrap:wrap!important; gap:.15rem .8rem!important;
  width:100%!important; min-width:0!important; max-width:none!important;
  margin:0!important; padding:0!important; border:0; background:none; pointer-events:auto;
}
#game.scene-layout #hud .stat {
  min-width:0; min-height:1.75rem; margin:0; padding:.15rem 0; gap:.25rem;
  border:0; border-radius:0; background:none; backdrop-filter:none; box-shadow:none;
  white-space:normal; color:#f6eddb; font-size:.875rem; line-height:1.25;
}
#game.scene-layout #hud .stat-name { display:inline; }
#game.scene-layout #hud .stat-icon { font-size:1rem; }
#game.scene-layout #hud .stat.warn { color:#ffd098; }
#game.scene-layout #hud .stat.critical { color:#ffaaa3; }
#game.scene-layout #hud .stat.settings { display:flex; align-items:center; flex-basis:auto; gap:.25rem; margin-left:auto; padding:0; overflow:visible; }
#game.scene-layout #hud .stat.settings .action-full { display:inline; }
#game.scene-layout #hud .stat.settings .action-short { display:none; }

/* These are the original treatment/detail buttons, moved intact to the top. */
#game.scene-layout #crewstrip {
  grid-area:auto!important; position:static!important; inset:auto!important;
  display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important; align-self:center!important; justify-self:stretch!important;
  gap:.25rem!important; width:100%!important; height:auto!important;
  min-width:0!important; min-height:0!important; max-width:none!important;
  margin:0!important; padding:0!important; overflow:visible!important; border:0; pointer-events:auto;
}
#game.scene-layout #crewstrip:empty { display:none!important; }
#game.scene-layout #crewstrip .crew-chip,
#game.scene-layout #crewstrip .crew-chip.intro-tag {
  position:static!important; inset:auto!important; display:flex; flex-direction:row;
  align-items:center; justify-content:flex-start; gap:.35rem;
  width:100%; min-width:0; max-width:none; height:auto; min-height:3.1rem;
  margin:0; padding:.2rem .3rem; border:1px solid #bfa37540; border-radius:.45rem;
  background:#17303d; backdrop-filter:none; box-shadow:none; transform:none!important; text-align:left;
}
#game.scene-layout #crewstrip .crew-chip.intro-tag::after { display:none; }
#game.scene-layout #crewstrip .crew-chip:hover { background:#263e4b; }
#game.scene-layout #crewstrip .crew-chip.selected { background:#4d3c39; border-color:#e4bd77; }
#game.scene-layout #crewstrip .crew-chip.dead { opacity:.8; }
#game.scene-layout #crewstrip .crew-face,
#game.scene-layout #crewstrip .crew-chip.intro-tag .crew-face { display:block; flex:0 0 auto; width:1.6rem; height:1.9rem; margin:0; }
#game.scene-layout #crewstrip .crew-label { position:relative; align-items:flex-start; gap:.13rem; min-width:0; }
#game.scene-layout #crewstrip .crew-label strong { font-size:.875rem; line-height:1.2; white-space:nowrap; }
#game.scene-layout #crewstrip .health-meter { width:3.4rem; max-width:100%; height:.25rem; }
#game.scene-layout #crewstrip .crew-hp { font:600 .8rem/1.2 system-ui,-apple-system,Segoe UI,sans-serif; color:#f7eedb; white-space:nowrap; }
#game.scene-layout #crewstrip .health-delta { position:absolute; right:0; bottom:0; font-size:.75rem; }

#game.scene-layout #viewport-main {
  display:grid; grid-template-columns:minmax(0,1fr) clamp(22rem,30vw,28rem);
  grid-template-rows:minmax(0,1fr); gap:var(--layout-gap);
  align-items:stretch; min-width:0; min-height:0;
}
#game.scene-layout #scene-column { grid-area:auto!important; grid-column:1!important; grid-row:1!important; display:flex; width:100%!important; height:100%; min-width:0!important; min-height:0!important; align-self:stretch; }
#game.scene-layout #scene-stage {
  position:relative; align-self:stretch; width:100%; height:100%; min-width:0; min-height:0;
  max-height:none; aspect-ratio:auto; margin:0; overflow:hidden; isolation:isolate;
  border:1px solid #b7996559; border-radius:.65rem; background:#102534;
}
#game.scene-layout #scene-stage #art {
  position:absolute!important; inset:0!important; z-index:0; display:block;
  width:100%!important; height:100%!important; min-width:0; min-height:0; max-width:none; max-height:none!important;
  margin:0; padding:0; aspect-ratio:auto; border:0; border-radius:0; background:#102534; box-shadow:none;
}
#game.scene-layout #scene-stage #art > svg {
  display:block; width:100%!important; height:100%!important; max-width:none; max-height:none;
  margin:0; object-fit:contain!important; aspect-ratio:auto; animation:none!important; transform:none!important; filter:none!important;
}
#game.scene-layout #control-dock { grid-column:2; grid-row:1; display:flex!important; flex-direction:column; gap:.4rem; min-width:0; min-height:0; }
#game.scene-layout #panel {
  grid-area:auto!important; grid-row:auto!important; position:static!important; inset:auto!important;
  display:flex!important; flex:1 1 0; flex-direction:column!important;
  align-items:stretch!important; align-self:stretch!important; justify-content:flex-start!important;
  gap:.5rem!important; width:100%!important; height:auto!important; min-width:0!important; min-height:0!important;
  max-width:none!important; max-height:none!important; margin:0!important; padding:0!important;
  overflow:visible!important; transform:none!important; pointer-events:auto;
}
#game.scene-layout #story {
  display:flex!important; flex-direction:column; flex:1 1 0!important;
  width:100%!important; min-width:0!important; min-height:0!important;
  max-width:none!important; max-height:none!important; margin:0!important; padding:0!important;
  overflow:visible!important; border:0; border-radius:0; background:none; box-shadow:none; backdrop-filter:none;
  pointer-events:auto; animation:none!important; transition:none!important; transform:none!important; filter:none!important; opacity:1!important;
}
#game.scene-layout #story::before { display:none; }
#game.scene-layout #story h1,#game.scene-layout #story h2 { margin:0 0 .5rem; color:#ffedc7; font-size:clamp(1.4rem,1.8vw,1.8rem); line-height:1.18; text-shadow:none; }
#game.scene-layout #story p { font-size:1.0625rem; line-height:1.46; margin:0 0 .55rem; overflow-wrap:anywhere; }
#game.scene-layout #story p:last-child { margin-bottom:0; }
#game.scene-layout #story .story-kicker { font-size:.875rem; margin-bottom:.35rem; letter-spacing:.04em; }
#game.scene-layout #story .flight-hint { font-size:.875rem; margin-top:.5rem; }
#game.scene-layout .reading-heading { flex:0 0 auto; }
#game.scene-layout .reading-body { flex:1 1 0; min-height:0; min-width:0; overflow:visible; }
#game.scene-layout .reading-page { display:flow-root; min-width:0; width:100%; overflow-wrap:anywhere; }
#game.scene-layout .reading-page:focus { outline:none; }
#game.scene-layout .reading-page:focus-visible { outline:2px solid #ffe0a0; outline-offset:2px; }
#game.scene-layout .reading-navigation { flex:0 0 auto; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.35rem; min-width:0; }
#game.scene-layout .reading-navigation button {
  min-height:2.75rem; padding:.35rem .55rem; border:1px solid #a88c6180; border-radius:.4rem;
  background:#213946; color:#fff1d7; box-shadow:none; font:600 .875rem/1.25 system-ui,-apple-system,Segoe UI,sans-serif;
}
#game.scene-layout .reading-navigation button:disabled { opacity:.55; }
#game.scene-layout .reading-position { text-align:center; color:#f1dfbe; font:500 .8125rem/1.25 system-ui,-apple-system,Segoe UI,sans-serif; }
#game.scene-layout .reading-requirement { grid-column:1/-1; margin:0; color:#ffe1a9; font:400 .875rem/1.3 system-ui,-apple-system,Segoe UI,sans-serif; }
#game.scene-layout #decision-area {
  flex:0 0 auto; align-self:stretch; width:100%; min-width:0; min-height:0;
  padding-top:.35rem; border-top:1px solid #c8ac7d45;
}
#game.scene-layout #choices {
  display:grid!important; grid-template-columns:minmax(0,1fr);
  flex:0 0 auto!important; align-content:start!important; align-items:stretch; gap:.3rem!important;
  width:100%!important; min-width:0!important; min-height:0!important; max-width:none!important; max-height:none!important;
  margin:0!important; padding:0!important; overflow:visible!important; animation:none!important; transition:none!important; transform:none!important;
}
#game.scene-layout #choices:empty { display:none!important; }
#game.scene-layout #choices.single-choice { grid-column:auto; justify-self:stretch; width:100%; max-width:none; }
#game.scene-layout #choices.reveal-later,
#game.scene-layout #choices.story-turn-out { visibility:visible!important; opacity:1!important; pointer-events:none!important; transform:none!important; }
#game.scene-layout #choices.reveal-ready { visibility:visible!important; opacity:1; transform:none!important; }
#game.scene-layout #choices .choice {
  display:flex; align-items:center; gap:.5rem; width:100%; min-width:0; min-height:3rem;
  max-height:none; padding:.25rem .65rem; overflow:visible; white-space:normal;
  border:1px solid #d6b985; border-radius:.5rem; background:#f5ead4; color:#34262a; box-shadow:none;
  transform:none; transition:background .15s ease,border-color .15s ease;
}
#game.scene-layout #choices .choice:not(:disabled):hover { background:#fff4dd; border-color:#ffe2aa; box-shadow:none; transform:none; }
#game.scene-layout #choices .choice.primary { background:#813043; color:#fff4dd; border-color:#e1b775; }
#game.scene-layout #choices .choice.primary:not(:disabled):hover { background:#943b50; }
#game.scene-layout #choices .choice:disabled { opacity:.72; background:#c9c5bb; color:#443831; border-color:#a4977e; box-shadow:none; }
#game.scene-layout #choices .choice-title { font-size:1.0625rem; line-height:1.28; }
#game.scene-layout #choices .choice-sub { display:block; font-size:.875rem; line-height:1.35; margin-top:.15rem; color:#5a4b42; }
#game.scene-layout #choices .choice.primary .choice-sub { color:#f4ddbe; }
#game.scene-layout #choices .choice:disabled .choice-sub { color:#4a4039; }
#game.scene-layout #choices .choice-number { flex:0 0 1.15rem; color:inherit; opacity:.75; font:600 .875rem/1 system-ui,-apple-system,Segoe UI,sans-serif; text-align:center; }
#game.scene-layout #choices .choice-copy { min-width:0; overflow:visible; overflow-wrap:anywhere; }
#game.scene-layout #choices .choice-title,#game.scene-layout #choices .choice-sub { white-space:normal; overflow:visible; text-overflow:clip; }
#game.scene-layout #choices .medallion,#game.scene-layout #choices .chevron { display:none; }
#game.scene-layout #choice-status,#game.scene-layout .wait-rail { display:none!important; }

/* All report body facts share the reading pager; actions stay outside it. */
#game.scene-layout[data-phase="trailReport"] #panel { display:none!important; }
#game.scene-layout:is([data-phase="travel"],[data-phase="campArrival"],[data-phase="trailReport"]) #decision-area { display:none!important; }
#game.scene-layout #flight-report {
  grid-area:auto!important; position:static!important; inset:auto!important; display:flex; flex:1 1 0;
  align-self:stretch!important; width:100%!important; height:100%!important; min-width:0!important; min-height:0!important;
  max-width:none!important; max-height:none!important; margin:0!important; padding:0!important; transform:none!important;
  overflow:visible!important; filter:none!important; pointer-events:auto;
}
#game.scene-layout #flight-report .flight-report-card {
  display:flex!important; flex:1 1 0; flex-direction:column; gap:.5rem; width:100%; height:100%!important;
  min-height:0; max-height:none!important; padding:.65rem; overflow:visible!important;
  border:1px solid #bfa37580; border-radius:.6rem; background:#162b38!important; color:#f6eddb; box-shadow:none;
}
#game.scene-layout #flight-report .flight-report-head { flex:0 0 auto; align-items:flex-start; gap:.5rem; margin:0; }
#game.scene-layout #flight-report .flight-report-head h2 { color:#ffedc7; text-shadow:none; font-size:1.45rem; line-height:1.2; margin:0; }
#game.scene-layout #flight-report .flight-report-icon { flex-basis:1.75rem; width:1.75rem; height:1.75rem; font-size:1rem; box-shadow:none; }
#game.scene-layout #flight-report .flight-messages { flex:none; max-height:none!important; overflow:visible!important; padding:0; }
#game.scene-layout #flight-report .flight-message { margin:0 0 .55rem; color:#f6eddb; text-shadow:none; font-size:1.0625rem; line-height:1.46; }
#game.scene-layout #flight-report .flight-loss-summary,
#game.scene-layout #flight-report .flight-patients { margin:.4rem 0; color:#f6eddb; max-height:none; overflow:visible; font-size:.9375rem; line-height:1.4; }
#game.scene-layout #flight-report .flight-patients { background:#263d4b; border-color:#bfa37566; }
#game.scene-layout #flight-report .flight-patients strong { color:#ffedc7; }
#game.scene-layout #flight-report .flight-ack {
  flex:0 0 auto; position:static!important; min-height:3rem!important; margin:0!important; padding:.6rem .8rem!important;
  border:1px solid #e1b775; border-radius:.5rem; background:#813043; color:#fff4dd; box-shadow:none; transform:none!important; font-size:1.0625rem;
}
#game.scene-layout #flight-report .flight-ack:disabled { opacity:.65; }
#game.scene-layout #flight-report .flight-read { flex:0 0 auto; align-self:flex-start; min-height:2.75rem; padding:.3rem .2rem; border:0; border-radius:.25rem; background:transparent; color:#ffe0a0; font:inherit; text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
#game.scene-layout #flight-report .flight-read:focus-visible { outline:3px solid #ffe0a0; outline-offset:2px; }
#game.scene-layout #notice { position:static!important; inset:auto!important; display:none; flex:0 0 auto; width:100%!important; max-width:none!important; margin:0!important; padding:.4rem .6rem!important; transform:none!important; border-radius:.5rem; white-space:normal; }
#game.scene-layout #notice.show { display:block; }
#game.scene-layout .health-consequences { margin:.55rem 0; }
#game.scene-layout .health-consequences h3 { margin:0 0 .25rem; font-size:1rem; line-height:1.4; }
#game.scene-layout .health-consequences ul { list-style:none; margin:0; padding:0; }
#game.scene-layout .health-consequences li { margin:0 0 .3rem; font-size:1rem; line-height:1.42; overflow-wrap:anywhere; }
#game.scene-layout .care-guidance { margin:.55rem 0; font-size:1rem; line-height:1.4; }
#game.scene-layout #flight-report .care-guidance { flex:none; }
#game.scene-layout #reading-fallback-note { margin:0; padding:.5rem; border:1px solid #c8ad78; border-radius:.4rem; color:#ffe1a9; font:400 .875rem/1.35 system-ui,-apple-system,Segoe UI,sans-serif; }

/* Earlier camp-specific rules must not create implicit parent grid rows. */
#game.scene-layout:is([data-master-page="31"],[data-master-page="44"]):not([data-phase="travel"]):not([data-phase="trailReport"]):not([data-phase="campArrival"]) {
  grid-template-columns:var(--game-columns)!important; grid-template-rows:var(--game-rows)!important;
}
#game.scene-layout:is([data-master-page="31"],[data-master-page="44"]):not([data-phase="travel"]):not([data-phase="trailReport"]):not([data-phase="campArrival"]) #panel { grid-area:auto!important; grid-row:auto!important; align-self:stretch!important; }

@media(max-width:1240px) {
  #game.scene-layout #status-overview { grid-template-columns:minmax(0,1fr); gap:.25rem; }
  #game.scene-layout #crewstrip { max-width:44rem!important; justify-self:start!important; }
}
@media(max-width:900px) and (min-height:541px) {
  #game.scene-layout #viewport-main { grid-template-columns:minmax(0,1fr); grid-template-rows:clamp(6rem,22vh,14rem) minmax(0,1fr); gap:.5rem; }
  #game.scene-layout #control-dock { grid-column:1; grid-row:2; }
  #game.scene-layout #scene-stage { border-radius:.5rem; }
}
@media(max-width:600px) {
  #game.scene-layout { --side-space:.5rem; gap:.35rem!important; }
  #game.scene-layout #journey-bar { gap:.5rem; }
  #game.scene-layout #journey-bar .progress-label { font-size:.8125rem; gap:.1rem .4rem; }
  #game.scene-layout #journey-bar #flight-view-scene { padding:.4rem .5rem; }
  #game.scene-layout #status-overview { padding-bottom:.25rem; }
  #game.scene-layout #hud { gap:.1rem .6rem!important; }
  #game.scene-layout #hud .stat { font-size:.8125rem; min-height:1.5rem; }
  #game.scene-layout #crewstrip { gap:.15rem!important; }
  #game.scene-layout #crewstrip .crew-chip,#game.scene-layout #crewstrip .crew-chip.intro-tag { flex-direction:column; justify-content:center; gap:0; padding:.15rem .1rem; text-align:center; min-height:3rem; }
  #game.scene-layout #crewstrip .crew-face,#game.scene-layout #crewstrip .crew-chip.intro-tag .crew-face { display:none; }
  #game.scene-layout #crewstrip .crew-label { align-items:center; gap:.1rem; }
  #game.scene-layout #crewstrip .crew-label strong { font-size:.8125rem; }
  #game.scene-layout #crewstrip .health-meter { width:2.7rem; }
  #game.scene-layout #story h1,#game.scene-layout #story h2 { font-size:1.35rem; margin-bottom:.35rem; }
  #game.scene-layout #story p,#game.scene-layout #flight-report .flight-message { font-size:1rem; line-height:1.42; }
  #game.scene-layout #choices .choice { padding:.45rem .6rem; }
  #game.scene-layout #choices .choice-title { font-size:1rem; }
  #game.scene-layout #choices .choice-sub { font-size:.875rem; }
  #game.scene-layout #flight-report .flight-report-card { padding:.5rem; }
  #game.scene-layout #flight-report .flight-report-head h2 { font-size:1.3rem; }
  #game.scene-layout #viewport-main { grid-template-columns:minmax(0,1fr); grid-template-rows:clamp(5.5rem,17vh,10rem) minmax(0,1fr); }
  #game.scene-layout #control-dock { grid-column:1; grid-row:2; }
}
@media(max-height:540px) and (min-width:601px) {
  #game.scene-layout #viewport-main { grid-template-columns:minmax(0,1fr) minmax(22rem,52%); grid-template-rows:minmax(0,1fr); }
  #game.scene-layout #control-dock { grid-column:2; grid-row:1; }
  #game.scene-layout #status-overview { grid-template-columns:minmax(0,1fr) minmax(22rem,48%); }
  #game.scene-layout #crewstrip .crew-face,#game.scene-layout #crewstrip .crew-chip.intro-tag .crew-face { display:none; }
  #game.scene-layout #crewstrip .crew-chip { padding:.15rem .25rem; min-height:2.75rem; }
}

/* Fallback is explicit and readable, never a clipped paragraph. It is also
   the safe initial layout until the reader has real, positive measurements. */
#game.scene-layout:not(.reading-ready),#game.scene-layout.reading-fallback { --game-rows:auto max-content; overflow-y:auto!important; grid-template-rows:auto max-content!important; }
#game.scene-layout:not(.reading-ready) #viewport-main,#game.scene-layout.reading-fallback #viewport-main { min-height:0; grid-template-rows:max-content; align-items:start; }
#game.scene-layout:not(.reading-ready) #scene-column,#game.scene-layout.reading-fallback #scene-column { height:auto; }
#game.scene-layout:not(.reading-ready) #scene-stage,#game.scene-layout.reading-fallback #scene-stage { height:auto; aspect-ratio:1672/941; }
#game.scene-layout:not(.reading-ready) #panel,#game.scene-layout.reading-fallback #panel,
#game.scene-layout:not(.reading-ready) #story,#game.scene-layout.reading-fallback #story,
#game.scene-layout:not(.reading-ready) #flight-report,#game.scene-layout.reading-fallback #flight-report,
#game.scene-layout:not(.reading-ready) .flight-report-card,#game.scene-layout.reading-fallback .flight-report-card { height:auto!important; flex:none!important; }
#game.scene-layout:not(.reading-ready) .reading-body,#game.scene-layout.reading-fallback .reading-body { flex:none; height:auto!important; }
#game.scene-layout.reading-fallback #crewstrip { grid-template-columns:repeat(auto-fit,minmax(4.5rem,1fr))!important; }
@media(max-width:900px) and (min-height:541px) {
  #game.scene-layout:not(.reading-ready) #viewport-main,#game.scene-layout.reading-fallback #viewport-main { grid-template-rows:auto auto; }
}
@media(prefers-reduced-motion:reduce) {
  #game.scene-layout #crewstrip .crew-chip,#game.scene-layout #choices .choice,#modal .game-menu-item { animation:none!important; transition:none!important; }
}

/* Stage 6: safe default action when replacing a saved journey. */
#modal .restart-confirm .modal-actions { margin-top:1rem; }
#modal .restart-confirm .modal-actions button { min-height:3rem; }
#modal .restart-confirm .keep-journey { background:#315946; border-color:#315946; color:#fff8eb; }
#modal .restart-confirm .replace-journey { background:transparent; color:#72252e; border-color:#98515a; }

/* Secondary actions share one existing modal instead of occupying the HUD. */
#modal .game-menu-list { display:grid; gap:.625rem; margin:1rem 0 0; padding:0; }
#modal .game-menu-item {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:.25rem;
  width:100%;
  min-height:3rem;
  padding:.75rem .875rem;
  border:1px solid #bda984;
  border-radius:.5rem;
  background:#fffaf0;
  color:#34262a;
  box-shadow:none;
  text-align:left;
  font:600 1rem/1.35 system-ui,-apple-system,Segoe UI,sans-serif;
}
#modal .game-menu-item:hover { background:#f4e7cb; }
#modal .game-menu-item > span { color:#615448; font-size:.875rem; font-weight:400; line-height:1.4; }
#modal .game-menu-item:focus-visible { outline-color:#8a3545; }

