:root{
  --night:#0c0912;
  --ink:#eee8f4;
  --muted:#ad9eba;
  --gold:#e8ca7c;
  --line:#3a2d49;
}

body{
  background:#0c0912;
  background-image:
    radial-gradient(circle at 14% -8%,#39264f 0,transparent 34%),
    radial-gradient(circle at 88% 88%,#24162f 0,transparent 38%);
  color:var(--ink);
}

.record-link,.speech,.gentle-note,footer,.theatre-kicker,.scene-status{color:#ad9eba}
.primary{background:#e8ca7c;color:#24182d;border-color:#f1dda4;box-shadow:0 8px 28px #0008}
.primary:hover{background:#f2da98}
.upload-panel,.selected-panel,.reveal,.recovery{color:#eee8f4}
.reveal{background:#171120;border-color:#49385a}
.domain-choices button{border-color:#49385a;color:#bbaec7}
.domain-choices button.available{border-color:#8d7450;color:#ead28d}
.domain-choices button.is-active{border-color:#e0bd70;color:#fff0bd;background:#382846;box-shadow:0 0 0 3px #c89c4f18,0 0 18px #a87a3645}
.domain-choices button[aria-pressed=true]{background:#3a2b48;color:#fff3cf}

.palm-stage{
  background:#0c0912;
  box-shadow:inset 0 0 70px #050308b8,0 18px 55px #0007;
}
.story-stage-wrap .palm-stage{border-color:#6a527c80}
.palm-stage__status{background:#171120ed;color:#eee8f4;box-shadow:0 7px 25px #0008}
.palm-stage__controls button{background:#171120ed;border-color:#e8ca7c66;color:#fff3d0}
.palm-stage__controls button:hover{background:#3a2b48}
.palm-stage[data-layer=depth] .palm-stage__status{background:#100b18f2}

.quest-hud,.story-caption{
  background:linear-gradient(145deg,#1b1227f4,#100b18f2);
  border-color:#8a6d4f80;
  box-shadow:0 18px 48px #0008;
}
.route-choices button,.story-chapters button,.mount-picker,.mount-choices button,.selection-context{
  background:#171120;
  border-color:#4b3b59;
  color:#eee8f4;
}
.story-chapters button[aria-pressed=true],.route-choices button[aria-pressed=true]{background:#5a436b;color:#fff3d0;border-color:#e8ca7c}
.director-controls #continueGuide{background:#e8ca7c;border-color:#e8ca7c;color:#24182d}
.evidence-panel,.discovery-item{
  background:linear-gradient(145deg,#1b1425,#110c19);
  border-color:#4a3958;
}
.discovery-item[data-tier=core]{background:radial-gradient(circle at 86% 16%,#e8ca7c22,transparent 29%),linear-gradient(145deg,#261a32,#171020);border-color:#8a704e}
.discovery-item.seen{background:#120d19}
.evidence-meaning{background:#e8ca7c0b}

.interpretation-card{
  background:linear-gradient(145deg,#1b1227f5,#100b18f5);
  border-color:#4d3c5b;
  color:#eee8f4;
  box-shadow:0 10px 28px #0007;
}
.interpretation-card.has-text{background:linear-gradient(145deg,#2a1c37f7,#171020f7);border-color:#967d55}
.interpretation-card.is-complete{border-color:#d7bd75}
.interpretation-card p{color:#c9bfd2}
.interpretation-card span,.interpretation-card i{color:#ad9eba}
.interpretation-finish{background:#171120f4;border-color:#f2d58c;box-shadow:0 0 0 9px #e9cf8a12,0 24px 70px #000c}

.interpretation-dialog{
  background:
    radial-gradient(circle at 82% 4%,#68458228,transparent 32%),
    radial-gradient(circle at 8% 100%,#42295435,transparent 38%),
    #0c0912;
  border-color:#8c72558c;
  color:#eee8f4;
  box-shadow:0 30px 110px #000e,inset 0 1px 0 #fff2bd12;
}
.interpretation-dialog::backdrop{background:#050308e8}
.interpretation-dialog__head{background:linear-gradient(180deg,#1b1227fa,#0c0912f3);border-bottom-color:#4b3a5980}
.interpretation-dialog__head span{color:#ad9eba}
.interpretation-dialog__head button{background:#171120;border-color:#69557b;color:#e9d49c}
.interpretation-dialog__head button:hover{background:#32223f}
.interpretation-dialog__body{scrollbar-color:#6c587a #0c0912}
.interpretation-sheet{background:linear-gradient(180deg,#0c091200,#24162f30)}
.interpretation-summary,.interpretation-combined{
  background:linear-gradient(135deg,#21162c,#130d1c);
  border-color:#574466;
}
.interpretation-insight-card{
  background:linear-gradient(145deg,#1b1227,#100b18);
  border-color:#493958;
  box-shadow:0 12px 30px #0005;
}
.interpretation-insight-card:hover{background:linear-gradient(145deg,#261832,#171020);border-color:#a28a5b}
.interpretation-insight-card p,.interpretation-summary p,.interpretation-combined p{color:#eee8f4}
.interpretation-insight-card footer,.interpretation-framework,.interpretation-advice small{color:#ad9eba}
.interpretation-advice,.interpretation-watch-list{background:#130d1c;border-color:#493958}
.interpretation-advice p,.interpretation-watch-list{color:#e8e1ed}

dialog{background:#0c0912;border-color:#5a466f;color:#eee8f4}
dialog::backdrop{background:#050308df}
.records-header{background:#171120;border-color:#3a2d49}
dialog iframe{background:#0c0912}

@media(prefers-reduced-motion:reduce){
  .interpretation-card,.interpretation-insight-card{transition:none}
}
