@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Nunito:wght@400;600;700;800;900&family=Nunito+Sans:wght@700&display=swap');

/* ============================================================
   Tokens de tema. Los valores de :root son el modo claro y
   reproducen el aspecto original; html.dark los reescribe.
   El tema se aplica con la clase `dark` en <html>, la misma
   convención que la landing (public/styles.css) y la app Inertia
   (resources/js/hooks/use-appearance.tsx). La rampa oscura es la
   de la landing, para que pasar de una a otra no cambie de piel.
   ============================================================ */
:root {
  /* Escala de marca: son los colores del logo y NO cambian con el
     tema. Los acentos que sí se ajustan están más abajo. */
  --brand-ink: #1A243B;
  --brand-blue: #0083F5;
  --brand-green: #33CC66;
  --brand-blue-700: #0068c4;
  --brand-green-700: #1a9a50;
  --brand-blue-100: #d9edff;
  --brand-blue-50: #eef7ff;
  --brand-green-100: #dcf7e5;
  --brand-green-50: #effbf3;
  --brand-ink-100: #e7eaf0;
  --brand-ink-50: #f5f7fa;

  /* Superficies */
  --bg: #f4f8fc;
  --surface-1: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #e5edf5;
  /* Panel navy: oscuro en AMBOS temas, porque lleva texto e iconos
     blancos encima (.sound-check, .audio-player, .mode-number…).
     No confundir con --text, que sí voltea. */
  --surface-inverse: #1A243B;
  --surface-inverse-2: #203454;
  --header-bg: rgba(255, 255, 255, .92);
  /* Superficies translúcidas: se apoyan en el fondo de página */
  --surface-1-a96: rgba(255, 255, 255, .96);
  --surface-1-a95: rgba(255, 255, 255, .95);
  --surface-1-a90: rgba(255, 255, 255, .90);
  --surface-1-a88: rgba(255, 255, 255, .88);
  --surface-1-a82: rgba(255, 255, 255, .82);
  /* Extremos del degradado de fondo (body::before) */
  --bg-grad-top: #ffffff;
  /* Rejilla de body::after: tinta sobre claro, luz sobre oscuro.
     No puede salir de --shadow-rgb, que en oscuro es negro. */
  --grid-line: rgba(26, 36, 59, .035);

  /* Superficies con tinte (fondos de .fill-sentence, .target-wrap…) */
  --tint-a: #f8fbff;
  --tint-b: #fbfdff;
  /* Pastilla clara sobre el panel navy: NO voltea, porque el panel
     sigue oscuro en los dos temas (.sound-btn y su acento). */
  --chip-bg: #ffffff;
  --chip-fg: #1E2E4B;
  --chip-accent: #0068c4;

  /* Texto */
  --text: #1A243B;
  --text-2: #32445c;
  --text-3: #53617a;
  --muted: #647087;
  --muted-2: #7b8799;
  --placeholder: #9aa4b6;
  --text-inverse: #ffffff;
  --muted-inverse: #1E2E4B;
  --navy: var(--text);
  --ink: var(--text);
  /* Tinta sobre verde de marca: el verde no voltea, así que esto
     tiene que seguir siendo oscuro en ambos temas. */
  --on-green: #08261a;

  /* Bordes */
  --line: #dce5ef;
  --line-strong: #cbd9e8;
  --line-hover: #b8cadc;
  --line-slot: #9CB1C9;

  /* Acentos de marca (estos sí se ajustan al tema) */
  --green: #33CC66;
  --green-strong: #2cc260;
  --green-dark: #1a9a50;
  --cyan: #0083F5;
  --green-soft: #e7f9ed;
  --green-border: #bfead0;
  --blue-soft: #eef7ff;
  --blue-border: rgba(var(--blue-rgb), .14);
  --blue-ink: #0068c4;
  --blue-ring: #d9edff;
  /* Canales sueltos: dejan escribir rgba(var(--x-rgb), .34) y conservar
     el alfa original de cada regla en vez de un token por alfa. */
  --green-rgb: 51, 204, 102;
  --blue-rgb: 0, 131, 245;
  /* Alias heredados: conservan su valor claro original y sólo
     cambian en oscuro. */
  --soft-green: var(--brand-green-50);
  --soft-cyan: var(--brand-blue-50);
  --soft: var(--surface-2);

  /* Ámbar: aviso de integridad y modal de acciones */
  --warn-soft: #fff8ed;
  --warn-border: #f2d0a4;
  --warn-ink: #6f4b1f;
  --warn-icon-fg: #b66a16;
  --warn-btn-bg: #fff3df;
  --warn-btn-bg-hover: #ffe9c6;
  --warn-btn-border: #e7b86d;
  --warn-btn-border-hover: #dc9c3b;
  --warn-btn-fg: #8a4b09;

  /* Terracota: el diálogo de advertencia de integridad. Es otra
     escala distinta del ámbar de la nota y del rojo del descalificado. */
  --alert-soft: #fff5ef;
  --alert-border: #f1c7b7;
  --alert-icon-bg: #ffe2d6;
  --alert-icon-fg: #b34d28;
  --alert-title: #7a2f1d;
  --alert-text: #765047;
  --alert-btn: #d96b42;
  --alert-btn-hover: #c65b35;
  --on-alert: #ffffff;

  /* Rojo: descalificación y validación de correo */
  --danger-soft: #fff1f1;
  --danger-border: #efbcbc;
  --danger-icon-bg: #ffdada;
  --danger-ink: #a82121;
  --danger-btn: #c94a4a;
  --on-danger: #ffffff;
  --field-error: #d64545;
  --field-error-rgb: 214, 69, 69;
  --field-error-text: #c23434;

  /* Curva del resultado. El SVG lo inyecta quiz.js, pero se pinta
     entero desde aquí (los ids salen de renderCurveChart). */
  --curve-area: #ecfff4;
  --curve-axis: #cfdbe7;
  --curve-tick: #a8bad0;
  --curve-label: #5c6980;
  --curve-pointer: #7dbf9a;
  /* El hueco del aro: tiene que igualar el fondo del panel, no ser
     una superficie clara, o el anillo se vuelve un disco. */
  --curve-point-fill: #ffffff;
  --curve-point-stroke: #30ca78;
  --curve-callout-bg: #071a34;
  --curve-callout-fg: #ffffff;
  --curve-stroke-1: #0083F5;
  --curve-stroke-2: #33CC66;
  --curve-stroke-3: #1A9A50;
  --curve-glow: #33CC66;

  /* Realce interior del panel de la curva */
  --panel-highlight: #fff;

  /* Velos de modal: oscuros en ambos temas */
  --overlay: rgba(4, 15, 31, .72);
  --overlay-2: rgba(15, 28, 51, .58);

  /* Sombras: un solo color base con los alfas originales */
  --shadow-rgb: 26, 36, 59;
  --shadow: 0 24px 70px rgba(var(--shadow-rgb), .12);
  --shadow-soft: 0 12px 36px rgba(var(--shadow-rgb), .08);
}

