/* ═══════════════════════════════════════════════════════════════
   OLDGAMES // NEXUS — futuristic holo player
   Aurora viva no fundo · capa 3D que segue o mouse · HUD frame
   O EmulatorJS injeta o canvas dentro de <div id="game">.
   ═══════════════════════════════════════════════════════════════ */
:root{
  --void:#06060c;
  --deep:#0a0a14;
  --glass:rgba(16,17,30,.62);
  --glass-2:rgba(22,24,42,.55);
  --stroke:rgba(120,140,220,.16);
  --stroke-2:rgba(120,140,220,.3);
  --cyan:#00e5ff;
  --violet:#8b5cf6;
  --magenta:#ff2db8;
  --lime:#a3ff3c;
  --amber:#ffb01f;
  --txt:#eef0ff;
  --txt-2:#9aa0c0;
  --txt-3:#5c6184;
  --disp:'Orbitron',sans-serif;
  --ui:'Rajdhani',sans-serif;
  --nexus-game-aspect:4 / 3;
  --nexus-frame-width:800px;
  --nexus-game-height:500px;
}

html[data-og-system="gba"] body.nexus-exact-player,
html[data-og-system="vba"] body.nexus-exact-player,
html[data-og-system="mgba"] body.nexus-exact-player{
  --nexus-game-aspect:3 / 2;
  --nexus-frame-width:840px;
  --nexus-game-height:500px;
}

html[data-og-system="gb"] body.nexus-exact-player,
html[data-og-system="gbc"] body.nexus-exact-player,
html[data-og-system="gameboy"] body.nexus-exact-player,
html[data-og-system="gambatte"] body.nexus-exact-player{
  --nexus-game-aspect:10 / 9;
  --nexus-frame-width:650px;
  --nexus-game-height:500px;
}

html[data-og-system="psp"] body.nexus-exact-player{
  --nexus-game-aspect:16 / 9;
  --nexus-frame-width:930px;
  --nexus-game-height:465px;
}

html[data-og-system="nds"] body.nexus-exact-player,
html[data-og-system="desmume"] body.nexus-exact-player,
html[data-og-system="melonds"] body.nexus-exact-player{
  --nexus-game-aspect:4 / 3;
  --nexus-frame-width:800px;
  --nexus-game-height:500px;
}

html[data-og-system="n64"] body.nexus-exact-player,
html[data-og-system="snes"] body.nexus-exact-player,
html[data-og-system="nes"] body.nexus-exact-player,
html[data-og-system="genesis"] body.nexus-exact-player,
html[data-og-system="ps1"] body.nexus-exact-player{
  --nexus-game-aspect:4 / 3;
  --nexus-frame-width:800px;
  --nexus-game-height:500px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  background:var(--void);
  color:var(--txt);
  font-family:var(--ui);
  font-size:16.5px;
  min-height:100%;
  overflow-x:hidden;
}

