/* Reto Patronus – estilos aislados del tema (todo cuelga de .rp-app / .rp-ranking).
   Línea gráfica de las piezas de campaña: biblioteca nocturna, destellos dorados,
   naranja Yoleo, títulos manuscritos (Allison) y textos en Montserrat. */

.rp-app, .rp-ranking {
  --rp-ink-0: #0f0e13;      /* fondo */
  --rp-ink-1: #17151d;      /* superficies */
  --rp-paper: #f2eee8;      /* texto principal, blanco cálido de las piezas */
  --rp-muted: #b4ada5;
  --rp-faint: #7d766f;
  --rp-orange: #ea5b0c;     /* naranja Yoleo */
  --rp-orange-hi: #ff7a2e;  /* naranja para texto sobre oscuro */
  --rp-gold: #f5c76a;       /* destellos */
  --rp-blood: #c8352b;      /* tiempo agotándose */
  --rp-line: rgba(245, 199, 106, 0.16);
  --rp-card: rgba(23, 21, 29, 0.72);
  --rp-script: "Allison", "Brush Script MT", cursive;
  --rp-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --rp-dread: 0;
  --rp-bg-img: none;
}

.rp-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  width: 100%;
  min-height: 680px;
  margin: 0 auto;
  border-radius: 22px;
  color: var(--rp-paper);
  font-family: var(--rp-sans);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  background: var(--rp-ink-0);
  -webkit-font-smoothing: antialiased;
}

.rp-app *, .rp-app *::before, .rp-app *::after { box-sizing: border-box; }
.rp-app :where(h1, h2, p, ul, ol, li) { margin: 0; padding: 0; color: inherit; background: none; border: 0; text-transform: none; letter-spacing: normal; }
.rp-app :where(ul) { list-style: none; }
.rp-app :where(a) { color: var(--rp-orange-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rp-app :where(a):hover { color: #fff; }
.rp-app :where(button, input, select) { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; box-shadow: none; }
.rp-app em { font-style: normal; }

/* Fondo: la escena del dementor de las piezas, más presente en la portada. */
.rp-app::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 520px; z-index: -2; pointer-events: none;
  background: var(--rp-bg-img) center top / cover no-repeat;
  opacity: .32;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  transition: opacity .5s ease, height .5s ease;
}
.rp-app[data-screen="intro"]::before { opacity: .78; height: 560px; }
.rp-app[data-screen="question"]::before { opacity: .14; }

/* Niebla y viñeta: se cierran a medida que se agota el tiempo (--rp-dread). */
.rp-fog { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.rp-fog span {
  position: absolute; left: -30%; right: -30%; height: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(150, 160, 185, 0.12), transparent 70%);
  filter: blur(20px);
  opacity: calc(0.5 + var(--rp-dread) * 0.5);
  animation: rp-drift 24s ease-in-out infinite alternate;
}
.rp-fog span:nth-child(1) { bottom: -15%; }
.rp-fog span:nth-child(2) { bottom: -5%; animation-duration: 32s; animation-delay: -8s; transform: scaleX(-1); }
.rp-fog span:nth-child(3) { top: -20%; opacity: calc(0.15 + var(--rp-dread) * 0.85); animation-duration: 28s; }
.rp-app::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 45%, transparent 35%, rgba(4, 3, 6, 0.95) 100%);
  opacity: calc(var(--rp-dread) * 0.9);
}
@keyframes rp-drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

