/* The preview is the actual practice-window asset, not a separate prize. */
:root body #screen-game #tutorial-guide { width:min(100%, 470px); padding:4px 10px 8px; }
:root body #screen-game .tutorial-guidance {
    display:flex; align-items:center; justify-content:center; gap:14px; text-align:left;
}
:root body #screen-game .tutorial-window-preview {
    --tutorial-light:0;
    position:relative; flex:0 0 76px; width:76px; height:76px; overflow:hidden;
    border:3px solid #a77a3d; border-radius:7px; background:#173d40;
    box-shadow:0 2px 0 #3b2816, 0 0 16px rgb(241 187 84 / calc(.08 + .18 * var(--tutorial-light)));
}
:root body #screen-game .tutorial-window-preview img {
    display:block; width:100%; height:100%; object-fit:cover;
    filter:saturate(calc(.55 + .45 * var(--tutorial-light))) brightness(calc(.65 + .35 * var(--tutorial-light)));
    transition:filter 450ms ease;
}
:root body #screen-game .tutorial-copy {flex:1 1 auto; max-width:330px; min-width:0;}
:root body #screen-game #tutorial-instruction {font-size:.94rem; line-height:1.38;}
:root body #screen-game .board-tools .mark-tools button.tutorial-tool-prompt {
    outline:3px solid #ffe39b;outline-offset:3px;box-shadow:0 0 0 5px #8e5e23,0 0 18px #ffc661;
}
:root body.tutorial-reward #screen-game .tutorial-guidance {display:none;}
:root body.tutorial-reward #screen-game #tutorial-guide {text-align:center;}
:root body #screen-game #opening-clue-tip {
    flex:0 0 auto;max-width:32ch;margin:4px 12px 0;color:#f6e9ca;
    font:600 .83rem/1.35 var(--font-ui);text-align:center;text-shadow:0 1px 3px #082017;
}
:root body #screen-game #opening-clue-tip[hidden],
:root body.solved-phase-1 #screen-game #opening-clue-tip {display:none;}
:root body #screen-game .clue-col.opening-clue-target {outline:3px solid #f5cb70;outline-offset:-3px;}
@media (prefers-reduced-motion:no-preference) {
    :root body #screen-game .tutorial-window-preview.line-lit {animation:tutorial-window-light 680ms ease-out;}
    :root body #screen-game .board-tools .mark-tools button.tutorial-tool-prompt {animation:tutorial-tool-glow 1.3s ease-in-out infinite alternate;}
    @keyframes tutorial-tool-glow {from {box-shadow:0 0 0 4px #8e5e23,0 0 8px #ffc661;} to {box-shadow:0 0 0 5px #a8732b,0 0 20px #ffdb8b;}}
    @keyframes tutorial-window-light {
        0%,100% {transform:scale(1)}
        35% {transform:scale(1.035);box-shadow:0 2px 0 #3b2816,0 0 22px #e5bd70a0}
    }
}
@media (prefers-reduced-motion:reduce) {
    :root body #screen-game .tutorial-window-preview img {transition:none;}
}
@media (max-width:350px), (max-height:600px) {
    :root body #screen-game .tutorial-window-preview {flex-basis:60px;width:60px;height:60px;}
    :root body #screen-game .tutorial-guidance {gap:10px;}
    :root body #screen-game #tutorial-instruction {font-size:.86rem;line-height:1.3;}
}

/* Keep the active clue and the pane that satisfies it in the same light. */
#screen-game[data-tutorial="true"] .cell.lesson-outside {opacity:.6;}
#screen-game[data-tutorial="true"] .cell.marked.lesson-outside {opacity:.9;}
:root body #screen-game[data-tutorial="true"] #game-container .cell.tutorial-target:not(.filled):not(.marked) {
    outline:2px dashed #533716; outline-offset:-5px;
    box-shadow:inset 0 0 0 2px #e6af56;
    background:#f6d58d;
}