/* ═══ ATMOSFERA: aurora + grade + partículas ═══════════════════ */
.aurora{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;filter:blur(70px) saturate(1.2)}
.aurora i{position:absolute;border-radius:50%;opacity:.5;mix-blend-mode:screen}
.aurora i:nth-child(1){width:48vw;height:48vw;left:-12vw;top:-18vw;background:radial-gradient(circle,#1b3bd1,transparent 65%);animation:drift1 26s ease-in-out infinite alternate}
.aurora i:nth-child(2){width:42vw;height:42vw;right:-10vw;top:-10vw;background:radial-gradient(circle,#7a1fd9,transparent 65%);animation:drift2 31s ease-in-out infinite alternate}
.aurora i:nth-child(3){width:40vw;height:40vw;left:30vw;bottom:-22vw;background:radial-gradient(circle,#0a7a8a,transparent 65%);animation:drift3 24s ease-in-out infinite alternate}
@keyframes drift1{to{transform:translate(9vw,7vw) scale(1.15)}}
@keyframes drift2{to{transform:translate(-8vw,9vw) scale(.9)}}
@keyframes drift3{to{transform:translate(-7vw,-8vw) scale(1.12)}}

.gridfloor{
  position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background:
    linear-gradient(rgba(110,130,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,130,255,.05) 1px, transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image:radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
#dust{position:fixed;inset:0;z-index:1;pointer-events:none}

.shellwrap{position:relative;z-index:2;max-width:1380px;margin:0 auto;padding:0 24px 80px}

/* ═══ NAVBAR DE VIDRO ══════════════════════════════════════════ */
.nav{
  position:sticky;top:14px;z-index:50;
  display:flex;align-items:center;gap:20px;
  margin-top:14px;padding:11px 18px;
  background:var(--glass);
  border:1px solid var(--stroke);
  border-radius:16px;
  backdrop-filter:blur(18px);
  box-shadow:0 18px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  animation:navIn .6s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes navIn{from{opacity:0;transform:translateY(-18px)}to{opacity:1;transform:none}}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:inherit}
.brand .core{
  position:relative;width:30px;height:30px;border-radius:9px;
  background:conic-gradient(from 180deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
  animation:hueSpin 5s linear infinite;
}
@keyframes hueSpin{to{filter:hue-rotate(360deg)}}
.brand .core::after{content:"";position:absolute;inset:3px;border-radius:6px;background:var(--deep)}
.brand .core::before{
  content:"";position:absolute;inset:9px;border-radius:3px;z-index:1;
  background:linear-gradient(135deg,var(--cyan),var(--violet));
  box-shadow:0 0 12px var(--cyan);
}
.brand b{font-family:var(--disp);font-weight:800;font-size:.95rem;letter-spacing:.14em}
.brand b span{color:var(--cyan)}
.navlinks{display:flex;gap:4px;margin-left:8px}
.navlinks a{
  font-weight:600;font-size:.92rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--txt-2);text-decoration:none;padding:7px 14px;border-radius:9px;
  transition:color .2s, background .2s;
}
.navlinks a:hover,.navlinks a.on{color:#fff;background:rgba(120,140,255,.1)}
.navlinks a.on{box-shadow:inset 0 -2px 0 var(--cyan)}
.profile{
  margin-left:auto;display:flex;align-items:center;gap:10px;
  padding:5px 14px 5px 6px;cursor:pointer;
  background:rgba(10,10,20,.5);border:1px solid var(--stroke);border-radius:999px;
  color:var(--txt);font-family:var(--ui);
  transition:border-color .2s, box-shadow .2s;
}
.profile:hover{border-color:var(--cyan);box-shadow:0 0 0 3px rgba(0,229,255,.12), 0 0 22px rgba(0,229,255,.18)}
.avatar{
  position:relative;width:32px;height:32px;border-radius:50%;overflow:hidden;flex:none;
  border:2px solid var(--cyan);box-shadow:0 0 12px rgba(0,229,255,.35);
}
.avatar svg{display:block;width:100%;height:100%;image-rendering:pixelated}
.avatar::after{ /* anel de scan girando no avatar */
  content:"";position:absolute;inset:-2px;border-radius:50%;
  border:2px solid transparent;border-top-color:#fff;
  animation:orbit 3s linear infinite;opacity:.6;
}
@keyframes orbit{to{transform:rotate(360deg)}}
.pinfo{display:flex;flex-direction:column;line-height:1.12;align-items:flex-start}
.pinfo b{font-size:.88rem;font-weight:700;letter-spacing:.04em}
.pinfo small{font-size:.72rem;color:var(--cyan);letter-spacing:.12em;text-transform:uppercase}

/* ═══ HERO: capa 3D + identidade do jogo ═══════════════════════ */
.hero{
  display:grid;grid-template-columns:330px 1fr;gap:54px;align-items:center;
  padding:54px 10px 40px;
}

/* —— a capa holográfica que segue o mouse —— */
.holo{perspective:1100px}
.holo-card{
  position:relative;border-radius:18px;
  transform-style:preserve-3d;
  transition:transform .18s ease-out;
  animation:floaty 5.5s ease-in-out infinite;
  will-change:transform;
}
@keyframes floaty{0%,100%{translate:0 0}50%{translate:0 -12px}}
.holo-card img{
  display:block;width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:18px;
  border:1px solid rgba(140,160,255,.25);
}
/* aura de neon atrás da capa */
.holo-card::before{
  content:"";position:absolute;inset:-4px;border-radius:22px;z-index:-1;
  background:conic-gradient(from var(--ha,0deg), var(--cyan), var(--violet), var(--magenta), var(--cyan));
  filter:blur(22px);opacity:.55;
  animation:haTurn 7s linear infinite;
}
@property --ha{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes haTurn{to{--ha:360deg}}
/* brilho holo-foil que acompanha o mouse */
.holo-card .glare{
  position:absolute;inset:0;border-radius:18px;pointer-events:none;
  background:
    radial-gradient(420px 320px at var(--gx,50%) var(--gy,40%),
      rgba(255,255,255,.28), rgba(0,229,255,.12) 35%, transparent 62%);
  mix-blend-mode:screen;
  transition:opacity .25s;
}
/* varredura de scanner vertical */
.holo-card .scan{
  position:absolute;inset:0;border-radius:18px;overflow:hidden;pointer-events:none;
}
.holo-card .scan::after{
  content:"";position:absolute;left:0;right:0;height:60px;top:-70px;
  background:linear-gradient(180deg, transparent, rgba(0,229,255,.22), transparent);
  animation:scanline 4.4s ease-in-out infinite;
}
@keyframes scanline{0%,55%{top:-70px}85%,100%{top:110%}}
/* selo flutuando sobre a capa */
.holo-card .seal{
  position:absolute;top:14px;right:14px;z-index:3;
  font-family:var(--disp);font-size:.58rem;font-weight:700;letter-spacing:.18em;
  color:#001318;background:linear-gradient(135deg, var(--cyan), #6ef0ff);
  padding:6px 11px;border-radius:7px;
  box-shadow:0 6px 20px rgba(0,229,255,.45);
  transform:translateZ(46px);
}
/* dados rápidos sob a capa (no espaço 3D) */
.holo-card .ticket{
  position:absolute;left:14px;right:14px;bottom:14px;z-index:3;
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 14px;border-radius:11px;
  background:rgba(6,6,14,.72);border:1px solid rgba(140,160,255,.25);
  backdrop-filter:blur(8px);
  transform:translateZ(38px);
}
.holo-card .ticket b{font-family:var(--disp);font-size:.66rem;letter-spacing:.12em}
.holo-card .ticket span{font-size:.82rem;color:var(--txt-2);letter-spacing:.06em}

/* —— identidade —— */
.idblock .sys{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--disp);font-size:.62rem;font-weight:700;letter-spacing:.3em;
  color:var(--cyan);text-transform:uppercase;
  margin-bottom:16px;
}
.idblock .sys::before{content:"";width:34px;height:2px;background:linear-gradient(90deg,transparent,var(--cyan))}
.idblock h1{
  font-family:var(--disp);font-weight:900;
  font-size:clamp(2rem,5vw,3.6rem);
  line-height:1.04;letter-spacing:.015em;
  text-transform:uppercase;
}
/* cada palavra do título sobe revelando */
.idblock h1 .w{display:inline-block;overflow:hidden;vertical-align:bottom}
.idblock h1 .w b{
  display:inline-block;font-weight:900;
  background:linear-gradient(180deg,#fff 30%, #8fa2ff 80%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 6px 26px rgba(110,130,255,.35));
  transform:translateY(110%);
  animation:wordUp .7s cubic-bezier(.2,.85,.25,1) forwards;
}
.idblock h1 .w:nth-child(2) b{animation-delay:.1s}
.idblock h1 .w:nth-child(3) b{
  animation-delay:.2s;
  background:linear-gradient(135deg, var(--cyan), var(--violet) 60%, var(--magenta));
  -webkit-background-clip:text;background-clip:text;
}
@keyframes wordUp{to{transform:translateY(0)}}
.idblock p.tag{
  margin-top:14px;max-width:560px;
  font-size:1.06rem;color:var(--txt-2);line-height:1.6;letter-spacing:.02em;
}
.chips{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.chip{
  display:inline-flex;align-items:center;gap:7px;
  font-weight:600;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;
  padding:6px 13px;border-radius:8px;
  background:var(--glass-2);border:1px solid var(--stroke);color:var(--txt-2);
}
.chip i{width:6px;height:6px;border-radius:50%;background:var(--lime);box-shadow:0 0 8px var(--lime)}
.chip.hot{color:#fff;border-color:rgba(255,45,184,.4);background:linear-gradient(135deg,rgba(255,45,184,.16),rgba(139,92,246,.14))}

/* anéis de estatística */
.rings{display:flex;gap:26px;margin-top:26px;flex-wrap:wrap}
.ring{display:flex;align-items:center;gap:12px}
.ring svg{width:58px;height:58px;transform:rotate(-90deg)}
.ring .track{fill:none;stroke:rgba(120,140,220,.15);stroke-width:5}
.ring .fill{
  fill:none;stroke-width:5;stroke-linecap:round;
  stroke-dasharray:151;stroke-dashoffset:151;
  animation:ringFill 1.4s cubic-bezier(.2,.8,.3,1) forwards .5s;
}
@keyframes ringFill{to{stroke-dashoffset:var(--off)}}
.ring .num{font-family:var(--disp);font-weight:800;font-size:1.05rem}
.ring .lab{font-size:.78rem;color:var(--txt-3);letter-spacing:.14em;text-transform:uppercase}

/* CTA */
.cta{display:flex;align-items:center;gap:16px;margin-top:30px}
.playbtn{
  position:relative;overflow:hidden;
  display:inline-flex;align-items:center;gap:13px;
  font-family:var(--disp);font-weight:800;font-size:.92rem;letter-spacing:.2em;
  color:#021016;cursor:pointer;border:none;border-radius:13px;
  padding:17px 34px;
  background:linear-gradient(135deg, var(--cyan), #4dc6ff 55%, var(--violet) 130%);
  box-shadow:0 16px 44px rgba(0,229,255,.35), inset 0 2px 0 rgba(255,255,255,.5);
  transition:transform .15s, box-shadow .25s;
}
.playbtn svg{width:17px;height:17px;fill:#021016}
.playbtn::after{ /* brilho varrendo */
  content:"";position:absolute;top:0;left:-70%;width:50%;height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform:skewX(-22deg);
  animation:sweep 3.2s ease-in-out infinite;
}
@keyframes sweep{0%,55%{left:-70%}90%,100%{left:140%}}
.playbtn:hover{transform:translateY(-3px);box-shadow:0 22px 56px rgba(0,229,255,.5), inset 0 2px 0 rgba(255,255,255,.5)}
.playbtn:active{transform:scale(.98)}
.ghostbtn{
  display:inline-flex;align-items:center;gap:9px;
  font-weight:700;font-size:.92rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--txt);cursor:pointer;
  padding:15px 24px;border-radius:13px;
  background:transparent;border:1px solid var(--stroke-2);
  transition:border-color .2s, background .2s;
}
.ghostbtn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.ghostbtn:hover{border-color:var(--cyan);background:rgba(0,229,255,.07)}
.ghostbtn.faved svg{fill:var(--amber);stroke:var(--amber)}

/* ═══ O PLAYER (moldura HUD) ═══════════════════════════════════ */
.deck{position:relative;margin-top:10px}
/* cantos de mira (brackets) */
.deck .bracket{position:absolute;width:30px;height:30px;z-index:6;pointer-events:none}
.deck .bracket::before,.deck .bracket::after{content:"";position:absolute;background:var(--cyan);box-shadow:0 0 10px rgba(0,229,255,.7)}
.deck .bracket::before{width:100%;height:2px}
.deck .bracket::after{width:2px;height:100%}
.deck .b-tl{top:-7px;left:-7px}
.deck .b-tr{top:-7px;right:-7px;transform:scaleX(-1)}
.deck .b-bl{bottom:-7px;left:-7px;transform:scaleY(-1)}
.deck .b-br{bottom:-7px;right:-7px;transform:scale(-1)}
.deck .bracket{animation:bracketPulse 2.8s ease-in-out infinite}
@keyframes bracketPulse{0%,100%{opacity:.85}50%{opacity:.4}}

.player{
  border-radius:18px;overflow:hidden;
  background:rgba(8,8,16,.8);
  border:1px solid var(--stroke-2);
  box-shadow:0 40px 90px rgba(0,0,0,.65), 0 0 70px rgba(0,229,255,.07);
  backdrop-filter:blur(10px);
}
/* faixa HUD viva no topo do player */
.hudbar{
  display:flex;align-items:center;gap:20px;
  padding:9px 18px;
  border-bottom:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(20,22,40,.7), rgba(10,10,20,.4));
  font-family:var(--disp);font-size:.6rem;font-weight:700;letter-spacing:.18em;
  color:var(--txt-3);
  position:relative;overflow:hidden;
}
/* linha de energia correndo na base da faixa */
.hudbar::after{
  content:"";position:absolute;left:0;bottom:0;height:1px;width:30%;
  background:linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation:energyRun 3.4s linear infinite;
}
@keyframes energyRun{from{left:-30%}to{left:100%}}

/* equalizador animado */
.eq{display:flex;align-items:flex-end;gap:2.5px;height:14px}
.eq i{
  width:3px;border-radius:1px;
  background:linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow:0 0 6px rgba(0,229,255,.5);
  animation:eqB 1s ease-in-out infinite;
}
.eq i:nth-child(1){height:35%;animation-delay:0s}
.eq i:nth-child(2){height:80%;animation-delay:.15s}
.eq i:nth-child(3){height:55%;animation-delay:.3s}
.eq i:nth-child(4){height:95%;animation-delay:.45s}
.eq i:nth-child(5){height:45%;animation-delay:.6s}
@keyframes eqB{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
.eq{transform-origin:bottom}
.eq i{transform-origin:bottom}

/* status digitado */
.hudbar .live{display:flex;align-items:center;gap:10px;color:var(--lime);min-width:210px}
.hudbar .live .cur{
  display:inline-block;width:7px;height:11px;background:var(--lime);
  animation:blip 1s steps(1) infinite;vertical-align:-1px;
}
@keyframes blip{50%{opacity:.15}}
.hudbar .mid{margin:0 auto;color:var(--txt-2)}
.hudbar .seg{display:flex;align-items:center;gap:8px}
.hudbar .seg b{color:var(--cyan)}
.hudbar .seg b.flick{min-width:34px;text-align:right;animation:numFlick 4s steps(1) infinite}
@keyframes numFlick{0%,92%,100%{opacity:1}94%{opacity:.4}96%{opacity:.85}}
/* luzes segmentadas decorativas */
.seglights{display:flex;gap:4px}
.seglights i{width:9px;height:4px;border-radius:1px;background:rgba(120,140,220,.18)}
.seglights i.on{background:var(--cyan);box-shadow:0 0 6px rgba(0,229,255,.6)}

/* O CONTAINER DO EMULADOR */
.stage{position:relative;aspect-ratio:16/9;background:#000}
#game{position:absolute;inset:0}
#game canvas,#game iframe,#game video{width:100%;height:100%}

/* placeholder futurista (some quando o jogo inicia) */
.placeholder{
  position:absolute;inset:0;z-index:4;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
  background:
    radial-gradient(640px 340px at 50% 120%, rgba(0,229,255,.1), transparent 65%),
    radial-gradient(540px 300px at 50% -20%, rgba(139,92,246,.12), transparent 65%),
    rgba(4,4,10,.78);
  transition:opacity .4s;
}
/* ── EMBLEMA OLDGAMES (logo personalizado animado) ── */
.emblem{width:128px;height:128px;position:relative}
.emblem.sm{width:88px;height:88px}
.emblem.xs{width:36px;height:36px;flex:none}
.emblem.xs .mono{stroke-width:7}
.emblem.xs .ringd{stroke-width:3}
.emblem.xs .arc{stroke-width:5}
.emblem.xs .arc2{stroke-width:4}
.emblem svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.emblem .ringd{ /* anel tracejado girando */
  fill:none;stroke:rgba(120,140,255,.4);stroke-width:1.6;
  stroke-dasharray:5 9;
  transform-origin:center;animation:orbit 16s linear infinite;
}
.emblem .arc{ /* arco ciano girando ao contrário */
  fill:none;stroke:var(--cyan);stroke-width:2.6;stroke-linecap:round;
  filter:drop-shadow(0 0 7px rgba(0,229,255,.7));
  transform-origin:center;animation:orbit 5s linear infinite reverse;
}
.emblem .arc2{
  fill:none;stroke:var(--magenta);stroke-width:2;stroke-linecap:round;opacity:.85;
  filter:drop-shadow(0 0 6px rgba(255,45,184,.6));
  transform-origin:center;animation:orbit 8s linear infinite;
}
.emblem .orbgrp{transform-origin:center;animation:orbit 5s linear infinite reverse}
.emblem .orb{fill:#fff;filter:drop-shadow(0 0 7px var(--cyan))}
/* monograma OG desenhando em loop */
.emblem .mono{
  fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:120;
  animation:draw 4.2s ease-in-out infinite;
}
.emblem .mO{stroke:url(#gradOG)}
.emblem .mG{stroke:url(#gradOG);animation-delay:.25s}
@keyframes draw{
  0%{stroke-dashoffset:120;opacity:0}
  12%{opacity:1}
  38%,72%{stroke-dashoffset:0;opacity:1}
  92%,100%{stroke-dashoffset:-120;opacity:0}
}
/* pulso de energia atrás do emblema */
.emblem::before{
  content:"";position:absolute;inset:15%;border-radius:50%;
  background:radial-gradient(circle, rgba(0,229,255,.22), transparent 65%);
  animation:hexPulse 2.4s ease-in-out infinite;
}
@keyframes hexPulse{0%,100%{transform:scale(.85);opacity:.6}50%{transform:scale(1.12);opacity:1}}

/* emblema no hero, abaixo do PLAY NOW */
.hero-emblem{
  display:flex;align-items:center;gap:16px;
  margin-top:32px;padding-top:24px;
  border-top:1px solid var(--stroke);
}
.wordmark.compact{text-align:left}
.wordmark.compact .gl{font-size:1.08rem;letter-spacing:.2em}
.wordmark.compact .sub{justify-content:flex-start;margin-top:6px;font-size:.5rem}
.wordmark.compact .sub::after{display:none}

/* wordmark com glitch */
.wordmark{position:relative;text-align:center}
.wordmark .gl{
  position:relative;display:inline-block;
  font-family:var(--disp);font-weight:900;letter-spacing:.16em;
  font-size:clamp(1.15rem,3vw,1.8rem);color:#fff;
  text-shadow:0 0 24px rgba(0,229,255,.35);
}
.wordmark .gl::before,.wordmark .gl::after{
  content:attr(data-t);position:absolute;left:0;top:0;width:100%;
}
.wordmark .gl::before{
  color:var(--cyan);z-index:-1;
  clip-path:inset(0 0 55% 0);
  animation:gl1 3.2s steps(2) infinite;
}
.wordmark .gl::after{
  color:var(--magenta);z-index:-2;
  clip-path:inset(55% 0 0 0);
  animation:gl2 2.7s steps(2) infinite;
}
@keyframes gl1{
  0%,86%,100%{transform:translate(0,0);opacity:.0}
  88%{transform:translate(-4px,-2px);opacity:.9}
  92%{transform:translate(3px,1px);opacity:.9;clip-path:inset(20% 0 40% 0)}
  96%{transform:translate(-2px,0);opacity:.7}
}
@keyframes gl2{
  0%,82%,100%{transform:translate(0,0);opacity:0}
  84%{transform:translate(4px,2px);opacity:.9}
  90%{transform:translate(-3px,-1px);opacity:.9;clip-path:inset(40% 0 25% 0)}
  95%{transform:translate(2px,0);opacity:.7}
}
.wordmark .sub{
  margin-top:8px;
  font-family:var(--disp);font-size:.56rem;font-weight:700;letter-spacing:.42em;
  color:var(--cyan);text-transform:uppercase;
  display:flex;align-items:center;justify-content:center;gap:12px;
}
.wordmark .sub::before,.wordmark .sub::after{
  content:"";width:30px;height:1px;
  background:linear-gradient(90deg, transparent, var(--cyan));
}
.wordmark .sub::after{transform:scaleX(-1)}
.ph-sys{font-family:var(--disp);font-size:.6rem;font-weight:700;letter-spacing:.4em;color:var(--cyan)}
.ph-name{
  font-family:var(--disp);font-weight:900;letter-spacing:.1em;
  font-size:clamp(.95rem,2.4vw,1.5rem);text-transform:uppercase;
  text-shadow:0 0 26px rgba(0,229,255,.4);
}
.ph-note{font-size:.95rem;color:var(--txt-2);letter-spacing:.04em}
.ph-note code{font-family:monospace;color:var(--lime);background:rgba(163,255,60,.08);border:1px solid rgba(163,255,60,.25);border-radius:5px;padding:1px 8px}
.startbtn{
  display:inline-flex;align-items:center;gap:11px;
  font-family:var(--disp);font-weight:800;font-size:.78rem;letter-spacing:.26em;
  color:#021016;cursor:pointer;border:none;border-radius:11px;
  padding:14px 30px;
  background:linear-gradient(135deg, var(--lime), #5ee87a);
  box-shadow:0 14px 36px rgba(163,255,60,.3), inset 0 2px 0 rgba(255,255,255,.5);
  transition:transform .15s, box-shadow .2s;
}
.startbtn svg{width:15px;height:15px;fill:#021016}
.startbtn:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(163,255,60,.45), inset 0 2px 0 rgba(255,255,255,.5)}

/* barra de controles fixa ABAIXO da tela (não sobrepõe o jogo) */
.dock{
  display:flex;align-items:center;flex-wrap:wrap;gap:4px;
  padding:10px 14px;
  background:linear-gradient(180deg, rgba(18,20,38,.85), rgba(9,10,20,.9));
  border-top:1px solid var(--stroke-2);
}
.dock .right{margin-left:auto;display:flex;align-items:center;gap:6px}
.cbtn{
  position:relative;display:grid;place-items:center;
  width:42px;height:40px;border:none;border-radius:11px;cursor:pointer;
  background:transparent;color:var(--txt-2);
  transition:background .18s, color .18s, transform .12s;
}
.cbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cbtn:hover{background:rgba(120,140,255,.12);color:#fff}
.cbtn:active{transform:scale(.92)}
.cbtn.main{
  width:50px;height:44px;color:#021016;
  background:linear-gradient(135deg, var(--cyan), #4dc6ff);
  box-shadow:0 8px 22px rgba(0,229,255,.35);
}
.cbtn.main svg{fill:#021016;stroke:none}
.cbtn.main:hover{filter:brightness(1.12);color:#021016}
.cbtn::after{
  content:attr(data-tip);
  position:absolute;bottom:calc(100% + 10px);left:50%;
  transform:translateX(-50%) translateY(4px);
  font-family:var(--ui);font-size:.74rem;font-weight:600;letter-spacing:.06em;white-space:nowrap;
  color:var(--txt);background:#05050c;border:1px solid var(--stroke-2);
  padding:5px 11px;border-radius:7px;
  opacity:0;pointer-events:none;
  transition:opacity .18s, transform .18s;
}
.cbtn:hover::after{opacity:1;transform:translateX(-50%) translateY(0)}
.dock .sep{width:1px;height:22px;background:var(--stroke-2);margin:0 7px}
.volwrap{display:flex;align-items:center;gap:9px;padding:0 6px}
.volwrap input[type=range]{
  -webkit-appearance:none;appearance:none;width:92px;height:4px;border-radius:3px;cursor:pointer;outline:none;
  background:linear-gradient(90deg, var(--cyan) 0%, var(--cyan) var(--p,100%), rgba(120,140,220,.22) var(--p,100%));
}
.volwrap input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;width:13px;height:13px;border-radius:50%;
  background:#fff;box-shadow:0 0 10px rgba(0,229,255,.7);
}
.volwrap .pct{font-size:.82rem;font-weight:700;color:var(--txt-2);min-width:36px}
.dock .pill{
  display:inline-flex;align-items:center;gap:8px;
  font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--txt-2);
  padding:7px 13px;border-radius:999px;background:rgba(6,6,14,.7);border:1px solid var(--stroke);
}
.dock .pill i{width:7px;height:7px;border-radius:50%;background:var(--magenta);box-shadow:0 0 7px var(--magenta);animation:blip 1.2s steps(1) infinite}

/* ═══ RELATED GAMES 2.0 — vitrine interativa ═══════════════════ */
.related{margin-top:64px}
.sechead{display:flex;align-items:center;gap:16px;padding:0 6px;margin-bottom:18px;flex-wrap:wrap}
.sechead h2{
  font-family:var(--disp);font-weight:800;font-size:1.05rem;letter-spacing:.22em;text-transform:uppercase;
}
.sechead h2 em{font-style:normal;color:var(--cyan)}
.sechead .line{flex:1;height:1px;background:linear-gradient(90deg,var(--stroke-2),transparent);min-width:40px}

/* setas */
.arrows{display:flex;gap:8px}
.arrow{
  display:grid;place-items:center;width:38px;height:38px;border-radius:11px;cursor:pointer;
  background:rgba(10,11,22,.8);border:1px solid var(--stroke-2);color:var(--txt-2);
  transition:border-color .2s, color .2s, transform .12s, box-shadow .2s;
}
.arrow svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.arrow:hover{border-color:var(--cyan);color:var(--cyan);box-shadow:0 0 16px rgba(0,229,255,.2)}
.arrow:active{transform:scale(.92)}
.arrow:disabled{opacity:.3;pointer-events:none}

/* trilho com scroll-snap */
.shelf{
  display:flex;gap:16px;
  overflow-x:auto;scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  padding:8px 6px 18px;
  scrollbar-width:thin;
  scrollbar-color:var(--cyan) rgba(120,140,220,.12);
}
.shelf::-webkit-scrollbar{height:8px}
.shelf::-webkit-scrollbar-track{background:rgba(120,140,220,.12);border-radius:999px}
.shelf::-webkit-scrollbar-thumb{background:linear-gradient(90deg,var(--cyan),var(--violet));border-radius:999px}
.shelf::-webkit-scrollbar-thumb:hover{background:linear-gradient(90deg,var(--cyan),var(--magenta))}

/* card rico */
.gcard{
  position:relative;flex:none;width:212px;
  scroll-snap-align:start;
  text-decoration:none;color:inherit;cursor:pointer;
  border-radius:16px;overflow:hidden;
  background:var(--glass-2);border:1px solid var(--stroke);
  transition:transform .22s ease, border-color .25s, box-shadow .25s;
  transform-style:preserve-3d;will-change:transform;
}
.gcard .thumb{position:relative;overflow:hidden;aspect-ratio:3/4}
.gcard img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.gcard .shade{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(4,4,10,.25), transparent 30%, transparent 48%, rgba(4,4,10,.96) 88%);
}
/* brilho varrendo no hover */
.gcard .shine{
  position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 48%, rgba(0,229,255,.1) 52%, transparent 62%);
  background-size:240% 100%;background-position:130% 0;
  transition:background-position .65s ease;
  mix-blend-mode:screen;
}
.gcard:hover .shine{background-position:-60% 0}
/* rank gigante */
.gcard .rank{
  position:absolute;top:2px;left:10px;z-index:2;
  font-family:var(--disp);font-weight:900;font-size:2.2rem;line-height:1;
  color:transparent;-webkit-text-stroke:1.5px rgba(140,160,255,.5);
  text-shadow:0 4px 18px rgba(0,0,0,.6);
  transition:color .25s, -webkit-text-stroke-color .25s;
}
.gcard:hover .rank{color:rgba(0,229,255,.9);-webkit-text-stroke-color:transparent}
/* badge */
.badge{
  position:absolute;top:12px;right:12px;z-index:2;
  font-family:var(--disp);font-size:.5rem;font-weight:800;letter-spacing:.18em;
  padding:5px 9px;border-radius:6px;color:#021016;
}
.badge.hot{background:linear-gradient(135deg, var(--magenta), #ff7ad1);box-shadow:0 6px 16px rgba(255,45,184,.4)}
.badge.top{background:linear-gradient(135deg, var(--amber), #ffd97a);box-shadow:0 6px 16px rgba(255,176,31,.4)}
.badge.new{background:linear-gradient(135deg, var(--lime), #c9ff8a);box-shadow:0 6px 16px rgba(163,255,60,.4)}
/* nota com estrela */
.score{
  position:absolute;left:12px;bottom:74px;z-index:2;
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--disp);font-weight:800;font-size:.72rem;color:#fff;
  padding:5px 10px;border-radius:8px;
  background:rgba(4,4,12,.72);border:1px solid var(--stroke-2);
  backdrop-filter:blur(6px);
  transition:border-color .25s;
}
.score svg{width:11px;height:11px;fill:var(--amber)}
.gcard:hover .score{border-color:rgba(255,176,31,.5)}
/* meta fixa */
.gcard .meta{position:absolute;left:14px;right:14px;bottom:12px;z-index:2;transition:transform .28s ease, opacity .25s}
.gcard .name{font-weight:700;font-size:1rem;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcard .sub{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:.74rem;letter-spacing:.12em;text-transform:uppercase;color:var(--txt-2)}
.gcard .sub i{width:5px;height:5px;border-radius:50%;background:var(--cyan);box-shadow:0 0 6px var(--cyan)}
/* painel que sobe no hover */
.panel{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  padding:14px;
  background:linear-gradient(180deg, rgba(7,8,16,.4), rgba(7,8,16,.97) 35%);
  backdrop-filter:blur(8px);
  border-top:1px solid rgba(0,229,255,.25);
  transform:translateY(105%);
  transition:transform .3s cubic-bezier(.2,.8,.3,1);
}
.gcard:hover .panel{transform:translateY(0)}
.gcard:hover .meta{transform:translateY(-8px);opacity:0}
.panel .pname{font-weight:700;font-size:.98rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel .tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.panel .t{
  font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--txt-2);
  padding:3px 9px;border-radius:6px;background:rgba(120,140,255,.1);border:1px solid var(--stroke);
}
.panel .row{display:flex;align-items:center;gap:9px;margin-top:12px}
.panel .pplay{
  flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--disp);font-weight:800;font-size:.62rem;letter-spacing:.2em;
  color:#021016;cursor:pointer;border:none;border-radius:9px;
  padding:10px 0;
  background:linear-gradient(135deg, var(--cyan), #4dc6ff);
  box-shadow:0 8px 20px rgba(0,229,255,.3);
  transition:filter .15s, transform .12s;
}
.panel .pplay svg{width:12px;height:12px;fill:#021016}
.panel .pplay:hover{filter:brightness(1.12)}
.panel .pplay:active{transform:scale(.97)}
.panel .pfav{
  display:grid;place-items:center;width:36px;height:36px;border-radius:9px;cursor:pointer;
  background:transparent;border:1px solid var(--stroke-2);color:var(--txt-2);
  transition:border-color .2s, color .2s;
}
.panel .pfav svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.panel .pfav:hover{border-color:var(--amber);color:var(--amber)}
/* hover do card */
.gcard:hover{
  border-color:rgba(0,229,255,.55);
  box-shadow:0 26px 56px rgba(0,0,0,.6), 0 0 34px rgba(0,229,255,.16);
}
.gcard:hover img{transform:scale(1.08)}

/* barra de progresso do trilho */
.progress{
  height:3px;margin:2px 6px 0;border-radius:2px;
  background:rgba(120,140,220,.14);overflow:hidden;
}
.progress i{
  display:block;height:100%;width:20%;border-radius:2px;
  background:linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow:0 0 10px rgba(0,229,255,.5);
  transition:width .2s ease, translate .2s ease;
}

/* ═══ RODAPÉ DE SPECS ══════════════════════════════════════════ */
.specrow{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;margin-top:56px;
}
.spec{
  padding:18px;border-radius:14px;
  background:var(--glass-2);border:1px solid var(--stroke);
  transition:border-color .2s, transform .2s;
}
.spec:hover{border-color:var(--stroke-2);transform:translateY(-3px)}
.spec .k{
  display:flex;align-items:center;gap:9px;
  font-family:var(--disp);font-size:.56rem;font-weight:700;letter-spacing:.24em;
  color:var(--txt-3);text-transform:uppercase;margin-bottom:9px;
}
.spec .k i{width:7px;height:7px;border-radius:2px;transform:rotate(45deg)}
.spec:nth-child(1) .k i{background:var(--cyan)}
.spec:nth-child(2) .k i{background:var(--violet)}
.spec:nth-child(3) .k i{background:var(--magenta)}
.spec:nth-child(4) .k i{background:var(--lime)}
.spec:nth-child(5) .k i{background:var(--amber)}
.spec .v{font-weight:700;font-size:1.08rem;letter-spacing:.03em}
.spec .v.code{font-family:monospace;font-size:.92rem;color:var(--lime)}

/* entrada das seções */
@keyframes rise{from{opacity:0;translate:0 22px}to{opacity:1;translate:0 0}}
.hero{animation:rise .7s cubic-bezier(.2,.8,.3,1) both .1s}
.deck{animation:rise .7s cubic-bezier(.2,.8,.3,1) both .22s}
.related{animation:rise .7s cubic-bezier(.2,.8,.3,1) both .34s}
.specrow{animation:rise .7s cubic-bezier(.2,.8,.3,1) both .42s}

/* ═══ RESPONSIVO + ACESSIBILIDADE ══════════════════════════════ */
@media (max-width:1020px){
  .hero{grid-template-columns:1fr;gap:36px;padding-top:38px}
  .holo{max-width:280px;margin:0 auto}
  .idblock{text-align:center}
  .idblock .sys{justify-content:center}
  .idblock p.tag{margin-left:auto;margin-right:auto}
  .chips,.rings,.cta{justify-content:center}
  .hero-emblem{justify-content:center}
  .wordmark.compact{text-align:center}
  .wordmark.compact .sub{justify-content:center}
}
@media (max-width:640px){
  .navlinks{display:none}
  .pinfo small{display:none}
  .volwrap{display:none}
  .dock .pill{display:none}
  .hudbar .seg.opt{display:none}
}
button:focus-visible,a:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  .holo-card{transform:none !important}
}

/* ═══════════════════════════════════════════════════════════════
   NEXUS FORCE FOR THE LIVE EMULATOR DOM
   Keeps the stable EmulatorJS structure intact and only re-skins the
   existing arcade-player-ui shell. This is intentionally CSS-only.
   ═══════════════════════════════════════════════════════════════ */
html.nexus-player-active,
body.nexus-player-active.arcade-player-ui {
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 229, 255, .18), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(139, 92, 246, .2), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(0, 229, 255, .1), transparent 42%),
    linear-gradient(180deg, #06060c 0%, #0b0d1a 48%, #05060b 100%) !important;
  color: var(--txt) !important;
  font-family: var(--ui) !important;
}

body.nexus-player-active.arcade-player-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(110, 130, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 130, 255, .055) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 28%, #000 28%, transparent 78%);
          mask-image: radial-gradient(ellipse 95% 75% at 50% 28%, #000 28%, transparent 78%);
}

body.nexus-player-active.arcade-player-ui::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 46%, rgba(0, 229, 255, .055) 50%, transparent 55% 100%);
  animation: nexusLiveSweep 8s ease-in-out infinite;
}

@keyframes nexusLiveSweep {
  0%, 58% { transform: translateX(-35%); opacity: .15; }
  82% { opacity: .42; }
  100% { transform: translateX(35%); opacity: .08; }
}

body.nexus-player-active.arcade-player-ui #arcade-player-header {
  height: auto !important;
  min-height: 132px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  grid-template-areas:
    "nav title tools"
    "dock dock dock" !important;
  align-items: center !important;
  gap: 10px 16px !important;
  padding: 12px 22px 14px !important;
  background:
    linear-gradient(180deg, rgba(16, 17, 30, .88), rgba(7, 8, 16, .94)),
    radial-gradient(circle at 20% 0%, rgba(0, 229, 255, .16), transparent 34%) !important;
  border: 1px solid rgba(120, 140, 220, .28) !important;
  border-top: 0 !important;
  border-radius: 0 0 20px 20px !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .58), 0 0 55px rgba(0, 229, 255, .08) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-nav-group { grid-area: nav; }
body.nexus-player-active.arcade-player-ui .arcade-header-info { grid-area: title; text-align: center; min-width: 0 !important; }
body.nexus-player-active.arcade-player-ui .arcade-header-tools { grid-area: tools; justify-self: end; }
body.nexus-player-active.arcade-player-ui .arcade-action-dock {
  grid-area: dock;
  justify-self: stretch;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(120, 140, 220, .2) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(22, 24, 42, .6), rgba(8, 9, 18, .64)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 40px rgba(0, 0, 0, .25) !important;
}

body.nexus-player-active.arcade-player-ui #arcade-player-title {
  width: 100% !important;
  font-family: var(--disp) !important;
  font-size: clamp(1.6rem, 3.5vw, 3.35rem) !important;
  line-height: .98 !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  background: linear-gradient(90deg, #ffffff 0%, #8fa2ff 35%, var(--cyan) 63%, var(--magenta) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 8px 30px rgba(0, 229, 255, .22)) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-subtitle-row {
  justify-content: center !important;
  margin-top: 10px !important;
}

body.nexus-player-active.arcade-player-ui #arcade-platform-badge,
body.nexus-player-active.arcade-player-ui #arcade-system-display,
body.nexus-player-active.arcade-player-ui .arcade-live-pill,
body.nexus-player-active.arcade-player-ui .arcade-gamepad-pill,
body.nexus-player-active.arcade-player-ui .arcade-volume-control {
  height: 30px !important;
  border: 1px solid rgba(120, 140, 220, .34) !important;
  border-radius: 9px !important;
  background: rgba(9, 10, 22, .66) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
  color: var(--txt-2) !important;
  font-family: var(--disp) !important;
  letter-spacing: .12em !important;
}

body.nexus-player-active.arcade-player-ui #arcade-platform-badge {
  color: #001318 !important;
  background: linear-gradient(135deg, var(--cyan), #77ecff) !important;
  border-color: rgba(0, 229, 255, .7) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, .22) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-nav-btn,
body.nexus-player-active.arcade-player-ui .arcade-header-btn,
body.nexus-player-active.arcade-player-ui #arcade-volume-icon {
  border: 1px solid rgba(120, 140, 220, .26) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(20, 22, 40, .78), rgba(9, 10, 20, .88)) !important;
  color: var(--txt-2) !important;
  font-family: var(--ui) !important;
  letter-spacing: .08em !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-header-btn:hover,
body.nexus-player-active.arcade-player-ui .arcade-nav-btn:hover,
body.nexus-player-active.arcade-player-ui #arcade-volume-icon:hover {
  color: #fff !important;
  border-color: rgba(0, 229, 255, .72) !important;
  background: linear-gradient(180deg, rgba(0, 229, 255, .16), rgba(139, 92, 246, .14)) !important;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, .16) inset, 0 10px 26px rgba(0, 229, 255, .16) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-header-btn.primary {
  color: #021016 !important;
  background: linear-gradient(135deg, var(--cyan), #61bdff 58%, var(--violet)) !important;
  border-color: rgba(0, 229, 255, .7) !important;
  box-shadow: 0 12px 30px rgba(0, 229, 255, .28) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-header-btn.close {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(255, 45, 120, .86), rgba(255, 45, 184, .62)) !important;
  border-color: rgba(255, 45, 120, .72) !important;
  box-shadow: 0 12px 28px rgba(255, 45, 120, .22) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-header-btn .arcade-btn-icon {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, .32)) !important;
}

body.nexus-player-active.arcade-player-ui .arcade-avatar-btn {
  border-color: var(--cyan) !important;
  background: linear-gradient(135deg, #101a3a, #0a0d1f) !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, .08), 0 0 18px rgba(0, 229, 255, .36) !important;
}

body.nexus-player-active.arcade-player-ui #game-container {
  top: 132px !important;
  height: calc(100dvh - 132px) !important;
  height: calc(100vh - 132px) !important;
  grid-template-columns: minmax(0, 1fr) !important;
  padding: 18px 22px 22px !important;
  background: transparent !important;
  z-index: 2 !important;
}

body.nexus-player-active.arcade-player-ui #arcade-info-panel,
body.nexus-player-active.arcade-player-ui #game-sidebar,
body.nexus-player-active.arcade-player-ui #arcade-controls-panel {
  display: none !important;
}

body.nexus-player-active.arcade-player-ui #game-display-area {
  position: relative !important;
  isolation: isolate !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(14, 16, 30, .74), rgba(5, 6, 12, .94)),
    radial-gradient(circle at 50% 0%, rgba(0, 229, 255, .08), transparent 42%) !important;
  border: 1px solid rgba(120, 140, 220, .32) !important;
  box-shadow: 0 34px 95px rgba(0, 0, 0, .62), 0 0 65px rgba(0, 229, 255, .09) !important;
  overflow: hidden !important;
}

body.nexus-player-active.arcade-player-ui #game-display-area::before,
body.nexus-player-active.arcade-player-ui #game-display-area::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 3;
  pointer-events: none;
  border-color: var(--cyan);
  opacity: .88;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, .7));
}

body.nexus-player-active.arcade-player-ui #game-display-area::before {
  top: 7px;
  left: 7px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

body.nexus-player-active.arcade-player-ui #game-display-area::after {
  right: 7px;
  bottom: 7px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
}

body.nexus-player-active.arcade-player-ui #game {
  border-radius: 18px !important;
  background: #000 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 34px rgba(0, 0, 0, .55) !important;
}

body.nexus-player-active.arcade-player-ui #game canvas,
body.nexus-player-active.arcade-player-ui #game iframe,
body.nexus-player-active.arcade-player-ui #game video,
body.nexus-player-active.arcade-player-ui #game .ejs_canvas,
body.nexus-player-active.arcade-player-ui #game .ejs_screen {
  border-radius: 18px !important;
}

body.nexus-player-active.arcade-player-ui .arcade-status-bar {
  min-height: 34px !important;
  margin-bottom: 10px !important;
  border-radius: 13px !important;
  background: linear-gradient(90deg, rgba(0, 229, 255, .12), rgba(139, 92, 246, .1), rgba(255, 45, 184, .08)) !important;
  border: 1px solid rgba(120, 140, 220, .25) !important;
  color: var(--txt) !important;
  font-family: var(--disp) !important;
  font-size: .66rem !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
}

body.nexus-player-active.arcade-player-ui .arcade-status-dot {
  background: var(--lime) !important;
  box-shadow: 0 0 12px var(--lime) !important;
}

body.nexus-player-active.arcade-player-ui #loading,
body.nexus-player-active.arcade-player-ui .placeholder {
  background:
    radial-gradient(540px 300px at 50% 15%, rgba(0, 229, 255, .12), transparent 65%),
    radial-gradient(540px 280px at 50% 110%, rgba(139, 92, 246, .16), transparent 68%),
    rgba(4, 4, 10, .88) !important;
}

body.nexus-player-active.arcade-player-ui #loading-text,
body.nexus-player-active.arcade-player-ui #loading-status,
body.nexus-player-active.arcade-player-ui #loading-tip {
  font-family: var(--disp) !important;
  letter-spacing: .16em !important;
  color: var(--cyan) !important;
  text-shadow: 0 0 18px rgba(0, 229, 255, .45) !important;
}

body.nexus-player-active.arcade-player-ui #loading-bar {
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta)) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, .58) !important;
}

@media (max-width: 900px), (pointer: coarse) {
  body.nexus-player-active.arcade-player-ui #arcade-player-header {
    min-height: 74px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "title tools" !important;
    padding: 10px 12px !important;
    border-radius: 0 0 14px 14px !important;
  }

  body.nexus-player-active.arcade-player-ui .arcade-nav-group,
  body.nexus-player-active.arcade-player-ui .arcade-action-dock,
  body.nexus-player-active.arcade-player-ui .arcade-volume-control,
  body.nexus-player-active.arcade-player-ui .arcade-live-pill {
    display: none !important;
  }

  body.nexus-player-active.arcade-player-ui #arcade-player-title {
    font-size: clamp(1rem, 4.6vw, 1.35rem) !important;
    text-align: left !important;
  }

  body.nexus-player-active.arcade-player-ui .arcade-subtitle-row {
    justify-content: flex-start !important;
    margin-top: 5px !important;
  }

  body.nexus-player-active.arcade-player-ui #game-container {
    top: 74px !important;
    height: calc(100dvh - 74px) !important;
    padding: 8px !important;
  }

  body.nexus-player-active.arcade-player-ui #game-display-area {
    padding: 8px !important;
    border-radius: 14px !important;
  }

  body.nexus-player-active.arcade-player-ui #game,
  body.nexus-player-active.arcade-player-ui #game canvas,
  body.nexus-player-active.arcade-player-ui #game iframe,
  body.nexus-player-active.arcade-player-ui #game video,
  body.nexus-player-active.arcade-player-ui #game .ejs_canvas,
  body.nexus-player-active.arcade-player-ui #game .ejs_screen {
    border-radius: 10px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   NEXUS RESTORE V3 - exact holo player skin on the live emulator
   ═══════════════════════════════════════════════════════════════ */
:root {
  --nexus-player-top: clamp(218px, 21vh, 242px);
  --nexus-chat-width: 338px;
  --nexus-chat-gap: 18px;
  --nexus-hero-shift: clamp(28px, 3vw, 58px);
}

body.nexus-exact-player #nexus-aurora,
body.nexus-exact-player #nexus-gridfloor,
body.nexus-exact-player #nexus-sparks {
  display: block !important;
}

body.nexus-exact-player #nexus-sparks {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

body.nexus-exact-player #nexus-sparks i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(0, 229, 255, .88);
  box-shadow: 0 0 12px rgba(0, 229, 255, .78);
  opacity: .55;
  animation: nexusSparkFloat 9s linear infinite;
  animation-delay: calc(var(--d) * -1);
}

body.nexus-exact-player #nexus-sparks i:nth-child(3n) {
  background: rgba(255, 45, 184, .86);
  box-shadow: 0 0 12px rgba(255, 45, 184, .65);
}

