/* 第三节课 · 互动游戏模块（噪声实验室 / 语音标签 / 语义训练 / 收音 / 执行 / 穿越） */
.l3g {
  --l3-ink: #16324f;
  --l3-muted: #5a7a96;
  --l3-line: rgba(40, 90, 140, 0.16);
  --l3-acc: #2f7fd4;
  --l3-acc2: #4aa3ef;
  --l3-ok: #2d8a5a;
  --l3-bad: #d65a5a;
  --l3-purple: #7b6cff;
  --l3-glass: rgba(255, 255, 255, 0.78);
  --l3-glass-strong: rgba(255, 255, 255, 0.9);
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  font-family: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--l3-ink);
  background:
    radial-gradient(120% 80% at 50% 0%, #e8f4ff 0%, #d6e9f8 45%, #c8dff0 100%);
}
.l3g *,
.l3g *::before,
.l3g *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
.l3g button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.l3g button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.l3g-toast {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 40;
  max-width: 86%;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(22, 50, 79, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  white-space: nowrap;
}
.l3g-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.l3g-toast.ok {
  background: rgba(40, 130, 80, 0.92);
}
.l3g-toast.bad {
  background: rgba(180, 60, 60, 0.92);
}

/* ========== noise-lab ========== */
.l3g-nl {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
  padding: 10px 12px 8px;
}
.l3g-nl-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.l3g-nl-reset {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--l3-line);
  background: var(--l3-glass-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(40, 90, 140, 0.08);
}
.l3g-nl-title {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.l3g-nl-body {
  display: grid;
  grid-template-columns: minmax(200px, 0.9fr) minmax(260px, 1.25fr);
  gap: 10px;
  min-height: 0;
}
.l3g-panel {
  background: var(--l3-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(40, 90, 140, 0.1);
  padding: 12px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.l3g-panel-title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}
.l3g-nl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.l3g-nl-sound {
  position: relative;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(40, 90, 140, 0.08);
  transition: border-color 0.15s, transform 0.15s;
}
.l3g-nl-sound:hover {
  transform: translateY(-1px);
}
.l3g-nl-sound.is-on {
  border-color: var(--l3-acc);
  background: linear-gradient(180deg, #f3f9ff, #fff);
}
.l3g-nl-sound .ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.l3g-nl-sound .check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--l3-acc);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  opacity: 0;
}
.l3g-nl-sound.is-on .check {
  opacity: 1;
}
.l3g-nl-vol {
  margin-top: auto;
  padding-top: 4px;
}
.l3g-nl-vol label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.l3g-nl-vol input[type="range"] {
  width: 100%;
  accent-color: var(--l3-acc);
  cursor: pointer;
}
.l3g-nl-vol-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: var(--l3-muted);
  margin-top: 2px;
}

.l3g-nl-mix {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.l3g-nl-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.l3g-nl-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--l3-line);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
}
.l3g-nl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.l3g-nl-card-top b {
  font-size: 12px;
}
.l3g-nl-play {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--l3-acc), var(--l3-acc2));
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.l3g-nl-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 2.6em;
}
.l3g-nl-wave {
  height: 28px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef6ff, #f8fbff);
  overflow: hidden;
}
.l3g-nl-wave canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.l3g-nl-join {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  height: 36px;
}
.l3g-nl-join::before,
.l3g-nl-join::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 2px;
  background: linear-gradient(90deg, rgba(47, 127, 212, 0.15), var(--l3-acc));
}
.l3g-nl-join::before {
  left: 8%;
  transform: rotate(12deg);
}
.l3g-nl-join::after {
  right: 8%;
  background: linear-gradient(90deg, var(--l3-acc), rgba(47, 127, 212, 0.15));
  transform: rotate(-12deg);
}
.l3g-nl-mixer {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--l3-acc), #5eb0f0);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(47, 127, 212, 0.35);
  z-index: 1;
}
.l3g-nl-fused {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--l3-line);
  padding: 8px;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.l3g-nl-fused canvas {
  width: 100%;
  height: 48px;
  display: block;
}
.l3g-nl-fuse-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--l3-acc), var(--l3-acc2));
  box-shadow: 0 8px 18px rgba(47, 127, 212, 0.28);
}
.l3g-nl-fuse-btn.is-playing {
  animation: l3g-pulse 1s ease infinite;
}
.l3g-nl-tip {
  margin: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--l3-muted);
}

