/* Loaded after Studio's light theme: the quest keeps its own theatrical palette. */
body .quest-arena .quest-body p{color:#eee9df!important;line-height:1.65}
body .quest-arena .quest-body .quest-portrait-intro{color:#ece9fa!important;font-size:clamp(17px,2vw,20px);max-width:680px;margin:0 auto 12px}
body .quest-arena .quest-body .quest-portrait-note{color:#c6cee3!important}
body .quest-arena .quest-facet .quest-facet-count{color:var(--facet-color)!important}
.quest-arena .quest-body h3:focus,.quest-arena .quest-scene h3:focus{outline:none}
.quest-arena .quest-scene{position:relative;display:block;isolation:isolate}
.quest-arena .quest-scene h3{position:absolute;left:20px;top:18px;max-width:calc(100% - 40px);margin:0;z-index:4;box-sizing:border-box;text-wrap:balance}
.quest-arena .quest-scene .quest-hero{height:80%;max-width:42%;z-index:2}
.quest-guest{position:absolute;bottom:12px;width:27%;height:69%;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;z-index:1;pointer-events:none}
.quest-guest-right{right:2%}.quest-guest-left{left:2%}
.quest-guest img{display:block;width:100%;height:calc(100% - 32px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 8px 12px #070d29aa)}
.quest-guest img[hidden]{display:none}
.quest-guest figcaption{background:#0b153de0;color:#ffe6ac;border:1px solid #d7bb7766;border-radius:20px;padding:5px 10px;font-size:14px;line-height:1.35;text-align:center;max-width:100%;box-sizing:border-box}
.quest-dialogue-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.quest-dialogue-heading .quest-speaker{margin:0}
.quest-arena .quest-inspect{position:static;min-height:44px;padding:8px 12px;font-size:14px;flex-shrink:0}
.quest-arena .quest-clue{border-left:2px solid #dbc080;background:#ffffff0a;padding:12px 16px;border-radius:4px}
.quest-arena .quest-clue[hidden]{display:none}
.quest-arena .quest-choice{transition:background-color .18s,transform .18s,box-shadow .18s;white-space:normal;line-height:1.45}
.quest-arena .quest-choice:hover{transform:translateY(-2px)}.quest-arena .quest-choice:active{transform:translateY(1px)}
.quest-arena .quest-choice:focus-visible{outline:3px solid #ffe2a1;outline-offset:3px}
.quest-arena .quest-finale{padding-inline:clamp(14px,3vw,38px)}
.quest-arena .quest-finale h3{font-size:clamp(26px,3.5vw,40px);line-height:1.2;text-wrap:balance;letter-spacing:0}
.quest-skill-map{max-width:680px}.quest-skill-map svg{overflow:hidden}.quest-skill-map figcaption{max-width:480px}
.quest-arena .quest-facet h4{line-height:1.3}.quest-facet summary{min-width:0}.quest-facet summary>span:nth-child(2){min-width:0}
.quest-editor input[type=checkbox]{display:inline-block;width:20px;height:20px;margin:0 10px 0 0;vertical-align:middle}
.quest-scene-enter{animation:quest-arrive .45s ease-out}
@keyframes quest-arrive{from{opacity:.25;filter:brightness(.75)}to{opacity:1;filter:brightness(1)}}
@media(max-width:600px){.quest-arena .quest-scene{min-height:300px}.quest-arena .quest-scene h3{left:12px;top:12px;max-width:calc(100% - 24px);font-size:20px;padding:8px 10px}.quest-arena .quest-scene .quest-hero{max-width:45%;height:72%}.quest-guest{width:28%;height:60%;bottom:8px}.quest-guest figcaption{font-size:12px;padding:4px 6px}.quest-map-label{display:none}.quest-skill-map svg{max-height:300px}.quest-facet-grid{gap:10px}.quest-dialogue-heading{gap:8px}.quest-arena .quest-body{padding:18px}.quest-arena .quest-speaker{font-size:13px}.quest-arena .quest-finale .quest-speaker{font-size:14px}}
@media(prefers-reduced-motion:reduce){.quest-scene-enter{animation:none}.quest-arena .quest-choice{transition:none}.quest-arena .quest-choice:hover{transform:none}}
/* Cast images are foreground actors, not the old translucent scene backdrop. */
.quest-arena .quest-scene .quest-guest img{position:static;inset:auto;opacity:1;object-fit:contain;filter:brightness(1.12) saturate(1.08) drop-shadow(0 3px 3px #fff3) drop-shadow(0 8px 10px #030918cc)}
.quest-arena .quest-scene .quest-touch{pointer-events:auto;cursor:pointer;touch-action:pan-y;transform-origin:50% 85%;user-select:none;-webkit-user-select:none}
.quest-arena .quest-scene .quest-touch:focus-visible{outline:2px solid #ffe2a1;outline-offset:4px;border-radius:12px}
.quest-arena .quest-guest{pointer-events:auto}
.quest-arena .quest-scene .quest-hero-symbol{display:grid;place-items:center;font-size:clamp(80px,15vw,180px)}