body.nexus-exact-player #nexus-sparks i:nth-child(4n) {
  background: rgba(140, 160, 255, .82);
  box-shadow: 0 0 10px rgba(140, 160, 255, .62);
}

@keyframes nexusSparkFloat {
  from { transform: translate3d(0, 18px, 0); opacity: 0; }
  15% { opacity: .58; }
  to { transform: translate3d(26px, -96px, 0); opacity: 0; }
}

body.nexus-exact-player.arcade-player-ui #arcade-player-header {
  height: var(--nexus-player-top) !important;
  max-height: var(--nexus-player-top) !important;
  min-height: var(--nexus-player-top) !important;
  box-sizing: border-box !important;
  grid-template-columns: minmax(282px, 340px) minmax(0, 1fr) minmax(230px, 360px) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "nav hero tools"
    "nav hero dock" !important;
  align-items: stretch !important;
  gap: 12px 18px !important;
  padding: 12px 22px 12px !important;
  overflow: hidden !important;
  background:
    radial-gradient(520px 260px at 18% 0%, rgba(0, 229, 255, .2), transparent 68%),
    radial-gradient(440px 260px at 80% 15%, rgba(139, 92, 246, .18), transparent 70%),
    linear-gradient(180deg, rgba(16, 17, 30, .86), rgba(6, 6, 14, .94)) !important;
}

