/* ═══════════════════════════════════════════════════════════════════════
   《钻探者 Drillers》新手手把手教学关样式（工业矿场琥珀橙 + 警示黄 + 铆钉深钢黑）
   层级对齐：
     游戏主体 (1..60) / 对话框与选牌弹窗 (.modal: 800) / 特效 (#fx: 900) / 提示 (950..980)
       < 压暗挖洞层 1050 / 讲解阻断层 1051
       < 照亮描边 1060 / 黄色点击手指 1062
       < 视觉对应增强层 SVG 1064 / 圈选环 1065 / 浮标与模拟卡 1066
       < 字幕框、结业页 1100
       < 横屏提示 (.rotate-hint: 2000)
   严禁给 .tut-root 设 z-index（绝不建层叠上下文）
   ═══════════════════════════════════════════════════════════════════════ */

.tut-root {
  pointer-events: none;
}

.tut-veil {
  position: fixed;
  inset: 0;
  z-index: 1050;
  pointer-events: auto;
  background: rgba(8, 9, 11, 0.36);
  transition: background 260ms ease;
}
.tut-veil.is-ready {
  background: rgba(8, 9, 11, 0.68);
}
.tut-veil.is-ready.is-info {
  background: rgba(8, 9, 11, 0.58);
}

.tut-block {
  position: fixed;
  inset: 0;
  z-index: 1051;
  pointer-events: auto;
  background: transparent;
}

/* ── 照亮描边框 ── */
.tut-ring {
  position: fixed;
  z-index: 1060;
  pointer-events: none;
  border-radius: 10px;
  border: 2px solid rgba(246, 194, 28, 0.94);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(246, 194, 28, 0.45),
    inset 0 0 12px rgba(255, 181, 46, 0.16);
  animation: drTutRingIn 220ms ease-out both;
}
.tut-ring.is-primary {
  border-color: #ffe08a;
  animation:
    drTutRingIn 220ms ease-out both,
    drTutRingPulse 1.5s ease-in-out 220ms infinite;
}
.tut-ring.is-nudge {
  animation: drTutRingNudge 380ms ease-out both;
}

@keyframes drTutRingIn {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: none; }
}
@keyframes drTutRingPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.8),
      0 0 16px rgba(246, 194, 28, 0.45),
      inset 0 0 12px rgba(255, 181, 46, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.8),
      0 0 28px rgba(255, 210, 96, 0.82),
      inset 0 0 18px rgba(255, 181, 46, 0.25);
  }
}
@keyframes drTutRingNudge {
  0% { border-color: #ff5d4d; transform: scale(1.04); }
  100% { border-color: #ffe08a; transform: none; }
}

/* ── 黄色点击手指 ── */
.tut-hand {
  position: fixed;
  z-index: 1062;
  pointer-events: none;
  width: 34px;
  height: 40px;
  transform: translate(-50%, -104%) rotate(180deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.68));
  animation: drTutHandDown 1.1s ease-in-out infinite;
}
.tut-hand.is-below {
  transform: translate(-50%, 4%);
  animation-name: drTutHandUp;
}
@keyframes drTutHandDown {
  0%, 100% { transform: translate(-50%, -112%) rotate(180deg); }
  50% { transform: translate(-50%, -96%) rotate(180deg); }
}
@keyframes drTutHandUp {
  0%, 100% { transform: translate(-50%, 12%); }
  50% { transform: translate(-50%, -2%); }
}

/* ── 字幕框（工业矿场调度台钢板质感）── */
.tut-caption {
  position: fixed;
  left: 50%;
  z-index: 1100;
  width: min(670px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}
.tut-caption.is-top { top: 54px; }
.tut-caption.is-bottom { bottom: 14px; }
.tut-caption.is-ready { opacity: 1; }

.tut-caption-plate {
  pointer-events: auto;
  position: relative;
  padding: 12px 16px 12px 18px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(36, 40, 46, 0.98) 0%, rgba(22, 24, 28, 0.98) 100%);
  border: 1px solid #4a505a;
  border-left: 4px solid var(--hazard, #f6c21c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.65);
  color: var(--txt, #efe9dc);
}
.tut-caption-plate::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9aa3ad, #3b4148 70%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.tut-caption-plate.is-shake {
  animation: drTutShake 380ms ease-out both;
}
@keyframes drTutShake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}

.tut-caption-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--dim, #a39d91);
}
.tut-speaker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--zh);
  font-size: 13.5px;
  color: var(--hazard, #f6c21c);
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.tut-speaker-emblem {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #14161a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(246, 194, 28, 0.52);
}
.tut-speaker-emblem .ic {
  width: 15px;
  height: 15px;
}
.tut-speaker-emblem.is-speaking {
  animation: drTutSpeak 0.9s ease-in-out infinite;
}
@keyframes drTutSpeak {
  0%, 100% {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(246, 194, 28, 0.52);
  }
  50% {
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 181, 46, 0.92),
      0 0 0 5px rgba(246, 194, 28, 0.18);
  }
}
.tut-chapter {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tut-step-num {
  font-family: var(--num);
  font-size: 13.5px;
  color: var(--dim, #a39d91);
  white-space: nowrap;
}
.tut-progress {
  flex: 1 1 auto;
  min-width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #0d0e10;
  box-shadow: inset 0 0 0 1px #2f333a;
  overflow: hidden;
}
.tut-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff9a1f, #f6c21c);
  transition: width 340ms ease;
}

.tut-caption-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
  color: #f4eee1;
  text-wrap: pretty;
}

