.game-shell.guided { height:100dvh;min-height:0;overflow:hidden; }
.guided .play-area { min-height:0;display:flex;flex-direction:column; }
.guided:not(.scene-open) #main { min-height:0;overflow:auto;flex:1;width:100%;padding-bottom:24px; }
.tutorial-dock { flex:none;min-width:0;max-height:32dvh;overflow:auto;background:#fcf9ed;border-top:1px solid #c6bb99; }
.guide-strip,.guide-tip { display:flex;align-items:center;gap:14px;padding:9px clamp(12px,2vw,30px); }
.guide-strip { position:relative; }
.guide-progress { position:absolute;inset:0 0 auto;width:100%;height:2px;margin:0;border-radius:0; }
.guide-count { display:flex;align-items:baseline;gap:4px;color:#715326;border-right:1px solid #d4c9a8;padding-right:14px; }
.guide-count span { font:600 1.6rem Georgia,serif; }
.guide-count small,.guide-speech small,.guide-kicker,.guide-tip small { font-weight:650;color:#776343;font-size:.74rem; }
.guide-speech { flex:1;min-width:0; }
.guide-speech strong,.guide-tip strong { font:700 1rem/1.4 var(--serif);color:#29433a; }
.guide-speech p,.guide-tip p,.guide-context p { font-size:.85rem;line-height:1.4;color:#4a594c; }
.guide-speech p,.guide-selection { word-break:keep-all;overflow-wrap:anywhere; }
.guide-selection { display:block;color:#77562c; }
.guide-resupply { display:flex;gap:6px;flex-wrap:wrap; }
.guide-resupply button { text-decoration:underline;text-underline-offset:3px;min-height:44px;font-size:.82rem;color:#29513e; }
.guide-choices,.guide-tools,.guide-folded { display:flex;align-items:center;gap:4px;flex-wrap:wrap; }
.guide-choices button,.guide-fold { min-height:44px;padding:3px 6px;text-decoration:underline;text-underline-offset:3px;color:#315240;font-size:.85rem; }
.guide-fold { min-width:44px; }
.guide-folded { justify-content:space-between;padding:2px clamp(8px,2vw,30px);font-size:.9rem;color:#314a3b; }
.guide-folded button,.guide-tip button { min-height:44px; }
.guide-tools { flex:none; }
.guide-under-threat .guide-speech p,.guide-under-threat .guide-choices { display:none; }
.guide-speech small { margin-right:5px; }
.guide-cta,.guide-help { flex:none;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #c2b99b;border-radius:5px; }
.guide-cta { background:#25483d;color:#fff9e8;padding:5px 12px;font-weight:650;font-size:.85rem; }
.guide-help { background:#f4f1e4;color:#3e594b; }
.guide-short { display:none; }
.guide-time { white-space:nowrap;font-size:.78rem;color:#4f634f; }
.guide-context { background:#f5efd9;border:1px solid #c3b587;border-radius:5px;padding:10px;margin:7px 0; }
.guide-context b { display:flex;align-items:center;gap:5px;color:#45583d;font-size:.93rem; }
.guide-context p { margin:4px 0 7px; }
.guide-context button { min-height:44px; }
.guide-tip { justify-content:space-between;background:#e8eedc;border-top:1px solid #c3cab6; }
.guide-tip small,.guide-tip strong { display:block; }
.guide-highlight:not(.estate-object) { outline:3px solid #ad701c;outline-offset:-2px;box-shadow:inset 0 0 0 4px #fff2bc; }
.world-tile.guide-highlight { z-index:3; }
.estate-object.guide-highlight .est-footprint { border:3px solid #fff2b0;box-shadow:0 0 0 2px #a96b1f,0 0 13px 5px #fff1a4c9; }
.estate-object.guide-highlight + .est-caption { display:block;background:#4d461f;color:#fff5c5;border:1px solid #e5cc76; }
.guide-link { text-decoration:underline;text-underline-offset:3px;color:#5d654e;min-height:44px; }
.guide-book-actions { display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:10px 0 15px; }
.guide-book-actions button { min-height:44px; }
#tutorial-dialog { width:490px;max-width:min(490px,calc(100vw - 20px)); }
#tutorial-dialog .dialog-inner { max-height:calc(100dvh - 42px); }
#tutorial-dialog h3 { margin-bottom:6px; }
#tutorial-dialog .dialog-close { min-height:44px;min-width:44px; }
.guide-index,.guide-tips { list-style:none;padding:0;margin:0 0 18px;border-top:1px solid var(--line); }
.guide-index button,.guide-tips li { display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--line);text-align:left;padding:8px 3px;width:100%; }
.guide-index button { min-height:44px; }
.guide-index button span,.guide-tips li>span { color:#846d46;font-weight:650;font-size:.85rem;white-space:nowrap; }
.guide-index small { margin-left:auto;color:var(--green); }
.guide-tips p { font-size:.85rem;color:var(--muted);margin-top:3px; }
.guide-reward,.guide-reward .resource-inline { display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px; }
.tutorial-dock {border-top:2px solid #9f8858;background:#f7f1e2}
.guide-progress {height:3px;accent-color:#a8874a}
#tutorial-dialog {border-color:#ab946b;background:#fff9ec}
#tutorial-dialog .dialog-inner {padding:0 20px 17px}
#tutorial-dialog .dialog-inner:not(:has(.guide-book-head)) {padding-top:24px}
.guide-book-head {margin:0 -20px 15px;padding:25px 48px 18px 20px;background:linear-gradient(90deg,#19362ff2,#19362fdb 54%,#19362f59),url(./assets/estate.webp) 62% 47%/cover;border-bottom:2px solid #baa16c;color:#fff5dd}
.guide-book-head .guide-kicker {color:#e9cb93}
#tutorial-dialog .guide-book-head h2 {margin:2px 0 0;font:700 1.6rem/1.4 var(--serif);color:#fff5dd}
#tutorial-dialog .dialog-inner:has(.guide-book-head) .dialog-close {background:#21382e;color:#fff3d7;border:1px solid #a18a5d;z-index:1;border-radius:4px}
.guide-index {border:1px solid #d0c3a7;border-radius:4px;background:#fffaf0}
.guide-index button {padding:7px 10px}
.guide-index li:last-child button {border-bottom:0}
.guide-index button span {color:#796333;font:650 1rem var(--serif)}
.guide-index button:hover {background:#eee7d5}
.guide-tips li>span {border-left:2px solid #a48a59;padding-left:6px}
@media(max-width:760px) {
  .guide-tools { flex-direction:column;gap:0; }
  .game-shell.guided { display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto; }
  .guided .bottom-nav { position:static; }
  .guide-strip,.guide-tip { gap:7px;padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left)); }
  .guide-count { align-self:stretch;flex-direction:column;align-items:center;justify-content:center;gap:0;padding-right:7px;line-height:1.05; }
  .guide-count span { font-size:1.28rem; }
  .guide-speech small { display:block;font-size:.68rem; }
  .guide-speech strong { font-size:.9rem; }
  .guide-speech p,.guide-tip p { font-size:.79rem; }
  .guide-cta { width:44px;padding:0; }
  .guide-full-label { display:none; }
  .guide-cta,.guide-help { flex-direction:column;gap:2px; }
  .guide-short { display:block;font-size:.66rem;line-height:1.1; }
  .guide-time { font-size:.74rem; }
  .guide-tip strong { font-size:.89rem; }
}
@media(max-height:520px) and (orientation:landscape) {
  .guide-strip,.guide-tip { gap:8px;padding:2px 10px; }
  .guide-speech small { display:none; }
  .guide-speech p { font-size:.76rem; }
  .guide-speech strong { font-size:.88rem; }
  .guide-count span { font-size:1.22rem; }
}
