/* puzzle.css: Puzzle screen (panel + scene). Colours from tokens.css only. Reference: maquettes/A2-Puzzle.dc.html. */
.puzzle-panel { gap: 12px; }
.puzzle-layout > .puzzle-scene { flex: 0 0 1012px; width: 1012px; height: 796px; position: relative; }
.puzzle-eyebrow-row { display: flex; align-items: center; gap: 8px; }
.puzzle-eyebrow-row .eyebrow { margin-right: auto; }
.puzzle-title { font-size: 32px; line-height: 1.05; }
.puzzle-timer { display: inline-flex; align-items: center; font-size: 14px; }
.puzzle-timer.is-over { color: var(--annotation-texte); }
.puzzle-body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow-y: auto; margin-right: -8px; padding-right: 8px; }

.puzzle-progress { display: flex; gap: 6px; align-items: center; }
.puzzle-seg { width: 20px; height: 8px; border-radius: 4px; background: var(--trait-fort); }
.puzzle-seg.is-done { background: var(--charbon); }
.puzzle-seg.is-current { background: var(--orange); }

.puzzle-prompt { font-size: 14.5px; line-height: 1.45; }
.puzzle-goal {
  display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px;
  border: 2px dashed var(--ciel); background: color-mix(in srgb, var(--blanc) 60%, transparent);
  font-size: 13.5px; line-height: 1.4;
}
.puzzle-ask { margin-top: 2px; }

.puzzle-options { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; text-align: left; box-sizing: border-box;
  border-radius: 14px; background: var(--blanc); border: 1.5px solid var(--trait-fort); cursor: pointer;
}
.opt code { font-size: 13px; font-weight: 500; color: var(--charbon); }
.opt span { font-size: 13px; line-height: 1.35; color: var(--texte-secondaire); }
.opt:hover:not(:disabled) { border-color: var(--charbon); }
.opt.is-selected { border: 2.5px solid var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--blanc)); padding: 9px 13px; }
.opt.is-right { border: 2.5px solid var(--sauge-fonce); background: var(--sauge-clair); padding: 9px 13px; }
.opt.is-wrong { border-color: var(--annotation); background: var(--diff-del-fond); opacity: 1; }
.opt.is-wrong code { text-decoration: line-through; }
.opt.is-ruled-out { opacity: .45; }
.opt.is-ruled-out code { text-decoration: line-through; }
.opt:disabled { cursor: default; }

.puzzle-terminal { min-height: 60px; }
.puzzle-hint, .puzzle-note { font-size: 13.5px; line-height: 1.4; }
.puzzle-hint { font-family: var(--font-mono); padding: 8px 12px; border-radius: 12px; background: var(--lin); }
.puzzle-note { color: var(--annotation-texte); }

.puzzle-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.puzzle-actions .puzzle-stars { margin-left: auto; }
.puzzle-stars { display: inline-flex; gap: 2px; color: var(--orange); }
.puzzle-stars .ic { stroke: var(--trait-fort); }
.puzzle-stars .ic.is-on { fill: var(--orange); stroke: var(--charbon); }

.puzzle-feedback { display: grid; gap: 6px; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.4; border-left: 4px solid; }
.puzzle-feedback.is-wrong { background: var(--diff-del-fond); border-color: var(--annotation-texte); }
.puzzle-feedback.is-right { background: var(--blanc); border-color: var(--sauge-fonce); border-top: 1px solid var(--trait); border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.puzzle-feedback-title { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.puzzle-result { display: flex; align-items: center; gap: 10px; }
.puzzle-takeaway { display: grid; gap: 4px; font-size: 14px; line-height: 1.4; }
.puzzle-nav { margin-top: 2px; }
.puzzle-tip { display: flex; gap: 12px; align-items: flex-start; margin-top: auto; }
.puzzle-tip img { width: 56px; height: 56px; flex: 0 0 56px; }
.puzzle-tip .bubble { color: var(--charbon); border-radius: 6px 16px 16px 16px; font-size: 13.5px; }
