/* Sorteador JCreatorsLab · tema «Vice» (colores estilo GTA 6, igual que la Fábrica) */
:root {
  --bg: #0C0618;
  --panel: rgba(28,14,52,.82);
  --panel-2: #2a1648;
  --line: rgba(255,255,255,.1);
  --gold: #FF2E88;          /* acento rosa */
  --gold-2: #FFD84A;        /* amarillo del sol */
  --gold-dim: rgba(255,46,136,.55);
  --orange: #FF8A3D;
  --purple: #B534E8;
  --neon: #29E3FF;
  --sol: linear-gradient(100deg, #FF2E88 0%, #FF8A3D 55%, #FFD84A 100%);
  --text: #FFF4FB;
  --muted: #a993c0;
  --red: #FF5C6C;
  --blue: #29E3FF;
  --green: #3DFFB0;
  --serif: "Anton", "Bebas Neue", Impact, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 420px at 50% 112%, rgba(255,194,61,.30), transparent 62%),
    radial-gradient(1200px 600px at 85% -10%, rgba(255,46,136,.34), transparent 60%),
    radial-gradient(1000px 560px at -10% 25%, rgba(150,40,230,.32), transparent 60%),
    linear-gradient(180deg, #160828 0%, #0C0618 60%, #08040F 100%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  min-height: 100vh;
}
a { color: var(--gold); }
/* rayitas de pantalla y ciudad al fondo */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px); }
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none; z-index: 0; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 150' preserveAspectRatio='none'%3E%3Cpath fill='%23140620' d='M0 150V112h40v-30h30v38h24V70h36v50h20V96h40v24h60V84h24V50h20v34h18v36h40V92h30v28h150V78h24V40h30v40h20v40h36V96h40v24h50V60h24v60h30V88h40v32h60V70h30v50h40V100h40v20h46V90h30v60z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat; }
body > * { position: relative; z-index: 1; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #FF2E88, #B534E8); color: #fff; box-shadow: 0 0 18px -4px #FF2E88;
}
.brand-ico svg { width: 22px; height: 22px; }
.brand b { font: 400 21px/1 var(--serif); display: block; text-transform: uppercase; letter-spacing: .05em; font-style: italic; }
.brand small { font-size: 10px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; }

.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: .01em; }
h1 { text-transform: uppercase; font-style: italic; background: var(--sol); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #2A0838) drop-shadow(0 6px 22px rgba(255,46,136,.45)); padding-right: .08em; }
h1 .gold, h1 em { color: inherit; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 10px;
  padding: 10px 16px; cursor: pointer; text-decoration: none; color: var(--text);
  transition: border-color .15s, background .15s, transform .1s;
}
.btn:hover { border-color: var(--gold-dim); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.btn-gold {
  background: var(--sol); color: #1A0B2E; border: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  box-shadow: 0 8px 30px -10px rgba(255,46,136,.8);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-outline { background: transparent; border-color: var(--gold-dim); color: var(--gold); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--line); }
.btn-lg { padding: 16px 26px; font-size: 17px; border-radius: 12px; }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.icon-btn.danger { color: var(--red); }
.icon-btn svg { width: 17px; height: 17px; display: block; }

/* ---------- Formularios ---------- */
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; color: #E3C6E8; }
.input {
  width: 100%; background: #1c0f33; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--gold); }
.input.bad { border-color: var(--red); }
.hint { font-size: 12.5px; color: var(--red); margin-top: 6px; }

.card {
  background: linear-gradient(180deg, rgba(44,20,78,.9), rgba(18,8,36,.92));
  border: 1px solid var(--gold-dim); border-radius: 18px; padding: 30px;
  box-shadow: 0 30px 80px -40px rgba(255,46,136,.35);
}

/* ---------- Páginas públicas ---------- */
.pub-top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 4vw, 48px); }
.pub-main { max-width: 760px; margin: 0 auto; padding: 24px 16px 60px; text-align: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold-dim); color: var(--gold);
  border-radius: 999px; padding: 6px 14px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(255,46,136,.06);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,92,108,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,92,108,0); } 100% { box-shadow: 0 0 0 0 rgba(255,92,108,0); } }
