/* La pregunta del adjunto por dentro con el aspecto de San Intento (ADR 0142).
   Va después de reto.css y san-intento.css. Solo cambia el aspecto: reto.js no cambia y la
   corrección sigue en el servidor. Viene del esbozo pregunta.html. */

.rt-body { background: radial-gradient(60% 40% at 0% 0%, var(--neon-soft), transparent 70%), var(--bg); background-attachment: fixed; color: var(--ink); }

/* Barra de arriba: «‹ Planta», la planta y el título */
.rt-top { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.rt-top-row, .rt-bar { max-width: 1120px; }
.rt-top-row { grid-template-columns: auto 1fr auto; gap: 16px; padding-inline: clamp(16px, 4vw, 40px); }
.rt-back { gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; }
.rt-back:hover { border-color: var(--neon-line); }
.rt-top-title { gap: 10px; font-weight: 700; font-size: 17px; }
.rt-bar { padding-inline: clamp(16px, 4vw, 40px); }
.rt-bar span.done { background: var(--neon); }
.rt-bar span.now { background: var(--ink-2); box-shadow: none; }
.rt-main { max-width: 760px; }

/* 1 · Presentación: Diana de pie y la ficha del caso (en ancho, a la izquierda) */
.q-adj { display: none; }
@media (min-width: 900px) {
  .rt-main:has(#rt-intro:not([hidden])) { max-width: 1120px; padding-inline: clamp(16px, 4vw, 40px); }
  #rt-intro { grid-template-columns: 260px minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px); align-items: end; }
  #rt-intro > :not(.q-adj) { grid-column: 2; }
  /* Arriba, a la altura de la ficha, y entera en pantalla (antes quedaba pegada abajo y cortada). */
  .q-adj { grid-column: 1; grid-row: 1 / span 8; align-self: start; position: sticky; top: 84px; display: grid; justify-items: center; align-content: start; margin: 0; }
  .q-adj img { width: 100%; max-height: min(560px, calc(100vh - 220px)); object-fit: contain; object-position: top; filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.35)); }
}
.q-bubble { position: relative; margin-bottom: 14px; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: var(--s1); border: 1px solid var(--neon-line); box-shadow: var(--shadow); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.q-bubble b { color: var(--ink); }
.q-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; background: var(--s1); border: solid var(--neon-line); border-width: 0 1px 1px 0; transform: translateX(-50%) rotate(45deg); }

.rt-ticket { gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: 32px; background: var(--s1); }
.rt-ticket::before, .rt-ticket::after, .rt-orb { display: none; }
.rt-live { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon-text); }
.rt-time { border: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.rt-mechanic { padding: 5px 12px; border-radius: 999px; background: var(--neon-soft); border: 1px solid var(--neon-line); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--neon-text); }
#rt-intro .rt-h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.rt-hook { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--ink-2); }
.rt-rules { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-rules li { display: inline-flex; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 13.5px; }
.rt-rules li > span:first-child { color: var(--neon-text); font-size: 12px; }

/* Botones principales: el pulsador grande del hospital */
.rt-dock { background: var(--bg); }
.rt-dock::before { display: none; }
.rt-dock .btn.primary, .rt-end-actions .btn.primary { min-height: 60px; border-radius: 20px; border: 0; background: var(--neon); color: var(--on-accent); font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); box-shadow: 0 6px 0 #0a7a4b; }
.rt-dock .btn.primary:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 0 0 #0a7a4b; }
.rt-dock .btn.primary:disabled { opacity: 0.45; box-shadow: none; }

/* 2 · Cada decisión: Diana pregunta */
.rt-question { grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.rt-question > :not(.rt-ask-face) { grid-column: 2; }
.rt-ask-face { grid-column: 1; grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--neon); }
.rt-qnum { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon-text); }
.rt-prompt { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.rt-option { border-radius: 20px; }
.rt-option[aria-pressed="true"] { border-color: var(--neon); background: var(--neon-soft); box-shadow: none; }
.rt-option[aria-pressed="true"] .rt-letter { background: var(--neon); color: var(--on-accent); border-color: var(--neon); }

/* 4 · Final: la idea clave la dice Diana */
.rt-key { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 24px; text-align: left; border-radius: 26px; background: var(--s1); border: 1px solid var(--neon-line); box-shadow: none; }
.rt-key-face { grid-row: 1 / span 2; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--neon); }
.rt-key-tag { position: static; transform: none; justify-self: start; padding: 0; background: none; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--neon-text); white-space: normal; }
.rt-key p { grid-column: 2; }
.rt-end-actions .btn[hidden] { display: none; }

@media (max-width: 560px) {
  .rt-top-title { font-size: 15px; }
  .rt-top-title .floor-tag { display: none; }
  .rt-question { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; }
  .rt-ask-face { width: 52px; height: 52px; }
  .rt-key { grid-template-columns: 52px minmax(0, 1fr); padding: 18px; }
  .rt-key-face { width: 52px; height: 52px; }
}
/* Los títulos reciben el foco al cambiar de pantalla (lectores de pantalla), sin recuadro visible */
.rt-main [tabindex="-1"]:focus { outline: none; }
