#tutorial-layer[hidden] { display:none; }
/* A transformed training scene can extend beyond the viewport. Keep browser
   focus/scroll-into-view from moving the fixed HUD with its off-screen scenery. */
body.in-tutorial { position:fixed; inset:0; overflow:hidden; }
#tutorial-layer { position:fixed; inset:0; z-index:100000; pointer-events:none; font-family:var(--ui-font); color:#f6fbff; }
#tutorial-spotlights { position:absolute; inset:0; }
#tutorial-panel { position:fixed; width:min(284px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:22px; border:1px solid #d4f6ff4d; border-radius:18px; background:linear-gradient(145deg,#18232ef5,#090d16fa); box-shadow:0 16px 50px #0008,inset 0 1px 0 #ffffff10; pointer-events:auto; box-sizing:border-box; }
#tutorial-chapter { color:#a9d7df; font-size:10px; font-weight:650; letter-spacing:.12em; margin:0 0 14px; }
#tutorial-title { font-size:24px; line-height:1.12; letter-spacing:-.025em; color:#fff; margin:0 0 16px; font-weight:800; text-shadow:0 0 18px #bcefff25; }
#tutorial-copy { font-size:14px; line-height:1.65; color:#c6d1dd; margin:0 0 18px; }
#tutorial-panel button { font:600 12px/1.4 var(--ui-font); min-height:44px; width:100%; padding:11px 12px; border-radius:10px; cursor:pointer; }
#tutorial-next { color:#10202a; background:#d6f6ff; border:1px solid #e6fbff; }
#tutorial-next[hidden] { display:none; }
#tutorial-exit, #tutorial-skip { margin-top:8px; color:#b9c6d5; background:transparent; border:1px solid #ffffff20; }
#tutorial-panel button:disabled { opacity:.45; cursor:wait; }
#tutorial-panel button:focus-visible { outline:3px solid white; outline-offset:3px; }
#tutorial-status { font-size:11px; line-height:1.5; color:#aab9cb; margin:14px 0 0; }
#tutorial-progress { width:100%; height:4px; margin:0 0 18px; accent-color:#c3f5ff; }
.tutorial-outline-target { fill:none; stroke:#c5f5ff; stroke-width:2.5; filter:drop-shadow(0 0 5px #77dfff); }
.tutorial-arrow { fill:none; stroke:#fff; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 6px #7edaff); }
.tutorial-outline-context { stroke-width:1.5;stroke:#a4d7dd; }
.tutorial-link { fill:none;stroke:#d6f6ff;stroke-width:2.5;stroke-dasharray:7 5;filter:drop-shadow(0 0 5px #8cdeef); }
#tutorial-panel { width:min(310px,calc(100vw - 24px)); }
#tutorial-title { font-size:22px;line-height:1.2;margin-bottom:12px; }
#tutorial-copy { font-size:13px;line-height:1.6; }
#tutorial-visual { margin:0 0 14px; }
#tutorial-visual[hidden] { display:none; }
.tutorial-card-study { position:relative;width:172px;margin:0 auto 8px; }
.tutorial-card-study>img { display:block;width:100%;height:auto;border-radius:9px; }
.study-mark { position:absolute;border:2px solid #c5f5ff;border-radius:8px;color:white;font:700 10px/1.1 var(--ui-font);text-shadow:0 1px 3px black;box-shadow:0 0 10px #aeefff66;display:flex;align-items:flex-end;justify-content:flex-end;padding:2px;box-sizing:border-box; }
.study-power { left:10%;top:8%;width:23%;height:17%; }
.study-cost { left:10%;top:28%;width:21%;height:20%; }
.study-mage { left:70%;top:8%;width:21%;height:15%;border-color:#fff2b5;box-shadow:0 0 13px #fff2b580; }
.study-movement { left:53%;top:64%;width:36%;height:25%; }
.study-spell { left:10%;top:8%;width:23%;height:17%;border-color:#fff2b5;font-size:8px; }
.tutorial-visual-caption { font-size:10px;line-height:1.5;color:#c5dae1;text-align:center;margin:0; }
.tutorial-symbol,.tutorial-trade { display:flex;align-items:center;justify-content:center;gap:12px;padding:10px;border:1px solid #ffffff18;border-radius:12px;background:#ffffff05; }
.tutorial-symbol img { width:70px;height:70px;object-fit:contain; }
.tutorial-symbol span { font-size:12px;line-height:1.5;color:#dce7ed; }
.tutorial-trade img { width:30px;height:30px;object-fit:contain; }
.tutorial-trade img.tutorial-mini-card { width:66px;height:90px; }
.tutorial-trade b { font-size:14px; }.tutorial-trade>span { color:#a5d9e5;font-size:22px; }
.tutorial-element-strip { display:grid;grid-template-columns:repeat(6,1fr);gap:5px; }
.tutorial-element-strip img { width:100%;border-radius:7px; }
.tutorial-flight p { font-size:11px;color:#cadbe2;margin:5px 0; }
.flight-lane { display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:10px; }
.flight-lane>span,.flight-lane>i { height:44px;display:flex;justify-content:center;align-items:center;border:1px solid #c5f5ff40;border-radius:6px;font-size:10px;color:#c5f5ff; }
.flight-lane img { width:28px;height:38px;object-fit:contain; }.flight-lane.blocked>span { border-color:#dfa99455; }
body[data-opponent="tutorial"] .dev-card-tools,body[data-opponent="tutorial"] [id^="dev-"],body[data-opponent="tutorial"] .tile-revealer:not(.camera-selector) { display:none; }
.tutorial-outline { padding-left:22px; color:#c5c6ce; line-height:2; font-size:14px; }
.tutorial-menu-actions { display:flex; flex-wrap:wrap; gap:12px; }
.tutorial-dev { margin-top:24px; border-top:1px solid #ffffff16; padding-top:18px; }
.tutorial-dev summary { color:#92949e; font-size:11px; cursor:pointer; }
/* Six destinations stay reachable without squeezing or wrapping their labels. */
.menu-header nav { min-width:0; overflow-x:auto; padding-bottom:4px; }
.menu-header nav button { flex-shrink:0; }
@media (min-width:581px) and (max-width:1100px) { .menu-header { flex-wrap:wrap; } .menu-header nav { width:100%; justify-content:space-between; } }
@media(max-width:700px) { #tutorial-panel { padding:15px; width:min(260px,calc(100vw - 24px)); } #tutorial-title {font-size:20px;} #tutorial-copy {font-size:12px;line-height:1.5;} }
@media(prefers-reduced-motion:reduce) { #tutorial-layer * { scroll-behavior:auto; animation:none; transition:none; } }
/* Keep the card-to-piece connection unobstructed during guided comparisons. */
body.in-tutorial .game-table[data-tutorial-focus='link'] .player-hand {
  transform: translate(-50%, var(--placement-hand-retreat, 180px));
  opacity: .12;
  pointer-events: none;
}