html.dark {
  /* Rampa de la landing: el fondo baja y las tarjetas suben, para
     que se lean como paneles sobre él. */
  --bg: #0b1424;
  --surface-1: #1e3050;
  --surface-2: #263c62;
  --surface-3: #2e4874;
  /* Sigue siendo el panel oscuro, pero por encima de --bg: en el
     navy de marca se fundiría con la página. */
  --surface-inverse: #2a4470;
  --surface-inverse-2: #35558c;
  --header-bg: rgba(11, 20, 36, .92);
  /* Derivados de --surface-1: han de seguir su valor o las
     tarjetas translúcidas quedarían más oscuras que las opacas. */
  --surface-1-a96: rgba(30, 48, 80, .96);
  --surface-1-a95: rgba(30, 48, 80, .95);
  --surface-1-a90: rgba(30, 48, 80, .90);
  --surface-1-a88: rgba(30, 48, 80, .88);
  --surface-1-a82: rgba(30, 48, 80, .82);
  --bg-grad-top: #101b2c;
  --grid-line: rgba(255, 255, 255, .06);

  --tint-a: #24395e;
  --tint-b: #203458;
  /* La pastilla sigue clara: su panel no se aclara tanto como para
     poder invertirla sin perder el contraste del diseño. */
  --chip-bg: #e8eef7;
  --chip-fg: #1E2E4B;
  --chip-accent: #0068c4;

  --text: #e8eef7;
  --text-2: #c3d0e2;
  --text-3: #a8bad2;
  --muted: #92a4bf;
  --muted-2: #8ea3c0;
  --placeholder: #8b9db8;
  --text-inverse: #ffffff;
  --muted-inverse: #1E2E4B;
  --on-green: #052e16;

  --line: #33496b;
  --line-strong: #425d87;
  --line-hover: #4d6b99;
  --line-slot: #6b83a8;

  --green: #5cd685;
  --green-strong: #4ecb7a;
  --green-dark: #4ecb7a;
  --cyan: #56d3e8;
  --green-soft: rgba(92, 214, 133, .14);
  --green-border: rgba(92, 214, 133, .34);
  --blue-soft: rgba(86, 211, 232, .14);
  --blue-border: rgba(86, 211, 232, .34);
  --blue-ink: #7cc4ff;
  --blue-ring: rgba(86, 211, 232, .30);
  --soft-green: rgba(92, 214, 133, .14);
  --soft-cyan: rgba(86, 211, 232, .14);
  --green-rgb: 92, 214, 133;
  --blue-rgb: 86, 211, 232;

  /* Opacos, no translúcidos: un velo cálido sobre el azul de la
     superficie se compone como gris y pierde el color. Es la misma
     decisión que documenta la landing para sus naranjas. */
  --warn-soft: #4a3a22;
  --warn-border: #7a5c30;
  --warn-ink: #f0c48a;
  --warn-icon-fg: #f4a663;
  --warn-btn-bg: #5c4526;
  --warn-btn-bg-hover: #6d5230;
  --warn-btn-border: #a3703a;
  --warn-btn-border-hover: #c08b46;
  --warn-btn-fg: #ffd7a1;

  --alert-soft: #3d2a1f;
  --alert-border: #6e4b38;
  --alert-icon-bg: #5a3928;
  --alert-icon-fg: #ffab86;
  --alert-title: #ffb99a;
  --alert-text: #e0bdae;
  /* El botón ha de ser lo más saturado del diálogo: un terracota
     apagado sobre fondo terracota oscuro no se ve. */
  --alert-btn: #e07a52;
  --alert-btn-hover: #ef8a62;
  --on-alert: #2a1409;

  --danger-soft: #3b1f22;
  --danger-border: #6d3b3e;
  --danger-icon-bg: #55282c;
  --danger-ink: #ff9c9c;
  --danger-btn: #d05a5a;
  --on-danger: #2a0d0d;
  --field-error: #ff6b7f;
  --field-error-rgb: 255, 107, 127;
  --field-error-text: #ff6b7f;

  --curve-area: rgba(92, 214, 133, .14);
  --curve-axis: #425d87;
  --curve-tick: #5a7aa8;
  --curve-label: #c3d0e2;
  --curve-pointer: #5cd685;
  --curve-point-fill: #0b1424;
  --curve-point-stroke: #5cd685;
  --curve-callout-bg: #35558c;
  --curve-callout-fg: #e8eef7;
  --curve-stroke-1: #4fa9ff;
  --curve-stroke-2: #5cd685;
  --curve-stroke-3: #35b06a;
  --curve-glow: #5cd685;

  --panel-highlight: rgba(255, 255, 255, .06);

  --overlay: rgba(2, 7, 15, .84);
  --overlay-2: rgba(2, 7, 15, .74);

  --shadow-rgb: 0, 0, 0;

  /* No es cosmético: gobierna la barra de scroll, el input de
     correo y los controles nativos del <video>. */
  color-scheme: dark;
}

body,
button,
select,
input,
textarea {
  font-family: "Nunito", sans-serif;
  font-style: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-copy strong {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
}

strong,
b,
.primary-btn,
.secondary-btn,
.text-btn,
.header-badge,
.eyebrow,
.step-label,
.mode-number,
.recommended,
.skill-badge,
.level-badge,
.result-pill {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-style: normal;
}

* {
  font-style: normal;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh
}

button,
select,
input {
  font: inherit
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto
}

.view {
  display: none
}

.view.active {
  display: block
}

.site-header {
  height: 74px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px)
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy)
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-inverse);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 900;
  font-style: normal
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: -.035em;
  font-style: normal
}

.brand-copy small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .17em;
  margin-top: 5px;
  color: var(--muted)
}

.header-badge {
  background: var(--soft-green);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 13px;
  border-radius: 999px
}

.start-view {
  background: radial-gradient(circle at 18% 18%, var(--curve-area) 0, transparent 24%), linear-gradient(180deg, var(--bg-grad-top) 0, var(--bg) 100%)
}

.start-grid {
  min-height: calc(100vh - 126px);
  padding: 60px 0 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px
}

.start-copy h1,
.result-card h2 {
  color: var(--navy);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
  margin: 0
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin: 24px 0
}

.skill-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap
}

.skill-list span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--line);
  background: var(--surface-1);
  padding: 9px 11px;
  border-radius: 999px
}

.info-card {
  margin-top: 28px;
  border-left: 4px solid var(--green);
  background: var(--surface-1);
  border-radius: 0 16px 16px 0;
  padding: 17px 19px;
  box-shadow: 0 10px 32px rgba(var(--shadow-rgb), .05)
}

.info-card strong {
  color: var(--navy)
}

.info-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px
}

.setup-card,
.question-card,
.result-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px
}

.setup-card {
  padding: 31px
}

.step-label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em
}

.setup-card h2 {
  font-size: 28px;
  letter-spacing: -.035em;
  color: var(--navy);
  margin: 0
}

.muted {
  color: var(--muted);
  line-height: 1.55
}

.mode-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0 15px
}

.mode-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  cursor: pointer;
  background: var(--surface-1);
  transition: .2s
}

