
/* Dance results and hidden scenes share the existing game's dark palette. */
[hidden] { display: none !important; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.controls button.secondary, .encounter button.secondary {
  background: #232a34; color: #f5f4ed; border: 1px solid #657284;
}
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #ace4ff; outline-offset: 4px; }
.progress-dot[data-result="unseen"] { background: #a1b3cd; }
.target[data-result="unseen"] { border-color: #a1b3cd; color: #dce8f9; }
.track .gate.unseen { background: #a1b3cd; opacity: .75; }
#feedback[data-kind="unseen"] { color: #dce8f9; }

.dance-print { width: min(100%, 580px); margin: 20px 0 12px; }
.dance-print figcaption { margin-bottom: 7px; color: #dce8f9; font-weight: 700; }
.dance-print canvas { display: block; width: 100%; height: auto; border: 1px solid #667287; border-radius: 8px; }
.dance-print p { font-size: 13px; margin: 6px 0 0; }

.encounter {
  width: min(550px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: clamp(16px, 3vw, 25px); color: #f5f4ed; background: #141921;
  border: 1px solid #6a788a; border-radius: 10px; overflow: auto;
}
.encounter::backdrop { background: #090d15dd; }
.encounter h2 { margin: 0 0 8px; font-size: clamp(23px, 4vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.encounter p { margin: 8px 0 14px; }
.encounter.scene { width: min(885px, calc(100% - 24px)); }
.encounter .scene-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.encounter .scene-head small { color: #ace4ff; font: 12px ui-monospace, monospace; letter-spacing: .09em; }
.encounter canvas { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid #69778c; }
.encounter .scene-line { min-height: 1.5em; color: #f5f4ed; font-weight: 700; }
.encounter #sceneTracking { color: #c9d2df; font-size: 13px; }
@media (max-width: 540px) {
  .encounter .scene-head { display: block; }
}