body.nexus-exact-player.arcade-player-ui #arcade-player-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: energyRun 3.4s linear infinite;
  pointer-events: none;
}

body.nexus-exact-player.arcade-player-ui #nexus-related-mini {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: stretch;
  z-index: 5;
  width: 100%;
  height: min(100%, 520px);
  min-height: 300px;
  max-height: calc(100dvh - var(--nexus-player-top) - 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 140, 220, .28);
  border-radius: 18px;
  background:
    radial-gradient(260px 210px at 10% 0%, rgba(0,229,255,.18), transparent 70%),
    radial-gradient(220px 210px at 92% 100%, rgba(255,45,184,.12), transparent 72%),
    linear-gradient(180deg, rgba(15,18,35,.86), rgba(6,7,16,.74));
  box-shadow: 0 24px 58px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.nexus-exact-player.arcade-player-ui .nexus-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--cyan);
  font-family: var(--disp);
  text-transform: uppercase;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-head span {
  color: var(--txt-2);
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .22em;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-head b {
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 0 14px rgba(0,229,255,.28);
}

body.nexus-exact-player.arcade-player-ui .nexus-related-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(120,140,220,.08);
}

body.nexus-exact-player.arcade-player-ui .nexus-related-list::-webkit-scrollbar {
  width: 7px;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-list::-webkit-scrollbar-track {
  background: rgba(120,140,220,.08);
  border-radius: 999px;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 999px;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-card {
  min-width: 0;
  min-height: 56px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 9px 7px 7px;
  border: 1px solid rgba(120,140,220,.18);
  border-radius: 13px;
  color: var(--txt);
  text-decoration: none;
  background: rgba(8,10,22,.62);
  transition: border-color .18s ease, background .18s ease, translate .18s ease;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-card:hover {
  translate: 3px 0;
  border-color: rgba(0,229,255,.48);
  background: rgba(0,229,255,.08);
}

body.nexus-exact-player.arcade-player-ui .nexus-related-poster {
  width: 44px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0,229,255,.28);
  background: #090b18;
  box-shadow: 0 0 14px rgba(0,229,255,.12);
}

body.nexus-exact-player.arcade-player-ui .nexus-related-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-copy b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-family: var(--disp);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.nexus-exact-player.arcade-player-ui .nexus-related-copy small {
  color: var(--cyan);
  font-family: var(--disp);
  font-size: .46rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.nexus-exact-player.arcade-player-ui #nexus-player-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "brand"
    "cover"
    "identity";
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 0;
  width: calc(100% - var(--nexus-hero-shift));
  margin-left: var(--nexus-hero-shift);
  position: relative;
  z-index: 2;
  animation: rise .62s cubic-bezier(.2,.8,.3,1) both;
}

body.nexus-exact-player.arcade-player-ui #nexus-player-hero .nexus-brandline {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(760px, 100%);
  min-width: 0;
}

body.nexus-exact-player.arcade-player-ui #nexus-player-hero .wordmark.compact {
  text-align: center;
}