.mode-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-1px)
}

.mode-card.selected {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft))
}

.mode-card input {
  position: absolute;
  opacity: 0
}

.mode-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-inverse);
  color: var(--green);
  font-weight: 900;
  font-size: 12px
}

.mode-text {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.mode-text strong {
  font-size: 14px;
  color: var(--navy)
}

.mode-text small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted)
}

.recommended {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--green-dark);
  background: var(--soft-green);
  padding: 6px 8px;
  border-radius: 999px
}

.target-wrap {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  margin-bottom: 15px
}

.target-wrap label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px
}

.target-wrap select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink)
}

.target-wrap p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px
}

/* Identificación antes de empezar. Sólo aparece uno de los dos bloques: el
   campo para quien no tiene sesión, el aviso para quien sí. */
.correo-field {
  margin: 16px 0 0
}

.correo-label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text);
  margin-bottom: 7px
}

.correo-input {
  width: 100%;
  border: 1.6px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--text);
  background: var(--surface-1);
  transition: border-color .16s, box-shadow .16s
}

.correo-input::placeholder {
  color: var(--placeholder)
}

.correo-input:focus {
  outline: 0;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3.5px var(--blue-ring)
}

.correo-input.invalido {
  border-color: var(--field-error);
  box-shadow: 0 0 0 3.5px rgba(var(--field-error-rgb), .16)
}

.correo-ayuda {
  margin: 7px 0 0;
  font-size: .82rem;
  color: var(--muted)
}

.correo-aviso {
  margin: 7px 0 0;
  font-size: .84rem;
  font-weight: 600;
  color: var(--field-error-text)
}

.sesion-activa {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--text);
  font-size: .92rem
}

/* Obligatorio, no cosmético: el display:flex de arriba gana sobre el
   display:none que el navegador aplica al atributo hidden, así que sin esta
   regla la caja se ve siempre y vacía. Misma pareja que .integrity-modal
   y .level-select-menu. */
.sesion-activa[hidden] {
  display: none
}

.sesion-icono {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--text-inverse);
  font-size: .74rem;
  font-weight: 700
}

.sound-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  border-radius: 17px;
  padding: 14px 15px
}

.sound-check>div {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.sound-check strong {
  font-size: 13px
}

.sound-check span {
  font-size: 11px;
}

.sound-btn {
  border: 0;
  background: var(--chip-bg);
  color: var(--chip-fg);
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease
}

.sound-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(0, 0, 0, .20);
  color: var(--chip-accent);
}

.sound-btn:hover .play-icon {
  color: var(--chip-accent);
}

.sound-btn:focus-visible {
  transform: translateY(-1px);
  color: var(--chip-accent);
  outline: 2px solid var(--chip-accent);
  outline-offset: 2px;
}

.sound-btn:focus-visible .play-icon {
  color: var(--chip-accent);
}

.play-icon {
  color: var(--green-dark);
  margin-right: 5px;
  transition: color .18s ease
}

.hidden-media {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: .001;
  pointer-events: none
}

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s
}

.primary-btn {
  background: var(--green);
  color: var(--on-green);
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(.97)
}

.primary-btn:disabled {
  opacity: .45;
  cursor: not-allowed
}

.secondary-btn {
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: var(--navy)
}

.tiny-note {
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  margin: 12px 0 0
}

.quiz-view {
  min-height: calc(100vh - 74px);
  padding: 46px 0 72px;
  background: linear-gradient(180deg, var(--bg-grad-top) 0, var(--surface-2) 100%)
}

.quiz-shell {
  max-width: 900px
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 13px
}

.text-btn {
  border: 0;
  background: none;
  color: var(--text-3);
  font-weight: 800;
  cursor: pointer;
  padding: 6px
}

.quiz-status {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 12px;
  color: var(--muted)
}

.quiz-status strong {
  color: var(--navy)
}

.progress-track {
  height: 7px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  width: 0;
  border-radius: 999px;
  transition: width .3s
}

.question-card {
  padding: 40px
}

.question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px
}

.badges {
  display: flex;
  gap: 9px;
  flex-wrap: wrap
}

.skill-badge,
.level-badge {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 7px 10px;
  border-radius: 999px
}

.skill-badge {
  background: var(--soft-cyan);
  color: var(--cyan)
}

.level-badge {
  background: var(--soft-green);
  color: var(--green-dark)
}

.media-instruction {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700
}

.question-card h2,
.question-card .question-enunciado>p:first-child {
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 23px 0 20px;
  color: var(--navy);
  font-style: normal
}

.question-context,
.question-enunciado blockquote[data-contexto] {
  border-left: 4px solid var(--cyan);
  background: var(--blue-soft);
  border-radius: 0 14px 14px 0;
  padding: 17px 20px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-line;
  margin-bottom: 22px
}

.question-media:empty {
  display: none
}

.question-media {
  margin: 4px 0 26px
}

.question-image {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .14)
}

.question-image img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain
}

/* Los colores del reproductor (negros y blancos translúcidos) son
   fijos A PROPÓSITO: se leen sobre el fotograma del vídeo, no sobre
   la página, y el vídeo no cambia de tema. No tokenizar. */
.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16/9;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .14)
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
  cursor: pointer
}

.video-overlay-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 26, 52, .84);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28)
}

.video-overlay-play[hidden] {
  display: none
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 38px 1fr auto 38px;
  gap: 10px;
  align-items: center;
  padding: 34px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  opacity: 0;
  transition: opacity .2s
}

.video-player:hover .video-controls,
.video-player:focus-within .video-controls {
  opacity: 1
}

.video-control-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
  font-size: 14px
}

.video-progress {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer
}

.video-time {
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

.audio-player {
  padding: 20px;
  background: linear-gradient(135deg, var(--surface-inverse), var(--surface-inverse-2));
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 17px;
  align-items: center;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .14)
}

.audio-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .17);
  background: var(--green);
  color: var(--on-green);
  font-weight: 900;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--green-rgb), .22)
}

.audio-info {
  min-width: 0
}

.audio-time {
  display: flex;
  justify-content: space-between;
  color: var(--muted-inverse);
  font-size: 10px;
  margin-top: 7px
}

.wave {
  height: 37px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden
}

.wave i {
  display: block;
  flex: 1 1 0;
  min-width: 1px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--green));
  opacity: .88;
  transform-origin: center;
  animation: waveIdle 1.3s ease-in-out infinite
}

.wave.paused i {
  animation-play-state: paused;
  opacity: .48
}

@keyframes waveIdle {

  0%,
  100% {
    transform: scaleY(.45)
  }

  50% {
    transform: scaleY(1)
  }
}

.answers {
  display: grid;
  gap: 10px
}

.answer-option {
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface-1);
  border-radius: 15px;
  padding: 14px 15px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  transition: .18s
}

.answer-option:hover {
  border-color: var(--line-hover);
  transform: translateY(-1px)
}

.answer-option.selected {
  border-color: var(--green);
  background: var(--green-soft)
}

.answer-letter {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  font-weight: 900;
  font-size: 11px;
  color: var(--navy)
}

