:root {
  --bg0: #0d0624; --bg1: #2a1272; --glass: rgba(255,255,255,.10); --line: rgba(255,255,255,.28);
  --text: #fff; --muted: #b9b0e8; --cyan: #8dff5c; --gold: #ff9a1f; --pink: #ff4fa3; --orange: #ff9a1f;
  --green: #35d27a; --red: #ff4d5a;
  --a: #ff4d5a; --b: #3b82f6; --c: #ffc531; --d: #27c26a;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(ellipse at 50% -10%, #6a3fe0 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, #ff7a1a33 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, #7cff5c22 0%, transparent 45%),
    linear-gradient(160deg, var(--bg1), var(--bg0)) fixed;
  color: var(--text); font-family: "Segoe UI", system-ui, sans-serif; overflow: hidden;
  -webkit-user-select: none; user-select: none;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; }

/* Título estilo videojuego: blanco grueso con contorno de color */
@font-face { font-family: "Creepster"; src: url(/fonts/Creepster.ttf) format("truetype"); font-display: swap; }
.game-title { font-family: "Arial Black", "Segoe UI Black", Impact, sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: #fff; -webkit-text-stroke: .09em var(--stroke, #3a1480); paint-order: stroke fill; text-shadow: 0 .06em 0 var(--stroke, #3a1480), 0 .14em .3em #0006; }

/* ---------- Íconos ---------- */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; }
.ico svg, .pimg svg, .pimg img, .trophy svg, .icon svg { width: 100%; height: 100%; display: block; }
.pimg { display: inline-block; width: 1em; height: 1em; }
.pimg img { object-fit: contain; }
.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: currentColor; margin-right: .45em; vertical-align: .02em; }
.dot.off { background: none; border: 2px solid currentColor; }