.tut-caption-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.tut-spacer { flex: 1 1 auto; }

.tut-mini-btn {
  height: 34px;
  min-width: 46px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid #484e58;
  background: linear-gradient(180deg, #32363d, #23262b);
  color: #e4ded0;
  font-family: var(--zh);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.5);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.tut-mini-btn:hover {
  border-color: var(--hazard, #f6c21c);
  color: #fff;
}
.tut-mini-btn.is-muted {
  color: #8b857b;
}
.tut-mini-btn.is-skip.is-armed {
  border-color: rgba(255, 93, 77, 0.85);
  color: #ffd0c8;
  background: linear-gradient(180deg, #52231e, #361714);
}

.tut-vol-wrap {
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}
.tut-vol-wrap input[type="range"] {
  width: 62px;
  height: 4px;
  accent-color: #f6c21c;
  cursor: pointer;
}

.tut-next-btn {
  height: 38px;
  min-width: 108px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid #ffe08a;
  background: linear-gradient(180deg, #ffd65a 0%, #f6c21c 48%, #d4940c 100%);
  color: #1c1304;
  font-family: var(--zh);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #7a5200, 0 4px 14px rgba(246, 194, 28, 0.28);
  transition: filter 140ms ease, transform 100ms ease;
}
.tut-next-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.tut-next-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.tut-kbd {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(22, 14, 3, 0.2);
  color: #261904;
}

.tut-do-hint {
  font-size: 12.5px;
  color: rgba(255, 214, 114, 0.8);
  letter-spacing: 0.04em;
}
.tut-do-hint.is-strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffe08a;
}

/* ── 结业页（工业矿场战报风）── */
.tut-graduate {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: auto;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(246, 194, 28, 0.15), transparent 56%),
    radial-gradient(ellipse at 72% 82%, rgba(255, 132, 32, 0.12), transparent 52%),
    #101114;
  animation: drTutFadeIn 260ms ease-out both;
  overflow-y: auto;
}
@keyframes drTutFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tut-graduate-inner {
  width: min(660px, 100%);
  padding: 26px 28px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(35, 38, 44, 0.96), rgba(20, 22, 26, 0.98));
  border: 1px solid rgba(246, 194, 28, 0.42);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--txt, #efe9dc);
}
.tut-graduate-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--zh);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #ffb52e;
}
.tut-graduate-kicker .ic { width: 18px; height: 18px; }
.tut-score-pill {
  font-style: normal;
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(246, 194, 28, 0.18);
  border: 1px solid rgba(246, 194, 28, 0.55);
  color: #ffe08a;
}
.tut-graduate-title {
  margin: 10px 0 8px;
  font-size: clamp(30px, 5.5vw, 44px);
  letter-spacing: 0.12em;
  color: #ffe596;
  text-shadow: 0 3px 0 #000, 0 0 26px rgba(246, 194, 28, 0.3);
}
.tut-graduate-lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.65;
  color: #ddd5c6;
}
.tut-takeaways {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.tut-takeaways li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(14, 15, 18, 0.72);
  border: 1px solid #353942;
  border-left: 3px solid #f6c21c;
  animation: drTutTakeIn 240ms ease-out both;
  animation-delay: calc(50ms + var(--i, 0) * 65ms);
}
@keyframes drTutTakeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tut-takeaway-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 17px;
  color: #1c1304;
  background: linear-gradient(180deg, #ffe08a, #d89812);
}
.tut-takeaways strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--zh);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffe596;
}
.tut-takeaways span {
  font-size: 13px;
  line-height: 1.58;
  color: var(--dim, #a39d91);
}
.tut-graduate-note {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8f8a80;
}
.tut-graduate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tut-btn-main {
  height: 46px;
  padding: 0 24px;
  border-radius: 9px;
  border: 1px solid #ffe08a;
  background: linear-gradient(180deg, #ffd65a 0%, #f6c21c 48%, #d4940c 100%);
  color: #1c1304;
  font-family: var(--zh);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #7a5200, 0 6px 20px rgba(246, 194, 28, 0.3);
}
.tut-btn-main:hover { filter: brightness(1.08); }
.tut-btn-ghost {
  height: 46px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1px solid #4c525c;
  background: linear-gradient(180deg, #2d3138, #1e2126);
  color: #e4ded0;
  font-family: var(--zh);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.tut-btn-ghost:hover {
  border-color: var(--hazard, #f6c21c);
  color: #fff;
}

/* ── 大厅「新手教学 · 推荐」入口与角标 ── */
.lb-tut-btn {
  width: 100%;
  margin-top: 2px;
  border-color: #7c5c16;
  background: linear-gradient(180deg, #3a311a 0%, #272112 100%);
  color: #ffe8a3;
}
.lb-tut-btn.is-done {
  border-color: var(--line2);
  background: var(--metal-hi);
  color: var(--txt);
}
.dr-tut-rec-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 5px;
  font-family: var(--zh);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  color: #1c1304;
  background: linear-gradient(180deg, #ffe08a, #e2a214);
  box-shadow: 0 2px 8px rgba(246, 194, 28, 0.35);
}
@media (max-width: 760px) {
  .lobby:not(.room) {
    justify-content: flex-start;
    padding: 12px 12px 24px;
  }
  .lobby:not(.room) .lb-card {
    padding: 14px 14px 16px;
    gap: 8px;
  }
  .lobby:not(.room) .lb-logo {
    height: 70px;
  }
  .lobby:not(.room) .lb-sub {
    font-size: 11.5px;
  }
}
.tb-tut-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(246, 194, 28, 0.16);
  border: 1px solid rgba(246, 194, 28, 0.5);
  color: #ffe08a;
  font-family: var(--zh);
  font-size: 12px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════
   视觉对应增强层（TutorialAnnotations）：圈选环、流光弧线、循环模拟卡、图例卡
   ═══════════════════════════════════════════════════════════════════════ */
.tut-annot-svg {
  position: fixed;
  inset: 0;
  z-index: 1064;
  pointer-events: none;
  overflow: visible;
}
.tut-arc-march {
  animation: drTutMarch 1.15s linear infinite;
}
@keyframes drTutMarch {
  from { stroke-dashoffset: 26; }
  to { stroke-dashoffset: 0; }
}

.tut-spot-ring {
  position: fixed;
  z-index: 1065;
  pointer-events: none;
  border: 2.5px solid #ffd866;
  box-shadow:
    0 0 0 2px rgba(8, 9, 11, 0.88),
    0 0 16px rgba(246, 194, 28, 0.65),
    inset 0 0 10px rgba(246, 194, 28, 0.22);
  animation: drTutSpotPulse 1.5s ease-in-out infinite;
}
.tut-spot-ring.is-circle { border-radius: 50%; }
.tut-spot-ring.is-pill { border-radius: 999px; }
.tut-spot-ring.is-rect { border-radius: 9px; }
.tut-spot-ring.tone-amber {
  border-color: #ff9f38;
  box-shadow: 0 0 0 2px rgba(8, 9, 11, 0.88), 0 0 16px rgba(255, 159, 56, 0.68), inset 0 0 10px rgba(255, 159, 56, 0.22);
}
.tut-spot-ring.tone-cyan {
  border-color: #62c3ff;
  box-shadow: 0 0 0 2px rgba(8, 9, 11, 0.88), 0 0 16px rgba(98, 195, 255, 0.68), inset 0 0 10px rgba(98, 195, 255, 0.22);
}
.tut-spot-ring.tone-green {
  border-color: #66e08a;
  box-shadow: 0 0 0 2px rgba(8, 9, 11, 0.88), 0 0 16px rgba(102, 224, 138, 0.68), inset 0 0 10px rgba(102, 224, 138, 0.22);
}
.tut-spot-ring.tone-red {
  border-color: #ff7a6b;
  box-shadow: 0 0 0 2px rgba(8, 9, 11, 0.88), 0 0 16px rgba(255, 122, 107, 0.7), inset 0 0 10px rgba(255, 122, 107, 0.22);
}
@keyframes drTutSpotPulse {
  0%, 100% { transform: scale(1); opacity: 0.96; }
  50% { transform: scale(1.08); opacity: 1; }
}

.tut-callout-pill {
  position: fixed;
  z-index: 1066;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #ffd866;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(0, 0, 0, 0.6);
  text-align: center;
  line-height: 1.3;
}
.tut-callout-pill.is-compact { padding: 5px 10px; }
.tut-callout-pill strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tut-callout-pill span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 定制核心循环放大模拟动画卡（drill-sim，预留 padding-top: 20px 顶部滑道）── */
.tut-sim-card {
  position: fixed;
  z-index: 1066;
  pointer-events: none;
  padding: 10px 14px 12px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(36, 40, 46, 0.98), rgba(20, 22, 26, 0.99));
  border: 1.5px solid rgba(246, 194, 28, 0.78);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.78),
    0 0 22px rgba(246, 194, 28, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f3ede0;
  animation: drTutRingIn 220ms ease-out both;
}
.tut-sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.tut-sim-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--zh);
  font-size: 13.5px;
  color: #ffe08a;
  letter-spacing: 0.06em;
}
.tut-sim-title .ic { width: 15px; height: 15px; }
.tut-sim-tag {
  font-family: var(--zh);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 5px;
  color: #1c1304;
  background: linear-gradient(180deg, #ffe08a, #e2a214);
}

/* 顶部严格预留 20px 安全滑道（>= 18px），动画起落绝不撞标题或角标 */
.tut-sim-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr;
  align-items: center;
  padding: 20px 2px 6px;
}
.tut-sim-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.tut-sim-glyph {
  position: relative;
  width: 52px;
  height: 44px;
  border-radius: 9px;
  background: #101215;
  border: 1px solid #3c424b;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75);
}
.tut-sim-node b {
  font-family: var(--zh);
  font-size: 12px;
  font-weight: 400;
  color: #ffe6a0;
  white-space: nowrap;
}
.tut-sim-node small {
  font-size: 10.5px;
  color: var(--dim, #a39d91);
  white-space: nowrap;
}

.tut-sim-drill-bit .ic { width: 22px; height: 22px; animation: drSimDrill 3.2s ease-in-out infinite; }
.tut-sim-fuel-drop {
  position: absolute;
  left: 4px;
  top: 4px;
}
.tut-sim-fuel-drop .ic { width: 15px; height: 15px; animation: drSimFuel 3.2s ease-in-out infinite; }

.tut-sim-crate .ic { width: 24px; height: 24px; opacity: 0.9; }
.tut-sim-gem-drop {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translate(-50%, 0);
  animation: drSimGemDrop 3.2s cubic-bezier(0.22, 0.85, 0.3, 1) infinite;
}
.tut-sim-gem-drop .gem { width: 22px; height: 22px; display: block; }

.tut-sim-station .ic { width: 22px; height: 22px; color: #f6c21c; }
.tut-sim-coin-pop {
  position: absolute;
  right: 2px;
  top: -4px;
  animation: drSimCoinPop 3.2s ease-in-out infinite;
}
.tut-sim-coin-pop .ic { width: 18px; height: 18px; }

.tut-sim-arrow {
  display: grid;
  place-items: center;
  margin-top: -26px;
}
.tut-sim-arrow i {
  display: block;
  width: 14px;
  height: 14px;
  border-top: 2.5px solid #ff9f38;
  border-right: 2.5px solid #ff9f38;
  transform: rotate(45deg);
  animation: drSimFlow 1.6s ease-in-out infinite;
}

@keyframes drSimDrill {
  0%, 100% { transform: translateY(0); }
  20%, 34% { transform: translateY(4px) scale(1.06); filter: drop-shadow(0 0 6px #ffb52e); }
}
@keyframes drSimFuel {
  0%, 18% { opacity: 1; transform: scale(1); }
  32%, 50% { opacity: 0.45; transform: scale(0.86); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes drSimGemDrop {
  0%, 32% { transform: translate(-50%, -12px) scale(1.08); opacity: 0.72; }
  48%, 84% { transform: translate(-50%, 8px) scale(0.95); opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 214, 90, 0.85)); }
  95%, 100% { transform: translate(-50%, -12px) scale(1.08); opacity: 0.72; }
}
@keyframes drSimCoinPop {
  0%, 56% { transform: scale(0.86); opacity: 0.5; }
  70%, 92% { transform: scale(1.18) translateY(-3px); opacity: 1; filter: drop-shadow(0 0 8px #ffd866); }
  100% { transform: scale(0.86); opacity: 0.5; }
}
@keyframes drSimFlow {
  0%, 100% { opacity: 0.45; transform: rotate(45deg) translate(-2px, 2px); }
  50% { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }
}

.tut-sim-foot {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(246, 194, 28, 0.14);
  border: 1px solid rgba(246, 194, 28, 0.36);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffe8a3;
  text-align: center;
}

.tut-sim-card.is-still .tut-sim-gem-drop {
  transform: translate(-50%, 8px) scale(0.95);
  opacity: 1;
}
.tut-sim-card.is-still .tut-sim-coin-pop {
  transform: scale(1.1) translateY(-2px);
  opacity: 1;
}

/* ── 驾驶舱四项指标图例卡（track-legend）── */
.tut-track-legend {
  position: fixed;
  z-index: 1066;
  pointer-events: none;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(36, 40, 46, 0.97), rgba(20, 22, 26, 0.98));
  border: 1.5px solid rgba(246, 194, 28, 0.65);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.72);
  display: grid;
  gap: 6px;
  color: #f0eadd;
  animation: drTutRingIn 220ms ease-out both;
}
.tut-tl-row {
  display: grid;
  grid-template-columns: 10px 76px 1fr;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
}
.tut-tl-row strong { font-weight: 700; white-space: nowrap; }
.tut-tl-row span { color: var(--dim, #a39d91); font-size: 11px; }
.tut-tl-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.is-amber .tut-tl-dot { background: #ff9a1f; }
.is-amber strong { color: #ffbe66; }
.is-blue .tut-tl-dot { background: #3d9cff; }
.is-blue strong { color: #8cc8ff; }
.is-gold .tut-tl-dot { background: #f6c21c; }
.is-gold strong { color: #ffe08a; }
.is-purple .tut-tl-dot { background: #9b77e8; }
.is-purple strong { color: #ccb6ff; }

.tut-track-legend.is-mobile-grid {
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 8px 10px;
}
.tut-tl-cell {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.tut-tl-cell .tut-tl-dot { margin-top: 4px; flex: none; }
.tut-tl-cell strong { display: block; font-size: 11.5px; line-height: 1.25; }
.tut-tl-cell span { display: block; font-size: 10px; line-height: 1.25; color: var(--dim, #a39d91); }

/* ── 手机端紧凑排版 ── */
@media (max-width: 899px) {
  .tut-caption { width: calc(100vw - 14px); }
  .tut-caption.is-top { top: calc(6px + env(safe-area-inset-top, 0px)); }
  .tut-caption.is-bottom { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .tut-caption-plate { padding: 9px 11px 9px 13px; }
  .tut-caption-text { font-size: 14px; line-height: 1.5; }
  .tut-caption-actions { margin-top: 7px; gap: 5px; }
  .tut-mini-btn { height: 32px; padding: 0 8px; font-size: 12px; min-width: 42px; }
  .tut-vol-wrap { display: none; }
  .tut-next-btn { height: 36px; min-width: 86px; padding: 0 13px; font-size: 14px; }
  .tut-kbd { display: none; }
  .tut-callout-pill { padding: 5px 8px; }
  .tut-callout-pill strong { font-size: 11.5px; }
  .tut-callout-pill span { font-size: 10px; }
  .tut-sim-card { padding: 8px 10px 10px; }
  .tut-sim-stage { grid-template-columns: 1fr 16px 1fr 16px 1fr; padding: 20px 0 4px; }
  .tut-sim-glyph { width: 44px; height: 38px; }
  .tut-sim-node b { font-size: 11px; }
  .tut-sim-node small { font-size: 9.5px; }
  .tut-graduate { padding: 12px 12px; align-content: center; }
  .tut-graduate-inner { padding: 18px 16px 16px; }
  .tut-graduate-title { margin: 6px 0; font-size: 26px; }
  .tut-graduate-lead { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
  .tut-takeaways { gap: 7px; margin: 0 0 10px; }
  .tut-takeaways li { gap: 10px; padding: 8px 10px; }
  .tut-takeaway-num { width: 24px; height: 24px; font-size: 14px; }
  .tut-takeaways strong { font-size: 13.5px; }
  .tut-takeaways span { font-size: 12px; line-height: 1.45; }
  .tut-graduate-note { margin: 0 0 12px; font-size: 11.5px; line-height: 1.45; }
  .tut-btn-main, .tut-btn-ghost { height: 42px; font-size: 14px; padding: 0 15px; }
}

/* ── 静态截图模式（?still=1）── */
.tut-root.is-still .tut-ring,
.tut-root.is-still .tut-hand,
.tut-root.is-still .tut-speaker-emblem,
.tut-root.is-still .tut-caption-plate,
.tut-root.is-still .tut-takeaways li,
.tut-root.is-still .tut-spot-ring,
.tut-root.is-still .tut-callout-pill,
.tut-root.is-still .tut-sim-card,
.tut-root.is-still .tut-track-legend,
.tut-root.is-still .tut-arc-march,
.tut-root.is-still .tut-sim-drill-bit .ic,
.tut-root.is-still .tut-sim-fuel-drop .ic,
.tut-root.is-still .tut-sim-gem-drop,
.tut-root.is-still .tut-sim-coin-pop,
.tut-root.is-still .tut-sim-arrow i {
  animation: none !important;
}