.answer-option.selected .answer-letter {
  background: var(--green);
  color: var(--on-green)
}

.answer-text {
  font-size: 14px;
  line-height: 1.4
}

.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px
}

.question-footer>span {
  font-size: 11px;
  color: var(--muted)
}

.next-btn {
  width: auto;
  min-width: 150px
}

.result-view {
  padding: 58px 0 80px;
  min-height: calc(100vh - 74px);
  background: radial-gradient(circle at 75% 5%, var(--green-soft) 0, transparent 25%), var(--bg)
}

.result-shell {
  max-width: 920px
}

.result-card {
  padding: 45px
}

.result-pill {
  display: inline-block;
  background: var(--surface-inverse);
  color: var(--green);
  font-weight: 900;
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  margin-bottom: 18px
}

.result-card h2 {
  font-size: clamp(38px, 5vw, 58px)
}

.result-lead {
  max-width: 760px
}

.curve-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 14px;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--tint-a) 100%)
}

.curve-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px
}

.curve-title {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.01em
}

.curve-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5
}

.curve-chart {
  margin-top: 8px
}

.curve-chart svg {
  width: 100%;
  height: auto;
  display: block
}

.curve-area {
  fill: var(--curve-area)
}

.curve-line {
  fill: none;
  stroke: url(#curveStroke);
  stroke-width: 6;
  stroke-linecap: round
}

.curve-axis {
  stroke: var(--curve-axis);
  stroke-width: 2
}

.curve-tick {
  stroke: var(--curve-tick);
  stroke-width: 2;
  stroke-linecap: round
}

.curve-label {
  fill: var(--curve-label);
  font-size: 13px;
  font-family: "Nunito", sans-serif;
  font-weight: 800
}

.curve-pointer {
  stroke: var(--curve-pointer);
  stroke-width: 2.5;
  stroke-dasharray: 6 6
}

.curve-point-outer {
  fill: var(--curve-point-fill);
  stroke: var(--curve-point-stroke);
  stroke-width: 5
}

.curve-point-inner {
  fill: var(--curve-callout-bg)
}

.curve-callout {
  fill: var(--curve-callout-bg)
}

.curve-callout-text {
  fill: var(--curve-callout-fg);
  font-size: 12px;
  font-family: "Nunito", sans-serif;
  font-weight: 800
}

/* El trazo de la curva y su halo se definen dentro del SVG que
   inyecta quiz.js (renderCurveChart, ids #curveStroke y #softGlow).
   stop-color y flood-color son atributos de presentación, así que
   estas reglas los ganan y el color del gráfico queda aquí, con el
   resto del tema, sin tener que tocar quiz.js. */
#curveStroke stop:nth-child(1) {
  stop-color: var(--curve-stroke-1)
}

#curveStroke stop:nth-child(2) {
  stop-color: var(--curve-stroke-2)
}

#curveStroke stop:nth-child(3) {
  stop-color: var(--curve-stroke-3)
}

#softGlow feDropShadow {
  flood-color: var(--curve-glow)
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0
}

.score-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px
}

.score-box>div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px
}

.score-box span {
  font-size: 12px;
  font-weight: 800
}

.score-box strong {
  font-size: 18px;
  color: var(--navy)
}

.score-line {
  height: 7px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 13px
}

.score-line i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  width: 0
}

.target-summary {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 15px;
  padding: 15px;
  color: var(--green-dark);
  font-size: 13px;
  line-height: 1.5
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 28px
}

.result-actions .primary-btn {
  width: 100%
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-1)
}

.footer-inner {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted-2);
  font-size: 10px
}

@media(max-width:900px) {
  .video-controls {
    opacity: 1
  }

  .start-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 42px
  }

  .start-copy {
    max-width: 720px
  }

  .question-card {
    padding: 28px
  }

  .score-grid {
    grid-template-columns: 1fr
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
    text-align: center
  }

  .mode-card {
    grid-template-columns: 44px 1fr
  }

  .recommended {
    grid-column: 2;
    justify-self: start
  }

  .question-head {
    align-items: flex-start;
    flex-direction: column
  }

  .media-instruction {
    display: none
  }

  .curve-panel {
    padding: 18px 18px 10px
  }
}

@media(max-width:600px) {
  .shell {
    width: min(100% - 24px, 1120px)
  }

  .header-badge {
    display: none
  }

  .start-grid {
    padding: 32px 0 52px
  }

  .setup-card,
  .question-card,
  .result-card {
    border-radius: 21px;
    padding: 20px
  }

  .start-copy h1,
  .result-card h2 {
    font-size: 39px
  }

  .lead {
    font-size: 16px
  }

  .quiz-view {
    padding-top: 26px
  }

  .quiz-status {
    gap: 10px;
    flex-direction: column;
    align-items: flex-end
  }

  .question-card h2,
.question-card .question-enunciado>p:first-child {
    font-size: 27px
  }

  .question-footer {
    flex-direction: column;
    align-items: stretch
  }

  .next-btn {
    width: 100%
  }

  .audio-player {
    grid-template-columns: 54px 1fr;
    padding: 16px
  }

  .audio-play {
    width: 54px;
    height: 54px
  }

  .result-actions {
    grid-template-columns: 1fr
  }

  .curve-title {
    font-size: 14px
  }

  .curve-subtitle {
    font-size: 12px
  }

  .curve-chart svg {
    min-height: 220px
  }
}

.integrity-note {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin: 0 0 16px;
  border: 1px solid var(--warn-border);
  background: var(--warn-soft);
  border-radius: 15px;
  padding: 13px 14px;
  color: var(--warn-ink)
}

.integrity-note strong {
  font-size: 12px
}

.integrity-note span {
  font-size: 11px;
  line-height: 1.45
}

.integrity-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(7px)
}

.integrity-modal[hidden] {
  display: none
}

.integrity-dialog {
  width: min(470px, 100%);
  background: var(--alert-soft);
  border: 1px solid var(--alert-border);
  border-radius: 25px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(78, 31, 14, .22)
}

.integrity-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--alert-icon-bg);
  color: var(--alert-icon-fg);
  font-size: 25px;
  font-weight: 950
}

.integrity-dialog h2 {
  margin: 0;
  color: var(--alert-title);
  font-size: 25px;
  letter-spacing: -.03em
}

.integrity-dialog p {
  color: var(--alert-text);
  line-height: 1.6;
  font-size: 14px;
  margin: 14px 0 22px
}

.integrity-dialog .primary-btn {
  background: var(--alert-btn);
  color: var(--on-alert);
  box-shadow: none
}

.integrity-dialog .primary-btn:hover {
  background: var(--alert-btn-hover)
}

.integrity-dialog.disqualified {
  background: var(--danger-soft);
  border-color: var(--danger-border)
}

.integrity-dialog.disqualified .integrity-icon {
  background: var(--danger-icon-bg);
  color: var(--danger-ink)
}

.integrity-dialog.disqualified h2 {
  color: var(--danger-ink)
}

.integrity-dialog.disqualified .primary-btn {
  background: var(--danger-btn);
  color: var(--on-danger)
}

