/* ============================================================
   首次引导
   ------------------------------------------------------------
   z-index 在倒计时(90)之下、面板(80)之上；顶栏(100)始终在最上面，
   引导卡挡不住老师切模式。
   ============================================================ */
.gd {
  position: fixed; inset: 0; z-index: 85;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(74, 63, 85, .34);
  backdrop-filter: blur(4px);
}
.gd[data-on="true"] { display: flex; }

.gd__card {
  width: min(520px, 100%);
  padding: 22px 22px 20px;
  border-radius: var(--r-xl);
  background: var(--c-card);
  box-shadow: 0 14px 0 rgba(0,0,0,.06), 0 40px 80px rgba(122,92,70,.3);
  display: flex; flex-direction: column; gap: 14px;
  animation: pop-in var(--t-mid) var(--ease-bounce);
}

.gd__head { display: flex; align-items: center; justify-content: space-between; }
.gd__title { font-size: 20px; font-weight: 800; letter-spacing: .02em; }
.gd__skip { font-size: 14px; color: var(--c-ink-soft); padding: 8px 12px; }

/* ---------- 每张卡 ---------- */
.gd__body { min-height: 230px; display: flex; align-items: center; justify-content: center; }
.gd__slide { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; animation: pop-in .3s var(--ease-out); }
.gd__art { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 150px; }
.gd__cap { font-size: 19px; font-weight: 800; text-align: center; }
.gd__sub { font-size: 14px; color: var(--c-ink-soft); text-align: center; margin-top: -8px; }

/* 三种玩法 */
/* 三张卡必须挤得进 390px 的手机：每张 flex:1 且 min-width:0，
   里面的字母格用小号，否则 390px 下左右两张会被裁掉。 */
.gd__art--modes { gap: 8px; align-items: stretch; width: 100%; }
.gd__mode {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 4px 10px; border-radius: var(--r-lg); background: var(--c-cream-2);
}
.gd__modeart { display: flex; align-items: center; justify-content: center; gap: 3px; height: 56px; }
.gd__modelabel { font-size: 15px; font-weight: 800; }

/* 字母格子（缩小版的答题格） */
.gd__tile {
  width: 54px; height: 54px; border-radius: var(--r-sm);
  background: linear-gradient(180deg, #fff, var(--tone-soft));
  box-shadow: 0 3px 0 var(--tone-line);
  display: flex; align-items: center; justify-content: center;
  position: relative; flex: 0 0 auto;
}
.gd__tile img { height: 70%; width: auto; }
.gd__mode .gd__tile { width: 36px; height: 36px; border-radius: 10px; }
.gd__mode .gd__speak { width: 36px; height: 36px; }
.gd__mode .gd__speak svg { width: 22px; height: 22px; }
/* 「点这里」的光圈，两个格子交替呼吸 */
.gd__tile--hit::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 3px solid var(--c-lemon);
  animation: gd-ring 1.4s var(--ease-out) infinite;
}
.gd__pair { display: flex; gap: 12px; }
.gd__pair .gd__tile { width: 64px; height: 64px; }
.gd__art { flex-wrap: nowrap; max-width: 100%; }
.gd__art > * { flex: 0 0 auto; }
.gd__arrow svg { width: 24px; height: 24px; }
.gd__pair .gd__tile:nth-child(2)::after { animation-delay: .7s; }
@keyframes gd-ring {
  0%   { opacity: 0; transform: scale(.85); }
  30%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* 喇叭 */
.gd__speak {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--c-sky), var(--c-grape));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 var(--c-grape-deep);
}
.gd__speak--big { width: 88px; height: 88px; box-shadow: 0 6px 0 var(--c-grape-deep), 0 14px 28px rgba(139,92,246,.3); }
.gd__speak--pulse { animation: gd-pulse 1.6s var(--ease-out) infinite; }
@keyframes gd-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.gd__arrow { color: var(--c-ink-soft); display: flex; }

/* 名字卡 + 奖杯 */
.gd__namecard {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-full);
  background: var(--c-mint); color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 0 var(--c-mint-deep);
}
.gd__trophy {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(160deg, #ffe08a, #f0ad00); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 0 #c98d00;
}

/* ---------- 底部 ---------- */
.gd__dots { display: flex; gap: 8px; justify-content: center; }
.gd__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-line); transition: all var(--t-fast); }
.gd__dot[data-on="true"] { width: 22px; border-radius: var(--r-full); background: var(--c-primary); }
.gd__next { width: 100%; justify-content: center; gap: 8px; padding: 15px 20px; font-size: 21px; }