body.nexus-exact-player.arcade-player-ui #nexus-player-hero .wordmark.compact .gl {
  font-size: clamp(.82rem, 1.25vw, 1.08rem);
  letter-spacing: .19em;
}

body.nexus-exact-player.arcade-player-ui #nexus-player-hero .wordmark.compact .sub {
  justify-content: center;
  margin-top: 4px;
  font-size: .46rem;
}

body.nexus-exact-player.arcade-player-ui .nexus-live-code {
  position: absolute;
  top: 0;
  right: 0;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 11px;
  border: 1px solid rgba(163, 255, 60, .24);
  border-radius: 999px;
  background: rgba(163, 255, 60, .07);
  color: var(--lime);
  font-family: var(--disp);
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(163, 255, 60, .1);
}

body.nexus-exact-player.arcade-player-ui .nexus-cover-holo {
  grid-area: cover;
  align-self: start;
  justify-self: center;
  perspective: 1100px;
  min-width: 0;
}

body.nexus-exact-player.arcade-player-ui .nexus-cover-holo .holo-card {
  width: clamp(84px, 5.8vw, 96px);
  max-width: 96px;
  margin: 0;
  border-radius: 14px;
}

body.nexus-exact-player.arcade-player-ui .nexus-cover-holo .holo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 25%, rgba(0, 229, 255, .24), transparent 60%),
    #0c0e1e;
}

