/* Minijuego del hero de la portada: Bot Runner (escritorio) y Update Rush (táctil). Solo se carga en la portada. */
.oe-game{--oe-danger:#b3261e;--oe-white:#fff;min-width:0;width:100%;max-width:560px;font-family:Inter,Arial,sans-serif;margin-top:48px}
.oe-game__desktop{display:none}
.oe-game__mobile{display:block;max-width:420px}
@media (hover:hover) and (pointer:fine) and (min-width:782px){
  .oe-game__desktop{display:block}
  .oe-game__mobile{display:none}
}
@media (min-width:1100px){
  .oe-hero.oe-hero--game{display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto auto 1fr;column-gap:64px}
  .oe-hero.oe-hero--game>*{grid-column:1;margin-left:0!important;margin-right:0!important}
  .oe-hero.oe-hero--game>.oe-game{grid-column:2;grid-row:1 / span 3;align-self:center;margin-top:0!important;max-width:400px}
}

.oe-game__head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px;font:400 11px/1.3 "JetBrains Mono",monospace;letter-spacing:1.2px;text-transform:uppercase;color:var(--oe-muted)}
.oe-game__head strong{color:var(--oe-ink);font-weight:700}
.oe-game__screen{position:relative;border:1px solid var(--oe-line);border-radius:4px;background:var(--oe-white)}
.oe-game__canvas{display:block;width:100%;max-width:100%;aspect-ratio:2/1;cursor:pointer;border-radius:4px}
.oe-game__canvas:focus-visible{outline:2px solid var(--oe-accent);outline-offset:4px}
.oe-game__caption{margin-top:12px;font-size:14px;line-height:1.5;color:var(--oe-muted);min-height:44px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.oe-game__caption strong{color:var(--oe-ink);font-weight:700}
.oe-game__caption .is-record,.oe-rush__overlay .is-record{color:var(--oe-accent)}
.oe-game__keys{display:flex;flex-wrap:wrap;gap:6px 14px;font:400 12px/1.4 "JetBrains Mono",monospace;color:var(--oe-muted)}
.oe-game kbd{font:400 11px/1 "JetBrains Mono",monospace;border:1px solid var(--oe-line);border-bottom-width:2px;border-radius:3px;padding:3px 5px;background:var(--oe-canvas);color:var(--oe-ink)}
.oe-game__btns{display:flex;flex-wrap:wrap;gap:12px}
.oe-game__btns .wp-block-button__link{cursor:pointer}

/* Update Rush */
.oe-rush__hud{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--oe-line);font:400 12px/1 "JetBrains Mono",monospace;font-variant-numeric:tabular-nums;color:var(--oe-ink)}
.oe-rush__health{flex:1;height:6px;max-width:110px;background:var(--oe-linen);border-radius:3px;overflow:hidden}
.oe-rush__health i{display:block;height:100%;width:100%;background:var(--oe-ink);transition:width .2s ease}
.oe-rush__health.is-low i{background:var(--oe-danger)}
.oe-rush__combo{color:var(--oe-accent);min-width:2ch}
.oe-rush__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.oe-rush__cell{position:relative;aspect-ratio:1;border:1px solid var(--oe-line);border-radius:4px;background:var(--oe-canvas);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px;font:400 10px/1.1 "JetBrains Mono",monospace;letter-spacing:.8px;text-transform:uppercase;color:var(--oe-muted);cursor:pointer;transition:transform .08s ease,background .12s ease;-webkit-tap-highlight-color:transparent}
.oe-rush__cell:active{transform:scale(.95)}
.oe-rush__cell:focus-visible{outline:2px solid var(--oe-accent);outline-offset:2px}
.oe-rush__cell svg{width:22px;height:22px}
.oe-rush__cell[data-s="update"]{background:var(--oe-accent);border-color:var(--oe-accent);color:var(--oe-white)}
.oe-rush__cell[data-s="error"]{background:var(--oe-danger);border-color:var(--oe-danger);color:var(--oe-white)}
.oe-rush__cell[data-s="bot"]{background:var(--oe-ink);border-color:var(--oe-ink);color:var(--oe-white)}
.oe-rush__cell[data-s="user"]{background:var(--oe-white);border:1px dashed var(--oe-ink);color:var(--oe-ink)}
.oe-rush__life{position:absolute;left:6px;right:6px;bottom:5px;height:2px;background:currentColor;opacity:.55;transform-origin:left;border-radius:1px}
.oe-rush__pop{position:absolute;top:8px;font:700 13px/1 "JetBrains Mono",monospace;color:var(--oe-ink);pointer-events:none;animation:oe-rush-pop .6s ease-out forwards}
.oe-rush__pop.is-neg{color:var(--oe-danger)}
@keyframes oe-rush-pop{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-18px)}}
.oe-rush__overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:24px;border-radius:4px;background:rgba(255,255,255,.95)}
.oe-rush__overlay[hidden]{display:none}
.oe-game .oe-rush__overlay .oe-rush__title{margin:0;color:var(--oe-ink);font-size:26px;line-height:1.1;font-weight:300;letter-spacing:-.03em}
.oe-game .oe-rush__overlay p:not(.oe-rush__title){margin:0;font-size:14px;line-height:1.45;color:var(--oe-muted)}
.oe-rush__label{font:400 11px/1.3 "JetBrains Mono",monospace;letter-spacing:1.2px;text-transform:uppercase;color:var(--oe-muted)}
.oe-rush__score{font:400 40px/1 "JetBrains Mono",monospace;font-variant-numeric:tabular-nums;color:var(--oe-ink)}
.oe-rush__legend{display:grid;grid-template-columns:auto 1fr;gap:6px 10px;align-items:center;font:400 12px/1.3 "JetBrains Mono",monospace;color:var(--oe-muted)}
.oe-rush__legend i{display:inline-block;width:14px;height:14px;border-radius:3px}
@media (prefers-reduced-motion:reduce){.oe-rush__pop{animation-duration:.01s}.oe-rush__cell{transition:none}}
