/* Estilo «casual»: colores vivos, formas gordas y redondeadas, botones que se hunden y mucho movimiento,
   en la línea de los juegos casuales de celular. Va encima de estilo.css y barrio.css y solo aplica con
   <html class="casual"> (js/config.js → estilo: 'casual'). Con estilo: 'plano' el juego vuelve al aspecto anterior. */
html.casual {
  --noche: #1B2559; --tinta: #22315A; --crema: #F4FAFF; --arena: #E6F0FC; --papel: #FFFFFF;
  --coral: #FF4D6A; --mango: #FFCB2E; --turquesa: #1FCFC0; --lila: #2F7BFF; --rosa: #FF5C93; --hoja: #22B455;
  --azul: #2F9BFF; --azul-o: #1F6FE5; --verde: #46D65A; --verde-o: #27A843; --naranja: #FF8A34; --naranja-o: #E06A12; --amarillo-o: #E59B00;
  --labio: #C5D6F2;
  --a: var(--mango);
  --titulo: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --texto: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fredoka', system-ui, sans-serif;
  --rebote: cubic-bezier(.2, 1.6, .4, 1);
}
html.casual body { background: #2B6FF0; font-size: 16.5px; font-weight: 500; }
html.casual h1, html.casual h2, html.casual h3 { font-weight: 400; letter-spacing: .01em; line-height: 1.02; }
html.casual .calc, html.casual .num { font-family: var(--texto); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Barra de arriba ---------- */
html.casual .marca { font-size: 19px; font-weight: 400; text-shadow: 0 2px 0 rgba(27, 37, 89, .45); }
html.casual .marca-estrella { font-family: var(--titulo); font-size: 18px; background: linear-gradient(180deg, #FFE066, #FFB300); box-shadow: 0 3px 0 var(--amarillo-o); }
html.casual .pildora { background: rgba(27, 37, 89, .5); font-weight: 600; font-size: 13px; padding: 7px 12px; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 0 rgba(27, 37, 89, .35); }
html.casual .pildora.fuerte { background: #fff; color: var(--noche); box-shadow: 0 3px 0 var(--labio); }

/* ---------- HUD de la escena ---------- */
html.casual .escena svg text { font-family: 'Lilita One', 'Fredoka', sans-serif; }
html.casual .escena svg text.estrella { font-family: 'Fredoka', sans-serif; font-weight: 600; }
html.casual .chip { background: rgba(27, 37, 89, .62); font-weight: 600; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 2px 0 rgba(27, 37, 89, .35); }
html.casual .chip .calc { color: #FFE066; }
html.casual .chip.deuda .calc { color: #FF9DB5; }
html.casual .medidor { height: 8px; border-radius: 4px; }

/* ---------- Panel: azul de juego, con tarjetas blancas encima ---------- */
html.casual .panel { background-color: #2F8CFF; background-image: linear-gradient(180deg, #5CC8FF 0%, #2F8CFF 62%, #2B6FF0 100%); background-size: auto; color: #fff; border-radius: 30px 30px 0 0; }
html.casual .sobre { color: #E3F4FF; letter-spacing: .1em; font-weight: 600; }
html.casual .titulo-xl { font-size: clamp(48px, 14vw, 80px); line-height: .92; color: #fff; text-shadow: 0 4px 0 var(--noche), 0 9px 0 rgba(27, 37, 89, .28); margin-bottom: 12px; }
html.casual .titulo-l { font-size: clamp(28px, 7.2vw, 38px); }
html.casual .panel > .entra > .titulo-l, html.casual .panel > div > .titulo-l { text-shadow: 0 3px 0 rgba(27, 37, 89, .45); }
html.casual .bajada { font-size: 17px; text-shadow: 0 1px 0 rgba(27, 37, 89, .25); }
html.casual .aviso { color: rgba(255, 255, 255, .88); font-size: 13px; }
html.casual .etq-idioma { color: rgba(255, 255, 255, .9); font-weight: 600; }
html.casual .mision { border: 0; border-radius: 20px; background: linear-gradient(180deg, #FFE066, #FFC21A); color: var(--noche); box-shadow: 0 6px 0 var(--amarillo-o); font-weight: 600; }
html.casual .mision span { color: #fff; text-shadow: 0 2px 0 var(--amarillo-o); font-size: 24px; vertical-align: -.1em; }
html.casual .banda { border-radius: 18px; background: var(--noche); box-shadow: 0 5px 0 rgba(27, 37, 89, .3); }

/* ---------- Botones gordos que se hunden ---------- */
html.casual .boton { border: 0; border-radius: 22px; color: #fff; font-family: var(--titulo); font-weight: 400; font-size: 25px; letter-spacing: .02em; padding: 14px 18px 15px; text-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  background-color: var(--verde); background-image: linear-gradient(180deg, rgba(255, 255, 255, .38) 0, rgba(255, 255, 255, .12) 48%, rgba(255, 255, 255, 0) 49%), linear-gradient(180deg, #6EE85A, #35C94B);
  box-shadow: 0 7px 0 var(--verde-o), 0 13px 16px rgba(20, 40, 120, .3); transition: transform .09s, box-shadow .09s; }
html.casual .boton:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--verde-o), 0 16px 18px rgba(20, 40, 120, .3); }
html.casual .boton:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--verde-o), 0 3px 6px rgba(20, 40, 120, .3); }
html.casual .boton.claro { color: var(--noche); text-shadow: none; background-color: #fff; background-image: linear-gradient(180deg, #FFFFFF, #E6F0FF); box-shadow: 0 7px 0 var(--labio), 0 13px 16px rgba(20, 40, 120, .26); }
html.casual .boton.claro:hover { box-shadow: 0 9px 0 var(--labio), 0 16px 18px rgba(20, 40, 120, .26); }
html.casual .boton.claro:active { box-shadow: 0 1px 0 var(--labio), 0 3px 6px rgba(20, 40, 120, .26); }
html.casual .boton.chico { font-size: 17px; border-radius: 16px; padding: 9px 14px 10px; box-shadow: 0 5px 0 var(--verde-o); }
html.casual .boton.chico.claro { box-shadow: 0 5px 0 var(--labio); }
html.casual .boton.doble { padding: 12px 18px 14px; gap: 0; }
html.casual .boton.doble small { font-family: var(--texto); font-weight: 600; font-size: 13.5px; letter-spacing: 0; text-shadow: none; opacity: .95; }
html.casual .boton[data-accion=nuevo-barrio] { background-color: var(--naranja); background-image: linear-gradient(180deg, rgba(255, 255, 255, .4) 0, rgba(255, 255, 255, .12) 48%, rgba(255, 255, 255, 0) 49%), linear-gradient(180deg, #FFC043, #FF8A1F); box-shadow: 0 7px 0 var(--naranja-o), 0 13px 16px rgba(20, 40, 120, .3); position: relative; overflow: hidden; }
html.casual .boton[data-accion=nuevo-barrio]::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .6) 50%, transparent 68%); transform: translateX(-130%); animation: brillo 2.8s ease-in-out infinite; pointer-events: none; }
@keyframes brillo { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
html.casual .boton[data-accion=nuevo-barrio]:active { box-shadow: 0 1px 0 var(--naranja-o); }
html.casual .boton[disabled] { filter: grayscale(.7); }
html.casual .lenguas { gap: 10px; }
html.casual .lengua { border: 0; border-radius: 16px; background: rgba(255, 255, 255, .22); color: #fff; font-family: var(--titulo); font-weight: 400; font-size: 19px; box-shadow: 0 4px 0 rgba(27, 37, 89, .25); padding: 9px 12px 10px; }
html.casual .lengua[aria-pressed=true] { background: #fff; color: var(--noche); box-shadow: 0 4px 0 var(--labio); transform: none; }
html.casual .pildora:focus-visible, html.casual .marca:focus-visible, html.casual .opcion:focus-visible, html.casual .boton:focus-visible, html.casual .num:focus-visible, html.casual .elige:focus-visible, html.casual .lengua:focus-visible, html.casual .b-accion:focus-visible, html.casual .b-chip:focus-visible { outline: 4px solid #FFE066; outline-offset: 3px; }

/* ---------- Cifras con fuente ---------- */
html.casual .num { background: #FFE680; border: 0; border-radius: 9px; padding: 0 6px; color: var(--noche); }
html.casual .num i { background: var(--noche); color: #fff; opacity: 1; font-weight: 600; }
html.casual .verdad .num { background: #FFE066; color: var(--noche); }

/* ---------- Crear personaje ---------- */
html.casual .campo > label, html.casual .campo > .etq { font-weight: 400; font-size: 21px; text-shadow: 0 2px 0 rgba(27, 37, 89, .35); }
html.casual .campo input[type=text], html.casual .campo textarea { border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 4px 0 #DCE7F7; font-weight: 600; font-size: 18px; color: var(--noche); }
html.casual .elige { border: 0; border-radius: 18px; background: #fff; color: var(--noche); box-shadow: 0 5px 0 var(--labio); font-weight: 600; transition: transform .12s var(--rebote), box-shadow .1s; }
html.casual .elige small { color: #5B6890; font-weight: 500; }
html.casual .elige[aria-pressed=true] { background: linear-gradient(180deg, #FFE066, #FFC21A); box-shadow: 0 5px 0 var(--amarillo-o); transform: scale(1.04); }
html.casual .elige.retrato { background: linear-gradient(180deg, #DDF3FF, #BFE4FF); padding-top: 5px; }
html.casual .elige.retrato[aria-pressed=true] { background: linear-gradient(180deg, #8BF29A, #46D65A); box-shadow: 0 5px 0 var(--verde-o); transform: scale(1.1) rotate(-3deg); }

/* ---------- Tarjetas de decisión ---------- */
html.casual .carta { border: 0; border-radius: 28px; background: #fff; color: var(--tinta); box-shadow: 0 8px 0 rgba(27, 37, 89, .22), 0 16px 22px rgba(20, 40, 120, .22); }
html.casual .carta-cabeza { background: linear-gradient(180deg, #4FA8FF, #2F7BFF); color: #fff; padding: 15px 16px; }
html.casual .carta-cabeza h2 { text-shadow: 0 3px 0 rgba(27, 37, 89, .4); }
html.casual .carta-cabeza .sobre { color: #FFE680; }
html.casual .carta-cabeza .icono { border-radius: 18px; background: rgba(255, 255, 255, .22); --a: #FFE066; }
html.casual .carta.evento .carta-cabeza { background: linear-gradient(180deg, #B08CFF, #7C5CFF); }
html.casual .carta.evento.malo .carta-cabeza { background: linear-gradient(180deg, #FF7A8E, #FF4D6A); }
html.casual .carta.evento.bueno .carta-cabeza { background: linear-gradient(180deg, #5FE07A, #22B455); }
html.casual .carta-cuerpo > p { font-size: 16.5px; }
html.casual .opciones { gap: 11px; }
html.casual .opcion { border: 0; border-radius: 20px; background: #F1F7FF; box-shadow: 0 5px 0 var(--labio); padding: 13px 15px; transition: transform .1s, box-shadow .1s; animation: brotar .45s var(--rebote) both; }
html.casual .opciones .opcion:nth-child(2) { animation-delay: .07s; }
html.casual .opciones .opcion:nth-child(3) { animation-delay: .14s; }
html.casual .opcion:hover { background: #E4F0FF; transform: translateY(-2px); box-shadow: 0 7px 0 var(--labio); }
html.casual .opcion:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--labio); }
html.casual .opcion b { font-family: var(--titulo); font-weight: 400; font-size: 21px; color: var(--noche); }
html.casual .opcion p, html.casual .opcion .precio { color: #53608A; }
html.casual .opcion.actual { background: #E2FBE8; box-shadow: 0 5px 0 #A9E2B8; }
html.casual .opcion .etiqueta { background: var(--hoja); font-weight: 600; padding: 3px 10px; }
html.casual .opcion.no { background: #EDF1F7; border: 0; box-shadow: none; opacity: .6; }
html.casual .opcion.no .etiqueta { background: #8C97B5; }

/* ---------- Recibo ---------- */
html.casual .recibo { border: 0; border-radius: 26px; background: #fff; color: var(--tinta); font-family: var(--texto); box-shadow: 0 8px 0 rgba(27, 37, 89, .22), 0 16px 22px rgba(20, 40, 120, .22); padding: 20px 16px 22px; }
html.casual .recibo::after { display: none; }
html.casual .recibo h2 { font-size: 30px; color: var(--noche); }
html.casual .recibo .sobre { color: var(--lila); }
html.casual .cuadro { border: 0; border-radius: 18px; padding: 10px 10px 12px; }
html.casual .cuadro.mas { background: #DDF9E4; box-shadow: 0 5px 0 #A9E2B8; }
html.casual .cuadro.menos { background: #FFE1E6; box-shadow: 0 5px 0 #F5B3C0; }
html.casual .cuadro small { color: #53608A; font-weight: 600; }
html.casual .cuadro .calc { font-family: var(--titulo); font-weight: 400; font-size: 30px; }
html.casual .recibo .total.fin { border-radius: 18px; background: var(--noche); padding: 11px 14px; box-shadow: 0 5px 0 rgba(27, 37, 89, .35); margin-top: 16px; }
html.casual .recibo .total.fin .calc { font-family: var(--titulo); font-weight: 400; font-size: 26px; color: #FFE066; }
html.casual .cuenta-eq { color: #6A76A0; }
html.casual .recibo .linea small { color: #6A76A0; }
html.casual .recibo .linea .mas { color: var(--hoja); }
html.casual .nota { border-radius: 16px; background: #EEF4FF; color: var(--tinta); font-weight: 500; }
html.casual .nota.roja { background: #FFE1E6; }
html.casual .nota.verde { background: #DDF9E4; }
html.casual .detalle summary { color: var(--lila); font-weight: 600; }
html.casual .deltas span { background: #EEF4FF; }

/* ---------- Final ---------- */
html.casual .bloque { border: 0; border-radius: 26px; background: #fff; color: var(--tinta); box-shadow: 0 8px 0 rgba(27, 37, 89, .22), 0 16px 22px rgba(20, 40, 120, .2); }
html.casual .bloque h2 { font-size: 27px; color: var(--noche); }
html.casual .bloque h2 .calc { font-family: var(--titulo); font-weight: 400; color: var(--lila); }
html.casual .bloque.estrellas { background: linear-gradient(180deg, #FFE066, #FFB81F); box-shadow: 0 8px 0 var(--amarillo-o), 0 16px 22px rgba(20, 40, 120, .2); }
html.casual .bloque.estrellas h2 { font-size: 38px; color: #fff; text-shadow: 0 3px 0 var(--amarillo-o); }
html.casual .estrellas-fila { color: #fff; text-shadow: 0 4px 0 var(--amarillo-o); font-size: 52px; }
html.casual .estrellas-fila span { opacity: .35; }
html.casual .metas li { border-radius: 14px; background: rgba(255, 255, 255, .85); font-weight: 600; }
html.casual .bloque.verdad { background: linear-gradient(180deg, #2C3A8C, #1B2559); color: #fff; box-shadow: 0 8px 0 #121A45, 0 16px 22px rgba(20, 40, 120, .2); }
html.casual .bloque.verdad h2 { color: #fff; }
html.casual .verdad h2 .calc { color: #FFE066; }
html.casual .verdad .sobre { color: #FFE066 !important; }
html.casual .leyenda .calc { color: #FF9DB5; }
html.casual .gran-cifra { color: var(--coral); }
html.casual .gran-cifra .calc { font-family: var(--titulo); font-weight: 400; }
html.casual .fuga-barra { height: 13px; border-radius: 7px; background: #E6EEFA; }
html.casual .fuga-barra b { border-radius: 7px; background: linear-gradient(180deg, #FF8A9C, #FF4D6A); }
html.casual .lienzo { border: 0; border-radius: 20px; box-shadow: 0 6px 0 rgba(27, 37, 89, .2); }
html.casual .bloque .sobre { color: var(--lila); }
html.casual .b-final { background: linear-gradient(180deg, #8BF29A, #46D65A); box-shadow: 0 8px 0 var(--verde-o), 0 16px 22px rgba(20, 40, 120, .2); }
html.casual .b-final h2, html.casual .b-final .sobre { color: #fff; text-shadow: 0 2px 0 var(--verde-o); }
html.casual .b-final .calc { color: #fff !important; }
html.casual .b-final p { color: var(--noche); font-weight: 600; }
html.casual .b-medalla { background: #FFE066; color: var(--amarillo-o); box-shadow: 0 3px 0 var(--amarillo-o); }

/* ---------- Hoja de fuentes ---------- */
html.casual .velo { background: rgba(20, 30, 100, .62); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.casual .hoja { border-radius: 30px 30px 0 0; background: #EAF4FF; color: var(--tinta); }
html.casual .hoja-cabeza h2 { font-size: 27px; color: var(--noche); }
html.casual .hoja-cabeza .pildora { background: var(--noche); }
html.casual .ficha { border: 0; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 var(--labio); }
html.casual .ficha h3 { font-size: 20px; color: var(--noche); }
html.casual .ficha .valor { font-family: var(--titulo); font-size: 22px; color: var(--lila); }
html.casual .ficha a { color: var(--azul-o); }
html.casual .ficha.regla { background: #F6F9FF; border: 2px dashed #B9C9E6; box-shadow: none; }
html.casual .lista-h { font-size: 23px; color: var(--noche); }
html.casual .hoja .aviso { color: #5B6890; }

/* ---------- Modo barrio: el mapa ---------- */
html.casual .mapa { touch-action: none; }
.c-letra { font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-size: 22px; letter-spacing: .6px; fill: #fff; stroke: #1B2559; stroke-width: 6.5px; stroke-linejoin: round; paint-order: stroke fill; }
.c-letra.sombra { fill: #1B2559; stroke: #1B2559; opacity: .32; }
.mapa .lugar.cerrado .c-rotulo { opacity: .5; }
.mapa .lugar .toca { rx: 22px; }
html.casual .mapa .lugar:hover .toca, html.casual .mapa .lugar:focus-visible .toca { fill: rgba(255, 255, 255, .18); stroke: #fff; stroke-width: 5; }
html.casual .mapa .lugar.aqui .toca { stroke: #FFE066; stroke-width: 5; stroke-dasharray: none; }
.c-aviso { animation: botar .9s ease-in-out infinite; }
.c-silueta * { fill: #fff !important; stroke: #fff !important; stroke-width: 20px !important; stroke-linejoin: round; stroke-linecap: round; animation: none !important; opacity: 1 !important; }
.c-aro { animation: aro 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes aro { 50% { transform: scale(1.25); opacity: .35; } }
.c-bandera { transform-box: fill-box; transform-origin: 50% 0; animation: ondear 1.5s ease-in-out infinite alternate; }
@keyframes ondear { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.c-bus { animation: c-pasar 38s linear infinite; }
@keyframes c-pasar { from { transform: translateX(-520px); } to { transform: translateX(1140px); } }
.c-carro { animation: c-volver 30s linear infinite; }
@keyframes c-volver { from { transform: translateX(1140px); } to { transform: translateX(-520px); } }
html.casual #yo.anda .yo-cuerpo { animation: brincar .3s ease-in-out infinite; }
@keyframes brincar { 50% { transform: translateY(-7px) scale(1.04, .96); } }
html.casual .b-destino circle { stroke: #fff; stroke-width: 5; }
html.casual .b-flecha { animation: botar .8s ease-in-out infinite; }

/* ---------- Modo barrio: el panel ---------- */
html.casual .b-chip { background: rgba(27, 37, 89, .55); font-weight: 600; box-shadow: 0 3px 0 rgba(27, 37, 89, .3); padding: 6px 12px; }
html.casual .b-chip .calc { color: #FFE066; font-size: 15.5px; }
html.casual .b-chip.roja .calc { color: #FF9DB5; }
html.casual .b-chip.reloj { background: linear-gradient(180deg, #FFE066, #FFC21A); color: var(--noche); box-shadow: 0 3px 0 var(--amarillo-o); font-family: var(--titulo); font-weight: 400; font-size: 17px; }
html.casual .b-chip.reloj .icono { --a: #FF8A1F; width: 20px; height: 20px; }
html.casual .b-chip.reloj[data-parte="1"] { background: linear-gradient(180deg, #FFA65C, #FF7A3D); color: #fff; box-shadow: 0 3px 0 var(--naranja-o); }
html.casual .b-chip.reloj[data-parte="1"] .icono { --a: #FFE066; }
html.casual .b-chip.reloj[data-parte="2"] { background: linear-gradient(180deg, #5560D8, #2C3A8C); color: #fff; box-shadow: 0 3px 0 #121A45; }
html.casual .b-chip.reloj[data-parte="2"] .icono { --a: #FFE066; }
html.casual .b-chip.libreta { border: 0; background: linear-gradient(180deg, #FFFFFF, #E6F0FF); color: var(--noche); box-shadow: 0 4px 0 var(--labio); padding: 6px 12px; }
html.casual .b-chip.libreta .icono { --a: var(--rosa); width: 19px; height: 19px; }
html.casual .b-chip.libreta .calc { color: var(--lila); }
html.casual .b-barras { border: 0; border-radius: 20px; background: #fff; color: var(--noche); box-shadow: 0 5px 0 rgba(27, 37, 89, .2); padding: 10px 12px 12px; gap: 10px; }
html.casual .b-barra-nombre { font-weight: 600; font-size: 12px; }
html.casual .b-barra-nombre .icono { width: 17px; height: 17px; }
html.casual .b-barra[data-barra=comida] { --a: #FF9F1C; } html.casual .b-barra[data-barra=forma] { --a: #22B455; }
html.casual .b-barra[data-barra=animo] { --a: #2F9BFF; } html.casual .b-barra[data-barra=relaciones] { --a: #FF5C93; }
html.casual .b-riel { height: 14px; border-radius: 8px; background: #E3ECFA; box-shadow: inset 0 2px 0 rgba(27, 37, 89, .08); }
html.casual .b-riel b { border-radius: 8px; background-color: var(--a); background-image: linear-gradient(180deg, rgba(255, 255, 255, .5) 0 45%, rgba(255, 255, 255, 0) 46%); transition: width .7s var(--rebote); min-width: 4px; }
html.casual .b-barra[data-barra] .b-riel b { background-color: var(--a); }
html.casual .b-barra.baja { --a: #FF4D6A; }
html.casual .b-barra.baja .b-barra-nombre { color: #E0304F; }
html.casual .b-barra.baja .b-riel { background: #FFD9E0; }
html.casual .b-barra.cambia { animation: brinco .55s var(--rebote); }
@keyframes brinco { 35% { transform: scale(1.12); } }
html.casual .b-pista { border: 0; border-radius: 18px; background: #fff; color: var(--tinta); box-shadow: 0 4px 0 rgba(27, 37, 89, .18); font-weight: 500; }
html.casual .b-pista.aviso-b { background: #E2FBE8; border: 0; }
html.casual .b-pista.objetivo { border: 0; border-radius: 20px; background: linear-gradient(180deg, #FFE066, #FFC21A); color: var(--noche); box-shadow: 0 6px 0 var(--amarillo-o); font-family: var(--titulo); font-weight: 400; font-size: 19.5px; line-height: 1.15; animation: brotar .45s var(--rebote) both; }
html.casual .b-pista.objetivo .icono { --a: #fff; width: 30px; height: 30px; filter: drop-shadow(0 2px 0 var(--amarillo-o)); animation: botar .9s ease-in-out infinite; }
html.casual .b-pista.objetivo.noche { background: linear-gradient(180deg, #5560D8, #2C3A8C); color: #fff; box-shadow: 0 6px 0 #121A45; }
html.casual .b-pista.objetivo.noche .icono { --a: #FFE066; filter: none; }
html.casual .b-lugar { border: 0; border-radius: 28px; background: #fff; color: var(--tinta); box-shadow: 0 8px 0 rgba(27, 37, 89, .22), 0 16px 22px rgba(20, 40, 120, .22); }
html.casual .b-lugar-cabeza { background: linear-gradient(180deg, #FF8BB2, #FF5C93); color: #fff; padding: 13px 16px; }
html.casual .b-lugar-cabeza h2 { font-size: clamp(25px, 6.6vw, 32px); text-shadow: 0 3px 0 rgba(27, 37, 89, .35); }
html.casual .b-lugar-cabeza .pildora { background: rgba(27, 37, 89, .35); }
html.casual [data-en-lugar=banco] .b-lugar-cabeza { background: linear-gradient(180deg, #6BA6FF, #3D8BFF); }
html.casual [data-en-lugar=trabajo] .b-lugar-cabeza { background: linear-gradient(180deg, #FFC043, #FFA51F); }
html.casual [data-en-lugar=impuestos] .b-lugar-cabeza { background: linear-gradient(180deg, #9FB0DE, #7C8FC4); }
html.casual [data-en-lugar=cheques] .b-lugar-cabeza, html.casual [data-en-lugar=parque] .b-lugar-cabeza { background: linear-gradient(180deg, #5FE07A, #23C96B); }
html.casual [data-en-lugar=clinica] .b-lugar-cabeza, html.casual [data-en-lugar=plaza] .b-lugar-cabeza { background: linear-gradient(180deg, #4FE3D6, #1FCFC0); }
html.casual [data-en-lugar=mercado] .b-lugar-cabeza { background: linear-gradient(180deg, #FF8A6E, #FF6242); }
html.casual [data-en-lugar=envios] .b-lugar-cabeza { background: linear-gradient(180deg, #B594FF, #9A6BFF); }
html.casual [data-en-lugar=cafe] .b-lugar-cabeza { background: linear-gradient(180deg, #DE9A63, #C9773F); }
html.casual [data-en-lugar=autos] .b-lugar-cabeza { background: linear-gradient(180deg, #55DBF5, #22C3E6); }
html.casual .b-lugar-cuerpo { gap: 11px; }
html.casual .b-accion { border: 0; border-radius: 20px; background: #F1F7FF; box-shadow: 0 5px 0 var(--labio); padding: 11px 13px; transition: transform .1s, box-shadow .1s; animation: brotar .45s var(--rebote) both; }
html.casual .b-lugar-cuerpo .b-accion:nth-of-type(2) { animation-delay: .06s; }
html.casual .b-lugar-cuerpo .b-accion:nth-of-type(3) { animation-delay: .12s; }
html.casual .b-lugar-cuerpo .b-accion:nth-of-type(n+4) { animation-delay: .18s; }
html.casual .b-accion:hover { background: #E4F0FF; transform: translateY(-2px); box-shadow: 0 7px 0 var(--labio); }
html.casual .b-accion:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--labio); }
html.casual .b-accion b { font-family: var(--titulo); font-weight: 400; font-size: 21px; color: var(--noche); }
html.casual .b-accion small { color: #53608A; font-weight: 500; }
html.casual .b-accion.decision { background: #FFF6D6; box-shadow: 0 5px 0 #EBD58E; }
html.casual .b-accion.decision:hover { background: #FFF0BD; }
html.casual .b-accion.no { background: #EDF1F7; box-shadow: none; opacity: .6; border: 0; }
.b-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--fondo-ico, #2F9BFF); box-shadow: 0 4px 0 rgba(27, 37, 89, .18); --a: #fff; }
.b-ico .icono { width: 30px; height: 30px; }
html.casual .b-accion.decision .icono { width: 50px; height: 50px; padding: 10px; border-radius: 16px; background: #FFC21A; box-shadow: 0 4px 0 var(--amarillo-o); color: #fff; --a: #fff; }
html.casual .b-ef { border-radius: 999px; font-weight: 600; background: #E6EEFA; }
html.casual .b-ef.sube { background: #CFF7D8; color: #0F7D35; }
html.casual .b-ef.baja { background: #FFD9E0; color: #C0203F; }
html.casual .b-ef.tiempo { background: var(--noche); color: #fff; }
html.casual .b-enlace { color: #fff; font-weight: 600; }
html.casual .panel > div > .aviso, html.casual .panel > .entra > .aviso { font-weight: 600; }
html.casual .b-consejo { border: 0; border-radius: 20px; background: #FFF6D6; color: var(--tinta); box-shadow: 0 5px 0 #EBD58E; }
html.casual .b-consejo.nuevo { box-shadow: 0 5px 0 #EBD58E; animation: brotar .6s var(--rebote) both; }
html.casual .b-consejo .sobre { color: #B26B00; }
html.casual .b-consejo .sobre .icono { --a: #FFB300; width: 20px; height: 20px; animation: latir 1.2s ease-in-out infinite; }
html.casual .b-consejo .fuente-b { background: var(--noche); color: #fff; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
html.casual .b-consejo .fuente-b i { background: #FFE066; color: var(--noche); }
html.casual .b-consejo.falta { background: #F6F9FF; border: 2px dashed #B9C9E6; box-shadow: none; color: #5B6890; }
html.casual .b-libreta-hoja .lista-h { margin-top: 16px; }

/* números que saltan al ganar o gastar, y confeti */
.b-salto { position: fixed; z-index: 30; pointer-events: none; font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-size: 40px; line-height: 1; color: #5FE07A; -webkit-text-stroke: 2px #1B2559; text-shadow: 0 4px 0 #1B2559; animation: saltar 1.5s cubic-bezier(.2, .9, .3, 1) both; white-space: nowrap; }
.b-salto.menos { color: #FF6B85; }
@keyframes saltar { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.4); } 18% { opacity: 1; transform: translate(-50%, -16px) scale(1.25); } 30% { transform: translate(-50%, -22px) scale(1); } 75% { opacity: 1; transform: translate(-50%, -60px) scale(1); } 100% { opacity: 0; transform: translate(-50%, -92px) scale(.9); } }
.c-confeti { position: fixed; z-index: 29; top: -14px; width: 11px; height: 15px; border-radius: 3px; pointer-events: none; animation: confeti 2.4s cubic-bezier(.3, .6, .5, 1) both; }
@keyframes confeti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--giro)); opacity: .9; } }

/* ---------- Movimiento ---------- */
html.casual .entra { animation: brotar .45s var(--rebote) both; }
@keyframes brotar { from { opacity: 0; transform: translateY(18px) scale(.92); } }

/* ---------- Escritorio ---------- */
@media (min-width: 900px) {
  html.casual .panel { border-radius: 0; }
  html.casual .hoja { border-radius: 30px; }
}
@media (max-width: 380px) { html.casual .b-barra-nombre .icono { display: none; } html.casual .b-chip { padding: 5px 9px; font-size: 12.5px; } html.casual .b-ico { width: 42px; height: 42px; } }

/* ============ Encargo 4: un solo juego, menos números, niveles y pasos ============ */
/* Los botones ya no suben al pasar el ratón. Con el ratón justo en el borde de abajo, el botón subía, perdía el ratón,
   bajaba y volvía a subir sin parar (temblaba, y dejaba colgada a la prueba de Playwright). Ahora solo se aclaran. */
html.casual .boton:hover:not(:active), html.casual .opcion:hover:not(:active), html.casual .b-accion:hover:not(:active) { transform: none; filter: brightness(1.05) saturate(1.06); }

/* Portada: un solo botón, grande */
html.casual .boton.jugar { font-size: 36px; padding: 13px 18px 16px; margin-top: 12px; }
html.casual .panel .titulo-xl + .bajada + .lenguas { margin-top: 16px; }
html.casual .boton.jugar ~ .bajada { margin-top: 20px; }
html.sencillo .cuenta-eq { display: none; }

/* El mapa con la quinta fila es más alto: en celular ocupa un poco más de pantalla */
@media (max-width: 899px) {
  #app[data-pantalla=barrio] .escenario { height: min(62svh, calc(100vw * var(--mapa-razon, 1.3117) + 22px)); }
  #app[data-pantalla=barrio][data-filas="15"] .escenario { height: min(70svh, calc(100vw * var(--mapa-razon, 1.5844) + 22px)); }
}

/* Barra de nivel: siempre arriba del panel */
.v-nivel { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 13px 9px 8px; border: 0; border-radius: 22px; background: linear-gradient(180deg, #8274FF, #5647E8); color: #fff; text-align: left; box-shadow: 0 5px 0 #392EB5; cursor: pointer; }
.v-nivel-num { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(180deg, #FFE680, #FFB81F); color: #1B2559; font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-size: 29px; line-height: 1; box-shadow: 0 3px 0 #E59B00, inset 0 2px 0 rgba(255, 255, 255, .65); }
.v-nivel-num .icono { width: 28px; height: 28px; --a: #fff; }
.v-nivel-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
.v-nivel-txt b { font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-weight: 400; font-size: 19px; letter-spacing: .02em; line-height: 1.05; text-shadow: 0 2px 0 rgba(27, 37, 89, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-nivel-txt small { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-puntos { display: flex; align-items: center; gap: 4px; }
.v-puntos i { flex: 1; max-width: 30px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .26); }
.v-puntos i.corte { margin-left: 6px; }
.v-puntos i.hecho { background: #FFE066; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55); }
.v-puntos i.hoy { background: #fff; animation: v-titila 1.1s ease-in-out infinite; }
@keyframes v-titila { 50% { opacity: .35; } }
.v-nivel.fin { background: linear-gradient(180deg, #FFD23F, #FF9F1C); color: #1B2559; box-shadow: 0 5px 0 #D97D00; }
.v-nivel.fin .v-nivel-txt b { text-shadow: none; }
.v-nivel:focus-visible { outline: 4px solid #FFE066; outline-offset: 3px; }

/* La estrella que marca en el mapa el lugar del paso pendiente */
.v-estrella { animation: v-pulso 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes v-pulso { 50% { transform: scale(1.2); } }

/* El paso de ahora, dentro de su lugar */
.v-paso { display: grid; gap: 7px; padding: 12px 13px 14px; border-radius: 22px; background: linear-gradient(180deg, #8274FF, #5647E8); color: #fff; box-shadow: 0 5px 0 #392EB5; }
.v-paso .sobre { display: flex; align-items: center; gap: 6px; margin: 0; color: #FFE680; }
.v-paso .sobre .icono { width: 18px; height: 18px; --a: #FFE066; }
.v-paso h3 { font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-weight: 400; font-size: 24px; line-height: 1.05; text-shadow: 0 2px 0 rgba(27, 37, 89, .4); }
.v-paso > p { font-size: 15.5px; }
html.casual .v-paso .b-accion { margin-top: 4px; background: linear-gradient(180deg, #FFE680, #FFC21A); box-shadow: 0 5px 0 #E59B00; animation: none; }
html.casual .v-paso .b-accion small { color: #5A4A12; }
html.casual .v-paso .b-accion.no { background: rgba(255, 255, 255, .22); box-shadow: none; opacity: 1; }
html.casual .v-paso .b-accion.no b, html.casual .v-paso .b-accion.no small { color: #fff; }
.b-ico.v-ico { --fondo-ico: #fff; --a: #5647E8; }

/* Paso completado */
.v-logro { overflow: hidden; border-radius: 28px; background: #fff; color: #22315A; box-shadow: 0 8px 0 rgba(27, 37, 89, .22), 0 16px 22px rgba(20, 40, 120, .22); }
.v-logro-cabeza { padding: 15px 16px; background: linear-gradient(180deg, #5FE07A, #22B455); color: #fff; }
.v-logro.subio .v-logro-cabeza { background: linear-gradient(180deg, #FFD23F, #FF9F1C); }
.v-logro-cabeza .sobre { display: flex; align-items: center; gap: 6px; color: #fff; }
.v-logro-cabeza .sobre .icono { width: 20px; height: 20px; --a: #FFE680; }
.v-logro-cabeza h2 { font-size: clamp(25px, 6.6vw, 32px); text-shadow: 0 3px 0 rgba(27, 37, 89, .3); }
.v-logro-cuerpo { display: grid; gap: 10px; padding: 13px 15px 17px; }
html.casual .v-logro-cuerpo > .sobre, .v-logro-cuerpo > .sobre { margin: 0; color: #5647E8; }
.v-subio { padding: 11px 13px; border-radius: 16px; background: linear-gradient(180deg, #FFE680, #FFC21A); color: #1B2559; font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-size: 21px; line-height: 1.12; box-shadow: 0 4px 0 #E59B00; }
.v-lista { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.v-lista li { position: relative; padding: 9px 12px 9px 38px; border-radius: 14px; background: #EEF4FF; color: #22315A; font-size: 15.5px; }
.v-lista li::before { content: '✓'; position: absolute; left: 11px; top: 10px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #22B455; color: #fff; font-size: 12px; font-weight: 700; }
.v-nota { font-size: 13px; color: #5B6890; }
.v-sig { font-weight: 600; color: #1B2559; }
html.casual .v-logro .fuente-b, html.casual .v-lib .fuente-b, .v-logro .fuente-b, .v-lib .fuente-b { justify-self: start; padding: 3px 10px; border: 0; border-radius: 999px; background: #1B2559; color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600; white-space: normal; text-align: left; }
html.casual .v-logro .fuente-b i, html.casual .v-lib .fuente-b i { background: #FFE066; color: #1B2559; opacity: 1; }
.v-logro .boton { margin-top: 6px; }

/* La libreta: los pasos primero */
.v-lib { display: grid; gap: 7px; margin-top: 8px; padding: 11px 13px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 #C5D6F2; }
.v-lib.falta { border: 2px dashed #B9C9E6; background: #F6F9FF; box-shadow: none; color: #5B6890; }
.v-lib-t { font-weight: 600; }
.v-lib-t b { color: #22B455; }
.v-lib-nivel { margin-top: 14px; font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-size: 18px; color: #5647E8; }

/* Final con menos números */
.v-final-nivel { margin-bottom: 4px; }
.v-mas { margin-top: 18px; border-top: 0; padding-top: 0; }
.v-mas > summary { list-style: none; padding: 11px 14px; border-radius: 16px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 15.5px; font-weight: 600; text-align: center; box-shadow: 0 4px 0 rgba(27, 37, 89, .25); cursor: pointer; }
.v-mas > summary::-webkit-details-marker { display: none; }
.v-mas[open] > summary { margin-bottom: 16px; }
.v-mas > .bloque + .bloque { margin-top: 16px; }

/* Los tres lugares nuevos */
html.casual [data-en-lugar=celular] .b-lugar-cabeza { background: linear-gradient(180deg, #8792FF, #5B6CFF); }
html.casual [data-en-lugar=identificacion] .b-lugar-cabeza { background: linear-gradient(180deg, #F47E9E, #E5527A); }
html.casual [data-en-lugar=negocios] .b-lugar-cabeza { background: linear-gradient(180deg, #FFD04A, #F2B600); }


/* ============ Encargo 5: que enganche (puntos, chispas, retos, racha, trofeos, sonido) ============ */
html.casual .b-chip.g-racha { background: linear-gradient(180deg, #FF8A5C, #FF4D4D); color: #fff; box-shadow: 0 3px 0 #C92A2A; font-family: var(--titulo); font-weight: 400; font-size: 17px; }
.g-racha .icono { width: 18px; height: 18px; --a: #FFE066; }
html.casual .b-chip.g-puntos { background: linear-gradient(180deg, #FFE680, #FFC21A); color: #1B2559; box-shadow: 0 3px 0 #E59B00; }
html.casual .b-chip.g-puntos .calc { color: #1B2559; font-family: var(--titulo); font-weight: 400; font-size: 17px; }
.g-puntos .icono { width: 18px; height: 18px; --a: #fff; filter: drop-shadow(0 1px 0 #E59B00); }
.g-puntos.cambia { animation: brinco .5s cubic-bezier(.2, 1.6, .4, 1); }
.g-retos { display: grid; gap: 7px; margin-top: 9px; padding: 10px 12px 11px; border-radius: 18px; background: #fff; color: #22315A; box-shadow: 0 4px 0 rgba(27, 37, 89, .18); }
.g-retos > b { font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-weight: 400; font-size: 17px; color: #1B2559; }
.g-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.g-reto { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 6px; border-radius: 999px; background: #EEF4FF; font-size: 14px; font-weight: 600; }
.g-reto i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #C5D6F2; color: #fff; font-style: normal; font-size: 12px; font-weight: 700; }
.g-reto small { color: #5B6890; font-weight: 600; }
.g-reto.ok { background: #CFF7D8; color: #0F7D35; }
.g-reto.ok i { background: #22B455; box-shadow: none; }
.g-retos.listo { background: linear-gradient(180deg, #FFE680, #FFC21A); box-shadow: 0 4px 0 #E59B00; }
.g-listo { font-size: 13.5px; font-weight: 600; color: #1B2559; }
.g-chispa .g-brillo { animation: g-titilar 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes g-titilar { 50% { transform: scale(.7) rotate(20deg); opacity: .8; } }
.g-chispa.toma .g-brillo { animation: g-toma .32s ease-out forwards; }
@keyframes g-toma { to { transform: scale(2.4); opacity: 0; } }
.g-toast { position: fixed; z-index: 40; left: 50%; top: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 18px 10px 11px; border-radius: 999px; background: linear-gradient(180deg, #FFE680, #FFC21A); color: #1B2559; box-shadow: 0 5px 0 #E59B00, 0 12px 20px rgba(20, 40, 120, .3); white-space: nowrap; pointer-events: none; animation: g-toast 3.4s ease-in-out both; }
.g-toast .icono { width: 30px; height: 30px; --a: #fff; filter: drop-shadow(0 2px 0 #E59B00); }
.g-toast small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.g-toast b { display: block; font-family: 'Lilita One', 'Fredoka', system-ui, sans-serif; font-weight: 400; font-size: 18px; line-height: 1.05; }
@keyframes g-toast { 0% { opacity: 0; transform: translate(-50%, -30px) scale(.8); } 9% { opacity: 1; transform: translate(-50%, 0) scale(1.06); } 14%, 86% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -24px) scale(.9); } }
.g-trofeos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.g-trofeo { display: grid; gap: 2px; padding: 10px 11px; border: 2px dashed #B9C9E6; border-radius: 16px; background: #F6F9FF; color: #7A86A8; }
.g-trofeo .icono { width: 26px; height: 26px; --a: #B9C9E6; }
.g-trofeo b { font-size: 14.5px; line-height: 1.15; }
.g-trofeo small { font-size: 12.5px; line-height: 1.25; }
.g-trofeo.ok { border: 0; background: linear-gradient(180deg, #FFE680, #FFC21A); color: #1B2559; box-shadow: 0 4px 0 #E59B00; }
.g-trofeo.ok .icono { --a: #fff; filter: drop-shadow(0 2px 0 #E59B00); }
.g-final { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 10px; font-weight: 600; }
.g-final .icono { width: 20px; height: 20px; --a: #FFE066; }
.g-nuevo { padding: 2px 10px; border-radius: 999px; background: #FFE066; color: #1B2559; }
.g-sonido { position: absolute; z-index: 3; left: 10px; top: 60px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(27, 37, 89, .5); box-shadow: 0 2px 0 rgba(27, 37, 89, .35); cursor: pointer; }
.g-sonido .icono { width: 20px; height: 20px; --a: #fff; }
.g-sonido.mudo { opacity: .65; }
html.casual .g-record { font-weight: 600; font-size: 15px; text-align: center; margin-top: 10px; }


/* ============ Encargo 7: tu lugar entre todos, retar a alguien y las 2 preguntas a mitad del juego ============ */
.g-lugar { margin: 2px 0 8px; padding: 8px 12px; border-radius: 14px; background: rgba(27, 37, 89, .14); font-weight: 600; }
.v-logro .g-lugar { background: #EEF4FF; color: #1B2559; }
.g-reto-fin { margin: 2px 0 8px; font-weight: 600; }
.g-retar { margin: 2px 0 12px; }
html.casual .g-jugaron { font-weight: 600; font-size: 15px; text-align: center; margin-top: 8px; }
html.casual .mision.g-reto-aviso { margin-top: 14px; }
.v-logro .g-opinar { margin-top: 2px; }
html.casual .hoja .g-encuesta .campo > label { font-size: 18px; text-shadow: none; color: #1B2559; }
html.casual .hoja .g-encuesta .campo textarea { box-shadow: inset 0 0 0 2px #C5D6F2; min-height: 76px; }
html.casual .hoja .g-encuesta .boton { margin-top: 12px; }
