@import url("https://fonts.googleapis.com/css2?family=Anton&family=Chakra+Petch:wght@500;600;700&display=swap");
:root {
  --k: 1;
  --glass: rgba(14, 14, 18, 0.34);
  --glass-strong: rgba(14, 14, 18, 0.62);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.42);
  --text: #f5f5f7;
  --muted: rgba(235, 235, 245, 0.62);
  --faint: rgba(235, 235, 245, 0.38);
  --accent: #ff3d5a;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #000; color: var(--text); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pantallas fuera del juego ---------- */
.screen { min-height: 100%; }
.center { display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #1b1b22 0%, #000 60%); }
.card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px;
  backdrop-filter: blur(20px); }
.center-text { text-align: center; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,61,90,.18); }
h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.muted { margin: 0; color: var(--muted); font-size: 14px; }
.hint { margin: 0; color: var(--faint); font-size: 12px; min-height: 1em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--muted); font-weight: 500; }
input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text); border-radius: 12px;
  padding: 13px 14px; font: 16px var(--font); outline: none; transition: border-color .15s; }
input:focus { border-color: rgba(255,255,255,0.35); }
#pin { text-transform: uppercase; letter-spacing: .35em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
button { font-family: var(--font); cursor: pointer; }
.primary { background: #fff; color: #000; border: 0; border-radius: 14px; padding: 14px; font-size: 15px; font-weight: 600; transition: transform .1s, opacity .15s; }
.primary:active { transform: scale(.98); }
.primary:disabled { opacity: .5; }
.ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 12px 18px; font-size: 14px; }
.err { margin: 0; color: var(--bad); font-size: 13px; min-height: 1em; }
.pos { font-size: 84px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.padcheck { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 12px; color: var(--muted);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 12px 14px; width: 100%; }
.padcheck svg { width: 26px; height: 26px; flex: none; color: var(--text); }
.padcheck.ok svg { color: var(--ok); }

/* ---------- Juego ---------- */
#sPlay { position: fixed; inset: 0; background: #000; }
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.toast { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px;
  background: rgba(18,18,22,0.85); border: 1px solid var(--line); font-size: 13px; color: var(--muted); z-index: 9; pointer-events: none; }

.hud { position: absolute; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-side { display: flex; gap: 8px; min-width: 120px; }
.hud-side.right { justify-content: flex-end; }
.ib { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: rgba(12,12,16,0.5); border: 1px solid var(--line); color: var(--text); transition: background .15s, transform .1s; touch-action: none; }
.ib svg { width: 17px; height: 17px; }
.ib.on { background: rgba(255,255,255,0.9); color: #000; }
.ib.held { transform: scale(.92); background: rgba(255,255,255,0.28); }
.timer-pill { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 9px; border-radius: 999px;
  background: rgba(12,12,16,0.55); border: 1px solid var(--line); overflow: hidden; }
.timer-pill .time { font-size: 15px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.timer-pill.low .time { color: var(--warn); }
.timer-pill.critical .time { color: var(--bad); }
.timer-pill .sep { width: 1px; height: 14px; background: var(--line); }
.ping { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ping i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.ping i.good { background: var(--ok); } .ping i.mid { background: var(--warn); } .ping i.bad { background: var(--bad); }
.bar { position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: rgba(255,255,255,0.75); transform-origin: left; transition: transform .25s linear; }
.timer-pill.low .bar i { background: var(--warn); } .timer-pill.critical .bar i { background: var(--bad); }

/* ---------- Controles táctiles ---------- */
.touch { position: absolute; inset: 0; z-index: 6; }
.zone { position: absolute; bottom: 0; top: 60px; touch-action: none; }
.zone.left { left: 0; width: 42%; }
.zone.right { right: 0; width: 58%; }
.fstick { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.05); pointer-events: none; z-index: 7; }
.fstick .knob, .fixstick .knob { position: absolute; left: 50%; top: 50%; width: 44%; height: 44%; margin: -22% 0 0 -22%; border-radius: 50%;
  background: rgba(255,255,255,0.55); will-change: transform; }
.fixstick { position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(12,12,16,0.32); }
.fixstick.held { border-color: rgba(255,255,255,0.45); }
.cb .txt { font-size: calc(var(--k) * 15px); font-weight: 600; letter-spacing: .02em; }
.cb.face-y .txt { color: #fde68a; } .cb.face-x .txt { color: #93c5fd; } .cb.face-b .txt { color: #fca5a5; } .cb.face-a .txt { color: #86efac; }
.mode-menu { position: absolute; top: 56px; left: max(14px, env(safe-area-inset-left)); z-index: 11; display: flex; flex-direction: column; gap: 4px; padding: 6px; min-width: 250px;
  border-radius: 16px; background: rgba(18,18,22,0.92); border: 1px solid var(--line); }
.mode-menu button { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 11px; border: 0; background: transparent; color: var(--text); text-align: left; }
.mode-menu button svg { width: 20px; height: 20px; flex: none; }
.mode-menu button b { display: block; font-size: 13px; font-weight: 600; }
.mode-menu button small { display: block; font-size: 11px; color: var(--muted); }
.mode-menu button.on { background: rgba(255,255,255,0.1); }
.tip { position: absolute; z-index: 12; padding: 6px 11px; border-radius: 10px; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
  background: rgba(250,250,252,0.95); color: #0b0b0d; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
#ctrls { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.cb { position: absolute; pointer-events: auto; touch-action: none; display: flex; align-items: center; justify-content: center; padding: 0;
  border-radius: 50%; background: rgba(12, 12, 16, 0.42); border: 1px solid rgba(255,255,255,0.2); color: var(--text);
  transition: transform .08s, background .12s; will-change: transform; }
.cb svg { width: 40%; height: 40%; }
.cb .lbl { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.78); text-shadow: 0 1px 4px rgba(0,0,0,.8); pointer-events: none; }
.cb.sq { border-radius: 22px; }
.cb.key { border-radius: 12px; }
.cb.primary { border-color: rgba(255,255,255,0.55); }
.cb.primary::after { content: ""; position: absolute; inset: 6px; border-radius: inherit; border: 1px solid rgba(255,61,90,0.65); pointer-events: none; }
.cb.held { transform: scale(.93); background: rgba(255,255,255,0.26); border-color: var(--line-strong); }
.cb.on { background: rgba(255,255,255,0.88); color: #0a0a0a; }
.cb.on .lbl { color: #fff; }
.chip { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); z-index: 8; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(18,18,22,0.85); border: 1px solid var(--line); }
.chip.action { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; gap: 10px; align-items: center; color: var(--muted); }
.chip.action button { background: #fff; color: #000; border: 0; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }

/* Rueda de armas */
.wheel { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
/* Mini selector junto a tu dedo: la rueda real del juego se ve en el centro del video, sin taparla. */
.ring { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(10,10,14,0.55); }
.ring .seg { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: rgba(255,255,255,0.22); transition: background .1s, width .1s, height .1s, margin .1s; }
.ring .seg.on { background: #fff; width: 18px; height: 18px; margin: -9px; }
.ring .pointer { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.wheel-side { position: absolute; right: max(18px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.wbtn { display: flex; align-items: center; gap: 10px; min-width: 150px; padding: 8px 14px 8px 8px; border-radius: 999px; touch-action: none;
  background: rgba(18,18,22,0.85); border: 1px solid var(--line); color: var(--text); font-size: 12px; font-weight: 500; }
.wbtn b { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); font-size: 12px; }
.wbtn.held { background: rgba(255,255,255,0.3); }
.wheel-hint { position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; font-size: 12px; color: var(--muted); white-space: nowrap; background: rgba(18,18,22,0.85); border: 1px solid var(--line); }

/* Hoja con todos los botones */
.sheet, .help { position: absolute; z-index: 10; left: 50%; top: max(58px, calc(env(safe-area-inset-top) + 50px)); transform: translateX(-50%); width: min(720px, calc(100% - 32px)); max-height: calc(100% - 72px); overflow: auto;
  padding: 16px 18px 18px; border-radius: 22px; background: rgba(16,16,20,0.86); border: 1px solid var(--line); backdrop-filter: blur(24px); pointer-events: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.sbtn { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; touch-action: none; text-align: left;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: var(--text); }
.sbtn b { flex: none; min-width: 32px; height: 28px; padding: 0 6px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); }
.sbtn span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.sbtn.held { background: rgba(255,255,255,0.25); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; margin-top: 10px; }
.keys kbd { font: 12px ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); white-space: nowrap; justify-self: start; }
.keys span { color: var(--muted); }
.rotate { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: #000; color: var(--muted); font-size: 15px; }
.rotate svg { width: 44px; height: 44px; color: var(--text); }

@media (pointer: fine) { .touchonly { display: none !important; } }
@media (pointer: coarse) { .desk { display: none !important; } }
.sens-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.sens-row input { flex: 1; accent-color: #fff; }
.sens-row b { min-width: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.net-chip { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 9; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fde68a; background: rgba(40,30,8,0.85); border: 1px solid rgba(251,191,36,0.35); pointer-events: none; }
.ts { display: flex; justify-content: center; min-height: 65px; }

/* ================= GABO PLAYS · Sistema Gamer (pantallas públicas) =================
   Solo tres colores: klein 60% · chalk 30% · papaya 10%. Anton + Chakra Petch. Esquinas cortadas. */
.gp { --klein: #0033B0; --chalk: #EEEDE8; --papaya: #FF7B2C; --font-display: "Anton", Impact, "Arial Narrow Bold", sans-serif; --font-ui: "Chakra Petch", "Segoe UI", system-ui, sans-serif; }
.gp-cut-sm { clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.gp-cut-md { clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.gp .screen.center { background: var(--klein); font-family: var(--font-ui); position: relative; overflow: hidden; }
.gp .screen.center::before { content: "»"; position: absolute; right: -2vw; bottom: -8vh; font-family: var(--font-display); font-size: 46vh; line-height: 1; color: var(--chalk); opacity: 1; pointer-events: none; -webkit-text-stroke: 0; mix-blend-mode: normal; }
.gp .screen.center::before { color: transparent; -webkit-text-stroke: 3px var(--chalk); }
.gp .card { position: relative; z-index: 1; background: var(--chalk); color: var(--klein); border: 0; border-radius: 0; backdrop-filter: none;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); padding: 28px 24px; }
.gp .card h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--klein); }
.gp .card .muted, .gp .card p { color: var(--klein); font-weight: 500; }
.gp .card .hint { color: var(--klein); opacity: 1; font-size: 13px; font-weight: 600; }
.gp .eyebrow, .gp .field span { font-family: var(--font-ui); font-size: 14px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--klein); }
.gp .brand { background: var(--papaya); color: var(--klein); padding: 6px 10px; font-size: 19px; line-height: 22px; font-weight: 700; letter-spacing: .1em; }
.gp .brand .live-dot { background: var(--klein); box-shadow: none; width: 10px; height: 10px; animation: gp-pulse 1.2s ease-in-out infinite; }
@keyframes gp-pulse { 50% { opacity: .25; } }
.gp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gp-logo-sm { font-family: var(--font-display); font-size: 26px; letter-spacing: .02em; color: var(--klein); }
.gp input { background: var(--chalk); color: var(--klein); border: 3px solid var(--klein); border-radius: 0; font-family: var(--font-ui); font-weight: 600; }
.gp input::placeholder { color: var(--klein); opacity: .55; }
.gp input:focus { border-color: var(--klein); box-shadow: 0 0 0 3px var(--papaya); }
.gp .card .primary { background: var(--papaya); color: var(--klein); border-radius: 0; font-family: var(--font-ui); font-size: 19px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 14px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.gp .card .ghost { background: var(--klein); color: var(--chalk); border: 0; border-radius: 0; font-family: var(--font-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.gp .card .err { color: var(--klein); font-weight: 700; }
.gp .card .err:not(:empty)::before { content: "! "; }
.gp .pos { font-family: var(--font-display); font-weight: 400; font-size: 120px; line-height: .9; color: var(--klein); }
.gp .padcheck { background: var(--klein); color: var(--chalk); border: 0; border-radius: 0; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.gp .padcheck svg, .gp .padcheck.ok svg { color: var(--papaya); }
.gp .padcheck span { color: var(--chalk); font-weight: 600; }
.gp .ts { min-height: 65px; }

/* Sala apagada */
.gp-hero { position: relative; z-index: 1; width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.gp-chev { font-family: var(--font-display); font-size: 40px; letter-spacing: -.05em; color: var(--papaya); line-height: 1; }
.gp-logo { font-family: var(--font-display); font-size: clamp(84px, 24vw, 120px); line-height: .9; letter-spacing: .01em; color: var(--chalk); }
.gp-badge { background: var(--chalk); color: var(--klein); font-family: var(--font-ui); font-size: 19px; line-height: 22px; font-weight: 700; letter-spacing: .12em; padding: 8px 12px; }
.gp-hero .card { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.gp-lead { font-size: 22px; line-height: 28px; font-weight: 700 !important; margin: 0; }
.gp-lead b { font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: .02em; }
.gp-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; }
.gp-social svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .gp .brand .live-dot { animation: none; } }
/* Manejo: guía horizontal en el joystick (la dirección es lo que importa) */
.fstick.drive::before { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; margin-top: -1px; background: rgba(255,255,255,0.22); border-radius: 2px; }
.fstick.drive::after { content: ''; position: absolute; left: 50%; top: 30%; bottom: 30%; width: 1px; background: rgba(255,255,255,0.18); }
.net-chip.warn { top: 88px; }
.net-chip.info { top: 88px; color: #dbeafe; background: rgba(10,25,60,0.85); border-color: rgba(96,165,250,0.35); }
.fstick.fixed { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }
.fstick.fixed.held { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.tipline { margin-top: 6px; font-size: 12.5px; opacity: .85; }
.keys-mode { grid-column: 1 / -1; margin: 0 0 6px; font-size: 12.5px; opacity: .85; }

/* ---------- Reglas (Sistema Gamer) ---------- */
.gp .rules-card { max-width: 440px; }
.rules-bar { display: grid; grid-auto-flow: column; gap: 6px; }
.rules-bar i { height: 8px; background: rgba(0,51,176,.18); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.rules-bar i.on { background: var(--klein); } .rules-bar i.now { background: var(--papaya); }
.rules-body { min-height: 210px; display: flex; flex-direction: column; gap: 10px; animation: gp-in .35s ease both; }
.rules-num { font-family: var(--font-display); font-size: 72px; line-height: .9; color: var(--papaya); -webkit-text-stroke: 2px var(--klein); }
.gp .rules-body h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; color: var(--klein); }
.gp .rules-body p { margin: 0; font-size: 16px; line-height: 1.45; }
.rules-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rules-list li { display: flex; gap: 10px; align-items: baseline; font-weight: 600; color: var(--klein); }
.rules-list li::before { content: "✕"; color: var(--papaya); font-weight: 700; -webkit-text-stroke: .5px var(--klein); }
.rules-steps { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; }
.rules-steps b { font-family: var(--font-display); font-weight: 400; font-size: 22px; background: var(--klein); color: var(--chalk); padding: 2px 10px; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.rules-steps b.out { background: var(--papaya); color: var(--klein); }
.gp .rules-steps span { color: var(--klein); font-weight: 600; }
.rules-next { position: relative; overflow: hidden; }
.rules-next span { position: relative; z-index: 1; }
.rules-next i { position: absolute; inset: 0; background: rgba(0,51,176,.18); transform-origin: left; transform: scaleX(0); }
.rules-next.wait { opacity: .75; cursor: default; }
.rules-next.wait i { animation: gp-fill var(--wait, 2.2s) linear forwards; }
.rules-quiz { display: flex; flex-direction: column; gap: 8px; }
.gp .rules-quiz button { text-align: left; background: var(--chalk); color: var(--klein); border: 3px solid var(--klein); border-radius: 0; font-family: var(--font-ui); font-weight: 700; font-size: 15px; padding: 12px 14px; }
.gp .rules-quiz button.bad { animation: gp-shake .35s; border-color: var(--papaya); }
.gp .rules-quiz button.good { background: var(--klein); color: var(--chalk); }
.gp .rules-quiz .why { font-size: 14px; font-weight: 700; min-height: 1.2em; color: var(--klein); }
@keyframes gp-fill { to { transform: scaleX(1); } }
@keyframes gp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes gp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
/* ---------- Moderación en partida ---------- */
.net-chip.mod { top: 132px; color: #fee2e2; background: rgba(90,10,10,.88); border-color: rgba(248,113,113,.45); }
.warn-modal { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.55); padding: 20px; }
.warn-card { max-width: 360px; width: 100%; background: #EEEDE8; color: #0033B0; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; font-family: "Chakra Petch", system-ui, sans-serif;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.warn-title { align-self: flex-start; background: #FF7B2C; color: #0033B0; font-weight: 700; letter-spacing: .1em; padding: 4px 10px; font-size: 14px; }
.warn-card p { margin: 0; font-weight: 600; font-size: 15px; }
.warn-card .warn-next { font-size: 13px; opacity: .85; }
.warn-card button.ghost { background: transparent; color: #0033B0; border: 2px solid #0033B0; }
.warn-card button { margin-top: 4px; background: #0033B0; color: #EEEDE8; border: 0; padding: 12px; font-family: inherit; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.gp .rules-card .gp-top { flex-wrap: nowrap; white-space: nowrap; gap: 10px; }
.mod-banner { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 40; max-width: min(92%, 420px); display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; text-align: center; background: rgba(90,10,10,.92); border: 1px solid rgba(248,113,113,.5); color: #fee2e2; border-radius: 14px; font-size: 13px; pointer-events: none; }
.mod-banner b { font-size: 15px; color: #fff; }

/* ---------- Calibración ---------- */
.calib { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,25,90,.82); overflow-y: auto; }
.gp .calib-card { max-width: 520px; gap: 12px; }
.calib-close { padding: 8px 14px !important; font-size: 14px !important; }
.gp .calib-task { margin: 0; font-size: 16px; font-weight: 700; color: var(--klein); min-height: 2.6em; }
.calib-area { position: relative; height: 96px; overflow: hidden; background: var(--klein); cursor: crosshair; touch-action: none; user-select: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.calib-strip { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.calib-strip span { position: absolute; top: 20px; transform: translateX(-50%); font-family: var(--font-display); font-size: 30px; color: var(--chalk); }
.calib-strip span.target { color: var(--papaya); font-size: 40px; top: 12px; }
.calib-strip i { position: absolute; bottom: 10px; width: 2px; height: 12px; background: rgba(238,237,232,.45); }
.calib-cross { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--papaya); }
.calib-hint { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--chalk); opacity: .9; }
.calib-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-weight: 700; color: var(--klein); letter-spacing: .1em; font-size: 13px; }
.calib-row input { accent-color: #FF7B2C; }
.calib-row b { font-family: var(--font-display); font-size: 26px; font-weight: 400; min-width: 28px; text-align: right; }
.gp .calib-result { font-weight: 700; color: var(--klein); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 1.4em; }
.gp .calib-result button { padding: 8px 12px; font-size: 14px; }
.calib-guide { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--klein); padding-top: 10px; }
.calib-keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.calib-keys kbd { font-family: var(--font-ui); font-weight: 700; font-size: 12px; background: var(--klein); color: var(--chalk); padding: 3px 8px; white-space: nowrap; }
.calib-keys span { color: var(--klein); font-weight: 600; }
.calib-keys .sub { grid-column: 1 / -1; font-family: var(--font-display); font-size: 20px; color: var(--klein); margin-top: 4px; }
/* ---------- Rueda de armas con mouse (PC) ---------- */
.pc-wheel { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); z-index: 30; pointer-events: none; }
.pc-wheel i { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #FF7B2C; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.pc-wheel span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px; width: 300px; text-align: center; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #000; }
.calib { align-items: flex-start; }
.gp .calib-card { margin: auto; max-width: 760px; }
@media (min-width: 720px) { .calib-keys { grid-template-columns: auto 1fr auto 1fr; } }

/* ---------- Guía visual en PC ---------- */
.help { width: min(860px, calc(100% - 32px)); }
.kbpad { position: relative; height: 300px; margin: 6px 0 12px; }
.kb-mode { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.kb-mode kbd, .kb kbd, .kb-stick kbd, .pc-bar kbd { font: 600 11px ui-monospace, "SF Mono", Menlo, monospace; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: #fff; white-space: nowrap; }
.kb, .kb-stick { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 112px; text-align: center; transition: transform .06s; }
.kb b, .kb-stick b { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 6px; border-radius: 9px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22); }
.kb span, .kb-stick span { font-size: 11px; line-height: 1.2; color: var(--muted); }
.kb.lit b { background: #FF7B2C; border-color: #FF7B2C; color: #111; } .kb.lit { transform: scale(1.06); }
.kb.a b { color: #86efac; } .kb.b b { color: #fca5a5; } .kb.x b { color: #93c5fd; } .kb.y b { color: #fcd34d; }
.kb.a.lit b, .kb.b.lit b, .kb.x.lit b, .kb.y.lit b { color: #111; }
.kb.lt { left: 2%; top: 26px; } .kb.lb { left: 16%; top: 26px; } .kb.rb { right: 16%; top: 26px; } .kb.rt { right: 2%; top: 26px; }
.kb.view { left: 38%; top: 92px; } .kb.menu { right: 38%; top: 92px; }
.kb-stick.l { left: 2%; top: 110px; } .kb-stick.r { right: 25%; top: 196px; }
.kb.ls { left: 2%; top: 190px; } .kb.rs { right: 25%; top: 262px; display: none; }
.kb.up { left: 26%; top: 150px; } .kb.left { left: 14%; top: 200px; } .kb.right { left: 38%; top: 200px; } .kb.down { left: 26%; top: 248px; }
.kb.y { right: 10%; top: 96px; } .kb.x { right: 22%; top: 146px; } .kb.b { right: -1%; top: 146px; } .kb.a { right: 10%; top: 200px; }
.keys3 { grid-template-columns: auto auto 1fr; }
.keys3 .kh { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.keys3 .xb { font-weight: 700; font-size: 12px; }
@media (max-width: 760px) { .kbpad { display: none; } }
.pc-bar { position: absolute; left: 14px; bottom: 14px; z-index: 12; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; max-width: calc(100% - 28px);
  padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); font-size: 12px; color: #e5e5ea; pointer-events: none; }
.pc-bar span { display: inline-flex; gap: 6px; align-items: center; }
.pc-bar .pb-mode { font-weight: 700; letter-spacing: .1em; color: #FF7B2C; }
.kb-stick.r { right: 36%; top: 236px; }
.kb.x { right: 20%; top: 150px; } .kb.b { right: 0; top: 150px; } .kb.a { right: 10%; top: 206px; } .kb.y { right: 10%; top: 94px; }
.kbpad { height: 310px; }