/* ========== voice-label ========== */
.l3g-vl {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
  padding: 10px 12px 8px;
  background:
    radial-gradient(100% 80% at 70% 20%, rgba(180, 170, 255, 0.25), transparent 55%),
    radial-gradient(120% 80% at 50% 0%, #e8f4ff 0%, #d6e9f8 45%, #c8dff0 100%);
}
.l3g-vl-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.l3g-vl-title {
  margin: 0;
  justify-self: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.82);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.l3g-vl-reset {
  justify-self: end;
  border: 1px solid var(--l3-line);
  background: var(--l3-glass-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}
.l3g-vl-body {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1fr;
  gap: 10px;
  min-height: 0;
}
.l3g-vl-pool {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(240, 248, 255, 0.35));
}
.l3g-vl-bubble {
  position: absolute;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 14px rgba(40, 90, 140, 0.12);
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.15s;
  animation: l3g-float 4.5s ease-in-out infinite;
}
.l3g-vl-bubble:hover {
  transform: scale(1.06);
}
.l3g-vl-bubble.is-on {
  box-shadow: 0 0 0 3px var(--l3-acc), 0 8px 16px rgba(47, 127, 212, 0.25);
}
.l3g-vl-bubble.is-done {
  opacity: 0.35;
  filter: grayscale(0.4);
}
.l3g-vl-listen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}
.l3g-vl-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a3a58, #244a6c);
  color: #fff;
}
.l3g-vl-play {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ecfb4, #2bb8d4);
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}
.l3g-vl-wavebars {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.l3g-vl-wavebars span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, #7be7ff, #5aa8ff);
  height: 30%;
  opacity: 0.55;
}
.l3g-vl-player.is-playing .l3g-vl-wavebars span {
  animation: l3g-bar 0.9s ease-in-out infinite;
}
.l3g-vl-text {
  margin: 0;
  min-height: 2.8em;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--l3-ink);
}
.l3g-vl-ask {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--l3-muted);
}
.l3g-vl-drop {
  margin-top: auto;
  min-height: 64px;
  border: 2px dashed rgba(47, 127, 212, 0.45);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--l3-muted);
  transition: border-color 0.15s, background 0.15s;
}
.l3g-vl-drop.is-over {
  border-color: var(--l3-acc);
  background: rgba(47, 127, 212, 0.12);
}
.l3g-vl-drop.has-tag {
  border-style: solid;
  color: var(--l3-ink);
  background: #fff;
}
.l3g-vl-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  align-content: start;
}
.l3g-vl-tag {
  border: 1px solid var(--l3-line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(40, 90, 140, 0.06);
  cursor: grab;
}
.l3g-vl-tag:active {
  cursor: grabbing;
}
.l3g-vl-tag.is-picked {
  border-color: var(--l3-acc);
  background: #f0f7ff;
}
.l3g-vl-tag .ico {
  font-size: 15px;
}
.l3g-vl-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(22, 50, 79, 0.82);
  color: #fff;
}
.l3g-vl-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.l3g-vl-progress-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}
.l3g-vl-segs {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
  position: relative;
}
.l3g-vl-segs i {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}
.l3g-vl-segs i.on {
  background: #5ec8ff;
}
.l3g-vl-flag {
  position: absolute;
  top: -14px;
  left: calc(25% - 6px);
  font-size: 11px;
}
.l3g-vl-done {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #2a5f9e, #16324f);
  white-space: nowrap;
}
.l3g-vl-done:not(:disabled) {
  background: linear-gradient(135deg, var(--l3-acc), var(--l3-acc2));
}

