/* ============================================================
   Past Tense Drop — Master Hub Training
   HTML5 + CSS3 + JS vanilla · sin dependencias externas
   ============================================================ */

/* ---------- Fuentes de marca (Gotham) ---------- */
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("Fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables de marca ---------- */
:root {
  /* Paleta Master Hub Training */
  --navy-900: #0d1c36;
  --navy-800: #14284b;
  --navy-700: #1d3a68;
  --navy-600: #2b5490;
  --blue-500: #5aade0;
  --blue-400: #7cc2ee;
  --blue-100: #e7f2fb;
  --gray-700: #4a4c50;
  --gray-500: #808690;
  --gray-200: #e2e7ee;
  --gray-100: #eff3f8;
  --gray-50:  #f6f9fc;
  --white:    #ffffff;

  --green-500: #22b573;
  --green-300: #7ce0b4;
  --red-500:   #e0533d;
  --amber-400: #f5b73d;

  --bg: var(--gray-50);
  --text: var(--navy-800);
  --muted: var(--gray-500);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(20, 40, 75, 0.08);
  --shadow: 0 10px 30px rgba(20, 40, 75, 0.12);
  --shadow-lg: 0 22px 60px rgba(13, 28, 54, 0.35);

  --font: "Gotham", "Avenir Next", "Futura", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --t: 0.2s ease;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(1100px 520px at 105% -10%, var(--blue-100) 0%, transparent 62%),
    radial-gradient(900px 480px at -10% 5%, #e9f6ef 0%, transparent 58%),
    var(--bg);
}
button, input { font-family: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--navy-600); }

/* ---------- Header / Footer ---------- */
.app-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px 2px;
}
.brand-logo {
  height: 104px;
  width: auto;
  max-width: min(520px, 88vw);
  object-fit: contain;
}
.site-link {
  position: absolute;
  left: 14px;
  top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--navy-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.site-link:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.app-footer {
  text-align: center;
  padding: 14px 16px 22px;
  font-size: 0.8rem;
  color: var(--muted);
}
.app-footer a { text-decoration: none; font-weight: 700; }

/* ---------- Layout principal ---------- */
.app-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 16px 10px;
  display: flex;
}
.game-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* ============================================================
   HUD
   ============================================================ */
.hud {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 12px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.hud-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.hud-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.hud-mult {
  font-size: 0.72rem;
  color: var(--green-500);
  margin-left: 3px;
  font-weight: 700;
}
.hud-lives { letter-spacing: 1px; font-size: 1.05rem; }
.hud-lives .heart-off { opacity: 0.22; filter: grayscale(1); }
.hud-value.is-bump { animation: bump 0.34s ease; }
@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.32); color: var(--green-500); }
  100% { transform: scale(1); }
}
.hud-value.is-hurt { animation: hurt 0.45s ease; }
@keyframes hurt {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); color: var(--red-500); }
  75% { transform: translateX(5px); color: var(--red-500); }
}

.hud-progress {
  position: absolute;
  left: 12px; right: 12px; bottom: 7px;
  height: 5px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.hud-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  transition: width 0.3s ease;
}

/* ============================================================
   ESCENARIO
   ============================================================ */
.stage {
  position: relative;
  flex: 1;
  min-height: 320px;
  height: clamp(320px, 52vh, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -20%, var(--navy-700) 0%, transparent 60%),
    linear-gradient(170deg, var(--navy-800) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  touch-action: manipulation;
}
.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 190, 235, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 190, 235, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
  pointer-events: none;
}
/* Zona de peligro (fondo) */
.stage-danger {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(224, 83, 61, 0.30), transparent);
  border-bottom: 3px solid rgba(224, 83, 61, 0.55);
  pointer-events: none;
  transition: opacity var(--t);
}
.stage.is-alert .stage-danger { animation: dangerPulse 0.9s ease-in-out infinite; }
@keyframes dangerPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.layer { position: absolute; inset: 0; pointer-events: none; }
.layer--fx { z-index: 3; }

