/* Only the unsaved tutorial page uses these controls and visual layers. */
body.thunderstoneTutorial #btn_nextGame,
body.thunderstoneTutorial #btn_undo,
body.thunderstoneTutorial #btn_redo,
body.thunderstoneTutorial #btn_undoAll,
body.thunderstoneTutorial #btn_redoAll,
body.thunderstoneTutorial #btn_finishTurn,
body.thunderstoneTutorial #gameOptions .gameOptionsActions,
body.thunderstoneTutorial #btnCancelGame { display: none !important; }
#thunderstoneTutorialSpotlight { position: fixed; inset: 0; z-index: 1040; pointer-events: none; }
.thunderstoneTutorialOutline { fill: none; stroke: #ffd36b; stroke-width: 2.5; stroke-linejoin: round; }
#thunderstoneTutorialDialog {
    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;
}
#thunderstoneTutorialDialog header { background: #fff0c9; padding: 10px 16px 6px; border-radius: 8px 8px 0 0; }
#thunderstoneTutorialDialog h2 { font-size: 1rem; margin: 0 0 4px; color: inherit; }
.thunderstoneTutorialPosition { font-size: .75rem; margin: 0; color: #52606e; }
.thunderstoneTutorialText { margin: 0; padding: 14px 16px; white-space: pre-line; }
.thunderstoneTutorialControls { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
#thunderstoneTutorialNext { margin-left: auto; }
.thunderstoneTutorialContentsTitle { font-size: 1rem; margin: .75rem .6rem; }
.thunderstoneTutorialChapter { font-size: .85rem; margin: .9rem .6rem .3rem; color: #52606e; }
.thunderstoneTutorialEntry { 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; }
.thunderstoneTutorialEntry .bi-check-circle { color: #28723d; }
.thunderstoneTutorialEntry:hover, .thunderstoneTutorialEntry[aria-current] { background: #e5edf8; }
.thunderstoneTutorialEntry:focus-visible { outline: 2px solid #3467a7; outline-offset: -2px; }
#btn_thunderstoneTutorialReveal .buttonText { position: static !important; width: auto !important; height: auto !important;
    overflow: visible !important; clip-path: none !important; }

.thunderstoneTutorialReading { padding: 14px 16px; }
.thunderstoneTutorialReading .thunderstoneTutorialText { padding: 0; }
.thunderstoneTutorialReading h3 { font-size: .9rem; margin: 12px 0 4px; }
.thunderstoneTutorialReading > p { margin-bottom: 10px; }
.thunderstoneTutorialCards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.thunderstoneTutorialCards figure { margin: 6px 0; max-width: 140px; text-align: center; }
.thunderstoneTutorialCards img { width: 120px; height: auto; }
.thunderstoneTutorialCards figcaption { font-size: .75rem; }
.thunderstoneTutorialAnatomy { margin: 12px 0 0; text-align: center; }
.thunderstoneTutorialAnatomyArt { position: relative; display: inline-block; width: min(220px, 100%); }
.thunderstoneTutorialAnatomyArt img { display: block; width: 100%; height: auto; }
.thunderstoneTutorialAnatomyRegion { position: absolute; border: 3px solid #ffcf4a;
    box-shadow: 0 0 0 1px #503500; background: #ffd36b22; border-radius: 5px; pointer-events: none; }
.thunderstoneTutorialAnatomy figcaption { font-size: .8rem; margin-top: 5px; }
.thunderstoneTutorialReading .tsHelp { display: inline-flex; align-items: center; justify-content: center;
    vertical-align: middle; width: 28px; height: 28px; padding: 4px; border: 1px solid #c1ac70;
    border-radius: 50%; background: #172b32; color: #fff4d4; cursor: pointer; }
.thunderstoneTutorialReading .tsHelp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.thunderstoneTutorialReading .tsHelp:focus-visible { outline: 2px solid #3467a7; outline-offset: 2px; }