.hero-title { font-size: clamp(44px, 9vw, 84px); margin: 22px 0 6px; }
.hero-title em { font-style: normal; color: var(--gold); display: block; }
.big-count { font: 600 clamp(64px, 14vw, 120px)/1 var(--serif); color: var(--gold); margin-top: 26px; }
.big-label { letter-spacing: .25em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.winner-card { margin: 34px auto 30px; max-width: 460px; padding: 22px; text-align: center; }
.winner-card .name { font: 600 30px/1.1 var(--serif); margin: 8px 0 2px; }
.winner-card .tt { color: var(--gold); }
.prize-pill { display: inline-block; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(255,46,136,.14); color: var(--gold-2); font-size: 14px; }
.foot { color: #8F7AA6; font-size: 12px; text-align: center; padding: 20px; }

.reg-wrap { max-width: 580px; margin: 0 auto; padding: 20px 16px 60px; }
.reg-head { text-align: center; margin: 20px 0 28px; }
.reg-head h1 { font-size: clamp(40px, 8vw, 58px); }
.reg-head p { color: #E3C6E8; margin: 10px 0 0; }
.reg-note { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.reg-note button { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; padding: 0; }
.done { text-align: center; padding: 40px 20px; }
.done .ok-ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(61,255,176,.15); color: var(--green); font-size: 36px; }
.form-err { background: rgba(255,92,108,.12); border: 1px solid rgba(255,92,108,.4); color: #ffc2c8; padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }

/* ---------- Anuncio en pantalla (agua / ganador) ---------- */
.reveal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center;
  background: rgba(12,6,24,.9); backdrop-filter: blur(6px); animation: fadeIn .3s;
}
.reveal .box { padding: 20px; max-width: 90vw; }
.reveal .tag { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; }
.reveal .who { font: 600 clamp(42px, 9vw, 96px)/1 var(--serif); margin: 14px 0 6px; animation: pop .5s cubic-bezier(.2,1.6,.4,1); }
.reveal .tt { color: var(--gold); font-size: clamp(18px, 3vw, 26px); }
.reveal.agua { background: radial-gradient(circle at 50% 120%, rgba(41,227,255,.45), rgba(8,4,15,.93) 60%); }
.reveal.agua .tag { color: #29E3FF; }
.reveal.ganador .tag { color: var(--gold); }
.reveal .prize-pill { font-size: 20px; padding: 8px 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.waves { position: fixed; left: 0; right: 0; bottom: 0; height: 38vh; pointer-events: none; z-index: 51; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; animation: waveMove 3s linear infinite, waveRise 1.2s ease-out; }
.waves svg:nth-child(2) { opacity: .55; animation-duration: 4.5s, 1.4s; }
@keyframes waveMove { to { transform: translateX(-50%); } }
@keyframes waveRise { from { transform: translateY(100%); } }
.drop { position: fixed; top: -20px; width: 6px; height: 14px; border-radius: 50%; background: #29E3FF; z-index: 52; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh); } }
.confetti { position: fixed; top: -14px; width: 9px; height: 14px; z-index: 52; animation: conf linear forwards; }
@keyframes conf { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Admin ---------- */
.adm-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(16px, 3vw, 40px); background: rgba(12,6,24,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; border: 1px solid transparent;
  background: none; cursor: pointer; color: #E3C6E8; white-space: nowrap;
}
.tab svg { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--gold); border-color: var(--gold-dim); background: rgba(255,46,136,.08); }
.adm-main { max-width: 1340px; margin: 0 auto; padding: 34px clamp(16px, 3vw, 40px) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { border: 1px solid var(--gold-dim); border-radius: 14px; padding: 18px 20px; background: linear-gradient(180deg, #2a1648, #160a2b); }
.stat .lbl { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #E3C6E8; }
.stat .lbl svg { width: 17px; height: 17px; color: var(--gold); }
.stat .num { font: 500 40px/1 var(--serif); margin-top: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 18px; }
.search { flex: 1 1 260px; position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search .input { padding-left: 38px; }
select.input { width: auto; padding-right: 30px; }
.table-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; }
th { font-weight: 500; color: #E3C6E8; background: #1f1036; font-size: 14px; }
td { font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.n { font-weight: 600; }
td.t { color: var(--gold); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.b-activo { background: rgba(255,46,136,.15); color: var(--gold); border: 1px solid var(--gold-dim); }
.b-agua { background: rgba(41,227,255,.14); color: #29E3FF; border: 1px solid rgba(41,227,255,.5); }
.b-ganador { background: rgba(61,255,176,.14); color: #3DFFB0; border: 1px solid rgba(61,255,176,.5); }
.b-anulada { background: #2a1648; color: var(--muted); border: 1px solid var(--line); }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* Sorteos */
.draw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.draw-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.draw-card h3 { font-size: 28px; }
.draw-card.agua { border-color: rgba(41,227,255,.45); background: linear-gradient(180deg, rgba(41,227,255,.08), var(--panel)); }
.draw-card.ganador { border-color: var(--gold-dim); background: linear-gradient(180deg, rgba(255,46,136,.08), var(--panel)); }
.btn-agua { background: linear-gradient(135deg, #1fa8d6, #29E3FF); color: #08263a; text-transform: uppercase; letter-spacing: .03em; border: 0; font-weight: 600; }
.stage {
  border: 1px solid var(--gold-dim); border-radius: 18px; min-height: 360px; display: grid; place-items: center; text-align: center;
  padding: 30px 20px; background: radial-gradient(ellipse at 50% 0%, #3A0B4F, #0C0618 70%); position: relative; overflow: hidden;
}
.stage:fullscreen { border-radius: 0; border: 0; }
.stage .reel { font: 600 clamp(38px, 7vw, 82px)/1.1 var(--serif); min-height: 1.2em; }
.stage .reel.spin { color: #E3C6E8; filter: blur(.4px); }
.stage .reel.agua { color: #29E3FF; }
.stage .reel.ganador { color: var(--gold-2); }
.stage .sub { color: var(--gold); font-size: 20px; min-height: 1.5em; margin-top: 6px; }
.stage .status { letter-spacing: .3em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.stage-tools { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.stage-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.wheel-wrap { position: relative; width: min(380px, 78vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap svg.wheel { width: 100%; height: 100%; }
.wheel-wrap svg.wheel.go { transition: transform 5.5s cubic-bezier(.12,.75,.12,1); }
.wheel-pin { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 28px solid var(--gold-2); filter: drop-shadow(0 3px 4px rgba(0,0,0,.6)); z-index: 2; }

/* Premios */
.prize-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 120px 90px 40px; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.prize-row:last-child { border-bottom: 0; }
.prize-row .input { padding: 9px 11px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--muted); }
.switch input { accent-color: var(--gold); width: 17px; height: 17px; }

.login-wrap { max-width: 420px; margin: 10vh auto; padding: 0 16px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; background: #2a1648; border: 1px solid var(--gold-dim);
  padding: 11px 18px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: fadeIn .2s; max-width: 90vw;
}
.copy-box { display: flex; gap: 8px; }
.copy-box .input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .draw-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-top { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; }
}
@media (max-width: 560px) {
  .card { padding: 22px 18px; }
  .stat .num { font-size: 32px; }
  .prize-row { grid-template-columns: 50px minmax(0, 1fr) 80px 36px; }
  .prize-row .switch { display: none; }
}

/* Dos ruletas lado a lado */
.wheels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.wheel-col { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.wheel-col .eyebrow { margin: 0; }
.wheel-note { margin: 0; font-size: 13px; color: var(--muted); min-height: 1.4em; text-align: center; }
.wheel-empty { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; border: 2px dashed var(--line); color: var(--muted); padding: 30px; text-align: center; }
.stage .reel { text-transform: uppercase; font-style: italic; letter-spacing: .01em; text-shadow: 0 3px 0 #2A0838, 0 0 30px rgba(255,46,136,.45); }
.stage .reel.agua { text-shadow: 0 3px 0 #08263a, 0 0 30px rgba(41,227,255,.5); }
@media (max-width: 900px) { .wheels { grid-template-columns: minmax(0, 1fr); } }

/* Interruptor grande de registro */
.reg-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,92,108,.55); background: rgba(255,92,108,.12); color: var(--text); transition: all .2s; }
.reg-toggle .knob { width: 46px; height: 26px; border-radius: 999px; background: #3a1a3a; position: relative; transition: background .2s; flex: none; }
.reg-toggle .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FF5C6C; transition: transform .25s cubic-bezier(.3,1.5,.5,1), background .2s; }
.reg-toggle .txt { text-align: left; font: 400 17px/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.reg-toggle .txt small { display: block; font: 600 10px/1.4 var(--sans); letter-spacing: .2em; color: var(--muted); }
.reg-toggle.on { border-color: rgba(61,255,176,.6); background: rgba(61,255,176,.1); box-shadow: 0 0 22px -6px rgba(61,255,176,.7); }
.reg-toggle.on .knob { background: rgba(61,255,176,.35); }
.reg-toggle.on .knob::after { transform: translateX(20px); background: #3DFFB0; }
.reg-toggle:disabled { opacity: .6; cursor: wait; }

/* Pantalla de espera (registro cerrado) */
.wait { text-align: center; padding: 46px 24px; }
.wait h2 { font-size: clamp(30px, 6vw, 44px); text-transform: uppercase; font-style: italic; margin: 18px 0 10px;
  background: var(--sol); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wait p { color: #E3C6E8; margin: 0 auto; max-width: 380px; }
.wait-ring { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; position: relative; display: grid; place-items: center; font-size: 38px;
  background: radial-gradient(circle, rgba(255,46,136,.25), transparent 70%); }
.wait-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent;
  border-top-color: #FF2E88; border-right-color: #FF8A3D; animation: spin 1.3s linear infinite; }
.wait-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid transparent;
  border-bottom-color: #29E3FF; animation: spin 2s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.wait-dots::after { content: ""; animation: dots 1.5s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.wait .live { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Al agua: muñequito que salta ---------- */
.plunge { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 30%, rgba(42,22,72,.85), rgba(8,4,15,.88)); animation: fadeIn .3s; overflow: hidden; }
.plunge.s-out, .pl-note.s-out { opacity: 0; transition: opacity .5s; }
.pl-name { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); text-align: center; white-space: nowrap; max-width: 94vw;
  font: 400 clamp(40px, 8vw, 92px)/1 var(--serif); text-transform: uppercase; font-style: italic; color: #29E3FF;
  text-shadow: 0 4px 0 #08263a, 0 0 34px rgba(41,227,255,.6); animation: pop .5s cubic-bezier(.2,1.6,.4,1); transition: top .7s cubic-bezier(.3,1.3,.5,1), transform .7s; }
.pl-name small { display: block; font: 600 clamp(15px, 2.4vw, 22px)/1.6 var(--sans); font-style: normal; text-transform: none; color: #FFD84A; text-shadow: none; }
.plunge.s-man .pl-name { top: 22%; transform: translate(-50%, -50%) scale(.55); }
.pl-man { position: absolute; left: 50%; top: 38%; width: clamp(70px, 9vw, 100px); color: #29E3FF; opacity: 0; transform: translate(-50%, 0) scale(.2);
  filter: drop-shadow(0 0 12px rgba(41,227,255,.8)); transform-origin: 50% 60%; }
.pl-man svg { display: block; width: 100%; }
.plunge.s-man .pl-man { opacity: 1; transform: translate(-50%, 0); transition: opacity .3s, transform .5s cubic-bezier(.3,1.6,.5,1); animation: idle .5s ease-in-out .5s 2 alternate; }
@keyframes idle { to { transform: translate(-50%, -8px); } }
.pl-man path { transition: transform .3s; transform-box: fill-box; }
.pl-man .arm-l { transform-origin: 100% 100%; } .pl-man .arm-r { transform-origin: 0 100%; }
.plunge.s-jump .pl-man { animation: dive 1.5s cubic-bezier(.45,0,.6,1) forwards; }
.plunge.s-jump .arm-l { transform: rotate(55deg); } .plunge.s-jump .arm-r { transform: rotate(-55deg); }
@keyframes dive {
  0% { transform: translate(-50%, 0); }
  18% { transform: translate(-50%, 16px) scaleY(.82); }
  45% { transform: translate(-50%, -16vh) rotate(-30deg); }
  70% { transform: translate(-50%, 4vh) rotate(150deg); }
  100% { transform: translate(-50%, 33vh) rotate(180deg); }
}
.plunge.s-in .pl-man { opacity: 0; transition: opacity .12s; }
.pl-note { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 56; white-space: nowrap; pointer-events: none;
  display: flex; align-items: center; gap: .25em; font: 400 clamp(36px, 7.5vw, 84px)/1.3 var(--serif); text-transform: uppercase; font-style: italic;
  animation: notePop .7s cubic-bezier(.2,1.6,.4,1); }
.pl-note .emo { font-style: normal; font-size: .85em; filter: drop-shadow(0 0 16px rgba(41,227,255,.7)); }
.pl-note .txt { padding: .12em .12em 0 0; background: var(--sol); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2A0838) drop-shadow(0 0 26px rgba(255,46,136,.6)); }
@keyframes notePop { from { transform: translate(-50%, -20%) scale(.3) rotate(-8deg); opacity: 0; } }
.burst { position: fixed; z-index: 54; border-radius: 50%; background: #8af0ff; box-shadow: 0 0 8px #29E3FF; pointer-events: none; animation: burstFly linear forwards; }
@keyframes burstFly {
  0% { transform: translate(-50%, -50%); }
  45% { transform: translate(calc(-50% + var(--dx) * .6), calc(-50% + var(--dy))); }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) * -.1 + 160px)); opacity: 0; }
}
.splash-ring { position: fixed; z-index: 54; width: 20px; height: 8px; border: 3px solid #8af0ff; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  animation: ring 1.1s ease-out forwards; }
@keyframes ring { to { width: 460px; height: 70px; opacity: 0; border-width: 1px; } }

/* ---------- Franja que da la vuelta ---------- */
.marquee { position: sticky; top: 0; z-index: 30; overflow: hidden; height: 36px; display: flex; align-items: center;
  background: var(--sol); color: #1A0B2E; border-bottom: 2px solid #1A0B2E; box-shadow: 0 6px 24px -8px rgba(255,46,136,.8); }
.mq-track { display: flex; width: max-content; animation: mq 28s linear infinite; }
.mq-run { display: flex; align-items: center; flex: none; }
.mq-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; white-space: nowrap;
  font: 400 19px/1 var(--serif); text-transform: uppercase; font-style: italic; letter-spacing: .05em; }
.mq-item svg { width: 19px; height: 19px; }
.mq-star { font-size: 13px; opacity: .7; }
@keyframes mq { to { transform: translateX(-50%); } }
.adm-top { top: 36px; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation-duration: 120s; } }

/* ---------- Ganador: sube la montaña y le cae la corona ---------- */
.summit { position: fixed; inset: 0; z-index: 50; overflow: hidden; animation: fadeIn .3s;
  background: radial-gradient(900px 420px at 50% 100%, rgba(255,138,61,.45), transparent 65%), linear-gradient(180deg, rgba(30,8,56,.94), rgba(58,11,79,.94) 60%, rgba(106,22,96,.94)); }
.summit.s-out { opacity: 0; transition: opacity .5s; }
.sm-mount { position: absolute; left: 50%; bottom: 0; width: min(92vw, 760px); height: 54vh; transform: translateX(-50%); animation: mountUp .7s cubic-bezier(.2,1,.3,1); }
.summit.quick .sm-mount { animation: none; }
.sm-mount > svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(255,46,136,.45)); }
@keyframes mountUp { from { transform: translate(-50%, 60%); } }
.sm-man { position: absolute; left: 50%; top: 3%; width: clamp(40px, 6vw, 62px); transform: translate(-50%, -100%); color: #FFD84A;
  filter: drop-shadow(0 0 10px rgba(255,216,74,.8)); animation: climb 3s linear .5s both; }
.summit.quick .sm-man { animation: none; }
@keyframes climb {
  0% { left: 4%; top: 100%; }
  35% { left: 30%; top: 46%; }
  48% { left: 40%; top: 57%; }
  100% { left: 50%; top: 3%; }
}
.sm-body svg { display: block; width: 100%; }
.sm-body path { transform-box: fill-box; }
.summit:not(.s-top) .sm-body .leg-l { transform-origin: 0 0; animation: legA .36s ease-in-out infinite alternate; }
.summit:not(.s-top) .sm-body .leg-r { transform-origin: 0 0; animation: legA .36s ease-in-out infinite alternate-reverse; }
.summit:not(.s-top) .sm-body { animation: bob .18s ease-in-out infinite alternate; }
@keyframes legA { from { transform: rotate(-22deg); } to { transform: rotate(18deg); } }
@keyframes bob { to { transform: translateY(-3px); } }
.summit.s-top .sm-body .arm-l { transform-origin: 100% 100%; transform: rotate(70deg); transition: transform .3s; }
.summit.s-top .sm-body .arm-r { transform-origin: 0 100%; transform: rotate(-70deg); transition: transform .3s; }
.summit.s-top:not(.quick) .sm-body { animation: hop .45s ease-out 2; }
@keyframes hop { 50% { transform: translateY(-14px); } }
.sm-crown { position: absolute; left: 50%; top: -34%; width: 72%; transform: translate(-50%, -80vh) rotate(-25deg); opacity: 0; }
.sm-crown svg { display: block; width: 100%; filter: drop-shadow(0 0 14px rgba(255,216,74,.9)); }
.summit.s-crown .sm-crown { opacity: 1; transform: translate(-50%, 0) rotate(0); transition: transform .7s cubic-bezier(.3,1.5,.5,1), opacity .2s; }
.summit.s-crown .sm-crown::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(255,216,74,.9); animation: shine 1s ease-out .6s; }
@keyframes shine { to { box-shadow: 0 0 0 120px rgba(255,216,74,0); } }
.sm-title { position: absolute; left: 50%; top: 7%; width: 94vw; text-align: center; transform: translateX(-50%) scale(.6); opacity: 0; }
.summit.s-title .sm-title { opacity: 1; transform: translateX(-50%); transition: transform .6s cubic-bezier(.2,1.6,.4,1), opacity .3s; }
.sm-tag { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: #FFD84A; }
.sm-name { font: 400 clamp(40px, 8vw, 92px)/1.1 var(--serif); text-transform: uppercase; font-style: italic; padding: .08em .1em 0 0; display: inline-block;
  background: var(--sol); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #2A0838) drop-shadow(0 0 28px rgba(255,46,136,.6)); }
.sm-tt { color: #29E3FF; font-size: clamp(16px, 2.4vw, 22px); font-weight: 600; }
.sm-prize { display: inline-block; margin-top: 14px; padding: 9px 20px; border-radius: 999px; font-size: clamp(16px, 2.6vw, 24px);
  background: rgba(255,216,74,.16); border: 1px solid rgba(255,216,74,.6); color: #FFF4FB; }
.sm-prize b { color: #FFD84A; }