/* Destellos dorados */
.rp-app[data-screen="question"] .rp-sparkles, .rp-app[data-screen="form"] .rp-sparkles { display: none; }
.rp-sparkles { position: absolute; inset: 0 0 auto 0; height: 560px; z-index: -1; pointer-events: none; }
.rp-sparkles i {
  position: absolute; width: 10px; height: 10px;
  background: radial-gradient(circle, #fff6dc 0%, var(--rp-gold) 35%, transparent 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px rgba(245, 199, 106, .9));
  animation: rp-twinkle 3.2s ease-in-out infinite;
}
.rp-sparkles i:nth-child(1) { left: 78%; top: 6%; width: 18px; height: 18px; }
.rp-sparkles i:nth-child(2) { left: 88%; top: 15%; animation-delay: -.6s; }
.rp-sparkles i:nth-child(3) { left: 70%; top: 22%; width: 7px; height: 7px; animation-delay: -1.2s; }
.rp-sparkles i:nth-child(4) { left: 12%; top: 34%; width: 14px; height: 14px; animation-delay: -1.9s; }
.rp-sparkles i:nth-child(5) { left: 22%; top: 42%; width: 7px; height: 7px; animation-delay: -.3s; }
.rp-sparkles i:nth-child(6) { left: 8%; top: 48%; animation-delay: -2.4s; }
.rp-sparkles i:nth-child(7) { left: 92%; top: 40%; width: 8px; height: 8px; animation-delay: -1.5s; }
.rp-sparkles i:nth-child(8) { left: 60%; top: 9%; width: 6px; height: 6px; animation-delay: -2.8s; }
.rp-sparkles i:nth-child(9) { left: 30%; top: 12%; width: 9px; height: 9px; animation-delay: -.9s; }
.rp-sparkles i:nth-child(10) { left: 84%; top: 58%; width: 12px; height: 12px; animation-delay: -2.1s; }
@keyframes rp-twinkle { 0%, 100% { opacity: .25; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }

/* Escena */
.rp-stage {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 26px 22px 36px;
  display: flex; flex-direction: column; gap: 18px;
  transition: opacity .35s ease, transform .35s ease;
}
.rp-stage.rp-enter { opacity: 0; transform: translateY(8px); transition: none; }

.rp-loading { text-align: center; color: var(--rp-muted); padding: 140px 0; font-family: var(--rp-script); font-size: 48px; line-height: 1; }

/* Logo */
.rp-logo { display: block; height: auto; margin: 0 auto; }
.rp-logo--hero { width: 150px; }
.rp-logo--small { width: 104px; }
.rp-logo-txt { text-align: center; font-weight: 700; font-size: 22px; }
.rp-logo-txt span { color: var(--rp-orange); }

/* Portada */
.rp-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 4px; min-height: 300px; justify-content: flex-start; }
.rp-hero__pre { margin-top: 42px; font-style: italic; font-weight: 300; font-size: 22px; color: var(--rp-paper); text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.rp-app .rp-title { font-family: var(--rp-script); font-weight: 400; line-height: .78; display: flex; flex-direction: column; align-items: center; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.rp-title__a { font-size: clamp(76px, 22vw, 108px); color: #fff; }
.rp-title__b { font-size: clamp(104px, 31vw, 150px); color: var(--rp-orange); margin-top: -6px; transform: rotate(-3deg); }

.rp-lead { font-size: 18px; font-weight: 300; font-style: italic; line-height: 1.45; color: var(--rp-paper); text-align: center; text-wrap: balance; }
.rp-lead em { font-family: var(--rp-script); font-style: normal; font-size: 1.9em; line-height: .5; color: var(--rp-orange-hi); }

.rp-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--rp-gold); font-weight: 600; text-align: center; }
.rp-app .rp-h2 { font-weight: 300; font-style: italic; font-size: clamp(24px, 6.4vw, 30px); line-height: 1.15; color: #fff; text-align: center; text-wrap: balance; }
.rp-app .rp-h2 span { display: block; font-family: var(--rp-script); font-style: normal; font-weight: 400; font-size: 2.1em; line-height: .9; color: var(--rp-orange-hi); }
.rp-sub { color: var(--rp-muted); text-align: center; }
.rp-sub b { color: var(--rp-paper); }
.rp-fine { font-size: 12.5px; color: var(--rp-faint); text-align: center; }
.rp-note { font-size: 14px; color: var(--rp-muted); padding: 12px 14px; border-left: 2px solid var(--rp-gold); background: rgba(245, 199, 106, .05); }
.rp-note--warn { color: var(--rp-orange-hi); border-color: var(--rp-orange); }

/* Resplandor dorado */
.rp-glow { position: relative; width: 150px; height: 150px; margin: 0 auto -8px; }
.rp-glow::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, #fffaf0 0%, #ffe3a8 28%, rgba(245, 199, 106, .45) 55%, rgba(234, 91, 12, 0) 72%);
  box-shadow: 0 0 70px 24px rgba(245, 170, 80, .35);
  animation: rp-breathe 3.4s ease-in-out infinite;
}
.rp-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 20% 30%, var(--rp-gold) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 20%, #fff2cc 0 2px, transparent 3px),
    radial-gradient(circle at 85% 75%, var(--rp-gold) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 15% 80%, #fff2cc 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 5%, var(--rp-gold) 0 1.5px, transparent 2.5px);
  animation: rp-spin 14s linear infinite;
}
.rp-glow--small { width: 96px; height: 96px; }
@keyframes rp-breathe { 50% { transform: scale(1.12); opacity: .85; } }
@keyframes rp-spin { to { transform: rotate(360deg); } }

/* Reglas */
.rp-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-rules li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--rp-line); border-radius: 14px; background: var(--rp-card); backdrop-filter: blur(6px); }
.rp-rules b { font-weight: 700; font-style: italic; font-size: 26px; line-height: 1; color: var(--rp-gold); }
.rp-rules span { font-size: 13px; color: var(--rp-muted); line-height: 1.35; }

