/* ===================================================================
   Verb Island - hoja de estilo
   Mobile first. Tema: isla tropical de noche.
   =================================================================== */

:root {
  --vh: 1vh;

  --ink:        #f7fafc;
  --ink-soft:   #cbd5e0;
  --ink-mute:   #8fa3bd;

  --deep:       #061627;
  --deep-2:     #0b2540;
  --sea:        #11395e;

  --card:       rgba(255,255,255,.07);
  --card-2:     rgba(255,255,255,.11);
  --line:       rgba(255,255,255,.14);

  --good:       #48bb78;
  --good-2:     #68d391;
  --bad:        #f56565;
  --warn:       #ecc94b;
  --gold:       #f6e05e;
  --gold-2:     #d69e2e;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 10px 30px rgba(0,0,0,.42);
  --shadow-sm: 0 4px 14px rgba(0,0,0,.32);

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, #1d4e78 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 100%, #1a365d 0%, transparent 55%),
    linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 100%);
  background-attachment: fixed;
  min-height: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Baloo 2', 'Nunito', sans-serif; margin: 0; line-height: 1.15; }

.app {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  min-height: calc(var(--vh, 1vh) * 100);
}

.fx-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 60;
}

.float-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 61;
}

/* ---------- transicion de pantallas ---------- */

.screen { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s cubic-bezier(.2,.8,.3,1); }
.screen-in { opacity: 1; transform: none; }

/* ===================================================================
   BOTONES
   =================================================================== */

.btn {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--r-lg);
  padding: 14px 24px;
  cursor: pointer;
  color: #fff;
  background: var(--card-2);
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
  letter-spacing: .3px;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; filter: grayscale(.35); cursor: not-allowed; }
.btn:disabled:active { transform: none; }

.btn-primary {
  background: linear-gradient(160deg, #38b2ac 0%, #2c7a7b 60%, #234e52 100%);
  box-shadow: 0 6px 0 #1d4044, var(--shadow-sm);
}
.btn-primary:active { box-shadow: 0 2px 0 #1d4044; transform: translateY(4px) scale(.99); }

.btn-gold {
  background: linear-gradient(160deg, #f6e05e, #d69e2e 70%, #975a16);
  color: #2d2000;
  box-shadow: 0 5px 0 #7b4b0e, var(--shadow-sm);
}
.btn-gold:active { box-shadow: 0 2px 0 #7b4b0e; transform: translateY(3px); }

.btn-ghost {
  background: rgba(255,255,255,.09);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
}

.btn-xl { padding: 17px 40px; font-size: 1.25rem; width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .9rem; border-radius: var(--r-md); }

.btn-back {
  background: rgba(255,255,255,.1);
  border: 1.5px solid var(--line);
  color: var(--ink);
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.7rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  padding: 0 0 4px 0;
  flex: 0 0 auto;
}
.btn-back.small { width: 36px; height: 36px; font-size: 1.4rem; }
.btn-back:active { transform: scale(.92); }

/* ===================================================================
   PORTADA
   =================================================================== */

.title-screen {
  position: relative;
  min-height: calc(var(--vh,1vh) * 100);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px calc(24px + var(--safe-b));
  overflow: hidden;
}

.sea {
  position: absolute; left: -20%; right: -20%; bottom: -10%;
  height: 55%;
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(56,178,172,.35), transparent 70%),
    linear-gradient(180deg, transparent, rgba(11,58,94,.75));
  filter: blur(2px);
  animation: sway 9s ease-in-out infinite alternate;
}
.sea::before, .sea::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(72,187,200,.25), transparent 70%);
  animation: sway 6s ease-in-out infinite alternate-reverse;
}
@keyframes sway { from { transform: translateX(-3%) scaleY(1); } to { transform: translateX(3%) scaleY(1.08); } }

.title-content { position: relative; z-index: 2; text-align: center; width: 100%; }

.logo-island { position: relative; margin-bottom: 34px; }

.logo-sun {
  width: 130px; height: 130px; margin: 0 auto -46px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fefcbf, #f6ad55 55%, #dd6b20 78%, transparent 80%);
  filter: blur(1px);
  animation: pulse-sun 4.5s ease-in-out infinite;
}
@keyframes pulse-sun { 50% { transform: scale(1.07); filter: blur(3px) brightness(1.12); } }

.logo-palm { font-size: 3rem; position: relative; animation: palm 4s ease-in-out infinite; }
@keyframes palm { 50% { transform: rotate(-7deg) translateY(-4px); } }

.logo {
  font-size: clamp(3rem, 16vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: .95;
  background: linear-gradient(180deg, #fff 10%, #f6e05e 55%, #dd6b20 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 14px rgba(246,224,94,.32));
  margin-bottom: 4px;
}
.logo span { display: block; }

.tagline { color: var(--ink-soft); font-size: 1rem; line-height: 1.5; margin: 10px 0 0; font-weight: 600; }

.title-buttons { display: grid; gap: 12px; max-width: 330px; margin: 0 auto; }

.credits { margin-top: 26px; font-size: .78rem; color: var(--ink-mute); }
.credits + .credits { margin-top: 6px; }
.credits-authors { font-size: .72rem; opacity: .8; }

/* ===================================================================
   PAGINAS GENERICAS
   =================================================================== */

.page { padding: calc(14px + var(--safe-t)) 16px calc(30px + var(--safe-b)); }

.page-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  position: sticky; top: 0; z-index: 20;
  padding: 8px 0;
  background: linear-gradient(180deg, rgba(6,22,39,.96) 65%, transparent);
  backdrop-filter: blur(6px);
}
.page-head h2 { flex: 1; font-size: 1.4rem; }

.page-sub { color: var(--ink-mute); font-size: .92rem; margin: -6px 0 16px; line-height: 1.5; }

.section-title { font-size: 1.08rem; margin: 22px 0 10px; color: var(--ink-soft); }

.muted { color: var(--ink-mute); }
.small { font-size: .82rem; }

.coins-chip {
  background: linear-gradient(160deg, rgba(246,224,94,.22), rgba(214,158,46,.16));
  border: 1.5px solid rgba(246,224,94,.4);
  color: var(--gold);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  white-space: nowrap;
}

/* ---------- tarjetas de heroe ---------- */

.hero-grid { display: grid; gap: 14px; }

.hero-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 22%, transparent), var(--card));
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.hero-card.active { border-color: var(--c1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 30%, transparent), var(--shadow); }
.hero-card.locked { opacity: .82; }
.hero-card.locked .hero-art { filter: grayscale(.75) brightness(.7); }

