/* 新手教学 (tutorial-page.mjs; li 2026-11-06: 「我们现在的匹兹堡的新手教程很复杂且很卡，要不你直接重复做一版得了」): the game table's
   own sheets draw the top bar, map, hand, tabs and buttons; this sheet only adds the loading and retry line between the top bar and the table (the lessons are the coach layer's, public/coach.css). tokens only, so every theme */
body.pitt-tutorial { background: var(--ink); color: var(--text); }
.pitt-tutorial #app:not(:has(> .table)) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.pitt-tutorial .topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
/* the menu button with the wordmark keeps its width: the left group shrank under it on a phone and the right group's first button sat on its last letter (2026-11-24) */
.pitt-tutorial #app > .topbar .topbar-left { flex: none; }

/* the lesson bar: what to do now, a hint, and 下一步 once it is done */
.tutorial-coach { flex: 0 0 auto; position: relative; z-index: 44; padding: 8px max(16px, calc((100vw - 1920px) / 2 + 16px)); border-bottom: 1px solid var(--line); background: var(--panel); }
.tutorial-coach[hidden] { display: none; }
.tutorial-step { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tutorial-goal { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.tutorial-goal small { flex: 0 0 auto; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.tutorial-goal strong { min-width: 0; font-size: 16px; color: var(--text); }
.tutorial-step[data-done="true"] .tutorial-goal strong { color: var(--ok); }
.tutorial-actions { flex: 0 0 auto; display: flex; gap: 6px; }
.tutorial-actions button { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.tutorial-note { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.tutorial-note.done { color: var(--text); }
.tutorial-note b { color: var(--gold-hi); font-weight: 600; }
.tutorial-loading { margin: 0; color: var(--muted); }
.tutorial-actions [data-hint][aria-expanded="true"] { color: var(--gold-hi); background: var(--ui-selected); }

/* the 课程 menu and 组件图鉴 sit over the lesson bar (li 2026-11-07: 「各种字穿模以及我点了提示就没法关掉，还有就是点开课程下面有很大
   空白」): the bar hid the menu's first lessons and the guide's title and ✕ */
.pitt-tutorial .topbar { z-index: 46; }
.pitt-tutorial .component-guide { z-index: 70; }
.pitt-tutorial .guide-search { white-space: nowrap; }

/* a finished step leaves the table as it is: no 等待 line, the bar says what happened (and no 行动记录: table-view.mjs logHtml draws none here) */
.pitt-tutorial .spectator-list { display: none; }
#app[data-tutorial-done="true"] :is(.action-panel .action-hint, .mobile-sheet-header .sheet-card-summary) { visibility: hidden; }


/* phones: two short lines, the buttons beside the goal */
@media (max-width: 1100px) {
  .tutorial-coach { padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left)); }
  .tutorial-goal { flex-direction: column; align-items: flex-start; gap: 0; }
  .tutorial-goal small { font-size: 11px; }
  .tutorial-goal strong { font-size: 14px; line-height: 1.3; }
  .tutorial-actions button { min-height: 40px; padding: 4px 10px; }
  .tutorial-note { font-size: 13px; margin-top: 4px; }
}
/* a phone held sideways keeps its map: the bar floats over the map's top left */
@media (max-width: 1100px) and (orientation: landscape) and (max-height: 600px) {
  .tutorial-coach { position: absolute; left: 8px; top: 8px; width: min(46vw, 420px); border: 1px solid var(--line); border-radius: var(--r-md); z-index: 60; }
}