/* ========== semantic-train ========== */
.l3g-st {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  height: 100%;
  padding: 10px 12px 8px;
}
.l3g-st-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.l3g-st-title {
  margin: 0;
  justify-self: center;
  grid-column: 1 / -1;
  justify-self: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(22, 50, 79, 0.85);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.l3g-st-actions {
  position: absolute;
  right: 12px;
  top: 10px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.l3g-st-reset {
  border: 1px solid var(--l3-line);
  background: var(--l3-glass-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
}
.l3g-st-continue {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: #9aa8b8;
}
.l3g-st-continue:not(:disabled) {
  background: linear-gradient(135deg, var(--l3-acc), var(--l3-acc2));
}
.l3g-st-stage {
  position: relative;
  border-radius: 22px;
  background: var(--l3-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 28px rgba(40, 90, 140, 0.1);
  overflow: hidden;
  min-height: 0;
}
.l3g-st-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.l3g-st-model {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(210px, 34%);
  aspect-ratio: 1.15 / 1;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a3554, #244a6e);
  color: #fff;
  border: 2px solid rgba(120, 190, 255, 0.45);
  box-shadow: 0 0 0 6px rgba(47, 127, 212, 0.08), 0 12px 28px rgba(22, 50, 79, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  z-index: 2;
  transition: box-shadow 0.2s, transform 0.15s;
}
.l3g-st-model.is-target {
  box-shadow: 0 0 0 6px rgba(47, 127, 212, 0.22), 0 12px 28px rgba(47, 127, 212, 0.35);
}
.l3g-st-model.is-flash {
  animation: l3g-pulse 0.45s ease;
}
.l3g-st-model b {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}
.l3g-st-net {
  width: 78%;
  height: 48%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px;
  align-content: center;
}
.l3g-st-net i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7dd3ff;
  justify-self: center;
  box-shadow: 0 0 8px rgba(125, 211, 255, 0.7);
}
.l3g-st-card {
  position: absolute;
  width: 112px;
  border: none;
  border-radius: 16px;
  background: #fff;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(40, 90, 140, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 3;
  cursor: grab;
  transition: transform 0.15s, opacity 0.25s, box-shadow 0.15s;
}
.l3g-st-card .ico {
  font-size: 20px;
}
.l3g-st-card.is-picked {
  box-shadow: 0 0 0 3px var(--l3-acc), 0 8px 18px rgba(47, 127, 212, 0.25);
  transform: scale(1.04);
}
.l3g-st-card.is-done {
  opacity: 0.28;
  pointer-events: none;
  filter: grayscale(0.3);
}
.l3g-st-card.is-dragging {
  opacity: 0.85;
  z-index: 8;
  cursor: grabbing;
}
.l3g-st-foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(22, 50, 79, 0.86);
  color: #fff;
}
.l3g-st-metric b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.l3g-st-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.l3g-st-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ec8ff, #7be7ff);
  transition: width 0.35s ease;
}
.l3g-st-acc {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
.l3g-st-acc small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
  margin-top: 2px;
}
.l3g-st-msg {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 6;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(22, 50, 79, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}
.l3g-st-msg.show {
  opacity: 1;
}

/* ========== listen-wait ========== */
.l3g-lw {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 16px;
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(170, 150, 255, 0.18), transparent 60%),
    radial-gradient(120% 80% at 50% 0%, #ece7ff 0%, #dde8f8 50%, #d2e4f4 100%);
}
.l3g-lw-pill {
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b7cff, #6a5cff);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(106, 92, 255, 0.28);
  cursor: default;
}
.l3g-lw-pill.is-clickable {
  cursor: pointer;
}
.l3g-lw-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.l3g-lw-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: l3g-dot 1.1s ease-in-out infinite;
}
.l3g-lw-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.l3g-lw-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.l3g-lw-dots i:nth-child(4) {
  animation-delay: 0.45s;
}
.l3g-lw-wave {
  width: min(920px, 94%);
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.l3g-lw-wave span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4fd8, #5ec8ff);
  height: 28%;
  opacity: 0.85;
  animation: l3g-bar 1s ease-in-out infinite;
}
.l3g-lw-caption {
  width: min(720px, 92%);
  min-height: 64px;
  padding: 14px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(40, 90, 140, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}
.l3g-lw-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.l3g-lw-tools button {
  border: 1px solid var(--l3-line);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--l3-ink);
  box-shadow: 0 4px 12px rgba(40, 90, 140, 0.1);
}

/* ========== task-exec ========== */
.l3g-te {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(100% 80% at 50% 0%, #eaf4ff 0%, #d9eaf8 55%, #cfe3f2 100%);
}
.l3g-te-card {
  width: min(520px, 92%);
  border-radius: 24px;
  background: var(--l3-glass-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 34px rgba(40, 90, 140, 0.12);
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.l3g-te-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--l3-muted);
}
.l3g-te-steps .step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f7ee;
  color: var(--l3-ok);
}
.l3g-te-steps .step.is-active {
  background: linear-gradient(135deg, var(--l3-acc), var(--l3-acc2));
  color: #fff;
}
.l3g-te-steps .chev {
  opacity: 0.45;
}
.l3g-te-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  justify-content: center;
}
.l3g-te-box {
  flex: 1;
  max-width: 180px;
  aspect-ratio: 1.05;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.25s, box-shadow 0.25s;
}
.l3g-te-box.recv {
  background: linear-gradient(160deg, #e7f4ff, #d5ebff);
}
.l3g-te-box.exec {
  background: linear-gradient(160deg, #efe8ff, #e0d6ff);
}
.l3g-te-box .ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.75);
}
.l3g-te-box.is-on {
  transform: scale(1.04);
  box-shadow: 0 10px 22px rgba(47, 127, 212, 0.22);
}
.l3g-te-box.is-done .ico {
  animation: l3g-pop 0.45s ease;
}
.l3g-te-arrow {
  font-size: 22px;
  font-weight: 900;
  color: var(--l3-acc);
  opacity: 0.7;
}
.l3g-te-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(40, 90, 140, 0.12);
  overflow: hidden;
}
.l3g-te-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--l3-acc), #7be7ff);
  border-radius: inherit;
}