.hero-art { display: grid; place-items: center; }
.hero-svg { display: block; }

.hero-info h3 { font-size: 1.35rem; }
.hero-title { margin: 0 0 6px; color: var(--c1); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .6px; }
.hero-desc { margin: 0 0 8px; font-size: .87rem; color: var(--ink-soft); line-height: 1.45; }
.hero-perk {
  display: inline-block;
  background: rgba(246,224,94,.14);
  border: 1px solid rgba(246,224,94,.3);
  color: var(--gold);
  border-radius: var(--r-sm);
  padding: 5px 9px;
  font-size: .8rem; font-weight: 700;
  margin-bottom: 8px;
}
.hero-stats { display: flex; gap: 12px; font-size: .82rem; color: var(--ink-mute); font-weight: 700; }

.hero-cta { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.badge-active {
  background: var(--good); color: #06301a;
  padding: 7px 15px; border-radius: 999px;
  font-weight: 800; font-size: .82rem; letter-spacing: .5px;
}

.hero-strip {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 26%, transparent), var(--card));
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  margin-bottom: 18px;
}
.hero-strip > div:nth-child(2) { flex: 1; min-width: 0; }
.hero-strip > div:nth-child(2) > b { font-size: 1.05rem; }
.strip-art { width: 62px; display: grid; place-items: center; }

/* ---------- modos ---------- */

.mode-list { display: grid; gap: 12px; }

.mode-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: var(--card);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 24%, transparent), var(--card));
  border: 2px solid var(--line);
  border-left: 5px solid var(--c1);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: transform .14s ease, box-shadow .2s ease;
}
.mode-card:active { transform: scale(.98); }
.mode-emoji { font-size: 2.2rem; text-align: center; }
/* el titulo debe dejar libre la esquina donde va la etiqueta de jugadores */
.mode-card h3 { font-size: 1.18rem; margin-bottom: 4px; padding-right: 92px; }
.mode-card p { margin: 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.mode-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: .68rem; font-weight: 800;
  padding: 4px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .4px;
}

/* ---------- islas ---------- */

.island-grid { display: grid; gap: 12px; }

.island-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: var(--card);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 22%, transparent), var(--card));
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 13px;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s ease;
}
.island-card:active { transform: scale(.98); }
.island-card.locked { opacity: .45; filter: saturate(.3); }
.island-card.cleared { border-color: rgba(255,255,255,.34); border-color: color-mix(in srgb, var(--c1) 60%, transparent); }
.isl-emoji { font-size: 2rem; text-align: center; }
.isl-num { font-size: .7rem; text-transform: uppercase; letter-spacing: .8px; color: var(--c1); font-weight: 800; }
.island-card h3 { font-size: 1.12rem; margin: 1px 0 3px; }
.isl-rule { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.isl-count { margin: 2px 0 0; font-size: .74rem; color: var(--ink-mute); }
.isl-stars { font-size: 1rem; letter-spacing: 1px; }
.star { color: rgba(255,255,255,.22); }

/* tarjeta de entrada a Isla Personalizada, arriba del mapa de las 12 islas */
.island-card.custom-entry {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--c1) 55%, transparent);
}
.island-card.custom-entry .isl-stars { font-size: 1.5rem; }