body.nexus-exact-player.arcade-player-ui .nexus-cover-holo .holo-card .seal {
  top: 7px;
  right: 7px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nexus-exact-player.arcade-player-ui .nexus-cover-holo .holo-card .ticket {
  left: 7px;
  right: 7px;
  bottom: 7px;
  padding: 6px 7px;
}

body.nexus-exact-player.arcade-player-ui .nexus-cover-holo .holo-card .ticket span {
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nexus-exact-player.arcade-player-ui .nexus-identity {
  grid-area: identity;
  align-self: start;
  justify-self: center;
  min-width: 0;
  width: min(760px, 100%);
  padding-right: 0;
  text-align: center;
  transform: translateY(-8px);
}

body.nexus-exact-player.arcade-player-ui .nexus-identity .sys {
  justify-content: center;
  margin-bottom: 4px;
  font-size: clamp(.48rem, .75vw, .62rem);
  letter-spacing: .28em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nexus-exact-player.arcade-player-ui .nexus-identity h1 {
  display: none !important;
}

body.nexus-exact-player.arcade-player-ui .nexus-identity h1 .w b {
  animation-delay: calc(var(--wi, 0) * .08s);
}

body.nexus-exact-player.arcade-player-ui .nexus-identity .tag {
  display: none !important;
}

body.nexus-exact-player.arcade-player-ui .nexus-identity .chips {
  display: none !important;
}

body.nexus-exact-player.arcade-player-ui .nexus-identity .chip {
  min-height: 27px;
  padding: 5px 10px;
  font-size: .68rem;
  letter-spacing: .11em;
}

body.nexus-exact-player.arcade-player-ui .nexus-mini-stats {
  display: none !important;
}

body.nexus-exact-player.arcade-player-ui .nexus-mini-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(120, 140, 220, .2);
  border-radius: 10px;
  background: rgba(6, 6, 14, .44);
}

body.nexus-exact-player.arcade-player-ui .nexus-mini-stats b {
  font-family: var(--disp);
  font-size: .96rem;
  color: #fff;
}

body.nexus-exact-player.arcade-player-ui .nexus-mini-stats small {
  color: var(--txt-3);
  font-family: var(--disp);
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

body.nexus-exact-player.arcade-player-ui .arcade-header-info {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-header-tools {
  grid-area: tools;
  align-self: stretch;
  justify-self: end;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 230px !important;
  max-width: 360px !important;
  position: relative;
  z-index: 4;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-chip {
  width: 100% !important;
  min-height: 46px !important;
  display: grid !important;
  grid-template-columns: 10px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 11px !important;
  border: 1px solid rgba(120, 140, 220, .34) !important;
  border-radius: 13px !important;
  background:
    radial-gradient(140px 70px at 10% 0%, rgba(0, 229, 255, .13), transparent 72%),
    linear-gradient(180deg, rgba(17, 20, 38, .84), rgba(7, 8, 18, .72)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.18) !important;
  overflow: hidden !important;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-chip.connected {
  border-color: rgba(163, 255, 60, .6) !important;
  background:
    radial-gradient(150px 74px at 10% 0%, rgba(163, 255, 60, .16), transparent 72%),
    linear-gradient(180deg, rgba(20, 34, 24, .78), rgba(7, 12, 12, .72)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 26px rgba(163,255,60,.14) !important;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(120, 140, 220, .55);
  box-shadow: 0 0 9px rgba(120,140,220,.35);
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-chip.connected .nexus-controller-dot {
  background: var(--lime);
  box-shadow: 0 0 12px rgba(163,255,60,.76);
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-label {
  color: var(--cyan);
  font-family: var(--disp);
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-chip strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-family: var(--disp);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-chip em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--txt-2);
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

body.nexus-exact-player.arcade-player-ui .nexus-controller-chip.connected em {
  color: var(--lime);
}

body.nexus-exact-player.arcade-player-ui .arcade-volume-control {
  width: 100% !important;
  justify-content: flex-end !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill,
body.nexus-exact-player.arcade-player-ui .arcade-live-pill {
  width: 100% !important;
  justify-content: center !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-nav-group {
  grid-area: nav;
  align-self: end;
  justify-self: start;
  position: relative;
  z-index: 4;
}

body.nexus-exact-player.arcade-player-ui .arcade-action-dock {
  position: fixed !important;
  top: calc(var(--nexus-player-top) + 22px) !important;
  right: 22px !important;
  bottom: auto !important;
  left: auto !important;
  width: 122px !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  padding: 10px !important;
  overflow: visible !important;
  border-radius: 18px !important;
  border: 1px solid rgba(120, 140, 220, .26) !important;
  background:
    radial-gradient(150px 220px at 50% 0%, rgba(0, 229, 255, .10), transparent 68%),
    linear-gradient(180deg, rgba(13, 14, 28, .80), rgba(5, 6, 12, .88)) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.05) !important;
  z-index: 70 !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-action-dock::after {
  content: none !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-action-dock .arcade-header-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 0 10px !important;
  justify-content: center !important;
  border-radius: 14px !important;
  font-size: .66rem !important;
  letter-spacing: .12em !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-action-dock .arcade-header-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nexus-exact-player.arcade-player-ui .arcade-action-dock .arcade-header-btn.primary,
body.nexus-exact-player.arcade-player-ui .arcade-action-dock .arcade-header-btn.close {
  min-height: 44px !important;
}

body.nexus-exact-player.arcade-player-ui #game-container {
  top: var(--nexus-player-top) !important;
  height: calc(100dvh - var(--nexus-player-top)) !important;
  height: calc(100vh - var(--nexus-player-top)) !important;
  padding: 14px 20px 18px !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: clamp(248px, 18vw, 330px) minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body.nexus-exact-player.arcade-player-ui #game-display-area {
  grid-column: 2;
  grid-row: 1;
  display: grid !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
  gap: 9px !important;
  padding: 0 !important;
  border-radius: 20px !important;
  background: rgba(8, 8, 16, .82) !important;
  border: 1px solid rgba(120, 140, 220, .3) !important;
  box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 70px rgba(0,229,255,.08) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  width: 100% !important;
  height: min(100%, 570px) !important;
  align-self: start !important;
}

body.nexus-exact-player.arcade-player-ui #nexus-live-hud {
  display: flex !important;
  min-height: 42px !important;
  border-radius: 0 !important;
  border-bottom: 1px solid rgba(120, 140, 220, .2) !important;
  background: linear-gradient(180deg, rgba(20,22,40,.76), rgba(10,10,20,.52)) !important;
  position: relative;
  z-index: 5;
}

body.nexus-exact-player.arcade-player-ui #nexus-live-hud .mid {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.nexus-exact-player.arcade-player-ui #game-display-area .arcade-status-bar {
  margin: 0 14px !important;
}

body.nexus-exact-player.arcade-player-ui.arcade-game-ready #game-display-area .arcade-status-bar {
  display: none !important;
}

body.nexus-exact-player.arcade-player-ui #game {
  margin: 0 14px 14px !important;
  min-height: 0 !important;
  border-radius: 16px !important;
  position: relative !important;
}

body.nexus-exact-player.arcade-player-ui #loading {
  border-radius: 16px !important;
  margin: 0 14px 14px !important;
}

body.nexus-exact-player.arcade-player-ui #loading::after {
  content: "OLDGAMES // NEXUS";
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  color: var(--cyan);
  font-family: var(--disp);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .32em;
  text-shadow: 0 0 20px rgba(0,229,255,.55);
}

@media (max-width: 1120px) {
  :root {
    --nexus-player-top: 246px;
    --nexus-hero-shift: 0px;
  }

  body.nexus-exact-player.arcade-player-ui #arcade-player-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 13px 15px 12px !important;
  }

  body.nexus-exact-player.arcade-player-ui #nexus-player-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  body.nexus-exact-player.arcade-player-ui #nexus-related-mini {
    display: none !important;
  }

  body.nexus-exact-player.arcade-player-ui #game-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.nexus-exact-player.arcade-player-ui #game-display-area {
    grid-column: 1 !important;
  }

  body.nexus-exact-player.arcade-player-ui .nexus-identity .tag,
  body.nexus-exact-player.arcade-player-ui .nexus-mini-stats {
    display: none;
  }

  body.nexus-exact-player.arcade-player-ui .arcade-header-tools {
    min-width: 182px !important;
  }

  body.nexus-exact-player.arcade-player-ui .arcade-volume-control {
    display: none !important;
  }

  body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill {
    display: inline-flex !important;
    min-width: 178px !important;
    max-width: min(260px, 42vw) !important;
  }

  body.nexus-exact-player.arcade-player-ui .nexus-controller-chip {
    min-height: 42px !important;
  }
}

@media (max-width: 900px), (pointer: coarse) {
  :root {
    --nexus-player-top: 112px;
    --nexus-hero-shift: 0px;
  }

  body.nexus-exact-player.arcade-player-ui #arcade-player-header {
    min-height: var(--nexus-player-top) !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: minmax(0, 1fr) !important;
    grid-template-areas: "hero tools" !important;
    padding: 9px 10px !important;
  }

  body.nexus-exact-player.arcade-player-ui #nexus-player-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "identity";
    gap: 6px;
  }

  body.nexus-exact-player.arcade-player-ui .nexus-cover-holo,
  body.nexus-exact-player.arcade-player-ui #nexus-related-mini,
  body.nexus-exact-player.arcade-player-ui .nexus-controller-chip,
  body.nexus-exact-player.arcade-player-ui .nexus-identity .chips,
  body.nexus-exact-player.arcade-player-ui .nexus-live-code,
  body.nexus-exact-player.arcade-player-ui .arcade-nav-group,
  body.nexus-exact-player.arcade-player-ui .arcade-action-dock,
  body.nexus-exact-player.arcade-player-ui #nexus-live-hud .seg.opt,
  body.nexus-exact-player.arcade-player-ui #nexus-live-hud .seglights {
    display: none !important;
  }

  body.nexus-exact-player.arcade-player-ui #nexus-player-hero .wordmark.compact .gl {
    font-size: .78rem;
  }

  body.nexus-exact-player.arcade-player-ui .nexus-identity .sys {
    font-size: .46rem;
    margin-bottom: 4px;
  }

  body.nexus-exact-player.arcade-player-ui .nexus-identity h1 {
    font-size: clamp(1.05rem, 5.5vw, 1.65rem);
    line-height: 1;
  }

  body.nexus-exact-player.arcade-player-ui .arcade-header-tools {
    min-width: 46px !important;
    max-width: 58px !important;
    justify-content: center !important;
  }

  body.nexus-exact-player.arcade-player-ui .arcade-header-tools > *:not(#arcadePlayerUserSection):not(.arcade-gamepad-pill) {
    display: none !important;
  }

  body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill {
    display: none !important;
  }

  body.nexus-exact-player.arcade-player-ui.nexus-controller-connected .arcade-header-tools {
    min-width: min(250px, 50vw) !important;
    max-width: min(280px, 52vw) !important;
    gap: 6px !important;
  }

  body.nexus-exact-player.arcade-player-ui.nexus-controller-connected .arcade-gamepad-pill {
    display: inline-flex !important;
    order: 1 !important;
    width: 100% !important;
    min-width: 166px !important;
    max-width: 100% !important;
    height: 30px !important;
    padding: 0 10px !important;
    font-size: .5rem !important;
    letter-spacing: .1em !important;
  }

  body.nexus-exact-player.arcade-player-ui.nexus-controller-connected #arcadePlayerUserSection {
    order: 2 !important;
  }

  body.nexus-exact-player.arcade-player-ui #game-container {
    top: var(--nexus-player-top) !important;
    height: calc(100dvh - var(--nexus-player-top)) !important;
    height: calc(100vh - var(--nexus-player-top)) !important;
    padding: 8px !important;
  }

  body.nexus-exact-player.arcade-player-ui #nexus-live-hud {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: .54rem !important;
  }

  body.nexus-exact-player.arcade-player-ui #nexus-live-hud .live {
    min-width: 118px;
  }

  body.nexus-exact-player.arcade-player-ui #game {
    margin: 0 8px 8px !important;
  }
}