/* ---------- Tarjetas de verbo ---------- */
.verb {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-100) 100%);
  color: var(--navy-800);
  font-size: clamp(1rem, 3.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.32),
    inset 0 -3px 0 rgba(20, 40, 75, 0.12),
    0 0 0 2px rgba(122, 190, 235, 0.45);
  will-change: transform;
}
.verb--irregular {
  background: linear-gradient(180deg, #fff6e2 0%, #ffe6b0 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.32),
    inset 0 -3px 0 rgba(120, 80, 10, 0.14),
    0 0 0 2px rgba(245, 183, 61, 0.55);
}
.verb::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
}
/* Aviso cuando se acerca al fondo */
.verb.is-warning {
  animation: verbWarn 0.6s ease-in-out infinite;
}
@keyframes verbWarn {
  0%, 100% { box-shadow: 0 8px 20px rgba(0,0,0,0.32), 0 0 0 2px rgba(224, 83, 61, 0.75); }
  50%      { box-shadow: 0 8px 26px rgba(224,83,61,0.5), 0 0 0 5px rgba(224, 83, 61, 0.35); }
}
/* Acierto */
.verb.is-hit {
  animation: verbHit 0.36s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
  background: linear-gradient(180deg, #d9fbec 0%, var(--green-300) 100%);
  color: #0d5b3c;
}
@keyframes verbHit {
  0%   { transform: var(--pos) scale(1);   opacity: 1; }
  35%  { transform: var(--pos) scale(1.28); opacity: 1; }
  100% { transform: var(--pos) scale(0.4); opacity: 0; }
}
/* Fallo (llega al fondo) */
.verb.is-lost {
  animation: verbLost 0.5s ease forwards;
  background: linear-gradient(180deg, #ffdcd5 0%, #f5a08e 100%);
  color: #7a1e0e;
}
@keyframes verbLost {
  0%   { transform: var(--pos) scale(1); opacity: 1; }
  100% { transform: var(--pos) translateY(26px) scale(0.7); opacity: 0; }
}

/* ---------- Efectos flotantes ---------- */
.float-text {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: clamp(0.95rem, 3vw, 1.25rem);
  color: var(--green-300);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  animation: floatUp 1s ease-out forwards;
}
.float-text--praise { color: var(--blue-400); font-size: clamp(0.8rem, 2.6vw, 1rem); }
@keyframes floatUp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  20%  { opacity: 1; transform: translate(-50%, -70%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(1); }
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: particleFly 0.62s ease-out forwards;
}
@keyframes particleFly {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); }
}

/* Destello global de acierto */
.stage.is-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(124, 224, 180, 0.28), transparent 65%);
  animation: flash 0.36s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* Sacudida al perder vida */
.stage.is-shake { animation: stageShake 0.4s ease; }
@keyframes stageShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  45% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

/* ---------- Banner de nivel ---------- */
.level-banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  font-size: clamp(2rem, 11vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  text-shadow: 0 0 28px rgba(90, 173, 224, 0.9), 0 6px 24px rgba(0, 0, 0, 0.5);
}
.level-banner.is-show { animation: levelPop 1.5s ease forwards; }
@keyframes levelPop {
  0%   { opacity: 0; transform: scale(0.6); }
  18%  { opacity: 1; transform: scale(1.08); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* ---------- Toast de verbo perdido ---------- */
.miss-toast {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%) translateY(14px);
  z-index: 4;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(224, 83, 61, 0.95);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.miss-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   OVERLAYS (inicio / pausa / game over)
   ============================================================ */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 22, 44, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.overlay.is-active { display: flex; animation: fadeIn 0.28s ease; }
/* El Game Over ocupa toda la ventana para que quepan estadísticas y práctica */
.overlay--fixed {
  position: fixed;
  z-index: 50;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.overlay-card {
  width: 100%;
  max-width: 430px;
  margin: auto;
  padding: 22px 22px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cardIn 0.34s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.overlay-card--sm { max-width: 340px; }
.overlay-card--wide { max-width: 520px; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 6px;
}
.game-title {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.game-title span { color: var(--blue-500); }
.game-tagline {
  margin-top: 8px;
  color: var(--gray-700);
  font-size: 0.94rem;
}
.overlay-title {
  font-size: clamp(1.5rem, 6vw, 2rem);
  color: var(--navy-800);
}
.overlay-title--over { color: var(--red-500); letter-spacing: 0.04em; text-transform: uppercase; }

.hint { margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
kbd {
  font-family: inherit;
  font-size: 0.76em;
  font-weight: 700;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--navy-700);
}

/* Opciones */
.option-group { margin-top: 16px; text-align: left; }
.option-legend {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: 1 1 auto;
  min-width: 84px;
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t);
}
.chip:hover { border-color: var(--blue-400); color: var(--navy-700); }
.chip.is-selected {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* How to play */
.how-to {
  margin-top: 16px;
  text-align: left;
  border-top: 1px solid var(--gray-200);
  padding-top: 12px;
}
.how-to summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-700);
  list-style: none;
}
.how-to summary::-webkit-details-marker { display: none; }
.how-to summary::before { content: "＋ "; color: var(--blue-500); }
.how-to[open] summary::before { content: "－ "; }
.how-to ul { margin: 10px 0 0; padding-left: 20px; color: var(--gray-700); font-size: 0.85rem; }
.how-to li { margin-bottom: 5px; }

/* Game over */
.final-score { margin: 14px 0 2px; }
.final-score-value {
  display: block;
  font-size: clamp(2.6rem, 12vw, 3.6rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.final-score-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.record-note {
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-500);
  min-height: 1.2em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.stat {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 9px 5px;
}
.stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 2px; }

.practice {
  margin-top: 16px;
  text-align: left;
  background: var(--blue-100);
  border-radius: var(--radius);
  padding: 12px 14px;
  max-height: 190px;
  overflow-y: auto;
}
.practice-title { font-size: 0.9rem; color: var(--navy-800); margin-bottom: 8px; }
.practice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.practice-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--navy-700);
}
.practice-list b { font-weight: 700; }
.practice-list .arrow { color: var(--blue-500); font-weight: 700; }

.overlay-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(20, 40, 75, 0.32);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 40, 75, 0.4); }
.btn-xl { width: 100%; margin-top: 18px; padding: 14px 20px; font-size: 1.02rem; }

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--navy-700); }
.overlay-card .btn-ghost { margin-top: 8px; width: 100%; }