body.exam-locked {
  -webkit-user-select: none;
  user-select: none
}

.skill-badge.media-clean {
  display: none
}

/* Preguntas de completar mediante cards */
.fill-exercise {
  display: grid;
  gap: 22px
}

.fill-sentence {
  border: 1px solid var(--line);
  background: var(--tint-a);
  border-radius: 18px;
  padding: 22px 24px;
  color: var(--navy);
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 2.15
}

.fill-slot {
  display: inline-flex;
  min-width: 122px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  padding: 2px 10px;
  border-bottom: 3px solid var(--line-slot);
  color: var(--muted-2);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 800;
  vertical-align: middle;
  transition: .18s
}

.fill-slot.filled {
  border: 1px solid var(--green-border);
  border-bottom: 3px solid var(--green);
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--navy)
}

.fill-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px
}

.fill-card {
  position: relative;
  min-height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: var(--surface-1);
  color: var(--ink);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  transition: .18s;
  font-family: "Nunito", sans-serif;
  font-style: normal
}

.fill-card:hover:not(:disabled) {
  border-color: var(--line-hover);
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(var(--shadow-rgb), .06)
}

.fill-card.selected,
.fill-card:disabled {
  border-color: var(--green-border);
  background: var(--green-soft);
  cursor: default;
  opacity: .62
}

.fill-card-letter {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--navy);
  font-size: 11px;
  font-weight: 900
}

.fill-card-text {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35
}

.fill-card-order {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--on-green);
  font-size: 11px;
  font-weight: 900
}

.fill-card-order:empty {
  display: none
}

.fill-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px
}

.fill-tool-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer
}

.fill-tool-btn:disabled {
  opacity: .4;
  cursor: not-allowed
}

@media(max-width:600px) {
  .fill-sentence {
    font-size: 17px;
    padding: 17px;
    line-height: 2.25
  }

  .fill-slot {
    min-width: 96px;
    font-size: 14px
  }

  .fill-card-grid {
    grid-template-columns: 1fr
  }
}


/* ==================================================
   MayuGo v10 — sistema visual oficial y responsivo
   Colores del logo oficial: #1A243B, #0083F5, #33CC66
   ================================================== */
html {
  background: var(--bg)
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text)
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 10% 8%, rgba(var(--blue-rgb), .10), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(var(--green-rgb), .10), transparent 28%),
    linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg) 100%)
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%)
}

.shell {
  width: min(1180px, calc(100% - 40px))
}

.site-header {
  height: 78px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100
}

.header-inner {
  height: 78px;
  gap: 28px
}

.brand {
  min-width: 0;
  gap: 11px
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px
}

.brand-mark {
  display: none !important
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: normal
}

.brand-copy small {
  font-family: "Nunito Sans", "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: .02em;
  margin-top: 5px
}

.header-badge {
  background: linear-gradient(135deg, var(--green-soft), var(--surface-1));
  color: var(--green-dark);
  border: 1px solid rgba(var(--green-rgb), .20);
  box-shadow: 0 8px 22px rgba(var(--green-rgb), .09);
  font-size: 12px;
  padding: 9px 14px
}

/* Agrupa el badge y el botón de tema para que .header-inner siga
   teniendo dos hijos con su space-between. De paso, cuando el badge
   se oculta en móvil el botón se queda solo y bien alineado. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

/* Portado de la landing (public/styles.css): mismo botón, mismos
   iconos y el mismo cambio luna/sol por aria-pressed, que es CSS
   puro y no depende del JS. */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 0;
  transition: background .18s ease, border-color .18s ease
}

.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  cursor: pointer
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.theme-toggle[aria-pressed="false"] .icon-sun,
.theme-toggle[aria-pressed="true"] .icon-moon {
  display: none
}

.start-view {
  background: transparent
}

.start-grid {
  min-height: calc(100vh - 132px);
  padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 90px);
  grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr);
  gap: clamp(40px, 6vw, 78px)
}

.start-copy {
  position: relative
}

.start-copy::before {
  content: "";
  display: block;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  margin-bottom: 22px
}

.eyebrow {
  color: var(--blue-ink)
}

.start-copy h1,
.result-card h2 {
  color: var(--text);
  letter-spacing: -.045em
}

.start-copy h1 {
  font-size: clamp(42px, 5.2vw, 72px)
}

.lead {
  color: var(--muted)
}

.skill-list span {
  border-color: rgba(var(--blue-rgb), .14);
  background: var(--surface-1-a82);
  box-shadow: 0 5px 16px rgba(var(--shadow-rgb), .035)
}

.skill-list span:nth-child(odd) {
  color: var(--blue-ink)
}

.skill-list span:nth-child(even) {
  color: var(--green-dark)
}

.info-card {
  border-left-color: var(--cyan);
  box-shadow: var(--shadow-soft);
  background: var(--surface-1-a88)
}

.setup-card,
.question-card,
.result-card {
  border-color: var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-1-a96)
}

.setup-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 36px)
}

.setup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green))
}

.step-label {
  color: var(--blue-ink)
}

.mode-card {
  border-color: var(--line);
  background: var(--surface-1-a90)
}

.mode-card:hover {
  border-color: rgba(var(--blue-rgb), .42);
  box-shadow: 0 10px 26px rgba(var(--blue-rgb), .07)
}

.mode-card.selected {
  border-color: rgba(var(--blue-rgb), .60);
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft));
  box-shadow: inset 0 0 0 1px rgba(var(--green-rgb), .10)
}

.mode-number {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  display: grid;
  place-items: center
}

.mode-icon {
  width: 20px;
  height: 20px;
  display: block
}

.recommended {
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(var(--green-rgb), .18)
}

.target-wrap {
  background: linear-gradient(135deg, var(--tint-a), var(--green-soft));
  border-color: var(--line)
}

.target-wrap select {
  border-color: var(--line-strong);
  outline-color: var(--cyan)
}

.sound-check {
  background: linear-gradient(135deg, var(--surface-inverse), var(--surface-inverse-2));
  border: 1px solid rgba(var(--blue-rgb), .28);
  box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .16)
}

.sound-btn {
  background: var(--chip-bg);
  color: var(--chip-fg);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .12)
}

.play-icon {
  color: var(--chip-accent)
}

.primary-btn {
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 10px 24px rgba(var(--green-rgb), .20)
}

.primary-btn:hover:not(:disabled) {
  background: var(--green-strong);
  box-shadow: 0 13px 28px rgba(var(--green-rgb), .25)
}

.secondary-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface-1);
  color: var(--text)
}

.secondary-btn:hover {
  border-color: rgba(var(--blue-rgb), .45);
  background: var(--blue-soft)
}

.quiz-view {
  min-height: calc(100vh - 78px);
  padding: clamp(28px, 4vw, 52px) 0 clamp(52px, 6vw, 84px);
  background: transparent
}

.quiz-shell {
  max-width: 1040px
}

.quiz-nav {
  padding: 0 6px 14px
}

.text-btn {
  color: var(--text-3)
}

.text-btn:hover {
  color: var(--blue-ink)
}

