/* MrHoms Juegos: estilo compartido. Transmisión de estadio de noche; --accent cambia por deporte (NFL rojo, Liga MX verde). */
:root {
  --night: #120d0c; --panel: #1d1614; --line: #3a2c28;
  --red: #e5281e; --coral: #ff7a4d; --gold: #f2b84b;
  --turf: #1f6b3a; --turf2: #24793f; --chalk: #f7efe6; --muted: #b9a79f;
  --ok: #3fd27a; --bad: #ff5a4f;
  --accent: var(--red); --accent2: var(--coral); --accent-deep: #8a170f; --glow: #3a1712;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  color-scheme: dark;
}
body.liga { --accent: #0f9d58; --accent2: #3fd27a; --accent-deep: #0a5a33; --glow: #0f2a1b; }
body.expert { --accent: #7a2bd1; --accent2: #b07bff; --accent-deep: #45168a; --glow: #23113a; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(120% 80% at 50% -10%, var(--glow) 0%, var(--night) 55%) fixed, var(--night); color: var(--chalk); font-family: var(--body); font-size: 17px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: calc(16px + env(safe-area-inset-top, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)); }
.wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
section { display: flex; flex-direction: column; gap: 14px; }
a { color: var(--gold); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 13px; letter-spacing: .18em; background: var(--accent); color: #fff; padding: 5px 10px; text-transform: uppercase; text-decoration: none; }
.handle { font-weight: 800; font-size: 14px; color: var(--muted); text-decoration: none; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 12vw, 68px); line-height: .92; margin: 4px 0 0; text-transform: uppercase; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); }
h2.sec { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 10px 0 0; text-transform: uppercase; }
.kicker { font-family: var(--mono); font-size: 14px; color: var(--gold); letter-spacing: .08em; }
.lead, .prose p, .prose li { color: var(--muted); line-height: 1.55; margin: 0; }
.prose { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 8px 0 0; color: var(--chalk); text-transform: uppercase; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose b { color: var(--chalk); }
.how { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.how div { background: var(--panel); border: 2px solid var(--line); padding: 10px 12px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.how b { display: block; color: var(--chalk); font-size: 15px; }
button { font: inherit; cursor: pointer; }
.cta { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #fff; border: 0; font-family: var(--display); font-size: 28px; letter-spacing: .03em; padding: 15px 20px 12px; text-transform: uppercase; box-shadow: 0 8px 0 var(--accent-deep); transition: transform .08s, box-shadow .08s; text-align: center; text-decoration: none; display: block; }
.cta:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--accent-deep); }
.cta[disabled] { opacity: .45; cursor: default; }
.ghost { background: transparent; color: var(--chalk); border: 2px solid var(--chalk); padding: 12px 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; text-align: center; text-decoration: none; display: block; }
:is(.cta, .ghost, .opt, .life, .game-card):focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.small { font-size: 13px; color: var(--muted); text-align: center; margin: 0; line-height: 1.5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }
.foot { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 13px; margin-top: 10px; }
.foot a { color: var(--muted); }

/* ---- portada de juegos ---- */
.game-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; text-decoration: none; color: var(--chalk); border: 3px solid var(--gold); background: linear-gradient(160deg, var(--c1), var(--panel) 65%); }
.game-card .ico { font-size: 40px; line-height: 1; }
.game-card b { font-family: var(--display); font-weight: 400; font-size: 34px; text-transform: uppercase; line-height: 1; }
.game-card span { color: var(--muted); line-height: 1.4; }
.game-card i { font-style: normal; font-family: var(--mono); color: var(--gold); font-size: 14px; }

/* ---- marcador ---- */
.board { display: grid; grid-template-columns: repeat(4, 1fr); background: #0b0807; border: 3px solid var(--gold); font-variant-numeric: tabular-nums; }
.board div { padding: 6px 4px 4px; text-align: center; border-right: 2px solid #2b201c; min-width: 0; }
.board div:last-child { border-right: 0; }
.board small { display: block; font-size: 11px; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.board b { font-family: var(--mono); font-size: 22px; color: var(--gold); white-space: nowrap; }
.board b.hot { color: var(--coral); }
.board #lives { font-size: 15px; letter-spacing: -2px; }

/* ---- campo NFL ---- */
.field { position: relative; height: 66px; border: 3px solid var(--chalk); background: repeating-linear-gradient(90deg, var(--turf) 0 10%, var(--turf2) 10% 20%); overflow: hidden; }
.field .ez { position: absolute; top: 0; bottom: 0; width: 9%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 11px; letter-spacing: .1em; writing-mode: vertical-rl; transform: rotate(180deg); }
.field .ez.home { left: 0; background: var(--accent-deep); } .field .ez.goal { right: 0; background: var(--accent); }
.field .yards { position: absolute; left: 9%; right: 9%; top: 0; bottom: 0; }
.field .yl { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(247, 239, 230, .55); }
.field .yn { position: absolute; bottom: 2px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; color: rgba(247, 239, 230, .8); }
.field .fd { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: left .6s; }
.field .ball { position: absolute; top: 46%; width: 28px; height: 18px; border-radius: 50%; background: #7a3e16; border: 2px solid #fff; transform: translate(-50%, -50%); transition: left .6s cubic-bezier(.3, 1.4, .5, 1); }
/* ---- cancha de futbol ---- */
.pitch { position: relative; height: 74px; border: 3px solid var(--chalk); background: repeating-linear-gradient(90deg, var(--turf) 0 8.33%, var(--turf2) 8.33% 16.66%); overflow: hidden; }
.pitch .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(247, 239, 230, .7); }
.pitch .circle { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; border: 2px solid rgba(247, 239, 230, .7); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box { position: absolute; top: 18%; bottom: 18%; width: 12%; border: 2px solid rgba(247, 239, 230, .7); }
.pitch .box.l { left: -2px; border-left: 0; } .pitch .box.r { right: -2px; border-right: 0; }
.pitch .goal { position: absolute; right: 0; top: 36%; bottom: 36%; width: 6px; background: #fff; }
.pitch .ball { position: absolute; top: 50%; font-size: 24px; line-height: 1; transform: translate(-50%, -50%); transition: left .6s cubic-bezier(.3, 1.4, .5, 1); }

/* ---- ruleta ---- */
.wheel-box { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto 0; max-width: 100%; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid var(--chalk); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); position: relative; transition: transform 2.6s cubic-bezier(.12, .7, .1, 1); }
.wheel::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 38%, rgba(0, 0, 0, .18) 70%, rgba(0, 0, 0, .35) 100%), radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .18), transparent 45%); pointer-events: none; }
.wheel .lbl { position: absolute; left: 50%; top: 50%; width: 36%; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(var(--r, 92px) * -1)); z-index: 1; }
.wheel .lbl .up { display: flex; flex-direction: column; align-items: center; gap: 2px; transform: rotate(calc(-1 * (var(--a) + var(--R, 0deg)))); transition: transform 2.6s cubic-bezier(.12, .7, .1, 1); }
.wheel.instant, .wheel.instant .lbl .up { transition: none; }
.wheel .lbl .ico { font-size: clamp(22px, 6.4vw, 30px); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.wheel .lbl .nm { font-family: var(--display); font-size: clamp(12px, 3.5vw, 15px); line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.pointer { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--gold); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); z-index: 2; }
.hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--night); border: 4px solid var(--chalk); display: flex; align-items: center; justify-content: center; font-size: clamp(22px, 7vw, 32px); z-index: 2; }
.cat-pill { align-self: flex-start; font-family: var(--display); font-size: 22px; padding: 6px 14px 3px; color: #fff; text-transform: uppercase; letter-spacing: .03em; }

/* ---- pregunta ---- */
.timer { height: 8px; background: var(--line); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--accent2)); transform-origin: left; }
.qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.q { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 7vw, 38px); line-height: 1.05; margin: 0; text-wrap: balance; }
.opts { display: grid; gap: 10px; }
.opt { position: relative; overflow: hidden; text-align: left; background: var(--panel); color: var(--chalk); border: 2px solid var(--line); padding: 13px 16px; font-weight: 600; font-size: 18px; display: flex; gap: 12px; align-items: center; }
.opt .k { font-family: var(--mono); font-size: 14px; color: var(--gold); width: 22px; flex: none; }
.opt .poll { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(63, 140, 255, .22); transition: width .8s; }
.opt .pct { margin-left: auto; font-family: var(--mono); font-size: 14px; color: #9cc2ff; }
.opt > span { position: relative; }
.opt:hover:not([disabled]) { border-color: var(--accent2); }
.opt[disabled] { cursor: default; }
.opt.gone { opacity: .18; text-decoration: line-through; }
.opt.right { background: #133a24; border-color: var(--ok); }
.opt.wrong { background: #3d1513; border-color: var(--bad); }
.opt.dim { opacity: .5; }
.lifelines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.life { background: var(--panel); border: 2px solid var(--line); color: var(--chalk); padding: 8px 6px; font-size: 13px; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.life b { display: block; font-size: 22px; }
.life[disabled] { opacity: .3; cursor: default; }
.fact { background: var(--panel); border-left: 6px solid var(--gold); padding: 12px 16px; line-height: 1.5; }
.fact .verdict { font-family: var(--display); font-size: 25px; display: block; margin-bottom: 2px; }
.fact .verdict.ok { color: var(--ok); } .fact .verdict.no { color: var(--bad); }
.fact p { margin: 0; }
.fire { font-family: var(--display); font-size: 22px; color: var(--coral); letter-spacing: .04em; }

/* ---- resultado ---- */
.card { background: linear-gradient(160deg, var(--glow), var(--panel) 60%); border: 3px solid var(--gold); padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.card .k { font-size: 12px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; font-weight: 800; }
.card .big { font-family: var(--display); font-size: clamp(38px, 11vw, 56px); line-height: .95; color: var(--gold); text-transform: uppercase; text-wrap: balance; }
.card .grid { font-size: 24px; letter-spacing: 2px; line-height: 1.3; word-break: break-all; }
.card .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-variant-numeric: tabular-nums; }
.card .stats b { display: block; font-family: var(--mono); font-size: 24px; }
.card .stats span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.card .tag { font-weight: 800; color: var(--coral); }
.expert-offer { border: 3px solid #b07bff; background: linear-gradient(160deg, #2a1546, var(--panel) 70%); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.expert-offer b { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 8.6vw, 42px); line-height: 1; text-transform: uppercase; color: #fff; }
.expert-offer span { color: var(--muted); line-height: 1.45; }
.expert-offer .cta { --accent: #7a2bd1; --accent2: #b07bff; --accent-deep: #45168a; font-size: 24px; }
.prize { border: 2px dashed var(--coral); padding: 14px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.prize b { font-family: var(--display); font-size: 24px; font-weight: 400; }
.code { font-family: var(--mono); font-size: 22px; letter-spacing: .1em; background: var(--chalk); color: var(--night); padding: 8px 12px; user-select: all; align-self: center; }
.toast { min-height: 1.3em; text-align: center; color: var(--ok); font-weight: 800; margin: 0; }
.next-day { text-align: center; font-family: var(--mono); color: var(--muted); margin: 0; }
.next-day b { color: var(--chalk); }
.td { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font-family: var(--display); font-size: clamp(56px, 18vw, 120px); color: var(--gold); text-shadow: 0 6px 0 var(--accent), 0 0 40px rgba(242, 184, 75, .6); animation: td 1.6s ease-out forwards; z-index: 20; text-align: center; }
@keyframes td { 0% { transform: scale(.3); opacity: 0; } 20% { transform: scale(1.1); opacity: 1; } 75% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* ---- anuncios ---- */
.ad-slot { min-height: 0; text-align: center; }
.ad-slot .ad-label { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.ad-modal { position: fixed; inset: 0; z-index: 50; background: rgba(8, 5, 4, .92); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-left, 0px)); }
.ad-box { width: min(420px, 100%); background: var(--panel); border: 3px solid var(--gold); display: flex; flex-direction: column; gap: 12px; padding: 18px; text-align: center; }
.ad-box .ad-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .14em; background: var(--gold); color: var(--night); padding: 3px 8px; }
.ad-box .house { background: linear-gradient(160deg, var(--coral), var(--red)); padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; }
.ad-box .house b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: #fff; text-transform: uppercase; }
.ad-box .house span { color: #fff; }
.ad-box .count { font-family: var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .wheel, .wheel .lbl .up, .field .ball, .field .fd, .pitch .ball, .opt .poll { transition: none; } .td { animation: none; opacity: 0; } }