/* tarjetas de isla seleccionables (Isla Personalizada): un check en vez de estrellas */
.island-card.selectable .isl-check {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 800;
  color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.island-card.selectable.selected {
  border-color: var(--c1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 30%, transparent);
}
.island-card.selectable.selected .isl-check {
  background: var(--c1);
  border-color: var(--c1);
  color: #fff;
}
.star.on { color: var(--gold); text-shadow: 0 0 10px rgba(246,224,94,.55); }

/* ---------- intro de isla ---------- */

.intro-banner {
  display: flex; gap: 14px; align-items: center;
  background: var(--card);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 30%, transparent), var(--card));
  border: 2px solid var(--line);
  border: 2px solid color-mix(in srgb, var(--c1) 45%, transparent);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 6px;
}
.intro-emoji { font-size: 2.6rem; }
.intro-rule { font-family: 'Baloo 2'; font-size: 1.25rem; font-weight: 700; }
.intro-hint { font-size: .87rem; color: var(--ink-soft); margin-top: 3px; }

.verb-table {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 90px;
}
.vt-head, .vt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 9px 12px;
  font-size: .88rem;
}
.vt-head {
  background: rgba(0,0,0,.3);
  font-weight: 800; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--ink-mute);
}
.vt-row { border-top: 1px solid rgba(255,255,255,.07); align-items: baseline; }
.vt-row:nth-child(even) { background: rgba(255,255,255,.03); }
.vt-b { font-weight: 800; color: var(--c1); }
.vt-es { grid-column: 1 / -1; font-size: .76rem; color: var(--ink-mute); font-style: normal; }

/* lista completa de verbos: varias tablas seguidas, sin boton pegajoso que
   esquivar, asi que no necesitan el margen grande de sobra de .verb-table */
.verb-list .verb-table { margin-bottom: 18px; }
.verb-list .verb-table:last-child { margin-bottom: 24px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 14px 16px calc(14px + var(--safe-b));
  background: linear-gradient(180deg, transparent, rgba(6,22,39,.94) 45%);
  z-index: 30;
  max-width: 560px; margin: 0 auto;
  display: grid; gap: 8px;
}

/* ---------- opciones de configuracion ---------- */

.opt-row { display: grid; gap: 10px; }
.opt {
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: all .16s ease;
}
.opt b { display: block; font-size: 1.02rem; font-family: 'Baloo 2'; }
.opt span { font-size: .82rem; color: var(--ink-mute); }
.opt.on {
  border-color: var(--good-2);
  background: linear-gradient(120deg, rgba(104,211,145,.2), var(--card));
  box-shadow: 0 0 0 3px rgba(104,211,145,.16);
}
.opt.on span { color: var(--ink-soft); }

.name-row { display: flex; align-items: center; gap: 10px; }
.name-input {
  flex: 1; min-width: 0;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px;
  color: var(--ink);
  font-family: 'Baloo 2'; font-size: 1rem; font-weight: 700;
  text-align: center;
}
.name-input:focus { outline: none; border-color: var(--good-2); }
.vs-mini { font-family: 'Baloo 2'; font-weight: 800; color: var(--bad); }

/* selector compacto de islas (duelo de 2 jugadores) */
.isl-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.isl-chip {
  display: flex; align-items: center; gap: 5px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px 8px 10px;
  color: var(--ink-mute);
  font-family: 'Baloo 2'; font-size: .86rem; font-weight: 700;
  cursor: pointer;
  transition: all .14s ease;
}
.isl-chip:active { transform: scale(.95); }
.isl-chip.on {
  border-color: var(--good-2);
  background: linear-gradient(120deg, rgba(104,211,145,.2), var(--card));
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(104,211,145,.16);
}
.isl-chip-all { border-style: dashed; }

/* ===================================================================
   PANTALLA DE COMBATE
   =================================================================== */

.arena-screen {
  position: relative;
  min-height: calc(var(--vh,1vh) * 100);
  display: flex;
  flex-direction: column;
  padding: calc(10px + var(--safe-t)) 14px calc(10px + var(--safe-b));
  overflow: hidden;
}

.arena-bg {
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,.09), transparent 65%);
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 65%),
    radial-gradient(70% 50% at 50% 100%, color-mix(in srgb, var(--c2) 45%, transparent), transparent 70%);
  z-index: 0;
  animation: bg-breathe 7s ease-in-out infinite alternate;
}
@keyframes bg-breathe { to { opacity: .72; transform: scale(1.04); } }

.arena-screen > *:not(.arena-bg):not(.handoff) { position: relative; z-index: 1; }

.arena-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wave-info {
  flex: 1;
  font-size: .82rem; font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .5px;
  text-align: center;
}
.combo-chip {
  min-width: 54px; text-align: right;
  font-family: 'Baloo 2'; font-weight: 800;
  color: var(--gold); font-size: 1rem;
  opacity: 0; transition: opacity .2s;
}
.combo-chip.on { opacity: 1; animation: combo-pop .35s ease; }
@keyframes combo-pop { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* --- enemigo --- */

.enemy-zone { text-align: center; padding: 4px 0 0; }
.enemy-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; padding: 0 4px; }
.enemy-name { font-family: 'Baloo 2'; font-weight: 700; font-size: 1.05rem; }
.enemy-name.boss-name {
  color: var(--gold);
  font-size: 1.2rem;
  text-shadow: 0 0 14px rgba(246,224,94,.55);
  animation: boss-glow 1.6s ease-in-out infinite alternate;
}
@keyframes boss-glow { to { text-shadow: 0 0 22px rgba(246,224,94,.9); } }
.enemy-hp-text { font-size: .78rem; color: var(--ink-mute); font-weight: 700; }