/* ========== time-travel ========== */
.l3g-tt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1c33;
}
.l3g-tt-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: saturate(0.85);
}
.l3g-tt-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.l3g-tt-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(94, 200, 255, 0.55);
  box-shadow:
    0 0 18px rgba(94, 200, 255, 0.35),
    inset 0 0 18px rgba(180, 150, 255, 0.18);
  animation: l3g-tunnel 2.4s linear infinite;
}
.l3g-tt-ring:nth-child(2) {
  border-color: rgba(180, 150, 255, 0.55);
  animation-delay: -0.4s;
}
.l3g-tt-ring:nth-child(3) {
  animation-delay: -0.8s;
}
.l3g-tt-ring:nth-child(4) {
  border-color: rgba(180, 150, 255, 0.5);
  animation-delay: -1.2s;
}
.l3g-tt-ring:nth-child(5) {
  animation-delay: -1.6s;
}
.l3g-tt-core {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #9ad8ff 45%, transparent 70%);
  box-shadow: 0 0 40px 16px rgba(154, 216, 255, 0.55);
  animation: l3g-pulse 1.2s ease-in-out infinite;
  z-index: 2;
}
.l3g-tt-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.18) 0deg 1.2deg,
      transparent 1.2deg 18deg
    );
  mask: radial-gradient(circle, transparent 18%, #000 22%, #000 48%, transparent 52%);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 22%, #000 48%, transparent 52%);
  animation: l3g-spin 8s linear infinite;
  opacity: 0.55;
}