/* ---------- Opciones A-D ---------- */
.opt { position: relative; display: flex; align-items: center; gap: 1rem; border-radius: 22px; padding: 1rem 1.4rem; font-weight: 800; text-align: left; background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 80%, #fff) 0%, var(--c1) 55%); border: 3px solid rgba(255,255,255,.55); box-shadow: 0 6px 0 color-mix(in srgb, var(--c1) 55%, #000), 0 14px 24px #0005; color: #fff; transition: transform .1s, opacity .3s, filter .3s; }
.opt .l { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; background: rgba(0,0,0,.28); display: grid; place-items: center; font-weight: 900; }
.opt:nth-child(1) { --c1: var(--a); } .opt:nth-child(2) { --c1: var(--b); }
.opt:nth-child(3) { --c1: var(--c); color: #2a1a00; } .opt:nth-child(4) { --c1: var(--d); }
.opt.ok { outline: 6px solid #fff; box-shadow: 0 0 50px var(--green), 0 6px 0 #0a6a35; transform: scale(1.04); }
.opt.dim { opacity: .25; filter: grayscale(.8); }
.opt:active:not(:disabled) { transform: translateY(4px); }

/* ---------- Palabra oculta ---------- */
.letters { display: flex; flex-wrap: wrap; justify-content: center; gap: .35em; }
.box { width: 1.5em; height: 1.9em; display: grid; place-items: center; font-weight: 900; font-size: 1.6em; border-radius: 12px; background: rgba(0,0,0,.28); border: 3px solid var(--line); border-bottom-width: 6px; }
.box.on { background: linear-gradient(180deg, #ffe07a, var(--gold)); color: #2a1a00; border-color: #fff; }
.box.full { background: linear-gradient(180deg, #6df0a5, var(--green)); color: #fff; border-color: #fff; }

.bar { height: 14px; background: #0006; border-radius: 99px; overflow: hidden; border: 2px solid var(--line); }
.bar > i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), #6aa8ff); transform-origin: left; }
.bar.low > i { background: linear-gradient(90deg, var(--red), var(--orange)); }
.pip { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 50%; border: 3px solid var(--gold); margin: 0 .15em; }
.pip.on { background: var(--gold); box-shadow: 0 0 16px var(--gold); }

.btn { background: linear-gradient(180deg, #ffe07a, var(--gold)); color: #2a1a00; font-weight: 900; font-size: 1.3em; padding: .7em 1.6em; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 6px 0 #b07d00, 0 12px 20px #0005; text-transform: uppercase; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #b07d00; }
.btn:disabled { opacity: .4; }
.btn.ghost { background: var(--glass); color: #fff; box-shadow: none; border-color: var(--line); }

/* ---------- Cuenta regresiva / anuncio de ronda (estilo LEVEL UP) ---------- */
.burst { position: relative; width: min(100%, 34em); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; }
.rays { position: absolute; inset: -30%; background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.16) 0 7deg, transparent 7deg 20deg); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 65%); mask-image: radial-gradient(circle, #000 15%, transparent 65%); animation: spin 14s linear infinite; }
.star { position: absolute; width: 78%; aspect-ratio: 1; clip-path: polygon(50% 0, 62% 33%, 98% 35%, 70% 57%, 80% 91%, 50% 71%, 20% 91%, 30% 57%, 2% 35%, 38% 33%); background: linear-gradient(160deg, #8fe0ff, #2f7bff 55%, #5a2ad0); filter: drop-shadow(0 0 30px #5fd0ff); }
.star.back { width: 92%; background: #fff; opacity: .9; }
.ring { position: absolute; width: 60%; aspect-ratio: 1; border: 6px solid #fff; border-radius: 50%; opacity: 0; animation: ring 1s ease-out infinite; }
.count { position: relative; font-size: 9em; line-height: 1; z-index: 2; --stroke: #1b3fb8; }
.ribbon { position: relative; z-index: 3; transform: skewX(-14deg); background: linear-gradient(90deg, #2a8dff, #5a2ad0); border: 4px solid #fff; padding: .25em 1.6em; margin-top: -1.2em; box-shadow: 0 10px 24px #0007; }
.ribbon span { display: inline-block; transform: skewX(14deg); font-size: 1.8em; --stroke: #1b1b6b; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 65% { transform: scale(1.15) } 100% { transform: scale(1); opacity: 1 } }
@keyframes slam { 0% { transform: scale(2.6); opacity: 0 } 60% { transform: scale(.92); opacity: 1 } 100% { transform: scale(1) } }
@keyframes floaty { 50% { transform: translateY(-.15em) } }
.pop { animation: pop .45s ease-out both; }
.slam { animation: slam .5s cubic-bezier(.2,.9,.3,1) both; }
.floaty { animation: floaty 2.4s ease-in-out infinite; }

/* ---------- Tema Halloween / PS5 ---------- */
:root { --glass: rgba(20,10,50,.55); --line: rgba(255,255,255,.16); --muted: #b8a9ec; }
.btn { background: linear-gradient(180deg, #ffb347, var(--gold)); color: #2a1000; border: 2px solid #fff8; border-radius: 999px; box-shadow: 0 0 28px #ff9a1f66, 0 8px 18px #0006; }
.btn:active:not(:disabled) { box-shadow: 0 0 12px #ff9a1f66; }
.btn.ghost { background: var(--glass); }
.opt { border-radius: 18px; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 0 0 1px #0006, 0 10px 24px #0007; }
.box { border-radius: 14px; background: rgba(10,4,30,.6); }
.box.on { background: linear-gradient(180deg, #ffb347, var(--gold)); color: #2a1000; }
.bar { background: #0008; border: 1px solid var(--line); }
.bar > i { background: linear-gradient(90deg, #8dff5c, #c6ff6b); box-shadow: 0 0 14px #8dff5c; }
.pip.on { box-shadow: 0 0 16px var(--gold); }
.star { background: linear-gradient(160deg, #ffc46b, #ff7a1a 55%, #7a2ad0); filter: drop-shadow(0 0 30px #ff9a1f); }
.count { --stroke: #7a2d00; }
.ribbon { background: linear-gradient(90deg, #ff7a1a, #7a2ad0); }

/* Número de la cuenta regresiva: tipografía sólida (sin cursiva) y centrado en la estrella */
.count { font-family: Impact, "Arial Narrow Bold", "Arial Black", sans-serif; font-style: normal; font-weight: 400; letter-spacing: 0; line-height: .86; -webkit-text-stroke: .075em #6b2600; paint-order: stroke fill; stroke-linejoin: round; text-shadow: 0 .05em 0 #6b2600, 0 .09em .18em #0008; transform: translateY(.045em); }
.count.slam { animation: slam-num .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes slam-num { 0% { transform: translateY(.045em) scale(2.4); opacity: 0 } 60% { transform: translateY(.045em) scale(.92); opacity: 1 } 100% { transform: translateY(.045em) scale(1) } }
