/* =============================================================================
   huevo.css — A-HUEVO (ORDEN-HUEVO-CONFIANZA-1): «Instalador de Confianza 95» + «Turista Quest». Solo la carga
   page-templates/huevo-confianza.php. Un escritorio de los 90 en el cuerpo de la página (header y pie del sitio,
   normales) con una sola ventana que cambia de acto.
   UN SOLO ASPECTO, igual de noche y de día (excepción declarada, como el mapa retro): por eso los colores son
   propios y fijos, no tokens del tema. Todo va dentro de .huevo para no tocar nada fuera.
   Las fuentes de píxel de la maqueta (Press Start 2P y VT323) no se cargan: van las monoespaciadas del sistema.
   ========================================================================== */
.huevo {
  --h-escritorio: #0d6e6a;   /* verde azulado de monitor viejo, tirando al turquesa de la casa */
  --h-gris: #c3c7cb; --h-luz: #ffffff; --h-sombra: #7d8286; --h-negro: #14171a;
  --h-titulo: #0a246a; --h-azul: #0b1fa8; --h-sol: #ffd400; --h-rosa: #ff3d8b; --h-tinta: #14171a; --h-papel: #f4f6f7;
  --h-sis: Tahoma, "MS Sans Serif", Verdana, Arial, sans-serif;
  --h-px: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --h-term: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  color-scheme: light;
  background: var(--h-escritorio); color: var(--h-tinta);
  font: 14px/1.45 var(--h-sis);
  min-height: calc(100svh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px 16px 28px;
}
.huevo *, .huevo *::before, .huevo *::after { box-sizing: border-box; }
.huevo [hidden] { display: none !important; }
.huevo button { font: inherit; }   /* sin color: inherit, que le ganaba a .huevo__azul y a .huevo__btn (A-HUEVO2) */
.huevo :focus-visible { outline: 2px dotted var(--h-sol); outline-offset: 2px; }
.huevo h1, .huevo h2, .huevo p { letter-spacing: normal; }

.huevo__ventana { width: min(100%, 640px); background: var(--h-gris); border: 2px solid; border-color: var(--h-luz) var(--h-negro) var(--h-negro) var(--h-luz); box-shadow: inset -2px -2px 0 var(--h-sombra), 6px 8px 0 rgba(0, 0, 0, .25); }
.huevo__vt { background: var(--h-titulo); color: #fff; padding: 5px 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.huevo__vt h1 { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.3 var(--h-sis); color: #fff; }
.huevo__vt i { flex: none; width: 18px; height: 16px; background: var(--h-gris); border: 2px solid; border-color: var(--h-luz) var(--h-negro) var(--h-negro) var(--h-luz); color: var(--h-tinta); font: 700 11px/11px var(--h-sis); text-align: center; font-style: normal; }
.huevo__vc { padding: 14px; }
.huevo__btn { background: var(--h-gris); border: 2px solid; border-color: var(--h-luz) var(--h-negro) var(--h-negro) var(--h-luz); box-shadow: inset -1px -1px 0 var(--h-sombra); padding: 8px 16px; min-height: 44px; min-width: 44px; cursor: pointer; font: 14px/1.2 var(--h-sis); color: var(--h-tinta); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; }
.huevo__btn:active { border-color: var(--h-negro) var(--h-luz) var(--h-luz) var(--h-negro); box-shadow: none; }
.huevo__btn:disabled { color: var(--h-sombra); cursor: default; }
.huevo__btn--sol { background: var(--h-sol); font-weight: 700; }
.huevo__pie { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--h-sombra); box-shadow: 0 -1px 0 var(--h-luz) inset; }
.huevo__saltar-p { margin: 0; }

/* acto 1 · instalador */
.huevo__inst { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
.huevo__arte { background: linear-gradient(#0a246a 0 34%, #1c6fd0 34% 58%, #17a8a0 58% 74%, #f1d78a 74%); border: 2px solid; border-color: var(--h-sombra) var(--h-luz) var(--h-luz) var(--h-sombra); min-height: 230px; position: relative; overflow: hidden; }
.huevo__arte::before { content: ""; position: absolute; left: 50%; top: 22%; width: 44px; height: 44px; margin-left: -22px; background: var(--h-sol); box-shadow: 0 0 0 6px rgba(255, 212, 0, .25); }
.huevo__arte::after { content: "100"; position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font: 700 16px var(--h-px); color: var(--h-rosa); text-shadow: 2px 2px 0 var(--h-tinta); }
.huevo__inst h2 { font: 700 16px/1.3 var(--h-sis); margin: 0 0 4px; color: var(--h-tinta); }
.huevo__inst p { margin: 0 0 10px; }
.huevo__pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; min-height: 176px; align-content: start; }
.huevo__pasos li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.huevo__pasos .c { width: 14px; height: 14px; margin-top: 3px; background: #fff; border: 2px solid; border-color: var(--h-sombra) var(--h-luz) var(--h-luz) var(--h-sombra); font: 700 11px/10px var(--h-sis); text-align: center; }
.huevo__pasos .r { font-weight: 700; white-space: nowrap; }
.huevo__pasos li[data-e="espera"] { color: #44494d; }
.huevo__barra { height: 22px; background: #fff; border: 2px solid; border-color: var(--h-sombra) var(--h-luz) var(--h-luz) var(--h-sombra); margin-top: 12px; padding: 2px; }
.huevo__barra b { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--h-titulo) 0 12px, transparent 12px 14px); }
.huevo__pct { font-size: 12px; margin-top: 4px; }

/* acto 2 · pantalla azul */
.huevo__azul { background: var(--h-azul); color: #fff; font: 20px/1.25 var(--h-term); padding: 28px 20px; min-height: 330px; display: flex; flex-direction: column; justify-content: center; gap: 14px; cursor: pointer; border: 0; width: 100%; text-align: left; }
.huevo__azul .huevo__et { align-self: center; background: #c9cdd1; color: var(--h-azul); padding: 0 10px; font-size: 22px; font-weight: 700; }
.huevo__par { animation: huevo-par 1s steps(2) infinite; }
@keyframes huevo-par { 50% { opacity: 0; } }

/* acto 3 · Turista Quest */
.huevo__hud { display: flex; justify-content: space-between; gap: 8px; background: var(--h-negro); color: #fff; font: 700 11px/1.6 var(--h-px); padding: 8px 10px; flex-wrap: wrap; }
.huevo__v { color: var(--h-rosa); } .huevo__p { color: var(--h-sol); }
.huevo__lienzo { position: relative; background: #000; line-height: 0; }
.huevo__lienzo canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: manipulation; cursor: pointer; }
.huevo__tapa { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(10, 14, 40, .82); color: #fff; text-align: center; padding: 14px; line-height: 1.5; }
.huevo__tapa p { margin: 0; max-width: 34ch; font: 16px/1.3 var(--h-term); }
.huevo__tapa h2 { font: 700 15px/1.5 var(--h-px); color: var(--h-sol); margin: 0; letter-spacing: .08em; }
.huevo__dice { background: var(--h-negro); color: #fff; font: 17px/1.25 var(--h-term); padding: 8px 10px; min-height: 64px; overflow: hidden; }   /* el alto lo fija huevo.js con el texto más largo del idioma */
.huevo__dice b { color: var(--h-sol); font-weight: 400; }

/* A-HUEVO2: tocar para brincar no selecciona ni pinta la pantalla de azul */
#huevo-a3 { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-touch-callout: none; }
#huevo-a3 * { -webkit-tap-highlight-color: transparent; }
/* el botón de brincar: arcade, redondo y rojo, de 88 px, con su borde oscuro debajo; se hunde al presionarlo (Marco, 5-oct 04:17) */
.huevo__mando { display: flex; justify-content: center; padding: 14px 0 16px; background: var(--h-negro); }
.huevo .huevo__brincar { width: 88px; height: 88px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #ff6b6b 0%, #e01b24 45%, #b5121b 100%); box-shadow: 0 8px 0 #6e0a10, 0 12px 18px rgba(0, 0, 0, .45), inset 0 -4px 8px rgba(0, 0, 0, .25); transform: translateY(0); transition: transform .06s, box-shadow .06s; }
.huevo .huevo__brincar:active, .huevo .huevo__brincar.is-abajo { transform: translateY(6px); box-shadow: 0 2px 0 #6e0a10, 0 4px 8px rgba(0, 0, 0, .45), inset 0 -2px 6px rgba(0, 0, 0, .3); }
.huevo .huevo__brincar:focus-visible { outline: 3px dotted var(--h-sol); outline-offset: 6px; }
.huevo .huevo__saltar { min-height: 44px; padding: 6px 12px; font-size: 13px; color: #3b4045; }

/* acto 4 · final */
.huevo__fin h2 { font: 700 14px/1.6 var(--h-px); margin: 0 0 10px; color: var(--h-tinta); text-wrap: balance; }
.huevo__fin #huevo-rango { margin: 0; }
.huevo__marc { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.huevo__marc div { background: #fff; border: 2px solid; border-color: var(--h-sombra) var(--h-luz) var(--h-luz) var(--h-sombra); padding: 8px; }
.huevo__marc dt { font-size: 12px; }
.huevo__marc dd { margin: 0; font: 700 17px/1.4 var(--h-px); font-variant-numeric: tabular-nums; }
.huevo__serio { background: var(--h-tinta); color: var(--h-papel); padding: 12px 14px; font-size: 15px; line-height: 1.45; margin: 12px 0; }
.huevo__serio b { color: var(--h-sol); }
.huevo__acc { display: flex; gap: 8px; flex-wrap: wrap; }
.huevo__acc .huevo__btn { flex: 1 1 180px; }
.huevo__otra { background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; }

@media (max-width: 520px) {
  .huevo__inst { grid-template-columns: minmax(0, 1fr); }
  .huevo__arte { min-height: 84px; }
  .huevo__arte::before { top: 14px; width: 30px; height: 30px; margin-left: -15px; }
  .huevo__azul { font-size: 18px; min-height: 300px; }
  /* el lienzo de 320 × 180 es bajo en teléfono: la tapa sin su título (ya está en la barra de la ventana) y la letra un poco menor */
  .huevo__tapa { gap: 8px; padding: 8px 10px; }
  .huevo__tapa h2 { display: none; }
  .huevo__tapa p { font-size: 14px; line-height: 1.25; }
}
@media (min-width: 1000px) { .huevo { min-height: calc(100svh - 67px); } }
@media (prefers-reduced-motion: reduce) { .huevo__par { animation: none; } }