.quiz-status {
  font-size: 13px
}

.quiz-status strong {
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  box-shadow: 0 5px 16px rgba(var(--shadow-rgb), .04)
}

.progress-track {
  height: 8px;
  background: var(--surface-3);
  box-shadow: inset 0 1px 2px rgba(var(--shadow-rgb), .06)
}

.progress-track span {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 12px rgba(var(--blue-rgb), .20)
}

.question-card {
  padding: clamp(26px, 4.2vw, 50px);
  border-radius: 30px;
  position: relative;
  overflow: hidden
}

.question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green))
}

.skill-badge {
  background: var(--blue-soft);
  color: var(--blue-ink);
  border: 1px solid rgba(var(--blue-rgb), .14)
}

.level-badge {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(var(--green-rgb), .16)
}

.question-card h2,
.question-card .question-enunciado>p:first-child {
  color: var(--text);
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -.035em
}

.question-context,
.question-enunciado blockquote[data-contexto] {
  border-left-color: var(--cyan);
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b))
}

.answer-option {
  border-color: var(--line);
  background: var(--surface-1-a95);
  min-height: 62px
}

.answer-option:hover {
  border-color: rgba(var(--blue-rgb), .42);
  box-shadow: 0 8px 22px rgba(var(--blue-rgb), .07)
}

.answer-option.selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 8px 20px rgba(var(--green-rgb), .08)
}

.answer-letter {
  background: var(--blue-soft);
  color: var(--blue-ink)
}

.answer-option.selected .answer-letter {
  background: var(--green);
  color: var(--on-green)
}

.question-footer {
  border-top-color: var(--line)
}

.video-player {
  border: 1px solid rgba(var(--blue-rgb), .22);
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), .16)
}

.video-overlay-play {
  background: rgba(26, 36, 59, .88);
  box-shadow: 0 10px 30px rgba(var(--blue-rgb), .20)
}

.video-progress {
  accent-color: var(--green)
}

.audio-player {
  background: linear-gradient(135deg, var(--surface-inverse), var(--surface-inverse-2));
  border: 1px solid rgba(var(--blue-rgb), .26);
  box-shadow: 0 18px 42px rgba(var(--shadow-rgb), .15)
}

.audio-play {
  background: var(--green);
  color: var(--on-green)
}

.wave i {
  background: linear-gradient(180deg, var(--cyan), var(--green))
}

/* Completar mediante cards: una sola línea sólida por espacio */
.fill-exercise {
  gap: 22px
}

.fill-sentence {
  border-color: var(--line);
  background: linear-gradient(135deg, var(--tint-a), var(--tint-b));
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 2.2;
  padding: clamp(18px, 2.5vw, 28px)
}

.fill-slot {
  display: inline-flex;
  min-width: clamp(92px, 12vw, 150px);
  min-height: 34px;
  align-items: flex-end;
  justify-content: center;
  margin: 0 7px;
  padding: 0 8px 3px;
  border: 0;
  border-bottom: 2px solid var(--line-slot);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: .86em;
  font-weight: 900;
  line-height: 1.25;
  vertical-align: baseline;
  transition: border-color .18s, color .18s
}

.fill-slot:empty::after {
  content: "\00a0"
}

.fill-slot.filled {
  border: 0;
  border-bottom: 3px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none
}

.fill-card-grid {
  gap: 12px
}

.fill-card {
  border-color: var(--line);
  border-radius: 16px;
  background: var(--surface-1);
  min-height: 64px
}

.fill-card:hover:not(:disabled) {
  border-color: rgba(var(--blue-rgb), .46);
  box-shadow: 0 9px 22px rgba(var(--blue-rgb), .07)
}

.fill-card.selected,
.fill-card:disabled {
  border-color: rgba(var(--green-rgb), .40);
  background: var(--green-soft);
  opacity: .66
}

.fill-card-letter {
  background: var(--blue-soft);
  color: var(--blue-ink)
}

.fill-card-order {
  background: var(--green);
  color: var(--text)
}

.fill-tool-btn {
  border-color: var(--line);
  color: var(--text-3);
  background: var(--surface-1)
}

.fill-tool-btn:hover:not(:disabled) {
  border-color: rgba(var(--blue-rgb), .4);
  background: var(--blue-soft)
}

.result-view {
  padding: clamp(36px, 5vw, 64px) 0 clamp(62px, 7vw, 90px);
  background: transparent
}

.result-shell {
  max-width: 980px
}

.result-card {
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: 32px;
  position: relative;
  overflow: hidden
}

.result-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green))
}

.result-pill {
  background: var(--surface-inverse);
  color: var(--green);
  border: 1px solid rgba(var(--blue-rgb), .18)
}

.result-card h2 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.03
}

.curve-panel {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--tint-a) 100%);
  box-shadow: inset 0 1px 0 var(--panel-highlight)
}

.curve-line {
  stroke-width: 6
}

.curve-area {
  fill: var(--curve-area)
}

.curve-axis {
  stroke: var(--curve-axis)
}

.curve-point-outer {
  stroke: var(--green)
}

.curve-point-inner {
  fill: var(--surface-inverse)
}

.curve-callout {
  fill: var(--surface-inverse)
}

.result-actions {
  gap: 14px
}

.integrity-note {
  border-color: var(--warn-border);
  background: var(--warn-soft);
  color: var(--warn-ink)
}

.integrity-dialog {
  border-color: var(--alert-border)
}

.site-footer {
  border-top-color: var(--line);
  background: var(--surface-1-a82);
  backdrop-filter: blur(12px)
}

.footer-inner {
  min-height: 58px
}

/* Tablet */
@media(max-width:1024px) {
  .shell {
    width: min(100% - 32px, 960px)
  }

  .start-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 820px
  }

  .start-copy {
    max-width: 760px
  }

  .setup-card {
    max-width: 760px;
    width: 100%;
    justify-self: center
  }

  .quiz-shell {
    max-width: 900px
  }

  .curve-panel {
    padding: 20px 18px 10px
  }
}

/* Tablet vertical / móvil grande */
@media(max-width:760px) {
  .header-badge {
    font-size: 10px;
    padding: 7px 10px
  }

  .start-grid {
    min-height: auto;
    padding: 38px 0 60px
  }

  .start-copy h1 {
    font-size: clamp(36px, 10vw, 52px)
  }

  .mode-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px
  }

  .recommended {
    grid-column: 2;
    justify-self: start
  }

  .question-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 14px
  }

  .quiz-nav {
    align-items: flex-start
  }

  .question-card {
    border-radius: 24px
  }

  .fill-card-grid {
    grid-template-columns: 1fr
  }

  .fill-sentence {
    line-height: 2.35
  }

  .fill-slot {
    min-width: 96px;
    margin: 0 4px
  }

  .result-actions {
    grid-template-columns: 1fr
  }

  .curve-chart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
  }

  .curve-chart svg {
    min-width: 620px
  }
}