@keyframes l3g-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes l3g-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes l3g-bar {
  0%,
  100% {
    height: 28%;
    opacity: 0.55;
  }
  50% {
    height: 92%;
    opacity: 1;
  }
}
@keyframes l3g-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
@keyframes l3g-pop {
  0% {
    transform: scale(0.86);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes l3g-tunnel {
  0% {
    width: 8%;
    height: 8%;
    opacity: 0.95;
  }
  100% {
    width: 140%;
    height: 140%;
    opacity: 0;
  }
}
@keyframes l3g-spin {
  to {
    transform: rotate(360deg);
  }
}



/* ========== semantic test overlay ========== */
.l3g-st-test {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 8;
  width: min(92%, 360px);
  padding: 10px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(47, 127, 212, 0.22);
  box-shadow: 0 10px 28px rgba(22, 50, 79, 0.12);
  text-align: center;
}
.l3g-st-test-q,
.l3g-st-test-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--l3-muted);
}
.l3g-st-test-sent {
  margin: 6px 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: var(--l3-ink);
  line-height: 1.35;
}
.l3g-st-test-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.l3g-st-test-btn {
  border: 1px solid rgba(47, 127, 212, 0.28);
  background: linear-gradient(180deg, #fff, #eef6ff);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

/* ========== command-pick ========== */
.l3g-cp {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  gap: 10px;
  padding: 12px 12px 10px;
}
.l3g-cp-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}
.l3g-cp-head p {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--l3-muted);
  line-height: 1.4;
}
.l3g-cp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: auto;
  padding: 2px;
}
.l3g-cp-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 2px;
  text-align: left;
  border: 1.5px solid rgba(47, 127, 212, 0.2);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 20px rgba(22, 50, 79, 0.06);
}
.l3g-cp-card.is-on {
  border-color: #2f7fd4;
  box-shadow: 0 0 0 3px rgba(47, 127, 212, 0.18);
  background: linear-gradient(180deg, #f4f9ff, #e7f2ff);
}
.l3g-cp-emoji {
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  font-size: 22px;
  align-self: center;
}
.l3g-cp-card b {
  font-size: 15px;
  font-weight: 900;
}
.l3g-cp-card small {
  font-size: 11px;
  font-weight: 800;
  color: var(--l3-muted);
}
.l3g-cp-card p {
  margin: 0;
  grid-column: 2;
  font-size: 12px;
  font-weight: 700;
  color: var(--l3-ink);
  line-height: 1.35;
}
.l3g-cp-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.l3g-cp-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 10px;
  font-weight: 900;
  background: linear-gradient(180deg, #4aa3ef, #2f7fd4);
  color: #fff;
}
.l3g-cp-btn.ghost {
  background: #fff;
  color: var(--l3-ink);
  border: 1.5px solid rgba(47, 127, 212, 0.28);
}

/* ========== pipeline-journey ========== */
.l3g-pj {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  gap: 12px;
  padding: 14px 14px 12px;
}
.l3g-pj-head h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}
.l3g-pj-head p {
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--l3-muted);
}
.l3g-pj-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: center;
}
.l3g-pj-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 127, 212, 0.14);
  opacity: 0.45;
  transform: translateY(4px);
  transition: 0.28s ease;
}
.l3g-pj-step.is-on,
.l3g-pj-step.is-done {
  opacity: 1;
  transform: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(47, 127, 212, 0.3);
  box-shadow: 0 10px 24px rgba(22, 50, 79, 0.08);
}
.l3g-pj-step.is-on {
  box-shadow: 0 0 0 3px rgba(47, 127, 212, 0.16), 0 10px 24px rgba(22, 50, 79, 0.08);
}
.l3g-pj-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #4aa3ef, #2f7fd4);
}
.l3g-pj-step.is-done .l3g-pj-num {
  background: linear-gradient(180deg, #4ecf8a, #2d8a5a);
}
.l3g-pj-step b {
  display: block;
  font-size: 14px;
  font-weight: 900;
}
.l3g-pj-step p {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--l3-muted);
}
.l3g-pj-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(47, 127, 212, 0.12);
  overflow: hidden;
}
.l3g-pj-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4aa3ef, #2f7fd4);
  transition: width 0.35s ease;
}



/* ========== listen-wait mic-ask extras ========== */
.l3g-lw-prompt{
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--l3-ink);
}
.l3g-lw-wave.is-live span{
  animation-duration: 0.7s;
}

/* ========== asr-reveal ========== */
.l3g-ar{
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  height: 100%;
  padding: 14px 14px 12px;
  align-content: start;
}
.l3g-ar-head h3{
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 900;
}
.l3g-ar-head p{
  margin: 6px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--l3-muted);
}
.l3g-ar-wave{
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(47,127,212,.16);
}
.l3g-ar-wave span{
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg,#4aa3ef,#2f7fd4);
  opacity: .45;
}
.l3g-ar-wave.is-live span{
  animation: l3g-bar .75s ease-in-out infinite;
}
.l3g-ar-pipe{
  justify-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: var(--l3-muted);
  background: rgba(255,255,255,.7);
  border: 1px dashed rgba(47,127,212,.28);
  opacity: .45;
  transition: .25s ease;
}
.l3g-ar-pipe.is-on{
  opacity: 1;
  color: #fff;
  background: linear-gradient(180deg,#4aa3ef,#2f7fd4);
  border-style: solid;
  border-color: transparent;
}
.l3g-ar-card{
  justify-self: center;
  min-width: min(88%, 280px);
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  border: 1.5px solid rgba(47,127,212,.22);
  box-shadow: 0 12px 28px rgba(22,50,79,.1);
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: .28s ease;
}
.l3g-ar-card.is-show{
  opacity: 1;
  transform: none;
}
.l3g-ar-card small{
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--l3-muted);
  margin-bottom: 6px;
}
.l3g-ar-card b{
  font-size: 20px;
  font-weight: 900;
  color: var(--l3-ink);
}

@media (max-width: 720px) {
  .l3g-nl-body,
  .l3g-vl-body {
    grid-template-columns: 1fr;
  }
  .l3g-st-card {
    width: 96px;
    font-size: 11px;
  }
}
