#adventure-hud { position:fixed; top:58px; left:20px; z-index:20; max-width:min(540px,calc(100vw - 40px)); pointer-events:none; font-size:13px; text-shadow:0 2px 5px #000; }
#adventure-quest { margin:0 0 6px; color:#f3dfb7; line-height:1.4; }
#adventure-status { color:#c0d3df; font-size:12px; }
.adventure-tools { display:flex; gap:8px; margin-top:8px; pointer-events:auto; }
.adventure-tools button, .adventure-map-list button { min-height:44px; padding:8px 14px; color:#e1eaf0; background:#14212ee8; border:1px solid #758897; border-radius:5px; font:inherit; cursor:pointer; }
.adventure-tools button:focus-visible, .adventure-map-list button:focus-visible { outline:2px solid #ffd596; outline-offset:3px; }
#adventure-toast { position:fixed; left:50%; transform:translateX(-50%); bottom:88px; z-index:35; width:max-content; max-width:min(580px,70vw); box-sizing:border-box; padding:10px 16px; background:#0c182bed; border:1px solid #9aa9b755; color:#e6d6b7; border-radius:5px; font-size:13px; line-height:1.5; text-align:center; pointer-events:none; }
#touch #tDash { right:130px; width:52px; height:52px; font-size:12px; }
#touch #tAct { width:52px; height:52px; font-size:12px; }
#touch .tbtn { bottom:max(14px,env(safe-area-inset-bottom)); }
#touch #tJump { bottom:max(14px,env(safe-area-inset-bottom)); }
.adventure-copy { width:100%; max-width:720px; margin:0 auto; padding:16px 10px; box-sizing:border-box; }
.adventure-copy h2 { font-size:clamp(24px,4vw,38px); margin:0 0 18px; color:#f2d6a2; }
.adventure-copy p { font-size:15px; line-height:1.85; word-break:keep-all; color:#d5e1e8; }
.adventure-map-list { display:grid; gap:10px; }
.adventure-map-list button { text-align:left; }
.adventure-map-list button:disabled { opacity:.45; cursor:default; }
#panel.adventure-panel { background:#08131bf5; }
#panel.adventure-panel .pfoot { max-width:720px; }
@media(max-height:560px) {
  #adventure-hud { top:48px; left:14px; font-size:12px; }
  .adventure-tools { position:fixed; right:12px; top:56px; flex-direction:column; gap:5px; margin:0; }
  .adventure-tools button { font-size:11px; min-height:36px; padding:6px 10px; }
  #adventure-toast { font-size:12px; bottom:76px; padding:6px 12px; max-width:65vw; }
  .adventure-copy { padding:8px 4px; }
  .adventure-copy p { line-height:1.65; }
  #journey-count { font-size:11px; }
}
.adventure-copy>button { padding:12px 18px; min-height:44px; background:#e5c58d; color:#172331; border:0; border-radius:4px; font:inherit; cursor:pointer; }
#adventure-health { width:210px; margin:0 0 9px; padding:7px 10px; border:1px solid #b6d8e35c; border-radius:6px; background:#08131be8; box-shadow:0 3px 15px #0005; }
.health-caption { display:flex; align-items:center; justify-content:space-between; color:#e6f0e8; font-size:12px; line-height:1.2; }
.health-caption strong { font-variant-numeric:tabular-nums; font-weight:600; }
.health-track { display:block; margin-top:5px; height:7px; background:#31404d; border-radius:3px; overflow:hidden; }
#adventure-health-fill { display:block; width:100%; height:100%; background:linear-gradient(90deg,#73b9a6,#b0e3be); transition:width .18s linear; }
#adventure-health.low #adventure-health-fill { background:#ed8269; }
#adventure-health.hurt { border-color:#ec9277; box-shadow:0 0 15px #e55d3b66; }
#adventure-health.resting { border-color:#d5b782; }
@media(max-height:560px) { #adventure-health { width:175px; padding:5px 8px; margin-bottom:5px; } #adventure-quest { max-width:65vw; font-size:11px; } }
/* A quiet reading surface for the complete story. */
#panel.truth-panel { background:#f7f7f0; color-scheme:light; z-index:65; }
#panel.truth-panel #panelBody { max-width:760px; width:100%; padding:0 clamp(8px,3vw,32px); }
.truth-book { width:100%; max-width:640px; margin:0 auto; padding:24px 0 40px; box-sizing:border-box; color:#29343b; }
.truth-cover { padding-bottom:20px; border-bottom:1px solid #cdd3d4; }
.truth-book .truth-cover h2 { font-family:Georgia,'Batang',serif; font-size:clamp(28px,5vw,40px); color:#24394a; margin:0 0 12px; }
.truth-book p { color:#29343b; font-size:17px; line-height:1.95; word-break:keep-all; overflow-wrap:break-word; margin:0 0 20px; }
.truth-book .truth-cover p { font-size:14px; color:#52616b; margin:0; }
.truth-book section { padding:36px 0 4px; }
.truth-book h3 { font-size:22px; line-height:1.5; color:#24394a; margin:0 0 24px; scroll-margin-top:24px; word-break:keep-all; overflow-wrap:break-word; }
.truth-book .truth-colophon { font-size:13px; color:#52616b; padding-top:28px; border-top:1px solid #cdd3d4; }
.truth-contents { margin:16px 0 0; }
.truth-contents summary { display:list-item; cursor:pointer; color:#52616b; font-size:14px; min-height:44px; line-height:44px; }
.truth-contents button { display:block; width:100%; text-align:left; background:transparent; border:0; border-bottom:1px solid #cdd3d4; padding:12px 0; min-height:44px; color:#29343b; font:inherit; font-size:14px; cursor:pointer; }
.truth-contents button:focus-visible,.truth-contents summary:focus-visible,.truth-book h3:focus-visible { outline:2px solid #24394a; outline-offset:3px; }
#panel.truth-panel .pfoot { max-width:696px; border-top:1px solid #cdd3d4; }
#panel.truth-panel #btnClose { color:#29343b; background:transparent; border-color:#52616b; }
#panel.truth-panel #btnClose:focus-visible { outline:2px solid #24394a; outline-offset:3px; }
#panel.truth-panel #panelHint { color:#52616b; }
@media(max-height:560px) { .truth-book { padding-top:8px; } .truth-book p { font-size:16px; line-height:1.85; } }