html.nexus-player-active body.emulator-page.arcade-player-ui.nexus-exact-player:not(:has(.mp-arena-v5)) #game-container,
html.nexus-player-active body.emulator-page.arcade-player-ui.nexus-exact-player:not(.og-arcade-only):not(:has(.mp-arena-v5)) #game-container,
html.nexus-player-active:not(.og-arcade-only) body.emulator-page.arcade-player-ui.nexus-exact-player:not(:has(.mp-arena-v5)) #game-container {
  top: var(--nexus-player-top) !important;
  height: calc(100dvh - var(--nexus-player-top)) !important;
  height: calc(100vh - var(--nexus-player-top)) !important;
  max-height: calc(100dvh - var(--nexus-player-top)) !important;
  padding-top: 8px !important;
}

/* Nexus emulator on-demand chat popup. The game keeps the full stage until
   the player explicitly opens chat from the floating CHAT button. */
@media (min-width: 1080px) and (hover: hover) {
  body.nexus-exact-player.arcade-player-ui #liveChat.live-chat {
    position: fixed !important;
    top: auto !important;
    right: 24px !important;
    bottom: 88px !important;
    left: auto !important;
    width: min(390px, calc(100vw - 48px)) !important;
    height: min(560px, calc(100dvh - var(--nexus-player-top) - 118px)) !important;
    max-height: calc(100dvh - var(--nexus-player-top) - 118px) !important;
    display: none !important;
    flex-direction: column !important;
    border-radius: 18px !important;
    border: 1px solid rgba(120, 140, 220, .34) !important;
    background:
      radial-gradient(260px 180px at 50% 0%, rgba(0, 229, 255, .13), transparent 70%),
      linear-gradient(180deg, rgba(14, 16, 30, .92), rgba(5, 6, 12, .96)) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .58), 0 0 45px rgba(0, 229, 255, .11) !important;
    overflow: hidden !important;
    transform: none !important;
    z-index: 2147483647 !important;
  }

  body.nexus-exact-player.arcade-player-ui.og-nexus-chat-open #liveChat.live-chat {
    display: flex !important;
    animation: nexusChatSlideIn .42s cubic-bezier(.2,.8,.3,1) both;
  }

  body.nexus-exact-player.arcade-player-ui #liveChat .chat-header {
    min-height: 54px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(120, 140, 220, .22) !important;
    background: linear-gradient(180deg, rgba(22, 24, 42, .78), rgba(8, 9, 18, .55)) !important;
  }

  body.nexus-exact-player.arcade-player-ui #liveChat .chat-title {
    font-family: var(--disp) !important;
    font-size: .78rem !important;
    letter-spacing: .18em !important;
    color: #fff !important;
  }

  body.nexus-exact-player.arcade-player-ui #liveChat .chat-tabs {
    min-height: 42px !important;
    border-bottom: 1px solid rgba(120, 140, 220, .18) !important;
  }

  body.nexus-exact-player.arcade-player-ui #liveChat .chat-tab {
    font-family: var(--disp) !important;
    font-size: .58rem !important;
    letter-spacing: .14em !important;
  }

  body.nexus-exact-player.arcade-player-ui #liveChat .chat-input-container {
    padding: 10px !important;
    border-top: 1px solid rgba(120, 140, 220, .18) !important;
    background: rgba(4, 5, 12, .72) !important;
  }

  body.nexus-exact-player.arcade-player-ui #liveChat .chat-input-wrapper,
  body.nexus-exact-player.arcade-player-ui #liveChat .chat-input {
    border-radius: 12px !important;
  }

  body.nexus-exact-player.arcade-player-ui #chatToggleBtn.chat-toggle-btn {
    right: 24px !important;
    bottom: 24px !important;
  }

  body.nexus-exact-player.arcade-player-ui #chatToggleBtn.chat-toggle-btn.nexus-chat-open {
    border-color: rgba(0, 229, 255, .75) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.6), 0 0 24px rgba(0,229,255,.26) !important;
  }
}

@keyframes nexusChatSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

body.nexus-exact-player.arcade-player-ui .gamepad-status {
  top: auto !important;
  right: 24px !important;
  bottom: 24px !important;
  min-width: 250px !important;
  max-width: min(330px, calc(100vw - 32px)) !important;
  padding: 10px 13px !important;
  border: 1px solid rgba(0, 229, 255, .55) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(180px 90px at 12% 0%, rgba(0, 229, 255, .16), transparent 70%),
    rgba(5, 6, 14, .92) !important;
  color: var(--txt) !important;
  font-family: var(--ui) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.44), 0 0 24px rgba(0,229,255,.18) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status.hidden {
  display: flex !important;
  opacity: 0 !important;
  transform: translateY(18px) scale(.96) !important;
  pointer-events: none !important;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status.connected {
  border-color: rgba(163, 255, 60, .66) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.44), 0 0 30px rgba(163,255,60,.2) !important;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(139,92,246,.16));
  color: var(--cyan);
  font-size: 0 !important;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status-icon::before {
  content: "🎮";
  font-size: 19px;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status-name {
  font-family: var(--disp) !important;
  font-size: .68rem !important;
  letter-spacing: .1em !important;
  color: #fff !important;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status-details {
  color: var(--cyan) !important;
  font-size: .78rem !important;
  letter-spacing: .04em !important;
}

body.nexus-exact-player.arcade-player-ui .gamepad-status-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid rgba(120,140,220,.25) !important;
  border-radius: 9px !important;
  background: rgba(120,140,220,.08) !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill.connected,
body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill:has(#arcade-gamepad-status-dot.connected) {
  border-color: rgba(163, 255, 60, .52) !important;
  color: #fff !important;
  box-shadow: 0 0 22px rgba(163, 255, 60, .16), inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 188px !important;
  max-width: min(300px, 32vw) !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-color: rgba(120, 140, 220, .34) !important;
  background:
    linear-gradient(180deg, rgba(17, 20, 38, .86), rgba(8, 10, 24, .7)) !important;
  color: rgba(238, 240, 255, .82) !important;
}

body.nexus-exact-player.arcade-player-ui #arcade-gamepad-status-text {
  display: inline-block !important;
  min-width: 0 !important;
  max-width: 230px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill.connected #arcade-gamepad-status-text,
body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill:has(#arcade-gamepad-status-dot.connected) #arcade-gamepad-status-text {
  color: #f6fff0 !important;
  text-shadow: 0 0 12px rgba(163, 255, 60, .22) !important;
}

body.nexus-exact-player.arcade-player-ui #arcade-gamepad-status-dot {
  flex: 0 0 auto !important;
}

body.nexus-exact-player.game-active .arcade-gamepad-pill,
body.nexus-exact-player.game-active .arcade-gamepad-pill *,
html.nexus-player-active body.nexus-exact-player.game-active .arcade-gamepad-pill,
html.nexus-player-active body.nexus-exact-player.game-active .arcade-gamepad-pill * {
  opacity: 1 !important;
  visibility: visible !important;
}

body.nexus-exact-player.arcade-player-ui.nexus-gamepad-pulse #game-display-area {
  animation: nexusFrameLinkPulse 1.35s ease both;
}

body.nexus-exact-player.arcade-player-ui.nexus-gamepad-pulse #game-display-area::before,
body.nexus-exact-player.arcade-player-ui.nexus-gamepad-pulse #game-display-area::after {
  animation: bracketPulse .42s ease-in-out infinite;
  border-color: var(--lime) !important;
  filter: drop-shadow(0 0 16px rgba(163,255,60,.8)) !important;
}

body.nexus-exact-player.arcade-player-ui.nexus-gamepad-disconnect #game-display-area {
  animation: nexusFrameDisconnect .85s ease both;
}

@keyframes nexusFrameLinkPulse {
  0% { box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 rgba(163,255,60,0); border-color: rgba(120,140,220,.3); }
  28% { box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 72px rgba(163,255,60,.32); border-color: rgba(163,255,60,.72); }
  100% { box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 70px rgba(0,229,255,.08); border-color: rgba(120,140,220,.3); }
}

@keyframes nexusFrameDisconnect {
  0% { border-color: rgba(255,45,120,.7); }
  100% { border-color: rgba(120,140,220,.3); }
}

/* Keep the Nexus shell alive after the emulator marks the game active.
   The legacy performance CSS pauses non-game animations globally; these
   targeted overrides restore only the lightweight chrome, never #game. */
body.nexus-exact-player.game-active #nexus-player-hero,
body.nexus-exact-player.game-active #nexus-player-hero *,
body.nexus-exact-player.game-active #nexus-live-hud,
body.nexus-exact-player.game-active #nexus-live-hud *,
body.nexus-exact-player.game-active #liveChat,
body.nexus-exact-player.game-active #liveChat *,
body.nexus-exact-player.game-active .gamepad-status,
body.nexus-exact-player.game-active .gamepad-status *,
body.nexus-exact-player.game-active #nexus-sparks,
body.nexus-exact-player.game-active #nexus-sparks *,
body.nexus-exact-player.game-active #game-display-area::before,
body.nexus-exact-player.game-active #game-display-area::after {
  transition-property: opacity, transform, border-color, box-shadow, background-color, color !important;
}

