/* The finale shares the world's stone, brass and fire. Text stays in the DOM. */
#mythscene{position:fixed;inset:0;width:100%;height:100%;z-index:18;pointer-events:none;display:none}
body.myth-scene #mythscene{display:block}
body.myth-scene .hud,body.myth-scene #actionbar,body.myth-scene #touchpad,body.myth-scene #memoryhint,body.myth-scene #chaptercard,body.myth-scene .boma-home{visibility:hidden}
body.myth-scene #dialog{top:50%;bottom:auto;left:58%;transform:translateY(-50%);width:38%;max-width:640px;min-width:0;max-height:88dvh;padding:32px;background:linear-gradient(120deg,#102027f5,#0b141ced);border:1px solid #c9ad6e40;border-top:2px solid #c9ad6e90;box-shadow:0 24px 80px #0008}
body.myth-scene #dialog .speakerportrait{display:none}
body.myth-scene #dialog .name{min-height:0;display:block;font-size:clamp(25px,2.5vw,38px);line-height:1.15;margin:14px 0 24px;color:#ead8ae}
body.myth-scene #dialog .txt{font-size:17px;line-height:1.75;color:#d4dbd7}
.myth-cap{font:10px/1.5 ui-monospace,monospace;text-transform:uppercase;letter-spacing:3px;color:#b9a67f}
.myth-quote{font:italic 21px/1.5 Georgia,serif;color:#e5c98f;border-left:1px solid #aa8e53;padding-left:18px;margin:22px 0}
.myth-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:24px}
.myth-nav button{min-height:44px}
.myth-secondary{background:transparent;border-color:#76887c55;color:#bac5bb}
.myth-choices{display:grid;gap:8px;margin:18px 0}
.myth-choice{display:block;width:100%;margin:0;text-align:left;padding:13px 15px;background:#13272b;border:1px solid #81978845;box-shadow:none}
.myth-choice b{display:block;color:#e6d6b1;font:19px/1.3 Georgia,serif;margin-bottom:5px}
.myth-choice span{display:block;font:12px/1.5 ui-monospace,monospace;color:#b6c3bd}
.myth-choice[aria-pressed=true]{background:#34453b;border-color:#d9bd77;box-shadow:inset 3px 0 #d9bd77}
.myth-choice:disabled span{color:#858d89}
.myth-choice:disabled b{color:#9a9b90}
.myth-detail{min-height:48px;font:14px/1.65 Georgia,serif;color:#c6d4cb}
.myth-bonds{font:12px/1.65 ui-monospace,monospace;color:#9bb4a3;margin:12px 0}
body.myth-scene button:focus-visible{outline:2px solid #e5cd8e;outline-offset:4px}
body.myth-scene #winscreen{left:56%;width:44%;inset-block:0;padding:40px;align-items:flex-start;text-align:left;background:linear-gradient(90deg,#08121b22,#08121be6 20%);z-index:31}
body.myth-scene #winscreen h1{font-size:clamp(32px,3.5vw,52px);letter-spacing:0;color:#e4d3aa}
body.myth-scene #winscreen .deeds{margin:0 0 24px;color:#a9bdaf}
body.myth-scene #winscreen .sub{font-size:18px}
body.myth-scene #winscreen button{min-height:46px}
@media(max-width:899px){
  body.myth-scene #dialog{top:auto;bottom:0;left:0;transform:none;width:100%;max-width:none;max-height:66dvh;padding:20px 24px 24px;background:linear-gradient(#0d1b24f5,#0b151dfc);border-inline:0;border-bottom:0;border-radius:0}
  body.myth-scene #dialog .name{font-size:27px;margin:10px 0 14px}
  body.myth-scene #dialog .txt{font-size:16px;line-height:1.6}
  .myth-quote{font-size:18px;margin:16px 0}.myth-nav{margin-top:16px}
  body.myth-scene #winscreen{left:0;top:34%;width:100%;height:66%;padding:24px;background:linear-gradient(#0b1724f2,#08121bfc);border-top:1px solid #ac955d66}
  body.myth-scene #winscreen .sub{font-size:16px}
}
@media(max-height:500px) and (min-width:600px){
  body.myth-scene #dialog{top:0;bottom:0;left:45%;width:55%;max-height:100dvh;padding:18px 22px}
  body.myth-scene #winscreen{left:45%;top:0;width:55%;height:100%;padding:20px}
}
