:root { --fondo: #070a1f; --panel: #111742; --borde: #2c3680; --texto: #f4f6ff; --suave: #b9c0ee; --cian: #22e4ff; --dorado: #ffd23f; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 30%, #2a1668 0%, var(--fondo) 65%) var(--fondo); color: var(--texto); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
:focus-visible { outline: 3px solid var(--dorado); outline-offset: 2px; }
.cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.volver { color: var(--texto); font-weight: 700; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.datos { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; }
.pastilla { padding: 4px 12px; border-radius: 999px; border: 2px solid var(--dorado); color: var(--dorado); font-weight: 800; white-space: nowrap; }
.insignia { padding: 3px 9px; border-radius: 999px; background: #3a1668; color: var(--dorado); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.turnos { font-size: .85rem; font-weight: 700; color: var(--suave); white-space: nowrap; }
.icono { font-size: 1.2rem; line-height: 1; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--borde); background: var(--panel); color: var(--texto); cursor: pointer; }
main { flex: 1; width: min(100%, 560px); margin: 0 auto; padding: 0 14px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
h1 { margin: 6px 0 0; font-size: clamp(1.5rem, 6vw, 2.2rem); color: var(--dorado); text-shadow: 0 0 18px rgba(255, 210, 63, .45); }
.regla { margin: 0 0 10px; color: var(--suave); }
.escenario { position: relative; width: min(92vw, 54vh, 460px); min-width: 250px; aspect-ratio: 1; }
.rueda { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 40px rgba(34, 228, 255, .3); }
.rueda::after { content: "⚡"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 17%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--panel); border: 4px solid var(--dorado); font-size: 1.6rem; }
.puntero { position: absolute; z-index: 2; left: 50%; top: -8px; width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 40px solid #ff4fa3; transform: translateX(-50%); transform-origin: 50% 4px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); }
.giros { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 4px; padding: 0; }
.giros li { padding: 6px 12px; border: 1px solid var(--borde); border-radius: 10px; font-size: .92rem; }
.giros li.premio { border-color: var(--dorado); color: var(--dorado); font-weight: 800; }
.mensaje { min-height: 1.5em; margin: 8px 0; font-weight: 700; }
.mensaje.error { color: #ffb4b4; }
.acciones { display: grid; gap: 8px; width: min(100%, 380px); }
.boton { font: inherit; font-weight: 800; padding: 13px 18px; border: 0; border-radius: 12px; background: var(--dorado); color: #14163a; cursor: pointer; }
.boton.grande { font-size: 1.15rem; box-shadow: 0 0 22px rgba(255, 210, 63, .45); }
.boton.secundario { background: var(--borde); color: var(--texto); }
.boton:disabled { opacity: .55; cursor: default; box-shadow: none; }
.nota { margin: 4px 0 0; font-size: .86rem; color: var(--suave); }
.acceso { width: min(100%, 420px); margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--panel); border: 2px solid var(--dorado); }
.acceso, .acceso > div { display: grid; gap: 10px; }
.acceso label { text-align: left; font-weight: 600; font-size: .92rem; }
.acceso input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--borde); background: #080c2a; color: var(--texto); width: 100%; }
.ganaste { margin: 0; font-weight: 800; color: var(--dorado); font-size: 1.1rem; }
.probabilidades { width: 100%; margin-top: 18px; text-align: left; border: 1px solid var(--borde); border-radius: 12px; padding: 10px 14px; background: rgba(8, 12, 42, .7); }
.probabilidades summary { cursor: pointer; font-weight: 700; }
.probabilidades ul { padding-left: 18px; }
.ventana { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 4, 20, .85); }
.cuadro { width: min(100%, 400px); display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: var(--panel); border: 2px solid var(--dorado); text-align: center; }
.cuadro h2 { margin: 0; font-size: 1.2rem; }
.confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
@media (min-width: 900px) { .escenario { width: min(60vh, 480px); } }
