/* Only the unsaved tutorial page uses these controls and visual layers. */
body.entropyTutorial #btn_nextGame,
body.entropyTutorial #btn_undo,
body.entropyTutorial #btn_redo,
body.entropyTutorial #btn_undoAll,
body.entropyTutorial #btn_redoAll,
body.entropyTutorial #btn_finishTurn,
body.entropyTutorial #gameOptions .gameOptionsActions,
body.entropyTutorial #btnCancelGame { display: none !important; }
#entropyTutorialSpotlight { position: fixed; inset: 0; z-index: 1040; pointer-events: none; }
.entropyTutorialOutline { fill: none; stroke: #ffd36b; stroke-width: 2.5; stroke-linejoin: round; }
body.entropyTutorial #entropy .entropyMoveBonus.entropyTutorialBonus { display: block; }
#entropyTutorialDialog {
    position: fixed; z-index: 1042; width: min(480px, calc(100vw - 24px));
    max-height: calc(100vh - 140px); overflow-y: auto; color: #202b36; background: #fff;
    border: 1px solid #d7a642; border-radius: 8px; box-shadow: 0 5px 24px #0006;
    font: 14px/1.55 system-ui, sans-serif;
}
#entropyTutorialDialog header { background: #fff0c9; padding: 10px 16px 6px; border-radius: 8px 8px 0 0; }
#entropyTutorialDialog h2 { font-size: 1rem; margin: 0 0 4px; color: inherit; }
.entropyTutorialPosition { font-size: .75rem; margin: 0; color: #52606e; }
.entropyTutorialText { margin: 0; padding: 14px 16px; white-space: pre-line; }
.entropyTutorialControls { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
#entropyTutorialNext { margin-left: auto; }
.entropyTutorialContentsTitle { font-size: 1rem; margin: .75rem .6rem; }
.entropyTutorialChapter { font-size: .85rem; margin: .9rem .6rem .3rem; color: #52606e; }
.entropyTutorialEntry { display: flex; align-items: baseline; gap: .5rem; width: 100%; padding: .6rem;
    border: 0; border-bottom: 1px solid #ddd; background: transparent; color: inherit; text-align: left; font: inherit; }
.entropyTutorialEntry .bi-check-circle { color: #28723d; }
.entropyTutorialEntry:hover, .entropyTutorialEntry[aria-current] { background: #e5edf8; }
.entropyTutorialEntry:focus-visible { outline: 2px solid #3467a7; outline-offset: -2px; }
#btn_entropyTutorialReveal .buttonText { position: static !important; width: auto !important; height: auto !important;
    overflow: visible !important; clip-path: none !important; }

.entropyTutorialReading { padding: 14px 16px; }
.entropyTutorialReading .entropyTutorialText { padding: 0; }
.entropyTutorialReading h3 { font-size: .9rem; margin: 12px 0 4px; }
.entropyTutorialReading > p { margin-bottom: 10px; }
.entropyTutorialExample { margin: 8px 0 0; text-align: center; }
.entropyTutorialExampleArt { position: relative; display: inline-block; }
.entropyTutorialExampleArt > img { display: block; max-width: 270px; max-height: 190px; width: auto; height: auto; }
.entropyTutorialExampleRegion { position: absolute; border: 3px solid #d99800; background: #ffe29b22; pointer-events: none; box-sizing: border-box; }
.entropyTutorialExample figcaption { font-size: .75rem; color: #52606e; margin-top: 4px; }
.entropyTutorialScore { width: 100%; font-size: .8rem; }
.entropyTutorialScore caption { caption-side: top; color: #52606e; }
.entropyTutorialScore th, .entropyTutorialScore td { padding: 4px; border-bottom: 1px solid #dde2e8; }
.entropyTutorialScore td { text-align: right; white-space: nowrap; }
.entropyTutorialScoreTotal { font-weight: bold; }
