/* ==================================================================
   老師講解／學生操作 雙模式｜共用樣式（2026-10-30）
   外層加法：只新增 .mode-* / .teach-* 規則，不覆蓋任何原有規則。
   學生操作＝原本的樣子；.teach-bar 在學生模式整條不顯示。
   ================================================================== */
.mode-bar { display:flex; flex-direction:column; align-items:center; gap:8px; margin:0 0 16px; }
.mode-bar .mode-row { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.mode-pill {
  min-height:52px; padding:8px 26px; border-radius:999px; cursor:pointer;
  font-size:21px; font-weight:700; font-family:inherit; line-height:1.3;
  background:transparent; color:var(--muted,#b6c9bf); border:2px dashed var(--rule,rgba(255,255,255,.28));
  touch-action:manipulation; transition:all .2s;
}
.mode-pill:hover:not(.active) { background:rgba(255,255,255,.08); color:var(--white,#f2ecd9); }
.mode-pill.active { background:var(--yellow,#fde047); color:var(--bg-base,#11261f); border:2px solid var(--yellow,#fde047); box-shadow:0 0 14px rgba(255,224,102,.35); }
.mode-pill:focus-visible, .teach-btn:focus-visible { outline:3px solid #55e9ff; outline-offset:3px; }
.mode-hint { font-size:17px; color:var(--muted,#b6c9bf); text-align:center; line-height:1.5; max-width:900px; }

/* 老師講解的控制列（只在老師模式出現） */
.teach-bar { display:none; width:100%; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; box-sizing:border-box; }
body.mode-teacher .teach-bar { display:flex; }
.teach-btn {
  min-height:34px; padding:3px 12px; border-radius:8px; cursor:pointer;
  font-size:15px; font-weight:700; font-family:inherit; line-height:1.3; white-space:nowrap;
  background:transparent; color:var(--green,#4ade80); border:2px solid var(--green,#4ade80);
  touch-action:manipulation; transition:all .2s;
}
.teach-btn:hover:not(:disabled) { background:var(--green,#4ade80); color:var(--bg-base,#11261f); }
.teach-btn:disabled { opacity:.4; cursor:not-allowed; }
.teach-btn.hot { background:var(--yellow,#fde047); color:var(--bg-base,#11261f); border-color:var(--yellow,#fde047); }
.teach-track { flex:1 1 140px; min-width:90px; height:8px; border-radius:6px; background:rgba(255,255,255,.14); overflow:hidden; }
.teach-fill { height:100%; width:0; background:var(--yellow,#fde047); border-radius:6px; transition:width .3s linear; }
.teach-note { flex:1 1 100%; text-align:center; font-size:18px; line-height:1.5; color:var(--yellow,#fde047); min-height:0; }
.teach-note:empty { display:none; }
/* 一般分頁（非動畫舞台內）的控制列：靠左緊湊一列 */
.teach-bar.teach-inline { margin:0 0 12px; padding:8px 12px; border:1px solid rgba(255,255,255,.18); border-radius:12px; background:rgba(255,255,255,.04); }
@media (max-width:700px) { .mode-pill { padding:6px 16px; font-size:19px; min-height:46px; } .mode-hint { font-size:16px; } }