body.nexus-exact-player.game-active #nexus-aurora i:nth-child(1) { animation: drift1 26s ease-in-out infinite alternate !important; }
body.nexus-exact-player.game-active #nexus-aurora i:nth-child(2) { animation: drift2 31s ease-in-out infinite alternate !important; }
body.nexus-exact-player.game-active #nexus-aurora i:nth-child(3) { animation: drift3 24s ease-in-out infinite alternate !important; }
body.nexus-exact-player.game-active #nexus-sparks i { animation: nexusSparkFloat 9s linear infinite !important; }
body.nexus-exact-player.game-active .eq i { animation: eqB 1s ease-in-out infinite !important; }
body.nexus-exact-player.game-active .hudbar .live .cur { animation: blip 1s steps(1) infinite !important; }
body.nexus-exact-player.game-active .holo-card { animation: floaty 5.5s ease-in-out infinite !important; }
body.nexus-exact-player.game-active .holo-card::before { animation: haTurn 7s linear infinite !important; }
body.nexus-exact-player.game-active .holo-card .scan::after { animation: scanline 4.4s ease-in-out infinite !important; }
body.nexus-exact-player.game-active .emblem .ringd { animation: orbit 16s linear infinite !important; }
body.nexus-exact-player.game-active .emblem .arc { animation: orbit 5s linear infinite reverse !important; }
body.nexus-exact-player.game-active .emblem .arc2 { animation: orbit 8s linear infinite !important; }
body.nexus-exact-player.game-active .emblem .orbgrp { animation: orbit 5s linear infinite reverse !important; }
body.nexus-exact-player.game-active .emblem .mono { animation: draw 4.2s ease-in-out infinite !important; }
body.nexus-exact-player.game-active .wordmark .gl::before { animation: gl1 3.2s steps(2) infinite !important; }
body.nexus-exact-player.game-active .wordmark .gl::after { animation: gl2 2.7s steps(2) infinite !important; }
body.nexus-exact-player.game-active.nexus-gamepad-pulse #game-display-area { animation: nexusFrameLinkPulse 1.35s ease both !important; }
body.nexus-exact-player.game-active.nexus-gamepad-pulse #game-display-area::before,
body.nexus-exact-player.game-active.nexus-gamepad-pulse #game-display-area::after { animation: bracketPulse .42s ease-in-out infinite !important; }
body.nexus-exact-player.game-active.nexus-gamepad-disconnect #game-display-area { animation: nexusFrameDisconnect .85s ease both !important; }

body.nexus-exact-player.game-active #arcade-player-header,
body.nexus-exact-player.game-active #game-display-area,
body.nexus-exact-player.game-active #liveChat.live-chat,
body.nexus-exact-player.game-active .gamepad-status,
body.nexus-exact-player.game-active .arcade-action-dock,
body.nexus-exact-player.game-active .nexus-mini-stats span,
body.nexus-exact-player.game-active .holo-card img {
  box-shadow: revert-layer !important;
  filter: none !important;
}

body.nexus-exact-player.game-active #arcade-player-header {
  box-shadow: 0 22px 70px rgba(0, 0, 0, .58), 0 0 55px rgba(0, 229, 255, .08) !important;
  backdrop-filter: blur(12px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.15) !important;
}

body.nexus-exact-player.game-active #game-display-area {
  box-shadow: 0 30px 72px rgba(0,0,0,.58), 0 0 50px rgba(0,229,255,.07) !important;
}

body.nexus-exact-player.game-active #liveChat.live-chat {
  box-shadow: 0 26px 70px rgba(0, 0, 0, .52), 0 0 34px rgba(0, 229, 255, .1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

body.nexus-exact-player.game-active .gamepad-status {
  box-shadow: 0 18px 45px rgba(0,0,0,.44), 0 0 24px rgba(0,229,255,.18) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

body.nexus-exact-player.game-active .idblock h1 .w b,
body.nexus-exact-player.game-active #nexus-live-hud,
body.nexus-exact-player.game-active #nexus-live-hud *,
body.nexus-exact-player.game-active .wordmark .gl,
body.nexus-exact-player.game-active .gamepad-status-name,
body.nexus-exact-player.game-active .gamepad-status-details {
  text-shadow: revert-layer !important;
}

/* Gameplay stability pass: keep the Nexus look, but stop continuous
   chrome animation once the emulator is running so the game gets priority. */
html.nexus-player-active body.nexus-exact-player.game-active #nexus-aurora,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-gridfloor,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-sparks {
  opacity: .32 !important;
  filter: none !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #nexus-aurora i,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-sparks i,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-player-hero *,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-player-hero *::before,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-player-hero *::after,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-live-hud *,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-live-hud *::before,
html.nexus-player-active body.nexus-exact-player.game-active #nexus-live-hud *::after {
  animation: none !important;
  animation-play-state: paused !important;
  transition: none !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #arcade-player-header#arcade-player-header {
  height: var(--nexus-player-top) !important;
  min-height: var(--nexus-player-top) !important;
  max-height: var(--nexus-player-top) !important;
  background:
    linear-gradient(180deg, rgba(9, 10, 22, .92), rgba(5, 6, 14, .86)),
    radial-gradient(circle at 16% 0%, rgba(0,229,255,.13), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(255,45,184,.11), transparent 35%) !important;
  border-color: rgba(120, 140, 220, .22) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #game-container#game-container {
  top: var(--nexus-player-top) !important;
  height: calc(100dvh - var(--nexus-player-top)) !important;
  height: calc(100vh - var(--nexus-player-top)) !important;
  max-height: calc(100dvh - var(--nexus-player-top)) !important;
  padding: 4px 36px 34px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  contain: layout paint !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #game-display-area#game-display-area {
  width: min(calc(100vw - 120px), var(--nexus-frame-width, 820px)) !important;
  height: auto !important;
  max-height: calc(100dvh - var(--nexus-player-top) - 54px) !important;
  flex: 0 1 auto !important;
  margin-inline: auto !important;
  grid-template-rows: auto minmax(0, auto) !important;
  justify-items: center !important;
  align-content: center !important;
  border-radius: 22px !important;
  border: 1px solid rgba(120,140,220,.28) !important;
  background: linear-gradient(180deg, rgba(13,14,26,.9), rgba(5,6,12,.96)) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.5), 0 0 28px rgba(0,229,255,.06) !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: layout paint !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #nexus-live-hud#nexus-live-hud {
  width: 100% !important;
}

/* Related Games placement fix.
   Keep the compact Nexus card, but place it in the free left gameplay
   space. The game-active shell switches #game-container to flex, so this
   panel cannot depend on grid placement after the emulator starts. */
@media (min-width: 1121px) and (hover: hover) and (pointer: fine) {
  html.nexus-player-active body.nexus-exact-player.arcade-player-ui #nexus-related-mini {
    position: fixed !important;
    top: calc(var(--nexus-player-top) + 16px) !important;
    left: 24px !important;
    z-index: 6 !important;
    width: clamp(196px, 15.5vw, 280px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(48dvh, calc(100dvh - var(--nexus-player-top) - 86px)) !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 8px !important;
    padding: 10px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-list {
    gap: 6px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-card {
    min-height: 44px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 5px 7px 5px 5px !important;
    border-radius: 11px !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-poster {
    width: 34px !important;
    height: 44px !important;
    border-radius: 8px !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-copy b {
    font-size: .54rem !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-copy small {
    font-size: .43rem !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-head b {
    font-size: .68rem !important;
  }

  html.nexus-player-active body.nexus-exact-player.arcade-player-ui .nexus-related-head span {
    font-size: .47rem !important;
  }
}

html.nexus-player-active body.nexus-exact-player.game-active #game#game {
  width: auto !important;
  height: min(var(--nexus-game-height, 500px), calc(100dvh - var(--nexus-player-top) - 102px)) !important;
  aspect-ratio: var(--nexus-game-aspect, 4 / 3) !important;
  max-width: calc(100% - 20px) !important;
  min-height: min(180px, calc(100dvh - var(--nexus-player-top) - 102px)) !important;
  flex: none !important;
  justify-self: center !important;
  align-self: center !important;
  border-radius: 18px !important;
  contain: layout paint !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #game#game > .ejs_canvas_parent,
html.nexus-player-active body.nexus-exact-player.game-active #game#game canvas.ejs_canvas,
html.nexus-player-active body.nexus-exact-player.game-active #game#game .ejs_screen,
html.nexus-player-active body.nexus-exact-player.game-active #game#game video,
html.nexus-player-active body.nexus-exact-player.game-active #game#game iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

html.nexus-player-active body.nexus-exact-player.game-active #liveChat#liveChat.live-chat {
  box-shadow: 0 20px 44px rgba(0,0,0,.48), 0 0 24px rgba(0,229,255,.08) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.nexus-player-active body.nexus-exact-player.game-active .gamepad-status.gamepad-status {
  box-shadow: 0 14px 34px rgba(0,0,0,.42), 0 0 18px rgba(0,229,255,.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.nexus-player-active body.nexus-exact-player.game-active.nexus-gamepad-pulse #game-display-area#game-display-area {
  border-color: rgba(163,255,60,.66) !important;
  box-shadow: 0 22px 54px rgba(0,0,0,.5), 0 0 44px rgba(163,255,60,.18) !important;
}

/* The dedicated Nexus controller chip replaces the older compact pill. */
html.nexus-player-active body.nexus-exact-player.arcade-player-ui .arcade-gamepad-pill {
  display: none !important;
}

/* Gameplay performance mode: keep the Nexus frame, but remove effects that
   compete with the emulator canvas after the game is running. */
html.nexus-runtime-performance body.nexus-exact-player::after,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance::after {
  animation: none !important;
  display: none !important;
}

html.nexus-runtime-performance body.nexus-exact-player #nexus-aurora,
html.nexus-runtime-performance body.nexus-exact-player #nexus-sparks,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-aurora,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-sparks {
  display: none !important;
}

html.nexus-runtime-performance body.nexus-exact-player #nexus-gridfloor,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-gridfloor {
  opacity: .14 !important;
  filter: none !important;
  -webkit-mask-image: none !important;
          mask-image: none !important;
}

html.nexus-runtime-performance body.nexus-exact-player #nexus-player-hero *,
html.nexus-runtime-performance body.nexus-exact-player #nexus-player-hero *::before,
html.nexus-runtime-performance body.nexus-exact-player #nexus-player-hero *::after,
html.nexus-runtime-performance body.nexus-exact-player #nexus-live-hud *,
html.nexus-runtime-performance body.nexus-exact-player #nexus-live-hud *::before,
html.nexus-runtime-performance body.nexus-exact-player #nexus-live-hud *::after,
html.nexus-runtime-performance body.nexus-exact-player .nexus-controller-chip *,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-player-hero *,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-player-hero *::before,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-player-hero *::after,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-live-hud *,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-live-hud *::before,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #nexus-live-hud *::after,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance .nexus-controller-chip * {
  animation: none !important;
  animation-play-state: paused !important;
  transition: none !important;
  filter: none !important;
}

html.nexus-runtime-performance body.nexus-exact-player .holo-card::before,
html.nexus-runtime-performance body.nexus-exact-player .holo-card .glare,
html.nexus-runtime-performance body.nexus-exact-player .holo-card .scan,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance .holo-card::before,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance .holo-card .glare,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance .holo-card .scan {
  display: none !important;
}

html.nexus-runtime-performance body.nexus-exact-player #arcade-player-header#arcade-player-header,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #arcade-player-header#arcade-player-header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

html.nexus-runtime-performance body.nexus-exact-player #game-display-area#game-display-area,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance #game-display-area#game-display-area {
  box-shadow: 0 16px 36px rgba(0,0,0,.46) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.nexus-runtime-performance body.nexus-exact-player .nexus-controller-chip,
html.nexus-runtime-performance body.nexus-exact-player .arcade-action-dock,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance .nexus-controller-chip,
html.nexus-player-active body.nexus-exact-player.nexus-runtime-performance .arcade-action-dock {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.24) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