/* Móvil */
@media(max-width:560px) {
  .shell {
    width: calc(100% - 24px)
  }

  .header-badge {
    display: none
  }

  .start-grid {
    padding: 28px 0 46px;
    gap: 28px
  }

  .start-copy::before {
    margin-bottom: 16px;
    width: 46px;
    height: 4px
  }

  .start-copy h1 {
    font-size: 38px;
    line-height: 1.02
  }

  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin: 18px 0
  }

  .skill-list {
    gap: 7px
  }

  .skill-list span {
    font-size: 10px;
    padding: 7px 9px
  }

  .info-card {
    margin-top: 20px;
    padding: 15px 16px
  }

  .setup-card {
    padding: 22px;
    border-radius: 22px
  }

  .setup-card h2 {
    font-size: 25px
  }

  .sound-check {
    align-items: flex-start;
    flex-direction: column
  }

  .sound-btn {
    width: 100%
  }

  .quiz-view {
    padding: 24px 0 48px
  }

  .quiz-nav {
    gap: 10px;
    flex-direction: column
  }

  .quiz-status {
    width: 100%;
    justify-content: space-between;
    gap: 10px
  }

  .quiz-status strong {
    padding: 6px 9px
  }

  .question-card {
    padding: 22px 18px;
    border-radius: 22px
  }

  .badges {
    gap: 7px
  }

  .skill-badge,
  .level-badge {
    font-size: 9px;
    padding: 6px 8px
  }

  .question-card h2,
.question-card .question-enunciado>p:first-child {
    font-size: 27px;
    line-height: 1.13;
    margin: 18px 0
  }

  .question-context,
.question-enunciado blockquote[data-contexto] {
    padding: 14px 15px;
    font-size: 14px
  }

  .answer-option {
    min-height: 58px;
    padding: 12px;
    gap: 10px
  }

  .answer-text {
    font-size: 14px
  }

  .question-footer {
    align-items: stretch;
    flex-direction: column
  }

  .next-btn {
    width: 100%
  }

  .audio-player {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 14px;
    gap: 12px
  }

  .audio-play {
    width: 52px;
    height: 52px
  }

  .wave {
    gap: 1px
  }

  .video-player {
    border-radius: 14px
  }

  .question-image {
    border-radius: 14px
  }

  .question-image img {
    max-height: 240px
  }

  .video-overlay-play {
    width: 58px;
    height: 58px;
    font-size: 22px
  }

  .video-controls {
    grid-template-columns: 34px 1fr auto 34px;
    gap: 6px;
    padding: 28px 8px 8px
  }

  .video-control-btn {
    width: 34px;
    height: 34px
  }

  .video-time {
    font-size: 9px
  }

  .fill-sentence {
    font-size: 17px;
    line-height: 2.45;
    padding: 16px 14px;
    border-radius: 15px
  }

  .fill-slot {
    min-width: 84px;
    max-width: 100%;
    font-size: 14px;
    padding-inline: 5px
  }

  .fill-card {
    min-height: 58px;
    padding: 11px 12px
  }

  .fill-tools {
    justify-content: stretch
  }

  .fill-tool-btn {
    flex: 1
  }

  .result-card {
    padding: 24px 18px;
    border-radius: 22px
  }

  .result-card h2 {
    font-size: 38px
  }

  .result-lead {
    font-size: 15px
  }

  .curve-panel {
    padding: 16px 12px 8px;
    border-radius: 18px
  }

  .curve-copy {
    padding-inline: 4px
  }

  .curve-title {
    font-size: 13px
  }

  .curve-subtitle {
    font-size: 11px
  }

  .curve-chart {
    margin-inline: -2px
  }

  .result-actions {
    margin-top: 20px
  }

  .footer-inner {
    font-size: 9px;
    padding: 14px 0
  }

  .integrity-dialog {
    padding: 26px 20px;
    border-radius: 22px
  }
}

@media(max-width:380px) {
  .start-copy h1 {
    font-size: 34px
  }

  .question-card h2,
.question-card .question-enunciado>p:first-child {
    font-size: 24px
  }

  .quiz-status {
    font-size: 11px
  }

  .fill-slot {
    min-width: 74px
  }

  .result-card h2 {
    font-size: 34px
  }
}

/* v11 refinements */
.level-badge {
  display: none !important
}

.question-head.media-head-clean {
  display: none
}

.question-card,
.question-card * {
  -webkit-user-select: text;
  user-select: text
}

.question-card button,
.question-card input {
  -webkit-user-select: none;
  user-select: none
}

.answer-text,
.fill-card-text {
  -webkit-user-select: text;
  user-select: text
}

body.exam-locked {
  -webkit-user-select: auto !important;
  user-select: auto !important
}

/* Fill-cards: selected words sit on one continuous line, not inside a badge */
.fill-slot {
  display: inline-flex !important;
  min-width: 122px !important;
  min-height: 32px !important;
  align-items: flex-end !important;
  justify-content: center !important;
  margin: 0 6px !important;
  padding: 0 8px 3px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--line-slot) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--navy) !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  vertical-align: baseline !important;
}

.fill-slot.filled {
  border: 0 !important;
  border-bottom: 2px solid var(--green) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--navy) !important;
}

@media(max-width:600px) {
  .fill-slot {
    min-width: 92px !important;
    font-size: 14px !important;
    margin: 0 4px !important;
    padding-inline: 5px !important
  }
}

/* v12 — comportamiento correcto de espacios en preguntas fill-cards
   Vacío: una sola línea sólida. Completado: badge insertado, sin línea externa. */
.fill-slot {
  display: inline-flex !important;
  min-width: 122px !important;
  min-height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 6px !important;
  padding: 2px 10px !important;
  border: 0 !important;
  border-bottom: 2px solid var(--line-slot) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: "Nunito", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  vertical-align: middle !important;
  transition: background .18s, border .18s, border-radius .18s, padding .18s !important;
}

.fill-slot:empty::after {
  content: "\00a0"
}

.fill-slot.filled {
  min-width: auto !important;
  min-height: 42px !important;
  padding: 6px 20px 5px !important;
  border: 1px solid rgba(var(--green-rgb), .34) !important;
  border-bottom: 3px solid var(--green) !important;
  border-radius: 11px !important;
  background: var(--green-soft) !important;
  box-shadow: 0 5px 14px rgba(var(--green-rgb), .07) !important;
  color: var(--text) !important;
}

@media(max-width:600px) {
  .fill-slot {
    min-width: 92px !important;
    min-height: 32px !important;
    margin: 0 4px !important;
    padding: 1px 6px !important;
    font-size: 14px !important;
  }

  .fill-slot.filled {
    min-width: auto !important;
    min-height: 38px !important;
    padding: 5px 13px 4px !important;
    border-radius: 9px !important;
  }
}


/* v13 — autocompletado visual para preguntas A–D con hueco ___ */
.inline-answer-slot {
  display: inline-flex;
  min-width: clamp(88px, 10vw, 150px);
  min-height: .88em;
  align-items: center;
  justify-content: center;
  margin: 0 .12em;
  padding: 0 .08em .05em;
  border: 0;
  border-bottom: 3px solid var(--line-slot);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: "Nunito", sans-serif;
  font-size: .62em;
  font-weight: 900;
  line-height: 1.25;
  vertical-align: .16em;
  transition: background .16s, border .16s, border-radius .16s, padding .16s, box-shadow .16s;
}