/* Barra de respuesta */
.answer-bar { display: flex; gap: 8px; }
.answer-input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.answer-input::placeholder { color: var(--gray-500); font-weight: 400; font-size: 0.94rem; }
.answer-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(90, 173, 224, 0.22);
}
.answer-input:disabled { background: var(--gray-100); }
.answer-input.is-wrong { animation: shake 0.4s ease; border-color: var(--red-500); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  30% { transform: translateX(9px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(6px); }
  80% { transform: translateX(-3px); }
}
.answer-input.is-right { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(34, 181, 115, 0.22); }

.btn-send {
  flex: 0 0 auto;
  width: 56px;
  font-size: 1.3rem;
  background: linear-gradient(180deg, var(--blue-500), #3f97cd);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(90, 173, 224, 0.42);
}

/* Controles */
.controls { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn-ctrl {
  padding: 9px 16px;
  font-size: 0.84rem;
  background: var(--white);
  color: var(--navy-700);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.btn-ctrl:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ctrl[aria-pressed="false"] { color: var(--gray-500); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  .brand-logo { height: 78px; }
  .site-link { left: 8px; top: 8px; font-size: 0.76rem; padding: 6px 11px; }
  .app-main { padding: 4px 10px 8px; }
  .stage { height: clamp(300px, 48vh, 460px); border-radius: var(--radius); }
  .verb { padding: 8px 15px; }
}

@media (max-width: 520px) {
  .hud { grid-template-columns: repeat(4, 1fr); padding: 8px 10px 13px; gap: 4px; }
  .hud-item--best { display: none; }
  .hud-value { font-size: 1.05rem; }
  .hud-label { font-size: 0.56rem; letter-spacing: 0.1em; }
  .answer-input { padding: 13px 16px; font-size: 1rem; }
  .btn-send { width: 50px; }
  .btn-ctrl { padding: 8px 12px; font-size: 0.78rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .overlay-card { padding: 18px 16px 20px; }
  .app-footer { padding: 10px 16px 16px; font-size: 0.72rem; }
}

/* Pantallas bajas / teclado virtual abierto en móvil */
@media (max-height: 620px) {
  .app-header { padding: 6px 16px 0; }
  .brand-logo { height: 56px; }
  .stage { height: clamp(230px, 42vh, 380px); min-height: 230px; }
  .app-footer { display: none; }
  .how-to { display: none; }
}
@media (max-height: 470px) {
  .app-header { display: none; }
  .hud { padding: 6px 10px 12px; }
  .stage { min-height: 190px; height: 44vh; }
  .controls { display: none; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
