[hidden] { display: none !important; }

.scenario-lab-shell {
  --scenario-panel: color-mix(in srgb, var(--card, #111827) 92%, transparent);
  --scenario-border: color-mix(in srgb, var(--border, #334155) 84%, transparent);
  --scenario-muted: color-mix(in srgb, var(--muted-foreground, #94a3b8) 92%, transparent);
  --scenario-purple: #8b5cf6;
  --scenario-purple-strong: #7c3aed;
  --scenario-purple-soft: #c4b5fd;
  --scenario-cyan: #22d3ee;
  --scenario-green: #34d399;
  --scenario-amber: #fbbf24;
  --scenario-red: #fb7185;
  min-height: 100vh;
  background:
    linear-gradient(rgb(148 163 184 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 2.5%) 1px, transparent 1px),
    radial-gradient(circle at 7% 3%, rgb(139 92 246 / 14%), transparent 30rem),
    radial-gradient(circle at 92% 14%, rgb(34 211 238 / 9%), transparent 34rem),
    #080d1b;
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  color: var(--foreground, #f8fafc);
}

.scenario-lab-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 2fr) minmax(0, 1fr);
  min-height: 50px;
  align-items: center;
  gap: .75rem;
  padding: .35rem clamp(.8rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--scenario-border);
  background: rgb(5 9 20 / 94%);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgb(2 6 23 / 22%);
}

.scenario-lab-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: inherit;
  font-size: .98rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -.015em;
}

.scenario-lab-brand-copy { min-width: 0; }

.scenario-lab-brand small {
  display: block;
  margin-top: .08rem;
  color: var(--scenario-muted);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scenario-lab-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgb(139 92 246 / 38%);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, var(--scenario-purple-strong), #4f46e5 55%, #0e7490);
  box-shadow: 0 8px 24px rgb(124 58 237 / 24%);
}

.scenario-lab-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
}

.scenario-lab-language-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: .35rem .68rem;
  border: 1px solid var(--scenario-border);
  border-radius: 999px;
  color: #ddd6fe;
  background: rgb(139 92 246 / 7%);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-decoration: none;
  text-transform: uppercase;
}

.scenario-lab-language-link:hover {
  border-color: rgb(34 211 238 / 35%);
  color: var(--scenario-cyan);
}

.scenario-lab-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(1rem, 3vw, 2.2rem);
  width: min(1420px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.7rem) 0 clamp(1.7rem, 4vw, 3rem);
}

.scenario-lab-kicker,
.scenario-lab-step-label {
  margin: 0 0 .75rem;
  color: var(--scenario-purple-soft);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.scenario-lab-context {
  margin: 0 0 .6rem;
  color: var(--scenario-muted);
  font-size: .8rem;
}

.scenario-lab-intro h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.scenario-lab-summary {
  max-width: 820px;
  margin: 1rem 0 0;
  color: var(--scenario-muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.65;
}

.scenario-lab-safety-card {
  display: flex;
  align-self: end;
  gap: .8rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgb(52 211 153 / 20%);
  border-radius: 18px;
  color: #d1fae5;
  background: linear-gradient(145deg, rgb(52 211 153 / 8%), rgb(15 23 42 / 25%));
  box-shadow: 0 18px 50px rgb(2 8 23 / 18%);
}

.scenario-lab-safety-card svg { flex: 0 0 auto; color: var(--scenario-green); }
.scenario-lab-safety-card p { margin: 0; font-size: .78rem; line-height: 1.55; }

.scenario-lab-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  width: min(1760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .85rem 0 3rem;
}

.scenario-lab-layout > .scenario-lab-main:only-child { grid-column: 1 / -1; }

.scenario-lab-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: .8rem;
  padding: .75rem;
  border: 1px solid rgb(148 163 184 / 10%);
  border-radius: 20px;
  background: rgb(10 16 31 / 92%);
  box-shadow: 0 28px 80px rgb(2 6 23 / 24%);
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  scrollbar-color: rgb(139 92 246 / 42%) transparent;
  scrollbar-width: thin;
}

.scenario-lab-progress-card,
.scenario-lab-mission-card,
.scenario-feedback {
  border: 1px solid var(--scenario-border);
  border-radius: 18px;
  background: var(--scenario-panel);
  box-shadow: 0 24px 80px rgb(2 8 23 / 18%);
}

.scenario-lab-progress-card { padding: .78rem .85rem; border-color: rgb(148 163 184 / 8%); background: rgb(255 255 255 / 1.8%); box-shadow: none; }
.scenario-lab-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .75rem; color: var(--scenario-muted); }
.scenario-lab-progress-heading strong { color: var(--foreground, #fff); font-size: .83rem; }
.scenario-lab-progress-track { height: 6px; margin-top: .75rem; overflow: hidden; border-radius: 999px; background: rgb(148 163 184 / 12%); }
.scenario-lab-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--scenario-purple); box-shadow: 0 0 14px rgb(139 92 246 / 28%); transition: width .25s ease; }

.scenario-lab-nav { display: grid; gap: .55rem; }
.scenario-lab-nav-group {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  opacity: .58;
  transition: border-color .16s ease, background .16s ease, opacity .16s ease, transform .16s ease;
}
.scenario-lab-nav-group:hover { transform: translateY(-1px); border-color: rgb(148 163 184 / 12%); background: rgb(255 255 255 / 2.2%); opacity: .84; }
.scenario-lab-nav-group.is-current { border-color: rgb(139 92 246 / 28%); background: rgb(255 255 255 / 3.4%); box-shadow: inset 3px 0 0 var(--scenario-purple); opacity: 1; }
.scenario-lab-nav-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  padding: .7rem .72rem .5rem;
  color: var(--scenario-muted);
}
.scenario-lab-nav-group.is-current .scenario-lab-nav-heading { color: #f8fafc; }
.scenario-lab-nav-index { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgb(148 163 184 / 10%); border-radius: 9px; background: rgb(148 163 184 / 5%); font-size: .68rem; font-weight: 800; }
.scenario-lab-nav-group.is-current .scenario-lab-nav-index { color: #fff; border-color: rgb(167 139 250 / 46%); background: var(--scenario-purple-strong); box-shadow: 0 7px 18px rgb(124 58 237 / 20%); }
.scenario-lab-nav-copy { min-width: 0; }
.scenario-lab-nav-copy strong { display: block; overflow: hidden; color: #aab4c6; font-size: .71rem; font-weight: 680; line-height: 1.4; text-overflow: ellipsis; }
.scenario-lab-nav-group.is-current .scenario-lab-nav-copy strong { color: #fff; font-size: .79rem; font-weight: 850; }
.scenario-lab-nav-copy small { display: block; margin-top: .2rem; color: #86efac; font-size: .64rem; }
.scenario-lab-nav-check { color: var(--scenario-green); font-weight: 900; opacity: 0; }
.scenario-lab-nav-group.is-complete .scenario-lab-nav-check { opacity: 1; }
.scenario-lab-subnav { display: grid; grid-template-columns: 1fr; gap: .38rem; padding: 0 .55rem .62rem; }
.scenario-lab-subnav-item {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: .42rem;
  padding: .48rem .55rem;
  border: 1px solid rgb(148 163 184 / 11%);
  border-radius: 10px;
  color: var(--scenario-muted);
  background: rgb(2 8 23 / 18%);
  font-size: .68rem;
  font-weight: 780;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.scenario-lab-subnav-item svg { flex: 0 0 auto; }
.scenario-lab-subnav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scenario-lab-subnav-item:hover { border-color: rgb(139 92 246 / 34%); color: #f5f3ff; background: rgb(139 92 246 / 7%); }
.scenario-lab-subnav-item[aria-current="page"] { border-color: rgb(167 139 250 / 48%); color: #fff; background: rgb(124 58 237 / 24%); box-shadow: inset 0 0 0 1px rgb(196 181 253 / 7%); }
.scenario-lab-subnav-outline {
  display: grid;
  gap: .18rem;
  margin: -.08rem 0 .06rem .75rem;
  padding: .32rem 0 .28rem .72rem;
  border-left: 1px solid rgb(148 163 184 / 16%);
}
.scenario-lab-subnav-outline--standalone { margin: 0 0 .18rem .75rem; }
.scenario-lab-subnav-outline-label { margin-bottom: .12rem; color: #778297; font-size: .52rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scenario-lab-subnav-section {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: .42rem;
  padding: .32rem .42rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8792a6;
  background: transparent;
  font-size: .64rem;
  font-weight: 720;
  line-height: 1.25;
  text-decoration: none;
}
.scenario-lab-subnav-section svg { flex: 0 0 auto; opacity: .72; }
.scenario-lab-subnav-section:hover { border-color: rgb(139 92 246 / 22%); color: #ddd6fe; background: rgb(139 92 246 / 6%); }
.scenario-lab-subnav-section[aria-current="step"] { border-color: rgb(167 139 250 / 35%); color: #fff; background: rgb(124 58 237 / 14%); }

.scenario-sidebar-information { display: grid; gap: .35rem; }
.scenario-sidebar-information > details { overflow: hidden; border: 1px solid rgb(148 163 184 / 9%); border-radius: 11px; background: rgb(255 255 255 / 1.5%); }
.scenario-sidebar-information > details > summary { display: flex; min-height: 36px; align-items: center; gap: .5rem; padding: .48rem .58rem; color: #9aa5b8; font-size: .67rem; font-weight: 750; cursor: pointer; }
.scenario-sidebar-information > details[open] > summary { color: #ddd6fe; background: rgb(139 92 246 / 5%); }
.scenario-sidebar-information > details > p,
.scenario-sidebar-information-body { margin: 0; padding: .12rem .7rem .72rem; color: #8f9bad; font-size: .65rem; line-height: 1.55; }
.scenario-sidebar-information-body strong { display: block; color: #e2e8f0; font-size: .68rem; line-height: 1.45; }
.scenario-sidebar-information-body p { margin: .35rem 0 0; }
.scenario-sidebar-information-body a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .58rem; color: #c4b5fd; font-weight: 780; text-decoration: none; }
.scenario-sidebar-information-body a:hover { color: #fff; text-decoration: underline; }
.scenario-sidebar-transcript { max-height: 11rem; overflow-y: auto; }
.scenario-sidebar-private-note {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: .18rem .45rem 0;
  padding: .3rem .35rem;
  color: var(--scenario-muted);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .06em;
  opacity: .42;
  text-transform: uppercase;
}
.scenario-sidebar-private-note svg { width: 11px; height: 11px; }

.scenario-lab-main { min-width: 0; display: grid; gap: 1rem; }
.scenario-lab-mission-card { padding: clamp(1rem, 3vw, 1.7rem); }
.scenario-lab-mission-heading { display: grid; gap: .25rem; margin-bottom: 1.25rem; }
.scenario-lab-mission-heading p { max-width: 920px; margin: 0; font-size: .98rem; line-height: 1.6; }

.scenario-artifact {
  padding: clamp(.85rem, 2vw, 1.2rem);
  border: 1px solid color-mix(in srgb, var(--scenario-border) 76%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 1%)),
    rgb(2 8 23 / 22%);
}

/* Browser simulation */
.scenario-browser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.scenario-browser { overflow: hidden; border: 1px solid rgb(148 163 184 / 20%); border-radius: 16px; background: #f8fafc; color: #0f172a; box-shadow: 0 14px 40px rgb(2 8 23 / 18%); transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.scenario-browser-selectable { width: 100%; padding: 0; appearance: none; font: inherit; text-align: inherit; cursor: pointer; }
.scenario-browser-selectable:hover:not(:disabled) { border-color: #67e8f9; box-shadow: 0 0 0 2px rgb(6 182 212 / 10%), 0 16px 45px rgb(2 8 23 / 22%); transform: translateY(-2px); }
.scenario-browser-selectable:focus-visible { outline: 3px solid rgb(34 211 238 / 40%); outline-offset: 3px; }
.scenario-browser.is-selected { border-color: #06b6d4; box-shadow: 0 0 0 3px rgb(6 182 212 / 18%), 0 16px 45px rgb(2 8 23 / 22%); transform: translateY(-2px); }
.scenario-browser-choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .65rem; align-items: center; margin: .65rem; padding: .7rem .75rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.scenario-browser-selectable.is-selected .scenario-browser-choice { border-color: #0891b2; background: #ecfeff; }
.scenario-browser-selectable.is-correct-answer { border-color: #34d399; }
.scenario-browser-selectable.is-wrong-selection { border-color: #fb7185; }
.scenario-browser-selectable:disabled { cursor: default; }
.scenario-browser-chrome { display: grid; grid-template-columns: 8px 8px 8px minmax(0, 1fr); gap: 5px; align-items: center; padding: .55rem .65rem; background: #e2e8f0; }
.scenario-browser-chrome > span { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.scenario-browser-chrome > strong { overflow: hidden; margin-left: .35rem; color: #475569; font-size: .62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.scenario-browser-address { display: flex; align-items: center; gap: .45rem; margin: .6rem; padding: .48rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; }
.scenario-browser-address svg { flex: 0 0 auto; color: #64748b; }
.scenario-browser-address code { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.scenario-browser-page { display: grid; min-height: 175px; place-items: center; align-content: center; padding: 1rem; text-align: center; }
.scenario-browser-google { display: grid; width: 46px; height: 46px; margin-bottom: .65rem; place-items: center; border-radius: 50%; color: #2563eb; background: #eff6ff; font-size: 1.45rem; font-weight: 900; }
.scenario-browser-page h2 { margin: 0; font-size: .95rem; }
.scenario-browser-page p { margin: .45rem 0 0; color: #64748b; font-size: .7rem; line-height: 1.5; }

/* Email simulation */
.scenario-email { max-width: 880px; margin: 0 auto; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 18px 45px rgb(2 8 23 / 20%); }
.scenario-email header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid #e2e8f0; }
.scenario-avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: #334155; font-size: .7rem; font-weight: 850; }
.scenario-email header strong, .scenario-email header span { display: block; }
.scenario-email header strong { font-size: .85rem; }
.scenario-email header span { margin-top: .12rem; color: #64748b; font-size: .68rem; }
.scenario-email h2 { margin: 0; padding: 1rem 1.1rem .2rem; font-size: 1.05rem; }
.scenario-email > p { margin: 0; padding: .5rem 1.1rem 1rem; color: #334155; font-size: .82rem; line-height: 1.65; }
.scenario-attachment { display: inline-flex; align-items: center; gap: .5rem; margin: 0 1.1rem 1.1rem; padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #f8fafc; font-size: .72rem; }
.scenario-attachment small { padding: .18rem .4rem; border-radius: 5px; color: #9f1239; background: #ffe4e6; font-size: .55rem; font-weight: 900; }

/* Payment simulation */
.scenario-payment { max-width: 860px; margin: 0 auto; padding: 1.2rem; border: 1px solid #cbd5e1; border-radius: 18px; background: #fff; color: #0f172a; box-shadow: 0 18px 45px rgb(2 8 23 / 20%); }
.scenario-payment-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e2e8f0; }
.scenario-payment-heading span, .scenario-payment-heading small { display: block; }
.scenario-payment-heading span { font-size: .9rem; font-weight: 850; }
.scenario-payment-heading small { margin-top: .15rem; color: #64748b; font-size: .68rem; }
.scenario-payment-heading > strong { color: #0f766e; font-size: 1.25rem; white-space: nowrap; }
.scenario-payment-invoice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: .7rem .8rem; border-radius: 10px; background: #f1f5f9; font-size: .7rem; }
.scenario-payment-invoice strong { font-size: .8rem; }
.scenario-payment > p { color: #334155; font-size: .8rem; line-height: 1.65; }
.scenario-bank-change { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .8rem; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.scenario-bank-change svg { color: #b45309; }
.scenario-bank-change div { min-width: 0; flex: 1; }
.scenario-bank-change small, .scenario-bank-change strong { display: block; }
.scenario-bank-change small { color: #92400e; font-size: .64rem; }
.scenario-bank-change strong { margin-top: .12rem; color: #78350f; font-size: .85rem; }
.scenario-bank-change > span { padding: .2rem .45rem; border-radius: 999px; color: #92400e; background: #fef3c7; font-size: .55rem; font-weight: 900; }

/* Phone/MFA simulation */
.scenario-phone { width: min(100%, 330px); margin: 0 auto; padding: .7rem; border: 7px solid #020617; border-radius: 34px; background: #020617; box-shadow: 0 24px 60px rgb(2 8 23 / 42%); }
.scenario-phone-speaker { width: 76px; height: 5px; margin: .15rem auto .5rem; border-radius: 999px; background: #334155; }
.scenario-phone-status { display: flex; justify-content: space-between; padding: 0 .55rem .45rem; color: #94a3b8; font-size: .58rem; }
.scenario-phone-app { min-height: 430px; padding: 1.1rem; border-radius: 24px; background: linear-gradient(180deg, #f8fafc, #e2e8f0); color: #0f172a; text-align: center; }
.scenario-phone-app-icon { display: grid; width: 50px; height: 50px; margin: .35rem auto .7rem; place-items: center; border-radius: 15px; color: #fff; background: #2563eb; }
.scenario-phone-app h2 { margin: 0; font-size: 1rem; }
.scenario-phone-app > p { margin: .4rem 0 .1rem; color: #475569; font-size: .72rem; }
.scenario-phone-app > small { color: #64748b; font-size: .62rem; }
.scenario-mfa-stack { display: grid; gap: .55rem; margin-top: 1rem; }
.scenario-mfa-stack div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .72rem; border: 1px solid #cbd5e1; border-radius: 12px; background: rgb(255 255 255 / 82%); text-align: left; }
.scenario-mfa-stack strong { color: #64748b; font-size: .62rem; }
.scenario-mfa-stack span { font-size: .7rem; font-weight: 750; }

.scenario-decision-list { display: grid; gap: .65rem; margin-top: 1rem; }
.scenario-option {
  display: grid;
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding: .85rem .95rem;
  border: 1px solid var(--scenario-border);
  border-radius: 14px;
  color: var(--foreground, #f8fafc);
  background: rgb(255 255 255 / 2.5%);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.scenario-option:hover:not(:disabled) { transform: translateY(-1px); border-color: rgb(34 211 238 / 35%); background: rgb(34 211 238 / 4%); }
.scenario-option:focus-visible { outline: 3px solid rgb(34 211 238 / 35%); outline-offset: 2px; }
.scenario-option-marker { position: relative; display: grid; width: 18px; height: 18px; margin-top: .08rem; place-items: center; border: 2px solid #64748b; background: transparent; }
.scenario-lab-shell[data-decision-mode="single"] .scenario-option-marker { border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; }
.scenario-lab-shell[data-decision-mode="multi"] .scenario-option-marker { border-radius: 4px; }
.scenario-lab-shell[data-decision-mode="multi"] .scenario-option-marker::after { content: "✓"; opacity: 0; color: #06202a; font-size: 12px; font-weight: 950; line-height: 1; }
.scenario-option.is-selected { border-color: rgb(34 211 238 / 45%); background: rgb(34 211 238 / 8%); box-shadow: 0 0 0 2px rgb(34 211 238 / 8%); }
.scenario-lab-shell[data-decision-mode="single"] [data-scenario-option].is-selected .scenario-option-marker { border-color: var(--scenario-cyan); background: var(--scenario-cyan); box-shadow: inset 0 0 0 4px var(--background, #07111f); }
.scenario-lab-shell[data-decision-mode="multi"] [data-scenario-option].is-selected .scenario-option-marker { border-color: var(--scenario-cyan); background: var(--scenario-cyan); }
.scenario-lab-shell[data-decision-mode="multi"] [data-scenario-option].is-selected .scenario-option-marker::after { opacity: 1; }
.scenario-option.is-correct-answer { border-color: rgb(52 211 153 / 45%); background: rgb(52 211 153 / 8%); }
.scenario-option.is-wrong-selection { border-color: rgb(251 113 133 / 45%); background: rgb(251 113 133 / 8%); }
.scenario-option:disabled,
.scenario-browser-selectable:disabled { cursor: default; opacity: .92; }
.scenario-option-copy { font-size: .82rem; line-height: 1.55; }

.scenario-lab-actions { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; flex-wrap: wrap; }
.scenario-primary-button,
.scenario-secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  padding: .68rem .95rem;
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.scenario-primary-button { border: 1px solid rgb(167 139 250 / 52%); color: #fff; background: linear-gradient(135deg, var(--scenario-purple-strong), #5b21b6 54%, #4338ca); box-shadow: 0 12px 32px rgb(91 33 182 / 26%); }
.scenario-primary-button:hover:not(:disabled) { border-color: rgb(196 181 253 / 72%); background: linear-gradient(135deg, #8b5cf6, #6d28d9 54%, #4f46e5); }
.scenario-primary-button:disabled { cursor: not-allowed; opacity: .4; box-shadow: none; }
.scenario-secondary-button { border: 1px solid var(--scenario-border); color: var(--foreground, #fff); background: rgb(255 255 255 / 4%); }
.scenario-next-button { margin-left: auto; }
.scenario-validation-message { min-height: 1.2em; margin: .65rem 0 0; color: #fda4af; font-size: .7rem; }

.scenario-activity-minimum-note,
.scenario-practice-repetition-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .7rem;
  padding: .55rem .7rem;
  border: 1px solid rgb(148 163 184 / 10%);
  border-radius: 11px;
  color: #94a3b8;
  background: rgb(15 23 42 / 34%);
  font-size: .66rem;
  line-height: 1.45;
}
.scenario-activity-minimum-note svg { flex: 0 0 auto; color: #a78bfa; opacity: .72; }

.scenario-practice-card {
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--scenario-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgb(34 211 238 / 7%), transparent 24rem),
    var(--scenario-panel);
  box-shadow: 0 24px 80px rgb(2 8 23 / 18%);
}
.scenario-practice-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.scenario-practice-header h1 { margin: 0; color: #f8fafc; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -.025em; }
.scenario-practice-header p { max-width: 840px; margin: .55rem 0 0; color: #cbd5e1; font-size: .86rem; line-height: 1.55; }
.scenario-practice-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .4rem;
  padding: .42rem .62rem;
  border: 1px solid rgb(251 191 36 / 28%);
  border-radius: 999px;
  color: #fde68a;
  background: rgb(251 191 36 / 7%);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.scenario-practice-repetition-note { margin-top: .85rem; opacity: .78; }
.scenario-practice-intro { display: grid; justify-items: start; gap: .8rem; margin-top: 1rem; padding: 1rem; border: 1px dashed rgb(167 139 250 / 25%); border-radius: 14px; background: rgb(139 92 246 / 4%); }
.scenario-practice-intro p { margin: 0; color: #c4b5fd; font-size: .78rem; line-height: 1.55; }
.scenario-practice-challenge { margin-top: 1rem; }
.scenario-practice-instruction { margin: .8rem 0; color: #aeb9ca; font-size: .72rem; }
.scenario-practice-timer { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; align-items: center; color: #cbd5e1; }
.scenario-practice-timer > span { font-size: .67rem; font-weight: 750; }
.scenario-practice-timer > strong { min-width: 3.3rem; color: #fff; font-variant-numeric: tabular-nums; font-size: 1.05rem; text-align: right; }
.scenario-practice-timer > div { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: rgb(148 163 184 / 14%); }
.scenario-practice-timer > div > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee, #8b5cf6); transition: width .1s linear, background .15s ease; }
.scenario-practice-timer.is-urgent > strong { color: #fecdd3; }
.scenario-practice-timer.is-urgent > div > span { background: linear-gradient(90deg, #fbbf24, #fb7185); }

.scenario-classify-board { display: grid; grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: stretch; }
.scenario-classify-tray,
.scenario-classify-zone { min-height: 250px; padding: .8rem; border: 1px solid rgb(148 163 184 / 16%); border-radius: 15px; background: rgb(2 8 23 / 24%); }
.scenario-classify-tray h2 { margin: 0 0 .65rem; color: #94a3b8; font-size: .67rem; letter-spacing: .07em; text-transform: uppercase; }
.scenario-classify-tray > div,
.scenario-classify-zone > div { display: grid; gap: .55rem; align-content: start; }
.scenario-classify-zone > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 0 0 .65rem;
  padding: .55rem .65rem;
  border: 1px solid currentColor;
  border-radius: 10px;
  color: #cbd5e1;
  background: rgb(255 255 255 / 3%);
  font: inherit;
  font-size: .73rem;
  font-weight: 850;
  cursor: pointer;
}
.scenario-classify-zone--safe { border-color: rgb(52 211 153 / 24%); background: rgb(52 211 153 / 3%); }
.scenario-classify-zone--safe > button { color: #a7f3d0; }
.scenario-classify-zone--dangerous { border-color: rgb(251 113 133 / 24%); background: rgb(251 113 133 / 3%); }
.scenario-classify-zone--dangerous > button { color: #fecdd3; }
.scenario-classify-zone.is-drag-over { outline: 3px solid rgb(34 211 238 / 42%); outline-offset: -3px; background: rgb(34 211 238 / 7%); }
.scenario-classify-card {
  display: grid;
  gap: .22rem;
  width: 100%;
  padding: .72rem .75rem;
  border: 1px solid rgb(148 163 184 / 22%);
  border-radius: 11px;
  color: #f1f5f9;
  background: linear-gradient(145deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 2%));
  box-shadow: 0 8px 20px rgb(2 8 23 / 18%);
  font: inherit;
  font-size: .73rem;
  font-weight: 760;
  line-height: 1.35;
  text-align: left;
  cursor: grab;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.scenario-classify-card:hover:not(:disabled),
.scenario-classify-card.is-selected { transform: translateY(-2px); border-color: #22d3ee; box-shadow: 0 0 0 3px rgb(34 211 238 / 10%), 0 10px 24px rgb(2 8 23 / 22%); }
.scenario-classify-card.is-dragging { opacity: .45; }
.scenario-classify-card.is-correct { border-color: #34d399; background: rgb(52 211 153 / 10%); }
.scenario-classify-card.is-incorrect { border-color: #fb7185; background: rgb(251 113 133 / 10%); }
.scenario-classify-card [data-classify-result] { min-height: 0; color: #94a3b8; font-size: .62rem; font-weight: 800; line-height: 1.35; }
.scenario-classify-card [data-classify-result]:empty { display: none; }
.scenario-classify-card.is-correct [data-classify-result] { color: #a7f3d0; }
.scenario-classify-card.is-incorrect [data-classify-result] { color: #fecdd3; }
.scenario-classify-card:disabled { cursor: default; }
.scenario-practice-actions { display: flex; align-items: center; gap: .7rem; margin-top: .9rem; }

.scenario-typing-challenge { display: grid; gap: .9rem; }
.scenario-typing-tokens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.scenario-typing-tokens code { display: grid; min-height: 72px; place-items: center; padding: .75rem; border: 1px solid rgb(167 139 250 / 24%); border-radius: 13px; color: #ede9fe; background: rgb(139 92 246 / 7%); font-size: clamp(.78rem, 1.8vw, 1rem); font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.scenario-typing-field { display: grid; gap: .4rem; }
.scenario-typing-field > label { color: #cbd5e1; font-size: .7rem; }
.scenario-typing-composer { display: flex; min-height: 54px; flex-wrap: wrap; align-items: center; gap: .45rem; padding: .38rem .48rem; border: 1px solid rgb(148 163 184 / 24%); border-radius: 12px; background: rgb(2 8 23 / 52%); transition: border-color .14s ease, box-shadow .14s ease; }
.scenario-typing-composer:focus-within { border-color: #22d3ee; box-shadow: 0 0 0 3px rgb(34 211 238 / 16%); }
.scenario-typing-chips { display: flex; flex-wrap: wrap; gap: .38rem; }
.scenario-typing-chips[hidden] { display: none !important; }
.scenario-typing-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .38rem .48rem .38rem .62rem; border: 1px solid rgb(52 211 153 / 42%); border-radius: 999px; color: #d1fae5; background: rgb(6 78 59 / 52%); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.scenario-typing-chip > span:last-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 999px; color: #a7f3d0; background: rgb(255 255 255 / 10%); font-size: 1rem; line-height: 1; }
.scenario-typing-chip:hover:not(:disabled) { border-color: #34d399; background: rgb(6 95 70 / 68%); }
.scenario-typing-chip:focus-visible { outline: 3px solid rgb(52 211 153 / 28%); outline-offset: 2px; }
.scenario-typing-chip:disabled { cursor: default; opacity: .88; }
.scenario-typing-field input { flex: 1 1 220px; min-width: 180px; min-height: 38px; padding: .42rem .38rem; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; font-size: .85rem; }
.scenario-typing-hint { display: flex; width: fit-content; max-width: 100%; min-height: 1.4rem; align-items: flex-start; gap: .34rem; margin: 0; padding: .28rem .46rem; border: 1px solid transparent; border-radius: 8px; color: #94a3b8; font-size: .73rem; font-weight: 680; line-height: 1.45; }
.scenario-typing-hint[data-tone="success"] { border-color: rgb(52 211 153 / 22%); color: #a7f3d0; background: rgb(6 78 59 / 24%); }
.scenario-typing-hint[data-tone="success"]::before { content: "✓"; flex: 0 0 auto; font-weight: 900; }
.scenario-typing-hint[data-tone="retry"] { border-color: rgb(251 113 133 / 20%); color: #fecdd3; background: rgb(136 19 55 / 18%); }

.scenario-showcase-game { position: relative; isolation: isolate; }
.scenario-practice-badge--play { position: relative; overflow: visible; border-color: rgb(34 211 238 / 32%); color: #a5f3fc; background: rgb(34 211 238 / 7%); }
.scenario-practice-badge--play strong { color: #fff; font-variant-numeric: tabular-nums; }
.scenario-practice-badge--play.is-match-rewarding { animation: scenario-match-score-pulse .72s cubic-bezier(.18, .86, .22, 1) both; }
.scenario-match-reward-pop { position: absolute; z-index: 8; top: -24px; right: -10px; display: grid; min-width: 34px; height: 34px; place-items: center; border: 2px solid #fef08a; border-radius: 999px; color: #052e16; background: linear-gradient(145deg, #fef08a, #34d399); box-shadow: 0 0 0 4px rgb(52 211 153 / 14%), 0 10px 26px rgb(2 6 23 / 32%); font-size: .72rem; font-weight: 950; pointer-events: none; animation: scenario-match-reward-pop 2.1s cubic-bezier(.18, .86, .22, 1) both; }
.scenario-game-hud { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem; padding: .55rem .7rem; border: 1px solid rgb(148 163 184 / 13%); border-radius: 12px; background: rgb(2 8 23 / 32%); }
.scenario-game-hud p { margin: 0; color: #c4b5fd; font-size: .72rem; font-weight: 720; line-height: 1.45; }
.scenario-showcase-game.is-evaluating .scenario-game-hud { border-color: rgb(148 163 184 / 28%); box-shadow: 0 10px 30px rgb(2 6 23 / 20%); }
.scenario-showcase-game[data-match-tone="success"] .scenario-game-hud { border-color: rgb(52 211 153 / 48%); background: rgb(6 78 59 / 24%); }
.scenario-showcase-game[data-match-tone="success"] .scenario-game-hud p { color: #a7f3d0; }
.scenario-showcase-game[data-match-tone="retry"] .scenario-game-hud { border-color: rgb(251 113 133 / 44%); background: rgb(136 19 55 / 18%); }
.scenario-showcase-game[data-match-tone="retry"] .scenario-game-hud p { color: #fecdd3; }
.scenario-ghost-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .38rem; padding: .38rem .58rem; border: 1px solid rgb(148 163 184 / 18%); border-radius: 9px; color: #cbd5e1; background: rgb(255 255 255 / 3%); font: inherit; font-size: .66rem; font-weight: 800; cursor: pointer; }
.scenario-ghost-button:hover { border-color: rgb(167 139 250 / 48%); color: #fff; background: rgb(139 92 246 / 10%); }
.scenario-ghost-button:disabled { opacity: .42; cursor: default; }
.scenario-game-points { flex: 0 0 auto; padding: .28rem .5rem; border-radius: 999px; color: #fef08a; background: rgb(234 179 8 / 10%); font-size: .68rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.scenario-game-pop { position: absolute; z-index: 5; top: 12%; right: 8%; padding: .26rem .46rem; border: 1px solid rgb(255 255 255 / 32%); border-radius: 999px; color: #fff; background: linear-gradient(135deg, #7c3aed, #0891b2); box-shadow: 0 10px 28px rgb(2 6 23 / 35%); font-size: .62rem; font-weight: 950; pointer-events: none; animation: scenario-game-pop .85s cubic-bezier(.16, .84, .24, 1) both; }

.scenario-match-grammar { display: flex; align-items: center; gap: .55rem; margin-top: .75rem; padding: .6rem .72rem; border: 1px solid rgb(148 163 184 / 17%); border-radius: 13px; color: #cbd5e1; background: rgb(2 8 23 / 28%); }
.scenario-match-grammar-copy { display: grid; gap: .1rem; min-width: 0; margin-right: auto; }
.scenario-match-grammar-copy strong { color: #f8fafc; font-size: .72rem; }
.scenario-match-grammar-copy small { color: #94a3b8; font-size: .61rem; line-height: 1.4; }
.scenario-match-role { position: relative; display: inline-flex; min-width: 94px; align-items: center; justify-content: center; gap: .38rem; padding: .4rem .62rem; border: 1px solid; border-radius: 10px; font-size: .65rem; font-weight: 850; }
.scenario-match-role b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #fff; font-size: .7rem; }
.scenario-match-role--a { border-color: rgb(167 139 250 / 45%); color: #ddd6fe; background: rgb(91 33 182 / 18%); }
.scenario-match-role--a b { background: #7c3aed; }
.scenario-match-role--b { border-color: rgb(34 211 238 / 45%); color: #cffafe; background: rgb(8 145 178 / 14%); }
.scenario-match-role--b b { background: #0891b2; }
.scenario-match-grammar-plus { color: #64748b; font-size: .9rem; font-weight: 950; }
.scenario-match-role-connector { display: inline-block; flex: 0 0 auto; }
.scenario-match-role-connector--plug { width: 10px; height: 16px; margin-right: -.8rem; border: 1px solid #c4b5fd; border-left: 0; border-radius: 0 6px 6px 0; background: #7c3aed; }
.scenario-match-role-connector--socket { width: 10px; height: 18px; margin-left: -.68rem; border: 1px solid #67e8f9; border-left: 0; border-radius: 0 50% 50% 0; background: #06111f; }
.scenario-match-board { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-top: .7rem; perspective: 1000px; }
.scenario-match-card { position: relative; min-height: 132px; padding: 0; border: 0; border-radius: 14px; isolation: isolate; background: transparent; font: inherit; cursor: pointer; perspective: 800px; transition: opacity .32s ease, transform .32s ease, visibility .32s ease; }
.scenario-match-card-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.2, .75, .25, 1); }
.scenario-match-card.is-flipped .scenario-match-card-inner { transform: rotateY(180deg); }
.scenario-match-card-face { position: absolute; inset: 0; display: grid; place-items: center; padding: 2.05rem .78rem .7rem; border: 1px solid rgb(167 139 250 / 24%); border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.scenario-match-card-front { gap: .3rem; align-content: center; }
.scenario-match-card-front > svg { opacity: .76; }
.scenario-match-card[data-match-side="left"] .scenario-match-card-front { color: #c4b5fd; background: radial-gradient(circle at 50% 0, rgb(167 139 250 / 15%), transparent 70%), linear-gradient(145deg, #1d1538, #0f172a); }
.scenario-match-card[data-match-side="right"] .scenario-match-card-front { color: #67e8f9; background: radial-gradient(circle at 50% 0, rgb(34 211 238 / 14%), transparent 70%), linear-gradient(145deg, #0b2635, #0f172a); }
.scenario-match-card-action { color: #94a3b8; font-size: .56rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scenario-match-card-back { align-content: center; transform: rotateY(180deg); color: #f5f3ff; font-size: .75rem; line-height: 1.38; text-align: center; }
.scenario-match-card-back strong { font-size: .72rem; font-weight: 850; line-height: 1.4; }
.scenario-match-card[data-match-side="left"] .scenario-match-card-back { background: linear-gradient(145deg, rgb(91 33 182 / 54%), rgb(15 23 42 / 96%)); }
.scenario-match-card[data-match-side="right"] .scenario-match-card-back { background: linear-gradient(145deg, rgb(8 145 178 / 42%), rgb(15 23 42 / 96%)); }
.scenario-match-card-role { position: absolute; top: .55rem; left: .58rem; display: inline-flex; align-items: center; gap: .32rem; }
.scenario-match-card-role b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #fff; font-size: .68rem; }
.scenario-match-card-role small { font-size: .52rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.scenario-match-card[data-match-side="left"] .scenario-match-card-role { color: #ddd6fe; }
.scenario-match-card[data-match-side="left"] .scenario-match-card-role b { background: #7c3aed; }
.scenario-match-card[data-match-side="right"] .scenario-match-card-role { color: #cffafe; }
.scenario-match-card[data-match-side="right"] .scenario-match-card-role b { background: #0891b2; }
.scenario-match-card-connector { position: absolute; z-index: 2; top: 50%; display: block; transform: translateY(-50%); }
.scenario-match-card[data-match-side="left"] .scenario-match-card-connector { right: -7px; width: 14px; height: 30px; border: 1px solid #c4b5fd; border-left: 0; border-radius: 0 9px 9px 0; background: #6d28d9; box-shadow: 4px 0 12px rgb(124 58 237 / 24%); }
.scenario-match-card[data-match-side="right"] .scenario-match-card-connector { left: -1px; width: 12px; height: 32px; border: 1px solid #67e8f9; border-left: 0; border-radius: 0 50% 50% 0; background: #07121f; box-shadow: inset -2px 0 8px rgb(34 211 238 / 18%); }
.scenario-match-card:hover:not(:disabled) .scenario-match-card-face,
.scenario-match-card:focus-visible .scenario-match-card-face { border-color: #22d3ee; box-shadow: 0 0 0 3px rgb(34 211 238 / 11%), 0 14px 34px rgb(2 6 23 / 28%); }
.scenario-match-card.is-waiting { cursor: not-allowed; }
.scenario-match-card.is-waiting .scenario-match-card-face { border-style: dashed; opacity: .58; filter: saturate(.62); }
.scenario-match-card.is-waiting .scenario-match-card-action { color: #64748b; }
.scenario-match-card[data-match-side="left"].is-flipped:not(.is-matched) .scenario-match-card-face { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgb(167 139 250 / 14%), 0 16px 36px rgb(76 29 149 / 18%); }
.scenario-match-card.is-matched .scenario-match-card-face { border: 2px solid #6ee7b7; box-shadow: 0 0 0 3px rgb(250 204 21 / 16%), 0 0 34px rgb(52 211 153 / 42%); }
.scenario-match-card.is-matched:focus-visible .scenario-match-card-face { border-color: #6ee7b7; box-shadow: 0 0 0 3px rgb(250 204 21 / 16%), 0 0 34px rgb(52 211 153 / 42%); }
.scenario-match-card.is-celebrating { z-index: 3; animation: scenario-match-card-celebrate .78s cubic-bezier(.18, .86, .22, 1) both; }
.scenario-match-spark { position: absolute; z-index: -1; top: 50%; left: 50%; display: block; width: 8px; height: 8px; border: 1px solid rgb(255 255 255 / 68%); border-radius: 3px; opacity: 0; background: var(--match-spark-color); box-shadow: 0 0 12px var(--match-spark-color); pointer-events: none; animation: scenario-match-spark 1.15s cubic-bezier(.12, .72, .2, 1) var(--match-spark-delay) both; }
.scenario-match-card.is-mismatch { animation: scenario-card-shake .38s ease; }
.scenario-match-card.is-mismatch .scenario-match-card-face { border-color: #fb7185; background: linear-gradient(145deg, rgb(136 19 55 / 38%), rgb(15 23 42 / 94%)); box-shadow: 0 0 0 3px rgb(251 113 133 / 12%), 0 0 28px rgb(251 113 133 / 12%); }
.scenario-match-card.is-mismatch:focus-visible .scenario-match-card-face { border-color: #fb7185; box-shadow: 0 0 0 3px rgb(251 113 133 / 12%), 0 0 28px rgb(251 113 133 / 12%); }
.scenario-match-card.is-cleared { visibility: hidden; opacity: 0; transform: scale(.7); }

.scenario-detect-preview { display: grid; gap: .68rem; margin-top: .78rem; padding: .78rem; border: 1px solid rgb(34 211 238 / 36%); border-radius: 15px; background: linear-gradient(135deg, rgb(8 145 178 / 14%), rgb(15 23 42 / 70%)); box-shadow: 0 18px 46px rgb(2 6 23 / 22%); transition: opacity .36s ease, transform .36s ease; }
.scenario-detect-preview[hidden] { display: none; }
.scenario-detect-preview.is-leaving { opacity: 0; transform: translateY(-6px); }
.scenario-detect-preview > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .62rem; }
.scenario-detect-preview > header > span:nth-child(1) { color: #67e8f9; }
.scenario-detect-preview > header > span:nth-child(2) { display: grid; gap: .08rem; }
.scenario-detect-preview > header small { color: #67e8f9; font-size: .56rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.scenario-detect-preview > header strong { color: #fff; font-size: .8rem; }
.scenario-detect-preview-countdown { display: grid; min-width: 86px; justify-items: center; padding: .35rem .48rem; border: 1px solid rgb(34 211 238 / 30%); border-radius: 11px; background: rgb(2 8 23 / 48%); }
.scenario-detect-preview-countdown strong { color: #fff !important; font-size: 1.18rem !important; font-variant-numeric: tabular-nums; line-height: 1; }
.scenario-detect-preview-countdown small { margin-top: .14rem; color: #a5f3fc !important; font-size: .47rem !important; text-align: center; }
.scenario-detect-preview-stage { display: grid; grid-template-columns: minmax(0, .88fr) minmax(280px, 1.12fr); align-items: stretch; gap: .62rem; }
.scenario-detect-preview-steps { display: grid; gap: .38rem; margin: 0; padding: 0; list-style: none; }
.scenario-detect-preview-steps li { display: flex; min-width: 0; align-items: center; gap: .48rem; padding: .48rem .56rem; border: 1px solid rgb(148 163 184 / 14%); border-radius: 10px; opacity: .5; background: rgb(2 8 23 / 28%); transition: opacity .24s ease, border-color .24s ease, transform .24s ease, background .24s ease; }
.scenario-detect-preview-steps li > b { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #07121f; background: #64748b; font-size: .64rem; }
.scenario-detect-preview-steps li > span { display: grid; gap: .04rem; min-width: 0; }
.scenario-detect-preview-steps li strong { color: #f8fafc; font-size: .65rem; }
.scenario-detect-preview-steps li small { color: #94a3b8; font-size: .55rem; line-height: 1.35; }
.scenario-detect-preview-steps li.is-active { opacity: 1; border-color: #22d3ee; background: rgb(8 145 178 / 13%); transform: translateX(4px); }
.scenario-detect-preview-steps li.is-active > b { background: #67e8f9; box-shadow: 0 0 16px rgb(34 211 238 / 28%); }
.scenario-detect-preview-steps li.is-complete { opacity: .78; border-color: rgb(52 211 153 / 32%); }
.scenario-detect-preview-steps li.is-complete > b { color: #052e16; background: #6ee7b7; }
.scenario-detect-preview-card { position: relative; display: grid; min-height: 142px; align-content: center; gap: .3rem; padding: .85rem .9rem 2.45rem; border: 1px solid rgb(148 163 184 / 22%); border-radius: 13px; color: #e2e8f0; background: linear-gradient(145deg, rgb(255 255 255 / 6%), rgb(2 8 23 / 38%)); transition: border-color .24s ease, background .24s ease, box-shadow .24s ease, transform .24s ease; }
.scenario-detect-preview-card > small { color: #94a3b8; font-size: .56rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.scenario-detect-preview-card > strong { color: #fff; font-size: .78rem; line-height: 1.4; }
.scenario-detect-preview-card.is-reading { border-color: #67e8f9; box-shadow: inset 0 0 24px rgb(34 211 238 / 7%); }
.scenario-detect-preview-card.is-deciding { border-color: #facc15; box-shadow: inset 0 0 24px rgb(250 204 21 / 7%); transform: scale(1.012); }
.scenario-detect-preview-card.is-marking { border-color: #22d3ee; box-shadow: 0 0 0 3px rgb(34 211 238 / 10%); }
.scenario-detect-preview-card.is-feedback { border-color: #34d399; color: #d1fae5; background: linear-gradient(145deg, rgb(6 95 70 / 40%), rgb(15 23 42 / 78%)); box-shadow: 0 0 0 3px rgb(52 211 153 / 10%), 0 0 28px rgb(52 211 153 / 14%); }
.scenario-detect-preview-action, .scenario-detect-preview-feedback { position: absolute; right: .72rem; bottom: .65rem; display: inline-flex; align-items: center; gap: .3rem; color: #67e8f9; }
.scenario-detect-preview-action em, .scenario-detect-preview-feedback em { font-size: .55rem; font-style: normal; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.scenario-detect-preview-action { padding: .3rem .48rem; border: 1px solid rgb(34 211 238 / 28%); border-radius: 8px; background: rgb(8 145 178 / 8%); transition: transform .2s ease, color .2s ease, background .2s ease; }
.scenario-detect-preview-action.is-pressed { color: #07121f; background: #67e8f9; transform: scale(.94); }
.scenario-detect-preview-feedback { left: .9rem; right: .9rem; color: #a7f3d0; }
.scenario-detect-preview-feedback[hidden] { display: none; }
.scenario-detect-preview > p { min-height: 1rem; margin: 0; color: #bae6fd; font-size: .62rem; font-weight: 780; }
.scenario-game-hud-actions { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
.scenario-detect-replay-button { border-color: rgb(34 211 238 / 30%); color: #cffafe; background: rgb(8 145 178 / 8%); }
.scenario-detect-mission { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(290px, auto); align-items: center; gap: .7rem; margin-top: .85rem; padding: .78rem .85rem; border: 1px solid rgb(250 204 21 / 34%); border-radius: 14px; background: linear-gradient(135deg, rgb(133 77 14 / 18%), rgb(15 23 42 / 58%)); box-shadow: inset 0 1px rgb(255 255 255 / 4%); }
.scenario-detect-mission-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgb(250 204 21 / 38%); border-radius: 11px; color: #fde68a; background: rgb(133 77 14 / 22%); }
.scenario-detect-mission-copy { display: grid; gap: .12rem; min-width: 0; }
.scenario-detect-mission-copy small { color: #fde68a; font-size: .57rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.scenario-detect-mission-copy strong { color: #fff; font-size: .9rem; line-height: 1.35; }
.scenario-detect-mission-rules { display: grid; gap: .28rem; padding-left: .75rem; border-left: 1px solid rgb(250 204 21 / 18%); font-size: .58rem; font-style: normal; letter-spacing: .035em; }
.scenario-detect-mission-rules b { color: #a7f3d0; }
.scenario-detect-mission-rules em { color: #cbd5e1; font-style: normal; font-weight: 760; }
.scenario-detect-artifact { transition: opacity .32s ease, filter .32s ease, transform .32s ease; }
.scenario-detect-artifact.is-tutorial-locked { opacity: .34; filter: saturate(.42); transform: scale(.992); pointer-events: none; }
.scenario-detect-artifact.is-detect-ready { animation: scenario-detect-ready .42s ease both; }
.scenario-detect-artifact { position: relative; overflow: hidden; margin-top: .85rem; border: 1px solid rgb(148 163 184 / 20%); border-radius: 16px; background: linear-gradient(145deg, rgb(15 23 42 / 94%), rgb(3 10 24 / 96%)); box-shadow: inset 0 1px rgb(255 255 255 / 4%), 0 22px 55px rgb(2 6 23 / 24%); }
.scenario-detect-artifact > header { display: grid; gap: .18rem; padding: .8rem 1rem; border-bottom: 1px solid rgb(148 163 184 / 13%); background: rgb(255 255 255 / 3%); }
.scenario-detect-artifact > header span { color: #67e8f9; font-size: .58rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scenario-detect-artifact > header strong { color: #fff; font-size: 1.05rem; }
.scenario-detect-artifact > header small { color: #94a3b8; font-size: .67rem; }
.scenario-detect-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; padding: .85rem; }
.scenario-detect-clue { position: relative; display: grid; min-height: 108px; align-content: center; gap: .28rem; padding: .72rem .75rem 2rem; border: 1px solid rgb(148 163 184 / 17%); border-radius: 12px; color: #e2e8f0; background: rgb(255 255 255 / 3%); font: inherit; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.scenario-detect-clue small { color: #94a3b8; font-size: .57rem; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.scenario-detect-clue strong { font-size: .74rem; line-height: 1.35; }
.scenario-detect-clue-action { position: absolute; right: .65rem; bottom: .55rem; display: inline-flex; align-items: center; gap: .28rem; color: #67e8f9; }
.scenario-detect-clue-action em { font-size: .52rem; font-style: normal; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.scenario-detect-checkbox { position: relative; display: inline-block; width: 16px; height: 16px; border: 2px solid #67e8f9; border-radius: 4px; background: rgb(2 8 23 / 36%); }
.scenario-detect-clue.is-selected { border-color: #22d3ee; color: #ecfeff; background: linear-gradient(145deg, rgb(8 145 178 / 24%), rgb(15 23 42 / 72%)); box-shadow: 0 0 0 3px rgb(34 211 238 / 10%); }
.scenario-detect-clue.is-selected .scenario-detect-checkbox { background: #22d3ee; }
.scenario-detect-clue.is-selected .scenario-detect-checkbox::after { position: absolute; top: 1px; left: 4px; width: 4px; height: 8px; border: solid #082f49; border-width: 0 2px 2px 0; content: ''; transform: rotate(45deg); }
.scenario-detect-clue:hover:not(:disabled), .scenario-detect-clue:focus-visible { transform: translateY(-2px); border-color: #22d3ee; background: rgb(34 211 238 / 7%); box-shadow: 0 12px 28px rgb(2 6 23 / 24%); }
.scenario-detect-clue.is-found { border-color: #34d399; color: #d1fae5; background: linear-gradient(145deg, rgb(6 95 70 / 42%), rgb(15 23 42 / 74%)); box-shadow: 0 0 0 3px rgb(52 211 153 / 10%); cursor: default; }
.scenario-detect-clue.is-found .scenario-detect-clue-action { color: #34d399; }
.scenario-detect-clue.is-context { border-color: #fb7185; background: rgb(136 19 55 / 20%); animation: scenario-card-shake .38s ease; }
.scenario-detect-clue.is-context .scenario-detect-clue-action { color: #fecdd3; }
.scenario-detect-selection-count { flex: 0 0 auto; padding: .34rem .56rem; border: 1px solid rgb(34 211 238 / 28%); border-radius: 999px; color: #cffafe; background: rgb(8 145 178 / 9%); font-size: .65rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.scenario-detect-submit { display: flex; justify-content: flex-end; margin-top: .78rem; }
.scenario-detect-artifact--email > header span { color: #c4b5fd; }
.scenario-detect-artifact--payment > header span { color: #fef08a; }
.scenario-detect-artifact--mfa > header span { color: #fda4af; }

.scenario-order-preview { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; padding: .7rem .8rem; border: 1px solid rgb(34 211 238 / 32%); border-radius: 14px; background: linear-gradient(135deg, rgb(8 145 178 / 12%), rgb(76 29 149 / 13%)); transition: opacity .38s ease, transform .38s ease; }
.scenario-order-preview[hidden] { display: none; }
.scenario-order-preview.is-leaving { opacity: 0; transform: translateY(-6px); }
.scenario-order-preview > span:first-child { display: grid; gap: .15rem; min-width: 0; }
.scenario-order-preview > span:first-child small { color: #67e8f9; font-size: .56rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.scenario-order-preview > span:first-child strong { color: #e0f2fe; font-size: .77rem; line-height: 1.4; }
.scenario-order-preview-countdown { display: grid; min-width: 84px; justify-items: center; padding: .35rem .5rem; border: 1px solid rgb(167 139 250 / 28%); border-radius: 11px; background: rgb(2 8 23 / 46%); }
.scenario-order-preview-countdown strong { color: #fff; font-size: 1.25rem; font-variant-numeric: tabular-nums; line-height: 1; }
.scenario-order-preview-countdown small { margin-top: .16rem; color: #a5b4fc; font-size: .48rem; font-weight: 800; text-transform: uppercase; }
.scenario-order-replay-button { border-color: rgb(34 211 238 / 34%); color: #cffafe; background: rgb(8 145 178 / 8%); }
.scenario-order-replay-button:not(:disabled):hover { border-color: #22d3ee; background: rgb(8 145 178 / 15%); }
.scenario-order-list { display: grid; gap: .62rem; margin: .85rem 0 0; padding: 0; list-style: none; counter-reset: none; transition: opacity .38s ease, transform .38s ease; }
.scenario-order-list.is-preview-fading { opacity: 0; transform: translateY(8px); }
.scenario-order-list.is-order-entering { animation: scenario-order-enter .42s ease both; }
.scenario-order-step { position: relative; display: grid; grid-template-columns: auto 38px minmax(0, 1fr) auto; min-height: 68px; align-items: center; gap: .65rem; padding: .58rem .65rem; border: 1px solid rgb(148 163 184 / 18%); border-radius: 13px; color: #e2e8f0; background: linear-gradient(145deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%)); box-shadow: 0 8px 24px rgb(2 6 23 / 16%); transition: opacity .42s ease, border-color .18s ease, background .18s ease, transform .42s ease, box-shadow .18s ease; }
.scenario-order-list.is-order-preview .scenario-order-step { cursor: default; }
.scenario-order-step.is-preview-hidden { opacity: 0; transform: translateY(12px); }
.scenario-order-step.is-preview-visible { opacity: 1; transform: translateY(0); }
.scenario-order-list.is-order-preview .scenario-order-handle,
.scenario-order-list.is-order-preview .scenario-order-controls { opacity: 0; pointer-events: none; }
.scenario-order-step.is-moving { transform: scale(1.015); border-color: #a78bfa; box-shadow: 0 14px 32px rgb(76 29 149 / 18%); }
.scenario-order-step.is-correct-position { border-color: rgb(52 211 153 / 46%); background: linear-gradient(145deg, rgb(6 95 70 / 20%), rgb(15 23 42 / 50%)); }
.scenario-order-step.is-dragging { opacity: .4; }
.scenario-order-step.is-drop-target { border-color: #22d3ee; box-shadow: 0 0 0 3px rgb(34 211 238 / 12%); }
.scenario-order-handle { color: #64748b; cursor: grab; }
.scenario-order-number { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(167 139 250 / 28%); border-radius: 10px; color: #ddd6fe; background: rgb(139 92 246 / 10%); font-size: .75rem; font-weight: 900; }
.scenario-order-step.is-correct-position .scenario-order-number { border-color: #34d399; color: #d1fae5; background: rgb(6 95 70 / 34%); }
.scenario-order-step > strong { font-size: .78rem; line-height: 1.35; }
.scenario-order-controls { display: flex; gap: .3rem; }
.scenario-order-controls button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgb(148 163 184 / 18%); border-radius: 9px; color: #cbd5e1; background: rgb(2 8 23 / 36%); cursor: pointer; }
.scenario-order-controls button:hover:not(:disabled), .scenario-order-controls button:focus-visible { border-color: #a78bfa; color: #fff; background: rgb(139 92 246 / 12%); }
.scenario-order-controls button:disabled { opacity: .35; cursor: default; }

.scenario-catch-clock { display: inline-flex; flex: 0 0 auto; align-items: baseline; gap: .48rem; padding: .4rem .68rem; border: 1px solid rgb(103 232 249 / 30%); border-radius: 999px; color: #a5f3fc; background: linear-gradient(180deg, rgb(8 145 178 / 15%), rgb(8 47 73 / 22%)); box-shadow: inset 0 1px rgb(255 255 255 / 8%), 0 8px 24px rgb(2 8 23 / 18%); }
.scenario-catch-clock small { font-size: .56rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.scenario-catch-clock strong { min-width: 2.7rem; color: #fff; font-size: .92rem; font-variant-numeric: tabular-nums; text-align: right; }
.scenario-catch-clock.is-urgent { border-color: rgb(251 113 133 / 62%); color: #fecdd3; background: linear-gradient(180deg, rgb(190 24 93 / 22%), rgb(76 5 25 / 30%)); box-shadow: 0 0 26px rgb(244 63 94 / 14%); }
.scenario-catch-clock.is-urgent strong { color: #fff1f2; }
.scenario-catch-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.25rem; margin-top: .9rem; padding: 1.1rem; overflow: hidden; border: 1px solid rgb(103 232 249 / 25%); border-radius: 20px; background: radial-gradient(circle at 90% -20%, rgb(139 92 246 / 19%), transparent 45%), linear-gradient(135deg, rgb(8 145 178 / 11%), rgb(15 23 42 / 52%)); box-shadow: inset 0 1px rgb(255 255 255 / 5%), 0 18px 50px rgb(2 6 23 / 18%); }
.scenario-catch-intro::after { position: absolute; width: 180px; height: 180px; right: -62px; bottom: -96px; border: 1px solid rgb(103 232 249 / 12%); border-radius: 50%; box-shadow: 0 0 0 24px rgb(103 232 249 / 3%), 0 0 0 52px rgb(139 92 246 / 3%); content: ''; pointer-events: none; }
.scenario-catch-intro[hidden], .scenario-catch-stage[hidden] { display: none; }
.scenario-catch-howto { display: flex; min-width: 0; align-items: center; gap: .8rem; }
.scenario-catch-intro-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border: 1px solid rgb(103 232 249 / 28%); border-radius: 15px; color: #cffafe; background: linear-gradient(145deg, rgb(8 145 178 / 28%), rgb(99 102 241 / 22%)); box-shadow: inset 0 1px rgb(255 255 255 / 8%), 0 10px 28px rgb(2 8 23 / 24%); }
.scenario-catch-howto strong { color: #fff; font-size: .9rem; }
.scenario-catch-howto p { max-width: 760px; margin: .18rem 0 0; color: #cbd5e1; font-size: .74rem; line-height: 1.5; }
.scenario-catch-rules { display: flex; grid-column: 1 / -1; gap: .6rem; flex-wrap: wrap; }
.scenario-catch-rule { display: inline-flex; align-items: center; gap: .42rem; padding: .46rem .66rem; border: 1px solid; border-radius: 999px; font-size: .64rem; letter-spacing: .045em; box-shadow: inset 0 1px rgb(255 255 255 / 4%); }
.scenario-catch-rule--danger { border-color: rgb(251 113 133 / 42%); color: #ffe4e6; background: linear-gradient(180deg, rgb(159 18 57 / 24%), rgb(76 5 25 / 18%)); }
.scenario-catch-rule--safe { border-color: rgb(52 211 153 / 40%); color: #d1fae5; background: linear-gradient(180deg, rgb(6 95 70 / 26%), rgb(2 44 34 / 18%)); }
.scenario-catch-launch { position: relative; z-index: 1; min-width: 210px; justify-content: center; gap: .55rem; padding: .72rem 1rem; border-radius: 14px; box-shadow: 0 12px 34px rgb(109 40 217 / 28%), inset 0 1px rgb(255 255 255 / 18%); }
.scenario-catch-launch i { margin-left: auto; font-style: normal; font-size: 1rem; opacity: .82; }
.scenario-catch-stage { display: grid; gap: .7rem; margin-top: .8rem; }
.scenario-catch-stage-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; }
.scenario-catch-timer { height: 9px; overflow: hidden; border: 1px solid rgb(148 163 184 / 9%); border-radius: 999px; background: rgb(2 8 23 / 46%); box-shadow: inset 0 2px 5px rgb(0 0 0 / 28%); }
.scenario-catch-timer span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 46%, #8b5cf6 100%); box-shadow: 0 0 18px rgb(34 211 238 / 50%); transform: scaleX(1); transform-origin: left center; will-change: transform; }
.scenario-catch-stage.is-urgent .scenario-catch-timer span { background: linear-gradient(90deg, #fbbf24, #fb7185); box-shadow: 0 0 22px rgb(251 113 133 / 48%); }
.scenario-catch-decision-score { display: inline-flex; min-width: 136px; align-items: baseline; justify-content: flex-end; gap: .48rem; padding: .28rem .58rem; border: 1px solid rgb(52 211 153 / 22%); border-radius: 999px; color: #a7f3d0; background: rgb(6 78 59 / 12%); transform-origin: center; }
.scenario-catch-decision-score small { font-size: .5rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.scenario-catch-decision-score strong { color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }
.scenario-catch-audio-control { position: relative; z-index: 14; justify-self: end; }
.scenario-catch-audio-toggle { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: .38rem; padding: .34rem .58rem; border: 1px solid rgb(103 232 249 / 22%); border-radius: 999px; color: #cffafe; background: linear-gradient(180deg, rgb(8 145 178 / 12%), rgb(8 47 73 / 18%)); box-shadow: inset 0 1px rgb(255 255 255 / 5%); font: inherit; font-size: .57rem; font-weight: 850; letter-spacing: .035em; cursor: pointer; }
.scenario-catch-audio-toggle:hover, .scenario-catch-audio-toggle:focus-visible, .scenario-catch-audio-toggle[aria-expanded="true"] { border-color: rgb(103 232 249 / 55%); color: #fff; background: rgb(8 145 178 / 22%); outline: 0; }
.scenario-catch-audio-toggle.is-muted { border-color: rgb(148 163 184 / 18%); color: #94a3b8; background: rgb(15 23 42 / 45%); }
.scenario-catch-audio-toggle svg { width: 14px; height: 14px; }
.scenario-catch-audio-mixer { position: absolute; top: calc(100% + .55rem); right: 0; display: grid; width: min(310px, calc(100vw - 2rem)); gap: .66rem; padding: .72rem; border: 1px solid rgb(103 232 249 / 24%); border-radius: 16px; background: linear-gradient(160deg, rgb(8 20 38 / 98%), rgb(3 9 20 / 98%)); box-shadow: 0 22px 58px rgb(2 6 23 / 58%), inset 0 1px rgb(255 255 255 / 6%); backdrop-filter: blur(16px); }
.scenario-catch-audio-mixer[hidden] { display: none; }
.scenario-catch-audio-mixer header { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-bottom: .48rem; border-bottom: 1px solid rgb(148 163 184 / 10%); }
.scenario-catch-audio-mixer header strong { color: #f8fafc; font-size: .7rem; letter-spacing: .025em; }
.scenario-catch-audio-mixer header button { padding: .28rem .48rem; border: 1px solid rgb(148 163 184 / 20%); border-radius: 999px; color: #cbd5e1; background: rgb(15 23 42 / 58%); font: inherit; font-size: .55rem; font-weight: 800; cursor: pointer; }
.scenario-catch-audio-mixer header button[aria-pressed="true"] { border-color: rgb(251 113 133 / 42%); color: #fecdd3; background: rgb(136 19 55 / 28%); }
.scenario-catch-volume-row { display: grid; grid-template-columns: 52px minmax(110px, 1fr) 38px; align-items: center; gap: .55rem; color: #cbd5e1; font-size: .61rem; font-weight: 800; }
.scenario-catch-volume-row output { color: #a5f3fc; font-size: .58rem; font-variant-numeric: tabular-nums; text-align: right; }
.scenario-catch-volume-row input[type="range"] { width: 100%; height: 22px; margin: 0; accent-color: #22d3ee; cursor: pointer; }
.scenario-catch-field { --catch-parallax-far-x: 0px; --catch-parallax-mid-x: 0px; --catch-parallax-near-x: 0px; position: relative; isolation: isolate; height: clamp(410px, 56vh, 610px); overflow: hidden; border: 1px solid rgb(103 232 249 / 30%); border-radius: 24px; outline: 0; background: radial-gradient(circle at 22% 4%, rgb(34 211 238 / 18%), transparent 31%), radial-gradient(circle at 78% -4%, rgb(139 92 246 / 20%), transparent 34%), linear-gradient(180deg, #07182c 0%, #071426 42%, #07111f 70%, #040914 100%); box-shadow: inset 0 1px rgb(255 255 255 / 8%), inset 0 -70px 100px rgb(0 0 0 / 22%), 0 28px 74px rgb(2 6 23 / 36%); cursor: grab; perspective: 900px; touch-action: none; user-select: none; }
.scenario-catch-field::before { position: absolute; z-index: 0; right: -8%; bottom: -42%; left: -8%; height: 72%; background: linear-gradient(rgb(103 232 249 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(103 232 249 / 6%) 1px, transparent 1px); background-size: 48px 32px; content: ''; opacity: .55; pointer-events: none; transform: rotateX(63deg); transform-origin: center bottom; mask-image: linear-gradient(180deg, transparent, #000 42%); }
.scenario-catch-field::after { position: absolute; z-index: 11; inset: 0; border-radius: inherit; box-shadow: inset 0 0 70px rgb(2 6 23 / 62%), inset 0 -20px 70px rgb(2 6 23 / 44%); content: ''; pointer-events: none; }
.scenario-catch-field.is-dragging { cursor: grabbing; }
.scenario-catch-field:focus-visible { border-color: #67e8f9; box-shadow: 0 0 0 3px rgb(34 211 238 / 15%), inset 0 1px rgb(255 255 255 / 8%), 0 28px 74px rgb(2 6 23 / 36%); }
.scenario-catch-game.is-catch-failed .scenario-catch-field { border-color: rgb(251 113 133 / 52%); box-shadow: inset 0 0 70px rgb(127 29 29 / 12%), 0 28px 74px rgb(2 6 23 / 36%); }
.scenario-catch-atmosphere { position: absolute; z-index: 0; inset: -2%; overflow: hidden; pointer-events: none; transform: translate3d(var(--catch-parallax-far-x), 0, 0) scale(1.04); transition: transform .9s cubic-bezier(.16,.78,.22,1); will-change: transform; }
.scenario-catch-aurora { position: absolute; width: 52%; height: 44%; border-radius: 50%; filter: blur(54px); opacity: .13; }
.scenario-catch-aurora--one { top: -24%; left: 2%; background: #22d3ee; transform: rotate(-8deg); }
.scenario-catch-aurora--two { top: -28%; right: -2%; background: #8b5cf6; transform: rotate(12deg); }
.scenario-catch-stars { position: absolute; inset: 0; opacity: .26; background-image: radial-gradient(circle, rgb(255 255 255 / 70%) 0 1px, transparent 1.4px); background-size: 47px 47px; mask-image: linear-gradient(#000, transparent 70%); }
.scenario-catch-horizon { position: absolute; right: -6%; bottom: 20%; left: -6%; height: 28%; opacity: .2; background: linear-gradient(180deg, rgb(56 189 248 / 10%), rgb(7 19 35 / 92%)); clip-path: polygon(0 68%, 8% 54%, 16% 61%, 24% 39%, 33% 57%, 42% 35%, 50% 52%, 61% 30%, 69% 48%, 78% 37%, 87% 56%, 94% 43%, 100% 61%, 100% 100%, 0 100%); filter: drop-shadow(0 -10px 28px rgb(34 211 238 / 8%)); }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-aurora--one { animation: scenario-catch-aurora-one 12s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-aurora--two { animation: scenario-catch-aurora-two 15s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-stars { animation: scenario-catch-stars-drift 18s linear infinite; }
.scenario-catch-midground { position: absolute; z-index: 1; inset: 0; pointer-events: none; transform: translate3d(var(--catch-parallax-mid-x), 0, 0) scale(1.025); transition: transform .68s cubic-bezier(.16,.78,.22,1); will-change: transform; }
.scenario-catch-cloud { position: absolute; z-index: 1; top: 30px; width: 150px; height: 34px; border-radius: 999px; opacity: .17; background: linear-gradient(180deg, #cbd5e1, #64748b); filter: blur(.4px) drop-shadow(0 12px 16px rgb(2 6 23 / 40%)); }
.scenario-catch-cloud::before, .scenario-catch-cloud::after { position: absolute; bottom: 0; border-radius: 50%; background: inherit; content: ''; }
.scenario-catch-cloud::before { left: 20px; width: 54px; height: 54px; }
.scenario-catch-cloud::after { right: 20px; width: 66px; height: 66px; }
.scenario-catch-cloud--one { left: 7%; }
.scenario-catch-cloud--two { top: 54px; right: 8%; transform: scale(.75); opacity: .11; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-cloud--one { animation: scenario-catch-cloud-one 16s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-cloud--two { animation: scenario-catch-cloud-two 20s ease-in-out infinite alternate; }
.scenario-catch-bird-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.scenario-catch-bird-flight { position: absolute; right: -76px; width: 48px; height: 64px; opacity: 0; animation: scenario-catch-bird-cross var(--bird-duration, 10s) linear var(--bird-delay, 0s) both; will-change: transform, opacity; }
.scenario-catch-foreground { position: absolute; z-index: 5; right: -3%; bottom: 0; left: -3%; height: 32%; overflow: hidden; pointer-events: none; transform: translate3d(var(--catch-parallax-near-x), 0, 0) scale(1.04); transition: transform .46s cubic-bezier(.16,.78,.22,1); will-change: transform; }
.scenario-catch-foreground-haze { position: absolute; right: -8%; bottom: -44%; left: -8%; height: 108%; background: radial-gradient(ellipse at 22% 72%, rgb(34 211 238 / 14%), transparent 35%), radial-gradient(ellipse at 76% 75%, rgb(139 92 246 / 12%), transparent 37%), linear-gradient(180deg, transparent, rgb(4 10 22 / 55%) 66%, rgb(2 6 18 / 88%)); filter: blur(10px); opacity: .68; }
.scenario-catch-foreground-reflection { position: absolute; right: 5%; bottom: 8%; left: 5%; height: 18%; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 8%, rgb(103 232 249 / 12%) 9% 10%, transparent 11% 19%); filter: blur(5px); opacity: .25; transform: perspective(180px) rotateX(66deg); }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-foreground-haze { animation: scenario-catch-haze-breathe 5.6s ease-in-out infinite alternate; }
.scenario-catch-bird-sprite { display: block; width: 48px; height: 64px; background: url('./visual/ambient-bird-flight.png') 0 0 / 400% 100% no-repeat; filter: saturate(.7) brightness(.82) drop-shadow(0 2px 3px rgb(2 6 23 / 18%)); transform: scale(var(--bird-scale, .5)); transform-origin: center; animation: scenario-catch-bird-flap .44s linear infinite; }
.scenario-catch-speed-lines { position: absolute; z-index: 2; inset: 80px 0 110px; opacity: .14; background: repeating-linear-gradient(90deg, transparent 0 9.6%, rgb(103 232 249 / 18%) 10%, transparent 10.4% 20%); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); pointer-events: none; }
.scenario-catch-stage.is-running .scenario-catch-speed-lines { animation: scenario-catch-speed-pulse 1.4s ease-in-out infinite alternate; }
.scenario-catch-lanes { position: absolute; z-index: 1; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.scenario-catch-lanes span { position: relative; border-right: 1px solid rgb(148 163 184 / 5%); }
.scenario-catch-lanes span::after { position: absolute; right: 10%; bottom: 105px; left: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgb(103 232 249 / 13%), transparent); content: ''; }
.scenario-catch-lanes span:last-child { border-right: 0; }
.scenario-catch-rain { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.scenario-catch-token { position: absolute; top: -52px; left: var(--catch-left, 10%); width: clamp(112px, 17%, 190px); min-height: 48px; opacity: 0; pointer-events: none; will-change: transform; }
.scenario-catch-token::before { position: absolute; top: -62px; left: 50%; width: 2px; height: 58px; border-radius: 999px; background: linear-gradient(180deg, transparent, rgb(103 232 249 / 28%)); box-shadow: 0 0 10px rgb(34 211 238 / 16%); content: ''; opacity: .72; transform: translateX(-50%); }
.scenario-catch-token.is-falling, .scenario-catch-token.is-capturing { opacity: 1; }
.scenario-catch-token-body { position: relative; display: grid; min-height: 48px; grid-template-columns: auto minmax(0, 1fr); place-items: center; gap: .5rem; padding: .56rem .68rem; overflow: hidden; border: 1px solid rgb(165 180 252 / 50%); border-radius: 14px; color: #f8fafc; background: linear-gradient(145deg, rgb(51 65 85 / 94%), rgb(15 23 42 / 98%)); box-shadow: 0 16px 34px rgb(2 6 23 / 44%), inset 0 1px rgb(255 255 255 / 10%), inset 0 -1px rgb(2 6 23 / 70%); font-size: .69rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; transform-origin: 50% 70%; will-change: transform, opacity; }
.scenario-catch-token-body::after { position: absolute; inset: 1px; border-radius: 12px; background: linear-gradient(120deg, rgb(255 255 255 / 7%), transparent 36%, rgb(103 232 249 / 4%) 70%, transparent); content: ''; pointer-events: none; }
.scenario-catch-token-sheen { position: absolute; top: -55%; left: -25%; width: 44%; height: 210%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 12%), transparent); transform: rotate(22deg); }
.scenario-catch-token-glyph { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgb(103 232 249 / 26%); border-radius: 7px; color: #a5f3fc; background: rgb(8 145 178 / 10%); font-size: .72rem; }
.scenario-catch-token strong { position: relative; z-index: 1; min-width: 0; font-size: .71rem; letter-spacing: .01em; }
.scenario-catch-token.is-capturing { z-index: 4; filter: drop-shadow(0 0 16px rgb(52 211 153 / 32%)); }
.scenario-catch-token.is-caught { opacity: 0; }
.scenario-catch-token.is-passed { opacity: 0; transition: opacity .2s ease; }
.scenario-catch-token.is-paused { will-change: auto; }
.scenario-catch-impact-layer { position: absolute; z-index: 7; inset: 0; pointer-events: none; }
.scenario-catch-impact-flash { position: absolute; bottom: 106px; width: 132px; height: 38px; border: 2px solid rgb(103 232 249 / 78%); border-radius: 50%; box-shadow: 0 0 34px rgb(34 211 238 / 52%), inset 0 0 28px rgb(34 211 238 / 28%); opacity: 0; pointer-events: none; }
.scenario-catch-splash-sprite { position: absolute; z-index: 9; bottom: 62px; width: clamp(150px, 14vw, 190px); aspect-ratio: 1; background: url('./visual/catch-water-splash.png') 0 0 / 400% 200% no-repeat; filter: saturate(.92) brightness(.95) drop-shadow(0 0 12px rgb(34 211 238 / 28%)); opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.72); transform-origin: 50% 76%; will-change: background-position, transform, opacity; animation: scenario-catch-raster-splash-frames .64s step-end both, scenario-catch-raster-splash-bloom .64s ease-out both; }
.scenario-catch-bucket-track { position: absolute; z-index: 6; right: 0; bottom: 0; left: 0; height: 154px; border-top: 1px solid rgb(103 232 249 / 8%); background: linear-gradient(180deg, transparent, rgb(2 8 23 / 52%) 44%, rgb(2 6 23 / 82%)); pointer-events: none; }
.scenario-catch-bucket { position: absolute; bottom: 3px; left: 0; display: grid; width: 20%; height: 148px; place-items: end center; overflow: visible; transform: translateX(var(--bucket-shift, 200%)); will-change: transform; }
.scenario-catch-bucket-gimbal { position: relative; display: grid; width: clamp(150px, 13vw, 190px); height: clamp(150px, 13vw, 190px); place-items: end center; transform-origin: 50% 88%; will-change: transform; }
.scenario-catch-bucket-gimbal::before { position: absolute; z-index: 0; right: 18%; bottom: 2px; left: 18%; height: 15px; border-radius: 50%; background: rgb(2 6 23 / 78%); filter: blur(7px); content: ''; opacity: .68; transform: scaleX(1); transform-origin: center; }
.scenario-catch-bucket-vessel { position: relative; width: 100%; height: 100%; transform-origin: 50% 82%; will-change: transform; }
.scenario-catch-bucket-sprite { position: absolute; z-index: 2; inset: 0; background: url('./visual/catch-water-bucket-idle.png') 0 0 / 400% 200% no-repeat; filter: drop-shadow(0 15px 17px rgb(2 6 23 / 62%)) drop-shadow(0 0 15px rgb(34 211 238 / 18%)); animation: scenario-catch-bucket-idle-sprite 1.28s step-end infinite; will-change: background-position; }
.scenario-catch-bucket-opening-hitbox { position: absolute; z-index: 4; top: 18%; left: 15%; width: 70%; height: 24%; border-radius: 50%; opacity: 0; pointer-events: none; }
.scenario-catch-water-effects { position: absolute; z-index: 5; top: 22%; left: 50%; width: 66%; height: 18%; border-radius: 50%; pointer-events: none; transform: translateX(-50%); transform-origin: 50% 50%; }
.scenario-catch-bucket.is-swaying .scenario-catch-bucket-gimbal { animation: scenario-catch-bucket-sway .46s cubic-bezier(.16,.78,.22,1) both; }
.scenario-catch-ripple { position: absolute; z-index: 4; top: 50%; left: 50%; width: 72%; height: 82%; border: 1px solid rgb(236 254 255 / 86%); border-radius: 50%; opacity: 0; pointer-events: none; }
.scenario-catch-bucket .scenario-game-pop { z-index: 12; top: 3%; right: -12%; padding: .38rem .62rem; border-color: rgb(167 243 208 / 72%); color: #ecfdf5; background: linear-gradient(135deg, #047857, #0891b2); box-shadow: 0 0 26px rgb(52 211 153 / 38%), 0 12px 30px rgb(2 6 23 / 48%); font-size: .72rem; }
.scenario-catch-bucket.is-catching .scenario-catch-bucket-gimbal::before { animation: scenario-catch-bucket-shadow-impact .5s ease-out both; }
.scenario-catch-particle { position: absolute; z-index: 8; top: 22%; left: 50%; border-radius: 999px 999px 60% 60%; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.scenario-catch-countdown { position: absolute; z-index: 10; inset: 0; display: grid; place-content: center; place-items: center; pointer-events: none; background: radial-gradient(circle, rgb(8 47 73 / 18%), transparent 34%); text-align: center; }
.scenario-catch-countdown[hidden] { display: none; }
.scenario-catch-countdown small { color: #a5f3fc; font-size: clamp(.7rem, 1.2vw, .9rem); font-weight: 900; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 2px 14px rgb(2 6 23 / 80%); }
.scenario-catch-countdown strong { min-width: 180px; color: #fff; font-size: clamp(4rem, 10vw, 8rem); font-weight: 950; line-height: .9; letter-spacing: -.06em; text-shadow: 0 0 36px rgb(34 211 238 / 48%), 0 8px 30px rgb(2 6 23 / 82%); }
.scenario-catch-controls { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr) minmax(130px, auto); align-items: center; gap: .7rem; }
.scenario-catch-controls button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .42rem; padding: .58rem .78rem; border: 1px solid rgb(103 232 249 / 28%); border-radius: 13px; color: #cffafe; background: linear-gradient(180deg, rgb(8 145 178 / 14%), rgb(8 47 73 / 16%)); box-shadow: inset 0 1px rgb(255 255 255 / 5%); font: inherit; font-size: .7rem; font-weight: 850; cursor: pointer; }
.scenario-catch-controls button:hover:not(:disabled), .scenario-catch-controls button:focus-visible { border-color: #67e8f9; color: #fff; background: rgb(8 145 178 / 24%); box-shadow: 0 0 22px rgb(34 211 238 / 10%); transform: translateY(-1px); }
.scenario-catch-controls button:disabled { opacity: .3; cursor: default; }
.scenario-catch-controls small { display: flex; align-items: center; justify-content: center; gap: .38rem; color: #94a3b8; font-size: .64rem; font-weight: 760; text-align: center; }
.scenario-catch-feedback { border-radius: 18px; }

/* Atrapa ambient depth + rare-event juice. These layers stay decorative and never encode answers. */
.scenario-catch-field {
  --catch-parallax-ultra-x: 0px;
  --catch-parallax-mote-x: 0px;
  transition: border-color .35s ease, box-shadow .35s ease, filter .55s ease;
}
.scenario-catch-ultrafar { position: absolute; z-index: 0; inset: -5%; overflow: hidden; pointer-events: none; transform: translate3d(var(--catch-parallax-ultra-x), 0, 0) scale(1.055); transition: transform 1.15s cubic-bezier(.16,.78,.22,1), filter 1.4s ease; will-change: transform; }
.scenario-catch-depth-glow { position: absolute; width: 58%; height: 46%; border-radius: 50%; opacity: .075; filter: blur(72px); }
.scenario-catch-depth-glow--cyan { top: 5%; left: -24%; background: #22d3ee; }
.scenario-catch-depth-glow--violet { top: -8%; right: -26%; background: #8b5cf6; }
.scenario-catch-light-shaft { position: absolute; top: -18%; width: 24%; height: 95%; opacity: .055; filter: blur(12px); transform-origin: top center; }
.scenario-catch-light-shaft--left { left: 4%; background: linear-gradient(168deg, rgb(103 232 249 / 40%), transparent 66%); transform: rotate(10deg); }
.scenario-catch-light-shaft--right { right: 4%; background: linear-gradient(192deg, rgb(167 139 250 / 34%), transparent 66%); transform: rotate(-9deg); }
.scenario-catch-distant-band { position: absolute; right: -8%; bottom: 30%; left: -8%; height: 19%; opacity: .12; background: radial-gradient(ellipse at 20% 70%, rgb(34 211 238 / 20%), transparent 38%), radial-gradient(ellipse at 82% 62%, rgb(139 92 246 / 18%), transparent 42%), linear-gradient(180deg, transparent, rgb(8 47 73 / 30%), transparent); filter: blur(16px); }
.scenario-catch-atmosphere { transition: transform .9s cubic-bezier(.16,.78,.22,1), filter 1.35s ease; }
.scenario-catch-midground { z-index: 2; transition: transform .68s cubic-bezier(.16,.78,.22,1), filter 1.1s ease; }
.scenario-catch-far-event-layer { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.scenario-catch-special-bird-layer { position: absolute; z-index: 3; inset: 0; overflow: hidden; pointer-events: none; }
.scenario-catch-motes { position: absolute; z-index: 3; inset: 8% 2% 28%; opacity: .12; pointer-events: none; transform: translate3d(var(--catch-parallax-mote-x), 0, 0); transition: opacity 1.2s ease, transform .58s cubic-bezier(.16,.78,.22,1); background-image: radial-gradient(circle at 4% 18%, rgb(207 250 254 / 68%) 0 1px, transparent 1.6px), radial-gradient(circle at 12% 74%, rgb(165 243 252 / 48%) 0 1px, transparent 1.5px), radial-gradient(circle at 22% 32%, rgb(196 181 253 / 45%) 0 .8px, transparent 1.5px), radial-gradient(circle at 78% 20%, rgb(165 243 252 / 48%) 0 .9px, transparent 1.5px), radial-gradient(circle at 87% 68%, rgb(196 181 253 / 42%) 0 1px, transparent 1.6px), radial-gradient(circle at 96% 38%, rgb(207 250 254 / 56%) 0 .9px, transparent 1.5px); mask-image: radial-gradient(ellipse at center, transparent 0 28%, rgb(0 0 0 / 24%) 48%, #000 82%); }
.scenario-catch-reactive-light { position: absolute; z-index: 3; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 88%, rgb(34 211 238 / 18%), transparent 38%), linear-gradient(180deg, transparent 62%, rgb(103 232 249 / 5%)); }
.scenario-catch-low-mist { position: absolute; bottom: -18%; width: 72%; height: 72%; border-radius: 50%; opacity: .14; background: radial-gradient(ellipse, rgb(148 163 184 / 32%), transparent 66%); filter: blur(22px); }
.scenario-catch-low-mist--one { left: -20%; }
.scenario-catch-low-mist--two { right: -24%; opacity: .11; }
.scenario-catch-reflection-shimmer { position: absolute; right: 12%; bottom: 3%; left: 12%; height: 23%; border-radius: 50%; opacity: .08; background: linear-gradient(90deg, transparent 4%, rgb(103 232 249 / 34%) 18%, transparent 32% 63%, rgb(167 139 250 / 28%) 76%, transparent 94%); filter: blur(8px); transform: perspective(180px) rotateX(68deg); }
.scenario-catch-ufo-flight { position: absolute; left: -110px; width: 86px; height: 46px; opacity: 0; animation: scenario-catch-ufo-cross var(--ufo-duration, 10s) cubic-bezier(.2,.58,.28,.96) both; will-change: transform, opacity; }
.scenario-catch-ufo-sprite { position: relative; display: block; width: 86px; height: 46px; background: url('./visual/ambient-ufo-flyby.png') center / contain no-repeat; filter: saturate(.82) brightness(.9) drop-shadow(0 0 8px rgb(34 211 238 / 16%)); transform: scale(var(--ufo-scale, .62)); transform-origin: center; }
.scenario-catch-ufo-sprite::after { position: absolute; top: 45%; left: 50%; width: 48%; height: 18%; border-radius: 50%; background: rgb(103 232 249 / 26%); filter: blur(7px); content: ''; opacity: 0; transform: translate(-50%,-50%); animation: scenario-catch-ufo-glint var(--ufo-duration, 10s) ease-in-out both; }
.scenario-catch-special-bird-flight { position: absolute; right: -92px; width: 68px; height: 68px; opacity: 0; animation: scenario-catch-special-bird-cross var(--special-bird-duration, 9.8s) linear both; will-change: transform, opacity; }
.scenario-catch-special-bird-sprite { display: block; width: 68px; height: 68px; background: url('./visual/ambient-special-bird-glance.png') 0 0 / 400% 200% no-repeat; filter: saturate(.78) brightness(.86) drop-shadow(0 2px 4px rgb(2 6 23 / 22%)); transform: scale(var(--special-bird-scale, .68)); transform-origin: center; animation: scenario-catch-special-bird-frames var(--special-bird-duration, 9.8s) step-end both; }
.scenario-catch-token.is-falling .scenario-catch-token-sheen { animation: scenario-catch-token-sheen 3.4s ease-in-out infinite; }
.scenario-catch-near-miss-accent { position: absolute; z-index: 10; bottom: 94px; width: clamp(96px, 12vw, 138px); height: 34px; border: 1px solid rgb(226 232 240 / 58%); border-radius: 50%; opacity: 0; box-shadow: 0 0 18px rgb(103 232 249 / 24%); transform: translateX(-50%); animation: scenario-catch-near-miss-ring .46s ease-out both; pointer-events: none; }
.scenario-catch-field.is-performance-1 .scenario-catch-atmosphere { filter: brightness(1.035) saturate(1.04); }
.scenario-catch-field.is-performance-2 .scenario-catch-atmosphere { filter: brightness(1.07) saturate(1.08); }
.scenario-catch-field.is-performance-3 .scenario-catch-atmosphere { filter: brightness(1.105) saturate(1.12); }
.scenario-catch-field.is-performance-1 .scenario-catch-motes { opacity: .16; }
.scenario-catch-field.is-performance-2 .scenario-catch-motes { opacity: .2; }
.scenario-catch-field.is-performance-3 .scenario-catch-motes { opacity: .24; }
.scenario-catch-field.is-performance-2 .scenario-catch-foreground-reflection { opacity: .31; }
.scenario-catch-field.is-performance-3 .scenario-catch-foreground-reflection { opacity: .36; }
.scenario-catch-field.is-performance-2 .scenario-catch-bucket-sprite { filter: drop-shadow(0 15px 17px rgb(2 6 23 / 62%)) drop-shadow(0 0 18px rgb(34 211 238 / 24%)); }
.scenario-catch-field.is-performance-3 .scenario-catch-bucket-sprite { filter: drop-shadow(0 15px 17px rgb(2 6 23 / 62%)) drop-shadow(0 0 22px rgb(34 211 238 / 31%)); }
.scenario-catch-field.is-world-lift .scenario-catch-reactive-light { animation: scenario-catch-world-lift .66s ease-out both; }
.scenario-catch-field.is-world-downshift .scenario-catch-ultrafar,
.scenario-catch-field.is-world-downshift .scenario-catch-atmosphere,
.scenario-catch-field.is-world-downshift .scenario-catch-midground { filter: brightness(.74) saturate(.72); }
.scenario-catch-field.is-world-downshift .scenario-catch-motes { opacity: .045; }
.scenario-catch-field.is-world-downshift .scenario-catch-foreground { opacity: .84; }
.scenario-catch-stage.is-victory .scenario-catch-reactive-light { opacity: .16; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-depth-glow { animation: scenario-catch-depth-breathe 24s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-light-shaft { animation: scenario-catch-shaft-breathe 21s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-motes { animation: scenario-catch-motes-drift 27s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-low-mist--one { animation: scenario-catch-mist-one 18s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-low-mist--two { animation: scenario-catch-mist-two 22s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-reflection-shimmer { animation: scenario-catch-reflection-breathe 16s ease-in-out infinite alternate; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-aurora--one { animation-duration: 19s; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-aurora--two { animation-duration: 24s; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-stars { animation-duration: 36s; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-cloud--one { animation-duration: 27s; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-cloud--two { animation-duration: 33s; }
.scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-foreground-haze { animation-duration: 15s; }

.scenario-lab-shell.is-catch-playing .scenario-lab-layout { grid-template-columns: minmax(0, 1fr); width: min(1680px, calc(100% - 1.25rem)); gap: .4rem; padding-top: .35rem; }
.scenario-lab-shell.is-catch-playing .scenario-lab-sidebar { display: none; }
.scenario-lab-shell.is-catch-playing .scenario-lab-main { gap: .5rem; }
.scenario-lab-shell.is-catch-playing .scenario-catch-game { padding: clamp(.7rem, 1.4vw, 1.15rem); border-color: rgb(103 232 249 / 10%); border-radius: 24px; background: linear-gradient(180deg, rgb(8 15 30 / 76%), rgb(4 9 20 / 42%)); box-shadow: none; }
.scenario-lab-shell.is-catch-playing .scenario-catch-header { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: .25rem; }
.scenario-lab-shell.is-catch-playing .scenario-catch-header h1 { font-size: clamp(1.55rem, 2.6vw, 2.4rem); }
.scenario-lab-shell.is-catch-playing .scenario-catch-header p { max-width: 760px; margin-top: .25rem; }
.scenario-lab-shell.is-catch-playing .scenario-catch-statusbar { margin-top: .2rem; }
.scenario-lab-shell.is-catch-playing .scenario-lab-qa-note { opacity: .25; }

@supports (-moz-appearance: none) {
  .scenario-catch-field {
    contain: layout paint style;
  }

  .scenario-catch-ultrafar,
  .scenario-catch-motes,
  .scenario-catch-far-event-layer,
  .scenario-catch-special-bird-layer,
  .scenario-catch-speed-lines,
  .scenario-catch-aurora,
  .scenario-catch-bird-layer,
  .scenario-catch-foreground-haze,
  .scenario-catch-low-mist,
  .scenario-catch-reflection-shimmer {
    display: none;
  }

  .scenario-catch-atmosphere,
  .scenario-catch-midground,
  .scenario-catch-foreground,
  .scenario-catch-horizon,
  .scenario-catch-cloud,
  .scenario-catch-foreground-reflection {
    filter: none !important;
  }

  .scenario-catch-token::before,
  .scenario-catch-token-body::after,
  .scenario-catch-token-sheen {
    display: none;
  }

  .scenario-catch-token-body {
    background: rgb(15 23 42 / 97%);
    box-shadow: 0 8px 16px rgb(2 6 23 / 35%), inset 0 1px rgb(255 255 255 / 8%);
  }

  .scenario-catch-token.is-capturing {
    filter: none;
  }

  .scenario-catch-atmosphere,
  .scenario-catch-midground,
  .scenario-catch-foreground {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .scenario-catch-token.is-passed {
    transition: none;
  }

  .scenario-catch-token-body,
  .scenario-catch-bucket-gimbal {
    will-change: auto;
  }

  .scenario-catch-bucket-gimbal::before,
  .scenario-catch-bucket-sprite,
  .scenario-catch-field.is-performance-1 .scenario-catch-bucket-sprite,
  .scenario-catch-field.is-performance-2 .scenario-catch-bucket-sprite,
  .scenario-catch-field.is-performance-3 .scenario-catch-bucket-sprite,
  .scenario-catch-splash-sprite {
    filter: none !important;
  }

  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-stars,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-cloud,
  .scenario-catch-stage.is-running .scenario-catch-speed-lines,
  .scenario-catch-field.is-world-lift .scenario-catch-reactive-light {
    animation: none !important;
  }

  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-depth-glow,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-light-shaft,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-motes,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-low-mist,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-reflection-shimmer,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-aurora,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-stars,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-cloud,
  .scenario-catch-stage:is(.is-arming,.is-running) .scenario-catch-foreground-haze,
  .scenario-catch-stage.is-running .scenario-catch-speed-lines,
  .scenario-catch-token.is-falling .scenario-catch-token-sheen {
    animation: none;
  }

  .scenario-catch-bucket-sprite {
    animation: scenario-catch-bucket-idle-sprite 1.28s step-end infinite !important;
  }

  .scenario-catch-bucket.is-swaying .scenario-catch-bucket-gimbal {
    animation: scenario-catch-bucket-sway .46s cubic-bezier(.16,.78,.22,1) both !important;
  }

  .scenario-catch-bucket.is-catching .scenario-catch-bucket-gimbal::before {
    animation: scenario-catch-bucket-shadow-impact .5s ease-out both !important;
  }

  .scenario-catch-splash-sprite {
    animation: scenario-catch-raster-splash-frames .64s step-end both, scenario-catch-raster-splash-bloom .64s ease-out both !important;
  }
}

@keyframes scenario-catch-depth-breathe { from { opacity: .055; filter: blur(76px) brightness(.92); } to { opacity: .095; filter: blur(66px) brightness(1.08); } }
@keyframes scenario-catch-shaft-breathe { from { opacity: .035; } to { opacity: .075; } }
@keyframes scenario-catch-motes-drift { from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; } to { background-position: 8px -15px, -10px -9px, 14px 8px, -12px -13px, 9px 11px, -8px 14px; } }
@keyframes scenario-catch-mist-one { from { opacity: .09; transform: translate3d(-2%,3px,0) scale(.96); } to { opacity: .17; transform: translate3d(5%,-4px,0) scale(1.06); } }
@keyframes scenario-catch-mist-two { from { opacity: .08; transform: translate3d(3%,0,0) scale(1.04); } to { opacity: .14; transform: translate3d(-4%,-5px,0) scale(.96); } }
@keyframes scenario-catch-reflection-breathe { from { opacity: .055; transform: perspective(180px) rotateX(68deg) translateX(-2%); } to { opacity: .11; transform: perspective(180px) rotateX(68deg) translateX(3%); } }
@keyframes scenario-catch-ufo-cross { 0% { opacity: 0; transform: translate3d(0,0,0); } 10% { opacity: var(--ufo-opacity,.28); } 88% { opacity: var(--ufo-opacity,.28); } 100% { opacity: 0; transform: translate3d(var(--ufo-distance),var(--ufo-drift),0); } }
@keyframes scenario-catch-ufo-glint { 0%,42%,58%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.72); } 50% { opacity: .42; transform: translate(-50%,-50%) scale(1.08); } }
@keyframes scenario-catch-special-bird-cross { 0% { opacity: 0; transform: translate3d(0,0,0); } 8% { opacity: var(--special-bird-opacity,.34); } 90% { opacity: var(--special-bird-opacity,.34); } 100% { opacity: 0; transform: translate3d(var(--special-bird-distance),var(--special-bird-drift),0); } }
@keyframes scenario-catch-special-bird-frames { 0%,9.9% { background-position: 0 0; } 10%,19.9% { background-position: 33.333% 0; } 20%,29.9% { background-position: 66.667% 0; } 30%,39.9% { background-position: 0 0; } 40%,44.9% { background-position: 100% 0; } 45%,48.4% { background-position: 0 100%; } 48.5%,53.9% { background-position: 33.333% 100%; } 54%,64.9% { background-position: 66.667% 100%; } 65%,75.9% { background-position: 100% 100%; } 76%,84.9% { background-position: 66.667% 100%; } 85%,93.9% { background-position: 100% 100%; } 94%,100% { background-position: 0 0; } }
@keyframes scenario-catch-token-sheen { 0%,24% { transform: translateX(-20%) rotate(22deg); opacity: .18; } 54% { opacity: .34; } 76%,100% { transform: translateX(270%) rotate(22deg); opacity: .08; } }
@keyframes scenario-catch-world-lift { 0% { opacity: 0; } 28% { opacity: .2; } 100% { opacity: 0; } }
@keyframes scenario-catch-near-miss-ring { 0% { opacity: 0; transform: translateX(-50%) scale(.72,.72); } 28% { opacity: .62; } 100% { opacity: 0; transform: translateX(-50%) scale(1.38,.72); } }
@keyframes scenario-catch-speed-pulse { from { opacity: .08; transform: translateY(-3px); } to { opacity: .2; transform: translateY(4px); } }
@keyframes scenario-catch-aurora-one { from { opacity: .09; transform: translate3d(-2%,0,0) rotate(-8deg) scale(.96); } to { opacity: .16; transform: translate3d(6%,5%,0) rotate(-4deg) scale(1.08); } }
@keyframes scenario-catch-aurora-two { from { opacity: .08; transform: translate3d(3%,2%,0) rotate(12deg) scale(1.04); } to { opacity: .15; transform: translate3d(-5%,7%,0) rotate(7deg) scale(.94); } }
@keyframes scenario-catch-stars-drift { from { background-position: 0 0; } to { background-position: 47px 18px; } }
@keyframes scenario-catch-haze-breathe { from { opacity: .54; transform: translate3d(-1.5%,2px,0) scaleX(.98); } to { opacity: .74; transform: translate3d(1.5%,-3px,0) scaleX(1.03); } }
@keyframes scenario-catch-cloud-one { from { transform: translate3d(-8px,0,0) scale(1); } to { transform: translate3d(34px,7px,0) scale(1.04); } }
@keyframes scenario-catch-cloud-two { from { transform: translate3d(16px,0,0) scale(.75); } to { transform: translate3d(-42px,-5px,0) scale(.79); } }
@keyframes scenario-catch-bird-cross { 0% { opacity: 0; transform: translate3d(0,0,0); } 8% { opacity: var(--bird-opacity,.25); } 88% { opacity: var(--bird-opacity,.25); } 100% { opacity: 0; transform: translate3d(var(--bird-distance),var(--bird-drift),0); } }
@keyframes scenario-catch-bird-flap { 0%,24.99% { background-position-x: 0%; } 25%,49.99% { background-position-x: 33.333%; } 50%,74.99% { background-position-x: 66.667%; } 75%,100% { background-position-x: 100%; } }
@keyframes scenario-catch-bucket-idle-sprite {
  0%, 12.49% { background-position: 0 0; }
  12.5%, 24.99% { background-position: 33.333% 0; }
  25%, 37.49% { background-position: 66.667% 0; }
  37.5%, 49.99% { background-position: 100% 0; }
  50%, 62.49% { background-position: 0 100%; }
  62.5%, 74.99% { background-position: 33.333% 100%; }
  75%, 87.49% { background-position: 66.667% 100%; }
  87.5%, 100% { background-position: 100% 100%; }
}
@keyframes scenario-catch-bucket-sway { 0%,100% { transform: rotate(0deg) translateY(0); } 34% { transform: rotate(var(--catch-bucket-lean, 0deg)) translateY(1px); } 68% { transform: rotate(var(--catch-bucket-counter-lean, 0deg)) translateY(-1px); } }
@keyframes scenario-game-pop { 0% { opacity: 0; transform: translateY(8px) scale(.72); } 28% { opacity: 1; transform: translateY(-8px) scale(1.08); } 100% { opacity: 0; transform: translateY(-34px) scale(.96); } }
@keyframes scenario-card-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes scenario-match-card-celebrate { 0%, 100% { transform: scale(1); } 32% { transform: scale(1.045) rotate(-.5deg); } 58% { transform: scale(1.018) rotate(.35deg); } }
@keyframes scenario-match-score-pulse { 0%, 100% { transform: scale(1); box-shadow: none; } 38% { transform: scale(1.12); box-shadow: 0 0 24px rgb(52 211 153 / 38%); } }
@keyframes scenario-match-reward-pop { 0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(.35) rotate(-12deg); } 18%, 72% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.08) rotate(0); } 100% { opacity: 0; transform: translate3d(0, -12px, 0) scale(.82) rotate(8deg); } }
@keyframes scenario-match-spark { 0% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.2) rotate(0); } 16% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(-50% + var(--match-spark-x)), calc(-50% + var(--match-spark-y)), 0) scale(.55) rotate(210deg); } }
@keyframes scenario-perfect-pair { 0% { opacity: 0; transform: translate(-50%, -44%) scale(.86); } 16%, 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -54%) scale(.96); } }
@keyframes scenario-perfect-outline { 0%, 100% { opacity: 0; transform: scale(.985); } 16%, 82% { opacity: 1; transform: scale(1); } }
@keyframes scenario-detect-ready { from { opacity: .35; transform: translateY(8px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes scenario-order-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scenario-token-into-bucket {
  0% { opacity: 1; transform: translate3d(-50%, var(--catch-capture-y), 0) scale(1); }
  28% { opacity: 1; transform: translate3d(-50%, calc(var(--catch-capture-y) + 7px), 0) scale(.96, 1.04); }
  72% { opacity: .9; transform: translate3d(-50%, calc(var(--catch-capture-y) + 38px), 0) scale(.46, .62); }
  100% { opacity: 0; transform: translate3d(-50%, calc(var(--catch-capture-y) + 66px), 0) scale(.08, .04); }
}
@keyframes scenario-bucket-catch { 0%, 100% { filter: brightness(1); transform: translateY(0) scale(1); } 34% { filter: brightness(1.5) drop-shadow(0 0 12px rgb(52 211 153 / 55%)); transform: translateY(3px) scale(.97, .94); } 58% { transform: translateY(-2px) scale(1.025, 1.04); } }
@keyframes scenario-catch-bucket-shadow-impact { 0%,100% { opacity: .68; transform: scaleX(1); } 34% { opacity: .9; transform: scaleX(1.18) scaleY(.72); } 62% { opacity: .5; transform: scaleX(.9) scaleY(1.08); } }
@keyframes scenario-catch-raster-splash-frames {
  0%, 12.49% { background-position: 0 0; }
  12.5%, 24.99% { background-position: 33.333% 0; }
  25%, 37.49% { background-position: 66.667% 0; }
  37.5%, 49.99% { background-position: 100% 0; }
  50%, 62.49% { background-position: 0 100%; }
  62.5%, 74.99% { background-position: 33.333% 100%; }
  75%, 87.49% { background-position: 66.667% 100%; }
  87.5%, 100% { background-position: 100% 100%; }
}
@keyframes scenario-catch-raster-splash-bloom {
  0% { opacity: 0; transform: translateX(-50%) scale(.72,.58); }
  9% { opacity: .96; }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04,1.08); }
  78% { opacity: .88; }
  100% { opacity: 0; transform: translateX(-50%) scale(.96,.82); }
}
@keyframes scenario-catch-splash-ring { 0%, 20% { opacity: 0; transform: translateX(-50%) scale(.55); } 42% { opacity: .9; } 100% { opacity: 0; transform: translateX(-50%) scale(1.24); } }
@keyframes scenario-catch-particle-burst { 0%, 16% { opacity: 0; transform: translate3d(-50%, 0, 0) scale(.35) rotate(0); } 28% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(-50% + var(--catch-particle-x)), var(--catch-particle-y), 0) scale(.3) rotate(var(--catch-particle-rotation)); } }

.scenario-practice-feedback { margin-top: 1rem; padding: 1rem; border: 1px solid rgb(148 163 184 / 16%); border-radius: 14px; background: rgb(15 23 42 / 44%); }
.scenario-practice-feedback[data-tone="success"] { border-color: rgb(52 211 153 / 36%); background: linear-gradient(145deg, rgb(52 211 153 / 10%), rgb(15 23 42 / 54%)); }
.scenario-practice-feedback[data-tone="retry"] { border-color: rgb(251 113 133 / 38%); background: linear-gradient(145deg, rgb(251 113 133 / 10%), rgb(15 23 42 / 54%)); }
.scenario-practice-feedback > strong { display: block; color: #fff; font-size: 1.35rem; }
.scenario-practice-feedback[data-tone="success"] > strong { color: #a7f3d0; }
.scenario-practice-feedback[data-tone="retry"] > strong { color: #fecdd3; }
.scenario-practice-feedback > p { margin: .45rem 0 0; color: #dbe4f0; font-size: .8rem; line-height: 1.55; }
.scenario-practice-feedback > div { display: flex; align-items: center; gap: .65rem; margin-top: .85rem; flex-wrap: wrap; }

.scenario-celebration { position: fixed; z-index: 90; inset: 0; overflow: hidden; pointer-events: none; }
.scenario-confetti-piece { position: absolute; top: -18px; left: var(--confetti-left); width: 10px; height: 18px; border-radius: 3px; background: var(--confetti-color); animation: scenario-confetti-fall 3.2s cubic-bezier(.16, .72, .23, 1) var(--confetti-delay) both; }
.scenario-toast-stack { position: fixed; z-index: 95; right: clamp(.8rem, 2vw, 1.5rem); top: 74px; display: grid; gap: .55rem; width: min(310px, calc(100vw - 1.6rem)); pointer-events: none; }
.scenario-game-toast { padding: .72rem .9rem; border: 1px solid rgb(167 139 250 / 48%); border-radius: 13px; color: #fff; background: linear-gradient(135deg, rgb(109 40 217 / 97%), rgb(67 56 202 / 97%)); box-shadow: 0 18px 48px rgb(2 6 23 / 42%); font-size: .76rem; font-weight: 900; animation: scenario-toast-pop 3.4s cubic-bezier(.16, .84, .24, 1) var(--toast-delay) both; }
.scenario-game-toast--retry { display: grid; gap: .22rem; border-color: rgb(251 113 133 / 62%); background: linear-gradient(135deg, rgb(136 19 55 / 98%), rgb(76 29 49 / 98%)); animation: scenario-toast-enter .24s ease-out both; }
.scenario-game-toast--retry strong { color: #fff; font-size: .82rem; }
.scenario-game-toast--retry span { color: #ffe4e6; font-size: .7rem; font-weight: 700; line-height: 1.4; }
@keyframes scenario-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -10px, 0) rotate(0); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--confetti-drift), 105vh, 0) rotate(720deg); }
}
@keyframes scenario-toast-pop {
  0% { opacity: 0; transform: translate3d(36px, 0, 0) scale(.92); }
  12%, 76% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(22px, 0, 0) scale(.97); }
}
@keyframes scenario-toast-enter {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.scenario-feedback { overflow: hidden; padding: clamp(1rem, 3vw, 1.5rem); }
.scenario-feedback[data-tone="success"] { border-color: rgb(52 211 153 / 34%); background: radial-gradient(circle at 0 0, rgb(52 211 153 / 8%), transparent 24rem), var(--scenario-panel); }
.scenario-feedback[data-tone="retry"] { border-color: rgb(251 113 133 / 38%); background: radial-gradient(circle at 0 0, rgb(251 113 133 / 8%), transparent 24rem), var(--scenario-panel); }
.scenario-feedback-verdict { display: flex; align-items: center; gap: .8rem; padding-bottom: .9rem; border-bottom: 1px solid rgb(148 163 184 / 10%); }
.scenario-feedback-verdict-icon { display: none; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.scenario-feedback[data-tone="success"] .scenario-feedback-verdict-icon--success { display: grid; color: var(--scenario-green); background: rgb(52 211 153 / 12%); box-shadow: 0 0 28px rgb(52 211 153 / 12%); }
.scenario-feedback[data-tone="retry"] .scenario-feedback-verdict-icon--retry { display: grid; color: var(--scenario-red); background: rgb(251 113 133 / 12%); box-shadow: 0 0 28px rgb(251 113 133 / 12%); }
.scenario-feedback-heading { display: grid; gap: .2rem; }
.scenario-feedback-heading span { color: var(--scenario-muted); font-size: .58rem; font-weight: 800; letter-spacing: .1em; opacity: .62; text-transform: uppercase; }
.scenario-feedback-heading strong { color: #fff; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.1; }
.scenario-feedback[data-tone="success"] .scenario-feedback-heading strong { color: #a7f3d0; }
.scenario-feedback[data-tone="retry"] .scenario-feedback-heading strong { color: #fecdd3; }
.scenario-feedback-guidance { margin: .9rem 0 1.05rem; padding: .8rem 1rem; border-left: 3px solid #64748b; border-radius: 0 12px 12px 0; background: rgb(15 23 42 / 52%); }
.scenario-feedback[data-tone="success"] .scenario-feedback-guidance { border-color: var(--scenario-green); }
.scenario-feedback[data-tone="retry"] .scenario-feedback-guidance { border-color: var(--scenario-red); }
.scenario-feedback-guidance > span { color: var(--scenario-muted); font-size: .56rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scenario-feedback-guidance > p { max-width: 920px; margin: .26rem 0 0; color: #e2e8f0; font-size: .86rem; font-weight: 650; line-height: 1.55; }
.scenario-feedback-analysis h2, .scenario-signal-box h2 { margin: 0 0 .65rem; color: #dbe4f0; font-size: .72rem; letter-spacing: .055em; text-transform: uppercase; }
.scenario-feedback-analysis > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.scenario-rationale { padding: .85rem .9rem; border: 1px solid rgb(100 116 139 / 18%); border-left-width: 4px; border-radius: 12px; background: rgb(15 23 42 / 46%); }
.scenario-rationale[data-relation="selected-correct"],
.scenario-rationale[data-relation="correct"] { border-color: rgb(52 211 153 / 34%); border-left-color: var(--scenario-green); background: linear-gradient(145deg, rgb(52 211 153 / 10%), rgb(15 23 42 / 58%)); }
.scenario-feedback[data-tone="success"] .scenario-rationale[data-relation="selected-correct"] { grid-column: 1 / -1; }
.scenario-rationale[data-relation="selected-incorrect"] { border-color: rgb(251 113 133 / 38%); border-left-color: var(--scenario-red); background: linear-gradient(145deg, rgb(251 113 133 / 10%), rgb(15 23 42 / 58%)); }
.scenario-rationale[data-relation="other"] { grid-column: 1 / -1; padding-block: .65rem; border-left-color: #64748b; opacity: .58; }
.scenario-rationale-heading { display: grid; gap: .35rem; }
.scenario-rationale-status { width: max-content; padding: .2rem .42rem; border: 1px solid currentColor; border-radius: 999px; font-size: .54rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.scenario-rationale[data-relation="selected-correct"] .scenario-rationale-status,
.scenario-rationale[data-relation="correct"] .scenario-rationale-status { color: #6ee7b7; background: rgb(52 211 153 / 9%); }
.scenario-rationale[data-relation="selected-incorrect"] .scenario-rationale-status { color: #fda4af; background: rgb(251 113 133 / 9%); }
.scenario-rationale[data-relation="other"] .scenario-rationale-status { color: #94a3b8; }
.scenario-rationale strong { display: block; color: #f8fafc; font-size: .76rem; line-height: 1.4; }
.scenario-rationale p { margin: .38rem 0 0; color: #bdc7d6; font-size: .7rem; line-height: 1.55; }
.scenario-feedback-actions { display: flex; justify-content: flex-start; margin-top: .85rem; }
.scenario-feedback-retry { min-width: 180px; }
.scenario-feedback[data-tone="retry"] .scenario-feedback-retry { border-color: rgb(251 113 133 / 38%); background: linear-gradient(135deg, #be123c, #9f1239 54%, #7f1d1d); box-shadow: 0 12px 30px rgb(159 18 57 / 22%); }
.scenario-feedback[data-tone="retry"] .scenario-feedback-retry:hover { border-color: rgb(253 164 175 / 68%); background: linear-gradient(135deg, #e11d48, #be123c 54%, #9f1239); }
.scenario-signal-box { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1rem; margin-top: 1rem; padding: 1rem; border: 1px solid rgb(52 211 153 / 18%); border-radius: 14px; background: rgb(52 211 153 / 5%); }
.scenario-signal-box ul { display: flex; gap: .45rem; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.scenario-signal-box li { padding: .3rem .55rem; border-radius: 999px; color: #a7f3d0; background: rgb(52 211 153 / 10%); font-size: .65rem; font-weight: 750; }
.scenario-signal-box > p { margin: 0; color: #d1fae5; font-size: .72rem; line-height: 1.6; }

.scenario-lab-topbar-context {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  overflow: hidden;
  white-space: nowrap;
}
.scenario-lab-topbar-lab-indicator {
  flex: 0 0 auto;
  color: var(--scenario-muted);
  font-size: .56rem;
  font-weight: 780;
  letter-spacing: .08em;
  opacity: .62;
  text-transform: uppercase;
}
.scenario-lab-topbar-separator { color: #64748b; font-size: .68rem; opacity: .58; }
.scenario-lab-topbar-item {
  flex: 0 0 auto;
  color: var(--scenario-purple-soft);
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.scenario-lab-topbar-title {
  min-width: 0;
  overflow: hidden;
  color: #e7eaf2;
  font-size: .75rem;
  font-weight: 760;
  text-overflow: ellipsis;
}

.scenario-lms-section {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.scenario-lms-section > summary {
  padding: .48rem .45rem .62rem;
  color: #aeb7c7;
  font-size: .61rem;
  font-weight: 780;
  cursor: pointer;
  list-style-position: inside;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.scenario-lms-section--labs > summary { color: #d8d0f2; font-size: .65rem; }
.scenario-lms-section--content { padding-top: .15rem; border-top: 1px solid rgb(148 163 184 / 8%); opacity: .7; }
.scenario-lms-section--content > summary { color: #8994a8; }
.scenario-lms-section--information { padding-top: .15rem; border-top: 1px solid rgb(148 163 184 / 8%); }
.scenario-lms-section--information > summary { color: #8994a8; }
.scenario-lms-section--information .scenario-sidebar-information { padding: 0 .42rem .5rem; }
.scenario-lms-links { display: grid; gap: .3rem; padding: 0 .45rem .5rem; }
.scenario-lms-links button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: .6rem;
  padding: .62rem .7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--scenario-muted);
  background: transparent;
  font: inherit;
  font-size: .74rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}
.scenario-lms-links button:hover,
.scenario-lms-links button:focus-visible { color: #fff; background: rgb(255 255 255 / 4%); outline: none; }
.scenario-lms-links button[aria-current="page"] { color: #e8e3f8; border-color: rgb(139 92 246 / 18%); background: rgb(139 92 246 / 6%); }
.scenario-lms-section .scenario-lab-nav { padding: 0 .4rem .5rem; }

.scenario-context-panel {
  min-height: min(620px, calc(100vh - 82px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.3rem, 4vw, 3.4rem);
  border: 1px solid var(--scenario-border);
  border-radius: 22px;
  background: var(--scenario-panel);
  box-shadow: 0 24px 80px rgb(2 8 23 / 18%);
}
.scenario-context-panel h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}
.scenario-context-panel .scenario-lab-summary { max-width: 820px; }
.scenario-context-actions { display: flex; align-items: center; gap: .65rem; margin-top: 1.2rem; flex-wrap: wrap; }
.scenario-context-start { align-self: flex-start; }
.scenario-context-direct { min-height: 42px; }

.scenario-guidance-panel {
  overflow: hidden;
  border: 1px solid rgb(139 92 246 / 32%);
  border-radius: 20px;
  background: linear-gradient(145deg, rgb(139 92 246 / 7%), rgb(34 211 238 / 2%), rgb(2 8 23 / 34%)), var(--scenario-panel);
  box-shadow: 0 34px 100px rgb(2 6 23 / 42%), 0 0 0 1px rgb(255 255 255 / 2.5%) inset;
}
.scenario-guidance-panel:focus-visible { outline: 3px solid rgb(139 92 246 / 42%); outline-offset: 3px; }
.scenario-guidance-statusbar { display: flex; min-height: 36px; align-items: center; justify-content: flex-end; padding: .35rem .7rem; border-bottom: 1px solid rgb(139 92 246 / 14%); background: rgb(2 8 23 / 18%); }
.scenario-guidance-status { flex: 0 0 auto; padding: .35rem .58rem; border: 1px solid rgb(148 163 184 / 14%); border-radius: 999px; color: var(--scenario-muted); background: rgb(2 8 23 / 35%); font-size: .67rem; font-weight: 750; }
.scenario-sequence-navigation { display: inline-flex; align-items: center; gap: .25rem; }
.scenario-sequence-navigation[hidden] { display: none; }
.scenario-topbar-sequence-navigation { flex: 0 0 auto; }
.scenario-sequence-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  padding: .34rem .48rem;
  border: 1px solid rgb(148 163 184 / 16%);
  border-radius: 9px;
  color: #cbd5e1;
  background: rgb(2 8 23 / 40%);
  font-size: .62rem;
  font-weight: 800;
  text-decoration: none;
}
.scenario-sequence-link:hover { border-color: rgb(167 139 250 / 50%); color: #fff; background: rgb(124 58 237 / 12%); }
.scenario-sequence-link[aria-disabled="true"] { color: #64748b; cursor: default; opacity: .42; pointer-events: none; }
.scenario-sequence-link svg { width: 14px; height: 14px; }
.scenario-lab-mission-topline { display: flex; min-width: 0; align-items: center; gap: .75rem; }
.scenario-lab-mission-topline .scenario-lab-step-label { margin-bottom: 0; }
.scenario-guidance-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #050914; box-shadow: 0 1px 0 rgb(255 255 255 / 3%) inset; }
.scenario-guidance-stage[hidden] { display: none; }
.scenario-guidance-player-host,
.scenario-guidance-player-host > * { display: block; position: absolute; inset: 0; width: 100%; height: 100%; background: #050914; }
.scenario-guidance-big-play {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(221 214 254 / 66%);
  border-radius: 50%;
  color: #fff;
  background: rgb(109 40 217 / 90%);
  box-shadow: 0 20px 65px rgb(46 16 101 / 54%), 0 0 0 10px rgb(139 92 246 / 12%);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.scenario-guidance-big-play svg { margin-left: 5px; fill: currentColor; }
.scenario-guidance-big-play:hover { background: #7c3aed; box-shadow: 0 24px 75px rgb(46 16 101 / 62%), 0 0 0 13px rgb(139 92 246 / 15%); transform: translate(-50%, -50%) scale(1.04); }
.scenario-guidance-big-play:focus-visible { outline: 4px solid rgb(196 181 253 / 72%); outline-offset: 5px; }
.scenario-guidance-caption {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 4.35rem;
  width: min(84%, 980px);
  transform: translateX(-50%);
  padding: .55rem .8rem;
  border: 1px solid rgb(196 181 253 / 22%);
  border-radius: 12px;
  color: #f8fafc;
  background: rgb(2 6 23 / 64%);
  backdrop-filter: blur(10px);
  font-size: clamp(.84rem, 1vw, 1rem);
  font-weight: 680;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 2px rgb(0 0 0 / 70%);
}
.scenario-guidance-panel audio { display: none; }
.scenario-guidance-player-controls {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: .35rem;
  padding: .5rem .7rem .62rem;
  background: linear-gradient(180deg, transparent, rgb(2 8 23 / 88%) 32%);
}
.scenario-guidance-timeline { position: relative; display: grid; min-height: 18px; align-items: center; }
.scenario-guidance-seek { position: relative; z-index: 1; width: 100%; margin: 0; accent-color: var(--scenario-purple); cursor: pointer; }
.scenario-guidance-pause-marker {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: var(--scenario-guidance-pause-position, 0%);
  width: 11px;
  height: 11px;
  border: 2px solid #fff7ed;
  border-radius: 2px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgb(245 158 11 / 22%), 0 0 13px rgb(245 158 11 / 72%);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
.scenario-guidance-control-row { display: flex; align-items: center; gap: .42rem; min-width: 0; }
.scenario-guidance-icon-button,
.scenario-guidance-skip-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .42rem .58rem;
  border: 1px solid rgb(148 163 184 / 20%);
  border-radius: 10px;
  color: #e2e8f0;
  background: rgb(15 23 42 / 72%);
  font: inherit;
  font-size: .67rem;
  font-weight: 800;
  cursor: pointer;
}
.scenario-guidance-icon-button:hover,
.scenario-guidance-skip-button:hover { border-color: rgb(34 211 238 / 42%); background: rgb(15 23 42 / 92%); }
.scenario-guidance-captions-button[aria-pressed="true"] { border-color: rgb(167 139 250 / 42%); color: #f5f3ff; background: rgb(124 58 237 / 18%); }
.scenario-guidance-captions-button[aria-pressed="false"] { color: #778297; opacity: .78; }
.scenario-guidance-timecode { margin-left: .25rem; color: #e2e8f0; font: 800 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }
.scenario-guidance-skip-button { margin-left: auto; border-color: rgb(167 139 250 / 58%); color: #fff; background: linear-gradient(135deg, var(--scenario-purple-strong), #5b21b6 58%, #4338ca); box-shadow: 0 10px 28px rgb(91 33 182 / 28%); }
.scenario-guidance-skip-button:hover { border-color: rgb(196 181 253 / 78%); background: linear-gradient(135deg, #8b5cf6, #6d28d9 58%, #4f46e5); }

.scenario-activation { width: min(100%, 860px); margin-top: 1.35rem; padding: 1rem; border: 1px solid rgb(139 92 246 / 18%); border-radius: 16px; background: rgb(139 92 246 / 4%); }
.scenario-activation h2 { margin: .25rem 0; color: #e9e5ff; font-size: .94rem; line-height: 1.4; }
.scenario-activation > p { margin: 0; color: var(--scenario-muted); font-size: .68rem; }
.scenario-activation-options { display: flex; gap: .45rem; margin-top: .7rem; flex-wrap: wrap; }
.scenario-activation-options button,
.scenario-guidance-retrieval-options button { padding: .58rem .72rem; border: 1px solid rgb(148 163 184 / 18%); border-radius: 11px; color: #cbd5e1; background: rgb(15 23 42 / 54%); font: inherit; font-size: .7rem; font-weight: 740; text-align: left; cursor: pointer; }
.scenario-activation-options button:hover,
.scenario-activation-options button.is-selected,
.scenario-guidance-retrieval-options button:hover,
.scenario-guidance-retrieval-options button.is-selected { border-color: rgb(167 139 250 / 58%); color: #fff; background: rgb(124 58 237 / 17%); }
.scenario-guidance-retrieval-options button:disabled { cursor: default; opacity: .72; }
.scenario-guidance-retrieval-options button.is-selected:disabled { opacity: 1; }

.scenario-guidance-speed,
.scenario-guidance-voice { display: inline-flex; align-items: center; gap: .3rem; color: #cbd5e1; font-size: .64rem; font-weight: 780; }
.scenario-guidance-speed select,
.scenario-guidance-voice select { min-height: 34px; padding: .3rem .4rem; border: 1px solid rgb(148 163 184 / 20%); border-radius: 9px; color: #e2e8f0; background: rgb(15 23 42 / 88%); font: inherit; }
.scenario-guidance-voice[hidden] { display: none; }
.scenario-guidance-voice select[hidden] { display: none; }
.scenario-guidance-active-pause { position: absolute; z-index: 9; inset: 0; display: grid; place-content: center; gap: .7rem; padding: 2rem; background: rgb(2 6 23 / 82%); backdrop-filter: blur(12px); text-align: center; }
.scenario-guidance-active-pause[hidden] { display: none; }
.scenario-guidance-active-pause strong { max-width: 660px; color: #fff; font-size: clamp(1.2rem, 2.3vw, 2rem); line-height: 1.25; }
.scenario-guidance-active-pause .scenario-primary-button { justify-self: center; }
.scenario-guidance-active-pause-replay {
  display: flex;
  max-width: 660px;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-top: .2rem;
  padding: .62rem .68rem .62rem .85rem;
  border: 1px solid rgb(34 211 238 / 22%);
  border-radius: 14px;
  color: #cbd5e1;
  background: rgb(8 47 73 / 24%);
  font-size: .72rem;
  font-weight: 720;
  line-height: 1.4;
  text-align: left;
}
.scenario-guidance-active-pause-replay .scenario-secondary-button {
  min-height: 38px;
  flex: 0 0 auto;
  border-color: rgb(34 211 238 / 30%);
  color: #e0f2fe;
  background: rgb(8 47 73 / 42%);
  box-shadow: none;
  white-space: nowrap;
}
.scenario-guidance-active-pause-replay .scenario-secondary-button:hover {
  border-color: rgb(34 211 238 / 54%);
  background: rgb(8 47 73 / 68%);
}

.scenario-guidance-learning-step {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 16% 12%, rgb(139 92 246 / 18%), transparent 32%),
    radial-gradient(circle at 88% 82%, rgb(34 211 238 / 10%), transparent 34%),
    linear-gradient(145deg, rgb(15 23 42 / 98%), rgb(2 8 23 / 98%));
}
.scenario-guidance-learning-step:focus-visible { outline: 3px solid rgb(167 139 250 / 54%); outline-offset: -5px; }
.scenario-guidance-learning-step::before,
.scenario-guidance-learning-step::after {
  position: absolute;
  width: clamp(130px, 19vw, 250px);
  aspect-ratio: 1;
  border: 1px solid rgb(167 139 250 / 10%);
  border-radius: 42%;
  content: "";
  pointer-events: none;
  transform: rotate(18deg);
}
.scenario-guidance-learning-step::before { top: -16%; left: -6%; }
.scenario-guidance-learning-step::after { right: -5%; bottom: -20%; transform: rotate(-22deg); }
.scenario-guidance-learning-step-card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid rgb(139 92 246 / 28%);
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(139 92 246 / 10%), rgb(15 23 42 / 88%));
  box-shadow: 0 24px 70px rgb(2 6 23 / 34%);
}
.scenario-guidance-retrieval[hidden],
.scenario-guidance-transfer[hidden] { display: none; }
.scenario-guidance-retrieval h2,
.scenario-guidance-transfer h2 { margin: .32rem 0 1rem; color: #fff; font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.4; }
.scenario-guidance-retrieval-options { display: grid; gap: .4rem; }
.scenario-guidance-retrieval-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.scenario-guidance-retrieval .scenario-guidance-learning-step-card > p { min-height: 1.2em; margin: .65rem 0 0; color: #cbd5e1; font-size: .78rem; line-height: 1.45; }
.scenario-guidance-retrieval[data-outcome="correct"] .scenario-guidance-learning-step-card > p { color: #a7f3d0; }
.scenario-guidance-retrieval[data-outcome="retry"] .scenario-guidance-learning-step-card > p { color: #fde68a; }
.scenario-performance-support { display: grid; gap: .28rem; margin-bottom: .75rem; padding: .72rem .85rem; border: 1px solid rgb(34 211 238 / 22%); border-radius: 13px; background: rgb(34 211 238 / 5%); }
.scenario-performance-support > span { color: #94a3b8; font-size: .58rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.scenario-performance-support > strong { color: #cffafe; font-size: .75rem; line-height: 1.5; }
.scenario-performance-support[data-support-level="guided"] { opacity: .88; }
.scenario-performance-support[data-support-level="light"] { border-color: rgb(148 163 184 / 14%); background: rgb(148 163 184 / 3%); opacity: .72; }

.scenario-transfer-closure { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(148 163 184 / 12%); }
.scenario-transfer-closure h2 { margin: 0 0 .7rem; color: #fff; font-size: .86rem; }
.scenario-transfer-closure > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.scenario-transfer-closure article { padding: .7rem; border: 1px solid rgb(148 163 184 / 12%); border-radius: 12px; background: rgb(255 255 255 / 2.5%); }
.scenario-transfer-closure article span { color: var(--scenario-purple-soft); font-size: .58rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.scenario-transfer-closure article p { margin: .25rem 0 0; color: #cbd5e1; font-size: .7rem; line-height: 1.45; }

@media (min-width: 1051px) {
  .scenario-lab-shell.is-guidance-active .scenario-lab-layout { padding-top: .7rem; align-items: start; }
  .scenario-lab-shell.is-guidance-active .scenario-guidance-panel {
    width: min(94%, 1280px);
    margin-inline: auto;
  }
  .scenario-lab-shell.is-guidance-active .scenario-guidance-stage {
    width: 100%;
    margin: 0 auto;
  }
}

.scenario-lab-sidebar { top: 66px; }
.scenario-lab-qa-note { width: min(1420px, calc(100% - 2rem)); margin: 0 auto; padding: 0 0 2.5rem; color: var(--scenario-muted); font-size: .66rem; text-align: center; }

@media (max-width: 1050px) {
  .scenario-lab-intro { grid-template-columns: 1fr; }
  .scenario-lab-safety-card { max-width: 720px; align-self: auto; }
  .scenario-lab-layout { grid-template-columns: 1fr; }
  .scenario-lab-sidebar { position: static; max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
  .scenario-lab-nav { grid-template-columns: 1fr; }
  .scenario-lab-nav-heading { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .scenario-browser-grid { grid-template-columns: 1fr; }
  .scenario-browser { max-width: 720px; width: 100%; margin: 0 auto; }
  .scenario-classify-board { grid-template-columns: 1fr 1fr; }
  .scenario-classify-tray { grid-column: 1 / -1; min-height: 0; }
  .scenario-classify-tray > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-match-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-detect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .scenario-lab-topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; padding-inline: .55rem; }
  .scenario-lab-topbar-actions { gap: .35rem; }
  .scenario-lab-brand-copy,
  .scenario-lab-topbar-lab-indicator,
  .scenario-lab-topbar-separator,
  .scenario-lab-topbar-title { display: none; }
  .scenario-lab-topbar-item { overflow: hidden; font-size: .59rem; text-overflow: ellipsis; }
  .scenario-context-panel { min-height: 0; padding: 1.2rem; }
  .scenario-context-panel h1 { font-size: clamp(2rem, 12vw, 3rem); }
  .scenario-context-actions > * { width: 100%; }
  .scenario-guidance-status { white-space: normal; }
  .scenario-sequence-link { width: 34px; min-height: 34px; padding: .35rem; }
  .scenario-sequence-link span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); white-space: nowrap; }
  .scenario-guidance-caption { bottom: 5.15rem; width: calc(100% - 1rem); padding: .45rem .6rem; font-size: .72rem; }
  .scenario-guidance-big-play { width: 66px; height: 66px; }
  .scenario-guidance-big-play svg { width: 30px; height: 30px; }
  .scenario-guidance-stage { overflow: visible; margin-bottom: 92px; }
  .scenario-guidance-player-host { overflow: hidden; }
  .scenario-guidance-caption { bottom: .65rem; }
  .scenario-guidance-active-pause { gap: .38rem; padding: .55rem; }
  .scenario-guidance-active-pause strong { font-size: 1rem; line-height: 1.15; }
  .scenario-guidance-active-pause .scenario-primary-button { min-height: 34px; padding: .4rem .7rem; font-size: .66rem; }
  .scenario-guidance-active-pause-replay { align-items: stretch; flex-direction: column; gap: .35rem; margin-top: 0; padding: .4rem .5rem; font-size: .61rem; text-align: center; }
  .scenario-guidance-active-pause-replay .scenario-secondary-button { width: 100%; min-height: 32px; justify-content: center; padding: .35rem .55rem; font-size: .62rem; white-space: normal; }
  .scenario-guidance-player-controls { bottom: -92px; min-height: 92px; padding: .42rem .45rem .5rem; background: #050914; }
  .scenario-guidance-control-row { display: grid; grid-template-columns: repeat(5, minmax(0, 34px)) auto minmax(58px, 1fr); gap: .28rem; }
  .scenario-guidance-icon-button { min-width: 34px; padding: .4rem; }
  .scenario-guidance-icon-button > span { display: none; }
  .scenario-guidance-timecode { margin-left: .12rem; font-size: .55rem; text-align: right; }
  .scenario-guidance-skip-button { grid-column: 1 / -1; width: 100%; margin-left: 0; padding: .38rem .5rem; font-size: .62rem; }
  .scenario-guidance-speed > span,
  .scenario-guidance-voice > span { display: none; }
  .scenario-guidance-speed select,
  .scenario-guidance-voice select { min-height: 32px; padding: .25rem; font-size: .6rem; }
  .scenario-activation-options { display: grid; }
  .scenario-guidance-learning-step { min-height: 360px; aspect-ratio: auto; padding: .75rem; }
  .scenario-guidance-learning-step-card { padding: 1rem; }
  .scenario-guidance-retrieval-actions { align-items: stretch; flex-direction: column; }
  .scenario-feedback-analysis > div { grid-template-columns: 1fr; }
  .scenario-rationale[data-relation="other"] { grid-column: auto; }
  .scenario-transfer-closure > div { grid-template-columns: 1fr; }
  .scenario-lab-nav { display: grid; overflow: visible; padding-bottom: 0; }
  .scenario-lab-nav-group { width: 100%; }
  .scenario-lab-subnav { grid-template-columns: 1fr; }
  .scenario-lab-mission-card { border-radius: 18px; }
  .scenario-artifact { padding: .65rem; border-radius: 16px; }
  .scenario-option { padding: .75rem; }
  .scenario-next-button { width: 100%; margin-left: 0; }
  .scenario-signal-box { grid-template-columns: 1fr; }
  .scenario-payment-heading { flex-direction: column; }
  .scenario-payment-heading > strong { font-size: 1.1rem; }
  .scenario-practice-header { align-items: stretch; flex-direction: column; }
  .scenario-practice-badge { width: max-content; }
  .scenario-classify-board { grid-template-columns: 1fr; }
  .scenario-classify-tray { grid-column: auto; }
  .scenario-classify-tray > div { grid-template-columns: 1fr; }
  .scenario-classify-tray,
  .scenario-classify-zone { min-height: 0; }
  .scenario-typing-tokens { grid-template-columns: 1fr; }
  .scenario-practice-actions > *,
  .scenario-practice-feedback > div > * { width: 100%; }
  .scenario-game-hud { align-items: stretch; flex-direction: column; }
  .scenario-game-hud .scenario-ghost-button { width: 100%; justify-content: center; }
  .scenario-match-grammar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .scenario-match-grammar-copy { grid-column: 1 / -1; margin-right: 0; }
  .scenario-match-role { min-width: 0; }
  .scenario-match-card { min-height: 150px; }
  .scenario-detect-grid { grid-template-columns: 1fr; }
  .scenario-detect-submit > * { width: 100%; justify-content: center; }
  .scenario-detect-preview > header { grid-template-columns: auto minmax(0, 1fr); }
  .scenario-detect-preview-countdown { grid-column: 1 / -1; justify-items: start; }
  .scenario-detect-preview-stage { grid-template-columns: 1fr; }
  .scenario-detect-preview-card { min-height: 132px; }
  .scenario-game-hud-actions { width: 100%; justify-content: space-between; }
  .scenario-order-preview { align-items: stretch; flex-direction: column; }
  .scenario-order-preview-countdown { justify-items: start; }
  .scenario-order-step { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .scenario-order-handle { display: none; }
  .scenario-order-number { width: 30px; height: 30px; }
}

@media (max-width: 700px) {
  .scenario-detect-mission { grid-template-columns: auto minmax(0, 1fr); }
  .scenario-detect-mission-rules { grid-column: 1 / -1; padding: .58rem 0 0; border-top: 1px solid rgb(250 204 21 / 18%); border-left: 0; }
  .scenario-catch-intro { grid-template-columns: 1fr; }
  .scenario-catch-intro > .scenario-primary-button { width: 100%; justify-content: center; }
  .scenario-catch-howto { align-items: flex-start; }
  .scenario-catch-stage-hud { grid-template-columns: 1fr auto; }
  .scenario-catch-timer { grid-column: 1 / -1; }
  .scenario-catch-decision-score { justify-self: start; }
  .scenario-catch-audio-control { justify-self: end; }
  .scenario-catch-audio-mixer { position: fixed; top: auto; right: .7rem; bottom: .7rem; left: .7rem; width: auto; }
  .scenario-catch-volume-row { grid-template-columns: 52px minmax(0, 1fr) 38px; }
  .scenario-catch-field { height: clamp(360px, 55vh, 470px); border-radius: 18px; }
  .scenario-catch-token { width: clamp(92px, 25vw, 124px); }
  .scenario-catch-token-body { min-height: 44px; grid-template-columns: 18px minmax(0, 1fr); gap: .32rem; padding: .45rem .42rem; font-size: .6rem; }
  .scenario-catch-token-glyph { width: 18px; height: 18px; border-radius: 5px; font-size: .55rem; }
  .scenario-catch-token strong { font-size: .6rem; }
  .scenario-catch-bucket-track { height: 122px; }
  .scenario-catch-bucket { height: 116px; }
  .scenario-catch-bucket-gimbal { width: 132px; height: 132px; }
  .scenario-catch-bucket-vessel { width: 100%; height: 100%; }
  .scenario-catch-impact-flash { bottom: 82px; width: 96px; height: 29px; }
  .scenario-catch-splash-sprite { bottom: 48px; width: 138px; }
  .scenario-catch-ufo-sprite { width: 68px; height: 36px; }
  .scenario-catch-special-bird-flight,
  .scenario-catch-special-bird-sprite { width: 56px; height: 56px; }
  .scenario-catch-controls { grid-template-columns: 1fr 1fr; }
  .scenario-catch-controls small { grid-column: 1 / -1; grid-row: 1; }
  .scenario-lab-shell.is-catch-playing .scenario-lab-layout { width: min(100% - .7rem, 1680px); }
  .scenario-lab-shell.is-catch-playing .scenario-catch-header { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .scenario-lab-progress-track span,
  .scenario-lab-nav-group,
  .scenario-lab-subnav-item,
  .scenario-browser,
  .scenario-option,
  .scenario-classify-card,
  .scenario-match-card,
  .scenario-match-card-inner,
  .scenario-match-perfect,
  .scenario-detect-preview,
  .scenario-detect-preview-steps li,
  .scenario-detect-preview-card,
  .scenario-detect-preview-action,
  .scenario-detect-clue,
  .scenario-order-preview,
  .scenario-order-list,
  .scenario-order-step,
  .scenario-catch-token,
  .scenario-catch-token-body,
  .scenario-catch-bucket,
  .scenario-catch-bucket-vessel { transition: none !important; }
  .scenario-confetti-piece { display: none !important; animation: none !important; }
  .scenario-game-toast,
  .scenario-game-pop,
  .scenario-practice-badge--play.is-match-rewarding,
  .scenario-match-reward-pop,
  .scenario-match-card.is-celebrating,
  .scenario-match-spark,
  .scenario-match-perfect,
  .scenario-match-board.is-perfect::after,
  .scenario-detect-artifact.is-detect-ready,
  .scenario-order-list.is-order-entering,
  .scenario-catch-token.is-capturing,
  .scenario-catch-particle,
  .scenario-catch-splash-sprite,
  .scenario-catch-speed-lines,
  .scenario-catch-ripple,
  .scenario-catch-countdown strong,
  .scenario-catch-aurora,
  .scenario-catch-stars,
  .scenario-catch-cloud,
  .scenario-catch-depth-glow,
  .scenario-catch-light-shaft,
  .scenario-catch-motes,
  .scenario-catch-low-mist,
  .scenario-catch-reflection-shimmer,
  .scenario-catch-reactive-light,
  .scenario-catch-ufo-flight,
  .scenario-catch-ufo-sprite,
  .scenario-catch-special-bird-flight,
  .scenario-catch-special-bird-sprite,
  .scenario-catch-near-miss-accent,
  .scenario-catch-token-sheen,
  .scenario-catch-foreground-haze,
  .scenario-catch-bucket-gimbal,
  .scenario-catch-bucket-sprite { animation: none !important; }
  .scenario-catch-bird-flight,
  .scenario-catch-ufo-flight,
  .scenario-catch-special-bird-flight { display: none !important; }
  .scenario-catch-bucket-sprite { background-position: 0 0 !important; }
  .scenario-catch-field,
  .scenario-catch-ultrafar,
  .scenario-catch-atmosphere,
  .scenario-catch-midground,
  .scenario-catch-motes,
  .scenario-catch-foreground { transition: none !important; }
}


/* ---------- Superficies públicas: compartir, elementos bloqueados, cuenta y marcas ---------- */
.scenario-lab-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.scenario-lab-share { position: relative; }
.scenario-lab-share-button { cursor: pointer; font: inherit; }
.scenario-lab-share-dialog { width: min(640px, calc(100vw - 2rem)); padding: 0; border: 1px solid var(--scenario-border); border-radius: 22px; background: #0b1324; color: var(--foreground, #f8fafc); box-shadow: 0 30px 90px rgb(2 6 23 / 55%); }
.scenario-lab-share-dialog::backdrop { background: rgb(2 6 23 / 62%); backdrop-filter: blur(4px); }
.scenario-lab-share-dialog-body { position: relative; padding: 1rem; }
.scenario-lab-share-dialog-body > section { border: 0; background: transparent; padding: .5rem; }
.scenario-lab-share-close { position: absolute; top: .65rem; right: .65rem; z-index: 1; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--scenario-border); border-radius: 999px; background: rgb(15 23 42 / 80%); color: inherit; cursor: pointer; }

.scenario-lab-shell a[data-scenario-locked="true"]:not(.scenario-primary-button):not(.scenario-sequence-link)::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex: none;
  background: currentColor;
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scenario-lab-subnav-section[data-scenario-locked="true"],
.scenario-lab-subnav-item[data-scenario-locked="true"] { opacity: .72; }
.scenario-sidebar-account a::after,
.scenario-sidebar-brands a::after { display: none !important; }

.scenario-sidebar-account { display: grid; gap: .55rem; margin-top: .75rem; padding: .75rem; border: 1px solid rgb(52 211 153 / 28%); border-radius: 14px; background: rgb(52 211 153 / 7%); font-size: .78rem; line-height: 1.4; }
.scenario-sidebar-account p { margin: 0; color: var(--scenario-muted); }
.scenario-sidebar-account a,
.scenario-sidebar-account button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .7rem; border: 0; border-radius: 999px; background: var(--scenario-green); color: #04161a; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.scenario-sidebar-account button { justify-self: start; background: transparent; color: var(--scenario-green); padding: 0; }
.scenario-sidebar-account svg { width: 14px; height: 14px; }
.scenario-sidebar-brands { display: grid; gap: .45rem; margin-top: .75rem; }
.scenario-sidebar-brands > span { color: var(--scenario-muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scenario-sidebar-brands a { display: grid; gap: .1rem; padding: .55rem .7rem; border: 1px solid var(--scenario-border); border-radius: 12px; color: inherit; text-decoration: none; }
.scenario-sidebar-brands a:hover { border-color: rgb(52 211 153 / 55%); }
.scenario-sidebar-brands strong { font-size: .95rem; font-weight: 900; }
.scenario-sidebar-brands strong em { font-style: normal; font-weight: 600; opacity: .8; }
.scenario-sidebar-brands small { color: var(--scenario-muted); font-size: .72rem; }

/* ---------- Artefacto genérico: tarjeta de situación ---------- */
.scenario-scene-card { max-width: 880px; margin: 0 auto; padding: clamp(1rem, 2.5vw, 1.6rem); border: 1px solid rgb(52 211 153 / 26%); border-radius: 20px; background: linear-gradient(145deg, rgb(9 30 36 / 96%), rgb(6 20 26 / 92%)); box-shadow: 0 18px 45px rgb(2 8 23 / 24%); }
.scenario-scene-card header { display: flex; align-items: center; gap: .85rem; }
.scenario-scene-card-icon { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 14px; background: rgb(52 211 153 / 16%); color: var(--scenario-green); }
.scenario-scene-card header small { display: block; color: #6ee7b7; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scenario-scene-card h2 { margin: .15rem 0 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.2; }
.scenario-scene-card > p { margin: .9rem 0 0; color: #cbd5e1; line-height: 1.55; }
.scenario-scene-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: 1rem 0 0; }
.scenario-scene-facts div { padding: .65rem .8rem; border: 1px solid var(--scenario-border); border-radius: 12px; background: rgb(2 8 23 / 35%); }
.scenario-scene-facts dt { color: var(--scenario-muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.scenario-scene-facts dd { margin: .2rem 0 0; font-weight: 700; }
.scenario-detect-artifact--scene > header span { color: #6ee7b7; }

/* Criterio previo a clasificar: explica qué cuenta como adecuado y qué no antes de iniciar el reto. */
.scenario-practice-primer { display: grid; gap: .7rem; width: 100%; }
.scenario-practice-primer h2 { margin: 0; color: #ede9fe; font-size: .95rem; font-weight: 700; line-height: 1.35; }
.scenario-practice-intro .scenario-practice-primer > p { color: #ddd6fe; font-size: .82rem; }
.scenario-practice-primer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.scenario-practice-primer-column { padding: .75rem .85rem; border: 1px solid; border-radius: 12px; }
.scenario-practice-primer-column h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .45rem; font-size: .8rem; font-weight: 700; }
.scenario-practice-primer-column ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.1rem; color: #e9e5f5; font-size: .8rem; line-height: 1.45; }
.scenario-practice-primer-column--safe { border-color: rgb(52 211 153 / 30%); background: rgb(52 211 153 / 6%); }
.scenario-practice-primer-column--safe h3 { color: #a7f3d0; }
.scenario-practice-primer-column--dangerous { border-color: rgb(251 113 133 / 30%); background: rgb(251 113 133 / 6%); }
.scenario-practice-primer-column--dangerous h3 { color: #fecdd3; }
@media (max-width: 640px) { .scenario-practice-primer-columns { grid-template-columns: 1fr; } }

/* Enlace al taller hermano de la misma superficie (p. ej. «Tu pausa activa» ↔ «Dirige pausas activas»). */
.scenario-sidebar-related { display: grid; gap: .2rem; margin-top: .75rem; padding: .7rem .8rem; border: 1px solid rgb(167 139 250 / 35%); border-radius: 14px; background: rgb(139 92 246 / 8%); color: inherit; text-decoration: none; }
.scenario-sidebar-related::after { display: none !important; }
.scenario-sidebar-related:hover { border-color: rgb(167 139 250 / 70%); }
.scenario-sidebar-related > span { display: inline-flex; align-items: center; gap: .35rem; color: #c4b5fd; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.scenario-sidebar-related svg { width: 14px; height: 14px; }
.scenario-sidebar-related strong { font-size: .92rem; font-weight: 800; }
.scenario-sidebar-related small { color: var(--scenario-muted); font-size: .74rem; line-height: 1.4; }

/* ===== Recursos del curso (program.resources) ===== */
.scenario-resources-button { gap: .4rem; }
.scenario-resources-dialog { width: min(900px, 94vw); max-width: 94vw; height: min(84vh, 780px); border: none; border-radius: 18px; padding: 0; background: #0b1220; color: #e2e8f0; box-shadow: 0 24px 70px rgb(2 6 23 / 55%); }
.scenario-resources-dialog::backdrop { background: rgb(2 6 23 / 70%); }
.scenario-resources-body { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.scenario-resources-close { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 34px; height: 34px; border: 1px solid rgb(148 163 184 / 30%); border-radius: 999px; background: rgb(148 163 184 / 10%); color: #cbd5f5; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.scenario-resources-close:hover { background: rgb(148 163 184 / 22%); }
.scenario-resources-header { padding: 1.15rem 1.5rem .5rem; }
.scenario-resources-eyebrow { margin: 0 0 .2rem; color: #38bdf8; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.scenario-resources-header h2 { margin: 0 0 .2rem; font-size: 1.35rem; font-weight: 800; }
.scenario-resources-sub { margin: 0; color: var(--scenario-muted); font-size: .82rem; }
.scenario-resources-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1.5rem .85rem; border-bottom: 1px solid rgb(148 163 184 / 16%); }
[data-resources-tab] { padding: .42rem .8rem; border: 1px solid rgb(148 163 184 / 25%); border-radius: 999px; background: transparent; color: #cbd5f5; font-size: .78rem; font-weight: 700; cursor: pointer; }
[data-resources-tab]:hover { border-color: rgb(56 189 248 / 60%); color: #e0f2fe; }
[data-resources-tab].is-active { border-color: #38bdf8; background: rgb(56 189 248 / 14%); color: #e0f2fe; }
.scenario-resources-scroll { flex: 1; overflow: auto; padding: 1.1rem 1.5rem 2rem; scrollbar-width: thin; }
[data-resources-panel] { display: none; }
[data-resources-panel].is-active { display: block; }
.scenario-resources-intro { margin: 0 0 1rem; color: var(--scenario-muted); font-size: .85rem; line-height: 1.5; }
.scenario-resources-print { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; padding: .5rem .95rem; border: 1px solid rgb(148 163 184 / 30%); border-radius: 999px; background: transparent; color: #cbd5f5; font-size: .78rem; font-weight: 700; cursor: pointer; }
.scenario-resources-print:hover { border-color: rgb(56 189 248 / 60%); color: #e0f2fe; }
.scenario-resources-print svg { width: 15px; height: 15px; }

/* Banco de frases */
.scenario-phrase-list { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.scenario-phrase-item { display: grid; gap: .15rem; padding: .65rem .8rem; border: 1px solid rgb(148 163 184 / 16%); border-radius: 12px; background: rgb(148 163 184 / 5%); }
.scenario-phrase-item small { color: #38bdf8; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.scenario-phrase-avoid { color: #fb7185; font-size: .84rem; text-decoration-color: rgb(251 113 133 / 60%); }
.scenario-phrase-try { color: #e2e8f0; font-size: .84rem; line-height: 1.45; }
.scenario-phrase-try::before { content: 'Prueba: '; color: #7dd3fc; font-weight: 800; }

/* Plantillas imprimibles */
.scenario-template-sheet { position: relative; margin: 0 0 1.4rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid rgb(148 163 184 / 20%); border-radius: 14px; background: rgb(15 23 42 / 55%); }
.scenario-template-sheet h3 { margin: 0 0 .8rem; font-size: 1rem; font-weight: 800; color: #e0f2fe; }
.scenario-template-line { display: grid; gap: .35rem; margin: 0 0 .95rem; }
.scenario-template-label { font-size: .78rem; font-weight: 700; color: #cbd5f5; }
.scenario-template-rule { display: block; height: 0; border-bottom: 1px dashed rgb(148 163 184 / 45%); min-height: 1.6rem; }
.scenario-template-line small { color: var(--scenario-muted); font-size: .68rem; }

/* Glosario */
.scenario-glossary { display: grid; gap: .6rem; margin: 0; }
.scenario-glossary-item { padding: .6rem .8rem; border-left: 3px solid #38bdf8; border-radius: 0 10px 10px 0; background: rgb(56 189 248 / 6%); }
.scenario-glossary-item dt { font-size: .82rem; font-weight: 800; color: #e0f2fe; }
.scenario-glossary-item dd { margin: .15rem 0 0; color: var(--scenario-muted); font-size: .8rem; line-height: 1.5; }

/* Repaso */
.scenario-quiz-score { margin: 0 0 .8rem; color: #7dd3fc; font-size: .85rem; font-weight: 800; }
.scenario-quiz-list { list-style: decimal; display: grid; gap: 1rem; margin: 0; padding-left: 1.3rem; }
.scenario-quiz-question { margin: 0 0 .5rem; font-size: .88rem; font-weight: 700; color: #e2e8f0; }
.scenario-quiz-options { display: flex; flex-wrap: wrap; gap: .45rem; }
[data-quiz-option] { padding: .45rem .8rem; border: 1px solid rgb(148 163 184 / 28%); border-radius: 10px; background: rgb(148 163 184 / 7%); color: #cbd5f5; font-size: .8rem; cursor: pointer; text-align: left; }
[data-quiz-option]:hover { border-color: rgb(56 189 248 / 55%); }
[data-quiz-option].is-correct { border-color: #34d399; background: rgb(52 211 153 / 14%); color: #a7f3d0; }
[data-quiz-option].is-wrong { border-color: #fb7185; background: rgb(251 113 133 / 12%); color: #fecdd3; }
.scenario-quiz-explanation { margin: .55rem 0 0; padding: .5rem .7rem; border-left: 3px solid #7dd3fc; color: var(--scenario-muted); font-size: .78rem; line-height: 1.5; }

/* Plan de acción */
.scenario-plan-list { list-style: none; display: grid; gap: 1rem; margin: 0; padding: 0; }
.scenario-plan-list label { display: block; margin-bottom: .35rem; font-size: .82rem; font-weight: 700; color: #cbd5f5; }
.scenario-plan-list textarea { width: 100%; min-height: 72px; padding: .6rem .7rem; border: 1px solid rgb(148 163 184 / 25%); border-radius: 10px; background: rgb(15 23 42 / 75%); color: #e2e8f0; font: inherit; font-size: .82rem; resize: vertical; }
.scenario-plan-list textarea:focus { outline: none; border-color: #38bdf8; }
.scenario-plan-saved { margin: .5rem 0 0; color: #34d399; font-size: .78rem; font-weight: 700; }

/* Autoevaluación de estilos */
.scenario-style-list { list-style: none; display: grid; gap: .7rem; margin: 0; padding: 0; }
.scenario-style-list li { padding: .7rem .8rem; border: 1px solid rgb(148 163 184 / 16%); border-radius: 12px; background: rgb(148 163 184 / 5%); }
.scenario-style-list li.is-missing { border-color: #fb7185; }
.scenario-style-text { margin: 0 0 .5rem; font-size: .84rem; color: #e2e8f0; line-height: 1.45; }
.scenario-style-scale { display: flex; gap: .4rem; }
.scenario-style-scale label { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.scenario-style-scale input { accent-color: #38bdf8; width: 15px; height: 15px; }
.scenario-style-scale span { color: var(--scenario-muted); font-size: .72rem; }
.scenario-style-scale-hint { margin: .6rem 0 0; color: var(--scenario-muted); font-size: .72rem; }
.scenario-style-calc { margin-top: 1rem; padding: .6rem 1.1rem; border: none; border-radius: 999px; background: #38bdf8; color: #04121f; font-size: .82rem; font-weight: 800; cursor: pointer; }
.scenario-style-calc:hover { background: #7dd3fc; }
.scenario-style-retry { margin: .6rem 0 0; color: #fb7185; font-size: .8rem; font-weight: 700; }
.scenario-style-result { margin: 1rem 0 0; padding: .9rem 1rem; border: 1px solid rgb(56 189 248 / 35%); border-radius: 14px; background: rgb(56 189 248 / 8%); }
.scenario-style-result h3 { margin: 0 0 .35rem; font-size: .95rem; font-weight: 800; color: #e0f2fe; }
.scenario-style-result p { margin: 0; color: #cbd5f5; font-size: .82rem; line-height: 1.55; }
.scenario-style-scores { margin: .6rem 0 0; color: var(--scenario-muted); font-size: .76rem; }

/* Impresión de recursos: sólo se imprime el clon [data-scenario-print-root] */
@media print {
  body > *:not([data-scenario-print-root]) { display: none !important; }
  [data-scenario-print-root] { display: block !important; color: #000 !important; background: #fff !important; }
  [data-scenario-print-root] * { color: #000 !important; background: transparent !important; }
  [data-scenario-print-root] s { text-decoration-color: #000; }
  [data-scenario-print-root] .scenario-template-rule { border-bottom: 1px solid #000; }
  [data-scenario-print-root] .scenario-resources-print { display: none !important; }
  [data-scenario-print-root] .scenario-phrase-item { border: 1px solid #000; margin-bottom: .4rem; }
  [data-scenario-print-root] .scenario-glossary-item { border-left: 3px solid #000; }
}