.enemy-art { margin: 4px auto 0; height: 168px; display: grid; place-items: end center; }
.monster-svg { animation: float-idle 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.monster-svg.is-boss { animation: float-idle 2s ease-in-out infinite, boss-scale 3s ease-in-out infinite alternate; }
@keyframes float-idle { 50% { transform: translateY(-9px); } }
@keyframes boss-scale { to { filter: drop-shadow(0 0 18px rgba(246,224,94,.5)); } }

.enemy-art.enter .monster-svg { animation: monster-in .55s cubic-bezier(.2,1.5,.4,1), float-idle 2.6s ease-in-out .55s infinite; }
@keyframes monster-in { 0% { transform: translateY(-60px) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

.enemy-art.dying .monster-svg { animation: monster-die .7s ease forwards; }
@keyframes monster-die {
  0% { transform: none; opacity: 1; }
  35% { transform: scale(1.15) rotate(6deg); filter: brightness(2.4); }
  100% { transform: scale(.2) rotate(-20deg) translateY(30px); opacity: 0; }
}

/* --- barras --- */

.bar {
  height: 13px;
  background: rgba(0,0,0,.44);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block; height: 100%;
  border-radius: 999px;
  transition: width .35s cubic-bezier(.2,.8,.3,1);
}
.bar-enemy i { background: linear-gradient(90deg, #f56565, #c53030); box-shadow: 0 0 12px rgba(245,101,101,.5); }
.bar-hero i  { background: linear-gradient(90deg, #68d391, #38a169); box-shadow: 0 0 12px rgba(104,211,145,.45); }
.bar-hero i.low { background: linear-gradient(90deg, #f6ad55, #e53e3e); animation: hp-alert .8s ease-in-out infinite alternate; }
@keyframes hp-alert { to { filter: brightness(1.45); } }

/* --- zona de pregunta --- */

.q-zone {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(0,0,0,.34);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px 16px 14px;
  margin: 12px 0;
  min-height: 168px;
  backdrop-filter: blur(9px);
  position: relative;
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.q-zone.q-enter { animation: q-in .38s cubic-bezier(.2,.9,.3,1); }
@keyframes q-in { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: none; } }
.q-zone.flash-good { border-color: var(--good-2); background: rgba(56,161,105,.2); }
.q-zone.flash-bad  { border-color: var(--bad); background: rgba(197,48,48,.2); }

.timer {
  height: 7px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.timer i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, #4fd1c5, #38b2ac);
  border-radius: 999px;
}
.timer i.danger { background: linear-gradient(90deg, #f6ad55, #e53e3e); animation: hp-alert .45s ease-in-out infinite alternate; }

.q-main {
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 12vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.5px;
}
.verb-word {
  background: linear-gradient(180deg, #fff, #cbd5e0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.4));
}
.q-main.is-sentence { font-size: clamp(1.15rem, 5.4vw, 1.6rem); line-height: 1.4; font-weight: 700; }
.q-main.is-triple { font-size: clamp(1.4rem, 7vw, 2.1rem); }
.blank {
  display: inline-block;
  min-width: 78px;
  border-bottom: 3px solid var(--gold);
  color: var(--gold);
  letter-spacing: 2px;
  animation: blink-blank 1.4s ease-in-out infinite;
}
@keyframes blink-blank { 50% { opacity: .45; } }

.q-sub {
  text-align: center;
  color: var(--ink-mute);
  font-size: .92rem;
  margin-top: 10px;
  line-height: 1.45;
}
.q-sub b { color: var(--ink-soft); }

.q-feedback {
  text-align: center;
  min-height: 24px;
  margin-top: 10px;
  font-size: .95rem; font-weight: 700;
}
.q-feedback.good { color: var(--good-2); }
.q-feedback.bad  { color: #fc8181; }
.q-feedback.warn { color: var(--warn); }
.q-feedback.hint { color: var(--gold); }
.q-feedback b { font-family: 'Baloo 2'; font-size: 1.15em; }

/* --- reto de las tres formas: la pantalla cambia de color y salen tres casillas --- */

.mode-triple .q-zone {
  border-color: rgba(246,224,94,.75);
  background: rgba(74,54,4,.45);
  box-shadow: 0 0 34px rgba(246,224,94,.22) inset, 0 0 26px rgba(246,224,94,.14);
}
.mode-triple .arena-bg {
  background: radial-gradient(90% 70% at 50% 0%, rgba(246,224,94,.3), transparent 65%);
}
.mode-triple .timer i { background: linear-gradient(90deg, #f6e05e, #d69e2e); }
.mode-triple .answer-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246,224,94,.3); }
.mode-triple .q-main { color: var(--gold); }

.triple-slots { display: none; }
.triple-slots.on { display: block; margin-top: 14px; }

.triple-title {
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: 1.6px;
  color: var(--gold);
  margin-bottom: 9px;
  animation: boss-glow 1.8s ease-in-out infinite alternate;
}

/* se adapta solo a dos o tres casillas */
.triple-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 7px; }

.tslot {
  background: rgba(0,0,0,.4);
  border: 2px dashed rgba(246,224,94,.34);
  border-radius: var(--r-md);
  padding: 8px 4px;
  text-align: center;
  min-width: 0;
  transition: border-color .2s, background .2s, transform .2s;
}
.tslot-label {
  display: block;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.tslot-word {
  display: block;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1rem;
  color: var(--ink-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tslot.filled {
  border-style: solid;
  border-color: rgba(246,224,94,.7);
  background: rgba(246,224,94,.13);
}
.tslot.filled .tslot-word { color: var(--gold); }
.tslot.active {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px rgba(246,224,94,.18);
}

/* --- heroe --- */

.hero-zone { display: flex; align-items: center; gap: 10px; }
.hero-mini { width: 76px; flex: 0 0 auto; }
.hero-mini .hero-svg { animation: float-idle 3.4s ease-in-out infinite; }
.hero-bars { flex: 1; min-width: 0; }
.hero-name-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.hero-name-row b { font-family: 'Baloo 2'; font-size: 1rem; }
.hero-name-row span { font-size: .76rem; color: var(--ink-mute); font-weight: 700; }

.hint-btn {
  flex: 0 0 auto;
  background: rgba(246,224,94,.14);
  border: 1.5px solid rgba(246,224,94,.34);
  color: var(--gold);
  border-radius: var(--r-md);
  padding: 8px 10px;
  font-weight: 800; font-size: .85rem;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  line-height: 1;
}
.hint-btn span { font-size: .68rem; }
.hint-btn:active { transform: scale(.93); }

/* --- barra de respuesta --- */

.answer-bar { display: flex; gap: 9px; margin-top: 10px; }
.answer-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.97);
  border: 3px solid rgba(255,255,255,.35);
  border-radius: var(--r-lg);
  padding: 15px 18px;
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #1a202c;
  text-align: center;
  letter-spacing: .4px;
}
.answer-input::placeholder { color: #a0aec0; font-weight: 600; font-size: .95rem; letter-spacing: 0; }
.answer-input:focus { outline: none; border-color: var(--good-2); box-shadow: 0 0 0 4px rgba(104,211,145,.28); }
.answer-input:disabled { opacity: .65; }

.attack-btn {
  flex: 0 0 auto;
  width: 62px;
  border: none;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #f6ad55, #dd6b20 60%, #9c4221);
  box-shadow: 0 5px 0 #7b341e;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
}
.attack-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #7b341e; }

/* ===================================================================
   DUELOS
   =================================================================== */

.duel-fighters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin: 6px 0 2px;
}
.fighter {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.3);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  transition: border-color .2s, box-shadow .2s;
}
.fighter.f-right { flex-direction: row-reverse; text-align: right; }
.fighter.active-turn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246,224,94,.2); }
.f-art { width: 58px; flex: 0 0 auto; }
.f-art svg { width: 100%; height: auto; display: block; }
.f-info { flex: 1; min-width: 0; }
.f-info b { font-family: 'Baloo 2'; font-size: .92rem; display: block; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-hp { font-size: .7rem; color: var(--ink-mute); font-weight: 700; }
.f-info .bar { height: 10px; }

.vs-badge {
  font-family: 'Baloo 2'; font-weight: 800; font-size: 1.1rem;
  color: var(--bad);
  text-shadow: 0 0 12px rgba(245,101,101,.6);
  animation: vs-pulse 1.8s ease-in-out infinite;
}
@keyframes vs-pulse { 50% { transform: scale(1.14); } }

.turn-banner {
  text-align: center;
  font-family: 'Baloo 2'; font-weight: 700;
  color: var(--gold);
  margin-top: 8px;
  font-size: 1rem;
}

.handoff {
  position: fixed; inset: 0;
  background: rgba(6,22,39,.97);
  z-index: 70;
  display: none;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.handoff.on { display: grid; animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; } }
.handoff-card { text-align: center; max-width: 340px; }
.handoff-emoji { font-size: 4rem; margin-bottom: 10px; animation: palm 1.6s ease-in-out infinite; }
.handoff-card h2 { font-size: 2rem; margin-bottom: 8px; color: var(--gold); }
.handoff-card p { color: var(--ink-soft); margin: 0 0 22px; }

/* recap del bloque de 5 preguntas, antes de pasarle el celular al otro */
.recap-card { text-align: center; max-width: 380px; width: 100%; }
.recap-card h2 { font-size: 1.4rem; margin-bottom: 16px; color: var(--gold); }
.recap-fighters { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.recap-fighter {
  flex: 1; min-width: 0;
  background: rgba(0,0,0,.3);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 8px;
}
.recap-fighter .f-art { width: 44px; margin: 0 auto 6px; }
.recap-fighter b {
  display: block; font-family: 'Baloo 2'; font-size: .84rem;
  margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.recap-fighter .bar { height: 9px; margin-bottom: 4px; }
.recap-fighter .f-hp { font-size: .68rem; color: var(--ink-mute); font-weight: 700; }
.recap-stats { color: var(--ink-soft); font-size: .9rem; margin: 0 0 22px; }
.recap-stats b { color: var(--ink); }

/* ===================================================================
   RESULTADO
   =================================================================== */

.result {
  min-height: calc(var(--vh,1vh) * 100);
  display: grid; place-items: center;
  padding: 24px 16px calc(24px + var(--safe-b));
}
.result-card {
  width: 100%;
  background: rgba(0,0,0,.4);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.result.win .result-card { border-color: rgba(104,211,145,.5); box-shadow: 0 0 46px rgba(72,187,120,.22); }
.result.lose .result-card { border-color: rgba(245,101,101,.45); }

.result-emoji { font-size: 3.6rem; animation: pop-in .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop-in { 0% { transform: scale(0) rotate(-25deg); } 100% { transform: none; } }
.result-card h2 { font-size: 1.9rem; margin: 6px 0 6px; }
.result-sub { color: var(--ink-soft); margin: 0 0 16px; font-size: .95rem; line-height: 1.5; }
.result-stars { font-size: 2.4rem; letter-spacing: 6px; margin-bottom: 16px; }

.result-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 18px;
}
.result-stats div {
  background: rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  padding: 10px 4px;
}
.result-stats b { display: block; font-family: 'Baloo 2'; font-size: 1.3rem; }
.result-stats span { font-size: .66rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .4px; }

.review {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 18px;
  text-align: left;
}
.review h4 { font-size: .95rem; margin-bottom: 8px; color: var(--warn); }
.review-row { font-size: .84rem; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.07); }
.review-row:first-of-type { border-top: none; }
.review-row b { color: var(--gold); }
.review-row em { display: block; color: var(--ink-mute); font-style: normal; font-size: .74rem; }

.result-actions { display: grid; gap: 10px; }

/* ===================================================================
   PROGRESO
   =================================================================== */

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.stat-box {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
}
.stat-box b { display: block; font-family: 'Baloo 2'; font-size: 1.9rem; color: var(--gold); }
.stat-box span { font-size: .75rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .4px; }

.prog-islands { display: grid; gap: 6px; }
.prog-isl {
  display: grid; grid-template-columns: 30px 1fr auto;
  align-items: center; gap: 8px;
  background: var(--card);
  border-left: 3px solid var(--c1);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  font-size: .88rem;
}
.prog-isl.ok { background: var(--card-2); background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 18%, transparent), var(--card)); }
.pi-emoji { font-size: 1.15rem; }
.pi-name { font-weight: 700; }

.tough-list { display: grid; gap: 6px; }
.tough {
  background: rgba(245,101,101,.1);
  border: 1px solid rgba(245,101,101,.24);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  font-size: .85rem;
  position: relative;
}
.tough b { color: var(--gold); font-size: 1rem; }
.tough em { display: block; color: var(--ink-mute); font-style: normal; font-size: .74rem; }
.tough-fails { position: absolute; right: 10px; top: 9px; color: #fc8181; font-weight: 800; font-size: .78rem; }

.danger-zone { margin-top: 30px; text-align: center; }

/* ===================================================================
   EFECTOS FLOTANTES / TOASTS / SACUDIDAS
   =================================================================== */

.float-num {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  text-shadow: 0 3px 8px rgba(0,0,0,.65);
  animation: float-up 1.3s cubic-bezier(.2,.7,.3,1) forwards;
  white-space: nowrap;
}
.float-dmg  { color: #fff; }
.float-crit { color: var(--gold); font-size: 2.5rem; }
.float-heal { color: var(--good-2); }
.float-hurt { color: #fc8181; }
.float-combo { color: var(--gold); font-size: 1.4rem; }
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  22% { opacity: 1; transform: translate(-50%, -70%) scale(1.18); }
  100% { opacity: 0; transform: translate(-50%, -190%) scale(1); }
}

.toast {
  position: fixed;
  left: 50%; bottom: calc(24px + var(--safe-b));
  transform: translate(-50%, 24px);
  background: rgba(10,26,44,.97);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700; font-size: .9rem;
  z-index: 90;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow);
  max-width: 90vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast-good { border-color: rgba(104,211,145,.55); color: var(--good-2); }
.toast-bad  { border-color: rgba(245,101,101,.55); color: #fc8181; }

.shake-sm { animation: shake .32s ease; }
.shake-md { animation: shake .42s ease; }
.shake-lg { animation: shake-hard .5s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
@keyframes shake-hard {
  0%,100% { transform: translate(0,0) rotate(0); }
  15% { transform: translate(-11px, 4px) rotate(-2.5deg); }
  30% { transform: translate(10px, -4px) rotate(2.5deg); }
  45% { transform: translate(-8px, 3px) rotate(-1.6deg); }
  60% { transform: translate(7px, -2px) rotate(1.6deg); }
  80% { transform: translate(-3px, 1px) rotate(-.6deg); }
}

/* ===================================================================
   PANTALLAS GRANDES
   =================================================================== */

@media (min-width: 620px) {
  .app { max-width: 620px; }
  .sticky-cta { max-width: 620px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .island-grid { grid-template-columns: repeat(2, 1fr); }
  .enemy-art { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* --- isla final --- */

.island-card.final-island {
  border-width: 3px;
  border-color: rgba(229,62,62,.55);
  box-shadow: 0 0 24px rgba(229,62,62,.18);
}
.island-card.final-island .isl-num { color: #fc8181; }

.abyss-rules { margin-bottom: 96px; }
.abyss-rule {
  display: flex; align-items: center; gap: 9px;
  background: var(--card);
  border-left: 3px solid var(--c1);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  margin-bottom: 5px;
  font-size: .86rem;
}
.abyss-rule b { font-family: 'Baloo 2'; }
.abyss-rule em { font-style: normal; color: var(--ink-mute); margin-left: auto; font-size: .78rem; text-align: right; }

/* ===================================================================
   AJUSTES, PANEL DE ERROR Y PANTALLAS CORTAS (teclado abierto)
   =================================================================== */

/* --- interruptores de ajustes --- */

.switch-row {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  text-align: left;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.switch-row > div { flex: 1; min-width: 0; }
.switch-row b { font-family: 'Baloo 2'; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.switch-row p { margin: 0; font-size: .84rem; color: var(--ink-mute); line-height: 1.45; }
.switch-row.on { border-color: var(--good-2); background: linear-gradient(120deg, rgba(104,211,145,.14), var(--card)); }

.switch {
  flex: 0 0 auto;
  width: 52px; height: 30px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 2px solid var(--line);
  position: relative;
  transition: background .2s, border-color .2s;
}
.switch i {
  position: absolute; top: 2px; left: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink-mute);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.3), background .2s;
}
.switch-row.on .switch { background: rgba(72,187,120,.5); border-color: var(--good-2); }
.switch-row.on .switch i { transform: translateX(22px); background: #fff; }

.opt-note { margin-top: 20px; color: var(--ink-mute); font-size: .82rem; text-align: center; }
.opt-note p { margin: 0; }

/* sin cronometro la barra de tiempo no se dibuja */
.no-timer .timer { display: none; }

/* --- panel que explica el error --- */

.error-panel {
  position: fixed; inset: 0;
  z-index: 80;
  background: rgba(6,22,39,.9);
  backdrop-filter: blur(7px);
  display: grid; place-items: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .25s ease;
  overflow-y: auto;
}
.error-panel.on { opacity: 1; }

.ep-card {
  width: 100%; max-width: 460px;
  background: linear-gradient(170deg, rgba(45,20,20,.97), rgba(10,26,44,.98));
  border: 2px solid rgba(245,101,101,.5);
  border-radius: var(--r-xl);
  padding: 20px 18px;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
}
.error-panel.on .ep-card { transform: none; }

.ep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ep-x { font-size: 1.6rem; }
.ep-head h3 { font-size: 1.45rem; }

.ep-compare { display: grid; gap: 8px; margin-bottom: 14px; }
.ep-compare > div {
  display: flex; align-items: baseline; gap: 10px;
  background: rgba(0,0,0,.32);
  border-radius: var(--r-sm);
  padding: 9px 12px;
}
.ep-compare span { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-mute); flex: 0 0 78px; }
.ep-compare b { font-family: 'Baloo 2'; word-break: break-word; }
/* lo que escribiste se muestra en chico y apagado, y la forma correcta grande:
   lo que se tiene que quedar en la memoria es la buena, no la equivocada */
.bad-text { color: #fc8181; font-size: .95rem; opacity: .75; }
.bad-text s { text-decoration-thickness: 2px; }
.good-text { color: var(--good-2); font-size: 1.45rem; }

.ep-forms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin-bottom: 6px;
}
.ep-forms > div {
  background: rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  padding: 9px 4px;
  text-align: center;
  min-width: 0;
}
.ep-forms span { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-mute); margin-bottom: 3px; }
.ep-forms b { font-family: 'Baloo 2'; font-size: 1rem; color: var(--gold); overflow-wrap: anywhere; }

.ep-mean { text-align: center; color: var(--ink-soft); font-size: .88rem; margin: 0 0 14px; }

.ep-rule {
  background: var(--card);
  border-left: 4px solid var(--c1);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.ep-rule b { display: block; font-family: 'Baloo 2'; font-size: .98rem; margin-bottom: 3px; }
.ep-rule span { font-size: .82rem; color: var(--ink-mute); }

.ex-box {
  background: rgba(99,179,237,.1);
  border: 1px solid rgba(99,179,237,.28);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  margin-bottom: 18px;
}
.ex-en { margin: 0 0 4px; font-size: .95rem; line-height: 1.45; }
.ex-en b { color: var(--gold); }
.ex-es { margin: 0; font-size: .8rem; color: var(--ink-mute); }

/* --- pantallas bajitas: con el teclado abierto queda poco alto ---
   Sin esto el monstruo y la pregunta no caben y la pantalla se vuelve
   scrollable justo mientras escribes. */

@media (max-height: 620px) {
  .enemy-art { height: 104px; }
  .enemy-art svg { max-height: 104px; width: auto; }
  .q-zone { min-height: 110px; margin: 8px 0; padding: 12px; }
  .hero-mini { width: 54px; }
  .hero-mini svg { max-height: 68px; width: auto; }
  .answer-input { padding: 12px 16px; font-size: 1.15rem; }
  .attack-btn { width: 54px; font-size: 1.35rem; }
  .q-main { font-size: clamp(1.6rem, 10vw, 2.4rem); }
  .q-main.is-sentence { font-size: clamp(1.05rem, 4.8vw, 1.35rem); }
  .triple-row { gap: 5px; }
  .tslot { padding: 6px 3px; }
}

@media (max-height: 470px) {
  .enemy-zone { display: none; }
  .q-zone { min-height: 90px; }
}

/* ===================================================================
   RAMAS DE LA AVENTURA (contrarreloj / tiempo ilimitado)
   =================================================================== */

.branch-list { display: grid; gap: 14px; }

.branch {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: var(--card);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 26%, transparent), var(--card));
  border: 2px solid var(--line);
  border-left: 6px solid var(--c1);
  border-radius: var(--r-lg);
  padding: 18px 15px;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .2s ease, border-color .2s;
}
.branch:active { transform: scale(.98); }
.branch-emoji { font-size: 2.6rem; text-align: center; }
.branch-body h3 { font-size: 1.3rem; margin-bottom: 5px; }
.branch-body p { margin: 0 0 8px; font-size: .87rem; color: var(--ink-soft); line-height: 1.45; }
.branch-tag {
  display: inline-block;
  background: rgba(0,0,0,.32);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: .7rem; font-weight: 800;
  padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .4px;
}

/* etiqueta que recuerda en que rama vas */
.branch-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px;
  padding: 7px 14px;
  margin: 0 0 12px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.branch-chip.timed { border-color: rgba(246,173,85,.5); color: #f6ad55; background: rgba(246,173,85,.12); }
.branch-chip.calm  { border-color: rgba(104,211,145,.5); color: var(--good-2); background: rgba(104,211,145,.12); }
.branch-chip span {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-mute);
  border-left: 1px solid var(--line);
  padding-left: 8px;
}
.branch-chip.small { cursor: default; font-size: .8rem; padding: 5px 12px; }

@media (min-width: 620px) {
  .branch-list { grid-template-columns: repeat(2, 1fr); }
  .branch { grid-template-columns: 1fr; text-align: center; }
}

/* ===================================================================
   TRADUCCION A PETICION
   La oracion se razona primero en ingles; la traduccion solo si se pide.
   =================================================================== */

.q-translate { display: none; margin-top: 10px; text-align: center; }
.q-translate.on { display: block; }

.translate-btn {
  background: rgba(255,255,255,.07);
  border: 1.5px dashed var(--line);
  color: var(--ink-mute);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.translate-btn:active { transform: scale(.95); }
.translate-btn:hover { color: var(--ink-soft); border-color: rgba(255,255,255,.3); }

.translate-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.45;
  animation: q-in .3s ease;
}

/* nota del panel de error cuando escribiste otro verbo que si existe */
.ep-note {
  background: rgba(246,224,94,.1);
  border: 1px solid rgba(246,224,94,.3);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ep-note b { color: var(--gold); }

/* ===================================================================
   AVISO DE VERBOS ALTERNATIVOS (oracion que aceptaba mas de uno)
   =================================================================== */

.alt-panel .alt-card {
  background: linear-gradient(170deg, rgba(20,45,35,.97), rgba(10,26,44,.98));
  border-color: rgba(104,211,145,.5);
}
.alt-intro {
  margin: 0 0 10px;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.alt-list { display: grid; gap: 7px; margin-bottom: 14px; }
.alt-row {
  display: flex; align-items: baseline; gap: 10px;
  background: rgba(255,255,255,.07);
  border-radius: var(--r-sm);
  padding: 9px 12px;
}
.alt-row b { font-family: 'Baloo 2'; font-size: 1.15rem; color: var(--gold); }
.alt-row span { font-size: .8rem; color: var(--ink-mute); }
.alt-row em { font-style: normal; color: var(--ink-soft); font-weight: 700; }