.rp-prize { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(234, 91, 12, .22), rgba(234, 91, 12, .06)); border: 1px solid rgba(234, 91, 12, .45); font-size: 15px; line-height: 1.4; }
.rp-prize__k { flex: 0 0 auto; font-family: var(--rp-script); font-size: 46px; line-height: .8; color: var(--rp-orange-hi); }

/* Botones */
.rp-app .rp-btn {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px;
  padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--rp-orange); color: #fff;
  font-weight: 700; font-style: italic; font-size: 17px; text-decoration: none; text-align: center;
  box-shadow: 0 10px 30px -8px rgba(234, 91, 12, .7), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, opacity .2s;
}
.rp-app .rp-btn:hover { background: #f26a1d; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 36px -8px rgba(234, 91, 12, .85), 0 0 0 1px rgba(255, 255, 255, .18) inset; }
.rp-app .rp-btn:active { transform: translateY(1px); }
.rp-app .rp-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.rp-app .rp-btn--ghost { background: transparent; color: var(--rp-paper); box-shadow: 0 0 0 1px rgba(242, 238, 232, .3) inset; }
.rp-app .rp-btn--ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: 0 0 0 1px rgba(242, 238, 232, .6) inset; }
.rp-app .rp-link { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--rp-muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.rp-app .rp-link:hover { color: #fff; }
.rp-app :focus-visible { outline: 2px solid var(--rp-gold); outline-offset: 3px; }

/* Seguir en Instagram */
.rp-follow-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 1px solid rgba(234, 91, 12, .4); background: rgba(234, 91, 12, .07); }
.rp-follow-box.is-error { border-color: var(--rp-blood); background: rgba(200, 53, 43, .1); }
.rp-follow-box__t { font-weight: 700; font-size: 15px; color: #fff; }
.rp-follow-box__s { font-size: 13.5px; color: var(--rp-muted); margin-top: -6px; }
.rp-follow-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-app .rp-follow-btn {
  flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 14px;
  border-radius: 999px; background: #fff; color: #1a1420; font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .2s, color .2s;
}
.rp-app .rp-follow-btn:hover { background: #ffe9dc; color: #1a1420; }
.rp-follow-btn__do { font-weight: 700; color: var(--rp-orange); }
.rp-app .rp-follow-btn.is-done { background: rgba(255, 255, 255, .1); color: var(--rp-paper); }
.rp-follow-btn.is-done .rp-follow-btn__do { color: var(--rp-gold); }

/* Usuario de Instagram con @ fijo */
.rp-app .rp-at { position: relative; display: block; }
.rp-app .rp-at > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rp-orange-hi); font-weight: 700; pointer-events: none; }
.rp-app .rp-field .rp-at input { padding-left: 34px; }

/* Condiciones */
.rp-terms { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--rp-line); display: flex; flex-direction: column; gap: 12px; }
.rp-app .rp-terms__t { font-family: var(--rp-script); font-weight: 400; font-size: 52px; line-height: .8; color: var(--rp-orange-hi); text-align: center; }
.rp-terms ul { display: flex; flex-direction: column; gap: 10px; }
.rp-terms li { position: relative; padding-left: 22px; font-size: 13.5px; line-height: 1.5; color: var(--rp-muted); }
.rp-terms li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 9px; background: var(--rp-gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.rp-terms p { font-size: 13px; text-align: center; }

/* WhatsApp con indicativo */
.rp-app .rp-phone { font-weight: 400; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px; }
.rp-app .rp-field .rp-phone select { padding-right: 30px; font-size: 15px; }

/* Top 20 */
.rp-top { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--rp-line); display: flex; flex-direction: column; gap: 10px; }
.rp-app .rp-top__t { font-family: var(--rp-script); font-weight: 400; font-size: 56px; line-height: .8; color: #fff; text-align: center; }
.rp-app .rp-top__t span { color: var(--rp-orange-hi); }
.rp-top__s { font-size: 13.5px; color: var(--rp-muted); text-align: center; font-style: italic; font-weight: 300; }
.rp-app .rp-top__list { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--rp-line); border-radius: 16px; background: var(--rp-card); overflow: hidden; }
.rp-top__empty { padding: 18px 16px; text-align: center; font-size: 14px; color: var(--rp-muted); }
.rp-top__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: "pos who score" "pos who time"; align-items: center; gap: 0 10px; padding: 10px 14px; border-bottom: 1px solid rgba(242, 238, 232, .07); }
.rp-top__row:last-child { border-bottom: 0; }
.rp-top__row.is-podium { background: linear-gradient(90deg, rgba(234, 91, 12, .16), transparent 70%); }
.rp-top__pos { grid-area: pos; font-weight: 700; font-style: italic; font-size: 18px; color: var(--rp-faint); text-align: center; font-variant-numeric: tabular-nums; }
.rp-top__row.is-podium .rp-top__pos { color: var(--rp-orange-hi); font-size: 22px; }
.rp-top__who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.rp-top__who strong { font-weight: 600; font-size: 14.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-top__who small { font-size: 12px; color: var(--rp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-top__score { grid-area: score; font-weight: 700; font-style: italic; font-size: 18px; color: var(--rp-gold); text-align: right; font-variant-numeric: tabular-nums; }
.rp-top__score small { font-size: 12px; font-weight: 400; color: var(--rp-faint); }
.rp-top__time { grid-area: time; font-size: 11.5px; color: var(--rp-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* Formulario */
.rp-form { display: flex; flex-direction: column; gap: 14px; }
.rp-field { display: flex; flex-direction: column; gap: 6px; }
.rp-field > span { font-size: 13px; font-weight: 600; color: var(--rp-paper); }
.rp-app .rp-field input, .rp-app .rp-field select {
  -webkit-appearance: none; appearance: none; width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid rgba(242, 238, 232, .18); background: rgba(10, 9, 13, .75); color: var(--rp-paper); font-size: 16px;
}
.rp-app .rp-field select { background-image: linear-gradient(45deg, transparent 50%, var(--rp-muted) 50%), linear-gradient(135deg, var(--rp-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.rp-app .rp-field select option { color: #111; }
.rp-app .rp-field input::placeholder { color: var(--rp-faint); }
.rp-app .rp-field input:focus, .rp-app .rp-field select:focus { outline: none; border-color: var(--rp-orange); box-shadow: 0 0 0 3px rgba(234, 91, 12, .25); }
.rp-field.is-error input, .rp-field.is-error select { border-color: var(--rp-blood); }
.rp-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--rp-muted); cursor: pointer; line-height: 1.45; }
.rp-app .rp-check input { -webkit-appearance: none; appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1px solid rgba(242, 238, 232, .4); background: rgba(10, 9, 13, .75); cursor: pointer; display: grid; place-items: center; }
.rp-app .rp-check input:checked { background: var(--rp-orange); border-color: var(--rp-orange); }
.rp-app .rp-check input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.rp-check.is-error span { color: #ff8a80; }
.rp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rp-alert { padding: 12px 14px; border-radius: 12px; background: rgba(200, 53, 43, .14); border: 1px solid rgba(200, 53, 43, .5); color: #ffd6d2; font-size: 14px; }

/* Pregunta */
.rp-q-top { display: flex; justify-content: space-between; align-items: center; }
.rp-q-count { font-weight: 700; font-style: italic; font-size: 30px; color: #fff; line-height: 1; }
.rp-q-count small { font-size: 17px; font-weight: 400; color: var(--rp-faint); }
.rp-badge { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(242, 238, 232, .25); color: var(--rp-paper); }
.rp-badge--2 { color: var(--rp-gold); border-color: rgba(245, 199, 106, .5); }
.rp-badge--3 { color: #fff; background: var(--rp-orange); border-color: var(--rp-orange); }
.rp-progress { height: 3px; border-radius: 3px; background: rgba(242, 238, 232, .1); overflow: hidden; }
.rp-progress i { display: block; height: 100%; background: var(--rp-muted); transition: width .4s ease; }

.rp-timer { display: flex; align-items: center; gap: 12px; }
.rp-timer__bar { flex: 1; height: 10px; border-radius: 10px; background: rgba(245, 199, 106, .08); overflow: hidden; box-shadow: 0 0 0 1px var(--rp-line) inset; }
.rp-timer__bar i { display: block; height: 100%; width: 100%; transform-origin: left center; border-radius: 10px; background: linear-gradient(90deg, var(--rp-orange), var(--rp-gold)); box-shadow: 0 0 16px rgba(245, 170, 80, .7); }
.rp-timer__num { min-width: 2ch; text-align: right; font-weight: 700; font-style: italic; font-size: 30px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.rp-timer.is-low .rp-timer__bar i { background: linear-gradient(90deg, #8e1f1f, var(--rp-blood)); box-shadow: 0 0 16px rgba(200, 53, 43, .8); }
.rp-timer.is-low .rp-timer__num { color: #ff6b5e; animation: rp-pulse .5s ease-in-out infinite alternate; }
@keyframes rp-pulse { to { transform: scale(1.12); } }

.rp-q-book { font-family: var(--rp-script); font-size: 34px; line-height: .9; color: var(--rp-orange-hi); margin-top: 2px; }
.rp-app .rp-q-text { font-weight: 600; font-size: clamp(20px, 5.4vw, 24px); line-height: 1.3; color: #fff; text-wrap: pretty; }

.rp-options { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.rp-app .rp-opt {
  -webkit-appearance: none; appearance: none; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; min-height: 58px;
  border-radius: 14px; border: 1px solid rgba(242, 238, 232, .14); background: var(--rp-card); color: var(--rp-paper);
  text-align: left; font-size: 15.5px; line-height: 1.35;
  transition: border-color .15s, background .15s, transform .1s;
}
.rp-app .rp-opt:hover:not(:disabled) { border-color: rgba(245, 199, 106, .6); background: rgba(40, 33, 30, .8); }
.rp-app .rp-opt:active:not(:disabled) { transform: scale(.99); }
.rp-app .rp-opt:disabled { cursor: default; }
.rp-opt__l { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--rp-gold); border: 1px solid rgba(245, 199, 106, .45); }
.rp-app .rp-opt.is-picked { border-color: var(--rp-orange); background: rgba(234, 91, 12, .18); box-shadow: 0 0 24px -6px rgba(234, 91, 12, .7); }
.rp-opt.is-picked .rp-opt__l { background: var(--rp-orange); color: #fff; border-color: var(--rp-orange); }
.rp-s-question .rp-opt:disabled:not(.is-picked) { opacity: .45; }
.rp-s-question.is-timeout .rp-options { opacity: .35; }

/* Resultado */
.rp-result { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rp-result__pre { font-style: italic; font-weight: 300; font-size: 19px; color: var(--rp-paper); }
.rp-app .rp-patronus { font-family: var(--rp-script); font-weight: 400; font-size: clamp(96px, 30vw, 140px); line-height: .8; color: #fff; text-shadow: 0 0 34px rgba(255, 196, 110, .75); padding-top: 6px; }
.rp-tier { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--rp-orange-hi); font-weight: 700; }
.rp-tier--chispa .rp-glow::before { inset: 34%; box-shadow: 0 0 34px 8px rgba(245, 170, 80, .3); }
.rp-tier--niebla .rp-glow::before { inset: 28%; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 8px; }
.rp-stats div { padding: 14px 6px; border: 1px solid var(--rp-line); border-radius: 14px; background: var(--rp-card); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-stats b { font-weight: 700; font-style: italic; font-size: 24px; color: #fff; line-height: 1.1; }
.rp-stats small { font-size: 15px; font-weight: 400; color: var(--rp-faint); }
.rp-stats span { font-size: 12px; color: var(--rp-muted); }
.rp-rank { font-size: 15px; color: var(--rp-paper); }
.rp-rank b { color: var(--rp-gold); font-size: 18px; }
.rp-share { display: flex; flex-direction: column; gap: 10px; }
.rp-cta { padding: 20px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(245, 199, 106, .12), rgba(245, 199, 106, .02)); border: 1px solid var(--rp-line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--rp-muted); }
.rp-cta__title { font-weight: 300; font-style: italic; font-size: 22px; color: #fff; line-height: 1.2; }
.rp-cta__title span { font-family: var(--rp-script); font-style: normal; font-size: 2em; line-height: .5; color: var(--rp-orange-hi); }

.rp-toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--rp-paper); color: #1a1420; font-size: 14px; font-weight: 500; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: opacity .5s; z-index: 5; }
.rp-toast.is-out { opacity: 0; }

@media (min-width: 640px) {
  .rp-stage { padding: 40px 32px 48px; gap: 20px; }
  .rp-share { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-app *, .rp-app *::before, .rp-app *::after, .rp-fog span, .rp-sparkles i { animation: none !important; transition: none !important; }
}

/* Plantilla de pantalla completa */
body.rp-fullpage { margin: 0 !important; padding: 0 !important; background: #0f0e13 !important; }
body.rp-fullpage .rp-fullpage__main { min-height: 100vh; min-height: 100dvh; }
body.rp-fullpage .rp-app { border-radius: 0; min-height: 100vh; min-height: 100dvh; }

/* Ranking público */
.rp-ranking { font-family: var(--rp-sans); color: var(--rp-paper); background: var(--rp-ink-0); border-radius: 18px; padding: 10px; max-width: 640px; margin: 0 auto; }
.rp-ranking__empty { padding: 24px; text-align: center; color: var(--rp-muted); margin: 0; }
.rp-ranking .rp-ranking__list { list-style: none; margin: 0; padding: 0; }
.rp-ranking__row { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "pos who score" "pos who time"; align-items: center; gap: 0 12px; padding: 12px 10px; border-bottom: 1px solid var(--rp-line); margin: 0; }
.rp-ranking__row:last-child { border-bottom: 0; }
.rp-ranking__pos { grid-area: pos; font-weight: 700; font-style: italic; font-size: 26px; color: var(--rp-muted); text-align: center; }
.rp-ranking__row:nth-child(-n+3) .rp-ranking__pos { color: var(--rp-orange-hi); }
.rp-ranking__who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.rp-ranking__who strong { font-weight: 600; color: #fff; }
.rp-ranking__who small { color: var(--rp-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-ranking__score { grid-area: score; font-weight: 700; font-style: italic; font-size: 22px; color: var(--rp-gold); text-align: right; }
.rp-ranking__score small { font-size: 13px; color: var(--rp-faint); font-weight: 400; }
.rp-ranking__time { grid-area: time; font-size: 12px; color: var(--rp-muted); text-align: right; }