.inline-answer-slot:empty::after {
  content: "\00a0"
}

.inline-answer-slot.filled {
  min-width: auto;
  min-height: 1.9em;
  padding: .38em .82em .32em;
  border: 1px solid rgba(var(--green-rgb), .38);
  border-bottom: 3px solid var(--green);
  border-radius: 11px;
  background: var(--green-soft);
  box-shadow: 0 5px 14px rgba(var(--green-rgb), .08);
  color: var(--text);
  vertical-align: .08em;
  white-space: normal;
  max-width: 100%;
}

@media(max-width:600px) {
  .inline-answer-slot {
    min-width: 72px;
    border-bottom-width: 2px
  }

  .inline-answer-slot.filled {
    font-size: .58em;
    padding: .34em .66em .3em;
    border-radius: 9px
  }
}


/* v14 — Inicio limpio: badges en formato normal, sin barra degradada superior */
.eyebrow,
.step-label,
.recommended,
.skill-badge,
.level-badge,
.header-badge,
.result-pill {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.setup-card::before {
  display: none !important;
  content: none !important;
}

.skill-list {
  display: none !important;
}

/* v15 — card de pregunta limpio: sin línea/degradado decorativo superior */
.question-card::before {
  display: none !important;
  content: none !important;
  background: none !important;
}


/* v18 — custom level selector */
.target-wrap {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 13px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(var(--shadow-rgb), .035)
}

.target-label {
  display: block;
  margin: 0 0 9px;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--text)
}

.level-select {
  position: relative;
  z-index: 12
}

.level-select-button {
  width: 100%;
  min-height: 58px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 9px 12px 9px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease
}

.level-select-button:hover {
  border-color: rgba(var(--blue-rgb), .50);
  box-shadow: 0 8px 22px rgba(var(--blue-rgb), .07)
}

.level-select.open .level-select-button {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .10)
}

.level-select-main {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0
}

.level-select-name {
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text)
}

.level-select-range {
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap
}

.level-select-chevron {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: transform .18s ease, background .18s ease, color .18s ease
}

.chevron-icon {
  width: 18px;
  height: 18px;
  display: block
}

.level-select.open .level-select-chevron {
  transform: rotate(180deg);
  background: var(--blue-soft);
  color: var(--cyan)
}

.level-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 20px 48px rgba(var(--shadow-rgb), .16);
  overflow: hidden
}

.level-select-menu[hidden] {
  display: none
}

.level-option {
  width: 100%;
  border: 0;
  background: var(--surface-1);
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: background .16s ease, transform .16s ease
}

.level-option:hover {
  background: var(--surface-2)
}

.level-option.selected {
  background: var(--green-soft)
}

.level-option-copy {
  display: flex;
  align-items: baseline;
  gap: 10px
}

.level-option-copy strong {
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text)
}

.level-option-copy small {
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted)
}

.level-option-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-inverse);
  color: var(--text-inverse);
  opacity: 0;
  transform: scale(.82);
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
  box-shadow: 0 8px 18px rgba(var(--shadow-rgb), .12)
}

.level-check-icon {
  width: 15px;
  height: 15px;
  display: block
}

.level-option.selected .level-option-check {
  opacity: 1;
  transform: scale(1)
}

.target-wrap>p {
  margin: 9px 2px 0;
  color: var(--muted-2);
  font-size: 11px
}

@media(max-width:600px) {
  .target-wrap {
    padding: 12px
  }

  .level-select-button {
    min-height: 54px
  }

  .level-select-main {
    gap: 7px
  }

  .level-select-name {
    font-size: 14px
  }

  .level-select-range {
    font-size: 11px
  }

  .level-select-menu {
    position: relative;
    top: auto;
    margin-top: 8px;
    box-shadow: none;
    border-color: var(--line)
  }

  .level-option {
    padding: 10px
  }
}


/* Modal propio para acciones del examen: reemplaza confirm()/alert() nativos */
.action-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: var(--overlay-2);
  display: grid;
  place-items: center;
  padding: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: actionFade .16s ease-out
}

.action-modal[hidden] {
  display: none
}

.action-dialog {
  width: min(470px, 100%);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 34px 90px rgba(var(--shadow-rgb), .24);
  text-align: center;
  animation: actionPop .2s cubic-bezier(.2, .8, .2, 1)
}

.action-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: var(--warn-soft);
  color: var(--warn-icon-fg);
  border: 1px solid var(--warn-border)
}

.action-icon svg {
  width: 29px;
  height: 29px;
  display: block
}

.action-dialog h2 {
  margin: 0;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 800
}

.action-dialog p {
  margin: 12px auto 24px;
  max-width: 380px;
  color: var(--muted);
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  line-height: 1.6
}

.action-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px
}

.action-cancel-btn,
.action-confirm-btn {
  min-height: 48px;
  border-radius: 13px;
  padding: 11px 16px;
  font-family: "Nunito", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease
}

.action-cancel-btn {
  border: 1px solid var(--line);
  background: var(--surface-1);
  color: var(--text-3)
}

.action-cancel-btn:hover {
  border-color: var(--line-hover);
  background: var(--surface-2)
}

.action-confirm-btn {
  border: 1px solid var(--warn-btn-border);
  background: var(--warn-btn-bg);
  color: var(--warn-btn-fg);
  box-shadow: 0 8px 20px rgba(182, 106, 22, .08)
}

.action-confirm-btn:hover {
  background: var(--warn-btn-bg-hover);
  border-color: var(--warn-btn-border-hover);
  transform: translateY(-1px)
}

.action-dialog[data-variant="info"] .action-icon {
  background: var(--blue-soft);
  color: var(--cyan);
  border-color: var(--blue-border)
}

.action-dialog[data-variant="info"] .action-confirm-btn {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
  box-shadow: 0 10px 22px rgba(var(--green-rgb), .18)
}

.action-dialog[data-variant="info"] .action-confirm-btn:hover {
  background: var(--green-strong);
  border-color: var(--green-strong)
}

.action-dialog[data-variant="info"] .action-modal-actions {
  grid-template-columns: 1fr
}

@keyframes actionFade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes actionPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

@media(max-width:560px) {
  .action-dialog {
    padding: 25px 20px;
    border-radius: 22px
  }

  .action-dialog h2 {
    font-size: 21px
  }

  .action-modal-actions {
    grid-template-columns: 1fr
  }

  .action-confirm-btn {
    order: -1
  }
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto
}

.btn-icon.back-icon {
  margin-right: 0
}

.btn-arrow-icon {
  width: 18px;
  height: 18px;
  display: block
}

.primary-btn .btn-arrow-icon,
.secondary-btn .btn-arrow-icon {
  width: 18px;
  height: 18px
}

.text-btn .btn-arrow-icon {
  width: 16px;
  height: 16px
}

.primary-btn[disabled] .btn-arrow-icon {
  opacity: .55
}