﻿/* STELLAR SWARM — redesign v34 (hero-only landing) */
:root {
  --void: #02040a;
  --ink: #070b14;
  --panel: #0d1524;
  --panel-2: #121c30;
  --ember: #ff4d2a;
  --ember2: #ffc14a;
  --ember-bright: #ffc14a;
  --cyan: #00f0e0;
  --cyan2: #3aa0ff;
  --text: #eef4ff;
  --muted: #8ea0bc;
  --line: rgba(255,255,255,.12);
  --ok: #5dffb0;
  --danger: #ff5d7a;
  --font-d: "Orbitron", sans-serif;
  --font-u: "Rajdhani", sans-serif;
  --font-display: var(--font-d);
  --font-b: var(--font-u);
  --nav: 76px;
  --nav-h: var(--nav);
  --appside: 268px;
  --appside-slim: 84px;
  --radius: 6px;
  --max: 1180px;
  --clip: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  --clip-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  padding-top: var(--nav);
  min-height: 100vh;
  max-width: 100%;
  font-family: var(--font-u);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  background: var(--void);
  overflow-x: clip;
}
.svg-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  border: 0;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,b { font-family: var(--font-d); font-weight: 800; margin: 0; letter-spacing: .04em; }
p { line-height: 1.45; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(100% - 1.25rem, var(--max)); margin: 0 auto; }
.stage { position: relative; z-index: 1; min-height: calc(100vh - var(--nav) - 70px); }

/* ===== SPACE BACKGROUND ===== */
.space-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255,77,42,.22), transparent 55%),
    radial-gradient(1000px 500px at 90% 0%, rgba(0,240,224,.16), transparent 50%),
    linear-gradient(180deg, #050914 0%, #02040a 55%, #010208 100%);
}
.space-bg__nebula {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
.space-bg__nebula--a {
  width: 55vw; height: 55vw; top: -10%; left: -15%;
  background: radial-gradient(circle, rgba(255,77,42,.45), transparent 70%);
}
.space-bg__nebula--b {
  width: 50vw; height: 50vw; right: -18%; bottom: 5%;
  background: radial-gradient(circle, rgba(0,240,224,.35), transparent 70%);
  animation-duration: 22s; animation-direction: alternate-reverse;
}
.space-bg__hex {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,240,224,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,77,42,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 75%);
  animation: gridMove 28s linear infinite;
}
.space-bg__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.12) 4px);
  opacity: .35;
}
@keyframes drift { to { transform: translate(4%, 3%) scale(1.08); } }
@keyframes gridMove { to { background-position: 56px 56px; } }


/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto; /* left+right; evita 100% + padding estourar */
  max-width: 100%;
  z-index: 80;
  height: var(--nav);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,18,32,.96), rgba(3,7,14,.94));
  backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(0,240,224,.25);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 16px 40px rgba(0,0,0,.55);
}
.topbar__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(42% 130% at 6% 50%, rgba(255,77,42,.2), transparent 60%),
    radial-gradient(40% 130% at 94% 50%, rgba(0,240,224,.16), transparent 60%);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--ember), #ffc14a, var(--cyan), transparent);
  background-size: 220% 100%;
  animation: scanline 3.5s linear infinite;
  box-shadow: 0 0 14px rgba(0,240,224,.4);
}
@keyframes scanline { to { background-position: 220% 0; } }
.topbar.is-compact {
  height: 64px;
}
.topbar.is-compact .logo__mark { width: 40px; height: 40px; }
.topbar.is-compact .logo__mark img { width: 40px; height: 40px; }
.topbar.is-compact .logo__words { font-size: .95em; }
/* --nav NÃO muda no compact: evita conteúdo (rails) grudar na logo */
.topbar__inner {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  box-sizing: border-box;
}


/* Logo wordmark — marca + tipografia rica */
.logo {
  display: inline-flex; align-items: center; gap: .75rem;
  min-width: 0;
  transition: transform .22s ease, filter .22s ease;
}
.logo:hover { transform: translateY(-1px); filter: brightness(1.1); }
.logo:hover .logo__orbit { animation-duration: 4s; }
.logo:hover .logo__rail i { width: 100%; }
.logo__mark {
  position: relative; width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  overflow: visible; /* precisa ser visible p/ órbita + satélites */
  background: transparent;
}
.logo__orbit {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(0,240,224,.4);
  border-top-color: rgba(255,193,74,.85);
  border-bottom-color: rgba(255,77,42,.65);
  animation: logoOrbit 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}
/* Itens rodeando bem rente à logo */
.logo__orbit::before,
.logo__orbit::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  pointer-events: none;
}
.logo__orbit::before {
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ffe08a, #ff6a2a);
  box-shadow: 0 0 6px rgba(255,193,74,.9), 0 0 2px #ffc14a;
}
.logo__orbit::after {
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #b8fff8, #00f0e0);
  box-shadow: 0 0 6px rgba(0,240,224,.9), 0 0 2px #00f0e0;
}
.logo__ring {
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255,193,74,.4);
  box-shadow: 0 0 6px rgba(255,77,42,.28), inset 0 0 8px rgba(0,240,224,.12);
  animation: logoSpin 12s linear infinite;
  pointer-events: none;
  z-index: 1;
}
.logo__pulse {
  position: absolute; inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,193,74,.4), transparent 70%);
  animation: logoPulse 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes logoOrbit { to { transform: rotate(-360deg); } }
@keyframes logoPulse {
  0%, 100% { opacity: .3; transform: scale(.85); }
  50% { opacity: .7; transform: scale(1.08); }
}
.logo__mark img {
  position: relative; z-index: 3; display: block;
  width: 46px; height: 46px; object-fit: cover;
  border-radius: 50%;
  background: transparent;
  clip-path: circle(50% at 50% 50%);
  -webkit-clip-path: circle(50% at 50% 50%);
  /* glow curto — não encosta nas bordas do header */
  filter: drop-shadow(0 0 5px rgba(255,77,42,.45)) drop-shadow(0 0 7px rgba(0,240,224,.2));
}
.logo__type {
  display: grid;
  gap: .18rem;
  line-height: 1;
  min-width: 0;
}
.logo__eyebrow {
  font-family: var(--font-d);
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(180,210,240,.72);
  text-transform: uppercase;
}
.logo__words {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: nowrap;
}
.logo__sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #ffc14a, #ff4d2a);
  box-shadow: 0 0 8px rgba(255,193,74,.8);
  align-self: center;
  animation: logoDot 1.8s ease-in-out infinite;
}
@keyframes logoDot {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.35); opacity: 1; }
}
.logo__word {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .16em;
  text-align: left;
  position: relative;
}
.logo__word--a {
  font-size: 1.05rem;
  background: linear-gradient(105deg, #fff 0%, #ffe7b0 28%, #ffc14a 55%, #ff6a2a 78%, #ffc14a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255,120,40,.45));
  animation: logoShimmer 5s ease-in-out infinite;
}
.logo__word--b {
  font-size: 1.05rem;
  background: linear-gradient(105deg, #e8fffc 0%, #9ffcf4 25%, #00f0e0 55%, #3aa0ff 80%, #00f0e0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,240,224,.5));
  animation: logoShimmer 5s ease-in-out infinite .6s;
}
@keyframes logoShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.logo__rail {
  display: block; height: 2px; width: 100%;
  background: linear-gradient(90deg, rgba(255,77,42,.15), rgba(255,193,74,.25), rgba(0,240,224,.15));
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.logo__rail i {
  display: block; height: 100%; width: 42%;
  background: linear-gradient(90deg, transparent, #ffc14a, #00f0e0, transparent);
  box-shadow: 0 0 10px rgba(0,240,224,.55);
  animation: logoRail 2.8s ease-in-out infinite;
  transition: width .35s ease;
}
@keyframes logoRail {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

/* Nav chips — mesmo design (estilo Ranking), cores por item */
.topnav { display: none; gap: .5rem; align-items: center; }
.navchip {
  --nc: #ffc14a;
  --ng: rgba(255,193,74,.4);
  --nd: #3a2a12;
  --nb: #140e08;
  --nk: #0a0704;
  --ni: #3a2200;
  position: relative;
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 42px; padding: .38rem .78rem .4rem .48rem;
  color: #fff4d6;
  text-transform: uppercase;
  font-family: var(--font-d); font-size: .52rem; letter-spacing: .12em; font-weight: 800;
  clip-path: var(--clip-sm);
  border: 1px solid color-mix(in srgb, var(--nc) 55%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nc) 28%, transparent), transparent 40%),
    linear-gradient(145deg, var(--nd), var(--nb));
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 5px 0 var(--nk),
    0 10px 18px rgba(0,0,0,.4),
    0 0 14px var(--ng);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s, filter .15s;
}
.navchip__ico {
  width: 24px; height: 24px; flex-shrink: 0;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  color: var(--ni);
  background: linear-gradient(160deg, color-mix(in srgb, var(--nc) 85%, #fff), var(--nc));
  border: 0;
  box-shadow: 0 0 10px var(--ng);
}
.navchip__ico svg { width: 13px; height: 13px; filter: none; }
.navchip__txt { position: relative; z-index: 1; }
.navchip:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 8px 0 var(--nk),
    0 14px 22px rgba(0,0,0,.45),
    0 0 22px var(--ng);
}
.navchip:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 0 var(--nk), 0 8px 14px rgba(0,0,0,.4);
}
.navchip--manual {
  --nc: #7af8ef;
  --ng: rgba(0,240,224,.4);
  --nd: #123038;
  --nb: #081418;
  --nk: #040c10;
  --ni: #043a42;
  color: #e8fffc;
}
.navchip--home {
  --nc: #ffc14a;
  --ng: rgba(255,193,74,.4);
  --nd: #3a2a12;
  --nb: #140e08;
  --nk: #0a0704;
  --ni: #3a2200;
  color: #fff4d6;
}
.navchip--lore {
  --nc: #ff8a4c;
  --ng: rgba(255,100,40,.4);
  --nd: #3a1a10;
  --nb: #160a08;
  --nk: #0c0504;
  --ni: #3a1200;
  color: #ffe8d8;
}
.navchip--prem {
  --nc: #ff8a4c;
  --ng: rgba(255,100,40,.4);
  --nd: #3a1a10;
  --nb: #160a08;
  --nk: #0c0504;
  --ni: #3a1200;
  color: #ffe8d8;
}

/* Action clusters */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.topbar__cluster {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.topbar__cluster--meta {
  gap: .35rem;
  padding: .15rem;
}
.topbar__cluster--play {
  gap: .55rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.topbar__sep {
  width: 1px;
  height: 28px;
  flex-shrink: 0;
  align-self: center;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255,255,255,.12) 20%,
    rgba(0,240,224,.35) 50%,
    rgba(255,77,42,.3) 70%,
    transparent
  );
  box-shadow: 0 0 8px rgba(0,240,224,.15);
}
.tb-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .42rem;
  min-height: 44px; padding: .5rem .95rem;
  font-family: var(--font-d); font-size: .58rem; letter-spacing: .12em; font-weight: 900;
  text-transform: uppercase; color: #fff; cursor: pointer; border: 0;
  clip-path: var(--clip-sm);
  overflow: hidden;
  transition: transform .15s, filter .15s, box-shadow .15s;
  text-decoration: none;
}
.tb-btn svg { flex-shrink: 0; position: relative; z-index: 1; }
.tb-btn > span { position: relative; z-index: 1; }
.tb-btn::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.4) 50%, transparent 62%);
  transform: translateX(-130%);
  pointer-events: none;
}
.tb-btn:hover::before { animation: tbShine .65s ease; }
@keyframes tbShine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
.tb-btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.tb-btn:active { transform: translateY(3px); }
.tb-btn__bar { pointer-events: none; position: absolute; z-index: 1; }

/* Status badges + sound chip (mesmo idioma visual) */
.status-badge {
  --sb-accent: #ffc14a;
  --sb-glow: rgba(255,180,40,.28);
  --sb-ink: #5a3200;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 34px;
  padding: .25rem .65rem .25rem .35rem;
  border-radius: 999px;
  overflow: hidden;
  cursor: default;
  user-select: none;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--sb-accent) 55%, transparent);
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 55%),
    linear-gradient(135deg, rgba(40,28,10,.92), rgba(18,14,8,.96));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--sb-accent) 12%, transparent) inset,
    0 0 14px var(--sb-glow),
    0 3px 10px rgba(0,0,0,.3);
}
.status-badge--pro {
  --sb-accent: #ffc14a;
  --sb-glow: rgba(255,180,40,.3);
  --sb-ink: #5a3200;
}
.status-badge--free {
  --sb-accent: #7af0ff;
  --sb-glow: rgba(0,240,224,.22);
  --sb-ink: #043a42;
  background:
    linear-gradient(180deg, rgba(0,240,224,.1), transparent 55%),
    linear-gradient(135deg, rgba(10,28,36,.94), rgba(8,14,22,.96));
}
.status-badge__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    color-mix(in srgb, var(--sb-accent) 55%, #fff) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  opacity: .45;
  animation: statusSheen 3.8s ease-in-out infinite;
}
@keyframes statusSheen {
  0% { background-position: 120% 0; opacity: .3; }
  50% { background-position: -20% 0; opacity: .65; }
  100% { background-position: 120% 0; opacity: .3; }
}
.status-badge__ico {
  position: relative; z-index: 1;
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff, var(--sb-accent) 48%, color-mix(in srgb, var(--sb-accent) 40%, #000) 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--sb-accent) 50%, #fff) inset,
    0 0 10px var(--sb-glow);
}
.status-badge__ico svg {
  color: var(--sb-ink);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.3));
}
.status-badge__txt {
  position: relative; z-index: 1;
  display: grid;
  gap: .04rem;
  line-height: 1;
  text-align: left;
}
.status-badge__txt em {
  font-family: var(--font-d);
  font-style: normal;
  font-size: .36rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: color-mix(in srgb, var(--sb-accent) 70%, #fff);
  opacity: .75;
}
.status-badge__txt strong {
  font-family: var(--font-d);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
  background: linear-gradient(100deg, #fff 0%, var(--sb-accent) 45%, color-mix(in srgb, var(--sb-accent) 70%, #fff) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px var(--sb-glow));
  animation: statusText 3.2s ease-in-out infinite;
}
@keyframes statusText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.sound-chip {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  color: var(--cyan);
  border: 1px solid rgba(0,240,224,.45);
  background:
    linear-gradient(180deg, rgba(0,240,224,.14), transparent 55%),
    linear-gradient(135deg, rgba(10,28,36,.94), rgba(8,14,22,.96));
  box-shadow:
    0 0 0 1px rgba(0,240,224,.1) inset,
    0 0 12px rgba(0,240,224,.22),
    0 3px 8px rgba(0,0,0,.3);
  transition: filter .15s, border-color .15s, color .15s;
}
.sound-chip__glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(122,240,255,.4) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: statusSheen 3.8s ease-in-out infinite .4s;
}
.sound-chip svg { position: relative; z-index: 1; display: block; }
.sound-chip:hover { filter: brightness(1.12); border-color: rgba(0,240,224,.7); }
.sound-chip.is-muted {
  color: var(--muted);
  border-color: rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(135deg, rgba(22,28,38,.94), rgba(10,14,20,.96));
  box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 3px 8px rgba(0,0,0,.3);
}
.sound-chip.is-muted .sound-chip__glow { opacity: .2; }

/* PAINEL — ghost azul, flat (não CTA) */
.tb-btn--panel {
  color: #c8e6ff;
  clip-path: none;
  border-radius: 8px;
  min-height: 40px;
  padding: .45rem .85rem;
  background: rgba(58,160,255,.08);
  border: 1px solid rgba(58,160,255,.4);
  box-shadow: 0 0 12px rgba(58,160,255,.12), inset 0 0 10px rgba(58,160,255,.04);
  text-shadow: none;
}
.tb-btn--panel::before { display: none; }
.tb-btn--panel svg { color: #7ec8ff; filter: drop-shadow(0 0 6px rgba(58,160,255,.45)); }
.tb-btn--panel:hover {
  transform: translateY(-2px);
  background: rgba(58,160,255,.14);
  border-color: rgba(100,180,255,.65);
  box-shadow: 0 0 18px rgba(58,160,255,.28);
  filter: brightness(1.05);
}
.tb-btn--panel:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(58,160,255,.15);
}

/* JOGAR — mesmo design ghost do PAINEL (ember) */
.tb-btn--play {
  color: #ffd2b0;
  clip-path: none;
  border-radius: 8px;
  min-height: 40px;
  padding: .45rem .85rem;
  background: rgba(255,100,40,.1);
  border: 1px solid rgba(255,140,80,.45);
  box-shadow: 0 0 12px rgba(255,100,40,.14), inset 0 0 10px rgba(255,100,40,.05);
  text-shadow: none;
}
.tb-btn--play::before { display: none; }
.tb-btn--play svg { color: #ffb070; filter: drop-shadow(0 0 6px rgba(255,120,40,.5)); }
.tb-btn--play .tb-btn__bar { display: none; }
.tb-btn--play:hover {
  transform: translateY(-2px);
  background: rgba(255,100,40,.18);
  border-color: rgba(255,170,100,.7);
  box-shadow: 0 0 18px rgba(255,100,40,.3);
  filter: brightness(1.05);
}
.tb-btn--play:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(255,100,40,.16);
}

/* SAIR — vermelho 3D elaborado */
.tb-btn--exit {
  color: #fff5f5;
  clip-path: var(--clip-sm);
  border-radius: 0;
  min-height: 44px;
  padding: .5rem .95rem;
  background:
    linear-gradient(180deg, rgba(255,180,180,.25) 0%, transparent 40%),
    linear-gradient(145deg, #ff6b6b 0%, #e02535 48%, #9a1020 100%);
  border: 1px solid rgba(255,140,140,.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 -4px 10px rgba(60,0,8,.35) inset,
    0 6px 0 #5a0810,
    0 12px 22px rgba(200,30,40,.45),
    0 0 16px rgba(255,60,70,.3);
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  gap: .42rem;
}
.tb-btn--exit::before { display: block; }
.tb-btn--exit svg {
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.tb-btn--exit:hover {
  transform: translateY(-3px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,200,200,.3) 0%, transparent 40%),
    linear-gradient(145deg, #ff7a7a 0%, #e83040 48%, #a01220 100%);
  border-color: rgba(255,160,160,.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,.3) inset,
    0 -4px 10px rgba(60,0,8,.28) inset,
    0 9px 0 #5a0810,
    0 16px 26px rgba(200,30,40,.55),
    0 0 26px rgba(255,60,70,.45);
  filter: brightness(1.06);
}
.tb-btn--exit:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 2px 0 #5a0810, 0 8px 14px rgba(0,0,0,.4);
}

/* ENTRAR (visitante) — cyan ghost */
/* ENTRAR — ghost cyan (par do CRIAR) */
.tb-btn--login {
  color: #c8e6ff;
  clip-path: none;
  border-radius: 8px;
  min-height: 40px;
  padding: .45rem .85rem;
  background: rgba(0,240,224,.08);
  border: 1px solid rgba(0,240,224,.45);
  box-shadow: 0 0 12px rgba(0,240,224,.14), inset 0 0 10px rgba(0,240,224,.04);
  text-shadow: none;
}
.tb-btn--login::before { display: none; }
.tb-btn--login svg { color: #7af8ef; filter: drop-shadow(0 0 6px rgba(0,240,224,.5)); }
.tb-btn--login:hover {
  transform: translateY(-2px);
  background: rgba(0,240,224,.14);
  border-color: rgba(122,248,239,.7);
  box-shadow: 0 0 18px rgba(0,240,224,.3);
  filter: brightness(1.05);
}
.tb-btn--login:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(0,240,224,.16);
}

/* CRIAR — ghost ember (mesmo design do ENTRAR, cor CTA) */
.tb-btn--register {
  color: #ffd2b0;
  clip-path: none;
  border-radius: 8px;
  min-height: 40px;
  padding: .45rem .85rem;
  background: rgba(255,100,40,.1);
  border: 1px solid rgba(255,140,80,.5);
  box-shadow: 0 0 12px rgba(255,100,40,.16), inset 0 0 10px rgba(255,100,40,.05);
  text-shadow: none;
}
.tb-btn--register::before { display: none; }
.tb-btn--register svg { color: #ffb070; filter: drop-shadow(0 0 6px rgba(255,120,40,.55)); }
.tb-btn--register:hover {
  transform: translateY(-2px);
  background: rgba(255,100,40,.18);
  border-color: rgba(255,170,100,.75);
  box-shadow: 0 0 18px rgba(255,100,40,.32);
  filter: brightness(1.05);
}
.tb-btn--register:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(255,100,40,.18);
}

.burger {
  width: 42px; height: 42px;
  border: 1px solid rgba(0,240,224,.4);
  background: linear-gradient(180deg, rgba(0,240,224,.14), rgba(8,14,28,.95));
  display: inline-grid; place-content: center; gap: 5px; cursor: pointer;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 3px 0 #050910, 0 8px 14px rgba(0,0,0,.35);
  transition: transform .15s, box-shadow .15s;
}
.burger:hover { transform: translateY(-2px); }
.burger i { display: block; width: 16px; height: 2px; background: #fff; box-shadow: 0 0 6px rgba(0,240,224,.4); transition: .2s; }
.burger.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-scrim {
  position: fixed;
  inset: var(--nav) 0 0 0;
  background: rgba(1, 4, 10, .72);
  z-index: 70;
  backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}
.drawer-scrim:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  --d-accent: var(--cyan);
  --d-glow: rgba(0,240,224,.35);
  position: fixed;
  top: var(--nav);
  right: 0;
  bottom: 0;
  width: min(92vw, 340px);
  z-index: 75;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(14,24,40,.98) 0%, rgba(5,10,20,.98) 55%, rgba(8,6,12,.98) 100%);
  border-left: 1px solid rgba(0,240,224,.28);
  box-shadow:
    -20px 0 50px rgba(0,0,0,.55),
    inset 1px 0 0 rgba(255,255,255,.04);
  transform: translateX(108%);
  transition: transform .34s cubic-bezier(.22, 1, .36, 1);
}
.drawer.open { transform: translateX(0); }
.drawer__glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(255,77,42,.18), transparent 55%),
    radial-gradient(70% 45% at 0% 100%, rgba(0,240,224,.14), transparent 50%);
  animation: drawerGlow 6s ease-in-out infinite alternate;
}
@keyframes drawerGlow {
  from { opacity: .7; }
  to { opacity: 1; }
}
.drawer__scan {
  position: absolute; left: 0; right: 0; height: 40%;
  top: -40%; pointer-events: none; z-index: 1; opacity: .35;
  background: linear-gradient(180deg, transparent, rgba(0,240,224,.12), transparent);
}
.drawer.open .drawer__scan {
  animation: drawerScan 2.8s ease-in-out infinite;
}
@keyframes drawerScan {
  0% { top: -40%; }
  100% { top: 110%; }
}
.drawer__head {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: .85rem;
  padding: 1.15rem 1.1rem 1.05rem;
  border-bottom: 1px solid rgba(0,240,224,.18);
  background: linear-gradient(180deg, rgba(0,240,224,.06), transparent);
}
.drawer__badge {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,77,42,.2), rgba(0,240,224,.1));
  border: 1px solid rgba(255,193,74,.35);
  box-shadow: 0 0 18px rgba(255,77,42,.25);
}
.drawer__badge img {
  width: 42px; height: 42px; display: block; object-fit: contain; border-radius: 50%;
}
.drawer__titles { min-width: 0; flex: 1; }
.drawer__titles em {
  display: block;
  font-family: var(--font-d);
  font-style: normal;
  font-size: .42rem;
  letter-spacing: .22em;
  color: var(--cyan);
  margin-bottom: .2rem;
}
.drawer__titles strong {
  display: block;
  font-family: var(--font-d);
  font-size: .82rem;
  letter-spacing: .16em;
  background: linear-gradient(90deg, #fff, #ffc14a 50%, #00f0e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.drawer__titles span {
  display: block;
  margin-top: .15rem;
  font-size: .85rem;
  color: var(--muted);
}
.drawer__pulse {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(93,255,176,.55);
  animation: drawerPulse 1.8s ease-out infinite;
}
@keyframes drawerPulse {
  0% { box-shadow: 0 0 0 0 rgba(93,255,176,.55); }
  70% { box-shadow: 0 0 0 12px rgba(93,255,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,255,176,0); }
}
.drawer__nav {
  position: relative; z-index: 2;
  flex: 1;
  overflow: auto;
  padding: .75rem .75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  -webkit-overflow-scrolling: touch;
}
.drawer__label {
  margin: .55rem .35rem .25rem;
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(142,160,188,.75);
}
.drawer__link {
  --lc: #7af8ef;
  --lg: rgba(0,240,224,.35);
  --lb: rgba(0,240,224,.1);
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 16px;
  align-items: center;
  gap: .75rem;
  min-height: 64px;
  padding: .85rem .85rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(135deg, var(--lb), transparent 55%),
    rgba(8,14,26,.72);
  color: #e8eef8;
  text-decoration: none;
  overflow: visible;
  opacity: 0;
  transform: translateX(18px);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}
.drawer.open .drawer__link {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity .35s ease calc(var(--i, 0) * 45ms + 80ms),
    transform .4s cubic-bezier(.22,1,.36,1) calc(var(--i, 0) * 45ms + 80ms),
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}
.drawer__link::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: none;
}
.drawer__link:hover::before,
.drawer__link:focus-visible::before {
  animation: drawerShine .65s ease;
}
@keyframes drawerShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.drawer__link:hover,
.drawer__link:focus-visible {
  border-color: color-mix(in srgb, var(--lc) 55%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--lc) 18%, transparent), transparent 60%),
    rgba(10,18,32,.9);
  box-shadow: 0 0 22px var(--lg), inset 0 0 18px color-mix(in srgb, var(--lc) 8%, transparent);
  transform: translateX(-3px) scale(1.01);
  filter: brightness(1.06);
  outline: none;
}
.drawer__link:active {
  transform: translateX(0) scale(.98);
}
.drawer__ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--lc);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.25), transparent 45%),
    linear-gradient(160deg, color-mix(in srgb, var(--lc) 35%, #0a1220), #0a1220);
  border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent);
  box-shadow: 0 0 14px var(--lg), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.drawer__link:hover .drawer__ico {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 22px var(--lg);
}
.drawer__ico svg { width: 20px; height: 20px; display: block; }
.drawer__txt { min-width: 0; display: grid; gap: .18rem; align-content: center; }
.drawer__txt strong {
  font-family: var(--font-d);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2f7ff;
}
.drawer__txt small {
  font-family: var(--font-u);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  line-height: 1.3;
  overflow: visible;
}
.drawer__chev {
  width: 8px; height: 8px;
  border-right: 2px solid color-mix(in srgb, var(--lc) 70%, #fff);
  border-bottom: 2px solid color-mix(in srgb, var(--lc) 70%, #fff);
  transform: rotate(-45deg);
  opacity: .55;
  transition: transform .22s ease, opacity .22s ease;
}
.drawer__link:hover .drawer__chev {
  opacity: 1;
  transform: rotate(-45deg) translate(2px, 2px);
}

.drawer__link--cyan { --lc: #7af8ef; --lg: rgba(0,240,224,.35); --lb: rgba(0,240,224,.1); }
.drawer__link--gold { --lc: #ffc14a; --lg: rgba(255,193,74,.35); --lb: rgba(255,193,74,.1); }
.drawer__link--ember { --lc: #ff8a4c; --lg: rgba(255,100,40,.4); --lb: rgba(255,77,42,.12); }
.drawer__link--blue { --lc: #6eb6ff; --lg: rgba(58,160,255,.35); --lb: rgba(58,160,255,.1); }
.drawer__link--play {
  --lc: #ffb070;
  --lg: rgba(255,100,40,.45);
  --lb: rgba(255,77,42,.16);
  border-color: rgba(255,140,80,.28);
}
.drawer__link--play .drawer__txt strong {
  background: linear-gradient(90deg, #ffe0c0, #ff8a4c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.drawer__link--danger { --lc: #ff6b84; --lg: rgba(255,93,122,.35); --lb: rgba(255,93,122,.1); }

.drawer__foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem;
  padding: .85rem 1.1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.25);
}
.drawer__sig {
  font-family: var(--font-d);
  font-size: .4rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(142,160,188,.7);
}
.drawer__ver {
  font-family: var(--font-d);
  font-size: .38rem;
  letter-spacing: .12em;
  color: rgba(0,240,224,.55);
}
body.drawer-open { overflow: hidden; }

/* chip (páginas internas) */
.chip {
  font-family: var(--font-d); font-size: .55rem; letter-spacing: .14em; font-weight: 800;
  padding: .42rem .65rem;
  border: 1px solid rgba(255,193,74,.45); color: var(--ember2);
  background: rgba(255,193,74,.12); clip-path: var(--clip-sm);
}
.chip--gold {
  color: #1a0903; border: 0;
  background: linear-gradient(135deg, #ffe08a, #ffc14a 40%, #ff4d2a);
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 5px 0 #7a220f, 0 0 16px rgba(255,77,42,.4);
}

/* ===== BUTTONS ===== */
.btn {
  appearance: none; border: 0; cursor: pointer; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .65rem 1.1rem;
  font-family: var(--font-d); font-size: .66rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase;
  clip-path: var(--clip);
  background: linear-gradient(160deg, #243552, #101827);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -6px 12px rgba(0,0,0,.35) inset,
    0 6px 0 #050910,
    0 12px 22px rgba(0,0,0,.4);
  transform: translateY(0);
  transition: transform .15s, box-shadow .15s, filter .15s;
  position: relative;
  overflow: hidden;
}
.btn > span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 1px 0 rgba(255,255,255,.22) inset,
    0 -6px 12px rgba(0,0,0,.3) inset,
    0 9px 0 #050910,
    0 16px 26px rgba(0,0,0,.45);
}
.btn:hover::before { animation: btnShine .7s ease; }
@keyframes btnShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 2px 0 #050910, 0 8px 14px rgba(0,0,0,.35);
}
.btn--ember {
  color: #1a0903;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(135deg, #ffc14a, #ff6a28 50%, #e82810);
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 -6px 12px rgba(90,20,0,.3) inset,
    0 6px 0 #6a1a08,
    0 12px 24px rgba(255,77,42,.45),
    0 0 18px rgba(255,90,30,.35);
}
.btn--ember:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 -6px 12px rgba(90,20,0,.25) inset,
    0 9px 0 #6a1a08,
    0 16px 28px rgba(255,77,42,.5),
    0 0 26px rgba(255,90,30,.5);
}
.btn--cyan {
  color: #021018;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3), transparent 40%),
    linear-gradient(135deg, #7af8ef, #00f0e0 45%, #3aa0ff);
  box-shadow:
    0 1px 0 rgba(255,255,255,.45) inset,
    0 -6px 12px rgba(8,40,70,.25) inset,
    0 6px 0 #0a4a62,
    0 12px 24px rgba(0,240,224,.4);
}
.btn--ghost {
  color: #e8f4ff;
  background:
    linear-gradient(180deg, rgba(0,240,224,.12), transparent 40%),
    linear-gradient(160deg, #172338, #0a1220);
  border: 1px solid rgba(0,240,224,.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 6px 0 #04070f,
    0 12px 22px rgba(0,0,0,.4),
    0 0 14px rgba(0,240,224,.12);
}
.btn--ghost:hover {
  border-color: rgba(0,240,224,.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 9px 0 #04070f,
    0 16px 26px rgba(0,0,0,.45),
    0 0 22px rgba(0,240,224,.25);
}
.btn--play {
  color: #021018;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 38%),
    linear-gradient(135deg, #5cf5ea, #00f0e0 42%, #2f8fff);
  box-shadow:
    0 1px 0 rgba(255,255,255,.45) inset,
    0 -5px 10px rgba(0,40,60,.25) inset,
    0 6px 0 #0a4a62,
    0 12px 22px rgba(0,240,224,.4),
    0 0 16px rgba(0,240,224,.3);
}
.btn--play:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 -5px 10px rgba(0,40,60,.2) inset,
    0 9px 0 #0a4a62,
    0 16px 26px rgba(0,240,224,.5),
    0 0 24px rgba(0,240,224,.45);
}
.btn--lg { min-height: 54px; padding: .85rem 1.4rem; font-size: .74rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ===== SHARED UI ===== */
.badge { font-family: var(--font-d); font-size: .55rem; letter-spacing: .12em; padding: .3rem .55rem; border: 1px solid rgba(255,193,74,.4); color: var(--ember2); background: rgba(255,193,74,.12); }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem;
  font-family: var(--font-d); font-size: .55rem; letter-spacing: .16em; color: var(--cyan);
  border: 1px solid rgba(0,240,224,.3); background: rgba(0,240,224,.08); clip-path: var(--clip-sm);
}
.panel, .card, .tool-card, .auth-card, .plan, .price-card {
  position: relative; background: linear-gradient(165deg, rgba(18,28,48,.95), rgba(8,12,22,.98));
  border: 1px solid rgba(255,255,255,.1); clip-path: var(--clip);
  box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06) inset;
  padding: 1.15rem;
}
.panel::before, .card::before, .tool-card::before, .auth-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--cyan), transparent);
}
.flash-error, .errorlist, .form-error {
  color: #ffb4c0; background: rgba(255,77,109,.12); border: 1px solid rgba(255,77,109,.3);
  padding: .7rem .85rem; margin: 0 0 .75rem; list-style: none; clip-path: var(--clip-sm);
}
.form-grid { display: grid; gap: .8rem; }
label, .field { display: grid; gap: .3rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.field-label svg,
.form-grid svg,
.auth-card svg,
.auth-switch svg,
.plan li svg,
.auth-perks svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.auth-card__icon svg { width: 22px; height: 22px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
input, select, textarea, .field-input {
  width: 100%; border: 1px solid rgba(255,255,255,.14); background: rgba(2,6,14,.9); color: var(--text);
  padding: .85rem .95rem; border-radius: 0; clip-path: var(--clip-sm); font-size: 1rem; text-transform: none; letter-spacing: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(0,240,224,.55); box-shadow: 0 0 0 3px rgba(0,240,224,.12); }
.field-label { display: inline-flex; align-items: center; gap: .4rem; }
.helptext, .helptext ul { color: var(--muted); font-size: .8rem; text-transform: none; letter-spacing: 0; font-weight: 500; margin: .2rem 0 0; }
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: .55rem; }
.stat {
  padding: .85rem; border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(160deg, rgba(28,40,64,.95), rgba(8,12,22,.96));
  clip-path: var(--clip-sm); box-shadow: 0 12px 24px rgba(0,0,0,.3);
}
.stat span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; font-family: var(--font-d); font-size: 1.35rem; margin-top: .15rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); }
table.data th { color: var(--muted); font-family: var(--font-d); font-size: .55rem; letter-spacing: .12em; }
.empty-state {
  display: grid; justify-items: center; gap: .7rem; text-align: center; padding: 2.4rem 1rem;
  border: 1px dashed rgba(255,255,255,.16); background: rgba(10,16,30,.45);
}
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.foot {
  position: relative; z-index: 1; border-top: 1px solid var(--line);
  padding: 1.2rem 0 1.6rem; color: var(--muted); font-size: .9rem; background: rgba(2,4,10,.8);
}
.foot__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot strong { font-family: var(--font-d); letter-spacing: .14em; font-size: .68rem; color: #fff; }

/* ===== LANDING PAGE SHELL ===== */
.landing-page {
  padding-top: 0;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
}
.landing-page .foot { display: none; }
.landing-page .stage {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

/* ===== HERO / LANDING ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  box-sizing: border-box;
  padding: calc(var(--nav) + .35rem) 1rem 1.75rem;
}
.hero__art {
  position: absolute; inset: -4%;
  background:
    radial-gradient(ellipse at 28% 45%, rgba(255,77,42,.35), transparent 42%),
    radial-gradient(ellipse at 78% 40%, rgba(0,240,224,.28), transparent 45%),
    url("/static/game/img/brand/hero.png?v=20260921r12") center/cover no-repeat;
  transform: scale(1.1);
  animation: ken 14s ease-in-out infinite alternate;
  filter: saturate(1.4) contrast(1.12) brightness(1.05);
  will-change: transform;
}
@keyframes ken {
  0%   { transform: scale(1.1) translate(0, 0); }
  50%  { transform: scale(1.18) translate(-1.4%, -0.8%); }
  100% { transform: scale(1.14) translate(1.2%, 0.6%); }
}
.hero__canvas { position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(2,4,10,.12) 0%, rgba(2,4,10,.38) 55%, rgba(2,4,10,.64) 100%),
    linear-gradient(180deg, rgba(2,4,10,.24), rgba(2,4,10,.08) 35%, rgba(2,4,10,.3) 100%);
  animation: veilPulse 6s ease-in-out infinite;
}
@keyframes veilPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .88; }
}
.hero__beam {
  position: absolute; left: 0; right: 0; top: 48%; height: 180px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,77,42,.38), rgba(0,240,224,.34), transparent);
  filter: blur(28px); animation: beam 2.8s ease-in-out infinite;
  opacity: .85;
}
@keyframes beam {
  0%, 100% { opacity: .45; transform: scaleX(1) translateY(0); }
  50% { opacity: .95; transform: scaleX(1.18) translateY(-6px); }
}
.hero__sparks {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at 22% 58%, rgba(255,120,40,.22), transparent 18%),
    radial-gradient(circle at 78% 52%, rgba(0,240,224,.2), transparent 18%),
    radial-gradient(circle at 50% 62%, rgba(255,220,160,.12), transparent 22%);
  animation: sparksPulse 3.4s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes sparksPulse {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.06); }
}
.hero__float {
  position: absolute; z-index: 3; width: 118px; pointer-events: none;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.6));
  animation: floaty 4.2s ease-in-out infinite;
  opacity: .95;
}
.hero__float img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.12), transparent 45%),
    rgba(6, 10, 18, .55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 12px 28px rgba(0,0,0,.45);
  padding: 10%;
  box-sizing: border-box;
}
.hero__float--a {
  top: 12%; right: 7%;
  animation-name: floatySentinel;
  animation-duration: 4.6s;
}
.hero__float--a img {
  padding: 14%;
  border-color: rgba(255,140,60,.45);
  box-shadow:
    0 0 0 1px rgba(255,140,60,.2) inset,
    0 0 24px rgba(255,120,40,.28),
    0 12px 28px rgba(0,0,0,.45);
}
.hero__float--b {
  top: 56%; left: 5%;
  animation-name: floatySpectre;
  animation-duration: 5.2s;
  animation-delay: .35s;
}
.hero__float--b img {
  padding: 8%;
  border-color: rgba(0,240,224,.42);
  box-shadow:
    0 0 0 1px rgba(0,240,224,.18) inset,
    0 0 24px rgba(0,240,224,.26),
    0 12px 28px rgba(0,0,0,.45);
}
@keyframes floaty {
  50% { transform: translateY(-18px) rotate(4deg); }
}
@keyframes floatySpectre {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
  50% { transform: translate3d(10px, -22px, 0) rotate(3deg) scale(1.04); }
}
@keyframes floatySentinel {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg) scale(1); }
  50% { transform: translate3d(-12px, -20px, 0) rotate(-3deg) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art, .hero__beam, .hero__sparks, .hero__veil, .hero__float { animation: none !important; }
}
.hero__content {
  position: relative; z-index: 4;
  width: min(100% - 1rem, 42rem);
  margin: 0 auto;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
}
.hero__pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 0;
}
.pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem;
  font-family: var(--font-d); font-size: .55rem; letter-spacing: .14em;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px);
  clip-path: var(--clip-sm);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.pill--live { color: #ff8a8a; border-color: rgba(255,80,80,.4); }
.pill--grid { color: var(--cyan); border-color: rgba(0,240,224,.35); }
.pill--vs { color: var(--ember2); border-color: rgba(255,193,74,.35); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d;
  box-shadow: 0 0 12px #ff4d4d; animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: .25; } }
.hero__title {
  position: relative;
  margin: 0;
  padding: .35rem 1.4rem .55rem;
  isolation: isolate;
}
.hero__title-frame {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.hero__title-brace {
  position: absolute; top: 6%; bottom: 22%; width: 16px;
  border: 2px solid rgba(255,193,74,.4);
  opacity: .85;
}
.hero__title-brace--l {
  left: 0;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  border-color: rgba(255,77,42,.5);
  box-shadow: -4px 0 18px rgba(255,77,42,.2);
}
.hero__title-brace--r {
  right: 0;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  border-color: rgba(0,240,224,.5);
  box-shadow: 4px 0 18px rgba(0,240,224,.22);
}
.hero__word {
  position: relative;
  z-index: 1;
  display: block;
}
.hero__word--ember {
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.8)) drop-shadow(0 0 18px rgba(255,90,30,.4));
}
.hero__word--cyan {
  margin-top: .06em;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.75)) drop-shadow(0 0 22px rgba(0,240,224,.45));
  animation: swarmGlow 4.5s ease-in-out infinite;
}
@keyframes swarmGlow {
  0%, 100% { filter: drop-shadow(0 12px 28px rgba(0,0,0,.75)) drop-shadow(0 0 16px rgba(0,240,224,.35)); }
  50% { filter: drop-shadow(0 12px 28px rgba(0,0,0,.75)) drop-shadow(0 0 30px rgba(0,240,224,.65)); }
}
.hero__stellar,
.hero__swarm {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(3.1rem, 12.5vw, 6.8rem);
  line-height: .88;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__stellar {
  background-image: linear-gradient(105deg,
    #ffffff 0%,
    #ffe9c2 22%,
    #ffc14a 45%,
    #ff6a1f 68%,
    #ff4d2a 85%,
    #ffe7b0 100%);
  background-size: 220% 100%;
  animation: stellarWash 5s ease-in-out infinite;
}
@keyframes stellarWash {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero__stellar.glitch {
  position: relative;
}
.hero__stellar.glitch::before,
.hero__stellar.glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; width: 100%;
  font: inherit; letter-spacing: inherit; line-height: inherit;
  color: transparent;
  pointer-events: none;
  opacity: .5;
}
.hero__stellar.glitch::before {
  text-shadow: -2px 0 var(--cyan);
  animation: g1 2.6s infinite linear alternate-reverse;
  mix-blend-mode: screen;
}
.hero__stellar.glitch::after {
  text-shadow: 2px 0 var(--ember);
  animation: g2 2.2s infinite linear alternate-reverse;
  mix-blend-mode: screen;
}
@keyframes g1 {
  20% { clip-path: inset(18% 0 42% 0); transform: translate(2px,-1px); }
  60% { clip-path: inset(58% 0 8% 0); transform: translate(-2px,1px); }
}
@keyframes g2 {
  30% { clip-path: inset(8% 0 52% 0); transform: translate(-2px,1px); }
  70% { clip-path: inset(42% 0 18% 0); transform: translate(2px,-1px); }
}
.hero__swarm {
  background-image: linear-gradient(105deg,
    #e8fffc 0%,
    #9ffcf4 20%,
    #00f0e0 48%,
    #3aa0ff 72%,
    #7af0ff 100%);
  background-size: 220% 100%;
  animation: swarmWash 4.5s ease-in-out infinite;
}
@keyframes swarmWash {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero__title-rail {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: min(100%, 20rem);
  margin: .75rem auto 0;
}
.hero__title-rail i {
  flex: 1; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,193,74,.65), rgba(0,240,224,.65), transparent);
  box-shadow: 0 0 10px rgba(0,240,224,.3);
}
.hero__title-rail b {
  width: 9px; height: 9px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: linear-gradient(135deg, #ffc14a, #00f0e0);
  box-shadow: 0 0 12px rgba(255,193,74,.65);
  animation: titleDiamond 2s ease-in-out infinite;
}
@keyframes titleDiamond {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: .75; }
  50% { transform: rotate(45deg) scale(1.15); opacity: 1; }
}
@media (max-width: 520px) {
  .hero__title { padding: .15rem .4rem .35rem; }
  .hero__title-brace { display: none; }
  .logo__eyebrow { display: none; }
  .logo__word--a, .logo__word--b { font-size: .88rem; letter-spacing: .1em; }
}
.hero__lead {
  margin: 0; max-width: 28rem;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: #dbe5f6;
  text-shadow: 0 2px 16px rgba(0,0,0,.8);
}
.hero__lead b { color: #fff; text-shadow: 0 0 20px rgba(0,240,224,.35); }
.hero__cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 40rem);
  gap: 1.05rem;
  margin: 0;
  padding: .15rem .2rem .35rem;
  overflow: visible;
}
.cta {
  --fill-a: #ffb020;
  --fill-b: #ff6a1f;
  --fill-c: #e02a0c;
  --edge: #4a0e05;
  --ring: #ffd27a;
  --glow: rgba(255,90,20,.7);
  --accent: #ffc14a;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 1rem 1.35rem 1.15rem 1rem;
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, transparent 26%),
    linear-gradient(0deg, rgba(80,10,0,.55) 0%, transparent 42%),
    radial-gradient(90% 120% at 0% 50%, rgba(255,200,80,.35), transparent 55%),
    linear-gradient(118deg, var(--fill-a) 0%, var(--fill-b) 48%, var(--fill-c) 100%);
  box-shadow:
    0 2px 0 rgba(255,255,255,.55) inset,
    0 10px 18px rgba(255,180,60,.18) inset,
    0 -8px 16px rgba(60,8,0,.45) inset,
    0 0 0 1px rgba(255,210,120,.55) inset;
  filter:
    drop-shadow(0 0 1px var(--ring))
    drop-shadow(0 0 2px rgba(255,160,40,.9))
    drop-shadow(0 9px 0 var(--edge))
    drop-shadow(0 16px 22px rgba(0,0,0,.6))
    drop-shadow(0 0 28px var(--glow));
  transform: translateY(0);
  transition: transform .18s cubic-bezier(.2,.85,.2,1), filter .18s ease;
  animation: ctaIn .7s cubic-bezier(.2,.8,.2,1) both;
  isolation: isolate;
  text-decoration: none;
  overflow: hidden;
}
.cta__mesh,
.cta__glow,
.cta__corners,
.cta__bar,
.cta__go { pointer-events: none; }
.cta__mesh {
  position: absolute; inset: 0; z-index: 0; opacity: .22;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.18) 3px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 100%, 14px 100%;
  mix-blend-mode: overlay;
}
.cta__glow {
  position: absolute; inset: -20% auto -20% -15%; width: 55%; z-index: 0;
  background: radial-gradient(circle, rgba(255,220,120,.45), transparent 68%);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes softGlowPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.cta__corners {
  position: absolute; inset: 7px; z-index: 2;
}
.cta__corners::before,
.cta__corners::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.75);
  box-shadow: 0 0 8px rgba(255,200,100,.45);
}
.cta__corners::before {
  top: 0; left: 0;
  border-right: 0; border-bottom: 0;
}
.cta__corners::after {
  right: 2px; bottom: 0;
  border-left: 0; border-top: 0;
}
.cta__bar {
  position: absolute; left: 12%; right: 18%; bottom: 8px; height: 3px; z-index: 2;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), #fff, var(--accent), transparent);
  box-shadow: 0 0 10px var(--glow);
  animation: ctaBar 2.2s ease-in-out infinite;
}
@keyframes ctaBar {
  0%, 100% { opacity: .55; transform: scaleX(.92); }
  50% { opacity: 1; transform: scaleX(1); }
}
.cta__go {
  position: absolute; right: 14px; top: 50%; z-index: 2;
  width: 10px; height: 10px;
  border-right: 2.5px solid rgba(255,255,255,.85);
  border-bottom: 2.5px solid rgba(255,255,255,.85);
  transform: translateY(-50%) rotate(-45deg);
  filter: drop-shadow(0 0 6px rgba(255,220,140,.7));
  animation: ctaGo 1.4s ease-in-out infinite;
}
@keyframes ctaGo {
  0%, 100% { transform: translateY(-50%) translateX(0) rotate(-45deg); opacity: .7; }
  50% { transform: translateY(-50%) translateX(4px) rotate(-45deg); opacity: 1; }
}
.cta::after {
  content: "";
  position: absolute;
  inset: 2px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  border: 1.5px solid rgba(255,230,170,.55);
  box-shadow:
    0 0 0 1px rgba(70,15,0,.45) inset,
    0 1px 0 rgba(255,255,255,.35) inset;
  pointer-events: none;
  z-index: 1;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.55) 49%, transparent 62%);
  transform: translateX(-140%);
  animation: ctaShine 2.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.cta > .cta__ico,
.cta > .cta__txt { position: relative; z-index: 3; }
.hero__cta .cta:nth-child(1) { animation-delay: .08s; }
.hero__cta .cta:nth-child(2) { animation-delay: .2s; }
.hero__cta .cta:nth-child(2)::before { animation-delay: .85s; }
.hero__cta .cta:nth-child(2) .cta__glow { animation-delay: .4s; }
@keyframes ctaIn {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ctaShine {
  0%, 38% { transform: translateX(-140%); }
  68%, 100% { transform: translateX(140%); }
}
.cta:hover {
  transform: translateY(-7px) scale(1.025);
  filter:
    drop-shadow(0 0 1px #fff)
    drop-shadow(0 0 3px var(--ring))
    drop-shadow(0 13px 0 var(--edge))
    drop-shadow(0 20px 26px rgba(0,0,0,.6))
    drop-shadow(0 0 40px var(--glow));
}
.cta:hover .cta__go { animation-duration: .7s; }
.cta:active {
  transform: translateY(5px) scale(.985);
  filter:
    drop-shadow(0 0 1px var(--ring))
    drop-shadow(0 3px 0 var(--edge))
    drop-shadow(0 8px 14px rgba(0,0,0,.5));
}
.cta__ico {
  --ico-face: #1a0a06;
  --ico-rim: #ffc14a;
  --ico-glow: rgba(255,160,40,.75);
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,180,80,.25), transparent 55%),
    linear-gradient(165deg, #3a1a0c 0%, var(--ico-face) 45%, #0c0503 100%);
  box-shadow:
    0 2px 0 rgba(255,200,120,.35) inset,
    0 -6px 14px rgba(0,0,0,.65) inset,
    0 0 0 2px var(--ico-rim),
    0 0 0 4px rgba(40,12,4,.85),
    0 0 0 5px rgba(255,180,80,.35),
    0 0 24px var(--ico-glow),
    0 10px 18px rgba(0,0,0,.5);
  transition: transform .2s ease, box-shadow .2s ease;
  color: #ffe7b0;
  animation: icoBob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px var(--ico-glow));
}
.cta__ico-ring {
  position: absolute;
  inset: 5px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  border: 1.5px solid rgba(255,210,140,.35);
  box-shadow: 0 0 10px rgba(255,160,40,.25) inset;
  animation: icoRing 3.2s linear infinite;
  pointer-events: none;
}
@keyframes icoRing {
  to { filter: hue-rotate(12deg); opacity: .85; }
}
@keyframes icoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.cta:hover .cta__ico {
  transform: scale(1.08) rotate(-6deg);
  animation: none;
  box-shadow:
    0 2px 0 rgba(255,200,120,.45) inset,
    0 -6px 14px rgba(0,0,0,.55) inset,
    0 0 0 2px #ffe08a,
    0 0 0 4px rgba(40,12,4,.9),
    0 0 0 5px rgba(255,200,100,.5),
    0 0 34px var(--ico-glow),
    0 12px 20px rgba(0,0,0,.5);
}
.cta__ico svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 6px rgba(255,180,60,.55)) drop-shadow(0 2px 2px rgba(0,0,0,.55));
}
.cta__txt {
  display: grid;
  gap: .18rem;
  line-height: 1.05;
  text-align: left;
  min-width: 0;
  padding-right: .9rem;
}
.cta__txt em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: .52rem;
  letter-spacing: .18em;
  color: #ffe7b0;
  text-shadow: 0 0 8px rgba(255,200,100,.6);
}
.cta__txt strong {
  font-family: var(--font-d);
  font-size: .88rem;
  letter-spacing: .1em;
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0,0,0,.65),
    0 2px 0 rgba(70,12,0,.5),
    0 0 14px rgba(255,160,40,.35),
    0 0 2px rgba(0,0,0,.8);
}
.cta__txt small {
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .03em;
  color: #ffe8c4;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}
.cta--ghost {
  --fill-a: #1a4f62;
  --fill-b: #0e2d42;
  --fill-c: #061828;
  --edge: #01050a;
  --ring: #5cf5ea;
  --glow: rgba(0,240,224,.6);
  --accent: #00f0e0;
  background:
    linear-gradient(180deg, rgba(0,240,224,.32) 0%, transparent 28%),
    linear-gradient(0deg, rgba(0,30,50,.55) 0%, transparent 42%),
    radial-gradient(90% 120% at 0% 50%, rgba(0,240,224,.22), transparent 55%),
    linear-gradient(118deg, var(--fill-a) 0%, var(--fill-b) 48%, var(--fill-c) 100%);
  box-shadow:
    0 2px 0 rgba(0,240,224,.35) inset,
    0 10px 18px rgba(0,240,224,.08) inset,
    0 -8px 16px rgba(0,0,0,.45) inset,
    0 0 0 1px rgba(0,240,224,.4) inset;
  filter:
    drop-shadow(0 0 1px var(--ring))
    drop-shadow(0 0 2px rgba(0,240,224,.85))
    drop-shadow(0 9px 0 var(--edge))
    drop-shadow(0 16px 22px rgba(0,0,0,.6))
    drop-shadow(0 0 26px var(--glow));
}
.cta--ghost:hover {
  filter:
    drop-shadow(0 0 1px #fff)
    drop-shadow(0 0 3px var(--ring))
    drop-shadow(0 13px 0 var(--edge))
    drop-shadow(0 20px 26px rgba(0,0,0,.6))
    drop-shadow(0 0 38px var(--glow));
}
.cta--ghost::after {
  border-color: rgba(0,240,224,.55);
  box-shadow:
    0 0 0 1px rgba(0,40,55,.5) inset,
    0 1px 0 rgba(0,240,224,.25) inset;
}
.cta--ghost .cta__corners::before,
.cta--ghost .cta__corners::after {
  border-color: rgba(0,240,224,.8);
  box-shadow: 0 0 8px rgba(0,240,224,.45);
}
.cta--ghost .cta__txt em { color: #8ffcf4; text-shadow: 0 0 8px rgba(0,240,224,.55); }
.cta--ghost .cta__txt strong {
  text-shadow:
    0 0 14px rgba(0,240,224,.45),
    0 1px 0 rgba(0,0,0,.65),
    0 2px 8px rgba(0,0,0,.45);
}
.cta--ghost .cta__txt small {
  color: #b8fff8;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}
.cta--ghost .cta__ico {
  --ico-face: #041820;
  --ico-rim: #00f0e0;
  --ico-glow: rgba(0,240,224,.7);
  color: #b8fff8;
  background:
    radial-gradient(circle at 50% 42%, rgba(0,240,224,.22), transparent 55%),
    linear-gradient(165deg, #0a3040 0%, var(--ico-face) 45%, #01080e 100%);
  box-shadow:
    0 2px 0 rgba(0,240,224,.3) inset,
    0 -6px 14px rgba(0,0,0,.65) inset,
    0 0 0 2px var(--ico-rim),
    0 0 0 4px rgba(0,30,40,.9),
    0 0 0 5px rgba(0,240,224,.35),
    0 0 24px var(--ico-glow),
    0 10px 18px rgba(0,0,0,.5);
}
.cta--ghost .cta__ico-ring {
  border-color: rgba(0,240,224,.4);
  box-shadow: 0 0 10px rgba(0,240,224,.25) inset;
}
.cta--ghost:hover .cta__ico {
  box-shadow:
    0 2px 0 rgba(0,240,224,.4) inset,
    0 -6px 14px rgba(0,0,0,.55) inset,
    0 0 0 2px #7af8ef,
    0 0 0 4px rgba(0,30,40,.95),
    0 0 0 5px rgba(0,240,224,.5),
    0 0 34px var(--ico-glow),
    0 12px 20px rgba(0,0,0,.5);
}
.cta--ghost .cta__ico svg {
  filter: drop-shadow(0 0 6px rgba(0,240,224,.55)) drop-shadow(0 2px 2px rgba(0,0,0,.55));
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 32rem);
  gap: .55rem;
  margin: 0;
  animation: metricFade .7s ease .45s both;
}
@keyframes metricFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.metric {
  --accent: #ffc14a;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .55rem;
  row-gap: 0;
  align-items: center;
  padding: .6rem .75rem;
  text-align: left;
  border-radius: 10px;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, rgba(255,255,255,.18));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
  backdrop-filter: blur(6px);
  transition:
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}
.metric:hover {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, rgba(8,12,20,.92)), rgba(6,10,18,.88));
  border-color: color-mix(in srgb, var(--accent) 75%, #fff);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
    0 10px 28px rgba(0,0,0,.45),
    0 0 28px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-3px);
}
.metric::before { display: none; }
.metric__ico {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 25%, transparent);
}
.metric:hover .metric__ico {
  background: color-mix(in srgb, var(--accent) 28%, rgba(0,0,0,.35));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.metric__ico svg { width: 15px; height: 15px; filter: none; opacity: .95; }
.metric strong {
  font-family: var(--font-d);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: .04em;
  color: #f2f6ff;
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
}
.metric__label {
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--accent) 70%, #b8c4d8);
}
.metric--ember { --accent: #ff8a4c; }
.metric--cyan { --accent: #00f0e0; }
.metric--gold { --accent: #ffc14a; }

@media (max-width: 640px) {
  .hero__float { width: 78px; opacity: .75; }
  .hero__float--a { top: 10%; right: 2%; }
  .hero__float--b {
    top: auto;
    bottom: 14%;
    left: 2%;
    z-index: 2;
    pointer-events: none;
  }
  .hero__cta { width: min(100%, 22rem); gap: .75rem; margin: 0; }
  .hero__metrics { width: min(100%, 22rem); gap: .5rem; position: relative; z-index: 5; }
  .hero__lead { margin: 0; font-size: 1.05rem; }
  .hero__content { gap: .7rem; }
  .cta { min-height: 78px; padding: .85rem 1.1rem .95rem .85rem; gap: .65rem; }
  .cta__txt em { font-size: .46rem; }
  .cta__txt strong { font-size: .68rem; letter-spacing: .06em; }
  .cta__txt small { font-size: .62rem; }
  .cta__ico { width: 46px; height: 46px; }
  .cta__ico svg { width: 22px; height: 22px; }
  .cta__go { right: 10px; width: 8px; height: 8px; }
  .metric {
    padding: .45rem .5rem;
    column-gap: .4rem;
    background: rgba(4,8,14,.92);
  }
  .metric:hover {
    background:
      linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, rgba(8,12,20,.96)), rgba(6,10,18,.94));
  }
  .metric__ico { width: 26px; height: 26px; }
  .metric__ico svg { width: 13px; height: 13px; }
  .metric strong { font-size: .95rem; }
  .metric__label { font-size: .52rem; letter-spacing: .08em; }
}

/* ===== PAGE SHELLS ===== */
.page-hero {
  position: relative; min-height: calc(280px + var(--nav)); display: grid; align-items: end; overflow: hidden;
  margin-top: calc(var(--nav) * -1);
  padding-top: var(--nav);
}
.page-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); animation: ken 18s ease-in-out infinite alternate; filter: saturate(1.2);
}
.page-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(2,4,10,.92), rgba(255,77,42,.18), rgba(0,240,224,.12), rgba(2,4,10,.9));
}
.page-hero__content { position: relative; z-index: 1; padding: 2.2rem 0 1.7rem; }
.page-hero__content h1 { font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.05; margin: .35rem 0 .5rem; }
.page-hero__content h1 em {
  font-style: normal; background: linear-gradient(90deg, var(--ember2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero__content p { margin: 0; color: #d0dbeb; max-width: 36rem; }
.page-hero__content a { color: var(--ember2); font-weight: 700; }

.cmd { width: min(100% - 1.25rem, var(--max)); margin: 0 auto; padding: 1.4rem 0 2.8rem; }
.cmd__hero {
  position: relative; overflow: hidden; padding: 1.4rem 1.25rem 1.5rem; margin-bottom: 1rem;
  border: 1px solid rgba(0,240,224,.22); clip-path: var(--clip);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(255,77,42,.18), transparent 55%),
    radial-gradient(500px 180px at 100% 100%, rgba(0,240,224,.14), transparent 55%),
    linear-gradient(160deg, rgba(16,24,42,.96), rgba(6,10,20,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.cmd__hero h1, .cmd__hero h2 { margin: .25rem 0 .4rem; }
.cmd__hero p { margin: 0; color: var(--muted); max-width: 40rem; }

.identity {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.15rem; margin-bottom: 1rem; border: 1px solid rgba(255,193,74,.3); clip-path: var(--clip);
  background: linear-gradient(145deg, rgba(40,24,12,.55), rgba(10,14,24,.95));
}
.identity.cyan { border-color: rgba(0,240,224,.3); background: linear-gradient(145deg, rgba(10,36,40,.55), rgba(10,14,24,.95)); }
.identity__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.stat-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem;
  font-size: .78rem; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #d7e2f4;
}
.dash-grid { display: grid; gap: .9rem; }
.dash-actions { display: grid; gap: .7rem; }
.dash-actions .btn { width: 100%; }
.match-list { display: grid; gap: .55rem; }
.match-row {
  display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center;
  padding: .85rem 1rem; border: 1px solid var(--line); background: rgba(10,16,30,.9); clip-path: var(--clip-sm);
}
.match-row.win { border-color: rgba(0,240,224,.28); box-shadow: inset 3px 0 0 var(--cyan); }
.match-row.loss { border-color: rgba(255,77,42,.22); box-shadow: inset 3px 0 0 var(--ember); }
.match-row strong { display: block; }
.match-row span { color: var(--muted); font-size: .85rem; }
.result-pill {
  font-family: var(--font-d); font-size: .58rem; letter-spacing: .1em; padding: .4rem .65rem;
}
.result-pill.win { color: #021018; background: linear-gradient(135deg, #00f0e0, #3aa0ff); }
.result-pill.loss { color: #1a0903; background: linear-gradient(135deg, #ff8a4c, #ff4d2a); }

.lobby-grid { display: grid; gap: .9rem; margin-bottom: 1.1rem; }
.lobby-card {
  display: grid; overflow: hidden; margin: 0; padding: 0; text-align: left; color: inherit;
  border: 1px solid var(--line); background: #0a101e; clip-path: var(--clip);
}
.lobby-card__art {
  min-height: 140px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 55%), url("/static/game/img/brand/hero.png?v=20260921r12") center/cover;
}
.lobby-card__art::before { content: ""; position: absolute; inset: 0; }
.lobby-card--local .lobby-card__art::before { background: linear-gradient(160deg, rgba(255,77,42,.55), rgba(4,7,15,.75) 70%); }
.lobby-card--online .lobby-card__art::before { background: linear-gradient(160deg, rgba(0,240,224,.5), rgba(4,7,15,.78) 70%); }
.lobby-card--ai .lobby-card__art::before { background: linear-gradient(160deg, rgba(255,193,74,.55), rgba(255,77,42,.25), rgba(4,7,15,.8) 72%); }
.lobby-card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4,7,15,.92)); }
.lobby-card__body { padding: 1rem 1.1rem 1.2rem; }
.lobby-card__body h3 { font-size: 1.2rem; margin: .25rem 0 .35rem; }
.lobby-card__body p { margin: 0 0 .85rem; color: var(--muted); }
.mission-label { display: inline-flex; font-family: var(--font-d); font-size: .55rem; letter-spacing: .16em; color: var(--cyan); }
.lobby-tools { display: grid; gap: .85rem; }
.tool-note { margin: 0 0 .85rem; color: var(--muted); font-size: .92rem; }

/* ===== AUTH GATE — login / register ===== */
.auth-body .foot { display: none; }
.auth-body .space-bg { opacity: .12; }
.auth-body .stage {
  min-height: calc(100dvh - var(--nav));
}
.gate {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  display: grid;
  align-items: center;
  padding: calc(var(--nav) + 1.1rem) 1rem 2.1rem;
  overflow: hidden;
}
.gate__bg {
  position: absolute; inset: -4%; z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  filter: saturate(1.45) brightness(.88) contrast(1.12);
  animation: gateKen 18s ease-in-out infinite alternate;
}
.gate__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(2,4,10,.62) 0%, rgba(2,4,10,.22) 48%, rgba(2,4,10,.7) 100%),
    linear-gradient(180deg, rgba(2,4,10,.28), rgba(2,4,10,.58));
  animation: gateVeilPulse 7s ease-in-out infinite alternate;
}
.gate--login .gate__veil {
  background:
    linear-gradient(115deg, rgba(2,4,10,.58) 0%, rgba(4,40,48,.22) 46%, rgba(2,4,10,.72) 100%),
    linear-gradient(180deg, rgba(2,4,10,.24), rgba(2,4,10,.55));
}
.gate--register .gate__veil {
  background:
    linear-gradient(115deg, rgba(2,4,10,.58) 0%, rgba(48,16,4,.22) 46%, rgba(2,4,10,.72) 100%),
    linear-gradient(180deg, rgba(2,4,10,.24), rgba(2,4,10,.55));
}
.gate__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,224,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,40,.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 22%, transparent 78%);
  opacity: .65;
  animation: gateGridMove 14s linear infinite;
}
.gate__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0,240,224,.0) 42%,
    rgba(0,240,224,.14) 50%,
    rgba(255,140,40,.08) 52%,
    transparent 58%
  );
  background-size: 100% 220%;
  animation: gateScan 5.5s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: .85;
}
.gate--register .gate__scan {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,140,40,.0) 42%,
    rgba(255,140,40,.16) 50%,
    rgba(0,240,224,.08) 52%,
    transparent 58%
  );
  background-size: 100% 220%;
}
.gate__dust {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 28%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.5px 1.5px at 28% 62%, rgba(0,240,224,.9), transparent),
    radial-gradient(2px 2px at 44% 18%, rgba(255,193,74,.85), transparent),
    radial-gradient(1.5px 1.5px at 58% 72%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 72% 36%, rgba(0,240,224,.8), transparent),
    radial-gradient(1.5px 1.5px at 84% 58%, rgba(255,140,40,.9), transparent),
    radial-gradient(2px 2px at 18% 84%, rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 66% 12%, rgba(122,248,239,.85), transparent);
  background-size: 100% 100%;
  animation: gateDust 12s linear infinite;
  opacity: .85;
}
.gate__sparks {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 20% 70%, rgba(255,140,40,.22), transparent 28%),
    radial-gradient(circle at 78% 30%, rgba(0,240,224,.2), transparent 26%);
  animation: gateSparks 4.5s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.gate__orb {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 50%;
  filter: blur(36px); opacity: .55;
  animation: gateOrbFloat 8s ease-in-out infinite alternate;
}
.gate__orb--a {
  width: min(46vw, 460px); height: min(46vw, 460px);
  top: 6%; right: -10%;
  background: radial-gradient(circle, rgba(0,240,224,.7), transparent 68%);
}
.gate--register .gate__orb--a {
  background: radial-gradient(circle, rgba(255,110,40,.7), transparent 68%);
}
.gate__orb--b {
  width: min(40vw, 380px); height: min(40vw, 380px);
  bottom: 2%; left: -8%;
  background: radial-gradient(circle, rgba(255,140,40,.5), transparent 70%);
  animation-delay: -2.5s;
}
.gate--login .gate__orb--b {
  background: radial-gradient(circle, rgba(0,200,220,.45), transparent 70%);
}
@keyframes gateKen {
  0% { transform: scale(1.08) translate(0, 0); filter: saturate(1.4) brightness(.86) contrast(1.1); }
  100% { transform: scale(1.18) translate(-1.4%, -1.2%); filter: saturate(1.55) brightness(.96) contrast(1.14); }
}
@keyframes gateVeilPulse {
  0% { opacity: 1; }
  100% { opacity: .82; }
}
@keyframes gateGridMove {
  to { background-position: 44px 44px; }
}
@keyframes gateScan {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}
@keyframes gateDust {
  0% { transform: translateY(0); opacity: .7; }
  50% { opacity: 1; }
  100% { transform: translateY(-3.5%); opacity: .75; }
}
@keyframes gateSparks {
  0% { opacity: .45; transform: scale(1); }
  100% { opacity: .9; transform: scale(1.08); }
}
@keyframes gateOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 5%) scale(1.12); }
}
.gate__wrap {
  position: relative; z-index: 2;
  width: min(100%, 1100px);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.gate-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.gate-side { display: none; }
.gate-side__kicker {
  --kick-a: #fff; --kick-b: #ffc14a; --kick-c: #ff4d2a; --kick-ink: #1a0a04; --kick-edge: #4a1200;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-d);
  font-style: normal;
  font-size: .5rem;
  letter-spacing: .2em;
  color: var(--kick-ink);
  padding: .48rem .55rem .48rem .7rem;
  margin-bottom: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), transparent 42%),
    linear-gradient(115deg, var(--kick-a), var(--kick-b) 42%, var(--kick-c));
  box-shadow:
    0 0 28px color-mix(in srgb, var(--kick-c) 45%, transparent),
    0 7px 0 var(--kick-edge),
    0 2px 0 rgba(255,255,255,.5) inset;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  animation: gateKickPulse 2.6s ease-in-out infinite;
}
.gate--login .gate-side__kicker {
  --kick-a: #fff; --kick-b: #7af8ef; --kick-c: #00d4c8; --kick-ink: #041416; --kick-edge: #04353c;
}
.gate-side__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--kick-ink);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--kick-ink) 40%, transparent);
  animation: gatePulseDot 1.6s ease-out infinite;
}
.gate-side__kicker b {
  margin-left: .15rem;
  padding: .28rem .45rem;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: .42rem;
  letter-spacing: .14em;
  border: 1px solid rgba(255,255,255,.25);
}
.gate--login .gate-side__kicker b { color: #e8fffc; }
.gate-side__title {
  margin: 0 0 .9rem;
  font-size: clamp(2.5rem, 5.4vw, 3.85rem);
  line-height: .92;
  letter-spacing: .04em;
}
.gate-side__line {
  display: block;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0,0,0,.55);
  animation: gateTitleIn .55s ease both;
}
.gate-side__hero {
  display: block;
  margin-top: .12rem;
  background: linear-gradient(100deg, #fff 0%, #ffe08a 28%, #ffc14a 52%, #ff6a2a 78%, #ff3d1a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 24px rgba(255,100,40,.45));
  animation: gateHeroShine 4s ease-in-out infinite, gateTitleIn .65s .08s ease both;
}
.gate--login .gate-side__hero {
  background: linear-gradient(100deg, #fff 0%, #c8fff9 28%, #7af8ef 52%, #00f0e0 78%, #0899b8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 8px 24px rgba(0,240,224,.45));
}
.gate-side__lead {
  margin: 0 0 1.45rem;
  max-width: 28rem;
  color: #e8eef8;
  font-size: 1.14rem;
  line-height: 1.55;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
  border-left: 3px solid #ffc14a;
  padding-left: .9rem;
  animation: gateTitleIn .7s .12s ease both;
}
.gate--login .gate-side__lead { border-left-color: #7af8ef; }

.gate-side__perks {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .8rem;
  max-width: 24rem;
}
.gate-side__perks li {
  --perk: #ffc14a;
  --perk2: #ff6a2a;
  --perk-glow: rgba(255,193,74,.6);
  position: relative;
  display: flex; align-items: center; gap: .9rem;
  padding: .78rem .9rem .78rem .78rem;
  border: 1px solid color-mix(in srgb, var(--perk) 65%, #fff);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--perk) 28%, rgba(10,12,20,.95)), rgba(8,10,16,.92) 48%, rgba(8,10,16,.7)),
    linear-gradient(90deg, color-mix(in srgb, var(--perk2) 18%, transparent), transparent 55%);
  box-shadow:
    0 0 28px color-mix(in srgb, var(--perk) 28%, transparent),
    0 12px 28px rgba(0,0,0,.4),
    0 1px 0 rgba(255,255,255,.14) inset,
    0 8px 0 rgba(0,0,0,.22);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  animation: gatePerkIn .55s ease both, gatePerkGlow 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .12s), calc(.55s + var(--i, 0) * .12s);
  overflow: hidden;
}
.gate-side__perks li::before {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px;
  background: linear-gradient(180deg, #fff, var(--perk), var(--perk2));
  box-shadow: 0 0 12px var(--perk-glow);
}
.gate-side__perks li::after {
  content: "";
  position: absolute; inset: 0 auto 0 -45%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  animation: gatePerkShine 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .35s);
}
.gate--login .gate-side__perks li {
  --perk: #7af8ef; --perk2: #00d4c8; --perk-glow: rgba(0,240,224,.6);
}
.gate-perk__ico {
  position: relative; z-index: 1;
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 40%),
    linear-gradient(145deg, #fff 0%, var(--perk) 45%, var(--perk2) 100%);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow:
    0 0 20px var(--perk-glow),
    0 6px 0 rgba(0,0,0,.4),
    0 2px 0 rgba(255,255,255,.4) inset;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
  animation: gateIcoBob 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .2s);
}
.gate-perk__ico svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.gate-perk__copy {
  position: relative; z-index: 1;
  display: grid; gap: .12rem; min-width: 0;
}
.gate-perk__copy strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
.gate-perk__copy em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--perk);
  text-shadow: 0 0 12px var(--perk-glow);
}

@keyframes gateKickPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
@keyframes gatePulseDot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--kick-ink) 45%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}
@keyframes gateHeroShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes gateTitleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gatePerkIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes gatePerkGlow {
  0%, 100% { box-shadow: 0 0 22px color-mix(in srgb, var(--perk) 22%, transparent), 0 12px 28px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.14) inset, 0 8px 0 rgba(0,0,0,.22); }
  50% { box-shadow: 0 0 36px color-mix(in srgb, var(--perk) 42%, transparent), 0 12px 28px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 0 rgba(0,0,0,.22); }
}
@keyframes gatePerkShine {
  0% { transform: translateX(0); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateX(360%); opacity: 0; }
}
@keyframes gateIcoBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.gate-card {
  --gate-accent: #ff8a3a;
  --gate-accent2: #ffc14a;
  position: relative;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 1.55rem 1.45rem 1.5rem;
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(14,16,26,.98), rgba(5,7,12,.99) 55%, rgba(3,4,8,.995));
  border: 1px solid color-mix(in srgb, var(--gate-accent) 48%, #fff);
  box-shadow:
    0 34px 72px rgba(0,0,0,.68),
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 1px 0 rgba(255,255,255,.1) inset,
    0 0 48px color-mix(in srgb, var(--gate-accent) 18%, transparent),
    0 16px 0 rgba(0,0,0,.34);
  backdrop-filter: blur(18px) saturate(1.2);
  transform: perspective(900px) rotateY(-1.5deg);
  overflow: hidden;
}
.gate-card--ember { --gate-accent: #ff6a2a; --gate-accent2: #ffc14a; }
.gate-card--cyan {
  --gate-accent: #00f0e0; --gate-accent2: #7af8ef;
  transform: perspective(900px) rotateY(1.5deg);
}
.gate-card__grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
.gate-card__orb {
  position: absolute; pointer-events: none; z-index: 0; border-radius: 50%;
  filter: blur(2px);
  animation: gateOrbPulse 5.5s ease-in-out infinite;
}
.gate-card__orb--a {
  width: 140px; height: 140px; top: -48px; right: -36px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gate-accent) 35%, transparent), transparent 68%);
}
.gate-card__orb--b {
  width: 110px; height: 110px; bottom: 8%; left: -40px;
  background: radial-gradient(circle, color-mix(in srgb, var(--gate-accent2) 22%, transparent), transparent 70%);
  animation-delay: -2.2s;
}
@keyframes gateOrbPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.gate-card__corners {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.gate-card__corners i {
  position: absolute; width: 16px; height: 16px;
  border-color: var(--gate-accent2); border-style: solid;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gate-accent) 55%, transparent));
}
.gate-card__corners i:nth-child(1) { top: 14px; left: 14px; border-width: 2px 0 0 2px; }
.gate-card__corners i:nth-child(2) { top: 14px; right: 14px; border-width: 2px 2px 0 0; }
.gate-card__corners i:nth-child(3) { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; }
.gate-card__corners i:nth-child(4) { bottom: 14px; right: 14px; border-width: 0 2px 2px 0; }
.gate-card__frame {
  position: absolute; inset: 8px; pointer-events: none; z-index: 0;
  border: 1px solid color-mix(in srgb, var(--gate-accent) 24%, transparent);
}
.gate-card__frame::before,
.gate-card__frame::after {
  content: ""; position: absolute; width: 22px; height: 22px;
  border-color: var(--gate-accent2); border-style: solid;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--gate-accent) 60%, transparent));
}
.gate-card__frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.gate-card__frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.gate-card__beam {
  position: absolute; top: 0; left: -30%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gate-accent) 16%, transparent), transparent);
  animation: gateCardBeam 4.5s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.gate-card__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--gate-accent2) 10%, transparent) 50%, transparent 62%);
  background-size: 220% 100%;
  animation: gateBtnScan 5.2s ease-in-out infinite;
}
.gate-card__shine {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--gate-accent) 14%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 28%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.014) 3px, rgba(255,255,255,.014) 4px);
}
@keyframes gateCardBeam {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}
.gate-card__head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid color-mix(in srgb, var(--gate-accent) 22%, rgba(255,255,255,.08));
}
.gate-card__badge {
  position: relative;
  width: 60px; height: 60px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--gate-accent2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 42%),
    linear-gradient(145deg, rgba(22,18,16,.96), rgba(6,8,12,.98));
  border: 1px solid color-mix(in srgb, var(--gate-accent) 55%, transparent);
  box-shadow:
    0 0 22px color-mix(in srgb, var(--gate-accent) 32%, transparent),
    0 10px 0 rgba(0,0,0,.42),
    0 1px 0 rgba(255,255,255,.1) inset;
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
}
.gate-card--cyan .gate-card__badge {
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 42%),
    linear-gradient(145deg, rgba(10,24,28,.96), rgba(4,10,12,.98));
}
.gate-card__ring {
  position: absolute; inset: -6px;
  border: 1px dashed color-mix(in srgb, var(--gate-accent2) 55%, transparent);
  border-radius: 50%;
  animation: logoSpin 10s linear infinite;
  opacity: .7;
  clip-path: none;
  pointer-events: none;
}
.gate-card__badge svg { width: 28px; height: 28px; position: relative; z-index: 1; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gate-accent) 50%, transparent)); }
.gate-card__eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0 0 .28rem;
  font-family: var(--font-d);
  font-size: .44rem;
  letter-spacing: .22em;
  color: var(--gate-accent2);
  text-shadow: 0 0 14px color-mix(in srgb, var(--gate-accent) 45%, transparent);
}
.gate-card__eyebrow i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gate-accent2);
  box-shadow: 0 0 10px var(--gate-accent2);
  animation: blink 1.4s ease-in-out infinite;
}
.gate-card__title {
  margin: 0;
  font-size: clamp(1.65rem, 3.8vw, 2.1rem);
  letter-spacing: .06em;
  background: linear-gradient(100deg, #fff 0%, var(--gate-accent2) 55%, var(--gate-accent) 100%);
  background-size: 180% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gateHeroShine 5s ease-in-out infinite;
}
.gate-card__sub {
  margin: .32rem 0 0;
  color: #c2cede;
  font-size: .98rem;
}
.gate-card__sub b {
  color: var(--gate-accent2);
  font-weight: 800;
}

.gate-form {
  position: relative; z-index: 1;
  display: grid; gap: 1rem;
}
.gate-alert {
  padding: .75rem .9rem;
  border: 1px solid rgba(255,80,80,.45);
  background: rgba(255,40,40,.12);
  color: #ffb4b4;
  font-weight: 700;
  font-size: .92rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.gate-field { display: grid; gap: .42rem; }
.gate-field__label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-d);
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e8eef8;
}
.gate-field__label i {
  width: 10px; height: 2px;
  background: linear-gradient(90deg, var(--gate-accent2), transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--gate-accent) 50%, transparent);
}
.gate-control { position: relative; display: block; }
.gate-control__ico {
  position: absolute; left: 0; top: 0; bottom: 0; width: 52px;
  display: grid; place-items: center;
  pointer-events: none; z-index: 2;
  border-right: 0;
  background: none;
}
.gate-control__ico::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--gate-accent) 55%, transparent),
    transparent
  );
  opacity: .7;
}
.gate-control__ico svg {
  width: 20px; height: 20px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gate-accent) 55%, transparent));
  animation: gateIcoBob 3s ease-in-out infinite;
}
.gate-input {
  width: 100%;
  min-height: 54px;
  padding: .9rem 1.05rem .9rem 3.55rem;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--gate-accent) 28%, rgba(255,255,255,.12));
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 38%),
    linear-gradient(180deg, rgba(10,14,22,.96), rgba(4,7,12,.98));
  color: #f5f8ff;
  font-family: var(--font-b);
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow:
    0 1px 0 rgba(255,255,255,.07) inset,
    0 12px 28px rgba(0,0,0,.3),
    0 5px 0 rgba(0,0,0,.22);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.gate-input::placeholder { color: #7a8aa3; font-weight: 500; }
.gate-input:hover {
  border-color: color-mix(in srgb, var(--gate-accent) 55%, rgba(255,255,255,.2));
}
.gate-input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--gate-accent) 85%, #fff);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--gate-accent) 28%, transparent),
    0 0 24px color-mix(in srgb, var(--gate-accent) 18%, transparent),
    0 14px 32px rgba(0,0,0,.4),
    0 5px 0 rgba(0,0,0,.22);
  transform: translateY(-1px);
}
.gate-field__hint { font-size: .82rem; color: #9aabc4; }
.gate-field__err { font-size: .84rem; color: #ff8e8e; font-weight: 700; }

.gate-btn {
  --btn-core: #120c0c;
  --btn-mid: #241410;
  --btn-hi: #ff7a28;
  --btn-lo: #c42808;
  --btn-edge: #120402;
  --btn-glow: rgba(255,90,20,.5);
  --btn-ink: #fff8f0;
  --btn-accent: #ffc14a;
  position: relative;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  min-height: 74px;
  margin-top: .55rem;
  padding: .95rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--btn-accent) 55%, var(--btn-hi));
  color: var(--btn-ink);
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), transparent 26%),
    linear-gradient(165deg, var(--btn-mid) 0%, var(--btn-core) 52%, #060404 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 -14px 24px rgba(0,0,0,.5) inset,
    0 0 0 1px rgba(0,0,0,.55) inset;
  filter:
    drop-shadow(0 10px 0 var(--btn-edge))
    drop-shadow(0 18px 28px rgba(0,0,0,.6))
    drop-shadow(0 0 20px var(--btn-glow));
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
  overflow: hidden;
}
.gate-btn--cyan {
  --btn-core: #041012;
  --btn-mid: #0a1e24;
  --btn-hi: #1fd6c8;
  --btn-lo: #067a8a;
  --btn-edge: #021014;
  --btn-glow: rgba(0,220,210,.48);
  --btn-ink: #f0fffc;
  --btn-accent: #7af8ef;
}
.gate-btn__skin {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 100% 90% at 20% 40%, color-mix(in srgb, var(--btn-hi) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 90% 80% at 85% 70%, color-mix(in srgb, var(--btn-lo) 16%, transparent), transparent 68%),
    radial-gradient(ellipse 120% 80% at 50% 50%, color-mix(in srgb, var(--btn-accent) 10%, transparent), transparent 72%);
}
.gate-btn__hex {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 90% 80% at 40% 50%, #000 0%, transparent 75%);
}
.gate-btn__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--btn-accent) 28%, transparent) 50%, transparent 62%);
  background-size: 220% 100%;
  animation: gateBtnScan 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.gate-btn__edge {
  position: absolute; inset: 5px; pointer-events: none; z-index: 0;
  border: 1px solid color-mix(in srgb, var(--btn-accent) 35%, transparent);
  opacity: .85;
}
.gate-btn__edge::before,
.gate-btn__edge::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--btn-accent); border-style: solid;
  filter: drop-shadow(0 0 6px var(--btn-accent));
}
.gate-btn__edge::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.gate-btn__edge::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.gate-btn:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--btn-accent) 80%, #fff);
  filter:
    drop-shadow(0 12px 0 var(--btn-edge))
    drop-shadow(0 22px 32px rgba(0,0,0,.62))
    drop-shadow(0 0 28px var(--btn-glow))
    brightness(1.1);
}
.gate-btn:active { transform: translateY(2px); }

.gate-btn__ico {
  position: relative; z-index: 1;
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--btn-accent);
  background:
    linear-gradient(145deg, rgba(32,20,14,.98), rgba(6,4,4,.99));
  border: 1px solid color-mix(in srgb, var(--btn-accent) 60%, transparent);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--btn-hi) 40%, transparent),
    0 5px 0 rgba(0,0,0,.45),
    0 1px 0 rgba(255,255,255,.12) inset;
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
}
.gate-btn--cyan .gate-btn__ico {
  background: linear-gradient(145deg, rgba(8,28,32,.98), rgba(2,8,10,.99));
}
.gate-btn__ico b {
  position: absolute; inset: 3px;
  border: 1px solid color-mix(in srgb, var(--btn-accent) 28%, transparent);
  clip-path: inherit;
  pointer-events: none;
}
.gate-btn__ico svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
  animation: gateIcoBob 2.2s ease-in-out infinite;
}
.gate-btn__txt {
  position: relative; z-index: 1;
  display: grid; gap: .2rem; text-align: left; min-width: 0;
}
.gate-btn__txt em {
  display: inline-flex; align-items: center; gap: .4rem;
  font-style: normal;
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .18em;
  color: var(--btn-accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--btn-hi) 50%, transparent);
}
.gate-btn__txt em i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--btn-accent);
  box-shadow: 0 0 10px var(--btn-accent);
  animation: blink 1.2s ease-in-out infinite;
}
.gate-btn__txt strong {
  font-family: var(--font-d);
  font-size: .88rem;
  letter-spacing: .1em;
  color: #fff;
  text-shadow:
    0 0 14px color-mix(in srgb, var(--btn-hi) 30%, transparent),
    0 2px 10px rgba(0,0,0,.75);
}
.gate-btn__hud {
  position: relative; z-index: 1;
  margin-left: auto;
  display: grid; gap: .4rem; justify-items: end;
}
.gate-btn__bars {
  display: flex; align-items: flex-end; gap: 3px; height: 18px;
}
.gate-btn__bars i {
  width: 4px;
  background: linear-gradient(180deg, var(--btn-accent), var(--btn-hi), var(--btn-lo));
  box-shadow: 0 0 8px color-mix(in srgb, var(--btn-hi) 50%, transparent);
  animation: gateBars 1.15s ease-in-out infinite;
}
.gate-btn__bars i:nth-child(1) { height: 40%; animation-delay: 0s; }
.gate-btn__bars i:nth-child(2) { height: 70%; animation-delay: .12s; }
.gate-btn__bars i:nth-child(3) { height: 55%; animation-delay: .24s; }
.gate-btn__bars i:nth-child(4) { height: 95%; animation-delay: .36s; }
.gate-btn__tag {
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .16em;
  padding: .22rem .45rem;
  color: #0a0c10;
  background: linear-gradient(120deg, #fff, var(--btn-accent) 55%, var(--btn-hi));
  box-shadow: 0 0 12px color-mix(in srgb, var(--btn-hi) 40%, transparent);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
@keyframes gateBtnScan {
  0% { background-position: 130% 0; }
  100% { background-position: -40% 0; }
}
@keyframes gateBars {
  0%, 100% { transform: scaleY(.55); opacity: .55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.gate-switch {
  position: relative; z-index: 1;
  margin: 1.25rem 0 0;
  text-align: center;
  color: #a8b8d0;
  font-size: .96rem;
}
.gate-switch a {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-left: .4rem;
  padding: .35rem .65rem;
  color: #0a0c12;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(120deg, #fff, var(--gate-accent2) 55%, var(--gate-accent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--gate-accent) 35%, transparent);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.gate-switch a span { transition: transform .2s ease; }
.gate-switch a:hover span { transform: translateX(3px); }
.gate-switch a:hover { filter: brightness(1.08); }

@media (min-width: 901px) {
  .gate__wrap {
    grid-template-columns: 1.05fr .95fr;
    gap: 2.6rem;
  }
  .gate-side { display: block; }
  .gate-card { margin: 0 0 0 auto; width: min(100%, 500px); padding: 1.75rem 1.65rem 1.6rem; }
}
@media (max-width: 900px) {
  .gate-card { transform: none; }
}

.manual-hero, .rank-hero {
  position: relative;
  min-height: calc(300px + var(--nav));
  display: grid;
  align-items: end;
  overflow: hidden;
  margin-top: calc(var(--nav) * -1);
  padding-top: var(--nav);
}
.manual-hero__bg, .rank-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); animation: ken 18s ease-in-out infinite alternate; filter: saturate(1.15);
}
.manual-hero__veil, .rank-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(2,4,10,.92), rgba(255,77,42,.2), rgba(0,240,224,.12), rgba(2,4,10,.9));
}
.manual-hero__content, .rank-hero__content { position: relative; z-index: 1; padding: 2.2rem 0 1.8rem; }
.manual-hero__content h1, .rank-hero__content h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); line-height: 1.02; margin: .4rem 0 .55rem; }
.manual-hero__content h1 em, .rank-hero__content h1 em {
  font-style: normal; background: linear-gradient(90deg, var(--ember2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.manual-hero__content p, .rank-hero__content p { margin: 0; max-width: 34rem; color: #d2dced; font-size: 1.05rem; }

/* Manual — seções cinematográficas, uma por modo, com scroll */
.manual-page {
  padding-top: 0;
  overflow-x: clip;
  height: auto;
  max-height: none;
  background: #02040a;
}
.manual-page .foot { display: none; }
.manual-page .topbar {
  background: #02040a;
  border-bottom-color: rgba(255,140,40,.28);
}
.manual-page .stage {
  min-height: 0;
  height: auto;
  overflow: visible;
}
.manual { position: relative; background: #02040a; }
.manual-mode { padding: 2.2rem 0 3.4rem; }
.manual-mode .lore-sec__stage { opacity: 1; }
.manual-mode .lore-sec__media--main {
  filter: saturate(1.25) brightness(.72) contrast(1.06);
}
.manual-mode .lore-sec__fade {
  background:
    linear-gradient(180deg, rgba(2,4,10,.78) 0%, rgba(2,4,10,.48) 16%, rgba(2,4,10,.58) 72%, rgba(2,4,10,.82) 100%);
}
.manual-mode__inner { position: relative; z-index: 3; }

.manual-shell {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: calc(var(--nav) + .35rem) 0 .85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.manual-shell__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  pointer-events: none;
  transform: scale(1.08);
  filter: saturate(1.3) contrast(1.08) brightness(1.06);
}
.manual-shell__bg--a {
  opacity: .72;
  animation: manualBgA 16s ease-in-out infinite alternate;
  mask-image: linear-gradient(105deg, #000 0%, #000 36%, transparent 66%);
  -webkit-mask-image: linear-gradient(105deg, #000 0%, #000 36%, transparent 66%);
}
.manual-shell__bg--b {
  opacity: .68;
  animation: manualBgB 13s ease-in-out infinite alternate;
  mask-image: linear-gradient(105deg, transparent 34%, #000 64%, #000 100%);
  -webkit-mask-image: linear-gradient(105deg, transparent 34%, #000 64%, #000 100%);
}
@keyframes manualBgA {
  from { transform: scale(1.08) translate(0,0); }
  to { transform: scale(1.15) translate(-2%,-1.5%); }
}
@keyframes manualBgB {
  from { transform: scale(1.09) translate(0,0); }
  to { transform: scale(1.15) translate(2%,1.2%); }
}
.manual-shell__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2,4,10,.62) 0%, rgba(2,4,10,.35) 30%, rgba(2,4,10,.72) 100%),
    radial-gradient(50% 40% at 12% 50%, rgba(255,77,42,.18), transparent 60%),
    radial-gradient(50% 40% at 88% 45%, rgba(0,240,224,.16), transparent 60%);
}
.manual-shell__life {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.ml-orb {
  position: absolute; border-radius: 50%; mix-blend-mode: screen;
}
.ml-orb--e {
  width: 36vmin; height: 36vmin; left: -5%; top: 20%;
  background: radial-gradient(circle, rgba(255,90,30,.48), transparent 68%);
  animation: mlOrbA 7s ease-in-out infinite alternate;
}
.ml-orb--c {
  width: 40vmin; height: 40vmin; right: -6%; bottom: 8%;
  background: radial-gradient(circle, rgba(0,240,224,.42), transparent 68%);
  animation: mlOrbB 9s ease-in-out infinite alternate;
}
.ml-orb--g {
  width: 22vmin; height: 22vmin; left: 46%; top: 8%;
  background: radial-gradient(circle, rgba(255,193,74,.38), transparent 70%);
  animation: mlOrbC 5.5s ease-in-out infinite alternate;
}
@keyframes mlOrbA { to { transform: translate(8%,-6%) scale(1.15); } }
@keyframes mlOrbB { to { transform: translate(-7%,5%) scale(1.12); } }
@keyframes mlOrbC { to { transform: translate(4%,10%) scale(1.2); } }
.ml-beam {
  position: absolute; width: 2px; height: 55%; top: 22%;
  background: linear-gradient(180deg, transparent, currentColor, transparent);
  animation: mlBeam 2.6s ease-in-out infinite;
}
.ml-beam--l { left: 10%; color: #ff6a2a; box-shadow: 0 0 16px #ff6a2a; }
.ml-beam--r { right: 12%; color: #00f0e0; box-shadow: 0 0 16px #00f0e0; animation-delay: 1s; }
@keyframes mlBeam {
  0%,100% { opacity: .2; transform: scaleY(.75); }
  50% { opacity: .75; transform: scaleY(1); }
}
.ml-hex {
  position: absolute; inset: -10%; opacity: .14;
  background-image: radial-gradient(circle, rgba(255,140,60,.55) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(0,240,224,.4) 0 1px, transparent 2px);
  background-size: 36px 36px, 52px 52px;
  background-position: 0 0, 18px 26px;
  animation: mlHex 18s linear infinite;
}
@keyframes mlHex { to { transform: translate(-36px,-52px); } }
.ml-scan {
  position: absolute; left: 0; right: 0; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.06), transparent);
  animation: mlScan 5.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
@keyframes mlScan {
  0% { top: -20%; opacity: 0; }
  20% { opacity: .7; }
  100% { top: 110%; opacity: 0; }
}
.ml-drone {
  position: absolute; width: 8px; height: 8px;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: #ff6a2a;
  box-shadow: 0 0 12px #ff6a2a;
  animation: mlDrone 7s ease-in-out infinite;
  opacity: .75;
}
.ml-drone.d1 { left: 8%; top: 35%; }
.ml-drone.d2 { left: 18%; top: 58%; background: #ffc14a; box-shadow: 0 0 12px #ffc14a; animation-delay: .6s; }
.ml-drone.d3 { left: 72%; top: 28%; background: #00f0e0; box-shadow: 0 0 12px #00f0e0; animation-delay: 1.2s; }
.ml-drone.d4 { left: 85%; top: 52%; background: #00f0e0; box-shadow: 0 0 12px #00f0e0; animation-delay: 1.8s; }
.ml-drone.d5 { left: 42%; top: 70%; background: #ffc14a; box-shadow: 0 0 12px #ffc14a; animation-delay: 2.4s; }
.ml-drone.d6 { left: 55%; top: 22%; animation-delay: 3s; }
@keyframes mlDrone {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  50% { transform: translate(18px,-22px) rotate(180deg); }
}
.ml-spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px currentColor; opacity: 0;
  animation: mlSpark 4.2s ease-in-out infinite;
}
.ml-spark.s1 { left:12%; bottom:14%; color:#ff6a2a; }
.ml-spark.s2 { left:28%; bottom:24%; color:#ffc14a; animation-delay:.5s; }
.ml-spark.s3 { left:48%; bottom:12%; color:#ffe9c2; animation-delay:1s; }
.ml-spark.s4 { left:62%; bottom:28%; color:#00f0e0; animation-delay:1.5s; }
.ml-spark.s5 { left:78%; bottom:16%; color:#7dfff4; animation-delay:2s; }
.ml-spark.s6 { left:90%; bottom:32%; color:#00f0e0; animation-delay:2.5s; }
@keyframes mlSpark {
  0% { transform: translate(0,0) scale(.3); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(10px,-36vh) scale(0); opacity: 0; }
}

.manual-shell__inner {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  height: 100%;
  gap: 0;
  overflow: hidden;
}

/* ===== Manual OPS — HUD técnico + números hero ===== */
.manual-shell {
  padding: calc(var(--nav) + .4rem) 0 .9rem;
}
.manual-shell__inner {
  justify-content: center;
}
.manual-deck {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: none;
  gap: .7rem;
  min-height: 0;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
  align-content: start;
  align-items: stretch;
}

.op {
  --oc: #ff6a2a;
  --og: rgba(255,90,30,.55);
  --oin: #0a101c;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .42rem;
  min-height: 0;
  height: 100%;
  padding: .72rem .75rem .6rem;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  border: 1px solid color-mix(in srgb, var(--oc) 62%, #fff 12%);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--oc) 12%, #070b14) 0%, #050910 42%, #03060c 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 -10px 22px rgba(0,0,0,.45) inset,
    3px 0 0 color-mix(in srgb, var(--oc) 55%, transparent) inset,
    0 5px 0 #010308,
    0 14px 28px rgba(0,0,0,.55),
    0 0 22px var(--og);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  animation: opIn .5s cubic-bezier(.2,.8,.2,1) both;
}
.op--ember { --oc: #ff6a2a; --og: rgba(255,90,30,.45); animation-delay: .02s; }
.op--ember2 { --oc: #ff8a45; --og: rgba(255,120,50,.42); animation-delay: .06s; }
.op--gold { --oc: #ffc14a; --og: rgba(255,193,74,.45); animation-delay: .1s; }
.op--gold2 { --oc: #ffd36a; --og: rgba(255,210,100,.4); animation-delay: .14s; }
.op--cyan { --oc: #00f0e0; --og: rgba(0,240,224,.4); animation-delay: .18s; }
.op--cyan2 { --oc: #3aa0ff; --og: rgba(58,160,255,.4); animation-delay: .22s; }
@keyframes opIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.op:hover, .op:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--oc) 90%, #fff);
  box-shadow:
    0 1px 0 rgba(255,255,255,.22) inset,
    0 -10px 22px rgba(0,0,0,.38) inset,
    3px 0 0 color-mix(in srgb, var(--oc) 75%, transparent) inset,
    0 6px 0 #010308,
    0 18px 34px rgba(0,0,0,.58),
    0 0 36px var(--og);
  outline: none;
  z-index: 2;
}
.op:hover .op__bg img { transform: scale(1.08); }
.op:hover .op__viz img { transform: scale(1.05); }
.op:hover .op__wm span { opacity: .38; transform: translate(4%, -2%) scale(1.04); }
.op:hover .op__idx-num { letter-spacing: .02em; }

.op__bg { position: absolute; inset: 0; z-index: 0; }
.op__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform .45s ease;
  animation: opKen 16s ease-in-out infinite alternate;
  filter: saturate(1.2) contrast(1.12) brightness(.78);
}
@keyframes opKen {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate(-1%, -.8%); }
}
.op__mesh {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(185deg, rgba(2,5,12,.62) 0%, rgba(2,5,12,.22) 28%, rgba(2,5,12,.5) 58%, rgba(2,5,12,.88) 100%),
    linear-gradient(115deg, color-mix(in srgb, var(--oc) 32%, transparent), transparent 52%);
}
.op__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--oc) 35%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.op__glow {
  position: absolute; inset: -15%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--oc) 42%, transparent), transparent 44%);
  animation: opGlow 3.2s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes opGlow {
  0%,100% { opacity: .4; }
  50% { opacity: .8; }
}
.op__wm {
  position: absolute;
  right: -.04em;
  top: -.12em;
  z-index: 2;
  pointer-events: none;
  line-height: .78;
  user-select: none;
}
.op__wm span {
  display: block;
  font-family: var(--font-d);
  font-weight: 900;
  font-size: clamp(5.2rem, 9.5vw, 7.2rem);
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 2px color-mix(in srgb, var(--oc) 78%, #fff 18%);
  text-shadow:
    0 0 34px var(--og),
    0 10px 0 rgba(0,0,0,.28);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--oc) 70%, #fff) 0%,
    color-mix(in srgb, var(--oc) 28%, transparent) 42%,
    transparent 78%
  );
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .28;
  transition: opacity .25s ease, transform .35s ease;
}
.op__edge {
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 3px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--oc), transparent);
  box-shadow: 0 0 12px var(--og);
}
.op__frame { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.op__frame i {
  position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--oc);
  box-shadow: 0 0 10px var(--og);
}
.op__frame i:nth-child(1) { top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.op__frame i:nth-child(2) { top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.op__frame i:nth-child(3) { bottom: 5px; left: 5px; border-right: 0; border-top: 0; }
.op__frame i:nth-child(4) { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }

.op__head, .op__txt, .op__viz, .op__foot { position: relative; z-index: 3; }

.op__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .6rem;
}
.op__idx {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--oc) 78%, #fff) 0%,
      var(--oc) 32%,
      color-mix(in srgb, var(--oc) 55%, #1a0804) 68%,
      color-mix(in srgb, var(--oc) 35%, #050208) 100%);
  border: 1px solid color-mix(in srgb, var(--oc) 70%, #000);
  box-shadow:
    0 1px 0 rgba(255,255,255,.28) inset,
    0 -3px 6px rgba(0,0,0,.4) inset,
    0 5px 0 rgba(0,0,0,.55),
    0 8px 16px rgba(0,0,0,.45),
    0 0 0 1px rgba(0,0,0,.45),
    0 0 20px var(--og);
  animation: opIdxPulse 2.6s ease-in-out infinite;
}
@keyframes opIdxPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
.op__idx::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.38);
  pointer-events: none;
  opacity: .7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset;
}
.op__idx-lab { display: none; }
.op__idx-num {
  position: relative; z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  color: #fff8f2;
  text-shadow:
    0 1px 0 rgba(0,0,0,.55),
    0 0 10px rgba(0,0,0,.35);
  transition: letter-spacing .25s ease;
}
.op--cyan .op__idx-num,
.op--cyan2 .op__idx-num { color: #f2fffd; }

.op__title { min-width: 0; }
.op__title em {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .18em;
  font-weight: 800;
  color: #fff;
  margin-bottom: .28rem;
  padding: .2rem .48rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  background: linear-gradient(90deg, var(--oc), color-mix(in srgb, var(--oc) 35%, transparent));
  box-shadow: 0 0 16px var(--og);
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.op__title h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  letter-spacing: .03em;
  line-height: 1.05;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0,0,0,.95),
    0 0 20px rgba(0,0,0,.75),
    0 0 28px var(--og);
}
.op__tag {
  flex-shrink: 0;
  align-self: start;
  font-family: var(--font-d);
  font-size: .5rem;
  letter-spacing: .12em;
  font-weight: 900;
  color: #140806;
  padding: .42rem .58rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  background: linear-gradient(145deg, #fff 0%, var(--oc) 55%, color-mix(in srgb, var(--oc) 70%, #000));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 3px 0 rgba(0,0,0,.45),
    0 0 16px var(--og);
  animation: opTagBlink 2.8s ease-in-out infinite;
}
@keyframes opTagBlink {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 3px 0 rgba(0,0,0,.45), 0 0 16px var(--og); }
  50% { box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 3px 0 rgba(0,0,0,.45), 0 0 28px var(--og); }
}
.op--cyan .op__tag,
.op--cyan2 .op__tag { color: #041018; }

.op__txt {
  margin: 0;
  width: 100%;
  color: #f4f8ff;
  font-size: clamp(.88rem, 1.2vw, 1rem);
  line-height: 1.4;
  font-weight: 600;
  max-width: none;
  padding: .5rem .6rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  border: 1px solid color-mix(in srgb, var(--oc) 28%, rgba(255,255,255,.12));
  background:
    linear-gradient(135deg, rgba(4,10,20,.88), rgba(2,6,14,.82)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,.015) 2px, rgba(255,255,255,.015) 3px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--oc) 18%, transparent) inset,
    0 8px 18px rgba(0,0,0,.35);
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
  backdrop-filter: blur(8px);
}
.op__txt b {
  color: #fff;
  font-weight: 800;
  padding: .05rem .28rem;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
  background: linear-gradient(135deg, var(--oc), color-mix(in srgb, var(--oc) 55%, #fff));
  box-shadow: 0 0 12px var(--og);
  text-shadow: 0 1px 1px rgba(0,0,0,.45);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.op__viz {
  position: relative;
  flex: 1 1 auto;
  min-height: 168px;
  height: auto;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  border: 1px solid color-mix(in srgb, var(--oc) 58%, #fff 10%);
  background: #050910;
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 -8px 16px rgba(0,0,0,.45) inset,
    0 4px 0 rgba(0,0,0,.35),
    0 0 18px var(--og);
}
.op__viz::before {
  content: "";
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 28px; height: 2px;
  background: var(--oc);
  box-shadow: 0 0 8px var(--og), 36px 0 0 color-mix(in srgb, var(--oc) 45%, transparent);
  pointer-events: none;
}
.op__viz img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform .4s ease;
  animation: vizDrift 12s ease-in-out infinite alternate;
  filter: saturate(1.18) contrast(1.08) brightness(1.04);
}
@keyframes vizDrift {
  from { transform: scale(1.02) translate(0,0); }
  to { transform: scale(1.06) translate(-.6%, -.4%); }
}
.op__viz-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 48%, transparent 62%);
  background-size: 220% 100%;
  animation: vizSheen 4.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
@keyframes vizSheen {
  0% { background-position: 130% 0; }
  100% { background-position: -40% 0; }
}
.op__viz::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(2,5,12,.55));
}
.op__viz-cap {
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .45rem;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 1rem);
  font-family: var(--font-d);
  font-size: .48rem;
  letter-spacing: .14em;
  font-weight: 900;
  color: #0a0604;
  padding: .4rem .65rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  border: 1px solid rgba(255,255,255,.35);
  background: linear-gradient(135deg, #fff 0%, var(--oc) 45%, color-mix(in srgb, var(--oc) 75%, #000));
  box-shadow:
    0 1px 0 rgba(255,255,255,.5) inset,
    0 3px 0 rgba(0,0,0,.45),
    0 0 18px var(--og);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  animation: capPulse 2.6s ease-in-out infinite;
}
@keyframes capPulse {
  0%, 100% { filter: brightness(1); transform: translateY(0); }
  50% { filter: brightness(1.08); transform: translateY(-1px); }
}

.op__foot {
  display: flex;
  align-items: center;
  gap: .45rem;
}
.op-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
  box-shadow: inset 0 0 4px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.06);
}
.op-bar i {
  display: block;
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, transparent, var(--oc), #fff);
  box-shadow: 0 0 10px var(--og);
  animation: barRun 2.2s ease-in-out infinite;
}
@keyframes barRun {
  0%,100% { width: 52%; }
  50% { width: 92%; filter: brightness(1.3); }
}
.op__foot strong {
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .14em;
  font-weight: 900;
  color: #0a0604;
  padding: .34rem .58rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  border: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, #fff, var(--oc));
  box-shadow: 0 0 12px var(--og), 0 2px 0 rgba(0,0,0,.35);
  white-space: nowrap;
}

/* ===== TABLET ===== */
@media (max-width: 1100px) and (min-width: 721px) {
  .manual-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .manual-page .stage {
    height: auto !important;
    min-height: auto;
    overflow: visible !important;
  }
  .manual-page .foot { display: block; }
  .manual-shell {
    height: auto !important;
    max-height: none !important;
    padding: calc(var(--nav) + .85rem) 0 2.5rem;
    overflow: visible !important;
  }
  .manual-shell__inner {
    height: auto !important;
    overflow: visible !important;
    justify-content: flex-start;
    width: min(100% - 1.5rem, var(--max));
  }
  .manual-deck {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: .85rem;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .op {
    padding: .8rem .85rem .7rem;
    gap: .55rem;
    min-height: 0;
  }
  .op__idx { width: 54px; height: 54px; min-width: 0; padding: 0; }
  .op__idx-num { font-size: 1.55rem; }
  .op__wm span { font-size: 5.6rem; opacity: .26; }
  .op__title em { font-size: .44rem; letter-spacing: .16em; }
  .op__title h2 { font-size: 1.28rem; }
  .op__tag { font-size: .52rem; padding: .42rem .62rem; }
  .op__txt {
    font-size: 1rem;
    line-height: 1.45;
    max-width: none;
  }
  .op__viz { height: 155px; }
  .op__viz-cap { font-size: .5rem; padding: .42rem .7rem; }
  .op__foot strong { font-size: .45rem; padding: .35rem .6rem; }
}

/* ===== MOBILE (cards empilhados + scroll ate o fim) ===== */
@media (max-width: 720px) {
  html.manual-scroll,
  body.manual-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .manual-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-top: 0;
  }
  .manual-page .stage {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .manual-page .foot { display: block; }
  .manual-shell {
    height: auto !important;
    max-height: none !important;
    padding: calc(var(--nav) + .85rem) 0 3rem;
    overflow: visible !important;
  }
  .manual-shell__bg { opacity: .4; filter: saturate(1.15) brightness(.85); }
  .manual-shell__inner {
    height: auto !important;
    overflow: visible !important;
    justify-content: flex-start;
    width: min(100% - 1.1rem, var(--max));
    gap: 0;
  }
  .manual-deck {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto !important;
    max-height: none !important;
    gap: 1.15rem;
    overflow: visible !important;
    padding-bottom: 1.5rem;
  }

  .op {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "txt"
      "viz"
      "foot";
    padding: 1rem .95rem .85rem;
    gap: .65rem;
    height: auto;
    box-shadow:
      0 1px 0 rgba(255,255,255,.14) inset,
      0 -6px 14px rgba(0,0,0,.35) inset,
      3px 0 0 color-mix(in srgb, var(--oc) 55%, transparent) inset,
      0 6px 0 #02050a,
      0 14px 28px rgba(0,0,0,.45),
      0 0 22px var(--og);
  }
  .op__head { grid-area: head; gap: .6rem; }
  .op__txt { grid-area: txt; }
  .op__viz { grid-area: viz; }
  .op__foot { grid-area: foot; }

  .op__idx { width: 56px; height: 56px; min-width: 0; padding: 0; }
  .op__idx-num { font-size: 1.65rem; }
  .op__wm span { font-size: 6.2rem; opacity: .3; }
  .op__title em {
    font-size: .46rem;
    letter-spacing: .14em;
  }
  .op__title h2 {
    font-size: 1.35rem;
    letter-spacing: .02em;
  }
  .op__tag {
    font-size: .54rem;
    padding: .44rem .62rem;
    align-self: start;
  }
  .op__txt {
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: none;
    padding: .55rem .65rem;
  }
  .op__viz {
    height: 190px;
    border-width: 1.5px;
  }
  .op__viz-cap {
    font-size: .52rem;
    letter-spacing: .12em;
    left: .55rem;
    bottom: .55rem;
    padding: .45rem .7rem;
  }
  .op-bar { height: 5px; }
  .op__foot strong {
    font-size: .48rem;
    letter-spacing: .12em;
    padding: .38rem .65rem;
  }

  .ml-beam,
  .ml-drone { display: none; }
  .manual-shell__life .ml-spark { display: none; }
}

/* Landscape phones / small tablets - 2 colunas + scroll completo */
@media (max-width: 900px) and (orientation: landscape) {
  body.manual-page,
  .manual-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  .manual-page .stage,
  .manual-shell,
  .manual-shell__inner {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .manual-shell { padding: calc(var(--nav) + .55rem) 0 2.5rem; }
  .manual-deck {
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 1.25rem;
  }
  .op { padding: .55rem .6rem .5rem; gap: .35rem; }
  .op__viz { height: 110px; }
  .op__title h2 { font-size: 1rem; }
  .op__txt { font-size: .85rem; padding: .35rem .45rem; }
  .op__viz-cap { font-size: .4rem; padding: .32rem .5rem; }
  .op__idx { width: 42px; height: 42px; min-width: 0; padding: 0; }
  .op__idx-num { font-size: 1.15rem; }
  .op__wm span { font-size: 4rem; opacity: .14; }
}

@media (max-width: 420px) {
  .manual-shell { padding: calc(var(--nav) + .7rem) 0 2.75rem; }
  .op {
    padding: .85rem .8rem .75rem;
    gap: .55rem;
  }
  .op__head {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .op__idx { grid-row: 1 / 3; align-self: center; width: 52px; height: 52px; min-width: 0; }
  .op__title { grid-column: 2; }
  .op__tag {
    grid-column: 2;
    justify-self: start;
    margin-top: .15rem;
  }
  .op__wm span { font-size: 5.4rem; }
  .op__title h2 { font-size: 1.2rem; }
  .op__txt { font-size: 1rem; }
  .op__viz { height: 160px; }
}

@media (min-width: 721px) and (max-height: 780px) {
  .manual-shell { padding: calc(var(--nav) + .3rem) 0 .6rem; }
  .manual-deck { gap: .45rem; }
  .op { padding: .5rem .55rem .45rem; gap: .35rem; }
  .op__viz { height: clamp(110px, 14vh, 135px); }
  .op__idx { width: 42px; height: 42px; min-width: 0; padding: 0; }
  .op__idx-num { font-size: 1.15rem; }
  .op__wm span { font-size: 4.2rem; opacity: .14; }
  .op__title h2 { font-size: 1.05rem; }
  .op__txt { font-size: .82rem; padding: .35rem .45rem; }
  .op__tag { font-size: .4rem; padding: .3rem .45rem; }
  .op__viz-cap { font-size: .4rem; }
}

.rank-board { padding: 1.75rem 0 2.75rem; }
.podium-3d {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: .7rem; align-items: end;
  margin-bottom: 1.5rem; perspective: 1200px;
}
.pod3 {
  position: relative; display: grid; justify-items: center; text-align: center; gap: .45rem;
  padding: 1.1rem .7rem .85rem; min-height: 210px;
  border: 1px solid rgba(255,255,255,.1); clip-path: var(--clip);
  background: linear-gradient(180deg, rgba(16,22,38,.95), rgba(8,12,22,.98));
  box-shadow: 0 20px 40px rgba(0,0,0,.4); transform: rotateX(4deg);
}
.pod3--gold {
  min-height: 250px; padding-top: 1.35rem; border-color: rgba(255,193,74,.45);
  background: linear-gradient(180deg, rgba(40,28,12,.96), rgba(10,12,20,.98));
  box-shadow: 0 24px 50px rgba(0,0,0,.45), 0 0 40px rgba(255,193,74,.15);
  transform: rotateX(4deg) translateY(-14px) scale(1.03);
}
.pod3--silver { border-color: rgba(180,200,220,.25); }
.pod3--bronze { border-color: rgba(255,77,42,.28); }
.pod3__medal {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-d); font-size: .85rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
}
.pod3__medal--gold {
  width: auto; padding: 0 .65rem; gap: .3rem; display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #ffc14a, #ff4d2a); color: #1a0903; border: 0;
}
.pod3__medal--gold svg { width: 14px; height: 14px; }
.pod3 h3 { font-size: .95rem; margin: .15rem 0 0; word-break: break-word; }
.pod3__elo { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--font-d); font-size: 1.05rem; color: var(--ember2); }
.pod3__elo svg { width: 14px; height: 14px; }
.pod3__record { margin: 0; color: var(--muted); font-size: .82rem; }
.pod3__plinth {
  margin-top: .35rem; width: 100%; height: 36px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1); font-family: var(--font-d); font-size: .7rem; letter-spacing: .14em; color: var(--muted);
}
.pod3__plinth--gold {
  height: 52px; background: linear-gradient(180deg, rgba(255,193,74,.28), rgba(255,77,42,.08));
  border-color: rgba(255,193,74,.35); color: var(--ember2);
}
.pod3__empty { display: grid; place-items: center; gap: .45rem; padding: 1.5rem .5rem; color: var(--muted); }
.pod3__empty svg { width: 28px; height: 28px; opacity: .5; }
.rank-table { display: grid; gap: .45rem; }
.rank-table__head {
  display: none; grid-template-columns: 64px 1.5fr .7fr .8fr; gap: .75rem; padding: 0 .95rem .35rem;
  color: var(--muted); font-family: var(--font-d); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
}
.rank-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .75rem; align-items: center;
  padding: .85rem .95rem; border: 1px solid rgba(255,255,255,.08); background: rgba(10,16,30,.9);
  clip-path: var(--clip-sm); box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: .15s;
}
.rank-line:hover { transform: translateY(-2px); border-color: rgba(0,240,224,.25); }
.rank-line--1 { border-color: rgba(255,193,74,.35); background: linear-gradient(90deg, rgba(255,193,74,.1), rgba(10,16,30,.92)); }
.rank-line__pos { font-family: var(--font-d); color: var(--muted); }
.rank-line__badge {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; font-size: .8rem;
}
.rank-line--1 .rank-line__badge { background: linear-gradient(135deg, #ffc14a, #ff4d2a); border: 0; color: #1a0903; }
.rank-line__who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.rank-line__avatar {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.15); background: #05070f;
}
.rank-line__avatar.ember { box-shadow: 0 0 14px rgba(255,77,42,.35); border-color: rgba(255,77,42,.4); }
.rank-line__avatar.cyan { box-shadow: 0 0 14px rgba(0,240,224,.35); border-color: rgba(0,240,224,.4); }
.rank-line__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-line__elo { font-family: var(--font-d); color: var(--ember2); font-size: 1rem; }
.rank-line__record { display: none; gap: .45rem; justify-content: flex-end; }
.rank-line__record .win { color: var(--cyan); font-weight: 700; }
.rank-line__record .loss { color: var(--muted); }
.rank-empty {
  display: grid; justify-items: center; gap: .65rem; text-align: center; padding: 2.5rem 1rem;
  border: 1px dashed rgba(255,255,255,.15);
}

.premium-section { padding: 1.5rem 0 2.5rem; }
.plan-compare { display: grid; gap: 1rem; }
.plan { position: relative; overflow: hidden; padding: 1.35rem 1.2rem; }

/* ===== PREMIUM SHOWCASE — HUD tech angular (3 planos) ===== */
.premium-page .foot { display: none; }
.premium-page .space-bg { opacity: .06; }

.premx {
  --premx-clip: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  --premx-chip: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --premx-hex: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + .65rem) 1rem .85rem;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.premx__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.45) brightness(.62) contrast(1.12);
  transform: scale(1.05);
  animation: ken 24s ease-in-out infinite alternate;
}
.premx__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(4,8,16,.72) 0%, rgba(28,10,4,.22) 45%, rgba(4,12,18,.78) 100%),
    radial-gradient(70% 55% at 50% 0%, rgba(255,160,50,.28), transparent 65%),
    radial-gradient(50% 40% at 85% 70%, rgba(0,220,210,.14), transparent 60%);
}
.premx__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14;
  background-image:
    linear-gradient(rgba(0,240,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,40,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 15%, transparent 72%);
}
.premx__orb {
  position: absolute; z-index: 1; pointer-events: none; border-radius: 50%;
  filter: blur(4px); mix-blend-mode: screen; opacity: .7;
}
.premx__orb--a {
  width: 46vmin; height: 46vmin; left: -10%; top: 10%;
  background: radial-gradient(circle, rgba(255,140,40,.55), transparent 68%);
  animation: mlOrbA 9s ease-in-out infinite alternate;
}
.premx__orb--b {
  width: 40vmin; height: 40vmin; right: -8%; bottom: 6%;
  background: radial-gradient(circle, rgba(0,240,224,.4), transparent 68%);
  animation: mlOrbB 11s ease-in-out infinite alternate;
}

.premx__wrap {
  position: relative; z-index: 2;
  width: min(100%, 1180px);
  margin: auto;
  display: grid;
  gap: .85rem;
}

.premx-hero {
  text-align: center;
  display: grid;
  gap: .4rem;
  justify-items: center;
}
.premx-hero__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
  padding: .48rem 1.25rem .48rem 1.2rem;
  isolation: isolate;
  font-family: var(--font-d);
  font-size: .5rem;
  letter-spacing: .18em;
  font-weight: 800;
  color: #fff;
  background: transparent;
  border: 0;
  clip-path: polygon(0 50%, 12px 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 12px 100%);
  filter:
    drop-shadow(0 6px 0 #1a0a04)
    drop-shadow(0 10px 16px rgba(0,0,0,.45))
    drop-shadow(0 0 16px rgba(255,160,40,.4));
}
.premx-hero__tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,220,160,.18) 0%, transparent 42%, rgba(0,0,0,.35) 100%),
    linear-gradient(100deg, #3a2010 0%, #1a1018 38%, #0c1820 72%, #082028 100%);
  clip-path: inherit;
  box-shadow:
    inset 0 2px 0 rgba(255,220,160,.4),
    inset 0 -3px 0 rgba(0,0,0,.55),
    inset 0 0 12px rgba(0,0,0,.25);
}
.premx-hero__tag::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,180,60,.4) 0%, transparent 22%, transparent 78%, rgba(0,240,224,.32) 100%),
    linear-gradient(180deg, rgba(255,255,255,.1), transparent 50%);
  clip-path: polygon(0 50%, 11px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 11px 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.premx-hero__tag-ico {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffc14a;
  margin-block: 2px;
}
.premx-hero__tag-ring {
  position: absolute;
  inset: -2px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(145deg, #ffe08a, #ff6a2a 55%, #00e8d8);
  opacity: .95;
  box-shadow:
    0 0 12px rgba(255,160,40,.55),
    0 3px 0 rgba(40,12,4,.65);
}
.premx-hero__tag-core {
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    radial-gradient(circle at 40% 28%, rgba(255,240,200,.4), transparent 55%),
    linear-gradient(160deg, #2a1810 0%, #0e0a10 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,220,160,.3),
    inset 0 -3px 6px rgba(0,0,0,.6);
}
.premx-hero__tag-ico svg {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  display: block;
  filter: drop-shadow(0 0 4px rgba(255,180,40,.7));
}
.premx-hero__tag-txt {
  position: relative;
  z-index: 1;
  padding-right: .4rem;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.75);
  white-space: nowrap;
}
.premx-hero__tag-txt b {
  font-weight: 900;
  color: #ffd06a;
  text-shadow:
    0 0 10px rgba(255,180,40,.55),
    0 1px 2px rgba(0,0,0,.65);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  filter: none;
}
.premx-hero__tag-rail { display: none; }
.premx-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.65);
  line-height: 1.15;
  letter-spacing: .03em;
}
.premx-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffe08a, #ff6a2a 50%, #7af8ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.premx-hero p {
  margin: 0;
  color: #e4ebf6;
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 32rem;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.premx-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  align-items: stretch;
}

/* — Card shell: angular, layered 3D — */
.premx-card {
  --pc: #7ec8ff;
  --pc2: #3aa0ff;
  --pg: rgba(58,160,255,.35);
  --ink: #061018;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.05rem 1rem .9rem;
  overflow: hidden;
  clip-path: var(--premx-clip);
  border: 1px solid color-mix(in srgb, var(--pc) 55%, #fff 10%);
  background:
    linear-gradient(155deg, rgba(14,22,38,.97) 0%, rgba(6,10,18,.98) 55%, rgba(4,8,14,.99) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 -1px 0 rgba(0,0,0,.4) inset,
    0 8px 0 color-mix(in srgb, var(--pc2) 35%, #02050a),
    0 18px 40px rgba(0,0,0,.55),
    0 0 28px var(--pg);
  transform: translateZ(0);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, filter .28s ease;
}
.premx-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--pc) 90%, #fff);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 10px 0 color-mix(in srgb, var(--pc2) 45%, #02050a),
    0 26px 48px rgba(0,0,0,.58),
    0 0 42px var(--pg);
  filter: brightness(1.04);
  z-index: 3;
}
.premx-card__plate {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pc) 12%, transparent), transparent 38%),
    radial-gradient(90% 55% at 50% -10%, var(--pg), transparent 60%);
  opacity: .95;
}
.premx-card__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%);
  background-size: 240% 100%;
  animation: vizSheen 6s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
.premx-card__glow {
  position: absolute; inset: -30% -20% auto; height: 55%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 0%, var(--pg), transparent 70%);
  opacity: .9;
}
.premx-card__bolt {
  position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--pc); border-style: solid;
  filter: drop-shadow(0 0 6px var(--pg));
}
.premx-card__bolt--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.premx-card__bolt--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.premx-card--free {
  --pc: #8ad4ff;
  --pc2: #2f7fd4;
  --pg: rgba(80,170,255,.32);
}
.premx-card--month {
  --pc: #ffc14a;
  --pc2: #ff4d2a;
  --pg: rgba(255,120,40,.48);
  border-color: rgba(255,193,74,.65);
  background:
    linear-gradient(155deg, rgba(42,18,8,.98) 0%, rgba(18,10,8,.98) 45%, rgba(8,8,14,.99) 100%);
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255,220,160,.2) inset,
    0 10px 0 #3a1408,
    0 22px 44px rgba(0,0,0,.58),
    0 0 36px rgba(255,120,40,.35);
}
.premx-card--month:hover {
  transform: translateY(-10px);
}
.premx-card--year {
  --pc: #5dffb0;
  --pc2: #00c8b8;
  --pg: rgba(0,240,200,.38);
  border-color: rgba(93,255,176,.45);
  background:
    linear-gradient(155deg, rgba(6,28,28,.98) 0%, rgba(6,14,22,.98) 50%, rgba(4,8,14,.99) 100%);
}

.premx-card__ribbon {
  position: absolute; top: 14px; right: -2px; z-index: 4;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .14em; font-weight: 900;
  color: #1a0a04;
  padding: .38rem .7rem .38rem .55rem;
  background: linear-gradient(120deg, #fff, #ffc14a 38%, #ff4d2a);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
  box-shadow: 0 0 18px rgba(255,140,40,.5), 0 4px 0 rgba(0,0,0,.25);
}
.premx-card__ribbon--save {
  color: #031410;
  background: linear-gradient(120deg, #e8fff6, #5dffb0 45%, #00e0d0);
  box-shadow: 0 0 18px rgba(0,240,200,.4), 0 4px 0 rgba(0,0,0,.25);
}

.premx-card__head,
.premx-card__list,
.premx-card__foot { position: relative; z-index: 1; }

.premx-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .55rem .7rem;
  align-items: start;
}
.premx-card__seal {
  position: relative;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  clip-path: var(--premx-hex);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pc) 55%, #fff), var(--pc2));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--pc) 40%, transparent),
    0 0 22px var(--pg),
    0 6px 0 rgba(0,0,0,.35);
  grid-row: span 2;
}
.premx-card__seal i {
  position: absolute; inset: 3px;
  clip-path: var(--premx-hex);
  background: linear-gradient(160deg, #121820, #060a10);
}
.premx-card__seal svg {
  position: relative; z-index: 1;
  width: 22px; height: 22px;
  color: var(--pc);
  filter: drop-shadow(0 0 8px var(--pg));
}
.premx-card__titles { min-width: 0; padding-top: .1rem; }
.premx-card__kicker {
  display: block;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .16em; font-weight: 800;
  color: var(--pc);
  text-shadow: 0 0 12px var(--pg);
  margin-bottom: .2rem;
}
.premx-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  color: #fff;
  letter-spacing: .04em;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  line-height: 1.1;
}
.premx-card__price {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: .4rem;
  margin: .1rem 0 0;
  padding: .45rem .65rem;
  background: linear-gradient(120deg, rgba(0,0,0,.45), rgba(0,0,0,.2));
  border: 1px solid color-mix(in srgb, var(--pc) 30%, transparent);
  clip-path: var(--premx-chip);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.premx-card__price strong {
  font-family: var(--font-d);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: .02em;
  background: linear-gradient(95deg, #fff 10%, var(--pc) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.premx-card__price span {
  font-family: var(--font-d); font-size: .48rem; letter-spacing: .12em;
  color: #9eb0c8; text-transform: uppercase; font-weight: 700;
}
.premx-card__eq {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-d); font-size: .42rem; letter-spacing: .1em; font-weight: 700;
  color: #5dffb0;
  text-shadow: 0 0 10px rgba(93,255,176,.35);
}
.premx-card__lead {
  grid-column: 1 / -1;
  margin: 0;
  color: #d5e0f2;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}

.premx-card__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .4rem;
  flex: 1;
}
.premx-card__list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .55rem;
  align-items: center;
  padding: .45rem .5rem;
  background: linear-gradient(120deg, rgba(0,0,0,.4), rgba(8,12,20,.35));
  border: 1px solid color-mix(in srgb, var(--pc) 18%, rgba(255,255,255,.06));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.premx-card__list li:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--pc) 55%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--pc) 12%, rgba(0,0,0,.45)), rgba(8,12,20,.4));
}
.premx-card__ico {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--pc);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pc) 30%, #101820), #080c14);
  border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent);
  clip-path: var(--premx-hex);
  box-shadow: 0 0 14px var(--pg), inset 0 1px 0 rgba(255,255,255,.12);
}
.premx-card__ico svg { width: 15px; height: 15px; display: block; }
.premx-card__txt { min-width: 0; }
.premx-card__list strong {
  display: block;
  font-family: var(--font-u);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: #f5f8ff;
  line-height: 1.2;
  margin-bottom: .08rem;
}
.premx-card__list small {
  display: block;
  font-size: .88rem;
  color: #a8b8d0;
  font-weight: 600;
  line-height: 1.25;
}

.premx-card__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: .15rem;
}
.premx-card__badge {
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .14em; font-weight: 900;
  color: var(--ink);
  padding: .4rem .7rem;
  background: linear-gradient(120deg, #fff, var(--pc));
  clip-path: var(--premx-chip);
  box-shadow: 0 0 16px var(--pg), 0 3px 0 rgba(0,0,0,.3);
}
.premx-card__badge--hot { color: #1a0a04; }
.premx-card__badge--year { color: #031410; }

@media (max-width: 1040px) {
  .premx-deck { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .premx-card--month { transform: none; }
  .premx-card--month:hover { transform: translateY(-6px); }
  .premx { padding: calc(var(--nav) + .75rem) .85rem 1.35rem; }
  .premx__wrap { margin: 0 auto; width: min(100%, 440px); }
}
@media (max-height: 860px) and (min-width: 1041px) {
  .premx { padding-top: calc(var(--nav) + .4rem); padding-bottom: .55rem; }
  .premx__wrap { gap: .55rem; }
  .premx-card { padding: .85rem .85rem .7rem; gap: .5rem; }
  .premx-card__list { gap: .28rem; }
  .premx-card__list li { padding: .32rem .4rem; }
  .premx-card__list strong { font-size: .92rem; }
  .premx-card__list small { font-size: .8rem; }
  .premx-card__seal { width: 44px; height: 44px; }
  .premx-card__seal svg { width: 18px; height: 18px; }
  .premx-card__lead { font-size: .88rem; }
  .premx-hero h1 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
  .premx-hero p { font-size: .92rem; }
}

/* legado (páginas antigas / sucesso) */
.prem-shell { position: relative; min-height: 100dvh; margin-top: calc(var(--nav) * -1); padding: calc(var(--nav) + 1.5rem) 0 3rem; overflow: hidden; }
.prem-shell__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); filter: saturate(1.2) brightness(.55); }
.prem-shell__veil { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(2,4,10,.92), rgba(2,4,10,.85)); }
.prem-shell__inner { position: relative; z-index: 1; display: grid; gap: 1.25rem; }
.prem-hero { text-align: center; }
.prem-deck { display: grid; gap: 1rem; }
.prem-card { padding: 1.1rem; border: 1px solid rgba(255,193,74,.3); background: rgba(8,12,20,.95); }

.success-card {
  text-align: center; padding: 1.6rem 1.3rem; max-width: 440px; margin: 2rem auto;
  border: 1px solid rgba(255,193,74,.35); clip-path: var(--clip);
  background: linear-gradient(165deg, rgba(30,20,12,.96), rgba(8,12,22,.98));
  box-shadow: 0 0 40px rgba(255,193,74,.12), 0 24px 50px rgba(0,0,0,.45);
}
.success-actions { display: grid; gap: .65rem; margin-top: 1.1rem; }
.history-filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.history-filters label { flex: 1; min-width: 160px; }
.profile-shell { max-width: 520px; }
.section-kicker { margin: 0 0 .35rem; font-family: var(--font-d); font-size: .62rem; letter-spacing: .2em; color: var(--cyan); display: inline-flex; align-items: center; gap: .4rem; }
.page { width: min(100% - 1.25rem, var(--max)); margin: 0 auto; padding: 1.25rem 0 2.5rem; }
.auth-wrap { max-width: 440px; margin: 0 auto; }
.two-col { display: grid; gap: .85rem; }

/* legacy helpers kept for templates still using old names */
.sec-tag {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem;
  font-family: var(--font-d); font-size: .55rem; letter-spacing: .16em; color: var(--cyan);
  border: 1px solid rgba(0,240,224,.3); background: rgba(0,240,224,.08); clip-path: var(--clip-sm);
}
.sec-wrap { width: min(100% - 1.25rem, var(--max)); margin: 0 auto; }
.unit-pod {
  --s: 130px; position: relative; width: var(--s); height: var(--s); display: grid; place-items: center; z-index: 2;
}
.unit-pod--sm { --s: 112px; }
.unit-pod--xs { --s: 86px; }
.unit-pod__ring {
  position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(255,77,42,.45);
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.unit-pod--cyan .unit-pod__ring { border-color: rgba(0,240,224,.5); animation-direction: reverse; }
.unit-pod--hot .unit-pod__ring { border-color: rgba(255,193,74,.55); animation-duration: 7s; }
.unit-pod--hot img { box-shadow: 0 0 0 8px rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.55), 0 0 48px rgba(255,193,74,.55); }
.unit-pod img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18); background: #05070f;
  box-shadow: 0 0 0 8px rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.55), 0 0 36px rgba(255,77,42,.35);
  animation: floaty 3.2s ease-in-out infinite;
}
.unit-pod--cyan img { box-shadow: 0 0 0 8px rgba(0,0,0,.25), 0 18px 40px rgba(0,0,0,.55), 0 0 40px rgba(0,240,224,.4); }
.btn-ember { color: #1a0903; background: linear-gradient(160deg, #ffb070, #ff4d2a 48%, #ffc14a); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 8px 0 #7a220f, 0 16px 30px rgba(255,77,42,.45); clip-path: var(--clip); }
.btn-cyan { color: #021018; background: linear-gradient(160deg, #7af8ef, #00f0e0 42%, #3aa0ff); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 8px 0 #0a4a62, 0 16px 30px rgba(0,240,224,.4); clip-path: var(--clip); }
.btn-ghost { background: linear-gradient(160deg, #172338, #0a1220); border: 1px solid rgba(0,240,224,.35); clip-path: var(--clip); color: #eef5ff; }
.btn-lg { min-height: 54px; }
.btn-block { width: 100%; }
.cta-3d {
  --a: #ff8a4c; --b: #ffc14a; --edge: #7a220f;
  position: relative; display: inline-flex; align-items: center; gap: .85rem;
  min-width: min(100%, 240px); padding: 1rem 1.2rem 1rem 1rem; color: #1a0903;
  background: linear-gradient(145deg, var(--a), var(--b)); clip-path: var(--clip);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 0 var(--edge), 0 22px 36px rgba(0,0,0,.45);
  transform: perspective(800px) rotateX(8deg); transition: .18s;
}
.cta-3d:hover { transform: perspective(800px) rotateX(2deg) translateY(-4px) scale(1.02); }
.cta-3d--ember { }
.cta-3d--ghost {
  --a: #132033; --b: #0b1424; --edge: #050910; color: #e8f2ff;
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 14px 0 var(--edge), 0 22px 36px rgba(0,0,0,.45), 0 0 0 1px rgba(0,240,224,.3);
}
.cta-3d__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.22);
}
.cta-3d__icon svg { width: 22px; height: 22px; }
.cta-3d__text { display: grid; gap: .1rem; line-height: 1.05; }
.cta-3d__text strong { font-family: var(--font-d); font-size: .78rem; letter-spacing: .08em; }
.cta-3d__text small { font-size: .78rem; opacity: .75; font-weight: 600; }


/* ===== HEADER MOBILE (Home + Manual + resto) ===== */
@media (max-width: 900px) {
  :root { --nav: 64px; }

  .topbar {
    height: var(--nav);
    overflow: visible;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .topbar__inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    gap: 8px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  /* nav chips só no desktop largo */
  .topnav { display: none !important; }

  .logo {
    gap: .55rem;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .logo__mark {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: visible;
    background: transparent;
  }
  .logo__mark img {
    width: 42px;
    height: 42px;
    display: block;
    border-radius: 50%;
    background: transparent;
    object-fit: cover;
    clip-path: circle(50% at 50% 50%);
    filter: drop-shadow(0 0 4px rgba(255,77,42,.4)) drop-shadow(0 0 6px rgba(0,240,224,.18));
  }
  .logo__orbit { inset: -2px; }
  .logo__orbit::before,
  .logo__orbit::after { width: 4px; height: 4px; }
  .logo__ring { inset: 0; }
  .logo__pulse { inset: 11px; }
  .logo__eyebrow,
  .logo__rail { display: none !important; }
  .logo__type { min-width: 0; overflow: visible; }
  .logo__words {
    min-width: 0;
    overflow: visible;
    display: inline-flex;
    align-items: baseline;
    gap: .28rem;
  }
  .logo__sep { display: inline-block !important; }
  .logo__word--a,
  .logo__word--b {
    display: inline !important;
    font-size: 1rem;
    letter-spacing: .1em;
    white-space: nowrap;
  }

  .topbar__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }
  .topbar__sep { display: none !important; }
  .topbar__cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
  }

  .status-badge { display: none !important; }

  .sound-chip {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px;
    padding: 0 !important;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,240,224,.12) inset, 0 0 8px rgba(0,240,224,.18);
  }

  /* no mobile: Painel / Sair / Entrar / Jogar ficam no drawer */
  .tb-btn--panel,
  .tb-btn--exit,
  .tb-btn--login,
  .tb-btn--register,
  .tb-btn--play,
  .topbar__cluster--play { display: none !important; }

  .burger {
    display: inline-grid !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px;
    flex-shrink: 0;
    clip-path: none !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 2px 0 #050910, 0 4px 10px rgba(0,0,0,.35);
  }
  .burger i {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
  }
  .burger.is-open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .drawer {
    width: min(92vw, 340px);
    top: var(--nav);
  }
  .drawer-scrim { inset: var(--nav) 0 0 0; }
}

@media (max-width: 420px) {
  :root { --nav: 60px; }
  .topbar {
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }
  .topbar__actions { gap: 6px; }
  .logo__mark {
    width: 38px;
    height: 38px;
  }
  .logo__mark img { width: 38px; height: 38px; }
  .logo__word--a,
  .logo__word--b { font-size: .92rem; letter-spacing: .08em; }
}

@media (min-width: 901px) {
  .topnav { display: flex; }
  .burger { display: none; }
  .lobby-grid { grid-template-columns: repeat(3, 1fr); }
  .lobby-tools { grid-template-columns: 1fr 1fr; }
  .plan-compare { grid-template-columns: 1fr 1.1fr; }
  .dash-grid { grid-template-columns: 1.05fr .95fr; }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1.1fr .9fr; }
  .rank-table__head { display: grid; }
  .rank-line { grid-template-columns: 64px 1.5fr .7fr .8fr; }
  .rank-line__record { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}


/* ===== LORE — ASH WARS (cinematic wiki) ===== */
.lore-page {
  overflow-x: clip;
  background: #02040a;
}
.lore-page .topbar {
  background: #02040a;
  backdrop-filter: none;
  border-bottom-color: rgba(0,240,224,.35);
}
.lore-page .topbar.is-compact {
  height: var(--nav); /* altura fixa na lore — não comprime */
}
.lore-page .foot { display: none; }
.lore { position: relative; }

/* HERO */
.lore-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: grid;
  align-items: end;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + 2.5rem) 0 2.75rem;
  overflow: hidden;
}
.lore-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.08);
  filter: saturate(1.25) contrast(1.05) brightness(.72);
  animation: loreKen 22s ease-in-out infinite alternate;
}
@keyframes loreKen {
  from { transform: scale(1.08) translate(0,0); }
  to { transform: scale(1.14) translate(-1.5%, -1%); }
}
.lore-hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,4,10,.55) 0%, rgba(2,4,10,.35) 40%, rgba(2,4,10,.92) 100%),
    radial-gradient(50% 60% at 20% 40%, rgba(255,77,42,.28), transparent 60%),
    radial-gradient(45% 50% at 80% 50%, rgba(0,240,224,.18), transparent 55%);
}
.lore-hero__dust {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,193,74,.55) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(0,240,224,.4) 0 1px, transparent 2px);
  background-size: 42px 42px, 68px 68px;
  opacity: .25;
  animation: loreDust 18s linear infinite;
}
@keyframes loreDust { to { background-position: 42px -68px, -68px 42px; } }
.lore-hero__inner {
  position: relative; z-index: 1;
  max-width: 52rem;
}
.lore-hero__kicker {
  display: inline-block;
  font-family: var(--font-d);
  font-style: normal;
  font-size: .48rem;
  letter-spacing: .28em;
  color: #1a0a04;
  padding: .42rem .8rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(120deg, #fff 0%, #ffc14a 40%, #ff4d2a 100%);
  box-shadow: 0 0 28px rgba(255,140,40,.45);
  animation: loreKick 3s ease-in-out infinite;
}
@keyframes loreKick {
  0%,100% { filter: brightness(1); box-shadow: 0 0 28px rgba(255,140,40,.45); }
  50% { filter: brightness(1.12); box-shadow: 0 0 40px rgba(255,193,74,.55); }
}
.lore-hero__title {
  margin: 0 0 .85rem;
  line-height: .92;
}
.lore-hero__line {
  display: block;
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  font-weight: 900;
  letter-spacing: .08em;
  background: linear-gradient(105deg, #fff 0%, #ffe7b0 25%, #ffc14a 50%, #ff6a2a 75%, #ffc14a 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 28px rgba(255,100,40,.35));
  animation: loreTitleShine 5s ease-in-out infinite;
}
.lore-hero__line--wars {
  background: linear-gradient(105deg, #e8fffc 0%, #7af8ef 30%, #00f0e0 55%, #3aa0ff 80%, #00f0e0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: loreTitleShine 5s ease-in-out infinite .5s;
  filter: drop-shadow(0 8px 28px rgba(0,240,224,.3));
}
@keyframes loreTitleShine {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lore-hero__lead {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #e4ecf8;
  max-width: 34rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.7);
}
.lore-hero__quote {
  display: grid;
  gap: .25rem;
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(.7rem, 1.4vw, .88rem);
  letter-spacing: .14em;
}
.lore-hero__quote span:first-child { color: #ffd7a8; }
.lore-hero__quote span:last-child { color: #7af8ef; }
/* hero termina limpo — a barra tech faz a costura */
.lore-hero {
  margin-bottom: 0;
}
.lore-hero::after { display: none; }

/* ===== TECH RAILS — divisórias animadas ===== */
.lore-rail {
  --rail: #ff8a3a;
  --rail2: #ffc14a;
  --rail-dim: rgba(255,140,40,.22);
  position: relative;
  z-index: 5;
  height: 56px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, #02040a 0%, rgba(6,10,18,.96) 40%, #02040a 100%);
  border-top: 1px solid var(--rail-dim);
  border-bottom: 1px solid var(--rail-dim);
}
.lore-rail--ember { --rail:#ff6a2a; --rail2:#ffc14a; --rail-dim:rgba(255,106,42,.28); }
.lore-rail--cyan  { --rail:#00f0e0; --rail2:#3aa0ff; --rail-dim:rgba(0,240,224,.28); }
.lore-rail--gold  { --rail:#ffc14a; --rail2:#ffe7a0; --rail-dim:rgba(255,193,74,.3); }
.lore-rail--violet{ --rail:#b46bff; --rail2:#7af8ef; --rail-dim:rgba(180,107,255,.28); }
.lore-rail--lime  { --rail:#5dffb0; --rail2:#00f0e0; --rail-dim:rgba(93,255,176,.28); }
.lore-rail--rose  { --rail:#ff5e8a; --rail2:#ffc14a; --rail-dim:rgba(255,94,138,.28); }

.lore-rail__track {
  position: absolute; left: 6%; right: 6%; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rail-dim), var(--rail), var(--rail-dim), transparent);
  transform: translateY(-50%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--rail) 45%, transparent);
}
.lore-rail__beam {
  position: absolute; left: -20%; top: 50%;
  width: 28%; height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rail2), var(--rail), transparent);
  box-shadow: 0 0 16px var(--rail), 0 0 28px color-mix(in srgb, var(--rail2) 50%, transparent);
  animation: loreRailBeam 3.2s linear infinite;
}
@keyframes loreRailBeam {
  from { left: -25%; opacity: .35; }
  40% { opacity: 1; }
  to { left: 100%; opacity: .2; }
}
.lore-rail__scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    color-mix(in srgb, var(--rail) 8%, transparent) 10px 11px
  );
  opacity: .35;
  animation: loreRailScan 8s linear infinite;
  pointer-events: none;
}
@keyframes loreRailScan {
  from { background-position: 0 0; }
  to { background-position: 44px 0; }
}
.lore-rail__ticks {
  position: absolute; left: 8%; right: 8%; top: 50%;
  height: 10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.lore-rail__ticks i {
  width: 1px; height: 100%;
  background: color-mix(in srgb, var(--rail) 55%, transparent);
  box-shadow: 0 0 6px var(--rail);
  animation: loreRailTick 2.4s ease-in-out infinite;
}
.lore-rail__ticks i:nth-child(odd) { height: 60%; align-self: center; animation-delay: .2s; }
.lore-rail__ticks i:nth-child(3n) { animation-delay: .45s; }
@keyframes loreRailTick {
  0%,100% { opacity: .35; transform: scaleY(.8); }
  50% { opacity: 1; transform: scaleY(1); }
}
.lore-rail__nodes {
  position: absolute; left: 18%; right: 18%; top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.lore-rail__nodes i {
  width: 7px; height: 7px;
  border: 1px solid var(--rail2);
  background: color-mix(in srgb, var(--rail) 35%, #02040a);
  box-shadow: 0 0 10px var(--rail);
  transform: rotate(45deg);
  animation: loreRailNode 2.8s ease-in-out infinite;
}
.lore-rail__nodes i:nth-child(2) { animation-delay: .4s; width: 9px; height: 9px; }
.lore-rail__nodes i:nth-child(3) { animation-delay: .8s; }
@keyframes loreRailNode {
  0%,100% { opacity: .45; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.4); }
}
.lore-rail__tag {
  position: relative; z-index: 1;
  font-family: var(--font-d);
  font-size: clamp(.72rem, 1.6vw, .95rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rail2);
  padding: .45rem 1rem;
  background: rgba(2,4,10,.92);
  border: 1px solid var(--rail-dim);
  box-shadow: 0 0 18px color-mix(in srgb, var(--rail) 25%, transparent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--rail) 55%, transparent);
}

/* TOC — separado limpo do hero pela rail */
.lore-toc-wrap {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 1.5rem 0 1.75rem;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255,140,40,.08), transparent 60%),
    #02040a;
}
.lore-toc {
  position: relative;
  top: auto;
  padding: 1.35rem 1.2rem 1.45rem;
  background:
    linear-gradient(165deg, rgba(14,18,28,.97), rgba(6,8,14,.99));
  border: 1px solid rgba(255,140,80,.34);
  box-shadow: 0 18px 44px rgba(0,0,0,.48);
  backdrop-filter: blur(14px);
  border-radius: 2px;
}
.lore-toc::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #ff8a3a, #ffc14a, #00f0e0, transparent);
  background-size: 200% 100%;
  animation: loreTitleShine 4s linear infinite;
}
.lore-toc__label {
  margin: 0 0 .9rem;
  font-family: var(--font-d);
  font-size: clamp(.7rem, 1.5vw, .88rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember2);
}
.lore-toc__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .55rem;
}
.lore-toc__grid a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: .4rem;
  min-height: 78px;
  padding: .7rem .35rem .65rem;
  text-align: center;
  text-decoration: none;
  color: #c5d2e6;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}
.lore-toc__grid a svg {
  display: block;
  width: 20px; height: 20px;
  color: #ffc14a;
  filter: drop-shadow(0 0 8px rgba(255,140,40,.4));
  transition: transform .22s ease, color .22s ease;
}
.lore-toc__grid a span {
  font-family: var(--font-d);
  font-size: clamp(.55rem, 1.15vw, .68rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.lore-toc__grid a:hover,
.lore-toc__grid a:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(255,140,80,.55);
  background: rgba(255,100,40,.16);
  box-shadow: 0 10px 24px rgba(255,80,30,.22);
  outline: none;
}
.lore-toc__grid a:hover svg,
.lore-toc__grid a:focus-visible svg {
  color: #ffe08a;
  transform: scale(1.12);
}
/* SECTIONS — cada imagem dissolve no vazio (não cola na seguinte) */
.lore-body {
  position: relative;
  isolation: isolate;
}
/* fundo contínuo entre seções (estrelas suaves) */
.lore-body::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,220,160,.45), transparent),
    radial-gradient(1px 1px at 48% 32%, rgba(180,240,255,.35), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 22% 68%, rgba(255,160,80,.3), transparent),
    radial-gradient(1px 1px at 64% 74%, rgba(120,255,240,.28), transparent),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,.25), transparent),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255,100,40,.06), transparent),
    radial-gradient(ellipse 70% 35% at 50% 100%, rgba(0,240,224,.05), transparent);
  background-size: 100% 100%;
  opacity: .55;
  animation: loreAmbientDrift 40s linear infinite;
}
@keyframes loreAmbientDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}
.lore-sec {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 6rem;
  margin: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--nav) + 1rem);
}
/* palco da imagem: máscara suave no topo e base = transição natural */
.lore-sec__stage {
  position: absolute;
  left: 0; right: 0;
  top: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .78;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 1.2s ease;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,.4) 7%,
    #000 16%,
    #000 78%,
    rgba(0,0,0,.45) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,.4) 7%,
    #000 16%,
    #000 78%,
    rgba(0,0,0,.45) 90%,
    transparent 100%
  );
}
.lore-sec.is-near .lore-sec__stage { opacity: .92; }
.lore-sec.is-inview .lore-sec__stage {
  opacity: 1;
  transform: scale(1);
}
.lore-sec__media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
}
.lore-sec__media--main {
  opacity: 1;
  filter: saturate(1.4) brightness(.98) contrast(1.08);
}
.lore-sec__media--soft {
  opacity: .12;
  mix-blend-mode: soft-light;
  filter: saturate(1.45) brightness(1.05);
}
.lore-sec.is-inview .lore-sec__media--soft { opacity: .2; }
.lore-sec__media--a { animation: loreDriftA 26s ease-in-out infinite alternate; }
.lore-sec__media--b { animation: loreDriftB 30s ease-in-out infinite alternate; background-position: 60% 40%; }
.lore-sec__media--c { animation: loreDriftC 28s ease-in-out infinite alternate; background-position: 40% 60%; }
.lore-sec__media--soft.lore-sec__media--a,
.lore-sec__media--soft.lore-sec__media--b,
.lore-sec__media--soft.lore-sec__media--c {
  animation: loreDriftSoft 34s ease-in-out infinite alternate;
}
@keyframes loreDriftA {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.8%, -1.2%, 0); }
}
@keyframes loreDriftB {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(1.8%, 1%, 0); }
}
@keyframes loreDriftC {
  from { transform: scale(1.05) translate3d(0,0,0); }
  to { transform: scale(1.09) translate3d(-1%, 1.6%, 0); }
}
@keyframes loreDriftSoft {
  from { transform: scale(1.06) translate3d(.8%, -.6%, 0); }
  to { transform: scale(1.12) translate3d(-1.4%, 1.2%, 0); }
}
.lore-sec__glow {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(50% 45% at 20% 30%, rgba(255,140,40,.2), transparent 65%),
    radial-gradient(45% 40% at 80% 70%, rgba(0,240,224,.14), transparent 60%);
  opacity: .45;
  mix-blend-mode: screen;
  animation: loreGlowPulse 12s ease-in-out infinite alternate;
}
.lore-sec.is-inview .lore-sec__glow { opacity: .7; }
.lore-sec__glow--ember {
  background:
    radial-gradient(55% 48% at 30% 40%, rgba(255,100,40,.28), transparent 68%),
    radial-gradient(35% 30% at 75% 25%, rgba(255,193,74,.16), transparent 55%);
}
.lore-sec__glow--cyan {
  background:
    radial-gradient(55% 48% at 70% 40%, rgba(0,240,224,.26), transparent 68%),
    radial-gradient(35% 30% at 25% 70%, rgba(58,160,255,.16), transparent 55%);
}
@keyframes loreGlowPulse {
  from { opacity: .35; transform: scale(1); }
  to { opacity: .65; transform: scale(1.06); }
}
.lore-sec__grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle, rgba(255,220,160,.55) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(120,255,240,.4) 0 1px, transparent 2px);
  background-size: 56px 56px, 84px 84px;
  animation: loreGrain 20s linear infinite;
}
.lore-sec.is-inview .lore-sec__grain { opacity: .28; }
@keyframes loreGrain {
  to { background-position: 56px -84px, -84px 56px; }
}
.lore-sec__fade {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,4,10,.32) 0%, rgba(2,4,10,.1) 34%, transparent 60%, rgba(2,4,10,.14) 100%);
}
.lore-sec::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2rem;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #02040a);
}
.lore-sec::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2rem;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #02040a, transparent);
}
.lore-sec__inner {
  position: relative;
  z-index: 3;
  max-width: 44rem;
  padding: 1.4rem 1.45rem 1.55rem;
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(4,8,16,.82), rgba(2,4,10,.68));
  border: 1px solid rgba(255,193,74,.22);
  box-shadow:
    0 18px 48px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.lore-sec--cyan .lore-sec__inner {
  border-color: rgba(0,240,224,.24);
  box-shadow:
    0 18px 48px rgba(0,0,0,.48),
    0 0 30px rgba(0,240,224,.1),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.lore-sec.is-inview .lore-sec__inner {
  opacity: 1;
  transform: none;
}
.lore-sec--ash .lore-sec__media--main {
  filter: saturate(1.55) brightness(1.02) contrast(1.1);
}
.lore-sec--faction {
  min-height: min(64vh, 560px);
  display: grid;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 6.5rem;
}
.lore-sec--faction .lore-sec__media--main {
  filter: saturate(1.45) brightness(.96) contrast(1.08);
}
.lore-sec.is-inview.lore-sec--faction .lore-sec__media--main {
  filter: saturate(1.55) brightness(1.02) contrast(1.1);
}
.lore-sec--ember .lore-sec__fade {
  background: linear-gradient(105deg, rgba(36,10,4,.35) 0%, rgba(2,4,10,.08) 42%, rgba(2,4,10,.2) 100%);
}
.lore-sec--cyan .lore-sec__fade {
  background: linear-gradient(105deg, rgba(4,26,34,.35) 0%, rgba(2,4,10,.08) 42%, rgba(2,4,10,.2) 100%);
}
.lore-sec--finale { padding-bottom: 6.5rem; }
.lore-sec__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.lore-sec__ico {
  width: 52px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center;
  color: #ffc14a;
  background: linear-gradient(145deg, rgba(255,140,40,.22), rgba(8,10,16,.8));
  border: 1px solid rgba(255,193,74,.4);
  box-shadow: 0 0 22px rgba(255,140,40,.25);
}
.lore-sec__ico svg { width: 24px; height: 24px; }
.lore-sec--cyan .lore-sec__ico {
  color: #7af8ef;
  border-color: rgba(0,240,224,.4);
  background: linear-gradient(145deg, rgba(0,240,224,.18), rgba(8,10,16,.8));
  box-shadow: 0 0 22px rgba(0,240,224,.22);
}
.lore-sec__title {
  margin: 0;
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  letter-spacing: .03em;
  line-height: 1.08;
}
.lore-sec__title span {
  display: inline-block;
  background: linear-gradient(105deg, #ffffff 0%, #fff4d6 28%, #ffc14a 55%, #ff6a2a 78%, #ffe7b0 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: loreTitleShine 5.5s ease-in-out infinite;
  filter: drop-shadow(0 3px 16px rgba(255,140,40,.5));
}
.lore-sec--cyan .lore-sec__title span {
  background: linear-gradient(105deg, #ffffff 0%, #c8fff9 28%, #00f0e0 55%, #3aa0ff 78%, #e8fffc 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 16px rgba(0,240,224,.45));
}
.lore-sec__dek {
  margin: 0 0 1.25rem;
  font-size: clamp(1.1rem, 2.35vw, 1.24rem);
  line-height: 1.62;
  font-weight: 600;
  color: #ffffff;
  max-width: 40rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

.lore-prose { max-width: 40rem; }
.lore-prose p {
  margin: 0 0 1.05rem;
  font-size: clamp(1.06rem, 2.2vw, 1.15rem);
  line-height: 1.72;
  color: #f4f7ff;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.lore-prose ul {
  margin: 0 0 1.15rem;
  padding: 0 0 0 1.15rem;
  color: #eef3fb;
  display: grid;
  gap: .5rem;
  font-size: clamp(1.03rem, 2.05vw, 1.1rem);
  line-height: 1.58;
}
.lore-prose b {
  color: #ffc14a;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255,193,74,.4);
}
.lore-sec--cyan .lore-prose b {
  color: #7af8ef;
  text-shadow: 0 0 14px rgba(0,240,224,.35);
}
.lore-pull {
  margin: 1.4rem 0 !important;
  padding: 1.05rem 0 1.05rem 1.15rem;
  border-left: 3px solid var(--ember);
  font-family: var(--font-d);
  font-size: clamp(1.05rem, 2.3vw, 1.15rem) !important;
  letter-spacing: .04em;
  color: #fff6e8 !important;
  text-shadow: 0 0 22px rgba(255,140,40,.35);
  background: linear-gradient(90deg, rgba(255,100,40,.18), transparent 75%);
}
.lore-sec--cyan .lore-pull {
  border-left-color: var(--cyan);
  color: #e8fffc !important;
  background: linear-gradient(90deg, rgba(0,240,224,.12), transparent 70%);
}
.lore-callout {
  margin: 1.2rem 0 !important;
  padding: 1rem 1.15rem;
  font-size: clamp(1rem, 2.1vw, 1.06rem) !important;
  color: #eef4ff !important;
  border: 0;
  border-top: 1px solid rgba(0,240,224,.35);
  border-bottom: 1px solid rgba(0,240,224,.35);
  background: rgba(0,240,224,.06);
}

.lore-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .35rem;
}
.lore-duo__item {
  display: grid;
  gap: .35rem;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.lore-duo__item::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  opacity: .9;
  transition: opacity .25s ease;
}
.lore-duo__item--ember::before {
  background:
    linear-gradient(135deg, rgba(255,100,40,.22), rgba(8,6,4,.5)),
    radial-gradient(80% 80% at 100% 0%, rgba(255,193,74,.25), transparent 55%);
  border: 1px solid rgba(255,140,80,.35);
}
.lore-duo__item--cyan::before {
  background:
    linear-gradient(135deg, rgba(0,240,224,.16), rgba(4,10,16,.5)),
    radial-gradient(80% 80% at 100% 0%, rgba(58,160,255,.22), transparent 55%);
  border: 1px solid rgba(0,240,224,.3);
}
.lore-duo__item:hover { transform: translateY(-5px); }
.lore-duo__item--ember:hover { box-shadow: 0 16px 40px rgba(255,80,30,.25); }
.lore-duo__item--cyan:hover { box-shadow: 0 16px 40px rgba(0,240,224,.2); }
.lore-duo__item em {
  font-family: var(--font-d);
  font-style: normal;
  font-size: .42rem;
  letter-spacing: .2em;
}
.lore-duo__item--ember em { color: #ffb070; }
.lore-duo__item--cyan em { color: #7af8ef; }
.lore-duo__item strong {
  font-family: var(--font-d);
  font-size: clamp(1.1rem, 2.4vw, 1.25rem);
  letter-spacing: .06em;
  color: #fff;
}
.lore-duo__item span { color: #b8c6dc; font-size: .95rem; }

.lore-swatch {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin: 0 0 1.4rem;
}
.lore-swatch i {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 55%, transparent);
  border: 1px solid rgba(255,255,255,.25);
  animation: loreSwatch 3.5s ease-in-out infinite;
}
.lore-swatch i:nth-child(2) { animation-delay: .2s; }
.lore-swatch i:nth-child(3) { animation-delay: .4s; }
.lore-swatch i:nth-child(4) { animation-delay: .6s; }
.lore-swatch i:nth-child(5) { animation-delay: .8s; }
.lore-swatch i:nth-child(6) { animation-delay: 1s; }
.lore-swatch i:nth-child(7) { animation-delay: 1.2s; }
@keyframes loreSwatch {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.lore-chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin: 0 0 1.25rem;
}
.lore-chips span {
  font-family: var(--font-d);
  font-size: .45rem;
  letter-spacing: .12em;
  padding: .4rem .7rem;
  color: #ffe8d8;
  border: 1px solid rgba(255,140,80,.4);
  background: rgba(255,100,40,.12);
  box-shadow: 0 0 14px rgba(255,100,40,.12);
}

.lore-cycle {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .65rem;
  counter-reset: lorec;
  max-width: 36rem;
}
.lore-cycle li {
  counter-increment: lorec;
  position: relative;
  padding: .85rem 1rem .85rem 3.2rem;
  color: #d8e4f6;
  font-size: clamp(1rem, 2.1vw, 1.05rem);
  background: linear-gradient(90deg, rgba(255,100,40,.1), transparent 75%);
  border-left: 2px solid rgba(255,140,80,.45);
}
.lore-cycle li::before {
  content: counter(lorec, decimal-leading-zero);
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .08em;
  color: var(--ember2);
}
.lore-cycle b { color: #fff; }

.lore-faction-tag {
  font-family: var(--font-d);
  font-size: .48rem;
  letter-spacing: .22em;
  margin: 0 0 1rem;
  color: #ffb070;
  text-shadow: 0 0 14px rgba(255,140,40,.4);
}
.lore-sec--cyan .lore-faction-tag {
  color: #7af8ef;
  text-shadow: 0 0 14px rgba(0,240,224,.4);
}

.lore-end {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255,77,42,.15), transparent 50%),
    linear-gradient(225deg, rgba(0,240,224,.12), transparent 50%);
  border-top: 1px solid rgba(255,193,74,.35);
  border-bottom: 1px solid rgba(0,240,224,.3);
}
.lore-end h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: .2em;
  background: linear-gradient(90deg, #ffc14a, #ff4d2a, #00f0e0, #ffc14a);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: loreTitleShine 4s ease-in-out infinite;
}
.lore-end p {
  margin: 0;
  font-family: var(--font-d);
  font-size: .78rem;
  letter-spacing: .14em;
  color: #ffe8d0;
}
.lore-end p + p { margin-top: .3rem; color: #7af8ef; }

/* Tablet: 4 colunas ? 4 linhas iguais */
@media (max-width: 1100px) {
  .lore-toc__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .lore-toc__grid a { min-height: 74px; }
}
@media (max-width: 900px) {
  .lore-toc-wrap { margin-top: 0; padding: 1.15rem 0 1.25rem; }
  .lore-toc { padding: 1.15rem 1rem 1.25rem; }
  .lore-sec { padding: 4rem 0 4.5rem; }
  .lore-sec--faction { min-height: 0; padding-top: 4.25rem; padding-bottom: 4.75rem; }
}
@media (max-width: 720px) {
  .lore-hero { min-height: 56vh; padding: calc(var(--nav) + 1.5rem) 0 2rem; }
  .lore-hero__line { font-size: clamp(2.55rem, 14vw, 3.7rem); }
  .lore-hero__lead { font-size: 1.05rem; }
  .lore-duo { grid-template-columns: 1fr; }
  .lore-toc__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
  }
  .lore-toc__grid a {
    min-height: 68px;
    padding: .55rem .25rem .5rem;
    gap: .3rem;
  }
  .lore-toc__grid a svg { width: 18px; height: 18px; }
  .lore-toc__grid a span { font-size: .48rem; letter-spacing: .04em; }
  .lore-sec { padding: 3.5rem 0 4rem; }
  .lore-sec__inner { padding: 1.1rem 1rem 1.2rem; }
  .lore-sec__head { gap: .75rem; margin-bottom: 1.1rem; }
  .lore-sec__ico { width: 44px; height: 44px; }
  .lore-sec__ico svg { width: 20px; height: 20px; }
  .lore-sec__title { font-size: clamp(1.4rem, 7vw, 1.85rem); }
  .lore-prose p,
  .lore-sec__dek { line-height: 1.65; }
  .lore-chips span { font-size: .4rem; padding: .35rem .55rem; }
  .lore-swatch i { width: 30px; height: 30px; }
  .lore-cycle li { padding-left: 2.9rem; }
  .lore-rail { height: 52px; }
  .lore-rail__tag { font-size: .7rem; padding: .4rem .85rem; }
}
@media (max-width: 380px) {
  .lore-toc__grid a span { font-size: .42rem; }
  .lore-toc__grid a { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .lore-sec__media,
  .lore-sec__glow,
  .lore-sec__grain,
  .lore-rail__beam,
  .lore-rail__scan,
  .lore-rail__ticks i,
  .lore-rail__nodes i,
  .lore-body::before,
  .lore-hero__bg,
  .lore-swatch i { animation: none !important; }
  .lore-sec__inner,
  .lore-sec__stage { transition: none !important; }
  .lore-sec__inner { opacity: 1; transform: none; }
  .lore-sec__stage { opacity: 1; transform: none; }
}


/* ===== APP SHELL + SIDEBAR (tech HUD) ===== */
:root {
  --appside: 268px;
  --appside-slim: 84px;
}
.appside { display: none; }
.app-shell .foot { display: none; }
.app-shell .topbar__cluster--play { display: none !important; }
.app-shell .topbar__sep { display: none; }
.app-shell .appside {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav);
  left: 0;
  bottom: 0;
  width: var(--appside);
  z-index: 40;
  overflow: hidden;
  border-right: 1px solid rgba(0,240,224,.22);
  box-shadow:
    22px 0 48px rgba(0,0,0,.55),
    inset -1px 0 0 rgba(255,193,74,.12),
    inset 0 0 40px rgba(0,240,224,.04);
  transition: width .28s ease;
}
.app-shell .stage {
  margin-left: var(--appside);
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  transition: margin-left .28s ease;
}
.app-shell.appside-collapsed .appside { width: var(--appside-slim); overflow: visible; }
.app-shell.appside-collapsed .stage { margin-left: var(--appside-slim); }

/*
  Travamento do viewport app-shell:
  - body/stage não rolam (acaba a faixa preta no fim)
  - fundo do painel fica fixo
  - wrap interno rola só se o conteúdo passar
  - cards NÃO esticam para preencher a tela
*/
html:has(body.app-shell) {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.app-shell {
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.app-shell .opsx,
body.app-shell .ops,
body.app-shell .premx,
body.app-shell .dash,
body.app-shell .invx,
body.app-shell .prevx {
  box-sizing: border-box !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  padding-top: calc(var(--nav) + .7rem) !important;
  padding-bottom: .7rem !important;
}
body.app-shell .opsx__wrap,
body.app-shell .ops__wrap,
body.app-shell .premx__wrap,
body.app-shell .dash__wrap,
body.app-shell .prevx__wrap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin-block: 0;
  margin-inline: auto;
  /* impede o grid de esticar cards no espa—o sobrando */
  align-content: start;
  align-items: stretch;
  justify-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.app-shell .opsx__wrap { width: min(100%, 1100px); align-content: start; }
body.app-shell .ops__wrap { width: min(100%, 980px); align-content: start; }
body.app-shell .ops__wrap--narrow { width: min(100%, 560px); }
body.app-shell .premx__wrap { width: min(100%, 1120px); align-content: start; }
body.app-shell .dash__wrap { width: min(100%, 1080px); align-content: start; }

/* Preview: wrap full-width → barra no canto direito do stage;
   o hull interno continua limitado e centralizado */
body.app-shell.preview-page .prevx {
  justify-content: flex-start;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.app-shell.preview-page .prevx__wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(1rem, 2.2vw, 1.5rem) .85rem !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: start;
  justify-content: flex-start;
  justify-content: safe center;
  overflow-x: hidden;
  overflow-y: auto;
}
body.app-shell.preview-page .prevx__wrap > .prevx-hull {
  width: min(980px, 100%);
  flex: 0 0 auto;
}

/* Inventário: wrap full-width → barra grudada à direita do stage;
   conteúdo interno continua limitado e centralizado */
body.app-shell.inventory-page .invx__wrap {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 clamp(1rem, 2.5vw, 1.5rem) 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body.app-shell.inventory-page .invx__wrap > * {
  width: min(1100px, 100%);
  flex: none;
}

/* Lobby: wrap full-width → barra grudada à direita do stage;
   conteúdo interno continua limitado e centralizado.
   Fade inferior suaviza o clip em vez da faixa preta dura. */
body.app-shell.lobby-page .opsx {
  justify-content: flex-start;
  padding-top: calc(var(--nav) + .35rem) !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.app-shell.lobby-page .opsx::after {
  content: "";
  position: absolute;
  left: 0;
  right: var(--sb-size, 11px);
  bottom: 0;
  height: 5.75rem;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(2, 4, 10, 0) 0%,
    rgba(2, 4, 10, .12) 22%,
    rgba(2, 4, 10, .48) 52%,
    rgba(2, 4, 10, .82) 78%,
    rgba(2, 4, 10, .97) 100%
  );
}
body.app-shell.lobby-page .opsx__wrap {
  flex: 1 1 auto !important;
  min-height: 0;
  max-height: none;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: .15rem clamp(1rem, 2.2vw, 1.6rem) 6.75rem !important;
  display: grid;
  justify-items: center;
  align-content: start !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.app-shell.lobby-page .opsx__wrap > * {
  width: min(1100px, 100%);
}
body.app-shell .ops-panel,
body.app-shell .ops-filters,
body.app-shell .hist-console,
body.app-shell .hist-vault,
body.app-shell .hist-deck,
body.app-shell .hist-card,
body.app-shell .ops-form,
body.app-shell .ops-list,
body.app-shell .ops-hero,
body.app-shell .dash-id,
body.app-shell .dash-grid,
body.app-shell .dash-hero,
body.app-shell .dash-stats,
body.app-shell .premx-deck,
body.app-shell .premx-hero,
body.app-shell .opsx-hero,
body.app-shell .opsx-rankstrip,
body.app-shell .opsx-missions,
body.app-shell .opsx-tools,
body.app-shell .invx-hero,
body.app-shell .invx-sec,
body.app-shell .invx-grid,
body.app-shell .invx-card,
body.app-shell .invx-note {
  height: auto !important;
  min-height: auto !important;
  flex: none !important;
  align-self: stretch;
  max-height: none !important;
  overflow: visible !important;
}
/* Rankstrip needs overflow:hidden so border-radius actually clips the art */
body.app-shell .opsx-rankstrip {
  overflow: hidden !important;
}
body.app-shell .opsx__bg,
body.app-shell .opsx__veil,
body.app-shell .opsx__grid,
body.app-shell .ops__bg,
body.app-shell .ops__veil,
body.app-shell .premx__bg,
body.app-shell .premx__veil,
body.app-shell .premx__grid,
body.app-shell .dash__bg,
body.app-shell .dash__veil,
body.app-shell .dash__grid,
body.app-shell .dash__dust,
body.app-shell .invx__bg,
body.app-shell .invx__veil,
body.app-shell .invx__grid {
  transform: none;
  animation: none;
}

.appside__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: 28% center;
  filter: saturate(1.15) brightness(.28) contrast(1.25) hue-rotate(-8deg);
  transform: scale(1.08);
  animation: ken 28s ease-in-out infinite alternate;
}
.appside__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(185deg, rgba(2,6,12,.88) 0%, rgba(4,8,14,.94) 42%, rgba(6,4,8,.97) 100%),
    linear-gradient(90deg, rgba(255,90,30,.16) 0%, transparent 42%, rgba(0,220,210,.1) 100%),
    radial-gradient(120% 60% at 0% 0%, rgba(255,140,40,.18), transparent 55%);
}
.appside__hex {
  position: absolute; inset: 0; pointer-events: none; opacity: .22;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,193,74,.35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0,240,224,.3) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,100,40,.25) 0 1px, transparent 2px);
  background-size: 48px 48px, 36px 36px, 54px 54px;
  animation: gateGridMove 22s linear infinite;
}
.appside__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,40,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #000 5%, transparent 90%);
  opacity: .7;
  animation: gateGridMove 16s linear infinite;
}
.appside__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,240,224,.14), transparent);
  background-size: 100% 240%;
  animation: gateScan 5.8s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: .85;
}
.appside__beam {
  position: absolute; top: 0; left: -40%; width: 42%; height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,193,74,.14), transparent);
  animation: gateCardBeam 6s ease-in-out infinite;
}
.appside__rail {
  position: absolute; top: 0; right: 0; bottom: 0; width: 3px; pointer-events: none;
  background:
    linear-gradient(180deg, #ffc14a 0%, transparent 22%, transparent 78%, #00f0e0 100%);
  box-shadow: 0 0 14px rgba(0,240,224,.35);
  opacity: .85;
}

.appside__top,
.appside__status,
.appside__pilot,
.appside__play,
.appside__nav,
.appside__div { position: relative; z-index: 1; }

.appside__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  padding: 1rem .8rem .85rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.08) 70%, transparent),
    radial-gradient(90% 80% at 10% 0%, rgba(255,140,40,.18), transparent 60%);
}
.appside__top-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,193,74,.08) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: gateBtnScan 5s ease-in-out infinite;
}
.appside__brand {
  display: flex; align-items: center; gap: .7rem;
  min-width: 0; flex: 1;
  text-decoration: none; color: inherit;
  position: relative; z-index: 1;
}
.appside__logo {
  position: relative;
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
}
.appside__logo-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px dashed rgba(255,193,74,.5);
  animation: logoSpin 11s linear infinite;
  box-shadow: 0 0 12px rgba(255,140,40,.15);
}
.appside__logo-ring--rev {
  inset: -6px;
  border-color: rgba(0,240,224,.35);
  border-style: dotted;
  animation-direction: reverse;
  animation-duration: 16s;
  opacity: .8;
}
.appside__logo-pod {
  position: relative; z-index: 1;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(4,7,15,.96);
  border: 1px solid rgba(255,180,60,.5);
  box-shadow:
    0 0 22px rgba(255,140,40,.35),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 6px 0 rgba(0,0,0,.25);
}
.appside__logo-corners {
  position: absolute; inset: 0; pointer-events: none;
}
.appside__logo-corners b {
  position: absolute; width: 8px; height: 8px;
  border-color: #ffc14a; border-style: solid;
  filter: drop-shadow(0 0 4px rgba(255,193,74,.5));
}
.appside__logo-corners b:nth-child(1) { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.appside__logo-corners b:nth-child(2) { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.appside__logo-corners b:nth-child(3) { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.appside__logo-corners b:nth-child(4) { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; border-color: #7af8ef; }
.appside__logo img {
  width: 46px; height: 46px; display: block; object-fit: contain; border-radius: 50%;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 8px rgba(255,140,40,.4));
}
.appside__brand-txt { display: grid; gap: .1rem; min-width: 0; }
.appside__brand-txt em {
  display: inline-flex; align-items: center; gap: .35rem;
  font-style: normal; font-family: var(--font-d);
  font-size: .34rem; letter-spacing: .18em; color: #ffc14a;
  text-shadow: 0 0 12px rgba(255,193,74,.45);
}
.appside__brand-txt em i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ffc14a;
  box-shadow: 0 0 8px #ffc14a;
  animation: blink 1.4s ease-in-out infinite;
}
.appside__brand-txt strong {
  font-family: var(--font-d); font-size: .92rem; letter-spacing: .08em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255,140,40,.4), 0 2px 8px rgba(0,0,0,.7);
  white-space: nowrap;
  display: flex; gap: .28rem;
}
.appside__brand-txt strong span:last-child {
  background: linear-gradient(100deg, #ffc14a, #ff6a2a 55%, #7af8ef);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.appside__brand-txt small {
  font-family: var(--font-d);
  font-size: .3rem;
  letter-spacing: .16em;
  color: #7af8ef;
  opacity: .9;
}
.appside__toggle {
  position: relative; z-index: 1;
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(255,193,74,.42);
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  background:
    linear-gradient(145deg, rgba(40,22,12,.95), rgba(8,10,14,.98));
  color: #ffc14a;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255,140,40,.28), inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .25s ease, background .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.appside__toggle-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(circle, rgba(255,193,74,.4), transparent 65%);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.appside__toggle svg { width: 14px; height: 14px; position: relative; z-index: 1; }
.appside__toggle:hover {
  background: linear-gradient(145deg, rgba(60,28,14,.98), rgba(10,12,16,.98));
  box-shadow: 0 0 22px rgba(255,140,40,.45);
}

.appside__div {
  display: flex; align-items: center; gap: .4rem;
  width: 100%;
  margin: .15rem 0 0;
  padding: 0 .05rem;
}
.appside__div i {
  height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,193,74,.55), transparent);
  box-shadow: 0 0 8px rgba(255,193,74,.25);
}
.appside__div i:nth-child(2) {
  flex: 0 0 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffc14a, #ff6a2a);
  box-shadow: 0 0 10px rgba(255,140,40,.55);
}
.appside__div--soft {
  width: auto;
  margin: .35rem .85rem;
  padding: 0;
}
.appside__div--soft i {
  background: linear-gradient(90deg, transparent, rgba(0,240,224,.4), transparent);
  box-shadow: 0 0 8px rgba(0,240,224,.2);
}
.appside__div--soft i:nth-child(2) {
  background: radial-gradient(circle, #7af8ef, #00c8b8);
  box-shadow: 0 0 10px rgba(0,240,224,.45);
}

.appside__status {
  display: flex; align-items: center; gap: .45rem;
  margin: .45rem .8rem .15rem;
  padding: .38rem .6rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  background: linear-gradient(90deg, rgba(0,40,42,.85), rgba(4,10,16,.9));
  border: 1px solid rgba(0,240,224,.4);
  box-shadow: 0 0 18px rgba(0,240,224,.16), inset 0 1px 0 rgba(122,248,239,.12);
}
.appside__status i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5dffb0;
  box-shadow: 0 0 10px #5dffb0;
  animation: blink 1.2s ease-in-out infinite;
}
.appside__status-txt {
  flex: 1;
  font-family: var(--font-d);
  font-size: .36rem;
  letter-spacing: .16em;
  color: #9afcf4;
  text-shadow: 0 0 10px rgba(0,240,224,.35);
}
.appside__status b {
  font-family: var(--font-d);
  font-size: .34rem;
  letter-spacing: .12em;
  color: #031014;
  padding: .2rem .4rem;
  background: linear-gradient(120deg, #e8fffc, #7af8ef);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.appside__pilot {
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  margin: auto .8rem .35rem;
  padding: .7rem .7rem;
  text-decoration: none;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 80% at 20% 50%, rgba(255,140,40,.26), transparent 70%),
    radial-gradient(ellipse 70% 70% at 85% 30%, rgba(255,193,74,.12), transparent 65%),
    linear-gradient(160deg, rgba(28,16,10,.98), rgba(6,8,14,.98) 55%, rgba(4,14,16,.95));
  border: 1px solid rgba(255,180,60,.55);
  box-shadow:
    0 12px 28px rgba(0,0,0,.35),
    0 0 28px rgba(255,140,40,.2),
    inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.appside__pilot:hover {
  transform: translateY(-1px);
  border-color: rgba(255,200,80,.75);
  box-shadow:
    0 14px 32px rgba(0,0,0,.4),
    0 0 34px rgba(255,140,40,.32),
    inset 0 1px 0 rgba(255,255,255,.14);
}
.appside__pilot-glow {
  position: absolute; inset: -35%;
  background:
    radial-gradient(ellipse 55% 50% at 22% 45%, rgba(255,193,74,.34), transparent 70%),
    radial-gradient(ellipse 45% 40% at 78% 60%, rgba(255,140,40,.18), transparent 72%);
  pointer-events: none;
  animation: softGlowPulse 3.2s ease-in-out infinite;
}
.appside__avatar {
  position: relative; z-index: 1;
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-d); font-size: .9rem; font-weight: 800;
  color: #1a0a04;
  background: linear-gradient(145deg, #fff8e8, #ffc14a 40%, #ff6a2a);
  box-shadow:
    0 0 0 2px rgba(255,193,74,.35),
    0 0 18px rgba(255,140,40,.55),
    inset 0 1px 0 rgba(255,255,255,.45);
}
.appside__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.appside__avatar i {
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(255,193,74,.55);
  animation: logoSpin 8s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.appside__pilot-txt { position: relative; z-index: 1; display: grid; gap: .1rem; min-width: 0; flex: 1; }
.appside__pilot-tag {
  font-family: var(--font-d);
  font-size: .3rem;
  letter-spacing: .18em;
  color: #7af8ef;
  text-shadow: 0 0 8px rgba(0,240,224,.35);
}
.appside__pilot-txt strong {
  color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.appside__pilot-txt em {
  font-style: normal; font-family: var(--font-d);
  font-size: .36rem; letter-spacing: .1em; color: #ffd27a;
}
.appside__pilot-txt em b {
  color: #1a0a04;
  background: linear-gradient(120deg, #fff, #ffc14a);
  padding: .08rem .28rem;
  border-radius: 4px;
  letter-spacing: .08em;
  font-size: .32rem;
}
.appside__pilot-bars {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: 2px; height: 16px;
}
.appside__pilot-bars i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc14a, #ff6a2a);
  animation: gateBars 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255,140,40,.5);
}
.appside__pilot-bars i:nth-child(1) { height: 40%; }
.appside__pilot-bars i:nth-child(2) { height: 70%; animation-delay: .12s; }
.appside__pilot-bars i:nth-child(3) { height: 100%; animation-delay: .24s; }

.appside__play {
  --play-cyan: #7af8ef;
  --play-gold: #ffc14a;
  --play-ember: #ff6a2a;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .05rem .75rem .4rem;
  padding: .5rem .7rem .5rem .55rem;
  min-height: 72px;
  text-decoration: none;
  color: #f4fbff;
  border-radius: 18px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(122, 248, 239, .62);
  background: #070b14;
  box-shadow:
    0 1px 0 rgba(210, 255, 255, .38) inset,
    0 -12px 16px rgba(0, 0, 0, .28) inset,
    0 8px 0 #03060c,
    0 14px 26px rgba(0, 0, 0, .48),
    0 0 22px rgba(0, 240, 255, .28);
  transform: translateZ(0);
  animation: appsidePlayPulse 2.15s ease-in-out infinite;
  transition: transform .16s ease, filter .16s ease, border-color .16s ease;
}
.appside__play-ring {
  position: absolute;
  width: 220%;
  height: 220%;
  left: -60%;
  top: -60%;
  background: conic-gradient(from 0deg, #00f0ff, #7af8ef, #ff2bd6, #ffc14a, #00f0ff);
  animation: appsidePlaySpin 3.4s linear infinite;
  pointer-events: none;
}
.appside__play-plate {
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 110% 150% at 0% 50%, rgba(0, 160, 180, .28), transparent 64%),
    radial-gradient(ellipse 95% 130% at 100% 0%, rgba(160, 20, 120, .32), transparent 60%),
    linear-gradient(125deg, #062830 0%, #0a1424 42%, #1a0c28 78%, #07060c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -8px 14px rgba(0, 0, 0, .35);
}
.appside__play-grid {
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(122, 248, 239, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 248, 239, .12) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 20%, transparent 78%);
}
.appside__play-scan {
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
}
.appside__play-scan::before {
  content: "";
  position: absolute;
  top: 0;
  left: -45%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(122, 248, 239, .28), transparent);
  animation: appsidePlayScan 2.5s ease-in-out infinite;
}
.appside__play-corners {
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(#7af8ef, #7af8ef) left top / 9px 2px no-repeat,
    linear-gradient(#7af8ef, #7af8ef) left top / 2px 9px no-repeat,
    linear-gradient(#ff2bd6, #ff2bd6) right top / 9px 2px no-repeat,
    linear-gradient(#ff2bd6, #ff2bd6) right top / 2px 9px no-repeat,
    linear-gradient(#ffc14a, #ffc14a) left bottom / 9px 2px no-repeat,
    linear-gradient(#ffc14a, #ffc14a) left bottom / 2px 9px no-repeat,
    linear-gradient(#7af8ef, #7af8ef) right bottom / 9px 2px no-repeat,
    linear-gradient(#7af8ef, #7af8ef) right bottom / 2px 9px no-repeat;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, .65));
}
.appside__play-pod {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 8px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #7af8ef;
  background: linear-gradient(160deg, #163844 0%, #0c242e 46%, #07141a 100%);
  border: 1px solid rgba(90, 190, 200, .4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .16) inset,
    0 0 10px rgba(0, 140, 160, .28);
  animation: appsidePodPulse 2.15s ease-in-out infinite;
}
.appside__play-pod i { display: none; }
.appside__play-pod svg {
  width: 26px;
  height: 26px;
  margin: 0;
  position: relative;
  z-index: 1;
  display: block;
  filter: drop-shadow(0 0 4px rgba(122, 248, 239, .45));
}
.appside__play-pod svg path {
  fill: #ffc14a;
  filter: drop-shadow(0 0 3px rgba(255, 193, 74, .75));
}
.appside__play-txt {
  position: relative;
  z-index: 2;
  display: grid;
  gap: .06rem;
  min-width: 0;
  flex: 1;
}
.appside__play-tag {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  font-family: var(--font-d);
  font-size: .3rem;
  letter-spacing: .22em;
  color: #ff8aee;
  text-shadow: 0 0 8px rgba(255, 43, 214, .65);
}
.appside__play-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2bd6;
  box-shadow: 0 0 8px #ff2bd6;
  animation: blink 1s ease-in-out infinite;
}
.appside__play-txt strong {
  font-family: var(--font-d);
  font-size: 1.32rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
  background: linear-gradient(100deg, #fff 0%, #d8fffc 35%, #7af8ef 55%, #fff 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: appsidePlayShimmer 2.6s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, .4));
}
.appside__play-txt em {
  font-style: normal;
  font-family: var(--font-u);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #b7fbff;
  text-shadow: 0 0 10px rgba(0, 240, 255, .28);
}
.appside__play-radar {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid rgba(122, 248, 239, .55);
  box-shadow: 0 0 10px rgba(0, 240, 255, .35), inset 0 0 6px rgba(255, 43, 214, .2);
}
.appside__play-radar i {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(122, 248, 239, .15) 70%, #7af8ef 84%, transparent 92%);
  animation: appsideRadar 1.5s linear infinite;
}
.appside__play-radar b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: #ff2bd6;
  box-shadow: 0 0 8px #ff2bd6;
}
.appside__play:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
  filter: brightness(1.08);
  border-color: rgba(255, 43, 214, .75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 9px 0 #03060c,
    0 18px 30px rgba(0, 0, 0, .52),
    0 0 32px rgba(0, 240, 255, .5),
    0 0 22px rgba(255, 43, 214, .35);
}
.appside__play:hover .appside__play-pod,
.appside__play:hover .appside__play-pod i,
.appside__play:hover .appside__play-txt strong {
  animation-play-state: paused;
}
.appside__play:active {
  transform: translateY(6px);
  filter: brightness(1.02);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .22) inset,
    0 2px 0 #03060c,
    0 4px 10px rgba(0, 0, 0, .4),
    0 0 18px rgba(0, 240, 255, .45);
}
.appside__play.is-active {
  border-color: rgba(255, 43, 214, .8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .4) inset,
    0 8px 0 #03060c,
    0 14px 26px rgba(0, 0, 0, .48),
    0 0 28px rgba(255, 43, 214, .4),
    0 0 18px rgba(0, 240, 255, .45);
}
@keyframes appsidePlayPulse {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(210, 255, 255, .28) inset,
      0 -12px 16px rgba(0, 0, 0, .28) inset,
      0 8px 0 #03060c,
      0 14px 24px rgba(0, 0, 0, .42),
      0 0 14px rgba(0, 240, 255, .22);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .48) inset,
      0 -12px 16px rgba(0, 0, 0, .22) inset,
      0 8px 0 #03060c,
      0 16px 28px rgba(0, 0, 0, .5),
      0 0 30px rgba(0, 240, 255, .62),
      0 0 18px rgba(255, 43, 214, .32);
  }
}
@keyframes appsidePlaySpin {
  to { transform: rotate(360deg); }
}
@keyframes appsidePlayScan {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(340%); opacity: 0; }
}
@keyframes appsidePlayShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@keyframes appsidePodPulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 0 8px rgba(0, 140, 160, .22); }
  50% { box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 0 12px rgba(0, 180, 200, .4); }
}
@keyframes appsideRadar {
  to { transform: rotate(360deg); }
}
@keyframes appsidePodHalo {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .appside__play,
  .appside__play-ring,
  .appside__play-scan::before,
  .appside__play-pod,
  .appside__play-pod i,
  .appside__play-txt strong,
  .appside__play-tag i,
  .appside__play-radar i { animation: none !important; }
}

.appside__nav {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .1rem .7rem .45rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.appside__nav::-webkit-scrollbar { width: 0; height: 0; }
.appside__sec {
  display: flex; align-items: center; gap: .45rem;
  margin: .45rem 0 .18rem;
  font-family: var(--font-d);
  font-size: .34rem;
  letter-spacing: .2em;
  color: #a8bcd8;
  text-shadow: 0 0 8px rgba(0,240,224,.15);
}
.appside__sec::before,
.appside__sec::after {
  content: "";
  height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.appside__sec::before { max-width: 12px; background: linear-gradient(90deg, rgba(255,193,74,.5), transparent); }
.appside__sec::after { background: linear-gradient(90deg, rgba(0,240,224,.35), transparent); }
.appside__link {
  --l: #ffc14a;
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  min-height: 50px;
  padding: .5rem .6rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  text-decoration: none;
  color: #f2f6ff;
  background:
    radial-gradient(ellipse 90% 120% at 12% 50%, color-mix(in srgb, var(--l) 14%, transparent), transparent 70%),
    linear-gradient(115deg, rgba(10,14,22,.92), rgba(4,6,12,.88) 55%, rgba(8,12,18,.9));
  border: 1px solid color-mix(in srgb, var(--l) 22%, rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  overflow: hidden;
}
.appside__link::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 85% 90% at 30% 50%, #000 0%, transparent 78%);
}
.appside__link::before {
  content: "";
  position: absolute; left: 0; top: 16%; bottom: 16%; width: 3px;
  background: transparent;
  box-shadow: none;
  transition: background .18s ease, box-shadow .18s ease;
}
.appside__link:hover {
  transform: translateX(3px);
  background:
    radial-gradient(ellipse 95% 120% at 15% 50%, color-mix(in srgb, var(--l) 22%, transparent), transparent 72%),
    linear-gradient(115deg, color-mix(in srgb, var(--l) 18%, rgba(10,14,22,.95)), rgba(4,6,12,.92) 60%);
  border-color: color-mix(in srgb, var(--l) 48%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--l) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
}
.appside__link.is-active {
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--l) 26%, rgba(8,10,16,.95)), rgba(4,6,12,.94) 65%);
  border-color: color-mix(in srgb, var(--l) 58%, transparent);
  box-shadow:
    0 0 26px color-mix(in srgb, var(--l) 28%, transparent),
    inset 0 0 20px color-mix(in srgb, var(--l) 8%, transparent);
}
.appside__link.is-active::before {
  background: linear-gradient(180deg, #fff, var(--l));
  box-shadow: 0 0 12px var(--l);
}
.appside__ico {
  position: relative; z-index: 1;
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
  color: var(--l);
  background:
    linear-gradient(145deg, rgba(18,22,32,.98), rgba(4,6,12,.99));
  border: 1px solid color-mix(in srgb, var(--l) 55%, transparent);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--l) 35%, transparent),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.appside__ico svg {
  width: 16px; height: 16px; display: block;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--l) 65%, transparent));
}
.appside__meta {
  position: relative; z-index: 1;
  display: grid; gap: .08rem; min-width: 0; flex: 1;
}
.appside__label {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
}
.appside__meta small {
  font-family: var(--font-u);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-transform: none;
  color: color-mix(in srgb, var(--l) 82%, #fff);
  opacity: 1;
  text-shadow: 0 0 10px color-mix(in srgb, var(--l) 40%, transparent);
}
.appside__chev {
  position: relative; z-index: 1;
  width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid var(--l);
  border-top: 2px solid var(--l);
  transform: rotate(45deg);
  opacity: .6;
  transition: transform .18s ease, opacity .18s ease;
}
.appside__link:hover .appside__chev,
.appside__link.is-active .appside__chev {
  opacity: 1;
  transform: rotate(45deg) translate(1px, -1px);
}

.appside__exit {
  position: relative;
  margin: 0 .75rem .65rem;
  display: flex; align-items: center; gap: .65rem;
  min-height: 52px;
  padding: .55rem .7rem;
  text-decoration: none;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(60,10,18,.92), rgba(18,6,10,.96) 55%, rgba(8,4,8,.98));
  border: 1px solid rgba(255,100,120,.55);
  box-shadow:
    0 0 22px rgba(255,70,90,.22),
    inset 0 1px 0 rgba(255,180,190,.12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.appside__exit-skin {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255,120,140,.18) 50%, transparent 60%),
    radial-gradient(80% 120% at 0% 50%, rgba(255,80,100,.22), transparent 55%);
  background-size: 220% 100%, auto;
  animation: gateBtnScan 3.4s ease-in-out infinite;
}
.appside__exit-ico {
  position: relative; z-index: 1;
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #ffd0d8;
  background: linear-gradient(145deg, rgba(80,16,28,.98), rgba(20,6,10,.99));
  border: 1px solid rgba(255,130,150,.55);
  box-shadow: 0 0 16px rgba(255,80,100,.4);
}
.appside__exit-ico svg {
  width: 15px; height: 15px; display: block;
  filter: drop-shadow(0 0 6px rgba(255,120,140,.55));
}
.appside__exit-txt { position: relative; z-index: 1; display: grid; gap: .06rem; min-width: 0; }
.appside__exit-txt strong {
  color: #ffe4e8;
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.appside__exit-txt em {
  font-style: normal;
  font-family: var(--font-u);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  color: #ff8ea0;
}
.appside__exit:hover {
  transform: translateY(-1px);
  border-color: rgba(255,150,170,.8);
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(255,70,90,.35);
}

/* collapsed */
.app-shell.appside-collapsed .appside__brand-txt,
.app-shell.appside-collapsed .appside__pilot-txt,
.app-shell.appside-collapsed .appside__pilot-bars,
.app-shell.appside-collapsed .appside__pilot-glow,
.app-shell.appside-collapsed .appside__play-txt,
.app-shell.appside-collapsed .appside__play-radar,
.app-shell.appside-collapsed .appside__play-corners,
.app-shell.appside-collapsed .appside__play-scan,
.app-shell.appside-collapsed .appside__play-grid,
.app-shell.appside-collapsed .appside__meta,
.app-shell.appside-collapsed .appside__sec,
.app-shell.appside-collapsed .appside__status,
.app-shell.appside-collapsed .appside__chev,
.app-shell.appside-collapsed .appside__exit-txt,
.app-shell.appside-collapsed .appside__exit-skin,
.app-shell.appside-collapsed .appside__top-glow,
.app-shell.appside-collapsed .appside__logo-corners {
  opacity: 0; width: 0; height: 0; overflow: hidden; pointer-events: none;
  position: absolute;
  margin: 0; padding: 0; border: 0;
}
.app-shell.appside-collapsed .appside__top {
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .9rem .3rem .55rem;
  background:
    linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.1)),
    radial-gradient(circle at 50% 20%, rgba(255,140,40,.22), transparent 65%);
}
.app-shell.appside-collapsed .appside__brand {
  justify-content: center;
  flex: 0;
}
.app-shell.appside-collapsed .appside__logo {
  width: 46px; height: 46px;
}
.app-shell.appside-collapsed .appside__logo-ring {
  inset: -3px;
  opacity: 1;
}
.app-shell.appside-collapsed .appside__logo-ring--rev {
  inset: -6px;
  opacity: .75;
}
.app-shell.appside-collapsed .appside__logo-pod {
  width: 42px; height: 42px;
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(255,140,40,.4),
    inset 0 1px 0 rgba(255,255,255,.14),
    0 5px 0 rgba(0,0,0,.28);
}
.app-shell.appside-collapsed .appside__logo img { width: 42px; height: 42px; }
.app-shell.appside-collapsed .appside__toggle { transform: rotate(180deg); }
.app-shell.appside-collapsed .appside__div {
  margin: 0;
  padding: 0 .15rem;
  width: 100%;
}
.app-shell.appside-collapsed .appside__div--soft {
  margin: .2rem .35rem;
  width: auto;
}
.app-shell.appside-collapsed .appside__div i:nth-child(2) {
  flex: 0 0 6px; height: 6px;
}
.app-shell.appside-collapsed .appside__pilot {
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  margin: auto auto .55rem;
  padding: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,200,100,.35), transparent 55%),
    linear-gradient(145deg, rgba(40,20,12,.98), rgba(8,6,10,.99));
}
.app-shell.appside-collapsed .appside__avatar {
  width: 38px; height: 38px; font-size: .82rem;
}
.app-shell.appside-collapsed .appside__play {
  justify-content: center;
  width: 56px;
  height: 56px;
  min-height: 0;
  margin: .4rem auto .55rem;
  padding: 0;
  border-radius: 18px;
  animation: appsidePlayPulseSlim 2.15s ease-in-out infinite;
}
.app-shell.appside-collapsed .appside__play-plate {
  border-radius: 16px;
}
.app-shell.appside-collapsed .appside__play-pod {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 10px;
}
.app-shell.appside-collapsed .appside__play-pod svg {
  width: 18px;
  height: 18px;
}
.app-shell.appside-collapsed .appside__play:hover {
  transform: translateY(-2px);
}
.app-shell.appside-collapsed .appside__play:active {
  transform: translateY(3px);
}
@keyframes appsidePlayPulseSlim {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(210, 255, 255, .28) inset,
      0 5px 0 #03060c,
      0 8px 16px rgba(0, 0, 0, .42),
      0 0 12px rgba(0, 240, 255, .28);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, .45) inset,
      0 5px 0 #03060c,
      0 10px 18px rgba(0, 0, 0, .5),
      0 0 22px rgba(0, 240, 255, .7),
      0 0 12px rgba(255, 43, 214, .35);
  }
}
.app-shell.appside-collapsed .appside__nav {
  padding: .35rem .4rem .7rem;
  align-items: center;
  gap: .4rem;
  overflow: visible;
}
.app-shell.appside-collapsed .appside__link {
  justify-content: center;
  width: 48px;
  min-height: 48px;
  padding: .45rem;
  border-radius: 14px;
  clip-path: none;
}
.app-shell.appside-collapsed .appside__link::before {
  display: none;
}
.app-shell.appside-collapsed .appside__link::after {
  content: none;
  opacity: 0;
  background: none;
  mask-image: none;
  inset: auto;
}
.app-shell.appside-collapsed .appside__ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  clip-path: none;
}
.app-shell.appside-collapsed .appside__exit {
  justify-content: center;
  width: 48px;
  min-height: 48px;
  padding: .4rem;
  margin: 0 auto .5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(90,14,28,.98), rgba(28,6,12,.99));
}
.app-shell.appside-collapsed .appside__exit-ico {
  width: 34px; height: 34px;
  box-shadow: 0 0 18px rgba(255,80,100,.45);
}
.app-shell.appside-collapsed .appside__link[data-tip]:hover::after,
.app-shell.appside-collapsed .appside__exit[data-tip]:hover::after,
.app-shell.appside-collapsed .appside__pilot[data-tip]:hover::after,
.app-shell.appside-collapsed .appside__play[data-tip]:hover::after,
.app-shell.appside-collapsed .appside__brand[data-tip]:hover::after {
  content: attr(data-tip);
  display: block;
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  padding: .42rem .65rem;
  background: rgba(4,8,14,.98);
  border: 1px solid color-mix(in srgb, var(--l, #ffc14a) 55%, transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 16px color-mix(in srgb, var(--l, #ffc14a) 22%, transparent);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
  border-radius: 10px;
  opacity: 1;
  width: auto;
  height: auto;
  inset: auto;
  mask-image: none;
  background-image: none;
}
.app-shell.appside-collapsed .appside__exit[data-tip]:hover::after {
  border-color: rgba(255,120,140,.6);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 16px rgba(255,80,100,.25);
}
.app-shell.appside-collapsed .appside__pilot[data-tip]:hover::after,
.app-shell.appside-collapsed .appside__play[data-tip]:hover::after,
.app-shell.appside-collapsed .appside__brand[data-tip]:hover::after {
  border-color: rgba(255,193,74,.55);
}
.app-shell.appside-collapsed .appside__play[data-tip]:hover::after {
  border-color: rgba(122,248,239,.7);
  box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 16px rgba(0,240,255,.35);
}

@media (max-width: 980px) {
  .app-shell .appside { display: none; }
  .app-shell .stage { margin-left: 0 !important; }
  .app-shell .topbar__cluster--play { display: flex !important; }
  .app-shell .topbar__sep { display: block; }
  .app-shell.appside-collapsed .stage { margin-left: 0; }
}

/* Shared ops pages (hist/profile) */
.ops {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + 1rem) 1.1rem 2rem;
  overflow-x: hidden;
  overflow-y: auto;
}
.ops__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.25) brightness(.72) contrast(1.06);
  transform: scale(1.04);
  animation: ken 22s ease-in-out infinite alternate;
}
.ops__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(2,4,10,.8) 0%, rgba(30,12,4,.28) 48%, rgba(2,4,10,.84) 100%),
    linear-gradient(180deg, rgba(2,4,10,.32), rgba(2,4,10,.7));
}
.ops__wrap {
  position: relative; z-index: 2;
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid; gap: 1rem;
}
.ops__wrap--narrow { width: min(100%, 560px); }
.ops-hero__kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-bottom: .65rem;
  padding: .38rem .7rem;
  border-radius: 999px;
  font-family: var(--font-d); font-size: .44rem; letter-spacing: .16em;
  color: #1a0a04;
  background: linear-gradient(115deg, #fff, #ffc14a 50%, #ff6a2a);
  box-shadow: 0 0 18px rgba(255,140,40,.35);
}
.ops-hero__kicker i {
  width: 6px; height: 6px; border-radius: 50%; background: #1a0a04;
  animation: blink 1.3s ease-in-out infinite;
}
.ops-hero__title {
  margin: 0 0 .35rem;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  color: #fff;
}
.ops-hero__title span {
  background: linear-gradient(100deg, #fff, #ffc14a 50%, #ff6a2a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ops-hero__lead { margin: 0; color: #d5e0f2; font-size: 1.05rem; }

.ops-filters {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: end;
  padding: .85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(16,20,30,.92), rgba(6,8,14,.94));
  border: 1px solid rgba(255,160,60,.22);
  overflow: visible;
  position: relative;
  z-index: 5;
}
.ops-filters__field { display: grid; gap: .35rem; flex: 1; min-width: 160px; position: relative; z-index: 6; }
.ops-filters__field span {
  font-family: var(--font-d); font-size: .42rem; letter-spacing: .14em; color: #ffc14a;
}
.ops-filters__field .gate-input { padding-left: 1rem; min-height: 46px; border-radius: 12px; }
.ops-filters__btn {
  min-height: 46px; padding: 0 1.1rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-d); font-size: .55rem; letter-spacing: .12em;
  color: #1a0a04;
  background: linear-gradient(120deg, #fff, #ffc14a 50%, #ff6a2a);
  box-shadow: 0 0 16px rgba(255,140,40,.3);
}
.ops-panel {
  position: relative;
  padding: 1.05rem;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(12,14,22,.97), rgba(5,7,12,.98));
  border: 1px solid rgba(255,160,60,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 24px rgba(255,140,40,.08);
  overflow: hidden;
}
.ops-panel::before {
  content: "";
  position: absolute; top: 0; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #ffc14a, #ff6a2a, transparent);
  box-shadow: 0 0 12px rgba(255,193,74,.4);
}
.ops-panel__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,193,74,.07) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: gateBtnScan 4.5s ease-in-out infinite;
}
.ops-panel__corners {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.ops-panel__corners i {
  position: absolute; width: 12px; height: 12px;
  border-color: rgba(255,193,74,.7); border-style: solid;
}
.ops-panel__corners i:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.ops-panel__corners i:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.ops-panel__corners i:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.ops-panel__corners i:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.ops-panel--form { padding: 1.25rem 1.2rem 1.3rem; }
.ops-form { position: relative; z-index: 1; display: grid; gap: .95rem; }
.ops-form .gate-input {
  border-radius: 0;
  clip-path: var(--clip-sm);
}
.ops-form .gate-control__ico::after { right: 12px; }

.avatar-pick {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.avatar-current {
  position: relative;
  z-index: 1;
  margin-bottom: 1.15rem;
}
.avatar-current__btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: .95rem;
  width: 100%;
  margin: 0;
  padding: .85rem .9rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(28, 18, 12, .92), rgba(8, 10, 16, .96)),
    radial-gradient(ellipse 80% 70% at 12% 40%, rgba(255, 122, 40, .18), transparent 70%);
  border: 1px solid rgba(255, 138, 76, .35);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .45) inset,
    0 12px 28px rgba(0, 0, 0, .35),
    0 0 22px rgba(255, 90, 20, .12);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.avatar-current__btn:hover {
  border-color: rgba(255, 193, 74, .65);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .45) inset,
    0 16px 32px rgba(0, 0, 0, .4),
    0 0 28px rgba(255, 122, 40, .22);
}
.avatar-current__glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse 50% 45% at 20% 50%, rgba(255, 160, 60, .22), transparent 70%);
  pointer-events: none;
  animation: softGlowPulse 3.2s ease-in-out infinite;
}
.avatar-current__frame {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 138, 76, .65);
  background: #05070f;
  box-shadow:
    0 0 18px rgba(255, 90, 20, .35),
    inset 0 0 12px rgba(0, 0, 0, .55);
}
.avatar-current__ring {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(255, 193, 74, .45);
  border-radius: 16px;
  animation: logoSpin 10s linear infinite;
  pointer-events: none;
}
.avatar-current__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-current__meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .18rem;
  min-width: 0;
  flex: 1;
}
.avatar-current__kicker {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .42rem;
  letter-spacing: .16em;
  color: #7af8ef;
  text-shadow: 0 0 10px rgba(0, 240, 224, .35);
}
.avatar-current__kicker i {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: #7af8ef;
  box-shadow: 0 0 8px rgba(0, 240, 224, .7);
}
.avatar-current__meta strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}
.avatar-current__meta em {
  font-style: normal;
  font-size: .82rem;
  color: #9aabc4;
}
.avatar-current__cta {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #ffc14a;
  background: rgba(255, 122, 40, .12);
  border: 1px solid rgba(255, 193, 74, .35);
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.ops-form--name { gap: .55rem; }
.profile-name-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .45rem;
}
.profile-name-row {
  display: flex;
  align-items: stretch;
  gap: .65rem;
  width: 100%;
}
.profile-name-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.profile-name-field__ico {
  position: absolute;
  left: 12px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #ffc14a;
  filter: drop-shadow(0 0 6px rgba(255, 193, 74, .45));
  pointer-events: none;
}
.profile-name-field__ico svg { width: 100%; height: 100%; display: block; }
.profile-name-field .gate-input {
  width: 100%;
  min-height: 52px;
  padding-left: 2.55rem;
  border: 1px solid rgba(255, 138, 76, .35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 40%),
    rgba(6, 8, 14, .88);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .4) inset,
    0 8px 18px rgba(0, 0, 0, .25);
}
.profile-name-field .gate-input:focus {
  border-color: rgba(255, 193, 74, .7);
  outline: none;
  box-shadow:
    0 0 0 1px rgba(255, 122, 40, .25),
    0 0 18px rgba(255, 90, 20, .2);
}

.profile-save-btn {
  --ps-hi: #ff7a28;
  --ps-lo: #c42808;
  --ps-accent: #ffc14a;
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 118px;
  min-height: 52px;
  padding: 0 .95rem 0 .8rem;
  border: 1px solid color-mix(in srgb, var(--ps-accent) 55%, var(--ps-hi));
  color: #fff8f0;
  cursor: pointer;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 30%),
    linear-gradient(165deg, #2a1610 0%, #120808 55%, #080404 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .16) inset,
    0 -10px 18px rgba(0, 0, 0, .45) inset,
    0 8px 0 #120402,
    0 14px 22px rgba(0, 0, 0, .45),
    0 0 18px rgba(255, 90, 20, .35);
  transition: transform .16s ease, filter .16s ease;
}
.profile-save-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.profile-save-btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 -8px 14px rgba(0, 0, 0, .5) inset,
    0 4px 0 #120402,
    0 8px 14px rgba(0, 0, 0, .4),
    0 0 14px rgba(255, 90, 20, .3);
}
.profile-save-btn__skin {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 20% 40%, rgba(255, 122, 40, .28), transparent 70%),
    radial-gradient(ellipse 80% 70% at 85% 70%, rgba(196, 40, 8, .2), transparent 68%);
}
.profile-save-btn__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 193, 74, .28) 50%, transparent 62%);
  background-size: 220% 100%;
  animation: gateBtnScan 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.profile-save-btn__ico {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffc14a, #ff6a2a);
  color: #1a0a04;
  box-shadow: 0 0 12px rgba(255, 122, 40, .55);
}
.profile-save-btn__ico svg { width: 14px; height: 14px; display: block; }
.profile-save-btn__txt {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .05rem;
  text-align: left;
  line-height: 1.05;
}
.profile-save-btn__txt em {
  font-style: normal;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .38rem;
  letter-spacing: .16em;
  color: #ffc14a;
  text-shadow: 0 0 8px rgba(255, 193, 74, .45);
}
.profile-save-btn__txt strong {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.avatar-modal {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(620px, calc(100vw - 1.5rem));
  width: 100%;
}
.avatar-modal::backdrop {
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(255, 90, 20, .12), transparent 65%),
    rgba(3, 5, 10, .78);
  backdrop-filter: blur(8px);
}
.avatar-modal__card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(22, 16, 14, .98), rgba(6, 8, 14, .99)),
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(255, 122, 40, .16), transparent 55%);
  border: 1px solid rgba(255, 138, 76, .4);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  padding: 1.25rem 1.15rem 1.3rem;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .5) inset,
    0 28px 70px rgba(0, 0, 0, .65),
    0 0 40px rgba(255, 90, 20, .18);
}
.avatar-modal__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 193, 74, .08) 50%, transparent 60%);
  background-size: 240% 100%;
  animation: gateBtnScan 4s ease-in-out infinite;
  mix-blend-mode: screen;
}
.avatar-modal__hex {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 75%);
}
.avatar-modal__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.avatar-modal__corners i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(255, 193, 74, .7);
  border-style: solid;
}
.avatar-modal__corners i:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.avatar-modal__corners i:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.avatar-modal__corners i:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.avatar-modal__corners i:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.avatar-modal__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: .55rem;
}
.avatar-modal__titles { min-width: 0; }
.avatar-modal__kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .35rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .48rem;
  letter-spacing: .18em;
  color: #7af8ef;
  text-shadow: 0 0 12px rgba(0, 240, 224, .4);
}
.avatar-modal__kicker i {
  width: 7px;
  height: 7px;
  background: #7af8ef;
  box-shadow: 0 0 10px rgba(0, 240, 224, .8);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.avatar-modal__head h2 {
  margin: 0;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 1.15rem;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
.avatar-modal__head h2 em {
  font-style: normal;
  color: #ff8a4c;
  text-shadow: 0 0 18px rgba(255, 90, 20, .45);
}
.avatar-modal__hint {
  margin: .35rem 0 0;
  color: #9aabc4;
  font-size: .86rem;
  line-height: 1.35;
  max-width: 36ch;
}
.avatar-modal__close {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 138, 76, .4);
  color: #ffc14a;
  background:
    linear-gradient(145deg, rgba(40, 20, 12, .95), rgba(10, 8, 12, .98));
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  box-shadow: 0 0 14px rgba(255, 90, 20, .15);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.avatar-modal__close:hover {
  border-color: rgba(255, 193, 74, .7);
  color: #fff;
}
.avatar-modal__rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .35rem 0 .95rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .42rem;
  letter-spacing: .16em;
  color: rgba(255, 193, 74, .7);
}
.avatar-modal__rail i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 76, .45), transparent);
}
.avatar-pick__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: .75rem;
}
.avatar-pick__grid--modal {
  max-height: min(58vh, 440px);
  overflow: auto;
  padding: .15rem .2rem .35rem 0;
}
.avatar-pick__card {
  position: relative;
  display: grid;
  gap: .38rem;
  justify-items: center;
  margin: 0;
  padding: .7rem .45rem .75rem;
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(16, 14, 20, .92), rgba(6, 8, 14, .96));
  border: 1px solid rgba(255, 255, 255, .1);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35) inset,
    0 10px 20px rgba(0, 0, 0, .3);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.avatar-pick__card:hover {
  border-color: rgba(255, 193, 74, .5);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35) inset,
    0 14px 26px rgba(0, 0, 0, .4),
    0 0 20px rgba(255, 122, 40, .18);
}
.avatar-pick__card.is-selected {
  border-color: rgba(255, 106, 42, .85);
  box-shadow:
    0 0 0 1px rgba(255, 106, 42, .35),
    0 0 22px rgba(255, 77, 42, .28),
    0 12px 24px rgba(0, 0, 0, .4);
}
.avatar-pick__glow {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 122, 40, .28), transparent 60%);
  transition: opacity .2s ease;
}
.avatar-pick__card:hover .avatar-pick__glow,
.avatar-pick__card.is-selected .avatar-pick__glow { opacity: 1; }
.avatar-pick__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .38rem;
  letter-spacing: .12em;
  color: #7af8ef;
  text-shadow: 0 0 8px rgba(0, 240, 224, .45);
}
.avatar-pick__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .14);
  background: #05070f;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, .45),
    inset 0 0 10px rgba(0, 0, 0, .4);
  transform: perspective(420px) rotateX(4deg);
}
.avatar-pick__card.is-selected .avatar-pick__frame {
  border-color: rgba(255, 138, 76, .85);
  box-shadow:
    0 0 18px rgba(255, 90, 20, .4),
    0 8px 16px rgba(0, 0, 0, .45);
}
.avatar-pick__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-pick__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .55rem;
  letter-spacing: .08em;
  color: #e8eef8;
  font-weight: 700;
}
.avatar-pick__desc {
  position: relative;
  z-index: 1;
  font-size: .72rem;
  line-height: 1.25;
  color: #9aabc4;
}
.avatar-pick__sel {
  position: relative;
  z-index: 1;
  display: none;
  margin-top: .1rem;
  padding: .15rem .4rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .36rem;
  letter-spacing: .14em;
  color: #1a0a04;
  background: linear-gradient(120deg, #ffc14a, #ff6a2a);
  box-shadow: 0 0 12px rgba(255, 122, 40, .45);
}
.avatar-pick__card.is-selected .avatar-pick__sel { display: inline-block; }

.ops-list { position: relative; z-index: 1; display: grid; gap: .55rem; }
.ops-empty { position: relative; z-index: 1; display: grid; gap: .75rem; justify-items: start; padding: .4rem 0; }
.ops-row {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .8rem .9rem;
  border-radius: 14px;
  background: rgba(8,12,20,.65);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid #ff6b86;
}
.ops-row--win { border-left-color: #5dffb0; }
.ops-row__main { display: grid; gap: .12rem; min-width: 0; }
.ops-row__main strong { color: #fff; letter-spacing: .05em; }
.ops-row__main span, .ops-row__main em { color: #a8b8d0; font-size: .9rem; font-style: normal; }
.ops-row__pill {
  flex-shrink: 0;
  padding: .35rem .55rem;
  border-radius: 999px;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .12em;
  color: #1a0a04;
  background: linear-gradient(120deg, #ffb0c0, #ff6b86);
}
.ops-row--win .ops-row__pill { background: linear-gradient(120deg, #c8ffe0, #5dffb0); }
.ops-empty h3 { margin: 0; color: #fff; }
.ops-empty p { margin: 0; color: #aebcd2; }


/* ===== DASHBOARD (restored) ===== */
.dash-page .space-bg,
.hist-page .space-bg,
.profile-page .space-bg,
.lobby-page .space-bg,
.premium-page .space-bg { opacity: .08; }
.dash {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + 1.1rem) 1.1rem 2.2rem;
  overflow-x: hidden;
  overflow-y: auto;
}
.dash__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.25) brightness(.72) contrast(1.06);
  transform: scale(1.04);
  animation: ken 20s ease-in-out infinite alternate;
}
.dash__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(2,4,10,.78) 0%, rgba(40,14,4,.26) 45%, rgba(2,4,10,.8) 100%),
    linear-gradient(180deg, rgba(2,4,10,.3), rgba(2,4,10,.68));
}
.dash__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,140,40,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,224,.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .4;
}
.dash__dust {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,193,74,.75), transparent),
    radial-gradient(1.5px 1.5px at 70% 55%, rgba(0,240,224,.65), transparent);
  opacity: .7;
  animation: gateDust 14s linear infinite;
}
.dash__wrap {
  position: relative; z-index: 2;
  width: min(100%, 1080px);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.dash-hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .7rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  font-family: var(--font-d);
  font-size: .44rem;
  letter-spacing: .16em;
  color: #1a0a04;
  background: linear-gradient(115deg, #fff, #ffc14a 50%, #ff6a2a);
  box-shadow: 0 0 18px rgba(255,140,40,.35);
}
.dash-hero__kicker i {
  width: 6px; height: 6px; border-radius: 50%; background: #1a0a04;
  animation: blink 1.3s ease-in-out infinite;
}
.dash-hero__kicker b {
  padding: .2rem .4rem;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: .36rem;
}
.dash-hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.dash-hero__title {
  margin: 0 0 .3rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: .04em;
  color: #fff;
}
.dash-hero__title span {
  background: linear-gradient(100deg, #fff, #ffc14a 50%, #ff6a2a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-hero__lead { margin: 0; color: #d5e0f2; font-size: 1.05rem; }
.dash-pro {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-d);
  font-size: .52rem;
  letter-spacing: .12em;
  padding: .18rem .42rem;
  border-radius: 999px;
  color: #1a0a04;
  background: linear-gradient(120deg, #fff, #ffc14a);
}

.dash-cta {
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  min-height: 54px;
  padding: .7rem .95rem;
  text-decoration: none;
  color: #fff;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(165deg, #1e100c 0%, #0c0808 55%, #050303 100%);
  border: 1px solid rgba(255,170,50,.65);
  box-shadow:
    0 8px 0 #140604,
    0 0 26px rgba(255,90,20,.35),
    inset 0 1px 0 rgba(255,255,255,.1);
  overflow: hidden;
}
.dash-cta__skin {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 95% 110% at 18% 50%, rgba(255,140,40,.28), transparent 70%),
    radial-gradient(ellipse 70% 80% at 80% 40%, rgba(255,193,74,.12), transparent 68%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, auto, 10px 10px;
}
.dash-cta__ico {
  position: relative; z-index: 1;
  width: 36px; height: 36px; flex-shrink: 0;
  display: grid; place-items: center;
  clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
  color: #ffc14a;
  background: linear-gradient(145deg, rgba(40,20,12,.98), rgba(8,6,6,.99));
  border: 1px solid rgba(255,193,74,.55);
  box-shadow: 0 0 16px rgba(255,140,40,.4), inset 0 1px 0 rgba(255,255,255,.12);
}
.dash-cta__ico svg { width: 18px; height: 18px; display: block; filter: drop-shadow(0 0 6px rgba(255,193,74,.55)); }
.dash-cta__txt { position: relative; z-index: 1; display: grid; gap: .08rem; }
.dash-cta__txt em {
  font-style: normal; font-family: var(--font-d); font-size: .36rem; letter-spacing: .14em; color: #ffc14a;
  text-shadow: 0 0 10px rgba(255,193,74,.5);
}
.dash-cta__txt strong {
  font-family: var(--font-d); font-size: .72rem; letter-spacing: .1em; color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.75);
}
.dash-cta:hover { transform: translateY(-2px); filter: brightness(1.1); }
.dash-cta--sm { min-height: 42px; padding: .5rem .85rem; }
.dash-cta--sm strong { position: relative; z-index: 1; font-family: var(--font-d); letter-spacing: .12em; color: #fff; }

.dash-id {
  position: relative;
  display: flex; align-items: center; gap: .95rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(18,12,10,.96), rgba(5,7,12,.98) 60%, rgba(4,6,10,.99));
  border: 1px solid rgba(255,140,40,.38);
  box-shadow:
    0 18px 40px rgba(0,0,0,.42),
    0 0 28px rgba(255,140,40,.1),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.dash-id--cyan { border-color: rgba(0,240,224,.38); box-shadow: 0 18px 40px rgba(0,0,0,.42), 0 0 28px rgba(0,240,224,.1), inset 0 1px 0 rgba(255,255,255,.06); }
.dash-id__shine {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,140,40,.14), transparent 42%),
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.015) 3px, rgba(255,255,255,.015) 4px);
}
.dash-id__frame {
  position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; pointer-events: none;
}
.dash-id__corners {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.dash-id__corners i {
  position: absolute; width: 14px; height: 14px;
  border-color: #ffc14a; border-style: solid;
  filter: drop-shadow(0 0 6px rgba(255,193,74,.45));
}
.dash-id--cyan .dash-id__corners i { border-color: #7af8ef; filter: drop-shadow(0 0 6px rgba(0,240,224,.45)); }
.dash-id__corners i:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.dash-id__corners i:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.dash-id__corners i:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.dash-id__corners i:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.dash-id .unit-pod { flex-shrink: 0; position: relative; z-index: 1; }
.dash-id__copy { position: relative; z-index: 1; display: grid; gap: .22rem; min-width: 0; }
.dash-id__copy strong { font-size: 1.2rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.dash-id__copy > span { color: #c5d0e2; font-size: .94rem; }
.dash-id__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.dash-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .12em;
  color: #ffc14a;
  background: rgba(8,10,14,.75);
  border: 1px solid rgba(255,140,40,.4);
  box-shadow: 0 0 12px rgba(255,140,40,.12);
}
.dash-id--cyan .dash-chip { color: #7af8ef; background: rgba(8,10,14,.75); border-color: rgba(0,240,224,.4); }
.dash-chip b { color: #fff; font-size: .72rem; letter-spacing: .04em; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .65rem;
}
.dash-stat {
  --sc: #ffc14a;
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem .9rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 85% 90% at 18% 50%, color-mix(in srgb, var(--sc) 14%, transparent), transparent 72%),
    linear-gradient(150deg, rgba(12,14,22,.97), rgba(5,7,12,.98));
  border: 1px solid color-mix(in srgb, var(--sc) 35%, rgba(255,255,255,.08));
  box-shadow: 0 12px 28px rgba(0,0,0,.32), 0 0 18px color-mix(in srgb, var(--sc) 10%, transparent);
  overflow: hidden;
}
.dash-stat--elo { --sc: #ffc14a; }
.dash-stat--win { --sc: #5dffb0; }
.dash-stat--loss { --sc: #ff5d7a; }
.dash-stat--rank { --sc: #7af8ef; }
.dash-stat__glow {
  position: absolute; inset: -40%;
  background:
    radial-gradient(ellipse 50% 55% at 22% 45%, color-mix(in srgb, var(--sc) 36%, transparent), transparent 68%),
    radial-gradient(ellipse 40% 45% at 78% 55%, color-mix(in srgb, var(--sc) 16%, transparent), transparent 70%);
  pointer-events: none;
  animation: softGlowPulse 3s ease-in-out infinite;
}
.dash-stat__ico {
  position: relative; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0;
  border-radius: 12px;
  color: var(--sc);
  background: linear-gradient(145deg, rgba(20,22,30,.95), rgba(8,10,14,.98));
  border: 1px solid color-mix(in srgb, var(--sc) 50%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--sc) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
}
.dash-stat__ico svg { width: 17px; height: 17px; display: block; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--sc) 50%, transparent)); }
.dash-stat em {
  position: relative; z-index: 1;
  display: block; font-style: normal; font-family: var(--font-d);
  font-size: .38rem; letter-spacing: .14em; color: #b8c6da;
}
.dash-stat strong {
  position: relative; z-index: 1;
  font-family: var(--font-d); font-size: 1.3rem; letter-spacing: .04em; color: #fff;
  text-shadow: 0 0 16px color-mix(in srgb, var(--sc) 25%, transparent);
}

.dash-grid { display: grid; gap: .85rem; }
.dash-panel {
  position: relative;
  padding: 1.1rem 1.1rem 1.15rem;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(14,16,26,.97), rgba(5,7,12,.98));
  border: 1px solid rgba(255,140,40,.3);
  box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 24px rgba(255,140,40,.08);
  overflow: hidden;
}
.dash-panel::before {
  content: "";
  position: absolute; top: 0; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, #ffc14a, #ff6a2a, transparent);
  box-shadow: 0 0 12px rgba(255,193,74,.45);
}
.dash-panel__scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,193,74,.08) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: gateBtnScan 4s ease-in-out infinite;
}
.dash-panel__corners {
  position: absolute; inset: 0; pointer-events: none;
}
.dash-panel__corners i {
  position: absolute; width: 12px; height: 12px;
  border-color: rgba(255,193,74,.7); border-style: solid;
}
.dash-panel__corners i:nth-child(1) { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.dash-panel__corners i:nth-child(2) { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.dash-panel__corners i:nth-child(3) { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.dash-panel__corners i:nth-child(4) { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.dash-panel__head { position: relative; z-index: 1; margin-bottom: .85rem; }
.dash-panel__eyebrow {
  margin: 0 0 .2rem;
  font-family: var(--font-d); font-size: .38rem; letter-spacing: .16em; color: #ffc14a;
  text-shadow: 0 0 10px rgba(255,193,74,.35);
}
.dash-panel__head h2 {
  margin: 0; font-size: 1.2rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.dash-actions { position: relative; z-index: 1; display: grid; gap: .55rem; }
.dash-action {
  --a: #ffc14a;
  position: relative;
  display: flex; align-items: center; gap: .65rem;
  padding: .72rem .78rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  text-decoration: none;
  background:
    radial-gradient(ellipse 80% 120% at 10% 50%, color-mix(in srgb, var(--a) 16%, transparent), transparent 70%),
    linear-gradient(120deg, rgba(6,8,14,.96), rgba(4,6,10,.94));
  border: 1px solid color-mix(in srgb, var(--a) 40%, rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 14px color-mix(in srgb, var(--a) 8%, transparent);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
}
.dash-action--play { --a: #ff6a2a; }
.dash-action--hist { --a: #3aa0ff; }
.dash-action--profile { --a: #7af8ef; }
.dash-action__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 100% at 15% 50%, color-mix(in srgb, var(--a) 22%, transparent), transparent 72%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, 11px 11px;
  opacity: .9;
}
.dash-action:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--a) 65%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--a) 28%, transparent);
}
.dash-action__ico {
  position: relative; z-index: 1;
  width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0;
  clip-path: polygon(16% 0, 100% 0, 100% 84%, 84% 100%, 0 100%, 0 16%);
  color: var(--a);
  background: linear-gradient(145deg, rgba(14,16,24,.98), rgba(4,6,10,.99));
  border: 1px solid color-mix(in srgb, var(--a) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--a) 35%, transparent);
}
.dash-action__ico svg { width: 15px; height: 15px; display: block; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--a) 55%, transparent)); }
.dash-action span:not(.dash-action__ico):not(.dash-action__glow) { position: relative; z-index: 1; flex: 1; min-width: 0; }
.dash-action strong { display: block; color: #fff; font-size: 1rem; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.dash-action em {
  display: block; font-style: normal; font-family: var(--font-d);
  font-size: .34rem; letter-spacing: .12em; color: var(--a);
}
.dash-action__chev {
  position: relative; z-index: 1;
  width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid var(--a);
  border-top: 2px solid var(--a);
  transform: rotate(45deg);
  opacity: .55;
}
.dash-action:hover .dash-action__chev { opacity: 1; }

.dash-matches { position: relative; z-index: 1; display: grid; gap: .5rem; }
.dash-match {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: rgba(6,8,14,.78);
  border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid #ff5d7a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.dash-match--win { border-left-color: #5dffb0; }
.dash-match strong { display: block; color: #fff; letter-spacing: .05em; }
.dash-match span { color: #a8b8d0; font-size: .88rem; }
.dash-match__pill {
  font-family: var(--font-d); font-size: .38rem; letter-spacing: .12em;
  padding: .32rem .52rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #5a1828, #ff5d7a);
  border: 1px solid rgba(255,140,160,.35);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.dash-match--win .dash-match__pill {
  background: linear-gradient(120deg, #0e3a28, #5dffb0);
  border-color: rgba(120,255,190,.35);
  color: #04140e;
}
.dash-empty { position: relative; z-index: 1; display: grid; gap: .75rem; justify-items: start; padding: .35rem 0; }
.dash-empty p { margin: 0; color: #c0cbdc; }

@media (min-width: 901px) {
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
  .dash-grid { grid-template-columns: .95fr 1.05fr; }
}


/* Premium fits app-shell — centro óptico (não grudado no topo) */
body.app-shell.premium-page .premx {
  justify-content: center !important;
  padding-inline: 1rem !important;
  padding-top: calc(var(--nav) + .4rem) !important;
  padding-bottom: clamp(1.5rem, 6vh, 3.5rem) !important;
}
body.app-shell.premium-page .premx__wrap {
  flex: 0 1 auto !important;
  max-height: 100%;
  width: min(100%, 1180px) !important;
  align-content: center !important;
  justify-items: center !important;
  margin: 0 auto !important;
  overflow: visible !important;
}
body.app-shell.premium-page .premx-deck {
  width: 100%;
  justify-items: stretch;
}
body.app-shell.premium-page .premx-hero {
  width: 100%;
  justify-items: center;
}


/* ===== OPS CENTER — Lobby ===== */
.lobby-page .foot { display: none; }
.opsx {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + .55rem) 1rem .75rem;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.opsx__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.2) brightness(.52) contrast(1.12);
  transform: scale(1.03);
  animation: ken 26s ease-in-out infinite alternate;
}
.opsx__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(115deg, rgba(2,4,10,.86) 0%, rgba(28,10,4,.32) 48%, rgba(2,8,12,.88) 100%),
    linear-gradient(180deg, rgba(2,4,10,.4), rgba(2,4,10,.78));
}
.opsx__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .28;
  background-image:
    linear-gradient(rgba(0,240,224,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,140,40,.04) 1px, transparent 1px);
  background-size: 26px 26px;
}
.opsx__wrap {
  position: relative; z-index: 2;
  width: min(100%, 1100px);
  margin: auto;
  display: grid;
  gap: .75rem;
  align-content: center;
  justify-items: stretch;
}

.opsx-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .45rem;
}
.opsx-hero__kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .18em;
  color: #ffc14a;
  text-shadow: 0 0 12px rgba(255,193,74,.4);
}
.opsx-hero__kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffc14a; box-shadow: 0 0 10px #ffc14a;
  animation: blink 1.3s ease-in-out infinite;
}
.opsx-hero__title {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}
.opsx-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #fff, #ffc14a 50%, #ff6a2a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.opsx-hero__live {
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
  margin-top: .15rem;
}
.opsx-live {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .55rem;
  font-family: var(--font-d); font-size: .38rem; letter-spacing: .16em;
  color: #041416;
  background: linear-gradient(120deg, #9afcf4, #5dffb0);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.opsx-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #041416;
  animation: blink 1s ease-in-out infinite;
}
.opsx-ranked {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .65rem;
  font-family: var(--font-d); font-size: .34rem; letter-spacing: .12em;
  color: #d5e0f2;
  background: rgba(4,8,14,.82);
  border: 1px solid rgba(255,160,60,.35);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.opsx-ranked strong {
  color: #ffc14a; font-size: .82rem; letter-spacing: .04em;
}

.opsx-alert {
  padding: .55rem .8rem;
  color: #ffe4e8;
  background: linear-gradient(120deg, rgba(80,12,22,.92), rgba(20,6,10,.95));
  border: 1px solid rgba(255,100,120,.45);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.opsx-missions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
@media (min-width: 1100px) {
  .opsx-missions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.opsx-card {
  --c: #ffc14a;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  color: inherit;
  background: linear-gradient(160deg, rgba(10,12,20,.98), rgba(4,6,12,.99));
  border: 1px solid color-mix(in srgb, var(--c) 42%, rgba(255,255,255,.08));
  box-shadow: 0 16px 36px rgba(0,0,0,.4), 0 0 20px color-mix(in srgb, var(--c) 12%, transparent);
  clip-path: none;
  border-radius: 14px;
  min-height: 0;
  height: auto;
  flex-shrink: 0;
}
.opsx-card--ember { --c: #ff6a2a; }
.opsx-card--cyan { --c: #00f0e0; }
.opsx-card--gold { --c: #ffc14a; }
.opsx-card__art {
  position: relative;
  display: grid; place-items: center;
  background-size: cover; background-position: center 40%;
  overflow: hidden;
  padding: 16px 0 0;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 120px;
  height: 132px;
  border-radius: 14px 14px 0 0;
}
.opsx-card__art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 30%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
  pointer-events: none;
}
.opsx-card__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4,6,12,.15) 0%,
    transparent 28%,
    rgba(4,6,12,.35) 55%,
    rgba(4,6,12,.78) 78%,
    rgba(4,6,12,.98) 100%
  );
}
.opsx-card__art .unit-pod {
  position: relative; z-index: 2;
  margin-bottom: -24px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.5));
}
.opsx-card__art .unit-pod__ring {
  inset: -8px;
}
.opsx-card__art .unit-pod img {
  animation: opsxFloat 3.4s ease-in-out infinite;
}
@keyframes opsxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.opsx-card__body {
  position: relative; z-index: 2;
  display: grid; gap: .28rem; align-content: start; justify-items: center;
  text-align: center;
  margin-top: -18px;
  padding: 1.55rem .85rem .85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(4,6,12,.72) 18%, rgba(4,6,12,.98) 42%);
  flex: 0 0 auto;
  min-height: auto;
  height: auto;
  overflow: hidden;
}
.opsx-card__tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--font-d); font-size: .34rem; letter-spacing: .14em;
  color: var(--c);
  text-shadow: 0 0 10px color-mix(in srgb, var(--c) 40%, transparent);
}
.opsx-card__tag b {
  color: #1a0a04;
  background: linear-gradient(120deg, #fff, #ffc14a);
  padding: .08rem .28rem;
  font-size: .3rem;
}
.opsx-card__body h2 {
  margin: 0;
  font-size: 1.12rem;
  color: #fff;
}
.opsx-card__body p {
  margin: 0 0 .2rem;
  color: #b0bfd4;
  font-size: .88rem;
  line-height: 1.35;
}
.opsx-card--soon .opsx-btn[disabled] {
  opacity: 1;
  cursor: not-allowed;
  filter: none;
  color: #041416;
  border-color: rgba(0, 240, 224, .65);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(165deg, rgba(0, 80, 78, .95), rgba(0, 28, 32, .98));
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 0 18px rgba(0, 240, 224, .28);
}
.opsx-card--soon .opsx-btn[disabled] strong {
  color: #7af8ef;
  text-shadow: 0 0 12px rgba(0, 240, 224, .45);
}
.opsx-card--soon .opsx-card__body p {
  min-height: 2.7em;
}

.opsx-btn {
  --b: #ffc14a;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: .15rem;
  padding: .5rem .75rem;
  border: 1px solid color-mix(in srgb, var(--b) 55%, transparent);
  color: #fff;
  cursor: pointer;
  background: linear-gradient(165deg, rgba(18,12,10,.98), rgba(6,4,6,.99));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 16px color-mix(in srgb, var(--b) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
  transition: transform .15s ease, filter .15s ease;
}
.opsx-btn--ember { --b: #ff6a2a; }
.opsx-btn--cyan { --b: #00f0e0; }
.opsx-btn--gold { --b: #ffc14a; }
.opsx-btn--ghost {
  --b: #ffc14a;
  background: linear-gradient(165deg, rgba(12,14,22,.92), rgba(4,6,12,.96));
}
.opsx-btn__skin {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 110% 140% at 50% -10%, color-mix(in srgb, var(--b) 32%, transparent), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--b) 14%, transparent), transparent 58%);
}
.opsx-btn strong {
  position: relative; z-index: 1;
  font-family: var(--font-d);
  font-size: .58rem;
  letter-spacing: .14em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
}
.opsx-btn:hover { transform: translateY(-1px); filter: brightness(1.1); }
.opsx-btn--sm { min-height: 40px; width: auto; min-width: 132px; padding-inline: 1rem; }
.opsx-btn--xs { min-height: 34px; width: auto; min-width: 0; padding: .35rem .65rem; }
.opsx-btn--xs strong { font-size: .48rem; }

.opsx-tools {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: .7rem;
  align-items: stretch;
}
.opsx-tool {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem .8rem;
  align-items: center;
  margin: 0;
  padding: .75rem .9rem;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: linear-gradient(155deg, rgba(10,12,20,.96), rgba(4,6,12,.98));
  border: 1px solid rgba(255,160,60,.28);
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font: inherit;
}
.opsx-tool--join {
  border-color: rgba(0,240,224,.35);
  grid-template-columns: auto 1fr auto;
}
.opsx-tool--private {
  border-color: rgba(255,193,74,.32);
  grid-template-columns: 1fr auto;
}
.opsx-tool:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.38), 0 0 18px rgba(255,160,60,.12);
}
.opsx-tool__copy { display: grid; gap: .12rem; min-width: 0; }
.opsx-tool__copy p {
  margin: 0;
  font-family: var(--font-d); font-size: .32rem; letter-spacing: .16em;
  color: #ffc14a;
}
.opsx-tool--join .opsx-tool__copy p { color: #7af8ef; }
.opsx-tool__copy h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}
.opsx-tool__copy span {
  color: #a8b8d0;
  font-size: .86rem;
  line-height: 1.3;
}
.opsx-field { display: grid; gap: .22rem; min-width: 0; text-align: left; }
.opsx-field span {
  font-family: var(--font-d); font-size: .3rem; letter-spacing: .12em; color: #9eb0c8;
}
.opsx-input {
  width: 100%;
  min-height: 40px;
  padding: .45rem .75rem;
  border: 1px solid rgba(0,240,224,.38);
  color: #fff;
  background: rgba(4,8,14,.88);
  font-family: var(--font-d);
  letter-spacing: .14em;
  text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  outline: none;
}
.opsx-input:focus {
  border-color: rgba(0,240,224,.75);
  box-shadow: 0 0 14px rgba(0,240,224,.2);
}

/* Private rooms modal — compact HUD */
.privx {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(94vw, 640px);
  width: 100%;
  max-height: calc(100dvh - 16px);
  background: transparent;
  color: #f2f7ff;
  overflow: hidden;
}
.privx[open] {
  display: flex;
  flex-direction: column;
}
.privx::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
}
/* Prevent bare SVGs from exploding to browser default ~300px */
.privx svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
}
.privx__hull {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 16px);
  padding: 1rem 1.05rem calc(1.05rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(165deg, #152033 0%, #0a101c 48%, #0c0a12 100%);
  border: 1px solid rgba(0, 240, 224, .45);
  border-radius: 0;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow:
    0 0 0 1px rgba(255, 170, 60, .2),
    0 8px 0 rgba(0, 0, 0, .32),
    0 22px 48px rgba(0, 0, 0, .7),
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(0, 240, 224, .12);
  overflow: hidden;
}
.privx__hull::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(0, 240, 224, .1), transparent 40%),
    linear-gradient(300deg, rgba(255, 140, 40, .08), transparent 45%);
  opacity: .9;
}
.privx__edge {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}
.privx__edge--tl {
  top: 6px; left: 6px;
  border-top: 2px solid #00f0e0;
  border-left: 2px solid #00f0e0;
  box-shadow: -2px -2px 10px rgba(0, 240, 224, .35);
}
.privx__edge--br {
  right: 6px; bottom: 6px;
  border-right: 2px solid #ffc14a;
  border-bottom: 2px solid #ffc14a;
  box-shadow: 2px 2px 10px rgba(255, 193, 74, .3);
}
.privx__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(0, 240, 224, .025) 3px 4px
  );
  opacity: .55;
  z-index: 0;
}
.privx__head,
.privx-rail,
.privx__body,
.privx-dock,
.privx__limit {
  position: relative;
  z-index: 1;
}
.privx__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-shrink: 0;
}
.privx__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}

/* Vault seal — dark metal lock emblem */
.privx__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: #ffc14a;
  background:
    radial-gradient(circle at 35% 30%, #3a2a14 0%, #120c08 55%, #050304 100%);
  border: 1px solid rgba(255, 193, 74, .55);
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(8, 6, 4, .95),
    0 0 0 4px rgba(255, 160, 40, .35),
    0 0 22px rgba(255, 140, 30, .35),
    inset 0 2px 6px rgba(255, 220, 140, .18),
    inset 0 -4px 10px rgba(0, 0, 0, .65);
}
.privx__seal svg {
  position: relative;
  z-index: 2;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  filter: drop-shadow(0 0 6px rgba(255, 193, 74, .55));
}
.privx__seal-ring {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 193, 74, .28);
  border-radius: 50%;
  animation: privxSealSpin 12s linear infinite;
}
.privx__seal-ring--inner {
  inset: 10px;
  border-color: rgba(255, 140, 40, .22);
  animation-direction: reverse;
  animation-duration: 8s;
}
.privx__seal-bolt {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe2a0, #b8731a);
  box-shadow: 0 0 4px rgba(255, 180, 60, .6);
  z-index: 1;
}
.privx__seal-bolt--a { top: 4px; left: 50%; transform: translateX(-50%); }
.privx__seal-bolt--b { bottom: 4px; left: 50%; transform: translateX(-50%); }
.privx__seal-bolt--c { left: 4px; top: 50%; transform: translateY(-50%); }
.privx__seal-bolt--d { right: 4px; top: 50%; transform: translateY(-50%); }
@keyframes privxSealSpin {
  to { transform: rotate(360deg); }
}

.privx__eyebrow {
  margin: 0;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .16em;
  color: #ffc14a;
  text-shadow: 0 0 10px rgba(255, 193, 74, .45);
}
.privx__head h2 {
  margin: .05rem 0 0;
  font-size: clamp(1.15rem, 2.6vw, 1.4rem);
  color: #fff;
  letter-spacing: .04em;
}
.privx__meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.privx__slots {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .55rem;
  font-family: var(--font-d);
  font-size: .7rem;
  letter-spacing: .06em;
  color: #ffe7b0;
  background: rgba(28, 16, 6, .9);
  border: 1px solid rgba(255, 193, 74, .45);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.privx__slots svg { color: #ffc14a; }
.privx__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 110, 120, .5);
  background: linear-gradient(160deg, #4a1420, #1a080c);
  color: #ffc0c6;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 8px);
  box-shadow: 0 0 12px rgba(255, 60, 80, .2);
}
.privx__close:hover { filter: brightness(1.15); }

/* Timeline rail — NOT cards */
.privx-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  padding: .15rem 0 .35rem;
  list-style: none;
  flex-shrink: 0;
  position: relative;
}
.privx-rail::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffc14a 15%, #00f0e0 50%, #ff6a2a 85%, transparent);
  opacity: .55;
  z-index: 0;
}
.privx-rail__item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
  padding: 0 .25rem;
}
.privx-rail__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffd89a;
  background:
    radial-gradient(circle at 30% 25%, #2a1c0c, #0a0806 70%);
  border: 1px solid rgba(255, 193, 74, .55);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(6, 8, 12, .9),
    0 0 14px rgba(255, 160, 40, .25),
    inset 0 1px 0 rgba(255, 220, 150, .2);
}
.privx-rail__node b {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: .48rem;
  color: #041016;
  background: linear-gradient(145deg, #7af8ef, #00c8b8);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 240, 224, .45);
}
.privx-rail__node svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
}
.privx-rail__txt {
  display: grid;
  gap: .05rem;
}
.privx-rail__txt strong {
  font-family: var(--font-d);
  font-size: .62rem;
  letter-spacing: .12em;
  color: #ffc14a;
}
.privx-rail__txt span {
  font-family: var(--font-u);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #d8e4f6;
}

.privx__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.privx-dock,
.privx__limit {
  flex-shrink: 0;
}
.privx__section-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .14em;
  color: #8dffb8;
  flex-shrink: 0;
}
.privx__section-label svg { color: #8dffb8; }
.privx__list {
  display: grid;
  gap: .55rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none;
  padding: .1rem .15rem .15rem 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Room ticket — asymmetric, code-hero */
.privx-room {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .75rem .7rem .85rem;
  background:
    linear-gradient(120deg, rgba(18, 10, 6, .98) 0%, rgba(8, 14, 22, .98) 42%, rgba(4, 8, 14, .99) 100%);
  border: 0;
  border-left: 3px solid #ff6a2a;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .45),
    inset 0 0 0 1px rgba(255, 140, 40, .22),
    inset 0 1px 0 rgba(255, 200, 120, .08);
}
.privx-room__info {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}
.privx-room__main {
  display: grid;
  gap: .2rem;
  min-width: 0;
  width: 100%;
}
.privx-room__top {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.privx-room__main strong {
  color: #fff;
  font-size: .95rem;
  font-family: var(--font-d);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.privx-room__code-row {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}
.privx-room__code {
  margin: 0;
  padding: 0;
  font-family: var(--font-d);
  letter-spacing: .18em;
  color: #7af8ef;
  font-size: 1.05rem;
  font-weight: 800;
  background: none;
  text-shadow: 0 0 12px rgba(0, 240, 224, .35);
}
.privx-ico {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: color .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
}
.privx-ico svg { width: 15px; height: 15px; }
.privx-ico--copy {
  color: #7af8ef;
  border-color: rgba(0, 240, 224, .35);
  background: rgba(0, 40, 48, .35);
}
.privx-ico--copy:hover {
  color: #dffcff;
  border-color: rgba(0, 240, 224, .7);
  filter: brightness(1.15);
}
.privx-ico--copy.is-copied {
  color: #7dffb0;
  border-color: rgba(125, 255, 176, .6);
}
.privx-ico--del {
  color: #ff8a96;
  border-color: rgba(255, 110, 120, .35);
  background: rgba(40, 10, 14, .35);
}
.privx-ico--del:hover {
  color: #ffc0c6;
  border-color: rgba(255, 110, 120, .7);
  filter: brightness(1.12);
}
.privx-room__status {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-style: normal;
  font-family: var(--font-u);
  font-size: .85rem;
  font-weight: 700;
  color: #b8c8de;
}
.privx-room__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.privx-room__status.is-ready { color: #7dffb0; }
.privx-room__status.is-wait { color: #ffc14a; }
.privx-room__status.is-live {
  color: #ff8a5c;
  animation: blink 1.2s ease-in-out infinite;
}

.privx-room__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.privx-room__actions form {
  display: flex;
  align-items: center;
  margin: 0;
}

.privx-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 36px;
  padding: .4rem .7rem;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  color: #fff;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.privx-act svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  flex-shrink: 0;
}
.privx-act span {
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .12em;
  font-weight: 800;
}
.privx-act:hover { transform: translateY(-1px); filter: brightness(1.08); }
.privx-act--go {
  background: linear-gradient(145deg, #ff8a3a, #ff4d12);
  border-color: rgba(255, 200, 120, .45);
  box-shadow: 0 0 16px rgba(255, 90, 30, .4), inset 0 1px 0 rgba(255,255,255,.25);
  animation: privxPulse 1.8s ease-in-out infinite;
}
.privx-act--create {
  min-height: 46px;
  padding-inline: 1.1rem;
  background: linear-gradient(145deg, #ffd27a, #ff9a1a 55%, #ff6a12);
  border-color: rgba(255, 230, 160, .5);
  color: #1a0c02;
  box-shadow: 0 0 22px rgba(255, 170, 40, .45), inset 0 1px 0 rgba(255,255,255,.4);
  animation: privxPulse 1.8s ease-in-out infinite;
}
.privx-act--create span { color: #1a0c02; }
.privx-act--create svg { color: #1a0c02; }
@keyframes privxPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.privx__empty,
.privx__limit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: .85rem .7rem;
  font-family: var(--font-u);
  font-size: 1rem;
  font-weight: 600;
  color: #d5e2f5;
  text-align: center;
  background: rgba(12, 10, 8, .4);
  border: 1px solid rgba(255, 193, 74, .28);
  border-radius: 0;
}
.privx__empty svg,
.privx__limit svg { color: #ffc14a; flex-shrink: 0; }

/* Create dock — gold command bar, not a card */
.privx-dock {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .6rem;
  align-items: end;
  flex-shrink: 0;
  margin: .15rem -.35rem -.35rem;
  padding: .85rem .85rem .9rem;
  background:
    linear-gradient(180deg, rgba(40, 24, 8, .55) 0%, rgba(18, 10, 4, .95) 100%);
  border-top: 2px solid rgba(255, 193, 74, .55);
  box-shadow: inset 0 12px 24px rgba(255, 140, 40, .06);
  overflow: hidden;
}
.privx-dock__glow {
  position: absolute;
  top: -40%;
  left: 20%;
  width: 50%;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255, 180, 60, .18), transparent 70%);
}
.privx-field {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .25rem;
  min-width: 0;
  text-align: left;
}
.privx-field span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .1em;
  color: #ffe0a0;
}
.privx-field span svg { color: #ffc14a; }
.privx-input {
  width: 100%;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid rgba(255, 193, 74, .55);
  border-radius: 0;
  color: #fff;
  background: rgba(6, 8, 12, .92);
  font-family: var(--font-u);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: inset 0 0 16px rgba(255, 193, 74, .08);
}
.privx-input::placeholder { color: #7a8aa3; font-weight: 500; }
.privx-input:focus {
  border-color: rgba(255, 193, 74, .95);
  box-shadow: 0 0 14px rgba(255, 193, 74, .25);
}
.privx-dock .privx-act--create { position: relative; z-index: 1; }

@media (max-width: 980px) {
  .opsx-missions {
    grid-template-columns: 1fr !important;
    gap: .85rem !important;
    height: auto !important;
    max-height: none !important;
  }
  .opsx-tools { grid-template-columns: 1fr; }
  .opsx-tool--join { grid-template-columns: 1fr; }
  .opsx-tool--private { grid-template-columns: 1fr; }
  .opsx-btn--sm { width: 100%; }
  .opsx-card {
    display: flex !important;
    flex-direction: column !important;
    grid-template-rows: none !important;
    grid-template-columns: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    clip-path: none !important;
    flex-shrink: 0 !important;
  }
  .opsx-card__art {
    flex: 0 0 auto !important;
    height: 110px !important;
    min-height: 110px !important;
    padding: 14px 0 6px !important;
  }
  .opsx-card__art .unit-pod {
    --s: 72px;
    margin-bottom: -20px !important;
  }
  .opsx-card__art .unit-pod__ring { inset: -6px; }
  .opsx-card__body {
    display: grid !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin-top: -14px !important;
    padding: 1.25rem .85rem .85rem !important;
    justify-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .opsx-card__body h2 {
    display: block !important;
    font-size: 1.05rem !important;
    color: #fff !important;
  }
  .opsx-card__body p {
    display: block !important;
    font-size: .82rem !important;
    margin: 0 0 .15rem !important;
    color: #b0bfd4 !important;
    overflow: visible !important;
  }
  .opsx-card--soon .opsx-card__body p { min-height: 0; }
  .opsx-card__tag,
  .opsx-card .opsx-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .opsx-btn { min-height: 40px; margin-top: .25rem; width: 100%; }
  .opsx-btn strong { font-size: .52rem; }
  body.app-shell.lobby-page .opsx {
    justify-content: flex-start !important;
    padding-top: calc(var(--nav) + .55rem) !important;
    padding-bottom: 1.25rem !important;
    overflow: hidden !important;
  }
  body.app-shell.lobby-page .opsx::after {
    display: none;
  }
  body.app-shell.lobby-page .opsx__wrap {
    flex: 1 1 auto !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  body.app-shell .opsx-missions,
  body.app-shell .opsx-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
  }
  .privx-rail {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .privx-rail::before {
    top: 12%;
    bottom: 12%;
    left: 20px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, #ffc14a, #00f0e0, transparent);
  }
  .privx-rail__item {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: .65rem;
    padding-left: .15rem;
  }
  .privx-dock { grid-template-columns: 1fr; margin-inline: -.2rem; }
  .privx-room {
    flex-direction: column;
    align-items: stretch;
  }
  .privx-room__actions {
    width: 100%;
    justify-content: flex-end;
  }
  .privx-room__actions .privx-act--go { flex: 1 1 auto; }
}
@media (max-height: 820px) and (min-width: 981px) {
  .opsx { padding-top: calc(var(--nav) + .4rem); padding-bottom: .55rem; }
  .opsx__wrap { gap: .55rem; }
  .opsx-card__art { height: 112px; min-height: 112px; padding: 14px 0 4px; }
  .opsx-card__art .unit-pod { margin-bottom: -22px; }
  .opsx-card__body { margin-top: -14px; padding: 1.35rem .75rem .7rem; }
  .opsx-card__body p { font-size: .82rem; }
  .opsx-hero__title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
}
@media (max-width: 980px) {
  .app-shell .appside { display: none; }
  .app-shell .stage { margin-left: 0 !important; }
  .app-shell .topbar__cluster--play { display: flex !important; }
  .app-shell .topbar__sep { display: block; }
  .app-shell.appside-collapsed .stage { margin-left: 0; }
}

/* ===== Themed forms + custom select ===== */
.ops-panel,
.ops-filters,
.ops-form,
.profile-page .ops-panel {
  --gate-accent: #ff6a2a;
  --gate-accent2: #ffc14a;
}
.ops-form .gate-control__ico { color: #ffc14a; }
.ops-filters .gate-input,
.ops-filters select.gate-input,
.opsx-input,
.privx .opsx-input {
  padding-left: 1rem !important;
}
select.gate-input,
select.field-input,
.ops-filters select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.6rem !important;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffc14a 50%),
    linear-gradient(135deg, #ffc14a 50%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 38%),
    linear-gradient(180deg, rgba(10,14,22,.96), rgba(4,7,12,.98));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    0 0,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  color-scheme: dark;
}
select.gate-input option,
select.field-input option,
.ops-filters select option {
  background: #0a1018;
  color: #f2f6ff;
}

.ash-select {
  --ash-accent: #ffc14a;
  --ash-accent-2: #ff6a2a;
  --ash-cyan: #00f0e0;
  position: relative;
  width: 100%;
  z-index: 1;
  perspective: 600px;
}
.ash-select.is-open { z-index: 60; }
.ash-select__native {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
}
.ash-select__btn {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: .85rem;
  padding: .72rem 1.05rem .72rem 1.15rem;
  text-align: left;
  cursor: pointer;
  color: #f5f8ff;
  font-family: var(--font-b);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid rgba(255,170,55,.42);
  background:
    linear-gradient(105deg, rgba(255,140,40,.14) 0%, transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.09), transparent 42%),
    linear-gradient(180deg, #141c2a 0%, #0a1018 48%, #06090f 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 -1px 0 rgba(0,0,0,.45) inset,
    0 0 0 1px rgba(0,0,0,.35),
    0 4px 0 rgba(0,0,0,.35),
    0 14px 28px rgba(0,0,0,.42),
    0 0 18px rgba(255,120,30,.08);
  clip-path: var(--clip-sm);
  transform: translateY(0);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    background .18s ease,
    filter .18s ease;
  overflow: hidden;
}
.ash-select__btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--ash-accent), var(--ash-accent-2) 55%, transparent);
  box-shadow: 0 0 12px rgba(255,160,40,.55);
  pointer-events: none;
}
.ash-select__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,.04) 48%, transparent 100%);
  background-size: 220% 100%;
  opacity: .35;
  pointer-events: none;
  animation: ashSelectScan 4.5s linear infinite;
}
@keyframes ashSelectScan {
  0% { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}
.ash-select__btn:hover {
  border-color: rgba(255,193,74,.78);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 -1px 0 rgba(0,0,0,.4) inset,
    0 0 0 1px rgba(255,180,60,.2),
    0 5px 0 rgba(0,0,0,.38),
    0 16px 32px rgba(0,0,0,.48),
    0 0 22px rgba(255,140,40,.2);
}
.ash-select.is-open .ash-select__btn {
  border-color: rgba(0,240,224,.55);
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 0 0 2px rgba(0,240,224,.16),
    0 2px 0 rgba(0,0,0,.4),
    0 10px 26px rgba(0,0,0,.5),
    0 0 28px rgba(0,240,224,.14),
    0 0 18px rgba(255,140,40,.16);
}
.ash-select.is-open .ash-select__btn::before {
  background: linear-gradient(180deg, var(--ash-cyan), var(--ash-accent) 60%, transparent);
  box-shadow: 0 0 14px rgba(0,240,224,.55);
}
.ash-select__value {
  position: relative;
  z-index: 1;
  min-width: 0; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}
.ash-select__chev-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,193,74,.35);
  background:
    linear-gradient(160deg, rgba(255,180,60,.18), rgba(0,0,0,.25)),
    linear-gradient(180deg, #1a2230, #0a0e16);
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 3px 0 rgba(0,0,0,.35),
    0 0 10px rgba(255,140,40,.12);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ash-select.is-open .ash-select__chev-wrap {
  border-color: rgba(0,240,224,.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,.12) inset,
    0 1px 0 rgba(0,0,0,.35),
    0 0 12px rgba(0,240,224,.25);
  transform: translateY(1px);
}
.ash-select__chev {
  width: 8px; height: 8px;
  border-right: 2px solid var(--ash-accent);
  border-bottom: 2px solid var(--ash-accent);
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .18s ease;
  filter: drop-shadow(0 0 4px rgba(255,193,74,.55));
}
.ash-select.is-open .ash-select__chev {
  border-color: var(--ash-cyan);
  transform: rotate(225deg) translateY(-1px);
  filter: drop-shadow(0 0 5px rgba(0,240,224,.65));
}
.ash-select__menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 10px);
  margin: 0;
  padding: .55rem .45rem .5rem;
  list-style: none;
  display: grid;
  gap: .28rem;
  max-height: 260px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 28%),
    linear-gradient(145deg, #121a28 0%, #080c14 55%, #05070d 100%);
  border: 1px solid rgba(255,175,55,.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 0 0 1px rgba(0,0,0,.45),
    0 8px 0 rgba(0,0,0,.28),
    0 22px 48px rgba(0,0,0,.65),
    0 0 32px rgba(255,120,30,.14),
    0 0 20px rgba(0,240,224,.06);
  clip-path: var(--clip-sm);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) rotateX(8deg);
  transform-origin: top center;
  transition:
    opacity .18s ease,
    transform .22s cubic-bezier(.2,.85,.25,1),
    visibility .18s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,180,60,.45) transparent;
}
.ash-select__menu::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ash-accent), var(--ash-cyan), transparent);
  box-shadow: 0 0 12px rgba(255,180,60,.55);
  pointer-events: none;
}
.ash-select__menu::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ash-cyan), transparent 70%);
  opacity: .7;
  pointer-events: none;
}
.ash-select.is-open .ash-select__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) rotateX(0deg);
}
.ash-select__opt {
  position: relative;
  display: block; width: 100%;
  padding: .7rem .9rem .7rem 1.05rem;
  text-align: left;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%),
    rgba(255,255,255,.015);
  color: #c8d4e8;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .015em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  transition:
    background .14s ease,
    color .14s ease,
    border-color .14s ease,
    box-shadow .14s ease,
    transform .14s ease;
}
.ash-select__opt::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2px;
  background: rgba(255,193,74,.25);
  transition: background .14s ease, box-shadow .14s ease, top .14s ease, bottom .14s ease;
}
.ash-select__opt:hover,
.ash-select__opt:focus-visible {
  outline: none;
  color: #fff;
  transform: translateX(2px);
  background:
    linear-gradient(90deg, rgba(255,140,40,.28), rgba(255,140,40,.06) 55%, transparent),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent);
  border-color: rgba(255,193,74,.4);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 0 16px rgba(255,140,40,.12);
}
.ash-select__opt:hover::before,
.ash-select__opt:focus-visible::before {
  background: var(--ash-accent);
  box-shadow: 0 0 8px rgba(255,193,74,.7);
  top: 12%; bottom: 12%;
}
.ash-select__opt.is-active {
  color: #120806;
  background:
    linear-gradient(135deg, #fff6d8 0%, #ffc14a 42%, #ff7a28 100%);
  border-color: rgba(255,220,140,.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 -1px 0 rgba(120,40,0,.35) inset,
    0 3px 0 rgba(0,0,0,.28),
    0 0 18px rgba(255,140,40,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}
.ash-select__opt.is-active::before {
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.7);
  top: 10%; bottom: 10%;
}
.ash-select__opt:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}
.ops-filters .ash-select__btn { min-height: 46px; }
.ops-filters .ash-select.is-open { z-index: 80; }

/* ===== Ash confirm (app-themed, replaces window.confirm) ===== */
.ash-confirm {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(92vw, 420px);
  width: 100%;
  background: transparent;
  color: #eef5ff;
  overflow: visible;
}
.ash-confirm::backdrop {
  background:
    radial-gradient(ellipse 60% 45% at 50% 40%, rgba(120, 20, 40, .28), transparent 55%),
    rgba(1, 2, 8, .88);
  backdrop-filter: blur(10px) saturate(1.1);
}
.ash-confirm__hull {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background:
    linear-gradient(145deg, rgba(28, 14, 18, .98) 0%, rgba(8, 8, 14, .995) 55%, rgba(6, 6, 10, .995) 100%);
  border: 1px solid rgba(255, 100, 120, .45);
  box-shadow:
    0 0 0 1px rgba(255, 193, 74, .12),
    0 1px 0 rgba(255,255,255,.06) inset,
    0 8px 0 rgba(0,0,0,.35),
    0 28px 56px rgba(0,0,0,.7),
    0 0 36px rgba(255, 60, 80, .16);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  overflow: hidden;
}
.ash-confirm__hull::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,90,110,.1), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%);
}
.ash-confirm__edge {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
}
.ash-confirm__edge--tl {
  top: 8px; left: 8px;
  border-top: 2px solid #ff5d7a;
  border-left: 2px solid #ff5d7a;
  box-shadow: -2px -2px 10px rgba(255,90,110,.35);
}
.ash-confirm__edge--br {
  right: 8px; bottom: 8px;
  border-right: 2px solid #ffc14a;
  border-bottom: 2px solid #ffc14a;
  box-shadow: 2px 2px 10px rgba(255,193,74,.28);
}
.ash-confirm__head,
.ash-confirm__msg,
.ash-confirm__actions {
  position: relative;
  z-index: 1;
}
.ash-confirm__head {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.ash-confirm__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #ffb4bc;
  background: linear-gradient(160deg, rgba(90, 18, 28, .95), rgba(20, 6, 10, .98));
  border: 1px solid rgba(255, 110, 120, .5);
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 3px 0 rgba(0,0,0,.35),
    0 0 16px rgba(255,60,80,.3);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.ash-confirm__mark svg {
  width: 18px;
  height: 18px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255,110,120,.5));
}
.ash-confirm__eyebrow {
  margin: 0;
  font-family: var(--font-d);
  font-size: .5rem;
  letter-spacing: .18em;
  color: #ffc14a;
  text-shadow: 0 0 12px rgba(255,193,74,.45);
}
.ash-confirm__title {
  margin: .1rem 0 0;
  font-size: 1.2rem;
  color: #fff;
}
.ash-confirm__msg {
  margin: 0;
  padding: .85rem .9rem;
  color: #d5e0f0;
  font-size: 1rem;
  line-height: 1.4;
  background: rgba(255, 80, 100, .06);
  border: 1px solid rgba(255, 110, 120, .22);
  clip-path: var(--clip-sm);
}
.ash-confirm__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.ash-confirm__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .8rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-d);
  font-size: .58rem;
  letter-spacing: .12em;
  font-weight: 800;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform .14s ease, filter .14s ease;
}
.ash-confirm__btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ash-confirm__btn:active { transform: translateY(1px); }
.ash-confirm__btn--ghost {
  color: #c8d4e8;
  border-color: rgba(255,255,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%),
    linear-gradient(165deg, #1a2230, #0a0e16);
  box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.ash-confirm__btn--danger {
  color: #fff;
  border-color: rgba(255, 140, 150, .45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(145deg, #ff6b86, #c42840);
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 3px 0 rgba(60, 8, 16, .55),
    0 0 18px rgba(255, 60, 80, .35);
}
@media (max-width: 480px) {
  .ash-confirm__actions { grid-template-columns: 1fr; }
}

/* PATCH_MCFG_START */
.mcfg {
  --mcfg-a: #ff4d2a;
  --mcfg-b: #00f0e0;
  --mcfg-c: #ffc14a;
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(920px, calc(100vw - 1.25rem));
  width: 100%;
  max-height: calc(100dvh - 16px);
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.mcfg[open] {
  display: flex;
  flex-direction: column;
}
.mcfg--cyan { --mcfg-a: #00f0e0; --mcfg-b: #3aa0ff; --mcfg-c: #8dffb8; }
.mcfg--gold { --mcfg-a: #ffc14a; --mcfg-b: #ff6a2a; --mcfg-c: #ffe08a; }
.mcfg::backdrop {
  background:
    radial-gradient(ellipse 60% 40% at 50% 40%, rgba(255,77,42,.12), transparent 60%),
    rgba(1, 2, 8, .88);
  backdrop-filter: blur(12px) saturate(1.2);
}
.mcfg__hull {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 16px);
  overflow: hidden;
  padding: 1.15rem 1.1rem 0;
  border: 1px solid color-mix(in srgb, var(--mcfg-a) 35%, transparent);
  background:
    radial-gradient(ellipse 90% 55% at 0% -10%, color-mix(in srgb, var(--mcfg-a) 22%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 110%, color-mix(in srgb, var(--mcfg-b) 18%, transparent), transparent 50%),
    linear-gradient(165deg, #0a1220 0%, #050910 48%, #02050c 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 80px color-mix(in srgb, var(--mcfg-a) 18%, transparent),
    0 28px 70px rgba(0,0,0,.65);
  clip-path: polygon(
    0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px,
    100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px)
  );
  animation: mcfgHullIn .42s cubic-bezier(.2,.8,.2,1);
}
@keyframes mcfgHullIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.mcfg__circuit {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .4; overflow: hidden;
}
.mcfg__trace {
  fill: none; stroke: var(--mcfg-a); stroke-width: 1.4; stroke-linecap: square;
  stroke-dasharray: 8 6; animation: mcfgTrace 4.5s linear infinite; opacity: .7;
}
.mcfg__trace--b { stroke: var(--mcfg-b); animation-duration: 5.2s; animation-direction: reverse; }
.mcfg__trace--c { stroke: var(--mcfg-c); animation-duration: 6s; opacity: .5; }
.mcfg__trace--d { stroke: var(--mcfg-b); animation-duration: 3.8s; animation-direction: reverse; }
@keyframes mcfgTrace { to { stroke-dashoffset: -80; } }
.mcfg__node {
  fill: var(--mcfg-a); filter: drop-shadow(0 0 6px var(--mcfg-a));
  animation: mcfgNode 1.8s ease-in-out infinite;
}
.mcfg__node--b { fill: var(--mcfg-b); filter: drop-shadow(0 0 6px var(--mcfg-b)); animation-delay: .3s; }
.mcfg__node--c { fill: var(--mcfg-c); filter: drop-shadow(0 0 6px var(--mcfg-c)); animation-delay: .6s; }
.mcfg__node--d { fill: var(--mcfg-b); animation-delay: .9s; }
@keyframes mcfgNode { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.mcfg__aurora {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 50% 40% at 15% 10%, color-mix(in srgb, var(--mcfg-a) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 35% at 90% 90%, color-mix(in srgb, var(--mcfg-b) 14%, transparent), transparent 70%);
}
.mcfg__hex {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .1; overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'%3E%3Cpath d='M28 2 L54 16 V48 L28 62 L2 48 V16 Z' fill='none' stroke='%2300f0e0' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.mcfg__corner {
  position: absolute; width: 26px; height: 26px; z-index: 2; pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--mcfg-a) 70%, #fff);
  box-shadow: 0 0 12px color-mix(in srgb, var(--mcfg-a) 40%, transparent);
}
.mcfg__corner--tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.mcfg__corner--tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-color: color-mix(in srgb, var(--mcfg-b) 70%, #fff); }
.mcfg__corner--bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-color: color-mix(in srgb, var(--mcfg-b) 55%, #fff); }
.mcfg__corner--br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.mcfg__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .3; overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,240,224,.025) 2px, rgba(0,240,224,.025) 3px);
}
.mcfg__scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mcfg-b) 12%, transparent), transparent);
  animation: mcfgScan 5.5s ease-in-out infinite;
}
@keyframes mcfgScan { 0% { top: -30%; } 100% { top: 110%; } }

.mcfg__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.25rem; position: relative; z-index: 2; flex-shrink: 0;
}
.mcfg__brand { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.mcfg__seal {
  position: relative; width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--mcfg-a);
  background: linear-gradient(145deg, color-mix(in srgb, var(--mcfg-a) 25%, transparent), rgba(0,0,0,.4));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--mcfg-a) 35%, transparent);
}
.mcfg__seal--cyan { color: var(--mcfg-b); }
.mcfg__seal-ring {
  position: absolute; inset: 4px;
  border: 1px solid color-mix(in srgb, var(--mcfg-a) 50%, transparent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.mcfg__eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-d); font-size: .52rem; letter-spacing: .22em;
  color: var(--mcfg-b); text-transform: uppercase;
}
.mcfg__eyebrow i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mcfg-a);
  box-shadow: 0 0 10px var(--mcfg-a); animation: mcfgBlink 1.4s ease infinite;
}
@keyframes mcfgBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mcfg__head h2 {
  margin: .25rem 0 0; font-family: var(--font-d);
  font-size: clamp(1rem, 3vw, 1.3rem); letter-spacing: .06em; text-transform: uppercase;
  text-shadow: 0 0 28px color-mix(in srgb, var(--mcfg-a) 35%, transparent); line-height: 1.25;
}

/* X — vermelho bordo escuro */
.mcfg__close {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center; cursor: pointer;
  color: #ffc8cd;
  border: 1px solid rgba(180, 40, 55, .8);
  background: linear-gradient(165deg, #5a1824 0%, #2a0a12 55%, #140508 100%);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 0 1px rgba(255,80,90,.12) inset, 0 0 16px rgba(120,20,35,.5);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.mcfg__close:hover {
  color: #fff; filter: brightness(1.2);
  box-shadow: 0 0 22px rgba(160,30,45,.6);
  transform: rotate(90deg);
}

.mcfg__form {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; overflow: hidden;
}
.mcfg__scroll {
  flex: 1; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
  padding: 0 .05rem .4rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none; -ms-overflow-style: none;
}
.mcfg__scroll::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

/* Mission footer dock + action buttons — compact centered cluster */
.mcfg__foot {
  display: flex; flex-wrap: nowrap; gap: .65rem; justify-content: center;
  align-items: stretch;
  align-self: center;
  flex-shrink: 0;
  width: fit-content;
  max-width: calc(100% - 1.4rem);
  margin: .55rem auto .65rem;
  padding: .7rem .85rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255,140,60,.38);
  border-top: 1px solid rgba(255,170,90,.5);
  background:
    radial-gradient(ellipse 70% 120% at 92% 55%, rgba(255,80,20,.16), transparent 52%),
    radial-gradient(ellipse 45% 100% at 6% 50%, rgba(0,200,210,.1), transparent 48%),
    linear-gradient(165deg, rgba(36, 42, 58, .98) 0%, rgba(14, 16, 26, .99) 42%, rgba(6, 8, 14, 1) 100%);
  position: relative; z-index: 3;
  overflow: visible;
  clip-path: polygon(
    14px 0, calc(100% - 7px) 0, 100% 7px,
    100% calc(100% - 14px), calc(100% - 14px) 100%, 7px 100%,
    0 calc(100% - 7px), 0 14px
  );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    inset 0 -1px 0 rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(0,0,0,.3),
    0 10px 24px rgba(0,0,0,.4);
}
.mcfg__foot::before {
  content: "";
  position: absolute; inset: 5px;
  pointer-events: none; z-index: 0;
  border: 1px solid rgba(255,255,255,.05);
  clip-path: polygon(
    10px 0, calc(100% - 6px) 0, 100% 6px,
    100% calc(100% - 10px), calc(100% - 10px) 100%, 6px 100%,
    0 calc(100% - 6px), 0 10px
  );
}
.mcfg__foot-rail {
  position: absolute; left: 18%; right: 18%; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255,120,60,.8), rgba(0,240,224,.45), transparent);
  box-shadow: 0 0 14px rgba(255,100,40,.45);
  pointer-events: none;
}
.mcfg__foot-grid {
  position: absolute; inset: 6px; pointer-events: none; opacity: .12; z-index: 0;
  background-image:
    linear-gradient(rgba(255,120,60,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,120,60,.1) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.mcfg__foot-corner {
  position: absolute; width: 12px; height: 12px; pointer-events: none; z-index: 1;
}
.mcfg__foot-corner--l {
  left: 10px; top: 9px;
  border-top: 2px solid rgba(0,240,224,.7);
  border-left: 2px solid rgba(0,240,224,.7);
}
.mcfg__foot-corner--r {
  right: 10px; bottom: 9px;
  border-bottom: 2px solid rgba(255,140,70,.75);
  border-right: 2px solid rgba(255,140,70,.75);
}
.mcfg--cyan .mcfg__foot {
  border-color: rgba(0,240,224,.38);
  border-top-color: rgba(0,240,224,.5);
  background:
    radial-gradient(ellipse 70% 120% at 92% 55%, rgba(0,240,224,.14), transparent 52%),
    radial-gradient(ellipse 45% 100% at 6% 50%, rgba(255,140,60,.08), transparent 48%),
    linear-gradient(165deg, rgba(18, 34, 42, .98) 0%, rgba(8, 16, 22, .99) 42%, rgba(4, 10, 14, 1) 100%);
}
.mcfg--cyan .mcfg__foot-rail {
  background: linear-gradient(90deg, transparent, rgba(0,240,224,.7), rgba(255,160,60,.3), transparent);
}

.mcfg-btn {
  position: relative; isolation: isolate;
  min-height: 42px; min-width: 0; padding: .35rem .85rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  cursor: pointer; border: 1px solid transparent; font: inherit; color: inherit;
  clip-path: polygon(
    12px 0, calc(100% - 5px) 0, 100% 5px,
    100% calc(100% - 12px), calc(100% - 12px) 100%, 5px 100%,
    0 calc(100% - 5px), 0 12px
  );
  transition: transform .15s ease, filter .15s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
  z-index: 1;
}
.mcfg-btn__face {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 48%);
}
.mcfg-btn__txt {
  position: relative; z-index: 1;
  display: grid; gap: .08rem; text-align: left; line-height: 1;
}
.mcfg-btn__txt em {
  font-style: normal; font-family: var(--font-d);
  font-size: .32rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .8;
}
.mcfg-btn__txt strong,
.mcfg-btn strong {
  position: relative; z-index: 1;
  font-family: var(--font-d); font-size: .48rem; letter-spacing: .1em; text-transform: uppercase;
}
.mcfg-btn__ico {
  position: relative; z-index: 1;
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.28);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.mcfg-btn__ico svg { display: block; width: 13px; height: 13px; }
.mcfg-btn__go {
  position: relative; z-index: 1;
  margin-left: .1rem;
  font-family: var(--font-d);
  font-size: .42rem; font-weight: 800; letter-spacing: .12em;
  color: #fff;
  padding: .22rem .38rem;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.32);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.mcfg-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.mcfg-btn:active { transform: translateY(0); }

.mcfg-btn--ghost {
  color: #fff;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  margin-right: 0;
  border-color: rgba(150, 160, 180, .5);
  background:
    linear-gradient(105deg, rgba(255,255,255,.1) 0%, transparent 28%),
    linear-gradient(180deg, #6a7484 0%, #454e5c 42%, #1e242e 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1) inset,
    0 1px 0 rgba(255,255,255,.12) inset,
    0 6px 14px rgba(0,0,0,.4),
    0 3px 0 rgba(10,12,16,.7);
}
.mcfg-btn--ghost .mcfg-btn__txt em { color: rgba(255,255,255,.7); }
.mcfg-btn--ghost .mcfg-btn__txt strong { color: #fff; }
.mcfg-btn--ghost .mcfg-btn__ico {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(0,0,0,.3));
}
.mcfg-btn--ghost:hover {
  border-color: rgba(200, 210, 230, .55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 12px 26px rgba(0,0,0,.45),
    0 5px 0 rgba(12,14,18,.7),
    0 0 18px rgba(140,160,200,.2);
}

.mcfg-btn--ember {
  color: #fff;
  flex: 0 1 auto;
  justify-content: center;
  padding-left: .95rem;
  padding-right: .95rem;
  border-color: rgba(255, 170, 90, .75);
  background:
    linear-gradient(115deg, rgba(255,255,255,.22) 0%, transparent 32%),
    linear-gradient(180deg, #ff7a38 0%, #e04014 38%, #a01e08 72%, #4a0a00 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 1px 0 rgba(255,220,160,.35) inset,
    0 0 18px rgba(255,77,42,.38),
    0 4px 0 rgba(60,8,0,.72),
    0 10px 20px rgba(0,0,0,.42);
}
.mcfg-btn--ember .mcfg-btn__txt em { color: rgba(255,255,255,.88); }
.mcfg-btn--ember .mcfg-btn__txt strong { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.mcfg-btn__ico--ember {
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(0,0,0,.2));
  width: 28px; height: 28px;
  box-shadow: 0 0 10px rgba(255,120,40,.4);
}
.mcfg-btn--ember:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.22) inset,
    0 0 28px rgba(255,90,30,.55),
    0 5px 0 rgba(70,10,0,.75),
    0 12px 22px rgba(0,0,0,.48);
}

.mcfg-btn--cyan {
  color: #fff;
  flex: 0 1 auto;
  justify-content: center;
  padding-left: .95rem;
  padding-right: .95rem;
  border-color: rgba(120, 255, 240, .7);
  background:
    linear-gradient(115deg, rgba(255,255,255,.22) 0%, transparent 32%),
    linear-gradient(180deg, #3aefe4 0%, #0ab0a8 38%, #046868 72%, #022830 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 1px 0 rgba(180,255,245,.35) inset,
    0 0 18px rgba(0,240,224,.34),
    0 4px 0 rgba(0,40,50,.72),
    0 10px 20px rgba(0,0,0,.42);
}
.mcfg-btn--cyan .mcfg-btn__txt em { color: rgba(255,255,255,.88); }
.mcfg-btn--cyan .mcfg-btn__txt strong { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.mcfg-btn__ico--cyan {
  color: #fff;
  border-color: rgba(255,255,255,.4);
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(0,0,0,.2));
  width: 28px; height: 28px;
  box-shadow: 0 0 10px rgba(0,240,224,.35);
}
.mcfg-btn--cyan:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.22) inset,
    0 0 28px rgba(0,240,224,.5),
    0 5px 0 rgba(0,50,60,.75),
    0 12px 22px rgba(0,0,0,.48);
}

.mcfg-btn__pulse {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  background-size: 220% 100%; animation: mcfgBtnShine 2.4s ease-in-out infinite; clip-path: inherit;
}
@keyframes mcfgBtnShine { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.mcfg-preset { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mcfg-preset__btn {
  position: relative; overflow: hidden; text-align: left; padding: 1.1rem 1rem 1rem;
  cursor: pointer; color: inherit;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(155deg, rgba(22, 34, 52, .95) 0%, rgba(8, 14, 24, .98) 100%);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,.45) inset, 0 10px 28px rgba(0,0,0,.35);
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.mcfg-preset__btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.mcfg-preset__glow {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: radial-gradient(circle at 18% 25%, rgba(255,77,42,.18), transparent 55%);
  transition: opacity .2s;
}
.mcfg-preset__btn--custom .mcfg-preset__glow {
  background: radial-gradient(circle at 18% 25%, rgba(0,240,224,.16), transparent 55%);
}
.mcfg-preset__ico {
  position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center;
  color: #9eb0c8;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.mcfg-preset__txt { position: relative; z-index: 1; min-width: 0; padding-right: 2.2rem; }
.mcfg-preset__txt strong {
  display: block; font-family: var(--font-d); font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; color: #fff;
}
.mcfg-preset__txt span { font-size: .8rem; color: #a8b6cc; line-height: 1.35; }
.mcfg-preset__tag {
  position: absolute; top: 10px; right: 28px; z-index: 1;
  margin: 0; font-style: normal; font-family: var(--font-d);
  font-size: .42rem; letter-spacing: .14em; color: #8fa0b8;
  padding: .18rem .35rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
}
.mcfg-preset__bolt {
  position: absolute; top: 10px; right: 10px; width: 8px; height: 8px;
  background: rgba(255,255,255,.2); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.mcfg-preset__btn.is-active {
  border-color: rgba(255, 120, 70, .75);
  background:
    linear-gradient(155deg, rgba(48, 22, 16, .98) 0%, rgba(14, 10, 14, .98) 100%);
  box-shadow:
    0 0 0 1px rgba(255,77,42,.25) inset,
    0 0 28px rgba(255,77,42,.22),
    0 12px 32px rgba(0,0,0,.4);
}
.mcfg-preset__btn.is-active .mcfg-preset__glow { opacity: 1; }
.mcfg-preset__btn.is-active .mcfg-preset__ico {
  color: #ff8a4a; border-color: rgba(255,77,42,.45);
  box-shadow: 0 0 18px rgba(255,77,42,.4);
}
.mcfg-preset__btn.is-active .mcfg-preset__bolt {
  background: #ff4d2a; box-shadow: 0 0 10px #ff4d2a; animation: mcfgBlink 1.2s ease infinite;
}
.mcfg-preset__btn.is-active .mcfg-preset__tag {
  color: #ffc4a8; border-color: rgba(255,120,70,.4); background: rgba(255,77,42,.15);
}
.mcfg-preset__btn--custom.is-active {
  border-color: rgba(0, 240, 224, .7);
  background:
    linear-gradient(155deg, rgba(10, 36, 42, .98) 0%, rgba(6, 12, 20, .98) 100%);
  box-shadow:
    0 0 0 1px rgba(0,240,224,.22) inset,
    0 0 28px rgba(0,240,224,.2),
    0 12px 32px rgba(0,0,0,.4);
}
.mcfg-preset__btn--custom.is-active .mcfg-preset__ico {
  color: #00f0e0; border-color: rgba(0,240,224,.45);
  box-shadow: 0 0 18px rgba(0,240,224,.4);
}
.mcfg-preset__btn--custom.is-active .mcfg-preset__bolt {
  background: #00f0e0; box-shadow: 0 0 10px #00f0e0;
}
.mcfg-preset__btn--custom.is-active .mcfg-preset__tag {
  color: #9ff7ef; border-color: rgba(0,240,224,.4); background: rgba(0,240,224,.12);
}
.mcfg-preset__btn--custom.is-active .mcfg-preset__glow {
  background: radial-gradient(circle at 20% 30%, rgba(0,240,224,.28), transparent 55%);
}

/* Resume / continue — full-width under classic+custom */
.mcfg-preset__btn--resume {
  grid-column: 1 / -1;
  background:
    linear-gradient(155deg, rgba(28, 36, 22, .96) 0%, rgba(10, 14, 12, .98) 100%);
}
.mcfg-preset__btn--resume .mcfg-preset__glow {
  background: radial-gradient(circle at 18% 25%, rgba(255,193,74,.2), transparent 55%);
  opacity: .45;
}
.mcfg-preset__btn--resume.is-active {
  border-color: rgba(255, 193, 74, .75);
  background:
    linear-gradient(155deg, rgba(48, 38, 12, .98) 0%, rgba(14, 12, 8, .98) 100%);
  box-shadow:
    0 0 0 1px rgba(255,193,74,.22) inset,
    0 0 28px rgba(255,193,74,.2),
    0 12px 32px rgba(0,0,0,.4);
}
.mcfg-preset__btn--resume.is-active .mcfg-preset__glow { opacity: 1; }
.mcfg-preset__btn--resume.is-active .mcfg-preset__ico {
  color: #ffc14a; border-color: rgba(255,193,74,.5);
  box-shadow: 0 0 18px rgba(255,193,74,.4);
}
.mcfg-preset__btn--resume.is-active .mcfg-preset__bolt {
  background: #ffc14a; box-shadow: 0 0 10px #ffc14a; animation: mcfgBlink 1.2s ease infinite;
}
.mcfg-preset__btn--resume.is-active .mcfg-preset__tag {
  color: #ffe08a; border-color: rgba(255,193,74,.45); background: rgba(255,193,74,.14);
}

.mcfg-resume-sum {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,193,74,.35);
  border-left: 3px solid #ffc14a;
  background:
    linear-gradient(100deg, rgba(255,193,74,.12), transparent 50%),
    rgba(10, 14, 20, .72);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.mcfg-resume-sum[hidden] { display: none !important; }
.mcfg-resume-sum__main {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-width: 0;
  flex: 1;
}
.mcfg-resume-sum__ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #ffc14a;
  background: rgba(255,193,74,.12);
  border: 1px solid rgba(255,193,74,.4);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.mcfg-resume-sum__kicker {
  margin: 0 0 .2rem;
  font-family: var(--font-d);
  font-size: .48rem;
  letter-spacing: .16em;
  color: #ffc14a;
  text-transform: uppercase;
}
.mcfg-resume-sum__lead {
  margin: 0;
  color: #dce6f2;
  font-size: .88rem;
  line-height: 1.4;
}
.mcfg-resume-sum__meta {
  margin: .35rem 0 0;
  color: #9eb0c4;
  font-size: .78rem;
  line-height: 1.3;
}

.mcfg-classic-sum {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.2rem 1.15rem;
  border: 1px solid rgba(255,193,74,.28);
  background: linear-gradient(120deg, rgba(255,193,74,.1), transparent 55%), rgba(0,0,0,.28);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.mcfg-classic-sum__rail {
  position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px;
  background: linear-gradient(180deg, transparent, #ffc14a, transparent); box-shadow: 0 0 12px #ffc14a;
}
.mcfg-classic-sum__ico {
  width: 48px; height: 48px; display: grid; place-items: center; color: #ffc14a;
  background: rgba(255,193,74,.1); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.mcfg-classic-sum__body p { margin: 0 0 .9rem; color: var(--text); line-height: 1.5; }
.mcfg-spec { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.mcfg-spec li { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .88rem; }
.mcfg-spec svg { color: #ffc14a; flex-shrink: 0; }

.mcfg-sec { margin: 0; }
.mcfg-sec h3 {
  margin: 0 0 .9rem; display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-d); font-size: .58rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mcfg-b);
}
.mcfg-sec h3 svg { color: var(--mcfg-a); flex-shrink: 0; }
.mcfg-sec__line {
  flex: 1; height: 1px; min-width: 24px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--mcfg-b) 45%, transparent), transparent);
}

.mcfg-scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.mcfg-scen {
  position: relative; cursor: pointer; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  min-height: 132px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.mcfg-scen:hover { transform: translateY(-2px); }
.mcfg-scen input { position: absolute; opacity: 0; pointer-events: none; }
.mcfg-scen__art {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.06); animation: mcfgKen 22s ease-in-out infinite alternate;
}
.mcfg-scen__art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(2,4,10,.15) 10%, rgba(2,4,10,.92) 78%);
}
.mcfg-scen__scan {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,240,224,.06) 3px, rgba(0,240,224,.06) 4px);
}
.mcfg-scen__badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-family: var(--font-d); font-size: .48rem; letter-spacing: .14em;
  padding: .2rem .4rem; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15);
}
.mcfg-scen__body {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: .8rem; min-height: 132px;
}
.mcfg-scen__body strong { font-family: var(--font-d); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.mcfg-scen__body em { font-style: normal; font-size: .75rem; color: #a8b6cc; margin-top: .25rem; line-height: 1.3; }
.mcfg-scen__check {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 26px; height: 26px; display: grid; place-items: center;
  color: transparent; opacity: 0; transform: scale(.6); transition: .2s;
}
.mcfg-scen.is-on, .mcfg-scen:has(input:checked) {
  border-color: rgba(0,240,224,.7); box-shadow: 0 0 34px rgba(0,240,224,.28);
}
.mcfg-scen.is-on .mcfg-scen__scan, .mcfg-scen:has(input:checked) .mcfg-scen__scan { opacity: 1; }
.mcfg-scen.is-on .mcfg-scen__check, .mcfg-scen:has(input:checked) .mcfg-scen__check {
  opacity: 1; transform: scale(1); color: #00f0e0; filter: drop-shadow(0 0 8px #00f0e0);
}
.mcfg-scen--ember.is-on, .mcfg-scen--ember:has(input:checked) {
  border-color: rgba(255,77,42,.75); box-shadow: 0 0 34px rgba(255,77,42,.3);
}
.mcfg-scen--ember.is-on .mcfg-scen__check, .mcfg-scen--ember:has(input:checked) .mcfg-scen__check {
  color: #ff6a2a; filter: drop-shadow(0 0 8px #ff4d2a);
}
.mcfg-scen--gold.is-on, .mcfg-scen--gold:has(input:checked) {
  border-color: rgba(255,193,74,.75); box-shadow: 0 0 34px rgba(255,193,74,.28);
}
.mcfg-scen--gold.is-on .mcfg-scen__check, .mcfg-scen--gold:has(input:checked) .mcfg-scen__check {
  color: #ffc14a; filter: drop-shadow(0 0 8px #ffc14a);
}
@keyframes mcfgKen {
  from { transform: scale(1.06); }
  to { transform: scale(1.12) translate(-1%, -.5%); }
}

.mcfg-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.mcfg-chip {
  position: relative; cursor: pointer; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  min-height: 44px; padding: .45rem .9rem; display: inline-flex; align-items: center;
}
.mcfg-chip input { position: absolute; opacity: 0; }
.mcfg-chip span { font-family: var(--font-d); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.mcfg-chip.is-on, .mcfg-chip:has(input:checked) {
  border-color: color-mix(in srgb, var(--mcfg-b) 60%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--mcfg-b) 18%, transparent), color-mix(in srgb, var(--mcfg-a) 10%, transparent));
  box-shadow: 0 0 18px color-mix(in srgb, var(--mcfg-b) 20%, transparent);
}
.mcfg-chip--ai.is-on, .mcfg-chip--ai:has(input:checked) {
  border-color: rgba(255,193,74,.6);
  background: linear-gradient(135deg, rgba(255,193,74,.18), rgba(255,77,42,.1));
}

.mcfg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mcfg-field { display: flex; flex-direction: column; gap: .5rem; }
.mcfg-field--name { margin: 0; }
.mcfg-field span {
  font-family: var(--font-d); font-size: .5rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem;
}
.mcfg-input, .mcfg-select {
  min-height: 46px; padding: .55rem .8rem; width: 100%; max-width: 100%; box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.4); color: var(--text);
  font-family: var(--font-u); font-size: 1rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.mcfg-input:focus, .mcfg-select:focus {
  outline: none; border-color: color-mix(in srgb, var(--mcfg-b) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--mcfg-b) 25%, transparent);
}

.mcfg-toggles { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.05rem; }
.mcfg-toggle {
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: .45rem .9rem .45rem .75rem;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer; font-size: .9rem;
}
.mcfg-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.mcfg-toggle__ui {
  width: 36px; height: 20px; flex-shrink: 0; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); position: relative;
}
.mcfg-toggle__ui::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #9aa8bc; transition: transform .2s, background .2s;
}
.mcfg-toggle:has(input:checked) {
  border-color: color-mix(in srgb, var(--mcfg-b) 45%, transparent);
}
.mcfg-toggle:has(input:checked) .mcfg-toggle__ui {
  background: color-mix(in srgb, var(--mcfg-b) 35%, transparent); border-color: var(--mcfg-b);
}
.mcfg-toggle:has(input:checked) .mcfg-toggle__ui::after {
  transform: translateX(16px); background: var(--mcfg-b); box-shadow: 0 0 8px var(--mcfg-b);
}
.mcfg-toggle__label { display: inline-flex; align-items: center; gap: .4rem; }
.mcfg-toggle__label svg { color: var(--mcfg-c); }

.mcfg-custom { display: flex; flex-direction: column; gap: 1.4rem; }

.privx__circuit { opacity: .35; z-index: 0; pointer-events: none; }
.privx__list { scrollbar-width: none; -ms-overflow-style: none; }
.privx__list::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.privx__close {
  background: linear-gradient(165deg, #5a1824 0%, #2a0a12 55%, #140508 100%) !important;
  border-color: rgba(180, 40, 55, .8) !important;
  color: #ffc8cd !important;
  box-shadow: 0 0 16px rgba(120, 20, 35, .5) !important;
}

@media (max-width: 980px) {
  .mcfg {
    max-width: calc(100vw - .7rem);
    max-height: calc(100dvh - 12px);
    width: calc(100vw - .7rem);
  }
  .mcfg__hull {
    max-height: calc(100dvh - 12px);
    padding: .9rem .8rem 0;
  }
  .mcfg__head { margin-bottom: 1rem; }
  .mcfg__seal { width: 42px; height: 42px; }
  .mcfg__close { width: 42px; height: 42px; }
  .mcfg__scroll { gap: 1.2rem; }
  .mcfg-preset { grid-template-columns: 1fr; gap: .75rem; }
  .mcfg-scenarios { grid-template-columns: 1fr; gap: .75rem; }
  .mcfg-scen, .mcfg-scen__body { min-height: 110px; }
  .mcfg-grid2 { grid-template-columns: 1fr; gap: .8rem; }
  .mcfg-skins { grid-template-columns: 1fr; }
  .mcfg__foot {
    width: min(100%, fit-content) !important;
    max-width: calc(100% - .8rem) !important;
    justify-content: center !important;
    gap: .5rem !important;
    margin: .45rem auto .55rem !important;
    padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom, 0px)) !important;
    flex-wrap: wrap !important;
  }
  .mcfg__foot .mcfg-btn { flex: 1 1 auto !important; min-width: 0; max-width: none; margin-right: 0 !important; }
  .mcfg-btn--ghost { min-width: 0; max-width: none; margin-right: 0 !important; }
  .mcfg-btn__go { display: none; }
  .mcfg-btn--ember, .mcfg-btn--cyan { padding-left: .7rem; padding-right: .7rem; }
  .mcfg-toggles { flex-direction: column; }
  .mcfg-toggle { width: 100%; box-sizing: border-box; }
  .mcfg-custom { gap: 1.2rem; }

  .privx {
    max-width: calc(100vw - .7rem);
    width: calc(100vw - .7rem);
    max-height: calc(100dvh - 12px);
  }
  .privx__hull {
    max-height: calc(100dvh - 12px);
    padding: .85rem .8rem calc(.85rem + env(safe-area-inset-bottom, 0px));
    clip-path: none;
  }
  .privx__list { max-height: none; }
  .privx-act--create { width: 100%; justify-content: center; }
  .privx-act--create span { white-space: normal; text-align: center; line-height: 1.25; }
}

@media (max-width: 720px) {
  .mcfg__head h2 { font-size: clamp(.92rem, 4.2vw, 1.15rem); }
  .mcfg-btn__txt em { display: none; }
  .mcfg-scen, .mcfg-scen__body { min-height: 100px; }
  .ash-confirm {
    max-width: calc(100vw - .7rem);
    width: calc(100vw - .7rem);
  }
}

@media (max-height: 720px) {
  .mcfg__hull,
  .privx__hull { max-height: calc(100dvh - 8px); }
  .mcfg__head { margin-bottom: .7rem; }
  .mcfg-scen, .mcfg-scen__body { min-height: 88px; }
  .mcfg-preset__btn { min-height: 0; padding: .7rem .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mcfg__hull, .mcfg__trace, .mcfg__node, .mcfg__scan::after, .mcfg-scen__art, .mcfg-btn__pulse { animation: none !important; }
}
/* PATCH_MCFG_END */

/* === Faction picker (mission config) === */
.mcfg-factions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.mcfg-faction {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .8rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(14,22,38,.95), rgba(6,10,18,.98));
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  color: var(--text);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.mcfg-faction input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mcfg-faction:hover { transform: translateY(-1px); }
.mcfg-faction--sentinels { border-color: rgba(255,77,42,.28); }
.mcfg-faction--spectre { border-color: rgba(0,240,224,.28); }
.mcfg-faction.is-on.mcfg-faction--sentinels,
.mcfg-faction:has(input:checked).mcfg-faction--sentinels {
  border-color: rgba(255,77,42,.7);
  box-shadow: 0 0 0 1px rgba(255,77,42,.25), 0 8px 24px rgba(255,77,42,.12);
}
.mcfg-faction.is-on.mcfg-faction--spectre,
.mcfg-faction:has(input:checked).mcfg-faction--spectre {
  border-color: rgba(0,240,224,.7);
  box-shadow: 0 0 0 1px rgba(0,240,224,.25), 0 8px 24px rgba(0,240,224,.12);
}
.mcfg-faction__logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  overflow: hidden;
}
.mcfg-faction__logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.mcfg-faction__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.mcfg-faction__meta em {
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--muted);
  font-family: var(--font-u);
}
.mcfg-faction__meta strong {
  font-size: .92rem;
  font-family: var(--font-u);
  letter-spacing: .04em;
}
.mcfg-faction__meta span {
  font-size: .72rem;
  color: var(--muted);
}
.mcfg-faction__check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .15s, transform .15s;
  color: #0a1018;
  background: rgba(255,255,255,.85);
}
.mcfg-faction.is-on .mcfg-faction__check,
.mcfg-faction:has(input:checked) .mcfg-faction__check {
  opacity: 1;
  transform: scale(1);
}
.mcfg-faction--sentinels.is-on .mcfg-faction__check,
.mcfg-faction--sentinels:has(input:checked) .mcfg-faction__check {
  background: #ff6a2e;
}
.mcfg-faction--spectre.is-on .mcfg-faction__check,
.mcfg-faction--spectre:has(input:checked) .mcfg-faction__check {
  background: #00f0e0;
}
@media (max-width: 720px) {
  .mcfg-factions { grid-template-columns: 1fr; }
}

/* === Skin pack picker === */
.mcfg-skins__hint {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--muted);
}
.mcfg-skins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.mcfg-skins--single { grid-template-columns: 1fr; max-width: 360px; }
.mcfg-skin-slot {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .7rem;
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(14,22,38,.95), rgba(6,10,18,.98));
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  color: var(--text);
  transition: border-color .2s, transform .15s;
}
.mcfg-skin-slot:hover { transform: translateY(-1px); }
.mcfg-skin-slot--sentinels { border-color: rgba(255,77,42,.35); }
.mcfg-skin-slot--spectre { border-color: rgba(0,240,224,.35); }
.mcfg-skin-slot__preview {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #0a101c center/contain no-repeat;
  border: 1px solid rgba(255,255,255,.1);
}
.mcfg-skin-slot__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.mcfg-skin-slot__meta em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.mcfg-skin-slot__meta strong {
  font-family: var(--font-u);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mcfg-skin-slot__cta {
  font-family: var(--font-d);
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: .85;
}
.mcfg-skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  padding: .25rem 0 1rem;
}
.mcfg-skin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .55rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,14,24,.92);
  cursor: pointer;
  color: var(--text);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: border-color .2s, transform .15s;
}
.mcfg-skin-card[hidden] { display: none !important; }
.mcfg-skin-card:hover:not(.is-locked) {
  transform: translateY(-2px);
  border-color: rgba(0,240,224,.45);
}
.mcfg-skin-card--sentinels:hover:not(.is-locked) { border-color: rgba(255,77,42,.5); }
.mcfg-skin-card.is-locked { opacity: .45; cursor: not-allowed; }
.mcfg-skin-card__art {
  aspect-ratio: 1;
  background: #060a12 center/contain no-repeat;
  border: 1px solid rgba(255,255,255,.08);
}
.mcfg-skin-card__body { display: flex; flex-direction: column; gap: .15rem; text-align: left; }
.mcfg-skin-card__body strong { font-size: .82rem; font-family: var(--font-u); }
.mcfg-skin-card__body em { font-style: normal; font-size: .72rem; color: var(--muted); }
.mcfg-skin-card__tag,
.mcfg-skin-card__lock {
  position: absolute;
  top: .4rem;
  right: .4rem;
  font-family: var(--font-d);
  font-size: .45rem;
  letter-spacing: .12em;
  padding: .2rem .35rem;
  background: rgba(255,193,74,.2);
  color: var(--ember2);
  border: 1px solid rgba(255,193,74,.35);
}
.mcfg-skin-card__lock { background: rgba(255,93,122,.15); color: var(--danger); border-color: rgba(255,93,122,.35); }
.mcfg-skins__empty { color: var(--muted); grid-column: 1 / -1; }
@media (max-width: 640px) {
  .mcfg-skins { grid-template-columns: 1fr; }
}



/* === MCFG FIX pack: hidden, hull glass, classic card, distinct controls === */
.mcfg-custom[hidden],
.mcfg-classic-sum[hidden],
.mcfg-resume-sum[hidden],
[data-mcfg-ai][hidden],
.mcfg-field[hidden] {
  display: none !important;
}

.mcfg {
  overflow: hidden !important; /* never show dialog scrollbars */
  background: transparent;
  max-height: calc(100dvh - 16px) !important;
}
.mcfg[open] {
  display: flex !important;
  flex-direction: column !important;
}
.mcfg__hull {
  clip-path: none !important;
  border-radius: 0;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100dvh - 16px) !important;
  border: 1px solid rgba(0, 240, 224, .28);
  background:
    linear-gradient(155deg, rgba(14, 24, 40, .92) 0%, rgba(6, 12, 22, .88) 45%, rgba(4, 8, 16, .9) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 60px rgba(0, 240, 224, .08),
    0 24px 64px rgba(0,0,0,.55) !important;
  overflow: hidden;
}
.mcfg__hull::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255,77,42,.12), transparent 18%, transparent 82%, rgba(0,240,224,.1)),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 20%);
  border: 1px solid transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04);
}

/* Classic summary — compact horizontal */
.mcfg-classic-sum {
  clip-path: none !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem !important;
  padding: .7rem .9rem !important;
  border: 1px solid rgba(255, 193, 74, .32) !important;
  border-left: 3px solid #ffc14a !important;
  background:
    linear-gradient(100deg, rgba(255,193,74,.1), transparent 42%),
    rgba(8, 12, 20, .5) !important;
  box-shadow: 0 0 20px rgba(255,193,74,.06);
  grid-template-columns: unset !important;
}
.mcfg-classic-sum__main {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1 1 220px;
  min-width: 0;
}
.mcfg-classic-sum__copy { min-width: 0; flex: 1; }
.mcfg-classic-sum__kicker {
  margin: 0 0 .15rem !important;
  font-family: var(--font-d);
  font-size: .46rem;
  letter-spacing: .16em;
  color: #ffc14a;
  text-transform: uppercase;
  line-height: 1.2;
}
.mcfg-classic-sum__lead {
  margin: 0 !important;
  color: #c8d4e4;
  line-height: 1.35;
  font-size: .82rem;
}
.mcfg-classic-sum__ico {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0;
  display: grid !important;
  place-items: center;
  color: #ffc14a;
  background: rgba(255,193,74,.12);
  border: 1px solid rgba(255,193,74,.35);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.mcfg-classic-sum__rail,
.mcfg-classic-sum__top { display: none !important; }
.mcfg-spec {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .4rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none;
  flex: 1 1 280px;
  justify-content: flex-end;
}
.mcfg-spec li {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  color: #c5d0e0;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,193,74,.22);
  border-radius: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.mcfg-spec li svg { color: #ffc14a; flex-shrink: 0; }
/* Grid chips = hex diamonds (not the same as selects) */
.mcfg-chips--grid {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}
.mcfg-chip--grid {
  clip-path: none !important;
  width: 64px;
  height: 64px;
  min-height: 64px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  position: relative;
}
.mcfg-chip--grid span {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .06em;
  background:
    linear-gradient(145deg, rgba(0,240,224,.12), rgba(0,0,0,.45));
  border: 1px solid rgba(0,240,224,.28);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.mcfg-chip--grid.is-on span,
.mcfg-chip--grid:has(input:checked) span {
  border-color: rgba(0,240,224,.85);
  color: #00f0e0;
  box-shadow: 0 0 22px rgba(0,240,224,.35);
  background: linear-gradient(145deg, rgba(0,240,224,.28), rgba(0,0,0,.35));
}

/* AI chips = soft pills */
.mcfg-chip--ai {
  clip-path: none !important;
  border-radius: 999px !important;
  min-height: 40px !important;
  padding: .4rem 1rem !important;
  border: 1px solid rgba(255,193,74,.25) !important;
  background: rgba(255,193,74,.06) !important;
}
.mcfg-chip--ai.is-on,
.mcfg-chip--ai:has(input:checked) {
  border-color: rgba(255,193,74,.7) !important;
  background: linear-gradient(135deg, rgba(255,193,74,.22), rgba(255,77,42,.1)) !important;
  box-shadow: 0 0 18px rgba(255,193,74,.2) !important;
}

/* Default chip (fallback) — slim bar, not fat square */
.mcfg-chips:not(.mcfg-chips--grid):not(.mcfg-chips--ai) .mcfg-chip {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%) !important;
  min-height: 40px !important;
  padding: .35rem 1.1rem .35rem .85rem !important;
}

/* Native mcfg selects — chevron centered */
.mcfg-select-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.mcfg-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #ffc14a;
  border-bottom: 2px solid #ffc14a;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
}
.mcfg-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  max-width: 100%;
  min-height: 48px !important;
  padding: .65rem 2.4rem .65rem .9rem !important;
  clip-path: none !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-bottom: 2px solid rgba(255,193,74,.55) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%),
    rgba(0,0,0,.4) !important;
  color: var(--text) !important;
  font-family: var(--font-u) !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  cursor: pointer;
}
.mcfg-select:focus {
  outline: none;
  border-color: rgba(0,240,224,.45) !important;
  border-bottom-color: #00f0e0 !important;
  box-shadow: 0 0 18px rgba(0,240,224,.12);
}
.mcfg-input {
  clip-path: none !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-bottom: 2px solid rgba(0,240,224,.45) !important;
  background: rgba(0,0,0,.4) !important;
}

/* Toggles as capsule rails */
.mcfg-toggle {
  clip-path: none !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.03) !important;
}

/* Scenario cards keep media look; slightly less square */
.mcfg-scen {
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%) !important;
}

.mcfg-btn {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

@media (max-width: 720px) {
  .mcfg-chip--grid { width: 56px; height: 56px; min-height: 56px !important; }
  .mcfg-chip--grid span { width: 50px; height: 50px; }
  .mcfg-classic-sum { flex-direction: column !important; align-items: stretch !important; }
  .mcfg-spec { justify-content: flex-start !important; }
}


/* === MCFG: kill scrollbars + crisp scenario text (no blur smear) === */
.mcfg,
.mcfg *,
.mcfg__hull,
.mcfg__scroll,
.mcfg__form,
.privx,
.privx *,
.privx__hull,
.privx__list,
.privx__body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.mcfg::-webkit-scrollbar,
.mcfg *::-webkit-scrollbar,
.mcfg__hull::-webkit-scrollbar,
.mcfg__scroll::-webkit-scrollbar,
.privx::-webkit-scrollbar,
.privx *::-webkit-scrollbar,
.privx__list::-webkit-scrollbar,
.privx__body::-webkit-scrollbar,
.privx__hull::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

.mcfg__scroll {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* Footer — compact centered dock (hugs buttons) */
.mcfg__foot {
  width: fit-content !important;
  max-width: calc(100% - 1.4rem) !important;
  align-self: center !important;
  margin: .55rem auto .65rem !important;
  padding: .7rem .85rem calc(.7rem + env(safe-area-inset-bottom, 0px)) !important;
  background:
    radial-gradient(ellipse 70% 120% at 92% 55%, rgba(255,80,20,.16), transparent 52%),
    radial-gradient(ellipse 45% 100% at 6% 50%, rgba(0,200,210,.1), transparent 48%),
    linear-gradient(165deg, rgba(36, 42, 58, .98) 0%, rgba(14, 16, 26, .99) 42%, rgba(6, 8, 14, 1) 100%) !important;
  min-height: 0 !important;
  border: 1px solid rgba(255,140,60,.38) !important;
  border-top: 1px solid rgba(255,170,90,.5) !important;
  clip-path: polygon(
    14px 0, calc(100% - 7px) 0, 100% 7px,
    100% calc(100% - 14px), calc(100% - 14px) 100%, 7px 100%,
    0 calc(100% - 7px), 0 14px
  ) !important;
  overflow: visible !important;
  justify-content: center !important;
  gap: .65rem !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 980px) {
  .mcfg__foot {
    flex-wrap: wrap !important;
    width: min(100%, 100%) !important;
    max-width: calc(100% - .5rem) !important;
  }
  .mcfg__foot .mcfg-btn {
    flex: 1 1 140px !important;
  }
  .privx[open] {
    display: flex !important;
    flex-direction: column !important;
  }
  .privx__hull {
    clip-path: none !important;
  }
  .privx__list {
    overflow-y: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
  }
}

/* Scenario cards: sharp text — hard bottom band, no milky smear */
.mcfg-scen {
  isolation: isolate;
  overflow: hidden;
}
.mcfg-scen__art {
  animation: none !important;
  transform: scale(1.02) !important;
  filter: none !important;
}
/* Kill soft full-card veil that looked like blur under titles */
.mcfg-scen__art::after {
  inset: auto 0 0 0 !important;
  top: auto !important;
  height: 46% !important;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(2, 6, 14, 0) 18%,
    rgba(2, 6, 14, .88) 55%,
    rgba(2, 6, 14, .98) 100%
  ) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}
.mcfg-scen__scan {
  opacity: 0 !important;
  display: none !important;
  background: none !important;
}
.mcfg-scen.is-on .mcfg-scen__scan,
.mcfg-scen:has(input:checked) .mcfg-scen__scan {
  opacity: 0 !important;
  display: none !important;
}
.mcfg-scen__body {
  z-index: 3 !important;
  justify-content: flex-end;
  padding: .55rem .65rem .6rem !important;
  background: transparent !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.mcfg-scen__body strong,
.mcfg-scen__body em {
  text-shadow: 0 1px 0 rgba(0, 0, 0, .9) !important; /* hard 1px, not soft blur */
  filter: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  paint-order: normal;
}
.mcfg-scen__body strong {
  color: #fff !important;
  font-size: .6rem !important;
  letter-spacing: .1em !important;
  line-height: 1.15 !important;
}
.mcfg-scen__body em {
  color: rgba(190, 205, 225, .98) !important;
  font-size: .7rem !important;
  margin-top: .18rem !important;
  line-height: 1.25 !important;
}
.mcfg-scen.is-on,
.mcfg-scen:has(input:checked) {
  box-shadow: 0 0 0 1px rgba(0,240,224,.55), 0 8px 24px rgba(0,0,0,.35) !important;
}
.mcfg-scen--ember.is-on,
.mcfg-scen--ember:has(input:checked) {
  box-shadow: 0 0 0 1px rgba(255,77,42,.6), 0 8px 24px rgba(0,0,0,.35) !important;
}
.mcfg-scen--gold.is-on,
.mcfg-scen--gold:has(input:checked) {
  box-shadow: 0 0 0 1px rgba(255,193,74,.6), 0 8px 24px rgba(0,0,0,.35) !important;
}
.mcfg-scen__check {
  filter: none !important;
  drop-shadow: none;
}
.mcfg-scen.is-on .mcfg-scen__check,
.mcfg-scen:has(input:checked) .mcfg-scen__check {
  filter: none !important;
}

/* Scenario briefing strip under cards */
.mcfg-scen-brief {
  --sb-a: #8b6cff;
  --sb-b: #c4a8ff;
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0;
  margin-top: .85rem;
  padding: .85rem 1rem .9rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--sb-a) 42%, rgba(255,255,255,.1));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sb-a) 16%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 30, .96), rgba(6, 10, 18, .98));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow:
    0 12px 28px rgba(0,0,0,.35),
    inset 0 1px 0 color-mix(in srgb, var(--sb-b) 18%, transparent);
  overflow: hidden;
}
.mcfg-scen-brief[data-accent="violet"] { --sb-a: #8b6cff; --sb-b: #c4a8ff; }
.mcfg-scen-brief[data-accent="ember"] { --sb-a: #ff5a1e; --sb-b: #ffc14a; }
.mcfg-scen-brief[data-accent="gold"] { --sb-a: #ffc14a; --sb-b: #ffe08a; }
.mcfg-scen-brief__rail {
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--sb-b), var(--sb-a), transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--sb-a) 55%, transparent);
}
.mcfg-scen-brief__copy { min-width: 0; grid-column: 1 / -1; padding-left: .35rem; }
.mcfg-scen-brief__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
  margin: 0 0 .4rem;
  font-family: var(--font-d);
  font-size: .52rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sb-b);
}
.mcfg-scen-brief__kicker span {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border: 1px solid color-mix(in srgb, var(--sb-a) 55%, transparent);
  background: color-mix(in srgb, var(--sb-a) 18%, transparent);
  color: #fff;
  box-shadow: 0 0 14px color-mix(in srgb, var(--sb-a) 22%, transparent);
}
.mcfg-scen-brief__kicker i {
  width: 18px; height: 1px;
  background: linear-gradient(90deg, var(--sb-a), transparent);
}
.mcfg-scen-brief__kicker em {
  font-style: normal;
  color: rgba(210, 220, 235, .85);
  letter-spacing: .12em;
}
.mcfg-scen-brief__text {
  margin: 0;
  font-size: .84rem;
  line-height: 1.45;
  color: #c5d0e0;
  max-width: none;
  width: 100%;
}

/* Barriers: toggle + density on one row */
.mcfg-barrier-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) minmax(220px, 1.2fr);
  gap: .75rem 1rem;
  align-items: end;
  margin-top: .15rem;
}
.mcfg-toggle--inline {
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
  min-height: 52px !important;
  padding: .55rem .85rem .55rem .8rem !important;
  margin: 0;
}
.mcfg-toggle--inline .mcfg-toggle__hint {
  display: block;
  font-style: normal;
  font-size: .72rem;
  color: #9aacbf;
  line-height: 1.25;
  margin-top: .1rem;
}
.mcfg-field--density { margin: 0; gap: .4rem; }
.mcfg-field--density .mcfg-chips--barriers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.mcfg-field--density .mcfg-chip {
  justify-content: center;
  text-align: center;
  min-height: 40px;
  padding: .4rem .35rem;
}
.mcfg-field--seed { margin-top: .7rem; }

@media (max-width: 720px) {
  .mcfg-barrier-row {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
}

/* Custom extras — high-contrast chips + protocol toggles */
.mcfg-hint {
  margin: .55rem 0 0;
  font-size: .72rem;
  color: #9aacbf;
  line-height: 1.35;
}

/* Grade hex — solid fill, readable off-state */
.mcfg-chips--grid {
  justify-content: center;
}
.mcfg-chip--grid span {
  color: #dce6f2 !important;
  background:
    linear-gradient(160deg, rgba(28, 42, 62, .98), rgba(8, 14, 24, .98)) !important;
  border: 1px solid rgba(140, 170, 200, .45) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.4) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.8);
}
.mcfg-chip--grid.is-on span,
.mcfg-chip--grid:has(input:checked) span {
  color: #041218 !important;
  border-color: #5ff5ea !important;
  background:
    linear-gradient(160deg, #7ff8ef, #00d4c8 55%, #009e9a) !important;
  box-shadow: 0 0 22px rgba(0,240,224,.45), 0 6px 14px rgba(0,0,0,.35) !important;
  text-shadow: none;
}

/* Layout / moves / first — opaque bars */
.mcfg-chips--layout,
.mcfg-chips--moves,
.mcfg-chips--first {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: flex-start;
}
.mcfg-chip--layout,
.mcfg-chips--moves .mcfg-chip,
.mcfg-chips--first .mcfg-chip {
  min-height: 44px !important;
  padding: .6rem 1rem !important;
  border: 1px solid rgba(160, 185, 210, .4) !important;
  background:
    linear-gradient(165deg, rgba(26, 38, 56, .98), rgba(10, 16, 28, .98)) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.35) !important;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
}
.mcfg-chip--layout span,
.mcfg-chips--moves .mcfg-chip span,
.mcfg-chips--first .mcfg-chip span {
  color: #e8f0fa !important;
  font-size: .58rem !important;
  letter-spacing: .1em;
}
.mcfg-chip--layout.is-on,
.mcfg-chip--layout:has(input:checked),
.mcfg-chips--moves .mcfg-chip.is-on,
.mcfg-chips--moves .mcfg-chip:has(input:checked),
.mcfg-chips--first .mcfg-chip.is-on,
.mcfg-chips--first .mcfg-chip:has(input:checked) {
  border-color: rgba(0, 240, 224, .85) !important;
  background:
    linear-gradient(165deg, rgba(0, 70, 72, .95), rgba(0, 36, 42, .98)) !important;
  box-shadow: 0 0 20px rgba(0,240,224,.28), 0 6px 16px rgba(0,0,0,.35) !important;
}
.mcfg-chip--layout.is-on span,
.mcfg-chip--layout:has(input:checked) span,
.mcfg-chips--moves .mcfg-chip.is-on span,
.mcfg-chips--moves .mcfg-chip:has(input:checked) span,
.mcfg-chips--first .mcfg-chip.is-on span,
.mcfg-chips--first .mcfg-chip:has(input:checked) span {
  color: #8ffcf4 !important;
}

/* Protocol toggles — centered cards + solid switch */
.mcfg-toggles--grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: .85rem !important;
  margin-top: 0 !important;
  justify-items: stretch;
}
.mcfg-toggles--grid .mcfg-toggle {
  display: flex !important;
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 1rem 1.05rem !important;
  min-height: 84px !important;
  text-align: left;
  border-radius: 0 !important;
  background:
    linear-gradient(160deg, rgba(24, 36, 54, .98), rgba(8, 14, 24, .99)) !important;
  border: 1px solid rgba(150, 175, 205, .38) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.4) !important;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px) !important;
}
.mcfg-toggle__body {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  text-align: left;
}
.mcfg-toggles--grid .mcfg-toggle__label {
  font-size: .95rem !important;
  font-weight: 600;
  color: #f2f6fc !important;
  gap: .45rem;
}
.mcfg-toggles--grid .mcfg-toggle__label svg {
  color: #ffc14a !important;
  flex-shrink: 0;
}
.mcfg-toggles--grid .mcfg-toggle__hint {
  display: block;
  width: auto;
  margin: 0;
  padding: 0 !important;
  font-style: normal;
  font-size: .78rem;
  color: #b0c0d4 !important;
  line-height: 1.35;
}
.mcfg-toggles--grid .mcfg-toggle__ui {
  width: 52px !important;
  height: 28px !important;
  flex-shrink: 0;
  border-radius: 0 !important;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  background: rgba(0, 0, 0, .55) !important;
  border: 1px solid rgba(180, 200, 220, .35) !important;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}
.mcfg-toggles--grid .mcfg-toggle__ui::after {
  top: 3px !important;
  left: 3px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 0 !important;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  background: #c5d2e4 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.45);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.mcfg-toggles--grid .mcfg-toggle:has(input:checked) {
  border-color: rgba(0, 240, 224, .7) !important;
  background:
    linear-gradient(160deg, rgba(0, 58, 62, .95), rgba(8, 18, 28, .98)) !important;
  box-shadow: 0 0 24px rgba(0,240,224,.2), 0 10px 28px rgba(0,0,0,.4) !important;
}
.mcfg-toggles--grid .mcfg-toggle:has(input:checked) .mcfg-toggle__ui {
  background: rgba(0, 240, 224, .22) !important;
  border-color: #00f0e0 !important;
  box-shadow: 0 0 12px rgba(0,240,224,.35) inset;
}
.mcfg-toggles--grid .mcfg-toggle:has(input:checked) .mcfg-toggle__ui::after {
  transform: translateX(22px) !important;
  background: #00f0e0 !important;
  box-shadow: 0 0 12px rgba(0,240,224,.7);
}
.mcfg-toggles--grid .mcfg-toggle:has(input:checked) .mcfg-toggle__label {
  color: #fff !important;
}
.mcfg-sec--mode { margin-bottom: .15rem; }

@media (max-width: 640px) {
  .mcfg-toggles--grid { grid-template-columns: 1fr !important; }
  .mcfg-preset__tag { display: none; }
  .mcfg-chips--grid { justify-content: flex-start; }
}

/* ============================================================
   Room preview — briefing por arena (prevx v2)
   ============================================================ */
.prevx {
  --px-accent: #8b6cff;
  --px-accent-2: #c4a8ff;
  --px-glow: rgba(139, 108, 255, .42);
  --px-ink: #070412;
  --px-edge: rgba(180, 160, 255, .55);
  --px-heat: rgba(139, 108, 255, .18);
  --px-depth: 18px;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + .85rem) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  perspective: 1400px;
}
.prevx[data-scenario="void_relay"] {
  --px-accent: #8b6cff;
  --px-accent-2: #c4a8ff;
  --px-glow: rgba(139, 108, 255, .48);
  --px-ink: #070412;
  --px-edge: rgba(180, 160, 255, .58);
  --px-heat: rgba(120, 90, 255, .22);
}
.prevx[data-scenario="ember_rift"] {
  --px-accent: #ff5a1e;
  --px-accent-2: #ffc14a;
  --px-glow: rgba(255, 90, 30, .48);
  --px-ink: #140301;
  --px-edge: rgba(255, 170, 90, .65);
  --px-heat: rgba(255, 80, 20, .28);
}
.prevx[data-scenario="ash_core"] {
  --px-accent: #ffc14a;
  --px-accent-2: #ffe08a;
  --px-glow: rgba(255, 193, 74, .45);
  --px-ink: #0e0a02;
  --px-edge: rgba(255, 220, 140, .6);
  --px-heat: rgba(255, 180, 40, .22);
}

.prevx__bg, .prevx__veil, .prevx__grid, .prevx__scan, .prevx__glow,
.prevx__orbs, .prevx__embers, .prevx__rings, .prevx__noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.prevx__bg {
  background-size: cover;
  background-position: center;
  background-color: var(--px-ink);
  transform: scale(1.08);
  filter: saturate(1.25) brightness(.42) contrast(1.12);
  animation: prevxKen 28s ease-in-out infinite alternate;
}
.prevx__veil {
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, color-mix(in srgb, var(--px-accent) 36%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 45% at 12% 85%, color-mix(in srgb, var(--px-accent) 22%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 70%, color-mix(in srgb, var(--px-accent-2) 16%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(2,4,10,.42) 0%, rgba(2,4,10,.72) 42%, rgba(2,4,10,.94) 100%);
}
.prevx__grid {
  z-index: 1; opacity: .32;
  background-image:
    linear-gradient(color-mix(in srgb, var(--px-accent) 22%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--px-accent) 16%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 15%, transparent 78%);
  transform: perspective(600px) rotateX(18deg) scale(1.2);
  transform-origin: 50% 0%;
  animation: prevxGridDrift 18s linear infinite;
}
.prevx__scan {
  z-index: 1;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--px-accent) 14%, transparent), transparent);
  background-size: 100% 220%;
  animation: prevxScan 6.2s linear infinite;
  opacity: .6;
}
.prevx__glow {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 115%, var(--px-glow), transparent 42%),
    radial-gradient(circle at 18% 30%, var(--px-heat), transparent 35%);
  opacity: .7;
  animation: prevxGlowPulse 5s ease-in-out infinite alternate;
}
.prevx__noise {
  z-index: 1; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Floating orbs */
.prevx__orbs { z-index: 1; overflow: hidden; }
.prevx__orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--px-accent-2) 70%, #fff), var(--px-accent) 45%, transparent 70%);
  filter: blur(2px);
  opacity: .55;
  animation: prevxOrbFloat 12s ease-in-out infinite;
}
.prevx__orb--a { width: 180px; height: 180px; top: 8%; left: -4%; animation-duration: 14s; }
.prevx__orb--b { width: 120px; height: 120px; top: 55%; right: -2%; animation-duration: 11s; animation-delay: -3s; opacity: .4; }
.prevx__orb--c { width: 70px; height: 70px; bottom: 18%; left: 28%; animation-duration: 9s; animation-delay: -5s; opacity: .35; }

/* Ember / ash particles */
.prevx__embers { z-index: 1; overflow: hidden; }
.prevx__embers i {
  position: absolute; bottom: -8%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--px-accent-2);
  box-shadow: 0 0 10px var(--px-glow), 0 0 20px var(--px-accent);
  opacity: 0;
  animation: prevxEmberRise 7s linear infinite;
}
.prevx__embers i:nth-child(1) { left: 8%; animation-delay: 0s; }
.prevx__embers i:nth-child(2) { left: 18%; width: 3px; height: 3px; animation-delay: 1.1s; animation-duration: 8.5s; }
.prevx__embers i:nth-child(3) { left: 32%; animation-delay: 2.2s; }
.prevx__embers i:nth-child(4) { left: 48%; width: 5px; height: 5px; animation-delay: .6s; animation-duration: 6.2s; }
.prevx__embers i:nth-child(5) { left: 62%; animation-delay: 3.1s; }
.prevx__embers i:nth-child(6) { left: 74%; width: 3px; height: 3px; animation-delay: 1.8s; animation-duration: 9s; }
.prevx__embers i:nth-child(7) { left: 84%; animation-delay: 4s; }
.prevx__embers i:nth-child(8) { left: 92%; width: 2px; height: 2px; animation-delay: 2.7s; animation-duration: 7.8s; }

/* Radar rings */
.prevx__rings { z-index: 1; display: grid; place-items: center; opacity: .35; }
.prevx__rings span {
  position: absolute;
  width: min(70vw, 520px); height: min(70vw, 520px);
  border: 1px solid color-mix(in srgb, var(--px-accent) 45%, transparent);
  border-radius: 50%;
  animation: prevxRing 8s ease-out infinite;
}
.prevx__rings span:nth-child(2) { animation-delay: 2.6s; width: min(55vw, 400px); height: min(55vw, 400px); }
.prevx__rings span:nth-child(3) { animation-delay: 5.2s; width: min(40vw, 280px); height: min(40vw, 280px); }

/* Scenario-specific atmosphere tweaks */
.prevx[data-scenario="ember_rift"] .prevx__bg {
  filter: saturate(1.4) brightness(.4) contrast(1.18) hue-rotate(-4deg);
}
.prevx[data-scenario="ember_rift"] .prevx__embers i {
  background: #ffc14a;
  box-shadow: 0 0 12px rgba(255,90,30,.9), 0 0 24px rgba(255,120,40,.5);
}
.prevx[data-scenario="void_relay"] .prevx__rings { opacity: .5; }
.prevx[data-scenario="void_relay"] .prevx__embers i {
  background: #c4a8ff;
  box-shadow: 0 0 14px rgba(139,108,255,.85);
}
.prevx[data-scenario="ash_core"] .prevx__embers i {
  background: #ffe08a;
  box-shadow: 0 0 12px rgba(255,193,74,.8);
}

@keyframes prevxKen {
  0% { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.12) translate3d(-1.4%, 1.2%, 0); }
}
@keyframes prevxScan {
  0% { background-position: 0 -40%; }
  100% { background-position: 0 140%; }
}
@keyframes prevxGlowPulse {
  0% { opacity: .5; }
  100% { opacity: .85; }
}
@keyframes prevxGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}
@keyframes prevxOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.08); }
}
@keyframes prevxEmberRise {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12% { opacity: .9; }
  100% { transform: translate3d(12px, -110vh, 0) scale(1.2); opacity: 0; }
}
@keyframes prevxRing {
  0% { transform: scale(.55); opacity: .55; }
  100% { transform: scale(1.25); opacity: 0; }
}

.prevx__wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* flex-start evita o bug de center+overflow (topo cortado / scroll “travado”).
     safe center centra só quando o painel cabe na viewport. */
  justify-content: flex-start;
  justify-content: safe center;
}

/* Hull — painel 3D */
.prevx-hull {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  padding: clamp(1.15rem, 2.4vw, 1.7rem);
  border: 1px solid color-mix(in srgb, var(--px-accent) 52%, rgba(255,255,255,.14));
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--px-accent) 14%, rgba(12,14,24,.92)) 0%,
      rgba(5,7,14,.96) 48%,
      rgba(3,4,10,.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.6) inset,
    inset 0 1px 0 rgba(255,255,255,.07),
    0 28px 70px rgba(0,0,0,.62),
    0 10px 28px color-mix(in srgb, var(--px-glow) 35%, transparent),
    0 0 60px color-mix(in srgb, var(--px-glow) 40%, transparent);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  overflow: hidden;
  transform: translateZ(0) rotateX(1.2deg);
  transform-style: preserve-3d;
  animation: prevxHullIn .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes prevxHullIn {
  from { opacity: 0; transform: translateY(18px) rotateX(6deg) scale(.97); filter: blur(5px); }
  to { opacity: 1; transform: translateZ(0) rotateX(1.2deg); filter: none; }
}

.prevx-hull__corner {
  position: absolute; width: 20px; height: 20px; z-index: 4; pointer-events: none;
}
.prevx-hull__corner--tl { top: 7px; left: 7px; border-top: 2px solid var(--px-accent); border-left: 2px solid var(--px-accent); }
.prevx-hull__corner--tr { top: 7px; right: 7px; border-top: 2px solid var(--px-accent-2); border-right: 2px solid var(--px-accent-2); }
.prevx-hull__corner--bl { bottom: 7px; left: 7px; border-bottom: 2px solid var(--px-accent-2); border-left: 2px solid var(--px-accent-2); }
.prevx-hull__corner--br { bottom: 7px; right: 7px; border-bottom: 2px solid var(--px-accent); border-right: 2px solid var(--px-accent); }

.prevx-hull__beam {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 38%, color-mix(in srgb, var(--px-accent) 16%, transparent) 50%, transparent 62%);
  background-size: 220% 100%;
  animation: prevxBeam 4.6s ease-in-out infinite;
  opacity: .75;
}
@keyframes prevxBeam {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
.prevx-hull__hex {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .09;
  background-image:
    radial-gradient(circle at 18% 22%, var(--px-accent), transparent 30%),
    radial-gradient(circle at 82% 78%, var(--px-accent-2), transparent 34%);
}
.prevx-hull__edge {
  position: absolute; top: 12%; bottom: 12%; width: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--px-accent), transparent);
  opacity: .45;
  box-shadow: 0 0 12px var(--px-glow);
}
.prevx-hull__edge--l { left: 0; }
.prevx-hull__edge--r { right: 0; background: linear-gradient(180deg, transparent, var(--px-accent-2), transparent); }

/* Hero + arena plate */
.prevx-hero {
  position: relative; z-index: 2;
  display: grid; gap: .85rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--px-accent) 24%, rgba(255,255,255,.06));
  animation: prevxFadeUp .5s .08s both;
}
.prevx-hero__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem;
}
.prevx-hero__kicker {
  display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  font-family: var(--font-d); font-size: .5rem; letter-spacing: .22em;
  color: var(--px-accent-2); text-transform: uppercase;
  text-shadow: 0 0 14px var(--px-glow);
}
.prevx-hero__kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--px-accent);
  box-shadow: 0 0 12px var(--px-glow);
  animation: mcfgBlink 1.5s ease infinite;
}
.prevx-hero__badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
}

.prevx-arena {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.4fr) minmax(180px, .9fr);
  gap: .85rem;
  align-items: stretch;
  padding: .65rem;
  border: 1px solid color-mix(in srgb, var(--px-accent) 35%, rgba(255,255,255,.08));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--px-accent) 12%, rgba(0,0,0,.35)), rgba(0,0,0,.2));
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 28px rgba(0,0,0,.35),
    0 0 24px color-mix(in srgb, var(--px-glow) 25%, transparent);
  transform: translateZ(12px);
}
.prevx-arena__art {
  position: relative;
  width: 100%;
  min-height: 96px;
  height: 100%;
  background-size: cover; background-position: center;
  border: 1px solid color-mix(in srgb, var(--px-accent) 50%, transparent);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.5) inset,
    0 8px 20px rgba(0,0,0,.45),
    0 0 22px color-mix(in srgb, var(--px-glow) 40%, transparent);
  overflow: hidden;
}
.prevx-arena__shade {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--px-accent) 25%, transparent), rgba(0,0,0,.45));
}
.prevx-arena__pulse {
  position: absolute; inset: -30%;
  background: radial-gradient(circle, color-mix(in srgb, var(--px-accent) 35%, transparent), transparent 55%);
  animation: prevxArenaPulse 3.2s ease-in-out infinite;
}
@keyframes prevxArenaPulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: .7; transform: scale(1.05); }
}
.prevx-arena__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
}
.prevx-arena__tag {
  margin: 0;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--px-accent-2);
}
.prevx-arena__side {
  display: grid;
  gap: .35rem;
  align-content: center;
  min-width: 0;
  padding-left: .65rem;
  border-left: 1px solid color-mix(in srgb, var(--px-accent) 28%, transparent);
}
.prevx-arena__stat {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  padding: .35rem .5rem;
  border: 1px solid color-mix(in srgb, var(--px-accent) 22%, rgba(255,255,255,.06));
  background: rgba(0,0,0,.28);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.prevx-arena__stat em {
  font-style: normal; font-family: var(--font-d);
  font-size: .36rem; letter-spacing: .14em; text-transform: uppercase;
  color: #8ea0bc;
}
.prevx-arena__stat strong {
  font-size: .78rem; color: #f4f7ff; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prevx-arena__stat--live strong { color: var(--px-accent-2); }

.prevx-hero__title {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 0 28px color-mix(in srgb, var(--px-accent) 40%, transparent);
  background: linear-gradient(100deg, #fff 20%, var(--px-accent-2) 55%, var(--px-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prevx-hero__sub {
  margin: .35rem 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem;
  color: #9aabc4; font-size: .9rem; line-height: 1.4;
}
.prevx-hero__sub strong { color: var(--px-accent-2); font-weight: 700; letter-spacing: .02em; }

.prevx-code {
  font-family: var(--font-d);
  font-size: .62rem;
  letter-spacing: .16em;
  padding: .35rem .6rem;
  color: #e8eefc;
  border: 1px solid color-mix(in srgb, var(--px-accent) 42%, transparent);
  background: color-mix(in srgb, var(--px-accent) 16%, rgba(0,0,0,.55));
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: 0 0 14px color-mix(in srgb, var(--px-glow) 30%, transparent);
}
.prevx-status {
  display: inline-flex; align-items: center; gap: .4rem;
  margin: 0; font-style: normal;
  font-family: var(--font-d); font-size: .5rem; letter-spacing: .16em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border: 1px solid color-mix(in srgb, var(--px-accent) 40%, transparent);
  background: color-mix(in srgb, var(--px-accent) 14%, rgba(0,0,0,.4));
  color: var(--px-accent-2);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.prevx-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: mcfgBlink 1.2s ease infinite;
}
.prevx-status--waiting { border-color: rgba(255,193,74,.45); background: rgba(255,193,74,.12); color: #ffc14a; }
.prevx-status--active { border-color: rgba(255,77,42,.5); background: rgba(255,77,42,.14); color: #ff8a5c; }

/* Ops strip — Modo / Slots / Canal (diferente dos parâmetros) */
.prevx-ops {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .1rem;
  padding: .55rem;
  border: 1px solid color-mix(in srgb, var(--px-accent) 28%, rgba(255,255,255,.08));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--px-accent) 10%, rgba(0,0,0,.35)), rgba(0,0,0,.22));
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(0,0,0,.28);
}
.prevx-ops__item {
  position: relative;
  display: flex; align-items: center; gap: .45rem;
  min-width: 0;
  padding: .45rem .5rem;
  border: 1px solid transparent;
  background: rgba(255,255,255,.03);
  transition: border-color .18s, background .18s, transform .18s;
}
.prevx-ops__item:hover {
  border-color: color-mix(in srgb, var(--px-accent) 40%, transparent);
  background: color-mix(in srgb, var(--px-accent) 10%, rgba(0,0,0,.25));
  transform: translateY(-1px);
}
.prevx-ops__item--mode { border-left: 2px solid #7af8ef; }
.prevx-ops__item--slots { border-left: 2px solid var(--px-accent-2); }
.prevx-ops__item--canal { border-left: 2px solid #ffc14a; }
.prevx-ops__item--access { border-left: 2px solid #b8a0ff; }
.prevx-ops__item--rank { border-left: 2px solid #ff8a5c; }
.prevx-ops__ico {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--px-accent-2);
  border: 1px solid color-mix(in srgb, var(--px-accent) 35%, transparent);
  background: color-mix(in srgb, var(--px-accent) 12%, rgba(0,0,0,.4));
  border-radius: 6px;
}
.prevx-ops__copy {
  display: grid; gap: .1rem; min-width: 0;
}
.prevx-ops__copy em {
  font-style: normal; font-family: var(--font-d);
  font-size: .38rem; letter-spacing: .14em; text-transform: uppercase;
  color: #8ea0bc;
}
.prevx-ops__copy strong {
  font-size: .78rem; color: #f4f7ff; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prevx-ops__dots {
  display: flex; gap: 4px; margin-left: auto; padding-right: 2px;
}
.prevx-ops__dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
}
.prevx-ops__dots i.is-on {
  background: var(--px-accent-2);
  box-shadow: 0 0 8px var(--px-glow);
  border-color: transparent;
}

/* Cards 3D */
.prevx-layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  margin: 0 0 1rem;
  transform-style: preserve-3d;
}
.prevx-card {
  position: relative;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--px-accent) 32%, rgba(255,255,255,.1));
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--px-accent) 14%, rgba(14,16,28,.94)) 0%,
      rgba(6,8,16,.94) 55%,
      rgba(4,5,12,.96) 100%);
  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    0 4px 0 color-mix(in srgb, var(--px-accent) 22%, #000),
    inset 0 1px 0 rgba(255,255,255,.07),
    0 0 28px color-mix(in srgb, var(--px-glow) 18%, transparent);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  animation: prevxFadeUp .55s both;
  transform: translateZ(var(--px-depth));
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.prevx-card:hover {
  transform: translateY(-4px) translateZ(calc(var(--px-depth) + 8px));
  border-color: color-mix(in srgb, var(--px-accent) 55%, rgba(255,255,255,.14));
  box-shadow:
    0 24px 48px rgba(0,0,0,.5),
    0 6px 0 color-mix(in srgb, var(--px-accent) 28%, #000),
    inset 0 1px 0 rgba(255,255,255,.09),
    0 0 36px color-mix(in srgb, var(--px-glow) 35%, transparent);
}
.prevx-card__glint {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--px-accent) 12%, transparent) 48%, transparent 66%);
  opacity: .7;
  transform: translateX(-40%);
  transition: transform .5s ease;
}
.prevx-card:hover .prevx-card__glint { transform: translateX(40%); }
.prevx-card--rules { animation-delay: .14s; }
.prevx-card--roster { animation-delay: .2s; }
.prevx-card--skin {
  margin: 0 0 1rem;
  z-index: 2;
  animation-delay: .26s;
}
.prevx-card__head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: .9rem;
}
.prevx-card__ico {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--px-accent-2);
  border: 1px solid color-mix(in srgb, var(--px-accent) 45%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--px-accent) 28%, rgba(0,0,0,.4)), rgba(0,0,0,.55));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--px-glow) 45%, transparent),
    0 4px 0 rgba(0,0,0,.35);
  transform: translateZ(8px);
}
.prevx-card__eyebrow {
  margin: 0 0 .15rem;
  font-family: var(--font-d); font-size: .4rem; letter-spacing: .18em;
  text-transform: uppercase; color: color-mix(in srgb, var(--px-accent-2) 75%, #8ea0bc);
}
.prevx-card h2 {
  position: relative; z-index: 1;
  margin: 0;
  font-family: var(--font-d); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.prevx-card h2 span {
  color: var(--px-accent-2); font-weight: 600;
}

/* Parâmetros — telemetria 2 por linha */
.prevx-telem {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
}
.prevx-telem__row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: .45rem;
  row-gap: .12rem;
  padding: .42rem .5rem;
  border: 1px solid rgba(255,255,255,.06);
  border-left: 2px solid color-mix(in srgb, var(--px-accent) 55%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--px-accent) 8%, rgba(0,0,0,.35)), rgba(0,0,0,.18));
  animation: prevxFadeUp .35s calc(.18s + var(--i, 0) * .03s) both;
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.prevx-telem__row:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  grid-template-columns: 24px minmax(72px, .6fr) 1fr;
  grid-template-rows: auto;
}
.prevx-telem__row:last-child:nth-child(odd) .prevx-telem__label {
  grid-column: 2;
  grid-row: 1;
}
.prevx-telem__row:last-child:nth-child(odd) .prevx-telem__value {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  text-align: right;
}
.prevx-telem__row:hover {
  border-color: color-mix(in srgb, var(--px-accent) 40%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--px-accent) 14%, rgba(0,0,0,.4)), rgba(0,0,0,.22));
}
.prevx-telem__row--scenario { border-left-color: var(--px-accent-2); }
.prevx-telem__row--overload { border-left-color: #ff8a5c; }
.prevx-telem__row--victory { border-left-color: #ffc14a; }
.prevx-telem__row--skin_s { border-left-color: #ff7a45; }
.prevx-telem__row--skin_p { border-left-color: #5ff5ea; }
.prevx-telem__row--ai { border-left-color: #c4a8ff; }
.prevx-telem__ico {
  grid-row: 1 / span 2;
  width: 24px; height: 24px; display: grid; place-items: center;
  color: var(--px-accent-2);
  background: rgba(0,0,0,.35);
  border: 1px solid color-mix(in srgb, var(--px-accent) 28%, transparent);
  border-radius: 4px;
}
.prevx-telem__row:last-child:nth-child(odd) .prevx-telem__ico {
  grid-row: 1;
}
.prevx-telem__label {
  grid-column: 2;
  font-family: var(--font-d);
  font-size: .38rem; letter-spacing: .12em; text-transform: uppercase;
  color: #8ea0bc;
}
.prevx-telem__value {
  grid-column: 2;
  font-size: .8rem; font-weight: 700; color: #f4f7ff;
  letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}

/* Operadores — avatar + facção */
.prevx-roster {
  position: relative; z-index: 1;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.prevx-op {
  position: relative;
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .8rem .7rem .7rem;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 0% 50%, color-mix(in srgb, var(--px-accent) 16%, transparent), transparent 45%),
    linear-gradient(105deg, rgba(8,10,18,.95), rgba(4,6,12,.9));
  border-radius: 4px 14px 4px 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
  animation: prevxFadeUp .4s calc(.28s + var(--i, 0) * .06s) both;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.prevx-op--ember, .prevx-op--sentinels {
  border-color: rgba(255,122,70,.35);
  background:
    radial-gradient(circle at 8% 50%, rgba(255,90,30,.22), transparent 48%),
    linear-gradient(105deg, rgba(28,10,6,.95), rgba(8,6,10,.92));
}
.prevx-op--cyan, .prevx-op--spectre {
  border-color: rgba(0,240,224,.32);
  background:
    radial-gradient(circle at 8% 50%, rgba(0,240,224,.18), transparent 48%),
    linear-gradient(105deg, rgba(4,22,26,.95), rgba(6,8,14,.92));
}
.prevx-op:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 28px rgba(0,0,0,.4), 0 0 20px color-mix(in srgb, var(--px-glow) 25%, transparent);
}
.prevx-op__avatar {
  position: relative;
  width: 46px; height: 46px; flex-shrink: 0;
}
.prevx-op__avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  background: #0a0c12;
  display: block;
}
.prevx-op--ember .prevx-op__avatar img,
.prevx-op--sentinels .prevx-op__avatar img {
  border-color: rgba(255,122,70,.65);
  box-shadow: 0 0 16px rgba(255,90,30,.4);
}
.prevx-op--cyan .prevx-op__avatar img,
.prevx-op--spectre .prevx-op__avatar img {
  border-color: rgba(0,240,224,.6);
  box-shadow: 0 0 16px rgba(0,240,224,.35);
}
.prevx-op__ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--px-accent-2) 50%, transparent);
  animation: prevxOpSpin 10s linear infinite;
  pointer-events: none;
  opacity: .55;
}
@keyframes prevxOpSpin {
  to { transform: rotate(360deg); }
}
.prevx-op__pulse {
  position: absolute; right: 12px; top: 50%; width: 7px; height: 7px;
  border-radius: 50%; transform: translateY(-50%);
  background: var(--px-accent-2);
  box-shadow: 0 0 12px var(--px-glow);
  animation: mcfgBlink 1.8s ease infinite;
}
.prevx-op__meta {
  display: grid; gap: .28rem; min-width: 0; flex: 1; padding-right: 1rem;
}
.prevx-op__meta strong {
  font-size: .95rem; color: #fff; letter-spacing: .02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prevx-op__tags {
  display: flex; flex-wrap: wrap; gap: .3rem;
}
.prevx-op__faction {
  margin: 0; font-style: normal;
  font-family: var(--font-d); font-size: .38rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .16rem .4rem;
  color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
}
.prevx-op--ember .prevx-op__faction,
.prevx-op--sentinels .prevx-op__faction {
  color: #ffb08a; border-color: rgba(255,122,70,.4); background: rgba(255,77,42,.12);
}
.prevx-op--cyan .prevx-op__faction,
.prevx-op--spectre .prevx-op__faction {
  color: #7af8ef; border-color: rgba(0,240,224,.35); background: rgba(0,240,224,.1);
}
.prevx-op__tag {
  width: fit-content; margin: 0; font-style: normal;
  font-family: var(--font-d); font-size: .38rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .16rem .4rem;
  color: #ffc14a; border: 1px solid rgba(255,193,74,.35); background: rgba(255,193,74,.1);
}
.prevx-op__tag--human {
  color: #b8d0f0;
  border-color: rgba(180,200,230,.3);
  background: rgba(120,150,200,.1);
}
.prevx-roster__empty {
  color: #8ea0bc; font-size: .9rem; padding: .7rem .5rem;
  border: 1px dashed color-mix(in srgb, var(--px-accent) 25%, transparent);
}

/* Action dock */
.prevx-dock {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: flex-end;
  gap: .85rem;
  margin-top: .2rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--px-accent) 24%, rgba(255,255,255,.06));
  animation: prevxFadeUp .5s .32s both;
}
.prevx-dock__enter { flex: 1 1 auto; display: flex; min-width: min(100%, 240px); }
.prevx-dock__enter .prevx-btn { width: 100%; }

.prevx-btn {
  position: relative;
  isolation: isolate;
  min-height: 58px;
  min-width: 156px;
  padding: 0 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  font: inherit;
  color: inherit;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .16s ease, filter .16s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.prevx-btn__face {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 42%);
}
.prevx-btn__txt {
  position: relative; z-index: 1;
  display: grid; gap: .12rem; text-align: left; line-height: 1;
}
.prevx-btn__txt em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: .38rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .75;
}
.prevx-btn__txt strong {
  font-family: var(--font-d);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.prevx-btn__ico {
  position: relative; z-index: 1;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.prevx-btn__ico svg { display: block; }
.prevx-btn:hover:not(:disabled) { transform: translateY(-3px); filter: brightness(1.07); }
.prevx-btn:active:not(:disabled) { transform: translateY(0); }
.prevx-btn:disabled { opacity: .55; cursor: not-allowed; }

/* VOLTAR — cinza escuro + texto e ícone brancos */
.prevx-btn--back {
  color: #fff;
  border-color: rgba(160, 170, 190, .35);
  background:
    linear-gradient(180deg, #5a6474 0%, #3d4554 48%, #252a34 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1) inset,
    0 10px 22px rgba(0,0,0,.45),
    0 4px 0 rgba(10,12,16,.7);
}
.prevx-btn--back .prevx-btn__txt {
  gap: .18rem;
}
.prevx-btn--back .prevx-btn__txt em {
  color: rgba(255,255,255,.72);
  font-size: .4rem;
  letter-spacing: .22em;
  opacity: 1;
}
.prevx-btn--back .prevx-btn__txt strong {
  color: #fff;
  font-size: .62rem;
  letter-spacing: .16em;
}
.prevx-btn--back .prevx-btn__face {
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 55%);
}
.prevx-btn--back .prevx-btn__ico {
  width: 36px; height: 36px;
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(0,0,0,.25));
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
}
.prevx-btn--back:hover:not(:disabled) {
  border-color: rgba(200, 210, 230, .5);
  color: #fff;
  filter: brightness(1.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16) inset,
    0 14px 28px rgba(0,0,0,.48),
    0 5px 0 rgba(10,12,16,.75),
    0 0 20px color-mix(in srgb, var(--px-glow) 28%, transparent);
}

/* ENTRAR — vertical: médio no topo, bem escuro embaixo (menos claro) */
.prevx-btn--enter {
  color: #fff;
  border-color: color-mix(in srgb, var(--px-accent) 70%, #fff);
  background:
    linear-gradient(180deg,
      var(--px-accent) 0%,
      color-mix(in srgb, var(--px-accent) 70%, #000) 52%,
      color-mix(in srgb, var(--px-accent) 35%, #000) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.14) inset,
    0 0 42px color-mix(in srgb, var(--px-glow) 80%, transparent),
    0 0 18px color-mix(in srgb, var(--px-accent) 50%, transparent),
    0 7px 0 color-mix(in srgb, var(--px-accent) 45%, #000),
    0 16px 32px rgba(0,0,0,.55);
  flex: 1 1 280px;
  justify-content: flex-start;
  gap: .85rem;
  min-height: 64px;
  padding: .55rem .9rem .55rem .7rem;
}
.prevx[data-scenario="ember_rift"] .prevx-btn--enter {
  background: linear-gradient(180deg, #ff6a28 0%, #d43810 45%, #5c0c00 100%);
  border-color: rgba(255, 160, 80, .7);
}
.prevx[data-scenario="void_relay"] .prevx-btn--enter {
  background: linear-gradient(180deg, #8b6cff 0%, #5a3fd4 45%, #1a0a48 100%);
  border-color: rgba(180, 160, 255, .65);
}
.prevx[data-scenario="ash_core"] .prevx-btn--enter {
  background: linear-gradient(180deg, #e0a830 0%, #c48410 45%, #4a3000 100%);
  border-color: rgba(255, 210, 120, .65);
}
.prevx-btn--enter .prevx-btn__txt--enter {
  flex: 1;
  text-align: left;
}
.prevx-btn--enter .prevx-btn__txt em {
  color: rgba(255,255,255,.9);
  opacity: 1;
  font-size: .36rem;
  letter-spacing: .16em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.prevx-btn--enter .prevx-btn__txt strong {
  color: #fff;
  font-size: .7rem;
  letter-spacing: .14em;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.prevx-btn__hex {
  position: relative; z-index: 1;
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0%, rgba(0,0,0,.22) 100%);
  border: 1.5px solid rgba(255,255,255,.4);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--px-glow) 55%, transparent),
    0 3px 0 rgba(0,0,0,.3);
}
.prevx-btn__hex svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.prevx-btn__go {
  position: relative; z-index: 1;
  margin-left: auto;
  font-family: var(--font-d);
  font-size: .55rem; font-weight: 800; letter-spacing: .14em;
  color: #fff;
  padding: .35rem .55rem;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.38);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.prevx-btn__aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.14) 0%, transparent 40%);
  opacity: .9;
}
.prevx-btn--enter:hover:not(:disabled) {
  filter: brightness(1.08) saturate(1.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.2) inset,
    0 0 56px color-mix(in srgb, var(--px-glow) 90%, transparent),
    0 8px 0 color-mix(in srgb, var(--px-accent) 50%, #000),
    0 18px 36px rgba(0,0,0,.55);
}
.prevx-btn__shine {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.45) 50%, transparent 64%);
  background-size: 220% 100%;
  animation: prevxBtnShine 2.4s ease-in-out infinite;
  clip-path: inherit;
}
.prevx-btn__ring {
  position: absolute; inset: 2px; z-index: 0; pointer-events: none; opacity: .4;
  border: 1px solid color-mix(in srgb, #fff 45%, transparent);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  animation: prevxBtnPulse 2.2s ease-in-out infinite;
}
@keyframes prevxBtnShine {
  0% { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}
@keyframes prevxBtnPulse {
  0%, 100% { opacity: .25; }
  50% { opacity: .65; }
}
@keyframes prevxFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .prevx { padding-left: max(.85rem, env(safe-area-inset-left, 0px)); padding-right: max(.85rem, env(safe-area-inset-right, 0px)); }
  .prevx-layout { grid-template-columns: 1fr; }
  .prevx-arena { grid-template-columns: 72px 1fr; }
  .prevx-arena__art { width: 72px; min-height: 72px; height: 72px; }
  .prevx-arena__side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--px-accent) 22%, transparent);
    padding-top: .45rem;
  }
  .prevx-ops { grid-template-columns: 1fr 1fr; }
  .prevx-telem { grid-template-columns: 1fr 1fr; }
  .prevx-telem__row { grid-template-columns: 22px minmax(0, 1fr); }
  .prevx-dock { flex-direction: column-reverse; }
  .prevx-btn, .prevx-dock__enter { width: 100%; min-width: 0; }
  .prevx-hero__title { font-size: clamp(1.2rem, 6.5vw, 1.65rem); }
  .prevx-card:hover { transform: none; }
  .prevx-hull { transform: none; }
}
@media (max-width: 520px) {
  .prevx-ops { grid-template-columns: 1fr; }
  .prevx-btn--enter .prevx-btn__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .prevx__bg, .prevx__scan, .prevx__glow, .prevx__grid, .prevx__orb, .prevx__embers i, .prevx__rings span,
  .prevx-hull__beam, .prevx-arena__pulse, .prevx-btn__shine, .prevx-btn__ring, .prevx-op__ring,
  .prevx-hull, .prevx-hero, .prevx-card, .prevx-telem__row, .prevx-op, .prevx-dock { animation: none !important; }
}

[data-scenario="void_relay"] { --scen-accent: #8b6cff; --scen-glow: rgba(139,108,255,.4); }
[data-scenario="ember_rift"] { --scen-accent: #ff5a1e; --scen-glow: rgba(255,90,30,.4); }
[data-scenario="ash_core"] { --scen-accent: #ffc14a; --scen-glow: rgba(255,193,74,.4); }

body.app-shell.preview-page .foot { display: none; }

.opsx-card[data-open-mission],
.opsx-card[data-open-campaign] { cursor: pointer; }

/* Cover art + floating mode icon */
.opsx-card__art--cover {
  height: 164px;
  min-height: 164px;
  padding: 14px 0 0;
  background-position: center 35%;
}
.opsx-card__art--cover .opsx-card__icon {
  position: relative;
  z-index: 3;
  margin-bottom: -34px;
  width: 96px;
  height: 96px;
  --s: 96px;
  filter:
    brightness(1.06)
    contrast(1.05)
    drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 12px color-mix(in srgb, var(--c) 40%, transparent));
}
.opsx-card__art--cover .opsx-card__icon .unit-pod__ring {
  inset: -8px;
  opacity: 0.75;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c) 45%, #fff),
    0 0 16px color-mix(in srgb, var(--c) 35%, transparent);
}
.opsx-card__art--cover .opsx-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}
.opsx-card__art--cover + .opsx-card__body {
  margin-top: -6px;
  padding-top: 2.15rem;
}

/* ===== Campaign hub modal ===== */
.camphub {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1080px, 96vw);
  width: 100%;
  color: #e8eef8;
}
.camphub::backdrop {
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(12px);
  animation: camphubBackdrop .35s ease both;
}
@keyframes camphubBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
.camphub__stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
}
.camphub__atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(255, 106, 42, 0.2), transparent 55%),
    linear-gradient(165deg, #0c101c, #03050c);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(0.55);
  transform: scale(1.04);
  z-index: 0;
  transition: background-image .45s ease, filter .35s ease;
}
.camphub.has-atmosphere .camphub__atmosphere {
  filter: saturate(1.12) brightness(0.42);
}
.camphub[data-faction="spectre"] .camphub__atmosphere {
  background-color: #061018;
}
.camphub__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, transparent 20%, rgba(2, 4, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.35), rgba(2, 4, 10, 0.82));
}
.camphub__hull {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.3rem 1.45rem;
  border: 1px solid rgba(255, 193, 74, 0.38);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 106, 42, 0.18), transparent 58%),
    linear-gradient(165deg, rgba(12, 16, 28, 0.88), rgba(3, 5, 12, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), 0 0 50px rgba(255, 106, 42, 0.12);
  max-height: min(88vh, 820px);
  overflow: auto;
  animation: camphubIn .45s cubic-bezier(.16,.9,.22,1) both;
}
.camphub[data-faction="spectre"] .camphub__hull {
  border-color: rgba(0, 240, 224, 0.4);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(0, 240, 224, 0.16), transparent 58%),
    linear-gradient(165deg, rgba(8, 18, 28, 0.88), rgba(3, 5, 12, 0.94));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), 0 0 50px rgba(0, 240, 224, 0.12);
}
@keyframes camphubIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.camphub__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.camphub__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: #ffc14a;
}
.camphub[data-faction="spectre"] .camphub__eyebrow { color: #7af8ef; }
.camphub__eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6a2a;
  box-shadow: 0 0 10px #ff6a2a;
  animation: camphubPulse 1.6s ease-in-out infinite;
}
.camphub[data-faction="spectre"] .camphub__eyebrow i {
  background: #00f0e0;
  box-shadow: 0 0 10px #00f0e0;
}
@keyframes camphubPulse {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.camphub__head h2 {
  margin: 0;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: 0.04em;
}
.camphub__close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.camphub__close:hover {
  border-color: rgba(255, 193, 74, 0.55);
  background: rgba(255, 106, 42, 0.18);
}
.camphub__lead {
  margin: 0 0 0.95rem;
  color: rgba(220, 230, 245, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}
.camphub__panel[data-campaign-step="hub"],
.camphub__panel[data-campaign-step="missions"]:not([hidden]) {
  animation: camphubPanelIn .4s ease both;
}
@keyframes camphubPanelIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}
.camphub__tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.camphub-track {
  --i: 0;
  appearance: none;
  display: grid;
  grid-template-rows: 168px auto;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  color: inherit;
  background: linear-gradient(160deg, rgba(10, 14, 24, 0.96), rgba(4, 6, 12, 0.98));
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  animation: camphubCardIn .5s cubic-bezier(.16,.9,.22,1) both;
  animation-delay: calc(var(--i) * 80ms);
}
@keyframes camphubCardIn {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: none; }
}
.camphub-track:hover {
  transform: translateY(-4px);
}
.camphub-track--sentinels {
  border-color: rgba(255, 106, 42, 0.5);
  box-shadow: 0 0 28px rgba(255, 106, 42, 0.14);
}
.camphub-track--spectre {
  border-color: rgba(0, 240, 224, 0.5);
  box-shadow: 0 0 28px rgba(0, 240, 224, 0.14);
}
.camphub-track__art {
  position: relative;
  display: block;
  background: center / cover no-repeat;
  overflow: hidden;
}
.camphub-track__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 6, 12, 0.94));
}
.camphub-track__shine {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18), transparent 65%);
  transform: translateX(-60%);
  animation: camphubShine 4.5s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
@keyframes camphubShine {
  0%, 55% { transform: translateX(-70%); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(70%); opacity: 0; }
}
.camphub-track__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.camphub-track__pct {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.72rem;
  font-style: normal;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.camphub-track--sentinels .camphub-track__badge { color: #ffc14a; border-color: rgba(255, 193, 74, 0.45); }
.camphub-track--spectre .camphub-track__badge { color: #7af8ef; border-color: rgba(0, 240, 224, 0.45); }
.camphub-track__body {
  display: grid;
  gap: 0.32rem;
  padding: 0.9rem 1rem 1.05rem;
}
.camphub-track__tag {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
}
.camphub-track--sentinels .camphub-track__tag { color: #ffc14a; }
.camphub-track--spectre .camphub-track__tag { color: #7af8ef; }
.camphub-track__name {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 1.08rem;
  letter-spacing: 0.03em;
}
.camphub-track__blurb {
  font-size: 0.82rem;
  color: rgba(210, 222, 240, 0.72);
  line-height: 1.4;
}
.camphub-track__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.25rem;
  font-size: 0.78rem;
}
.camphub-track__meta b {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 1.05rem;
}
.camphub-track__meta b span {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-left: 0.1rem;
}
.camphub-track__meta em {
  font-style: normal;
  opacity: 0.75;
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}
.camphub-track__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.25rem;
}
.camphub-track__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6a2a, #ffc14a);
  transition: width .6s ease;
}
.camphub-track--spectre .camphub-track__bar i {
  background: linear-gradient(90deg, #00f0e0, #3aa0ff);
}
.camphub-track__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
}
.camphub-track--sentinels .camphub-track__cta { color: #ffc14a; }
.camphub-track--spectre .camphub-track__cta { color: #7af8ef; }
.camphub__back {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(220, 230, 245, 0.88);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color .15s, border-color .15s, background .15s;
}
.camphub__back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.camphub__track-head {
  margin-bottom: 0.95rem;
}
.camphub__track-banner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 148px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  overflow: hidden;
  background: center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.camphub__track-banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,6,12,.9) 12%, rgba(4,6,12,.4) 65%, transparent);
}
.camphub__track-banner > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.15rem;
  max-width: 70%;
}
.camphub__track-banner span {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}
.camphub__track-head.is-sentinels .camphub__track-banner span { color: #ffc14a; }
.camphub__track-head.is-spectre .camphub__track-banner span { color: #7af8ef; }
.camphub__track-banner strong {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 1.3rem;
}
.camphub__track-banner em {
  font-style: normal;
  color: rgba(210, 222, 240, 0.7);
  font-size: 0.8rem;
}
.camphub__track-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  font-weight: 800;
  padding: 0.35rem 0.55rem;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.camphub__track-head.is-sentinels .camphub__track-chip {
  color: #ffc14a;
  border-color: rgba(255, 193, 74, 0.45);
}
.camphub__track-head.is-spectre .camphub__track-chip {
  color: #7af8ef;
  border-color: rgba(0, 240, 224, 0.45);
}
.camphub__missions {
  display: grid;
  gap: 0.7rem;
}
.camphub-mission {
  --i: 0;
  display: grid;
  grid-template-columns: 128px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.38);
  animation: camphubCardIn .45s cubic-bezier(.16,.9,.22,1) both;
  animation-delay: calc(var(--i) * 55ms);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.camphub-mission:hover {
  transform: translateX(3px);
}
.camphub-mission--locked {
  opacity: 0.58;
  filter: grayscale(0.35);
}
.camphub-mission--done {
  border-color: rgba(93, 255, 176, 0.42);
  box-shadow: 0 0 18px rgba(93, 255, 176, 0.08);
}
.camphub-mission--open {
  border-color: rgba(255, 193, 74, 0.55);
  box-shadow: 0 0 22px rgba(255, 193, 74, 0.14);
}
.camphub[data-faction="spectre"] .camphub-mission--open {
  border-color: rgba(0, 240, 224, 0.5);
  box-shadow: 0 0 22px rgba(0, 240, 224, 0.12);
}
.camphub-mission__art {
  position: relative;
  width: 128px;
  height: 86px;
  border-radius: 10px;
  overflow: hidden;
  background: center / cover no-repeat #0a1018;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.camphub-mission__scene {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}
.camphub-mission__idx {
  position: absolute;
  left: 6px;
  bottom: 5px;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.38rem;
  border-radius: 4px;
  background: rgba(0,0,0,.68);
  color: #fff;
}
.camphub-mission__lock,
.camphub-mission__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.camphub-mission__lock {
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.25);
  color: #c8d4e8;
}
.camphub-mission__check {
  background: rgba(93, 255, 176, 0.28);
  border: 1px solid rgba(93, 255, 176, 0.75);
  color: #5dffb0;
}
.camphub-mission__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.camphub-mission__copy strong {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.95rem;
}
.camphub-mission__copy span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255, 193, 74, 0.9);
  text-transform: uppercase;
}
.camphub[data-faction="spectre"] .camphub-mission__copy span { color: rgba(122, 248, 239, 0.9); }
.camphub-mission__copy p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: rgba(210, 222, 240, 0.7);
  line-height: 1.35;
}
.camphub-mission__go {
  appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 118px;
  color: #fff;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.camphub-mission__go svg { flex-shrink: 0; }
.camphub-mission__go.is-start {
  border-color: rgba(255, 193, 74, 0.6);
  background: linear-gradient(180deg, #ff7a2e, #d94812);
  box-shadow: 0 8px 22px rgba(255, 106, 42, 0.28);
}
.camphub[data-faction="spectre"] .camphub-mission__go.is-start {
  border-color: rgba(0, 240, 224, 0.55);
  background: linear-gradient(180deg, #12d4c6, #0a7f9a);
  box-shadow: 0 8px 22px rgba(0, 240, 224, 0.22);
}
.camphub-mission__go.is-replay {
  border-color: rgba(93, 255, 176, 0.55);
  background: linear-gradient(180deg, rgba(93, 255, 176, 0.32), rgba(20, 80, 55, 0.55));
  color: #b8ffe0;
}
.camphub-mission__go.is-locked,
.camphub-mission__go:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(220, 230, 245, 0.65);
  box-shadow: none;
}
.camphub-mission__go:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Campaign clear celebration */
.campclear {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(440px, 94vw);
  width: 100%;
  color: #e8eef8;
}
.campclear::backdrop {
  background: rgba(2, 4, 10, 0.86);
  backdrop-filter: blur(12px);
}
.campclear__hull {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 193, 74, 0.45);
  padding: 1.35rem 1.25rem 1.3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 106, 42, 0.28), transparent 55%),
    linear-gradient(165deg, rgba(14, 18, 30, 0.98), rgba(4, 6, 12, 0.99));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 106, 42, 0.18);
  animation: camphubIn .5s cubic-bezier(.16,.9,.22,1) both;
}
.campclear__hull[data-faction="spectre"] {
  border-color: rgba(0, 240, 224, 0.45);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 240, 224, 0.22), transparent 55%),
    linear-gradient(165deg, rgba(8, 18, 28, 0.98), rgba(4, 6, 12, 0.99));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 240, 224, 0.16);
}
.campclear__burst {
  position: absolute;
  inset: -45%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 193, 74, 0.2), transparent 40%);
  animation: spin 8s linear infinite;
  pointer-events: none;
}
.campclear__hull[data-faction="spectre"] .campclear__burst {
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 224, 0.2), transparent 40%);
}
.campclear__art {
  position: relative;
  width: 100%;
  height: 132px;
  margin: 0 0 0.9rem;
  border-radius: 12px;
  background: center / cover no-repeat #0a1018;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.campclear__eyebrow {
  position: relative;
  margin: 0 0 0.35rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: #ffc14a;
}
.campclear__hull[data-faction="spectre"] .campclear__eyebrow { color: #7af8ef; }
.campclear__hull h2 {
  position: relative;
  margin: 0;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}
.campclear__sub {
  position: relative;
  margin: 0.45rem 0 0.85rem;
  color: rgba(220, 230, 245, 0.75);
  font-size: 0.9rem;
}
.campclear__bar {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0 auto 0.55rem;
  max-width: 240px;
}
.campclear__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6a2a, #ffc14a);
  transition: width .8s cubic-bezier(.16,.9,.22,1);
}
.campclear__hull[data-faction="spectre"] .campclear__bar i {
  background: linear-gradient(90deg, #00f0e0, #3aa0ff);
}
.campclear__meta {
  position: relative;
  margin: 0 0 1.1rem;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(220, 230, 245, 0.7);
}
.campclear__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.campclear__btn {
  appearance: none;
  border-radius: 10px;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 0.7rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: filter .15s, transform .15s;
}
.campclear__btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}
.campclear__btn--go {
  border: 1px solid rgba(255, 193, 74, 0.55);
  background: linear-gradient(180deg, #ff7a2e, #d94812);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 42, 0.28);
}
.campclear__hull[data-faction="spectre"] .campclear__btn--go {
  border-color: rgba(0, 240, 224, 0.5);
  background: linear-gradient(180deg, #12d4c6, #0a7f9a);
  box-shadow: 0 8px 20px rgba(0, 240, 224, 0.22);
}
.campclear__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .camphub__tracks { grid-template-columns: 1fr; }
  .camphub-mission {
    grid-template-columns: 96px 1fr;
  }
  .camphub-mission__art {
    width: 96px;
    height: 72px;
  }
  .camphub-mission__go {
    grid-column: 1 / -1;
    width: 100%;
  }
  .opsx-card__art--cover {
    height: 148px;
    min-height: 148px;
  }
  .opsx-card__art--cover .opsx-card__icon {
    width: 88px;
    height: 88px;
    --s: 88px;
    margin-bottom: -30px;
  }
  .opsx-card__art--cover + .opsx-card__body {
    padding-top: 1.95rem;
  }
}


/* ============================================================
   ASH WARS UI v151
   1. Logo redonda
   2. Scrollbar personalizada (nunca sobre o conteudo)
   3. Mobile: scroll natural do documento em todas as telas app
   4. Cards do lobby empilhados sem cortar
   ============================================================ */

/* ---------- 1. Logo ---------- */
.logo__mark {
  border-radius: 50% !important;
  overflow: visible !important; /* órbita/satélites fora do círculo */
  background: transparent !important;
}
.logo__mark img {
  display: block !important;
  border-radius: 50% !important;
  background: transparent !important;
  clip-path: circle(50% at 50% 50%) !important;
  -webkit-clip-path: circle(50% at 50% 50%) !important;
  object-fit: cover !important;
}

/* ---------- 2. Scrollbar Ash Wars ---------- */
:root {
  --sb-size: 11px;
  --sb-track: linear-gradient(180deg, rgba(4,8,16,.92), rgba(7,11,20,.96));
  --sb-thumb: linear-gradient(180deg, #ffd27a 0%, #ff8a3a 42%, #ff6a2a 68%, #00c8bc 100%);
  --sb-thumb-hi: linear-gradient(180deg, #fff2cf 0%, #ffa055 42%, #ff8348 68%, #00f0e0 100%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #ff8a3a rgba(6,10,18,.9);
}

*::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
  background: transparent;
}
*::-webkit-scrollbar-track {
  background: var(--sb-track);
  border-left: 1px solid rgba(0,240,224,.12);
  box-shadow: inset 0 0 8px rgba(0,0,0,.55);
}
*::-webkit-scrollbar-track:horizontal {
  border-left: 0;
  border-top: 1px solid rgba(0,240,224,.12);
}
*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(3,6,14,.92);
  background: var(--sb-thumb);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 0 10px rgba(255,120,40,.45);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hi);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 0 14px rgba(255,150,60,.65);
}
*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #fff, #ffc14a 50%, #00f0e0);
}
*::-webkit-scrollbar-corner {
  background: transparent;
}

/* a barra ocupa espaco proprio: nunca fica sobre o conteudo.
   Só no desktop: em touch a barra é overlay e a reserva criaria
   uma faixa vazia + overflow horizontal. */
@media (min-width: 981px) {
  html:not(:has(body.app-shell)),
  .drawer__nav,
  body.app-shell .opsx__wrap,
  body.app-shell .ops__wrap,
  body.app-shell .premx__wrap,
  body.app-shell .dash__wrap,
  body.app-shell .prevx__wrap,
  body.app-shell.inventory-page .invx__wrap {
    scrollbar-gutter: stable;
  }
  body.app-shell .opsx__wrap,
  body.app-shell .ops__wrap,
  body.app-shell .premx__wrap,
  body.app-shell .dash__wrap,
  body.app-shell .prevx__wrap {
    padding-right: .3rem;
  }
  /* app-shell rola no wrap, nao no html — gutter no documento
     criava uma faixa vazia a direita da barra */
  html:has(body.app-shell) {
    scrollbar-gutter: auto;
  }
}

/* ---------- Drawer (menu lateral mobile) ---------- */
.drawer__nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 1.25rem !important;
  gap: .55rem !important;
}
.drawer__foot { flex-shrink: 0 !important; }

/* Jogar e perfil no drawer usam o mesmo desenho do desktop, em largura cheia. */
.drawer .appside__play,
.app-shell.appside-collapsed .drawer .appside__play {
  width: auto;
  height: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  min-height: 72px;
  margin: .7rem .75rem .15rem;
  padding: .5rem .7rem .5rem .55rem;
  justify-content: flex-start;
  border-radius: 18px;
  animation: appsidePlayPulse 2.15s ease-in-out infinite;
}
.drawer .appside__pilot,
.app-shell.appside-collapsed .drawer .appside__pilot {
  width: auto;
  height: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  min-height: 64px;
  margin: .35rem .75rem .55rem;
  padding: .7rem .7rem;
  justify-content: flex-start;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 80% at 20% 50%, rgba(255,140,40,.26), transparent 70%),
    radial-gradient(ellipse 70% 70% at 85% 30%, rgba(255,193,74,.12), transparent 65%),
    linear-gradient(160deg, rgba(28,16,10,.98), rgba(6,8,14,.98) 55%, rgba(4,14,16,.95));
}
.app-shell.appside-collapsed .drawer .appside__play-txt,
.app-shell.appside-collapsed .drawer .appside__play-radar,
.app-shell.appside-collapsed .drawer .appside__pilot-txt,
.app-shell.appside-collapsed .drawer .appside__pilot-bars {
  opacity: 1;
  width: auto;
  height: auto;
  overflow: visible;
  position: relative;
  pointer-events: auto;
}
.app-shell.appside-collapsed .drawer .appside__play-radar {
  width: 26px;
  height: 26px;
}
.app-shell.appside-collapsed .drawer .appside__pilot-bars {
  height: 16px;
}
.app-shell.appside-collapsed .drawer .appside__play-corners,
.app-shell.appside-collapsed .drawer .appside__play-scan,
.app-shell.appside-collapsed .drawer .appside__play-grid,
.app-shell.appside-collapsed .drawer .appside__pilot-glow {
  opacity: 1;
  width: auto;
  height: auto;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}
.app-shell.appside-collapsed .drawer .appside__play-pod {
  width: 42px;
  height: 42px;
  margin-left: 8px;
  border-radius: 12px;
}
.app-shell.appside-collapsed .drawer .appside__play-pod svg {
  width: 26px;
  height: 26px;
}
.app-shell.appside-collapsed .drawer .appside__avatar {
  width: 42px;
  height: 42px;
}

/* ---------- 3. Mobile: scroll natural ---------- */
@media (max-width: 980px) {
  /* o documento volta a rolar */
  html:has(body.app-shell),
  html.manual-scroll {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  body.app-shell,
  body.manual-page {
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    /* clip no eixo X: nunca gera scroll horizontal */
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100% !important;
    overscroll-behavior: auto !important;
  }
  .app-shell .stage,
  .manual-page .stage {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-left: 0 !important;
  }

  /* secoes crescem com o conteudo (painel, jogar, historico, perfil, premium) */
  body.app-shell .opsx,
  body.app-shell .ops,
  body.app-shell .premx,
  body.app-shell .dash,
  body.app-shell .invx,
  body.app-shell .prevx,
  body.app-shell.lobby-page .opsx,
  body.app-shell.preview-page .prevx,
  body.app-shell.premium-page .premx,
  .manual-shell {
    display: block !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    /* X clipado (fundos com scale nao criam scroll), Y livre pra rolar */
    overflow-x: clip !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
    padding-top: calc(var(--nav) + env(safe-area-inset-top, 0px) + .85rem) !important;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)) !important;
    padding-left: max(.9rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(.9rem, env(safe-area-inset-right, 0px)) !important;
  }

  /* wraps nao rolam mais sozinhos nem esticam */
  body.app-shell .opsx__wrap,
  body.app-shell .ops__wrap,
  body.app-shell .premx__wrap,
  body.app-shell .dash__wrap,
  body.app-shell .invx__wrap,
  body.app-shell .prevx__wrap,
  body.app-shell.lobby-page .opsx__wrap,
  body.app-shell.preview-page .prevx__wrap,
  body.app-shell.premium-page .premx__wrap,
  body.app-shell.inventory-page .invx__wrap {
    flex: none !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    align-content: start !important;
    align-items: start !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    scrollbar-gutter: auto;
  }

  /* fundos ficam fixos: nao esticam nem repetem */
  body.app-shell .opsx__bg,
  body.app-shell .opsx__veil,
  body.app-shell .opsx__grid,
  body.app-shell .ops__bg,
  body.app-shell .ops__veil,
  body.app-shell .premx__bg,
  body.app-shell .premx__veil,
  body.app-shell .premx__grid,
  body.app-shell .dash__bg,
  body.app-shell .dash__veil,
  body.app-shell .dash__grid,
  body.app-shell .dash__dust,
  body.app-shell .invx__bg,
  body.app-shell .invx__veil,
  body.app-shell .invx__grid,
  body.app-shell .prevx__bg,
  body.app-shell .prevx__veil,
  body.app-shell .prevx__grid,
  body.app-shell .prevx__scan,
  body.app-shell .prevx__glow,
  body.app-shell .prevx__orbs,
  body.app-shell .prevx__embers,
  body.app-shell .prevx__rings,
  body.app-shell .prevx__noise {
    position: fixed !important;
    inset: 0 !important;
  }

  /* nada de blocos comprimidos */
  body.app-shell .opsx-hero,
  body.app-shell .opsx-missions,
  body.app-shell .opsx-tools,
  body.app-shell .opsx-card,
  body.app-shell .opsx-card__body,
  body.app-shell .dash-hero,
  body.app-shell .dash-id,
  body.app-shell .dash-stats,
  body.app-shell .dash-grid,
  body.app-shell .dash-panel,
  body.app-shell .premx-hero,
  body.app-shell .premx-deck,
  body.app-shell .premx-card,
  body.app-shell .ops-hero,
  body.app-shell .ops-panel,
  body.app-shell .ops-filters,
  body.app-shell .hist-console,
  body.app-shell .hist-vault,
  body.app-shell .hist-deck,
  body.app-shell .hist-card,
  body.app-shell .ops-form,
  body.app-shell .ops-list,
  body.app-shell .invx-hero,
  body.app-shell .invx-sec,
  body.app-shell .invx-grid,
  body.app-shell .invx-card,
  body.app-shell .invx-note,
  .manual-shell__inner,
  .manual-deck,
  .op {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    flex: none !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }
  .manual-shell__inner {
    margin-inline: auto !important;
    justify-content: flex-start !important;
  }
  .manual-shell__inner,
  .manual-deck,
  .op {
    max-width: 100% !important;
  }
  /* fundos do manual paravam de ser clipados e vazavam pro lado */
  .manual-shell__bg {
    transform: none !important;
    animation: none !important;
  }

  /* topbar sempre fixa e dentro da largura da tela */
  .topbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    /* hidden: decoracoes internas nao podem vazar pra direita
       (era o que empurrava o burger pra fora da tela) */
    overflow: hidden !important;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--nav) + env(safe-area-inset-top, 0px)) !important;
  }
  .topbar__inner {
    height: var(--nav);
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .topbar__actions { flex-shrink: 0 !important; }
  .drawer {
    top: calc(var(--nav) + env(safe-area-inset-top, 0px)) !important;
    bottom: 0 !important;
    overflow: hidden !important;
  }
  .drawer-scrim {
    inset: calc(var(--nav) + env(safe-area-inset-top, 0px)) 0 0 0 !important;
  }
  .drawer__link {
    min-height: 66px !important;
    padding: .9rem .85rem !important;
    overflow: visible !important;
    align-items: center !important;
  }
  .drawer__txt small {
    line-height: 1.3 !important;
    overflow: visible !important;
  }
  .logo__mark,
  .logo__mark img {
    width: 40px !important;
    height: 40px !important;
  }

  /* ---------- 4. Cards do lobby ---------- */
  body.app-shell .opsx-missions,
  .opsx-missions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    align-content: start !important;
  }
  body.app-shell .opsx-card,
  .opsx-card {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    overflow: hidden !important;
    clip-path: none !important;
    margin: 0 !important;
    border-radius: 14px !important;
  }
  body.app-shell .opsx-card__art,
  .opsx-card__art {
    flex: 0 0 auto !important;
    height: 118px !important;
    min-height: 118px !important;
    max-height: 118px !important;
    overflow: hidden !important;
    padding: 14px 0 0 !important;
    margin: 0 !important;
  }
  .opsx-card__art .unit-pod {
    --s: 70px !important;
    margin-bottom: -22px !important;
  }
  body.app-shell .opsx-card__body,
  .opsx-card__body {
    display: grid !important;
    flex: 0 0 auto !important;
    position: relative !important;
    margin-top: -16px !important;
    padding: 1.35rem .85rem .95rem !important;
    overflow: hidden !important;
    gap: .3rem !important;
    justify-items: center !important;
    text-align: center !important;
    background: linear-gradient(180deg, transparent 0%, rgba(4,6,12,.78) 16%, rgba(4,6,12,.98) 40%) !important;
  }
  .opsx-card__body h2 {
    margin: 0 !important;
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
    color: #fff !important;
  }
  .opsx-card__body p {
    margin: 0 0 .1rem !important;
    font-size: .84rem !important;
    line-height: 1.35 !important;
    color: #b0bfd4 !important;
  }
  .opsx-card .opsx-btn {
    display: inline-flex !important;
    width: 100% !important;
    margin-top: .35rem !important;
  }

  /* premium / painel / historico / perfil: 1 coluna confortavel */
  body.app-shell .premx-deck { grid-template-columns: 1fr !important; }
  body.app-shell .dash-grid { grid-template-columns: 1fr !important; }
  body.app-shell .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* lore: TOC sem texto esmagado */
  .lore-toc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: .5rem !important; }
  .lore-toc__grid a { min-height: 76px !important; }
  .lore-toc__grid a span { font-size: .56rem !important; }
}

@media (max-width: 420px) {
  .lore-toc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.app-shell .dash-stats { grid-template-columns: 1fr !important; }
}

/* === painel: hero centralizado quando o CTA quebra pra baixo === */
@media (max-width: 720px) {
  body.app-shell .dash-hero { text-align: center !important; }
  body.app-shell .dash-hero__kicker { justify-content: center !important; }
  body.app-shell .dash-hero__row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.05rem !important;
  }
  body.app-shell .dash-hero__row > div { width: 100% !important; }
  body.app-shell .dash-cta { justify-content: center !important; }
}

/* === Inventory (invx) === */
.invx {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(var(--nav) * -1);
  padding: calc(var(--nav) + 1.1rem) 1.1rem 2.2rem;
  overflow-x: hidden;
  overflow-y: auto;
}
.invx__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 42%;
  filter: saturate(1.18) brightness(.62) contrast(1.08);
  transform: scale(1.04);
  pointer-events: none;
  animation: ken 22s ease-in-out infinite alternate;
}
.invx__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(720px 300px at 10% 0%, rgba(192,132,255,.18), transparent 58%),
    radial-gradient(680px 280px at 92% 8%, rgba(0,240,224,.12), transparent 55%),
    linear-gradient(115deg, rgba(2,4,10,.78) 0%, rgba(28,8,18,.28) 46%, rgba(2,8,12,.82) 100%),
    linear-gradient(180deg, rgba(2,4,10,.32), rgba(2,4,10,.72));
}
.invx__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(192,132,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,224,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.invx__wrap {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  margin: 0 auto;
}
.invx-hero { margin-bottom: 1.75rem; }
.invx-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .55rem;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .18em;
  color: var(--muted);
}
.invx-hero__kicker i {
  width: 8px; height: 8px;
  background: #c084ff;
  box-shadow: 0 0 10px #c084ff;
}
.invx-hero h1 {
  margin: 0 0 .4rem;
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: .04em;
}
.invx-hero h1 span { color: #c084ff; }
.invx-hero__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}
.invx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.invx-hero__meta span {
  font-family: var(--font-d);
  font-size: .7rem;
  letter-spacing: .1em;
  padding: .45rem .7rem;
  border: 1px solid rgba(192,132,255,.35);
  background: rgba(192,132,255,.08);
}
.invx-hero__meta b { color: #e9d5ff; }
.invx-sec { margin-bottom: 1.75rem; }
.invx-sec h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
  font-family: var(--font-d);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.invx-sec__dot {
  width: 8px; height: 8px;
  box-shadow: 0 0 10px currentColor;
}
.invx-sec__dot--ember { background: var(--ember); color: var(--ember); }
.invx-sec__dot--cyan { background: var(--cyan); color: var(--cyan); }
.invx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
}
.invx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, rgba(14,22,38,.95), rgba(6,10,18,.98));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  overflow: hidden;
  min-height: 260px;
}
.invx-card--sentinels { border-color: rgba(255,77,42,.3); }
.invx-card--spectre { border-color: rgba(0,240,224,.3); }
.invx-card.is-locked { opacity: .55; filter: grayscale(.35); }
.invx-card__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(192,132,255,.18), transparent 70%);
}
.invx-card--sentinels .invx-card__glow {
  background: radial-gradient(ellipse at 50% 100%, rgba(255,77,42,.2), transparent 70%);
}
.invx-card--spectre .invx-card__glow {
  background: radial-gradient(ellipse at 50% 100%, rgba(0,240,224,.18), transparent 70%);
}
.invx-card__art {
  aspect-ratio: 1.15;
  background: #060a12 center/contain no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.invx-card__body {
  position: relative;
  z-index: 1;
  padding: .8rem .85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.invx-card__body em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: .48rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.invx-card__body strong {
  font-family: var(--font-u);
  font-size: 1.05rem;
}
.invx-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  flex: 1;
}
.invx-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .55rem;
}
.invx-tag {
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .1em;
  padding: .22rem .4rem;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
  text-transform: uppercase;
}
.invx-tag--pro {
  border-color: rgba(255,193,74,.4);
  color: #ffc14a;
  background: rgba(255,193,74,.1);
}
.invx-tag--ok {
  border-color: rgba(93,255,176,.4);
  color: #5dffb0;
  background: rgba(93,255,176,.08);
}
.invx-tag--lock {
  border-color: rgba(255,93,122,.35);
  color: #ff5d7a;
  background: rgba(255,93,122,.08);
}
.invx-empty { color: var(--muted); grid-column: 1 / -1; }
.invx-note {
  margin-top: .5rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(255,193,74,.3);
  background: rgba(255,193,74,.06);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: center;
}
.invx-note strong {
  font-family: var(--font-d);
  font-size: .7rem;
  letter-spacing: .12em;
  color: #ffc14a;
}
.invx-note p { margin: 0; color: var(--muted); flex: 1; min-width: 200px; }

.invx-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.invx-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,14,24,.7);
  color: #8ea0b8;
  padding: .55rem 1rem;
  font-family: var(--font-d);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.invx-tab.is-active {
  color: #fff;
  border-color: rgba(192,132,255,.45);
  background: rgba(192,132,255,.12);
}
.invx-loadout h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.invx-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
  margin-bottom: 1.5rem;
}
.invx-slot {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(160deg, rgba(14,22,38,.95), rgba(6,10,18,.98));
  padding: 0;
  overflow: hidden;
  min-height: 220px;
}
.invx-slot--ember { border-color: rgba(255,77,42,.35); }
.invx-slot--cyan { border-color: rgba(0,240,224,.35); }
.invx-slot__art {
  height: 120px;
  background: #050b14 center/contain no-repeat;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.invx-slot__body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem .85rem .4rem;
  flex: 1;
}
.invx-slot__body em {
  font-style: normal;
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8ea0b8;
}
.invx-slot__body strong { font-size: 1rem; }
.invx-slot__body p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}
.invx-slot__cta {
  display: block;
  padding: .55rem .85rem .75rem;
  font-family: var(--font-d);
  font-size: .55rem;
  letter-spacing: .16em;
  color: #c4a8ff;
}
.invx-equip-btn {
  margin-top: .85rem;
}

/* Inventory pack detail + pseudo-3D viewer */
button.invx-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
button.invx-card:disabled { cursor: not-allowed; }
button.invx-card:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.35);
}
.invx-pack {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(960px, 96vw);
  width: 960px;
  color: #e8eef8;
}
.invx-pack::backdrop {
  background: rgba(2, 6, 14, 0.82);
  backdrop-filter: blur(6px);
}
.invx-pack__hull {
  background: linear-gradient(160deg, #0c1524 0%, #070d16 100%);
  border: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.invx-pack__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.invx-pack__eyebrow {
  margin: 0 0 .25rem;
  font-size: .62rem;
  letter-spacing: .16em;
  color: #8ea0b8;
  text-transform: uppercase;
}
.invx-pack__head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}
.invx-pack__tag {
  margin: .35rem 0 0;
  color: #8ea0b8;
  font-size: .88rem;
}
.invx-pack__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 1rem;
  min-height: 380px;
}
.invx-pack__stage {
  perspective: 900px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 50% 40%, rgba(120,160,255,.12), transparent 55%),
    #050b14;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  touch-action: none;
  user-select: none;
  min-height: 360px;
}
.invx-pack__orbit {
  width: min(260px, 70%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transition: transform .05s linear;
  display: grid;
  place-items: center;
}
.invx-pack__orbit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.55));
  pointer-events: none;
}
.invx-pack__hint {
  margin: .85rem 0 0;
  font-size: .72rem;
  color: #7e90a8;
  letter-spacing: .04em;
}
.invx-pack__controls {
  display: flex;
  gap: .5rem;
  margin-top: .7rem;
}
.invx-pack__controls button {
  width: 40px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
  color: #d7e2f0;
  cursor: pointer;
  font-size: 1rem;
}
.invx-pack__controls button:hover {
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.invx-pack__items {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  max-height: 420px;
  overflow: auto;
  padding-right: .25rem;
}
.invx-pack__item {
  display: flex;
  gap: .7rem;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(8,14,24,.85);
  color: inherit;
  padding: .55rem .65rem;
  cursor: pointer;
}
.invx-pack__item.is-active,
.invx-pack__item:hover {
  border-color: rgba(192,132,255,.45);
  background: rgba(192,132,255,.08);
}
.invx-pack__thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: #050b14 center/contain no-repeat;
  border: 1px solid rgba(255,255,255,.1);
}
.invx-pack__meta {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.invx-pack__meta strong {
  font-size: .92rem;
}
.invx-pack__meta em {
  font-style: normal;
  font-size: .72rem;
  color: #8ea0b8;
}
@media (max-width: 760px) {
  .invx-pack__layout { grid-template-columns: 1fr; }
  .invx-pack__items { max-height: 240px; }
  .invx-pack__stage { min-height: 280px; }
}
@media (max-width: 640px) {
  .invx-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .invx-pack__orbit { transition: none; }
}

/* ── Dual theater lobby: Cascade + Ash Run ── */
.opsx-hero__lead {
  margin: .35rem 0 .7rem;
  max-width: 36rem;
  color: #b8c6da;
  font-size: .98rem;
  line-height: 1.45;
}
.opsx-theaters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 0 0 1rem;
}
.opsx-theater {
  --c: #ff6a2a;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  padding: .95rem 1rem 1rem;
  text-align: left;
  color: #e8eef8;
  background: linear-gradient(160deg, rgba(12,14,22,.96), rgba(4,6,12,.98));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.opsx-theater[data-theater="ash_run"] { --c: #00f0e0; }
.opsx-theater__glow {
  position: absolute; inset: -20% auto auto 30%;
  width: 140px; height: 140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
  pointer-events: none;
  opacity: .55;
}
.opsx-theater em {
  position: relative;
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .14em;
  color: color-mix(in srgb, var(--c) 80%, #fff);
  font-family: Orbitron, sans-serif;
}
.opsx-theater strong {
  position: relative;
  font-size: 1.35rem;
  font-family: Orbitron, sans-serif;
  letter-spacing: .04em;
}
.opsx-theater > span:last-child {
  position: relative;
  font-size: .86rem;
  color: #9aabbf;
}
.opsx-theater.is-on {
  border-color: color-mix(in srgb, var(--c) 55%, rgba(255,255,255,.12));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent), 0 14px 32px rgba(0,0,0,.35);
}
.opsx-theater:hover { transform: translateY(-1px); }

.opsx-brief {
  --brief: #ff6a2a;
  --brief-2: #ffc14a;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem 1rem;
  margin: 0 0 .9rem;
  padding: .72rem 1rem .72rem .85rem;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brief) 32%, rgba(255,255,255,.08));
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brief) 14%, rgba(10,12,20,.94)) 0%, rgba(4,6,12,.96) 58%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 14px 28px rgba(0,0,0,.28);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.opsx-brief--run {
  --brief: #00f0e0;
  --brief-2: #7af8ef;
}
.opsx-brief__rail {
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 3px;
  background: linear-gradient(180deg, var(--brief-2), var(--brief));
  box-shadow: 0 0 12px color-mix(in srgb, var(--brief) 55%, transparent);
}
.opsx-brief::after {
  content: "";
  position: absolute;
  right: -40px; top: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brief) 28%, transparent), transparent 68%);
  pointer-events: none;
}
.opsx-brief__index {
  position: relative;
  z-index: 1;
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: .9;
  color: color-mix(in srgb, var(--brief) 55%, transparent);
  text-shadow: 0 0 18px color-mix(in srgb, var(--brief) 35%, transparent);
}
.opsx-brief__main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: .12rem;
}
.opsx-brief__kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0;
  font-family: var(--font-d);
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--brief-2);
  text-shadow: 0 0 10px color-mix(in srgb, var(--brief) 45%, transparent);
}
.opsx-brief__kicker i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brief-2);
  box-shadow: 0 0 8px var(--brief-2);
  animation: blink 1.3s ease-in-out infinite;
}
.opsx-brief h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: .06em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.opsx-brief__lead {
  margin: 0;
  color: #c4d0e2;
  font-size: .92rem;
  line-height: 1.3;
  white-space: nowrap;
}
.opsx-brief__tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.opsx-brief__tags li {
  padding: .32rem .6rem;
  font-family: var(--font-d);
  font-size: .58rem;
  letter-spacing: .1em;
  color: color-mix(in srgb, var(--brief-2) 80%, #fff);
  background: rgba(4, 8, 14, .72);
  border: 1px solid color-mix(in srgb, var(--brief) 40%, rgba(255,255,255,.1));
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
@media (max-width: 1180px) {
  .opsx-brief__lead { white-space: normal; }
}
@media (max-width: 760px) {
  .opsx-brief {
    grid-template-columns: auto minmax(0, 1fr);
    padding: .8rem .85rem .85rem .8rem;
  }
  .opsx-brief__tags {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.opsx-missions--run {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
  .opsx-theaters,
  .opsx-missions--run { grid-template-columns: 1fr; }
}
.hero__sub {
  margin: .55rem 0 0;
  max-width: 34rem;
  color: #b7c6da;
  font-size: 1rem;
}
.hero__sub b { color: #ffe0a8; }
.manual-head {
  display: grid;
  justify-items: center;
  gap: .85rem;
  margin: 0 auto 1.45rem;
  width: 100%;
  max-width: min(100%, 48rem);
  text-align: center;
  perspective: 900px;
}
.manual-head__kicker {
  --k1: #3a1208;
  --k2: #ff4a18;
  --k3: #ffb020;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .48rem 1rem .48rem .85rem;
  font-family: var(--font-d);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: #ffe7c2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .75);
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 30, .55);
  background:
    linear-gradient(165deg, #2a0e06 0%, #120604 48%, #080406 100%);
  box-shadow:
    0 1px 0 rgba(255, 180, 80, .35) inset,
    0 -6px 14px rgba(0, 0, 0, .55) inset,
    0 4px 0 #050208,
    0 10px 0 #020105,
    0 16px 28px rgba(0, 0, 0, .55),
    0 0 24px rgba(255, 70, 20, .28);
  transform: translateZ(0) rotateX(8deg);
  transform-style: preserve-3d;
  animation: mbKickFloat 3.2s ease-in-out infinite, mbIn .45s ease both;
}
.manual-head__kicker-skin {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 160, 60, .22) 48%, transparent 62%);
  background-size: 220% 100%;
  animation: mbKickSheen 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.manual-head__kicker > i,
.manual-head__kicker > span {
  position: relative;
  z-index: 1;
}
.manual-head__kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe7a0, #ff6a2a 55%, #7a1808);
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, .45),
    0 0 12px #ff6a2a,
    0 0 22px rgba(255, 90, 30, .55);
  animation: mbKickPulse 1.5s ease-in-out infinite;
}
@keyframes mbKickFloat {
  0%, 100% { transform: translateY(0) rotateX(8deg); }
  50% { transform: translateY(-3px) rotateX(10deg); }
}
@keyframes mbKickSheen {
  0% { background-position: 130% 0; }
  100% { background-position: -40% 0; }
}
@keyframes mbKickPulse {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.35); transform: scale(1.12); }
}
@keyframes mbIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.manual-titlecard {
  --tc: #ffc14a;
  --tc2: #ff4a18;
  --tc3: #7a1808;
  position: relative;
  display: grid;
  justify-items: center;
  gap: .55rem;
  width: auto;
  min-width: min(100%, 26rem);
  padding: 1.35rem 2.6rem 1.15rem;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0) rotateX(6deg);
  transform-style: preserve-3d;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: mbCardFloat 4s ease-in-out infinite, mbIn .55s cubic-bezier(.2, .85, .2, 1) .05s both;
}
@keyframes mbCardFloat {
  0%, 100% { transform: translateY(0) rotateX(6deg); }
  50% { transform: translateY(-4px) rotateX(8deg); }
}
.manual-titlecard__base,
.manual-titlecard__plate,
.manual-titlecard__bevel {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
}
.manual-titlecard__base {
  z-index: 0;
  background: #020105;
  transform: translate3d(0, 10px, -24px) scale(.98);
  box-shadow:
    0 18px 0 #010103,
    0 28px 50px rgba(0, 0, 0, .7);
  filter: brightness(.35);
}
.manual-titlecard__plate {
  z-index: 1;
  border: 1px solid rgba(255, 90, 30, .55);
  background:
    linear-gradient(155deg, #2a1008 0%, #120806 38%, #06040a 72%, #040208 100%);
  box-shadow:
    0 1px 0 rgba(255, 190, 100, .28) inset,
    0 -14px 28px rgba(0, 0, 0, .55) inset,
    0 0 0 1px rgba(0, 0, 0, .65) inset,
    0 0 40px rgba(255, 70, 20, .22);
  transform: translateZ(0);
}
.manual-titlecard__bevel {
  z-index: 2;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 160, 60, .18);
  background:
    linear-gradient(180deg, rgba(255, 140, 40, .08), transparent 35%),
    linear-gradient(90deg, rgba(255, 70, 20, .1), transparent 28%, transparent 72%, rgba(255, 180, 60, .08));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .35),
    inset 0 12px 24px rgba(0, 0, 0, .25);
}
.manual-titlecard__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 20px;
  background:
    radial-gradient(70% 80% at 20% 0%, rgba(255, 90, 30, .28), transparent 55%),
    radial-gradient(60% 70% at 90% 100%, rgba(255, 180, 40, .16), transparent 50%);
  animation: mbShine 4.5s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes mbShine {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; }
}
.manual-titlecard__mesh {
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 12px;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 140, 40, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 80, 20, .12) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  animation: mbMesh 12s linear infinite;
}
@keyframes mbMesh { to { background-position: 16px 16px; } }
.manual-titlecard__scan {
  position: absolute;
  left: 8px; right: 8px;
  height: 34%;
  z-index: 3;
  pointer-events: none;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent, rgba(255, 160, 60, .16), transparent);
  mix-blend-mode: screen;
  animation: mbScan 3.8s ease-in-out infinite;
}
@keyframes mbScan {
  0% { top: 8%; opacity: 0; }
  20% { opacity: .9; }
  100% { top: 70%; opacity: 0; }
}
.manual-titlecard__corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.manual-titlecard__corners i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--tc);
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 8px rgba(255, 140, 40, .65));
  animation: mbCorner 2.4s ease-in-out infinite;
}
.manual-titlecard__corners i:nth-child(1) { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.manual-titlecard__corners i:nth-child(2) { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; animation-delay: .2s; }
.manual-titlecard__corners i:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; animation-delay: .4s; }
.manual-titlecard__corners i:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; animation-delay: .6s; }
@keyframes mbCorner {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}
.manual-titlecard__edge {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 3px;
  z-index: 4;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--tc2), var(--tc), var(--tc2), transparent);
  box-shadow: 0 0 16px rgba(255, 90, 30, .7);
  animation: mbEdge 2.2s ease-in-out infinite;
}
@keyframes mbEdge {
  0%, 100% { opacity: .55; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.4); }
}
.manual-titlecard__name {
  position: relative;
  z-index: 5;
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(105deg, #5a1808 0%, #ff6a2a 20%, #ffe1a0 45%, #ff4a18 70%, #ffb020 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(10, 2, 0, .95))
    drop-shadow(0 8px 18px rgba(255, 60, 10, .4));
  animation: mbTitleFlow 4.5s ease-in-out infinite;
}
@keyframes mbTitleFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.manual-titlecard__bar {
  position: relative;
  z-index: 5;
  display: block;
  width: min(100%, 11rem);
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 40, .2);
}
.manual-titlecard__bar i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--tc2), var(--tc), #fff);
  box-shadow: 0 0 12px rgba(255, 120, 40, .8);
  animation: mbBar 2s ease-in-out infinite;
}
@keyframes mbBar {
  0%, 100% { width: 26%; transform: translateX(0); }
  50% { width: 72%; transform: translateX(30%); }
}

.manual-head__lead {
  margin: 0;
  max-width: 40rem;
  color: #9ad8d4;
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  line-height: 1.4;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .55);
  animation: mbIn .55s ease .1s both;
}

.manual-head--run .manual-head__kicker {
  --k1: #033038;
  --k2: #00e0d4;
  --k3: #3aa0ff;
  color: #d8fffb;
  border-color: rgba(0, 240, 224, .5);
  background: linear-gradient(165deg, #062428 0%, #041014 48%, #03080c 100%);
  box-shadow:
    0 1px 0 rgba(120, 255, 240, .3) inset,
    0 -6px 14px rgba(0, 0, 0, .55) inset,
    0 4px 0 #02080a,
    0 10px 0 #010406,
    0 16px 28px rgba(0, 0, 0, .55),
    0 0 24px rgba(0, 220, 210, .28);
}
.manual-head--run .manual-head__kicker i {
  background: radial-gradient(circle at 30% 30%, #e8fffc, #00f0e0 55%, #04505a);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 12px #00f0e0, 0 0 22px rgba(0, 240, 224, .5);
}
.manual-titlecard--run {
  --tc: #00f0e0;
  --tc2: #3aa0ff;
  --tc3: #033038;
}
.manual-titlecard--run .manual-titlecard__plate {
  border-color: rgba(0, 240, 224, .5);
  background: linear-gradient(155deg, #063038 0%, #071018 40%, #04080e 100%);
  box-shadow:
    0 1px 0 rgba(120, 255, 240, .25) inset,
    0 -14px 28px rgba(0, 0, 0, .55) inset,
    0 0 0 1px rgba(0, 0, 0, .65) inset,
    0 0 40px rgba(0, 220, 210, .2);
}
.manual-titlecard--run .manual-titlecard__bevel {
  border-color: rgba(0, 240, 224, .16);
  background:
    linear-gradient(180deg, rgba(0, 240, 224, .08), transparent 35%),
    linear-gradient(90deg, rgba(58, 160, 255, .1), transparent 28%, transparent 72%, rgba(0, 240, 224, .08));
}
.manual-titlecard--run .manual-titlecard__glow {
  background:
    radial-gradient(70% 80% at 20% 0%, rgba(0, 240, 224, .24), transparent 55%),
    radial-gradient(60% 70% at 90% 100%, rgba(58, 160, 255, .16), transparent 50%);
}
.manual-titlecard--run .manual-titlecard__mesh {
  background-image:
    linear-gradient(rgba(0, 240, 224, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 160, 255, .12) 1px, transparent 1px);
}
.manual-titlecard--run .manual-titlecard__scan {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 224, .14), transparent);
}
.manual-titlecard--run .manual-titlecard__name {
  background: linear-gradient(105deg, #033038 0%, #00f0e0 22%, #e8fffc 48%, #3aa0ff 72%, #00d8cc 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0, 8, 12, .95))
    drop-shadow(0 8px 18px rgba(0, 220, 210, .35));
}
.manual-head--run .manual-head__lead { color: #8fd0cc; }

@media (max-width: 720px) {
  .manual-titlecard {
    min-width: 0;
    width: 100%;
    padding: 1.1rem 1.25rem .95rem;
  }
  .manual-titlecard__name {
    font-size: clamp(1.55rem, 9vw, 2.2rem);
    letter-spacing: .1em;
  }
  .manual-head__kicker {
    font-size: .42rem;
    letter-spacing: .12em;
    padding: .4rem .8rem;
  }
  .manual-head__lead { font-size: .9rem; }
}

/* Manual — identidade própria do modo clássico */
.lore-rail--dominion {
  --rail: #70a7ff;
  --rail2: #8b5cf6;
  --rail-dim: rgba(112, 167, 255, .28);
  background:
    repeating-linear-gradient(112deg, rgba(112, 167, 255, .035) 0 1px, transparent 1px 12px),
    linear-gradient(90deg, #040711, #0a1022 48%, #050713);
}

.manual-head--dominion {
  gap: .68rem;
  max-width: min(100%, 68rem);
}

.manual-head--dominion .manual-head__kicker {
  color: #e8f1ff;
  padding: .55rem 1.15rem .52rem 1rem;
  border: 1px solid rgba(130, 173, 255, .52);
  border-radius: 4px;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, rgba(30, 55, 105, .96), rgba(11, 18, 39, .98) 55%, rgba(36, 18, 67, .96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    inset 0 -1px 0 rgba(0, 0, 0, .55),
    0 8px 28px rgba(20, 40, 90, .38);
  text-shadow: none;
  transform: none;
  animation: mbIn .35s ease both;
}

.manual-head--dominion .manual-head__kicker::before,
.manual-head--dominion .manual-head__kicker::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #79aaff);
  opacity: .7;
}
.manual-head--dominion .manual-head__kicker::before {
  right: calc(100% + 8px);
}
.manual-head--dominion .manual-head__kicker::after {
  left: calc(100% + 8px);
  transform: scaleX(-1);
}

.manual-head--dominion .manual-head__kicker-skin {
  background:
    linear-gradient(90deg, transparent, rgba(126, 169, 255, .13) 50%, transparent),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, .045) 18px 19px);
  animation: none;
  mix-blend-mode: normal;
}

.manual-head--dominion .manual-head__kicker i {
  width: 7px;
  height: 7px;
  background: #8eb8ff;
  box-shadow: 0 0 0 2px rgba(104, 82, 190, .3), 0 0 14px #6d9eff;
  animation: none;
}

.manual-titlecard--dominion {
  display: grid;
  gap: .34rem;
  width: auto;
  min-width: 0;
  padding: .38rem 1.8rem .2rem;
  overflow: visible;
  border-radius: 0;
  transform: none;
  animation: mbIn .45s cubic-bezier(.2, .85, .2, 1) .04s both;
}

.manual-titlecard__eyebrow {
  color: #778aaa;
  font-family: var(--font-d);
  font-size: .48rem;
  font-weight: 800;
  letter-spacing: .48em;
  text-indent: .48em;
}

.manual-titlecard--dominion .manual-titlecard__name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: .9;
  letter-spacing: .12em;
  text-indent: .12em;
  background: linear-gradient(180deg, #fff 3%, #b7d4ff 43%, #668fd1 66%, #e9f2ff 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 #16233e)
    drop-shadow(0 10px 24px rgba(79, 126, 222, .24));
  animation: none;
}

.manual-titlecard__rule {
  position: relative;
  display: block;
  width: min(100%, 18rem);
  height: 5px;
  margin: .08rem auto 0;
  background:
    linear-gradient(90deg, transparent, rgba(107, 150, 225, .5) 14%, rgba(107, 150, 225, .5) 86%, transparent)
    center / 100% 1px no-repeat;
}
.manual-titlecard__rule::before,
.manual-titlecard__rule::after,
.manual-titlecard__rule i {
  content: "";
  position: absolute;
  top: 1px;
  height: 3px;
  background: #8fb8ff;
  box-shadow: 0 0 9px rgba(112, 167, 255, .65);
}
.manual-titlecard__rule::before { left: 0; width: 24%; }
.manual-titlecard__rule::after { right: 0; width: 24%; }
.manual-titlecard__rule i {
  left: 50%;
  width: 7px;
  transform: translateX(-50%) rotate(45deg);
}

.manual-head--dominion .manual-head__lead {
  max-width: none;
  color: #c1ccdf;
  letter-spacing: .01em;
}

@media (min-width: 800px) {
  .manual-head--dominion .manual-head__lead { white-space: nowrap; }
}

@media (max-width: 720px) {
  .manual-head--dominion { gap: .62rem; }
  .manual-titlecard--dominion {
    width: auto;
    padding: .3rem .4rem .15rem;
  }
  .manual-titlecard--dominion .manual-titlecard__name {
    font-size: clamp(2.25rem, 14vw, 3.4rem);
    letter-spacing: .07em;
    text-indent: .07em;
  }
  .manual-titlecard__eyebrow {
    font-size: .42rem;
    letter-spacing: .34em;
    text-indent: .34em;
  }
  .manual-head--dominion .manual-head__kicker::before,
  .manual-head--dominion .manual-head__kicker::after {
    width: 12px;
  }
}

/* Lore — acabamento metálico do hero, preservando sua identidade */
.lore-hero__inner {
  max-width: 70rem;
}

.lore-hero__kicker {
  position: relative;
  color: #edf6ff;
  padding: .5rem 1rem .48rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background:
    linear-gradient(#0a0e18, #0a0e18) padding-box,
    linear-gradient(105deg, #ff7a32, #ffc45a 42%, #4cbdd1 64%, #00e8dc) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .11),
    inset 0 -8px 15px rgba(0, 0, 0, .35),
    -10px 0 30px rgba(255, 91, 32, .16),
    10px 0 30px rgba(0, 240, 224, .14);
  text-shadow: 0 1px 0 #000;
  animation: none;
}
.lore-hero__kicker::before {
  content: "";
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, transparent 0 8px, rgba(255, 255, 255, .045) 8px 9px),
    linear-gradient(90deg, rgba(255, 106, 42, .09), transparent 45%, rgba(0, 240, 224, .08));
}

.lore-hero__line {
  background:
    linear-gradient(180deg,
      #fffdf8 0%,
      #ffe9bd 24%,
      #f5b957 45%,
      #9a461f 49%,
      #ff8138 56%,
      #ffd583 78%,
      #fff4d4 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 #4c1c0d)
    drop-shadow(0 9px 24px rgba(255, 100, 40, .28));
  animation: none;
}
.lore-hero__line--wars {
  background:
    linear-gradient(180deg,
      #f4fffe 0%,
      #a8fff7 25%,
      #28d8d0 45%,
      #075c68 49%,
      #16e9dc 57%,
      #73d9ee 78%,
      #e8fffc 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 #053b42)
    drop-shadow(0 9px 24px rgba(0, 240, 224, .25));
  animation: none;
}

.lore-hero__lead {
  max-width: 60rem;
}

.lore-hero__quote {
  position: relative;
  width: fit-content;
  min-width: min(100%, 18rem);
  gap: .32rem;
  padding: .72rem 1rem .72rem 1.25rem;
  border: 1px solid rgba(137, 170, 190, .2);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #ff7a32, #ffc14a 48%, #00f0e0) 1;
  background:
    repeating-linear-gradient(112deg, transparent 0 11px, rgba(255, 255, 255, .025) 11px 12px),
    linear-gradient(105deg, rgba(31, 14, 12, .78), rgba(7, 12, 20, .88) 52%, rgba(4, 27, 31, .75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 12px 30px rgba(0, 0, 0, .25);
  backdrop-filter: blur(7px);
}
.lore-hero__quote::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 9px;
  width: 5px;
  height: 5px;
  background: #70eee4;
  box-shadow: 0 0 10px rgba(0, 240, 224, .8);
  transform: rotate(45deg);
}

@media (min-width: 760px) {
  .lore-hero__lead { white-space: nowrap; }
}

@media (max-width: 720px) {
  .lore-hero__kicker {
    font-size: .43rem;
    letter-spacing: .2em;
  }
  .lore-hero__quote {
    width: min(100%, 22rem);
    min-width: 0;
  }
}

/* —— Stats dossier (statsx) —— */
.dash-stats[data-open-stats] {
  cursor: pointer;
  position: relative;
}
.dash-stats[data-open-stats]:hover .dash-stat {
  border-color: color-mix(in srgb, var(--sc) 55%, rgba(255,255,255,.12));
  box-shadow: 0 14px 32px rgba(0,0,0,.36), 0 0 22px color-mix(in srgb, var(--sc) 18%, transparent);
}
.dash-stats[data-open-stats]:focus-visible {
  outline: 2px solid #ffc14a;
  outline-offset: 4px;
  border-radius: 12px;
}
.dash-stats__hint {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(180, 200, 220, .55);
}
button.appside__link {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* Center the stats dialog in the viewport (ignore appside offset). */
dialog.statsx.mcfg {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  width: min(760px, calc(100vw - 1.5rem)) !important;
  max-width: min(760px, calc(100vw - 1.5rem)) !important;
  height: fit-content !important;
  max-height: calc(100dvh - 1.5rem) !important;
  transform: none !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
}
dialog.statsx.mcfg[open] {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.statsx::backdrop {
  background:
    radial-gradient(ellipse 55% 45% at 50% 42%, rgba(255,122,42,.16), transparent 62%),
    radial-gradient(ellipse 40% 35% at 70% 70%, rgba(0,240,224,.1), transparent 60%),
    rgba(1, 2, 8, .9) !important;
  backdrop-filter: blur(14px) saturate(1.25);
}
.statsx .statsx__hull,
.statsx .mcfg__hull {
  width: 100% !important;
  max-width: 100%;
  max-height: min(88dvh, 900px);
  margin: 0 auto;
  padding: 1.05rem 1.15rem 0;
}
.statsx__glow {
  position: absolute;
  inset: 8% 12% auto;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255,193,74,.18), transparent 70%);
  filter: blur(18px);
}
.statsx__seal {
  color: #ffc14a;
}
.statsx__head {
  position: relative;
  z-index: 2;
}
.statsx__tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .15rem 0 .55rem;
}
.statsx__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid rgba(255,193,74,.25);
  background:
    linear-gradient(160deg, rgba(16,18,28,.9), rgba(6,8,14,.94));
  color: rgba(210, 222, 236, .78);
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .62rem .7rem;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
}
.statsx__tab svg { opacity: .7; }
.statsx__tab.is-on {
  background: linear-gradient(135deg, rgba(255,122,42,.32), rgba(255,193,74,.16) 55%, rgba(0,240,224,.08));
  border-color: rgba(255,193,74,.62);
  color: #ffe7b0;
  box-shadow: 0 0 22px rgba(255,140,50,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.statsx__tab.is-on svg { opacity: 1; color: #ffc14a; }
.statsx__tab:hover:not(.is-on) {
  border-color: rgba(122,248,239,.35);
  color: #e8f4ff;
}
.statsx__body {
  position: relative;
  z-index: 2;
  min-height: 320px;
  padding: .35rem .1rem 1.1rem;
}
.statsx__loading[hidden] {
  display: none !important;
}
.statsx__loading {
  display: grid;
  place-items: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: rgba(180,200,220,.75);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .72rem;
}
.statsx__loading-ring {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,193,74,.2);
  border-top-color: #ffc14a;
  border-radius: 50%;
  animation: statsxSpin .8s linear infinite;
}
@keyframes statsxSpin { to { transform: rotate(360deg); } }
.statsx__foot {
  position: relative;
  z-index: 2;
  gap: .75rem;
  align-items: center;
}
.statsx__foot-note {
  margin: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  font-size: .7rem;
  color: rgba(170,190,210,.68);
}
.statsx__chip {
  display: inline-flex;
  align-items: center;
  padding: .18rem .4rem;
  border: 1px solid rgba(255,193,74,.45);
  background: rgba(255,140,40,.14);
  color: #ffc14a;
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .62rem;
  letter-spacing: .08em;
}
.statsx__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(122,248,239,.55);
}

.statsx-kicker {
  margin: 0 0 .2rem;
  font-size: .58rem;
  letter-spacing: .22em;
  color: #ffc14a;
  font-weight: 700;
}
.statsx-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  margin-bottom: .85rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255,140,60,.32);
  background:
    radial-gradient(ellipse 70% 90% at 0% 50%, rgba(255,106,42,.16), transparent 60%),
    linear-gradient(120deg, rgba(42,16,10,.72), rgba(8,12,20,.88) 55%, rgba(4,18,22,.7));
  overflow: hidden;
}
.statsx-hero--cyan {
  border-color: rgba(0,240,224,.35);
  background:
    radial-gradient(ellipse 70% 90% at 0% 50%, rgba(0,240,224,.14), transparent 60%),
    linear-gradient(120deg, rgba(6,28,32,.78), rgba(8,12,20,.88));
}
.statsx-hero--cyan .statsx-kicker { color: #7af8ef; }
.statsx-hero__id {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  flex: 1;
}
.statsx-hero__avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #ffc14a;
  border: 1px solid rgba(255,193,74,.4);
  background:
    radial-gradient(circle at 40% 35%, rgba(255,193,74,.22), transparent 65%),
    rgba(0,0,0,.4);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 0 18px rgba(255,140,50,.2);
}
.statsx-hero h3 {
  margin: 0;
  font-size: 1.28rem;
  color: #fff;
  letter-spacing: .02em;
}
.statsx-lead {
  margin: .35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  color: rgba(190,210,230,.75);
  font-size: .85rem;
}
.statsx-pill {
  display: inline-flex;
  align-items: center;
  padding: .18rem .45rem;
  font-size: .68rem;
  letter-spacing: .06em;
  border: 1px solid transparent;
}
.statsx-pill--gold {
  color: #ffc14a;
  border-color: rgba(255,193,74,.35);
  background: rgba(255,140,40,.12);
}
.statsx-pill--cyan {
  color: #7af8ef;
  border-color: rgba(122,248,239,.35);
  background: rgba(0,240,224,.1);
}

.statsx-combo {
  position: relative;
  margin-left: auto;
  min-width: 118px;
  text-align: center;
  padding: .7rem .85rem .65rem;
  border: 1px solid rgba(255,61,138,.45);
  background:
    radial-gradient(circle at 50% 30%, rgba(255,61,138,.22), transparent 70%),
    rgba(20,6,16,.75);
  box-shadow: 0 0 28px rgba(255,61,138,.22);
}
.statsx-combo--sm {
  min-width: 96px;
  padding: .55rem .7rem;
}
.statsx-combo__ring {
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(255,193,74,.35);
  pointer-events: none;
  animation: statsxRing 8s linear infinite;
}
@keyframes statsxRing { to { transform: rotate(360deg); } }
.statsx-combo em {
  display: block;
  font-size: .52rem;
  letter-spacing: .16em;
  color: #ff9ec8;
  font-style: normal;
}
.statsx-combo strong {
  display: block;
  margin-top: .1rem;
  font-size: 1.85rem;
  line-height: 1;
  color: #fff;
  font-family: var(--font-d, Orbitron, sans-serif);
  text-shadow: 0 0 18px rgba(255,61,138,.7);
}
.statsx-combo small {
  display: block;
  margin-top: .2rem;
  font-size: .58rem;
  letter-spacing: .12em;
  color: rgba(255,193,74,.85);
  text-transform: uppercase;
}

.statsx-winbar {
  position: relative;
  height: 28px;
  margin-bottom: .9rem;
  border: 1px solid rgba(93,255,176,.22);
  background: rgba(4,10,12,.75);
  overflow: hidden;
}
.statsx-winbar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a8f5a, #5dffb0 55%, #7af8ef);
  box-shadow: 0 0 18px rgba(93,255,176,.35);
  transition: width .5s ease;
}
.statsx-winbar em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f2fff8;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
  mix-blend-mode: difference;
}

.statsx-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: 1.15rem;
}
.statsx-metric {
  --mc: #ffc14a;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .7rem .65rem .65rem;
  border: 1px solid color-mix(in srgb, var(--mc) 32%, rgba(255,255,255,.08));
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, color-mix(in srgb, var(--mc) 16%, transparent), transparent 65%),
    rgba(6,10,16,.82);
  overflow: hidden;
  min-height: 74px;
}
.statsx-metric--win { --mc: #5dffb0; }
.statsx-metric--loss { --mc: #ff5d7a; }
.statsx-metric--rate { --mc: #7af8ef; }
.statsx-metric--match { --mc: #ff8a4c; }
.statsx-metric--score { --mc: #ffc14a; }
.statsx-metric--best { --mc: #c084ff; }
.statsx-metric--unit { --mc: #5ab0ff; }
.statsx-metric--xp { --mc: #ffe08a; }
.statsx-metric__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--mc) 22%, transparent), transparent 60%);
  pointer-events: none;
  opacity: .7;
}
.statsx-metric__ico {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--mc);
  border: 1px solid color-mix(in srgb, var(--mc) 40%, transparent);
  background: color-mix(in srgb, var(--mc) 12%, transparent);
}
.statsx-metric__txt {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.statsx-metric em {
  display: block;
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mc) 70%, #c8d8e8);
  font-style: normal;
  margin-bottom: .2rem;
}
.statsx-metric strong {
  display: block;
  font-size: 1.12rem;
  color: #f4f8ff;
  font-family: var(--font-d, Orbitron, sans-serif);
  line-height: 1.15;
  word-break: break-word;
}
.statsx-metric small {
  display: block;
  margin-top: .15rem;
  color: color-mix(in srgb, var(--mc) 85%, #fff);
  font-size: .65rem;
  letter-spacing: .04em;
}

.statsx-sec {
  margin-top: .2rem;
}
.statsx-sec header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .7rem;
}
.statsx-sec header p {
  margin: 0;
  font-size: .56rem;
  letter-spacing: .2em;
  color: #7af8ef;
}
.statsx-sec header h4 {
  margin: .15rem 0 0;
  font-size: .98rem;
  color: #eef4ff;
}
.statsx-sec__tag {
  font-size: .58rem;
  letter-spacing: .14em;
  color: #ffc14a;
  border: 1px solid rgba(255,193,74,.3);
  padding: .25rem .45rem;
  background: rgba(255,140,40,.1);
}

.statsx-units {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.statsx-unit {
  display: grid;
  grid-template-columns: 36px 48px 1fr auto;
  align-items: center;
  gap: .65rem;
  padding: .42rem .55rem;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(90deg, rgba(255,140,40,.06), transparent 35%),
    rgba(8,12,18,.78);
  transition: border-color .15s ease, background .15s ease;
}
.statsx-unit:hover {
  border-color: rgba(255,193,74,.35);
  background:
    linear-gradient(90deg, rgba(255,140,40,.12), transparent 40%),
    rgba(12,16,24,.85);
}
.statsx-unit__rank {
  font-family: var(--font-d, Orbitron, sans-serif);
  font-size: .72rem;
  color: rgba(122,248,239,.75);
  text-align: center;
}
.statsx-unit__art {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,193,74,.28);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,193,74,.12), transparent 70%),
    rgba(0,0,0,.4);
}
.statsx-unit__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.statsx-unit__meta strong {
  display: block;
  font-size: .84rem;
  color: #f0f4ff;
}
.statsx-unit__meta em {
  font-size: .66rem;
  color: rgba(160,185,205,.7);
  font-style: normal;
}
.statsx-unit__count {
  font-family: var(--font-d, Orbitron, sans-serif);
  color: #ffc14a;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: baseline;
  gap: .05rem;
}
.statsx-unit__count i {
  font-style: normal;
  opacity: .65;
  font-size: .75rem;
}

.statsx-civs {
  display: grid;
  gap: .6rem;
}
.statsx-civ {
  --cc: #ff8a4c;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .8rem;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: .5rem .6rem;
  border: 1px solid color-mix(in srgb, var(--cc) 28%, rgba(255,255,255,.08));
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, color-mix(in srgb, var(--cc) 14%, transparent), transparent 65%),
    rgba(8,12,18,.82);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.statsx-civ--cyan { --cc: #00f0e0; }
.statsx-civ--ember { --cc: #ff8a4c; }
.statsx-civ:hover,
.statsx-civ.is-played:hover {
  transform: translateX(3px);
  border-color: color-mix(in srgb, var(--cc) 55%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--cc) 18%, transparent);
}
.statsx-civ__art {
  position: relative;
  width: 72px;
  height: 52px;
  background: rgba(0,0,0,.45) center/cover no-repeat;
  border: 1px solid color-mix(in srgb, var(--cc) 35%, transparent);
}
.statsx-civ__art--lg {
  width: 96px;
  height: 70px;
  flex: 0 0 auto;
}
.statsx-civ__frame {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.statsx-civ__copy strong {
  display: block;
  color: #fff;
  font-size: .92rem;
}
.statsx-civ__copy em {
  display: block;
  font-size: .7rem;
  color: rgba(170,195,215,.72);
  font-style: normal;
  margin-top: .1rem;
}
.statsx-civ__stats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .35rem;
}
.statsx-civ__stats b {
  font-size: .65rem;
  letter-spacing: .04em;
  padding: .12rem .35rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.25);
  font-weight: 600;
  color: rgba(220,230,240,.85);
}
.statsx-civ__stats .is-win {
  color: #5dffb0;
  border-color: rgba(93,255,176,.3);
}
.statsx-civ__stats .is-loss {
  color: #ff5d7a;
  border-color: rgba(255,93,122,.3);
}
.statsx-civ__stats .is-ranked {
  color: #7af8ef;
  border-color: rgba(122,248,239,.32);
  background: rgba(0,240,224,.1);
}
.statsx-civ__stats .is-other {
  color: #ffc14a;
  border-color: rgba(255,193,74,.32);
  background: rgba(255,140,40,.1);
}
.statsx-civ__side {
  display: grid;
  justify-items: end;
  gap: .35rem;
}
.statsx-civ__side em {
  font-style: normal;
  font-family: var(--font-d, Orbitron, sans-serif);
  color: #ffc14a;
  font-size: .95rem;
}
.statsx-civ__chev::before {
  content: "›";
  color: color-mix(in srgb, var(--cc) 70%, #fff);
  font-size: 1.35rem;
  line-height: 1;
}

.statsx-back {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border: 1px solid rgba(122,248,239,.28);
  background: rgba(0,240,224,.06);
  color: #7af8ef;
  cursor: pointer;
  font: inherit;
  margin-bottom: .8rem;
  padding: .35rem .55rem;
}
.statsx-back:hover {
  color: #ffc14a;
  border-color: rgba(255,193,74,.4);
  background: rgba(255,140,40,.08);
}
.statsx-empty {
  margin: 0;
  padding: 1rem;
  color: rgba(170,190,210,.65);
  border: 1px dashed rgba(255,255,255,.12);
  list-style: none;
  text-align: center;
}

.statsx-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.statsx-block {
  min-width: 0;
  padding: .75rem .75rem .7rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(4, 8, 14, .55);
}
.statsx-block--ranked {
  border-color: rgba(122,248,239,.32);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(0,240,224,.12), transparent 62%),
    rgba(4, 12, 16, .72);
}
.statsx-block--other {
  border-color: rgba(255,193,74,.3);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255,140,40,.12), transparent 62%),
    rgba(14, 10, 6, .72);
}
.statsx-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}
.statsx-block__head p {
  margin: 0;
  font-size: .58rem;
  letter-spacing: .18em;
  color: rgba(180,200,220,.7);
  font-weight: 700;
}
.statsx-block--ranked .statsx-block__head p { color: #7af8ef; }
.statsx-block--other .statsx-block__head p { color: #ffc14a; }
.statsx-block__head h4 {
  margin: .15rem 0 0;
  font-size: .82rem;
  color: #fff;
  letter-spacing: .02em;
}
.statsx-block__tag {
  flex: 0 0 auto;
  font-size: .58rem;
  letter-spacing: .12em;
  padding: .16rem .4rem;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(210,222,236,.8);
}
.statsx-block .statsx-winbar {
  margin-bottom: .55rem;
  height: 24px;
}
.statsx-grid--mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: .55rem;
  gap: .4rem;
}
.statsx-block .statsx-metric {
  min-height: 64px;
  padding: .55rem .5rem .5rem;
}
.statsx-units--compact {
  margin: .15rem 0 0;
  gap: .3rem;
}
.statsx-units--compact .statsx-unit {
  padding: .35rem .4rem;
}

@media (max-width: 720px) {
  .statsx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statsx-split {
    grid-template-columns: 1fr;
  }
  .statsx-hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .statsx-combo {
    margin-left: 0;
    width: 100%;
  }
  .statsx-civ {
    grid-template-columns: 64px 1fr;
  }
  .statsx-civ__side {
    grid-column: 2;
    grid-template-columns: 1fr auto;
    width: 100%;
    justify-items: start;
    align-items: center;
  }
}
@media (max-width: 480px) {
  dialog.statsx.mcfg {
    width: calc(100vw - 0.85rem) !important;
    max-width: calc(100vw - 0.85rem) !important;
  }
  .statsx-unit {
    grid-template-columns: 28px 40px 1fr auto;
    gap: .45rem;
  }
}

/* —— Ranked queue + ranking —— */
dialog.rq-panel,
.rq-panel {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  z-index: 2147483000 !important;
  display: none;
  place-items: center;
  overflow: auto;
}
dialog.rq-panel[open],
.rq-panel.is-open,
.rq-panel:not([hidden]).is-open {
  display: grid !important;
}
.rq-panel[hidden] { display: none !important; }
.rq-panel::backdrop {
  background: rgba(2, 6, 12, .78);
  backdrop-filter: blur(5px);
}
body.ranked-queue-open { overflow: hidden; }
.rq-panel__veil {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0;
  background: rgba(4,8,14,.72);
  backdrop-filter: blur(4px);
}
.rq-panel__card {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: min(520px, 92vw);
  margin: 0 !important;
  padding: 1.25rem 1.35rem 1.4rem;
  border: 1px solid rgba(0,240,224,.28);
  background: linear-gradient(160deg, rgba(12,22,34,.97), rgba(8,14,22,.98));
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  color: #d7e6f2;
}
.rq-panel__head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.rq-panel__kicker { margin: 0; font-size: .68rem; letter-spacing: .14em; color: #00d4c8; }
.rq-panel__head h2 { margin: .2rem 0 0; font-size: 1.35rem; }
.rq-panel__x {
  border: 0; background: transparent; color: #9bb0c4;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.rq-panel__you {
  display: flex; align-items: center; gap: .85rem;
  margin: 1rem 0 .75rem; padding: .75rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.rq-panel__you strong { display: block; }
.rq-panel__you em { color: rgba(180,200,220,.75); font-style: normal; font-size: .85rem; }
.rq-panel__live { margin-left: auto; font-size: .75rem; color: #00d4c8; text-transform: uppercase; letter-spacing: .08em; }
.rq-panel__status { margin: 0 0 .35rem; color: rgba(200,220,235,.85); }
.rq-panel__timer { margin: 0 0 .75rem; font-size: .8rem; color: #ffc14a; min-height: 1.1em; }
.rq-panel__empty {
  margin: 0 0 .75rem; padding: .75rem;
  border: 1px dashed rgba(255,193,74,.35);
  color: #ffc14a; font-size: .9rem;
}
.rq-panel__empty[hidden] { display: none !important; }
.rq-panel__list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.rq-player {
  display: flex; gap: .75rem; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.rq-player.is-self { background: rgba(0,212,200,.06); }
.rq-player strong { display: block; }
.rq-player em { font-style: normal; font-size: .78rem; color: rgba(180,200,220,.7); }
.rq-panel__foot { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }

.statsx-league { vertical-align: middle; margin-right: .35rem; }
.statsx-leaguebar {
  margin-top: .65rem; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.08); position: relative; overflow: hidden;
}
.statsx-leaguebar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00d4c8, #ffc14a);
}
.statsx-leaguebar em,
.statsx-leaguebar__hint {
  display: block; margin-top: .35rem; font-style: normal;
  font-size: .72rem; color: rgba(180,200,220,.75);
}



/* ===== Ranking page — prestige showcase ===== */
html:has(body.app-shell.ranking-page),
body.app-shell.ranking-page {
  height: auto !important;
  max-height: none !important;
  min-height: 100dvh !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  overscroll-behavior: auto !important;
}
body.app-shell.ranking-page { padding-top: 0 !important; }
body.app-shell.ranking-page .rankx {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  min-height: calc(100dvh - var(--nav)) !important;
  overflow: visible !important;
  padding-top: calc(var(--nav) + 1.85rem) !important;
  padding-bottom: 3.75rem !important;
  flex: none !important;
}

.rankx {
  position: relative;
  isolation: isolate;
  padding: 0 1.25rem 3.5rem;
  color: #e8f4fa;
}
.rankx__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% -5%, rgba(0,240,224,.2), transparent 40%),
    radial-gradient(ellipse at 95% 5%, rgba(255,77,42,.14), transparent 36%),
    radial-gradient(ellipse at 50% 100%, rgba(255,193,74,.08), transparent 48%),
    linear-gradient(165deg, #04070d 0%, #0a121c 46%, #05080f 100%);
}
.rankx__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .2;
  background-image:
    linear-gradient(rgba(120,160,190,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,190,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 22%, transparent 78%);
}
.rankx__orb {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(72px); opacity: .48;
  animation: rankxOrb 11s ease-in-out infinite alternate;
}
.rankx__orb--a { width: 320px; height: 320px; left: -80px; top: 140px; background: rgba(0,212,200,.22); }
.rankx__orb--b { width: 360px; height: 360px; right: -100px; top: 40px; background: rgba(255,77,42,.15); animation-delay: -3s; }
.rankx__orb--c { width: 260px; height: 260px; left: 42%; bottom: 8%; background: rgba(255,193,74,.1); animation-delay: -6s; }
@keyframes rankxOrb {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(20px, 28px, 0) scale(1.1); }
}
.rankx__wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }

.rankx-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.2rem 1.5rem;
  align-items: center;
  margin: 0 0 2.5rem;
  padding: 1.45rem 1.5rem 1.55rem;
  border-radius: 22px;
  border: 1px solid rgba(0,240,224,.28);
  background:
    linear-gradient(125deg, rgba(8,16,26,.94), rgba(5,10,16,.9)),
    radial-gradient(ellipse at 0% 40%, rgba(0,240,224,.14), transparent 52%);
  box-shadow:
    0 26px 60px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 40px rgba(0,240,224,.06);
  transform-style: preserve-3d;
}
.rankx-hero__badge {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #00f0e0;
  background:
    radial-gradient(circle at 35% 30%, rgba(0,240,224,.3), transparent 55%),
    linear-gradient(160deg, #15202c, #070b12);
  box-shadow:
    0 14px 28px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(0,240,224,.35),
    0 0 24px rgba(0,240,224,.18);
  animation: rankxHeroSpin 8s linear infinite;
}
@keyframes rankxHeroSpin {
  from { filter: drop-shadow(0 0 8px rgba(0,240,224,.2)); }
  50% { filter: drop-shadow(0 0 18px rgba(0,240,224,.45)); }
  to { filter: drop-shadow(0 0 8px rgba(0,240,224,.2)); }
}
.rankx-hero__ring {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px dashed rgba(0,240,224,.4);
  animation: rankxRingSpin 12s linear infinite;
}
@keyframes rankxRingSpin { to { transform: rotate(360deg); } }
.rankx-hero__core {
  position: absolute; inset: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,224,.2), transparent 70%);
  animation: rankxPulse 2.6s ease-in-out infinite;
}
.rankx-hero__badge svg { position: relative; z-index: 1; }
.rankx-hero__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 .45rem; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: #00e0d4; font-weight: 700;
}
.rankx-hero__kicker i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00f0e0; box-shadow: 0 0 12px #00f0e0;
  animation: rankxPulse 1.8s ease-in-out infinite;
}
@keyframes rankxPulse {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
.rankx-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  letter-spacing: .02em; line-height: 1.04;
  text-shadow: 0 16px 42px rgba(0,0,0,.55), 0 0 30px rgba(0,240,224,.12);
}
.rankx-hero__lead {
  margin: .55rem 0 0;
  color: rgba(190,210,225,.8);
  font-size: 1.05rem; max-width: 36rem;
}
.rankx-hero__chips {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: .85rem 0 0; padding: 0;
}
.rankx-hero__chips li {
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .62rem; letter-spacing: .1em; font-weight: 700;
  color: rgba(200,220,235,.85);
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}

.rankx-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
.rankx-cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; min-width: 11.5rem;
  padding: .8rem 1.35rem;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}
.rankx-cta__ico {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 9px;
  background: rgba(0,0,0,.18);
}
.rankx-cta strong {
  position: relative; z-index: 1;
  font-family: var(--font-d);
  font-size: .72rem;
  letter-spacing: .14em;
}
.rankx-cta--primary {
  border: 1px solid rgba(0,240,224,.6);
  color: #031016;
  background: linear-gradient(165deg, #5ffff3 0%, #00e0d4 42%, #0098a8 100%);
  box-shadow: 0 14px 32px rgba(0,240,224,.28), inset 0 1px 0 rgba(255,255,255,.45);
}
.rankx-cta--primary strong { color: #031016; }
.rankx-cta--primary .rankx-cta__ico { color: #031016; background: rgba(255,255,255,.28); }
.rankx-cta--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0,240,224,.38);
  filter: brightness(1.05);
}
.rankx-cta__shine {
  position: absolute; inset: -40% -30%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%);
  animation: rankxCtaShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rankxCtaShine {
  0% { transform: translateX(-45%) rotate(12deg); opacity: 0; }
  35% { opacity: .8; }
  100% { transform: translateX(45%) rotate(12deg); opacity: 0; }
}
.rankx-cta--ghost {
  border: 1px solid rgba(255,255,255,.18);
  color: #e8f4fa;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.rankx-cta--ghost strong { color: #e8f4fa; }
.rankx-cta--ghost .rankx-cta__ico { color: #ffc14a; background: rgba(255,193,74,.12); }
.rankx-cta--ghost:hover {
  transform: translateY(-3px);
  border-color: rgba(255,193,74,.5);
  background: rgba(255,193,74,.1);
}

.rankx-sec {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  margin: 0 0 1.1rem;
}
.rankx-sec h2 {
  margin: 0; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(180,210,230,.88);
}
.rankx-sec p { margin: .3rem 0 0; font-size: .9rem; color: rgba(160,185,205,.7); }
.rankx-sec__tag {
  flex-shrink: 0;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .62rem; letter-spacing: .12em; font-weight: 700;
  color: #00e0d4;
  border: 1px solid rgba(0,240,224,.28);
  background: rgba(0,240,224,.08);
}

.rankx-leagues { margin: 0 0 2.6rem; }
.rankx-leagues__rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .7rem;
  perspective: 900px;
}
.rankx-league {
  --lc: #00d4c8;
  --ti: 1;
  position: relative;
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 1.05rem .45rem 1.1rem;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--lc) 32%, rgba(255,255,255,.06));
  background:
    linear-gradient(170deg, rgba(16,22,32,.96), rgba(6,10,16,.98)),
    radial-gradient(circle at 50% 8%, color-mix(in srgb, var(--lc) 26%, transparent), transparent 58%);
  box-shadow:
    0 16px 36px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 0 1px rgba(0,0,0,.2);
  transform: translateZ(0) rotateX(2deg);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.rankx-league:hover {
  transform: translateY(-10px) rotateX(0deg) scale(1.03);
  border-color: color-mix(in srgb, var(--lc) 65%, rgba(255,255,255,.12));
  box-shadow:
    0 28px 52px rgba(0,0,0,.5),
    0 0 34px color-mix(in srgb, var(--lc) 28%, transparent);
  z-index: 2;
}
.rankx-league__tier {
  position: absolute; top: .45rem; right: .45rem;
  padding: .12rem .35rem;
  border-radius: 6px;
  font-size: .58rem; letter-spacing: .08em; font-weight: 800;
  color: color-mix(in srgb, var(--lc) 85%, #fff);
  background: rgba(0,0,0,.35);
  border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent);
}
.rankx-league__medal {
  position: relative;
  width: calc(78px + var(--ti) * 3.2px);
  height: calc(78px + var(--ti) * 3.2px);
  display: grid; place-items: center;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: rankxMedalFloat calc(4.2s + var(--ti) * .18s) ease-in-out infinite;
  animation-delay: calc(var(--ti) * -.35s);
}
@keyframes rankxMedalFloat {
  0%, 100% { transform: translateY(0) rotateY(-6deg) rotateX(4deg); }
  50% { transform: translateY(-8px) rotateY(10deg) rotateX(0deg); }
}
.rankx-league__plate {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, color-mix(in srgb, var(--lc) 34%, #243040), #070b12 74%);
  box-shadow:
    0 16px 28px rgba(0,0,0,.5),
    inset 0 0 0 1px color-mix(in srgb, var(--lc) 40%, transparent),
    inset 0 -12px 24px rgba(0,0,0,.4),
    0 0 22px color-mix(in srgb, var(--lc) calc(8% + var(--ti) * 2%), transparent);
}
.rankx-league__medal img {
  position: relative; z-index: 2;
  width: 78%; height: 78%; object-fit: contain;
  filter:
    drop-shadow(0 12px 18px rgba(0,0,0,.55))
    drop-shadow(0 0 calc(10px + var(--ti) * 1.5px) color-mix(in srgb, var(--lc) 45%, transparent));
}
.rankx-league__ring {
  position: absolute; inset: -4px; z-index: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--lc) 55%, transparent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--lc) 8%, transparent);
  pointer-events: none;
}
.rankx-league__pulse {
  position: absolute; inset: 12%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lc) 45%, transparent), transparent 70%);
  animation: rankxPulse calc(2.2s + var(--ti) * .12s) ease-in-out infinite;
  pointer-events: none;
}
/* Tier personality */
.rankx-league--t1, .rankx-league--t2 { opacity: .92; }
.rankx-league--t5 .rankx-league__ring,
.rankx-league--t6 .rankx-league__ring { border-style: double; border-width: 3px; }
.rankx-league--t7, .rankx-league--t8 {
  border-width: 1.5px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 28px color-mix(in srgb, var(--lc) 18%, transparent);
}
.rankx-league--t8 .rankx-league__tier {
  color: #041016; background: linear-gradient(135deg, #ffe08a, #ffc14a); border-color: transparent;
}
.rankx-league figcaption { text-align: center; }
.rankx-league figcaption strong {
  display: block; font-size: .88rem; letter-spacing: .02em;
}
.rankx-league figcaption em {
  display: block; margin-top: .22rem;
  font-style: normal; font-size: .7rem;
  color: color-mix(in srgb, var(--lc) 72%, #9bb4c8);
}

.rankx-board {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(10,16,24,.92), rgba(5,9,14,.97));
  box-shadow: 0 28px 64px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
  padding: 1.3rem 1.2rem 1.4rem;
}
.rankx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.rankx-row {
  --lc: #00d4c8;
  display: grid;
  grid-template-columns: 58px 74px minmax(0, 1fr) 104px 118px;
  gap: .95rem;
  align-items: center;
  padding: 1.05rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(110deg, rgba(255,255,255,.04), transparent 48%),
    rgba(0,0,0,.2);
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.rankx-row:hover {
  transform: translateY(-3px) translateX(4px);
  border-color: color-mix(in srgb, var(--lc) 42%, rgba(255,255,255,.08));
  box-shadow: 0 18px 36px rgba(0,0,0,.34), 0 0 26px color-mix(in srgb, var(--lc) 14%, transparent);
}
.rankx-row.is-podium-1 {
  border-color: rgba(255,193,74,.45);
  background: linear-gradient(110deg, rgba(255,193,74,.18), transparent 55%), rgba(0,0,0,.22);
  box-shadow: 0 0 36px rgba(255,193,74,.12), 0 16px 34px rgba(0,0,0,.3);
}
.rankx-row.is-podium-2 {
  border-color: rgba(190,210,230,.32);
  background: linear-gradient(110deg, rgba(190,210,230,.13), transparent 55%), rgba(0,0,0,.2);
}
.rankx-row.is-podium-3 {
  border-color: rgba(205,127,70,.38);
  background: linear-gradient(110deg, rgba(205,127,70,.15), transparent 55%), rgba(0,0,0,.2);
}
.rankx-row__rank b {
  font-family: var(--font-d);
  font-weight: 800; font-size: 1.2rem;
  color: #ff6a3d; letter-spacing: .04em;
}
.rankx-row.is-podium-1 .rankx-row__rank b { color: #ffc14a; text-shadow: 0 0 18px rgba(255,193,74,.45); }
.rankx-row.is-podium-2 .rankx-row__rank b { color: #d7e6f2; }
.rankx-row.is-podium-3 .rankx-row__rank b { color: #e0a06a; }
.rankx-row__medal {
  position: relative;
  width: 68px; height: 68px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 28%, color-mix(in srgb, var(--lc) 28%, transparent), rgba(0,0,0,.42));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lc) 32%, transparent), 0 10px 20px rgba(0,0,0,.38);
}
.rankx-row__halo {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--lc) 38%, transparent);
  opacity: .75; pointer-events: none;
}
.rankx-row__medal img {
  width: 56px; height: 56px; object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.5));
  transition: transform .25s ease;
}
.rankx-row:hover .rankx-row__medal img { transform: scale(1.1) rotate(-6deg); }
.rankx-row__main strong { display: block; font-size: 1.08rem; }
.rankx-row__main em {
  font-style: normal; font-size: .84rem;
  color: color-mix(in srgb, var(--lc) 55%, #9bb4c8);
}
.rankx-row__elo,
.rankx-row__wl { display: grid; gap: .18rem; justify-items: end; text-align: right; }
.rankx-row__elo em,
.rankx-row__wl em {
  font-style: normal; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(170,195,215,.65);
}
.rankx-row__elo strong {
  font-size: 1.3rem; color: #00e8dc;
  text-shadow: 0 0 18px rgba(0,240,224,.3);
}
.rankx-row__wl strong {
  font-size: .95rem; color: rgba(210,225,235,.9);
  font-variant-numeric: tabular-nums;
}
.rankx-empty {
  padding: 2rem 1rem; text-align: center;
  color: rgba(180,200,220,.75);
  border: 1px dashed rgba(255,255,255,.12); border-radius: 14px;
}

@media (max-width: 1100px) {
  .rankx-leagues__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rankx-hero { grid-template-columns: auto 1fr; }
  .rankx-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 720px) {
  .rankx-leagues__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rankx-hero { grid-template-columns: 1fr; }
  .rankx-hero__badge { margin: 0 auto; }
  .rankx-hero__copy { text-align: center; }
  .rankx-hero__kicker, .rankx-hero__chips { justify-content: center; }
  .rankx-actions { width: 100%; }
  .rankx-cta { flex: 1 1 auto; min-width: 0; }
  .rankx-row {
    grid-template-columns: 44px 58px minmax(0, 1fr);
    grid-template-areas: 'rank medal main' 'elo elo wl';
    gap: .55rem .7rem;
  }
  .rankx-row__rank { grid-area: rank; }
  .rankx-row__medal { grid-area: medal; width: 58px; height: 58px; }
  .rankx-row__medal img { width: 48px; height: 48px; }
  .rankx-row__main { grid-area: main; }
  .rankx-row__elo { grid-area: elo; justify-items: start; text-align: left; }
  .rankx-row__wl { grid-area: wl; }
}

/* —— Online Ranked prestige strip —— */
.opsx-rankstrip {
  --c: #00f0e0;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.35fr) auto;
  grid-template-areas:
    'badge id stats actions'
    'badge progress progress actions';
  gap: 1.05rem 1.3rem;
  align-items: center;
  margin: 0 0 1.05rem;
  padding: 1.25rem 1.35rem 1.3rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  border: 1px solid rgba(0,240,224,.42);
  box-shadow:
    0 22px 52px rgba(0,0,0,.48),
    0 0 40px rgba(0,240,224,.12),
    inset 0 1px 0 rgba(255,255,255,.06);
  color: #e8f4fa;
}
.opsx-rankstrip__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 32%;
  opacity: .34; z-index: 0;
  transform: scale(1.06);
  filter: saturate(1.2) contrast(1.06);
}
.opsx-rankstrip__veil {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(3,8,14,.97) 0%, rgba(5,14,22,.86) 48%, rgba(4,12,18,.76) 100%),
    radial-gradient(circle at 8% 45%, rgba(0,240,224,.24), transparent 42%),
    radial-gradient(circle at 90% 15%, rgba(255,193,74,.12), transparent 38%);
}
.opsx-rankstrip__glow {
  position: absolute; right: -14%; top: -48%;
  width: 48%; height: 160%;
  background: radial-gradient(circle, rgba(0,240,224,.2), transparent 68%);
  z-index: 0; pointer-events: none;
}
.opsx-rankstrip__scan {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,240,224,.06), transparent);
  background-size: 100% 220%;
  animation: opsxScan 5.5s linear infinite;
  opacity: .55;
}
@keyframes opsxScan {
  from { background-position: 0 -40%; }
  to { background-position: 0 140%; }
}
.opsx-rankstrip__badge {
  grid-area: badge;
  position: relative;
  width: 128px; height: 128px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  animation: opsxRankBadgeFloat 5.2s ease-in-out infinite;
}
@keyframes opsxRankBadgeFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
.opsx-rankstrip__plate {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(0,240,224,.32), transparent 50%),
    radial-gradient(circle at 50% 55%, #121a24 0%, #05080e 75%);
  box-shadow:
    0 18px 40px rgba(0,0,0,.55),
    inset 0 0 0 2px rgba(0,240,224,.38),
    inset 0 -16px 30px rgba(0,0,0,.5),
    0 0 32px rgba(0,240,224,.2);
}
.opsx-rankstrip__badge img {
  position: relative; z-index: 2;
  width: 96px; height: 96px; display: block; object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(0,240,224,.3));
}
.opsx-rankstrip__ring {
  position: absolute; inset: -7px; z-index: 1;
  border-radius: 50%;
  border: 1px solid rgba(0,240,224,.45);
  box-shadow: 0 0 0 7px rgba(0,240,224,.07), inset 0 0 24px rgba(0,240,224,.15);
  pointer-events: none;
  animation: opsxRankStripPulse 3.2s ease-in-out infinite;
}
@keyframes opsxRankStripPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.opsx-rankstrip__spark {
  position: absolute; inset: 18%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,240,224,.35), transparent 70%);
  animation: rankxPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.opsx-rankstrip__badge,
.opsx-rankstrip__id,
.opsx-rankstrip__stats,
.opsx-rankstrip__progress,
.opsx-rankstrip__actions { position: relative; z-index: 1; }
.opsx-rankstrip__id { grid-area: id; min-width: 0; }
.opsx-rankstrip__kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 0 .25rem; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: #00e0d4; font-weight: 700;
}
.opsx-rankstrip__kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00f0e0; box-shadow: 0 0 10px #00f0e0;
  animation: rankxPulse 1.8s ease-in-out infinite;
}
.opsx-rankstrip__id h2 {
  margin: 0; font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  letter-spacing: .02em; line-height: 1.08;
  text-shadow: 0 10px 28px rgba(0,0,0,.4);
}
.opsx-rankstrip__lead {
  margin: .45rem 0 0;
  color: rgba(190,210,225,.8);
  font-size: .9rem;
  line-height: 1.45;
  max-width: 34rem;
}
.opsx-rankstrip__pilot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .7rem;
  margin: .7rem 0 0;
}
.opsx-rankstrip__pilot strong { font-size: 1.02rem; }
.opsx-rankstrip__pilot em {
  font-style: normal; font-size: .76rem; letter-spacing: .08em;
  text-transform: uppercase; color: #ffc14a;
  padding: .22rem .55rem; border-radius: 999px;
  border: 1px solid rgba(255,193,74,.4);
  background: rgba(255,193,74,.1);
  box-shadow: 0 0 16px rgba(255,193,74,.12);
}
.opsx-rankstrip__stats {
  grid-area: stats;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem;
}
.opsx-rankstrip__stats li {
  padding: .65rem .7rem;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(0,0,0,.28));
  border-radius: 14px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease;
}
.opsx-rankstrip__stats li:hover {
  transform: translateY(-2px);
  border-color: rgba(0,240,224,.28);
}
.opsx-rankstrip__stats em {
  display: block; margin: 0 0 .18rem;
  font-style: normal; font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(170,195,215,.72);
}
.opsx-rankstrip__stats strong {
  display: block; font-size: 1.22rem; line-height: 1.15; color: #fff;
}
.opsx-rankstrip__stats strong span { color: rgba(180,200,220,.55); font-weight: 600; font-size: .85em; }
.opsx-rankstrip__stats strong.is-inf { color: #00f0e0; text-shadow: 0 0 14px rgba(0,240,224,.35); }
.opsx-rankstrip__stats small {
  display: block; margin-top: .22rem;
  font-size: .68rem; color: rgba(170,195,215,.72);
}
.opsx-rankstrip__quota {
  border-color: rgba(255,193,74,.32) !important;
  background: linear-gradient(165deg, rgba(255,193,74,.12), rgba(0,0,0,.28)) !important;
}
.opsx-rankstrip__progress { grid-area: progress; min-width: 0; }
.opsx-rankstrip__bartrack {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .65rem;
  align-items: center;
}
.opsx-rankstrip__bar {
  height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}
.opsx-rankstrip__bar > span {
  display: block; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00d4c8, #5ffff3 45%, #ffc14a);
  box-shadow: 0 0 16px rgba(0,240,224,.4);
  position: relative;
  overflow: hidden;
}
.opsx-rankstrip__bar > span::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: opsxBarShine 2.2s ease-in-out infinite;
}
@keyframes opsxBarShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.opsx-rankstrip__pct {
  font-size: .78rem; color: #00e0d4; font-weight: 800;
  letter-spacing: .04em;
}
.opsx-rankstrip__progress p {
  margin: .5rem 0 0; font-size: .8rem; color: rgba(190,210,225,.78);
}
.opsx-rankstrip__progress b { color: #ffc14a; font-weight: 700; }
.opsx-rankstrip__actions {
  grid-area: actions;
  display: flex; flex-direction: column; gap: .55rem;
  align-self: center;
}
.opsx-rankstrip__cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; min-width: 12rem;
  padding: .65rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.opsx-rankstrip__cta strong {
  position: relative; z-index: 1;
  font-family: var(--font-d);
  font-size: .62rem;
  letter-spacing: .12em;
}
.opsx-rankstrip__cta svg { position: relative; z-index: 1; flex-shrink: 0; }
.opsx-rankstrip__cta--go {
  border-color: rgba(0,240,224,.55);
  color: #031016;
  background: linear-gradient(165deg, #5ffff3, #00c8d0 55%, #008fa0);
  box-shadow: 0 12px 28px rgba(0,240,224,.25), inset 0 1px 0 rgba(255,255,255,.4);
}
.opsx-rankstrip__cta--go strong { color: #031016; }
.opsx-rankstrip__cta--go:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(0,240,224,.35);
}
.opsx-rankstrip__cta-shine {
  position: absolute; inset: -40% -20%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%);
  animation: rankxCtaShine 2.8s ease-in-out infinite;
  pointer-events: none;
}
.opsx-rankstrip__cta--rank {
  border-color: rgba(255,193,74,.35);
  color: #ffc14a;
  background: linear-gradient(165deg, rgba(255,193,74,.12), rgba(0,0,0,.25));
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.opsx-rankstrip__cta--rank strong { color: #ffd27a; }
.opsx-rankstrip__cta--rank:hover {
  transform: translateY(-2px);
  border-color: rgba(255,193,74,.55);
  background: rgba(255,193,74,.16);
}

.opsx-missions--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
@media (max-width: 1100px) {
  .opsx-rankstrip {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'badge id'
      'stats stats'
      'progress progress'
      'actions actions';
  }
  .opsx-rankstrip__actions { flex-direction: row; flex-wrap: wrap; }
  .opsx-rankstrip__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opsx-missions--trio { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
  .opsx-rankstrip {
    grid-template-columns: 1fr;
    grid-template-areas: 'badge' 'id' 'stats' 'progress' 'actions';
    text-align: center; justify-items: center;
  }
  .opsx-rankstrip__pilot { justify-content: center; }
  .opsx-rankstrip__actions { width: 100%; }
  .opsx-rankstrip__cta { width: 100%; min-width: 0; }
  .opsx-missions--trio { grid-template-columns: 1fr !important; }
}

/* Force ranked strip full-width + 3 mission cards */
body.app-shell.lobby-page .opsx-theater-panel,
.opsx-theater-panel {
  display: block !important;
  width: min(1100px, 100%) !important;
}
body.app-shell.lobby-page .opsx-rankstrip,
.opsx-rankstrip {
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-column: 1 / -1 !important;
  margin: 0 0 1rem !important;
  box-sizing: border-box !important;
  border-radius: 24px !important;
}
body.app-shell .opsx-missions.opsx-missions--trio,
.opsx-missions.opsx-missions--trio {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: .75rem !important;
  width: 100% !important;
}
@media (max-width: 980px) {
  body.app-shell .opsx-missions.opsx-missions--trio,
  .opsx-missions.opsx-missions--trio {
    grid-template-columns: 1fr !important;
  }
  body.app-shell.lobby-page .opsx-rankstrip,
  .opsx-rankstrip {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      'badge'
      'id'
      'stats'
      'progress'
      'actions' !important;
    justify-items: center !important;
    text-align: center !important;
  }
}



/* ============================================================
   RANKED UI KILL-SWITCH v220 — rounded + popup + force overrides
   ============================================================ */
body.app-shell .opsx-rankstrip,
body.app-shell.lobby-page .opsx-rankstrip,
.opsx-rankstrip {
  overflow: hidden !important;
  border-radius: 28px !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  border: 1px solid rgba(0,240,224,.45) !important;
  box-shadow:
    0 24px 56px rgba(0,0,0,.5),
    0 0 42px rgba(0,240,224,.14),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

body.app-shell .opsx-rankstrip__stats li,
.opsx-rankstrip__stats li {
  border-radius: 16px !important;
  clip-path: none !important;
  padding: .75rem .8rem !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background:
    linear-gradient(160deg, rgba(255,255,255,.07), rgba(0,0,0,.32)) !important;
  box-shadow:
    0 10px 22px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  transform: translateZ(0);
}

body.app-shell .opsx-rankstrip__stats li:nth-child(1) { border-color: rgba(0,240,224,.28) !important; }
body.app-shell .opsx-rankstrip__stats li:nth-child(2) { border-color: rgba(58,160,255,.28) !important; }
body.app-shell .opsx-rankstrip__stats li:nth-child(3) { border-color: rgba(93,255,176,.25) !important; }
body.app-shell .opsx-rankstrip__quota {
  border-color: rgba(255,193,74,.4) !important;
  background: linear-gradient(160deg, rgba(255,193,74,.16), rgba(0,0,0,.3)) !important;
}

body.app-shell .opsx-rankstrip__bar,
.opsx-rankstrip__bar {
  height: 12px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.1) !important;
}
body.app-shell .opsx-rankstrip__bar > span,
.opsx-rankstrip__bar > span {
  border-radius: inherit !important;
  background: linear-gradient(90deg, #00d4c8, #7af8ef 40%, #ffc14a) !important;
}

body.app-shell .opsx-rankstrip__cta,
.opsx-rankstrip__cta {
  border-radius: 14px !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}

/* Ranking CTAs + cards */
body.app-shell.ranking-page .rankx-cta,
.rankx-cta {
  border-radius: 14px !important;
  clip-path: none !important;
}
body.app-shell.ranking-page .rankx-league,
.rankx-league {
  border-radius: 20px !important;
  clip-path: none !important;
  overflow: hidden !important;
}
body.app-shell.ranking-page .rankx-row,
.rankx-row {
  border-radius: 18px !important;
  clip-path: none !important;
}
body.app-shell.ranking-page .rankx-hero,
.rankx-hero {
  border-radius: 24px !important;
  clip-path: none !important;
  overflow: hidden !important;
}
body.app-shell.ranking-page .rankx-board,
.rankx-board {
  border-radius: 24px !important;
  clip-path: none !important;
}

/* Queue popup — full redesign overrides */
dialog.rq-panel,
.rq-panel {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  z-index: 2147483000 !important;
}
dialog.rq-panel[open],
.rq-panel.is-open {
  display: grid !important;
  place-items: center !important;
}
.rq-panel::backdrop {
  background: rgba(2, 6, 12, .82) !important;
  backdrop-filter: blur(8px) !important;
}
.rq-panel__veil {
  position: fixed !important;
  inset: 0 !important;
  background: radial-gradient(ellipse at center, rgba(0,240,224,.08), rgba(2,6,12,.72)) !important;
  z-index: 0 !important;
}
.rq-panel__card {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 2 !important;
  width: min(560px, 92vw) !important;
  max-height: min(86vh, 720px) !important;
  margin: 0 !important;
  padding: 1.35rem 1.4rem 1.45rem !important;
  border-radius: 24px !important;
  overflow: auto !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  border: 1px solid rgba(0,240,224,.38) !important;
  background:
    linear-gradient(165deg, rgba(12,22,34,.98), rgba(6,10,16,.99)) !important;
  box-shadow:
    0 32px 80px rgba(0,0,0,.55),
    0 0 48px rgba(0,240,224,.12),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  color: #d7e6f2 !important;
}
.rq-panel__aurora {
  position: absolute; inset: -20% -10% auto;
  height: 55%;
  background:
    radial-gradient(circle at 20% 40%, rgba(0,240,224,.22), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,193,74,.14), transparent 45%);
  filter: blur(20px);
  pointer-events: none; z-index: 0;
  animation: rqAurora 6s ease-in-out infinite alternate;
}
@keyframes rqAurora {
  from { transform: translateY(0) scale(1); opacity: .7; }
  to { transform: translateY(12px) scale(1.05); opacity: 1; }
}
.rq-panel__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .18;
  background-image:
    linear-gradient(rgba(120,160,190,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,160,190,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.rq-panel__head,
.rq-panel__you,
.rq-panel__status,
.rq-panel__timer,
.rq-panel__empty,
.rq-panel__list,
.rq-panel__foot,
.rq-panel__pulse { position: relative; z-index: 1; }

.rq-panel__head {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: .35rem;
}
.rq-panel__kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: #00d4c8; font-weight: 700;
}
.rq-panel__kicker i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #00f0e0; box-shadow: 0 0 10px #00f0e0;
  animation: rankxPulse 1.6s ease-in-out infinite;
}
.rq-panel__head h2 {
  margin: .35rem 0 0; font-size: 1.45rem; letter-spacing: .02em;
}
.rq-panel__sub {
  margin: .35rem 0 0; font-size: .85rem; color: rgba(180,205,220,.72);
}
.rq-panel__x {
  width: 40px; height: 40px; border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.04) !important;
  color: #9bb0c4 !important;
  display: grid; place-items: center;
  cursor: pointer;
  clip-path: none !important;
  transition: .15s ease;
}
.rq-panel__x:hover {
  color: #fff !important;
  border-color: rgba(255,77,42,.4) !important;
  background: rgba(255,77,42,.12) !important;
}

.rq-panel__you {
  display: flex; align-items: center; gap: .9rem;
  margin: 1.05rem 0 .85rem;
  padding: .85rem .9rem;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background: linear-gradient(120deg, rgba(0,240,224,.08), rgba(255,255,255,.03)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.25) !important;
  clip-path: none !important;
}
.rq-panel__medal {
  position: relative; width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, rgba(0,240,224,.25), rgba(0,0,0,.4));
  box-shadow: 0 10px 20px rgba(0,0,0,.4), inset 0 0 0 1px rgba(0,240,224,.3);
}
.rq-panel__medal img {
  width: 54px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
}
.rq-panel__medal-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(0,240,224,.4);
  animation: opsxRankStripPulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
.rq-panel__you-copy { min-width: 0; flex: 1; }
.rq-panel__you-copy strong { display: block; font-size: 1.05rem; }
.rq-panel__you-copy em {
  display: block; margin-top: .15rem;
  font-style: normal; font-size: .82rem; color: rgba(180,200,220,.75);
}
.rq-panel__live {
  display: grid; justify-items: end; gap: .1rem;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #00d4c8; font-weight: 700;
}
.rq-panel__live b { font-size: 1.35rem; line-height: 1; color: #5ffff3; }
.rq-panel__live small { font-size: .62rem; color: rgba(170,195,215,.7); letter-spacing: .1em; }

.rq-panel__pulse {
  display: flex; gap: .45rem; justify-content: center; margin: .35rem 0 .75rem;
}
.rq-panel__pulse span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #00f0e0; box-shadow: 0 0 10px #00f0e0;
  animation: rqDot 1.2s ease-in-out infinite;
}
.rq-panel__pulse span:nth-child(2) { animation-delay: .15s; }
.rq-panel__pulse span:nth-child(3) { animation-delay: .3s; }
@keyframes rqDot {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.rq-panel__status { margin: 0 0 .3rem; color: rgba(200,220,235,.88); }
.rq-panel__timer { margin: 0 0 .75rem; font-size: .82rem; color: #ffc14a; min-height: 1.1em; }
.rq-panel__empty {
  margin: 0 0 .85rem; padding: .9rem 1rem;
  border-radius: 14px !important;
  border: 1px dashed rgba(0,240,224,.28) !important;
  background: rgba(0,240,224,.05) !important;
  color: rgba(190,210,225,.8);
  clip-path: none !important;
}
.rq-panel__empty[hidden] { display: none !important; }
.rq-panel__list {
  list-style: none; margin: 0; padding: 0;
  max-height: 220px; overflow: auto;
  display: grid; gap: .45rem;
}
.rq-player {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .75rem;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  clip-path: none !important;
}
.rq-player.is-self { background: rgba(0,212,200,.08); border-color: rgba(0,240,224,.25); }

.rq-panel__foot {
  display: flex; gap: .65rem; margin-top: 1.1rem; flex-wrap: wrap;
}
.rq-cta {
  position: relative;
  flex: 1 1 180px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.1rem;
  border-radius: 14px !important;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.rq-cta strong {
  position: relative; z-index: 1;
  font-family: var(--font-d);
  font-size: .64rem;
  letter-spacing: .12em;
}
.rq-cta svg { position: relative; z-index: 1; }
.rq-cta--go {
  border-color: rgba(0,240,224,.55);
  color: #031016;
  background: linear-gradient(165deg, #5ffff3, #00c8d0 55%, #008fa0);
  box-shadow: 0 14px 30px rgba(0,240,224,.28), inset 0 1px 0 rgba(255,255,255,.4);
}
.rq-cta--go strong { color: #031016; }
.rq-cta--go:hover { transform: translateY(-2px); filter: brightness(1.05); }
.rq-cta__shine {
  position: absolute; inset: -40% -20%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%);
  animation: rankxCtaShine 2.6s ease-in-out infinite;
  pointer-events: none;
}
.rq-cta--stop {
  border-color: rgba(255,77,42,.45);
  color: #ffb39f;
  background: linear-gradient(165deg, rgba(255,77,42,.16), rgba(0,0,0,.28));
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
}
.rq-cta--stop strong { color: #ffc4b4; }
.rq-cta--stop:hover {
  transform: translateY(-2px);
  border-color: rgba(255,77,42,.65);
  background: rgba(255,77,42,.2);
}
.rq-cta[hidden] { display: none !important; }

/* ============================================================
   RANKED CYBER v222 — card, fila, ranking
   ============================================================ */
body.app-shell .opsx-rankstrip,
body.app-shell.lobby-page .opsx-rankstrip,
.opsx-rankstrip {
  --lc: #00f0e0;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) 228px !important;
  grid-template-areas:
    "badge id actions"
    "stats stats actions"
    "progress progress progress" !important;
  gap: .7rem .85rem !important;
  align-items: center !important;
  padding: .95rem 1rem 1rem !important;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, var(--lc) 42%, rgba(255,255,255,.08)) !important;
  background: #060910 !important;
  box-shadow:
    0 18px 40px rgba(0,0,0,.45),
    0 0 0 1px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  text-align: left !important;
}
.opsx-rankstrip__mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .45;
  background-image:
    linear-gradient(rgba(0,240,224,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,77,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 80%, transparent);
}
.opsx-rankstrip__tick {
  position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none;
  border-color: #7af8ef; border-style: solid;
}
.opsx-rankstrip__tick--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.opsx-rankstrip__tick--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; border-color: #e14dff; }
.opsx-rankstrip__tick--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.opsx-rankstrip__tick--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-color: #ffc14a; }
.opsx-rankstrip__badge { width: 104px !important; height: 104px !important; }
.opsx-rankstrip__badge img { width: 78px !important; height: 78px !important; }
.opsx-rankstrip__id h2 {
  font-size: clamp(1.25rem, 2vw, 1.6rem) !important;
  text-shadow: none !important;
  background: linear-gradient(100deg, #fff, #7af8ef 55%, #e14dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.opsx-rankstrip__tags {
  display: flex; flex-wrap: wrap; gap: .28rem;
  list-style: none; margin: .4rem 0 0; padding: 0;
}
.opsx-rankstrip__tags li {
  font-family: var(--font-d);
  font-size: .48rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .18rem .42rem;
  color: #d7f7ff;
  border: 1px solid rgba(122,248,239,.28);
  background: rgba(0,240,224,.06);
}
.opsx-rankstrip__tags li:nth-child(2) { color: #ffd7a8; border-color: rgba(255,193,74,.35); background: rgba(255,193,74,.08); }
.opsx-rankstrip__tags li:nth-child(3) { color: #c9d4ff; border-color: rgba(74,125,255,.4); background: rgba(74,125,255,.1); }
.opsx-rankstrip__tags li:nth-child(4) { color: #f3c8ff; border-color: rgba(225,77,255,.4); background: rgba(225,77,255,.1); }
.opsx-rankstrip__pilot { margin-top: .45rem !important; }
.opsx-rankstrip__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: .45rem !important;
}
body.app-shell .opsx-rankstrip__stats li.opsx-stat,
.opsx-rankstrip__stats li.opsx-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico label" "ico value" "ico meta";
  align-content: center;
  column-gap: .45rem;
  min-width: 0;
  min-height: 74px;
  padding: .55rem .6rem .55rem .55rem !important;
  border-radius: 12px !important;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(8,12,18,.72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.opsx-stat::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  background: var(--sc, #00f0e0);
  box-shadow: 0 0 10px var(--sc, #00f0e0);
}
.opsx-stat::after {
  content: "";
  position: absolute; right: 0; bottom: 0; width: 42%; height: 18px; opacity: .35;
  background: repeating-linear-gradient(90deg, var(--sc, #00f0e0) 0 2px, transparent 2px 7px);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.opsx-stat__ico {
  grid-area: ico;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: var(--sc, #00f0e0);
  border: 1px solid color-mix(in srgb, var(--sc, #00f0e0) 45%, transparent);
  background: color-mix(in srgb, var(--sc, #00f0e0) 12%, transparent);
  align-self: center;
}
.opsx-stat em { grid-area: label; }
.opsx-stat strong { grid-area: value; color: var(--sc, #fff) !important; font-size: 1.15rem !important; }
.opsx-stat small { grid-area: meta; color: color-mix(in srgb, var(--sc, #9bb) 70%, #fff) !important; }
.opsx-stat--elo { --sc: #5ffff3; border-color: rgba(0,240,224,.35) !important; background: linear-gradient(160deg, rgba(0,240,224,.16), rgba(4,10,16,.8)) !important; }
.opsx-stat--lvl { --sc: #7aa2ff; border-color: rgba(74,125,255,.4) !important; background: linear-gradient(160deg, rgba(74,125,255,.18), rgba(4,10,16,.8)) !important; }
.opsx-stat--wl { --sc: #5dffb0; border-color: rgba(61,207,122,.4) !important; background: linear-gradient(160deg, rgba(61,207,122,.16), rgba(4,10,16,.8)) !important; }
.opsx-stat--wl::after {
  background: repeating-linear-gradient(-45deg, #5dffb0 0 2px, transparent 2px 6px);
}
.opsx-stat--quota { --sc: #ffc14a; border-color: rgba(255,77,154,.45) !important; background: linear-gradient(145deg, rgba(255,193,74,.2), rgba(225,77,255,.12) 55%, rgba(4,10,16,.82)) !important; }
.opsx-stat--quota strong.is-inf { color: #ffe08a !important; text-shadow: 0 0 12px rgba(255,193,74,.45); }
.opsx-rankstrip__progress { grid-area: progress; }
.opsx-next {
  --nc: #3dcf7a;
  display: grid;
  grid-template-columns: auto minmax(88px, auto) minmax(0, 1fr) auto;
  gap: .65rem .75rem;
  align-items: center;
  min-width: 0;
  padding: .45rem .7rem .45rem .45rem;
  border: 1px solid color-mix(in srgb, var(--nc) 45%, transparent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nc) 16%, transparent), transparent 42%),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px),
    rgba(5,8,14,.72);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), 0 0 18px color-mix(in srgb, var(--nc) 12%, transparent);
}
.opsx-next__medal {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--nc) 35%, #111), #070b12 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nc) 55%, transparent), 0 0 16px color-mix(in srgb, var(--nc) 25%, transparent);
}
.opsx-next__medal img { width: 36px; height: 36px; object-fit: contain; }
.opsx-next__copy { min-width: 0; }
.opsx-next__copy em {
  display: block; font-style: normal;
  font-family: var(--font-d); font-size: .48rem; letter-spacing: .14em;
  text-transform: uppercase; color: color-mix(in srgb, var(--nc) 75%, #fff);
}
.opsx-next__copy strong { display: block; font-size: .98rem; color: #fff; }
.opsx-next__track { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; min-width: 0; }
.opsx-next__track b { font-size: .72rem; color: var(--nc); }
.opsx-next__gap {
  font-family: var(--font-d); font-size: .58rem; letter-spacing: .08em;
  color: #041016; white-space: nowrap;
  padding: .38rem .55rem;
  background: linear-gradient(120deg, var(--nc), #fff 160%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--nc) 35%, transparent);
}
.opsx-next--max {
  grid-template-columns: 1fr;
  justify-items: start;
}
.opsx-rankstrip__actions {
  align-self: stretch !important;
  justify-content: center;
  gap: .45rem !important;
}
body.app-shell .opsx-rankstrip__cta,
.opsx-rankstrip__cta {
  position: relative;
  width: 100%;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: .45rem .7rem !important;
  justify-content: flex-start !important;
  gap: .55rem !important;
  border: 0 !important;
  border-radius: 8px !important;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}
.opsx-rankstrip__cta-ico {
  position: relative; z-index: 1;
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,.28);
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.opsx-rankstrip__cta-txt { position: relative; z-index: 1; display: grid; min-width: 0; text-align: left; }
.opsx-rankstrip__cta-txt em {
  font-style: normal; font-family: var(--font-d);
  font-size: .42rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8;
}
.opsx-rankstrip__cta-txt strong,
.opsx-rankstrip__cta strong {
  font-size: .58rem !important; letter-spacing: .06em !important; color: inherit !important;
  white-space: nowrap;
}
.opsx-rankstrip__cta--go {
  color: #041018 !important;
  background: linear-gradient(115deg, #5ffff3 0%, #3d7dff 48%, #e14dff 100%) !important;
  background-size: 180% 180% !important;
  animation: cyberShift 5s ease infinite;
  box-shadow: 0 10px 24px rgba(61,125,255,.35), 0 0 18px rgba(0,240,224,.25) !important;
}
.opsx-rankstrip__cta--rank {
  color: #1a0c04 !important;
  background: linear-gradient(115deg, #ffe08a 0%, #ff7a2a 46%, #ff4d9a 100%) !important;
  background-size: 180% 180% !important;
  animation: cyberShift 5.6s ease infinite;
  box-shadow: 0 10px 24px rgba(255,77,42,.28), 0 0 16px rgba(255,193,74,.2) !important;
}
.opsx-rankstrip__cta--go strong,
.opsx-rankstrip__cta--rank strong { color: inherit !important; }
.opsx-rankstrip__cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
@keyframes cyberShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 980px) {
  body.app-shell.lobby-page .opsx-rankstrip,
  .opsx-rankstrip {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badge"
      "id"
      "stats"
      "progress"
      "actions" !important;
    justify-items: stretch !important;
    text-align: left !important;
  }
  .opsx-rankstrip__badge { margin: 0 auto; }
  .opsx-rankstrip__stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .opsx-rankstrip__actions { flex-direction: row !important; }
  .opsx-next { grid-template-columns: auto 1fr; }
  .opsx-next__track, .opsx-next__gap { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .opsx-rankstrip__actions { flex-direction: column !important; }
}

/* Fila ranked — sem scroll horizontal, fundo tech, X vermelho */
html:has(.rq-panel.is-open),
body.ranked-queue-open {
  overflow: hidden !important;
  overflow-x: hidden !important;
}
dialog.rq-panel,
.rq-panel {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.rq-panel__card {
  width: min(460px, calc(100% - 1.25rem)) !important;
  max-width: calc(100% - 1.25rem) !important;
  max-height: min(84vh, 680px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  padding: 1.05rem 1.05rem 1.1rem !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0,240,224,.32) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,240,224,.14), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(225,77,255,.12), transparent 40%),
    linear-gradient(165deg, #0c1420, #070b12 60%) !important;
}
.rq-panel__card > * { max-width: 100%; min-width: 0; }
.rq-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.rq-fx__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(0,240,224,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,77,255,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
}
.rq-fx__scan {
  position: absolute; left: 0; right: 0; height: 28%;
  background: linear-gradient(180deg, transparent, rgba(0,240,224,.14), transparent);
  animation: rqScan 3.8s linear infinite;
}
@keyframes rqScan {
  from { top: -30%; }
  to { top: 110%; }
}
.rq-fx__hex {
  position: absolute; width: 54px; height: 54px; opacity: .55;
  background: linear-gradient(160deg, rgba(0,240,224,.22), transparent 68%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.rq-fx__hex--a { right: -8px; top: 38%; animation: rqFloat 7s ease-in-out infinite; }
.rq-fx__hex--b { left: -16px; bottom: 18%; width: 36px; height: 36px; border-color: rgba(225,77,255,.4); animation: rqFloat 9s ease-in-out infinite reverse; }
.rq-fx__node {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #5ffff3; box-shadow: 0 0 10px #00f0e0;
}
.rq-fx__node--a { top: 22%; left: 18%; }
.rq-fx__node--b { top: 64%; right: 14%; background: #e14dff; box-shadow: 0 0 10px #e14dff; }
.rq-fx__node--c { bottom: 12%; left: 42%; background: #ffc14a; box-shadow: 0 0 10px #ffc14a; }
@keyframes rqFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.rq-fx__tick { position: absolute; width: 12px; height: 12px; border-style: solid; border-color: #7af8ef; }
.rq-fx__tick--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.rq-fx__tick--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; border-color: #ff3355; }
.rq-fx__tick--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.rq-fx__tick--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-color: #e14dff; }
.rq-panel__x {
  width: 36px !important; height: 36px !important; flex-shrink: 0;
  border-radius: 8px !important;
  border: 1px solid #ff8a8a !important;
  background: linear-gradient(160deg, #ff4d5a, #c01028) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(255,40,60,.55) !important;
}
.rq-panel__x:hover {
  color: #fff !important;
  background: linear-gradient(160deg, #ff6670, #ff1a35) !important;
  border-color: #ffd0d0 !important;
}
.rq-hunt {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: center;
  margin: .15rem 0 .75rem;
  padding: .7rem .75rem;
  border: 1px solid rgba(0,240,224,.45);
  background:
    linear-gradient(100deg, rgba(0,240,224,.14), rgba(225,77,255,.08)),
    rgba(4,10,16,.8);
  box-shadow: 0 0 24px rgba(0,240,224,.12), inset 0 0 0 1px rgba(0,0,0,.35);
}
.rq-hunt[hidden] { display: none !important; }
.rq-hunt__radar {
  position: relative; width: 58px; height: 58px;
}
.rq-hunt__radar span,
.rq-hunt__radar i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(0,240,224,.55);
}
.rq-hunt__radar span:nth-child(2) { inset: 10px; border-color: rgba(225,77,255,.55); }
.rq-hunt__radar i {
  inset: 22px; border: 0;
  background: #5ffff3;
  box-shadow: 0 0 12px #00f0e0;
  animation: rqDot 1s ease-in-out infinite;
}
.rq-hunt__radar::after {
  content: "";
  position: absolute; inset: 3px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 68%, rgba(95,255,243,.95) 100%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%);
  mask: radial-gradient(circle, transparent 54%, #000 56%);
  animation: rqRadar 1.3s linear infinite;
}
.rq-hunt__radar span { animation: rqRadar 2.4s linear infinite; }
.rq-hunt__radar span:nth-child(2) { animation-duration: 3.2s; animation-direction: reverse; }
@keyframes rqRadar { to { transform: rotate(360deg); } }
.rq-hunt__copy { min-width: 0; }
.rq-hunt__copy em {
  display: block; font-style: normal;
  font-family: var(--font-d); font-size: .48rem; letter-spacing: .16em;
  text-transform: uppercase; color: #5ffff3;
}
.rq-hunt__copy strong { display: block; font-size: 1.05rem; color: #fff; }
.rq-hunt__copy small { display: block; margin-top: .15rem; color: rgba(210,230,240,.78); font-size: .75rem; }
.rq-hunt__clock {
  font-family: var(--font-d); font-size: 1.15rem; letter-spacing: .08em;
  color: #041016; padding: .35rem .45rem;
  background: linear-gradient(120deg, #5ffff3, #7aa2ff);
  box-shadow: 0 0 14px rgba(0,240,224,.35);
}
.rq-panel.is-hunting .rq-panel__pulse { display: none; }
.rq-panel.is-hunting .rq-panel__status { color: #9afcf4; font-size: .82rem; }
.rq-panel__you,
.rq-panel__empty,
.rq-panel__list,
.rq-player { min-width: 0; }
.rq-panel__you-copy em,
.rq-player em,
.rq-panel__sub { overflow-wrap: anywhere; }
.rq-cta {
  border-radius: 8px !important;
  justify-content: flex-start !important;
  padding: .4rem .65rem !important;
  min-height: 54px !important;
}
.rq-cta__ico {
  position: relative; z-index: 1;
  width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0;
  background: rgba(0,0,0,.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.rq-cta__txt { position: relative; z-index: 1; display: grid; text-align: left; }
.rq-cta__txt em {
  font-style: normal; font-family: var(--font-d);
  font-size: .42rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75;
}
.rq-cta--go {
  color: #041018 !important;
  background: linear-gradient(115deg, #5ffff3, #3d7dff 50%, #e14dff) !important;
  background-size: 180% 180% !important;
  animation: cyberShift 5s ease infinite;
}
.rq-cta--go strong { color: #041018 !important; }
.rq-cta--stop {
  color: #fff !important;
  background: linear-gradient(115deg, #ff4d5a, #9a1030) !important;
}
.rq-cta--stop strong { color: #fff !important; }

/* Ranking page — hero, board e ações. Insígnias intactas. */
.rankx__mesh {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(0,240,224,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,77,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}
.rankx__scan {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,240,224,.05), transparent);
  background-size: 100% 240%;
  animation: opsxScan 7s linear infinite;
  opacity: .7;
}
body.app-shell.ranking-page .rankx-hero,
.rankx-hero {
  position: relative;
  border-radius: 16px !important;
  border: 1px solid rgba(0,240,224,.32) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(0,240,224,.16), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(225,77,255,.12), transparent 36%),
    linear-gradient(160deg, rgba(8,14,22,.96), rgba(5,8,14,.98)) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05) !important;
  overflow: hidden;
}
.rankx-hero__tick { position: absolute; width: 14px; height: 14px; border-style: solid; border-color: #7af8ef; z-index: 2; pointer-events: none; }
.rankx-hero__tick--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.rankx-hero__tick--tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; border-color: #e14dff; }
.rankx-hero__tick--bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.rankx-hero__tick--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-color: #ffc14a; }
.rankx-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem) !important;
  text-shadow: none !important;
  background: linear-gradient(100deg, #fff, #7af8ef 60%, #e14dff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rankx-hero__lead { font-size: .88rem !important; max-width: 28rem; }
.rankx-hero__chips li:nth-child(1) { color: #9afcf4; border-color: rgba(0,240,224,.35); background: rgba(0,240,224,.08); }
.rankx-hero__chips li:nth-child(2) { color: #c9d4ff; border-color: rgba(74,125,255,.4); background: rgba(74,125,255,.1); }
.rankx-hero__chips li:nth-child(3) { color: #ffd7a8; border-color: rgba(255,193,74,.4); background: rgba(255,193,74,.1); }
body.app-shell.ranking-page .rankx-cta,
.rankx-cta {
  min-height: 56px !important;
  min-width: 0 !important;
  border-radius: 8px !important;
  border: 0 !important;
  justify-content: flex-start;
  padding: .4rem .75rem !important;
  text-decoration: none;
}
.rankx-cta__txt { position: relative; z-index: 1; display: grid; text-align: left; }
.rankx-cta__txt em {
  font-style: normal; font-family: var(--font-d);
  font-size: .42rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75;
}
.rankx-cta__ico { border-radius: 0 !important; background: rgba(0,0,0,.25) !important; }
.rankx-cta--primary {
  color: #041018 !important;
  background: linear-gradient(115deg, #5ffff3, #3d7dff 50%, #e14dff) !important;
  background-size: 180% 180% !important;
  animation: cyberShift 5s ease infinite;
  box-shadow: 0 12px 26px rgba(61,125,255,.32) !important;
}
.rankx-cta--primary strong,
.rankx-cta--primary .rankx-cta__ico { color: #041018 !important; }
.rankx-cta--ghost {
  color: #1a0c04 !important;
  background: linear-gradient(115deg, #ffe08a, #ff7a2a 50%, #ff4d9a) !important;
  background-size: 180% 180% !important;
  animation: cyberShift 5.6s ease infinite;
}
.rankx-cta--ghost strong,
.rankx-cta--ghost .rankx-cta__ico { color: #1a0c04 !important; }
.rankx-sec h2 {
  font-size: .72rem !important;
  color: #9afcf4 !important;
  letter-spacing: .16em !important;
}
.rankx-sec__tag {
  border-radius: 4px !important;
  color: #ffd27a !important;
  border-color: rgba(255,193,74,.4) !important;
  background: rgba(255,193,74,.08) !important;
}
body.app-shell.ranking-page .rankx-board,
.rankx-board {
  position: relative;
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  background:
    linear-gradient(180deg, rgba(10,16,26,.94), rgba(5,8,14,.98)) !important;
  overflow: hidden;
}
.rankx-board__tick { position: absolute; width: 12px; height: 12px; border-style: solid; pointer-events: none; }
.rankx-board__tick--tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; border-color: #7af8ef; }
.rankx-board__tick--br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; border-color: #e14dff; }
body.app-shell.ranking-page .rankx-row,
.rankx-row {
  position: relative;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--lc) 14%, transparent), transparent 28%),
    rgba(0,0,0,.28) !important;
  overflow: hidden;
}
.rankx-row__edge {
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--lc, #00f0e0);
  box-shadow: 0 0 10px var(--lc, #00f0e0);
}
.rankx-row__rank b {
  display: inline-grid; place-items: center;
  min-width: 2.4rem; height: 2rem;
  font-size: .95rem !important;
  color: #041016 !important;
  background: linear-gradient(120deg, var(--lc, #00f0e0), #fff 180%);
  text-shadow: none !important;
}
.rankx-row.is-podium-1 .rankx-row__rank b { background: linear-gradient(120deg, #ffe08a, #ff9a2a); }
.rankx-row.is-podium-2 .rankx-row__rank b { background: linear-gradient(120deg, #e8f4fa, #8aa0b4); }
.rankx-row.is-podium-3 .rankx-row__rank b { background: linear-gradient(120deg, #f0b48a, #c46a32); }
.rankx-row__elo,
.rankx-row__wl {
  padding: .35rem .5rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.28);
}
.rankx-row__elo { border-color: rgba(0,240,224,.28); }
.rankx-row__wl { border-color: rgba(93,255,176,.25); }
.rankx-row__wl strong { display: flex; gap: .35rem; justify-content: flex-end; }
.rankx-row__wl strong span:first-child { color: #5dffb0; }
.rankx-row__wl strong span:last-child { color: #ff8a7a; }
.rankx-empty {
  border-style: solid !important;
  border-color: rgba(0,240,224,.2) !important;
  background: rgba(0,240,224,.04);
}

/* ============================================================
   MECH BUTTONS + ranking climb v223
   ============================================================ */
.mech-btn {
  --accent: #7af8ef;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 58px;
  padding: .42rem .75rem .5rem .48rem;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, #243040);
  border-radius: 4px;
  text-decoration: none;
  color: #f3fbff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(180deg, #314155 0%, #1a2430 36%, #10161e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -12px 16px rgba(0,0,0,.62),
    0 5px 0 #070b10,
    0 10px 18px rgba(0,0,0,.42),
    0 0 16px color-mix(in srgb, var(--accent) 18%, transparent);
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.mech-btn[hidden] { display: none !important; }
.mech-btn--cyan { --accent: #5ffff3; }
.mech-btn--amber { --accent: #ffc14a; }
.mech-btn--alert { --accent: #ff5a68; }
.mech-btn__bolts,
.mech-btn__face,
.mech-btn__ico,
.mech-btn__txt { position: relative; z-index: 1; }
.mech-btn__bolts {
  position: absolute; inset: 5px; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, #d5dde6 0 1.4px, #3a4450 1.6px 2.4px, transparent 2.6px),
    radial-gradient(circle at 100% 0, #d5dde6 0 1.4px, #3a4450 1.6px 2.4px, transparent 2.6px),
    radial-gradient(circle at 0 100%, #d5dde6 0 1.4px, #3a4450 1.6px 2.4px, transparent 2.6px),
    radial-gradient(circle at 100% 100%, #d5dde6 0 1.4px, #3a4450 1.6px 2.4px, transparent 2.6px);
}
.mech-btn__face {
  position: absolute; left: 1px; right: 1px; top: 1px; height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  pointer-events: none; z-index: 0;
}
.mech-btn__ico {
  width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--accent);
  background: linear-gradient(180deg, #0c1218, #1c2632);
  box-shadow:
    inset 0 3px 5px rgba(0,0,0,.72),
    inset 0 -1px 0 rgba(255,255,255,.14),
    0 0 0 1px color-mix(in srgb, var(--accent) 55%, #000);
}
.mech-btn__txt { display: grid; min-width: 0; text-align: left; }
.mech-btn__txt em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: .42rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.mech-btn__txt strong {
  color: #fff !important;
  font-family: var(--font-d);
  font-size: .62rem;
  letter-spacing: .08em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}
.mech-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -12px 16px rgba(0,0,0,.62),
    0 7px 0 #070b10,
    0 14px 22px rgba(0,0,0,.48),
    0 0 22px color-mix(in srgb, var(--accent) 32%, transparent);
}
.mech-btn:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,.55),
    0 2px 0 #070b10;
}

body.app-shell .opsx-rankstrip,
body.app-shell.lobby-page .opsx-rankstrip,
.opsx-rankstrip {
  grid-template-columns: 104px minmax(0, 1fr) auto !important;
  grid-template-areas:
    "badge id actions"
    "stats stats stats"
    "progress progress progress" !important;
  align-items: center !important;
}
.opsx-dock {
  grid-area: dock;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}
.opsx-dock .opsx-rankstrip__progress,
.opsx-dock .opsx-rankstrip__actions {
  grid-area: auto !important;
  position: relative !important;
}
.opsx-dock .opsx-next { height: 100%; }
.opsx-rankstrip__actions {
  grid-area: actions !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: center !important;
  gap: .45rem !important;
  width: auto !important;
  margin-left: .4rem;
}
.opsx-rankstrip__progress { grid-area: progress !important; width: 100%; }
.opsx-rankstrip__progress { min-width: 0; }
.rq-panel__foot .mech-btn { flex: 1 1 auto; width: 100%; }

.rankx-hero__badge--medal img {
  position: relative; z-index: 1;
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.55));
}
.rankx-you {
  --nc: #3dcf7a;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  margin-top: .75rem;
  padding: .45rem .6rem;
  border: 1px solid color-mix(in srgb, var(--nc) 40%, rgba(255,255,255,.08));
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%),
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(8,14,20,.55));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -8px 12px rgba(0,0,0,.35);
}
.rankx-you__now,
.rankx-you__next { min-width: 0; }
.rankx-you__now em,
.rankx-you__next em {
  display: block; font-style: normal;
  font-family: var(--font-d); font-size: .42rem; letter-spacing: .14em;
  text-transform: uppercase; color: #9afcf4;
}
.rankx-you__next em { color: var(--nc); }
.rankx-you__now strong,
.rankx-you__next strong { display: block; font-size: .95rem; color: #fff; }
.rankx-you__now b,
.rankx-you__next b {
  font-weight: 600; font-size: .72rem; color: rgba(210,225,235,.75);
}
.rankx-you__next { text-align: right; }
.rankx-you__track {
  height: 8px; border-radius: 99px; overflow: hidden;
  background: rgba(0,0,0,.45);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
}
.rankx-you__track span {
  display: block; height: 100%;
  background: linear-gradient(90deg, #00d4c8, var(--nc));
  box-shadow: 0 0 10px color-mix(in srgb, var(--nc) 45%, transparent);
}
.rankx-actions {
  flex-direction: column !important;
  align-items: stretch !important;
  min-width: 210px;
}
.rankx-actions .mech-btn { width: 100%; }

.rankx-league { position: relative; }
.rankx-league__flag {
  position: absolute; top: .42rem; left: .42rem; z-index: 3;
  padding: .1rem .32rem;
  font-family: var(--font-d);
  font-size: .46rem; letter-spacing: .12em; text-transform: uppercase;
  color: #041016;
  background: var(--lc, #5ffff3);
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.rankx-league figcaption small {
  display: block; margin-top: .28rem;
  font-size: .62rem; letter-spacing: .02em;
  color: color-mix(in srgb, var(--lc) 80%, #fff);
}
.rankx-league.is-you {
  transform: translateY(-8px) rotateX(0deg);
  border-color: var(--lc) !important;
  box-shadow:
    0 16px 28px rgba(0,0,0,.45),
    0 0 0 1px color-mix(in srgb, var(--lc) 70%, #fff),
    0 0 26px color-mix(in srgb, var(--lc) 28%, transparent) !important;
  z-index: 3;
}
.rankx-league.is-next {
  border-color: color-mix(in srgb, var(--lc) 70%, #fff) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--lc) 22%, transparent);
}
.rankx-league.is-locked { opacity: .72; }
.rankx-league.is-done figcaption small { color: #8ecfb8; }
.rankx-row.is-self {
  border-color: rgba(95,255,243,.55) !important;
  box-shadow: 0 0 0 1px rgba(95,255,243,.25), 0 0 22px rgba(0,240,224,.16), 0 12px 26px rgba(0,0,0,.28) !important;
}
.rankx-row__main strong i {
  display: inline-block;
  margin-left: .35rem;
  padding: .08rem .32rem;
  font-style: normal;
  font-family: var(--font-d);
  font-size: .46rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #041016;
  background: #5ffff3;
  vertical-align: middle;
  box-shadow: 0 3px 0 rgba(0,0,0,.35);
}

@media (max-width: 980px) {
  body.app-shell.lobby-page .opsx-rankstrip,
  .opsx-rankstrip {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "badge"
      "id"
      "actions"
      "stats"
      "progress" !important;
  }
  .opsx-dock { grid-template-columns: 1fr; }
  .opsx-rankstrip__actions { flex-direction: column !important; width: 100% !important; }
  .opsx-rankstrip__actions .mech-btn { width: 100%; }
  .rankx-actions { min-width: 0; width: 100%; }
  .rankx-you { grid-template-columns: 1fr; }
  .rankx-you__next { text-align: left; }
}

/* Ranking: documento rola; stage não corta a classificação */
html:has(body.app-shell.ranking-page) {
  height: auto !important;
  max-height: none !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
body.app-shell.ranking-page {
  height: auto !important;
  max-height: none !important;
  min-height: 100dvh !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body.app-shell.ranking-page .stage {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
body.app-shell.ranking-page .rankx {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body.app-shell.ranking-page .rankx-hero {
  grid-template-columns: 108px minmax(0, 1fr) auto !important;
  grid-template-areas:
    "badge copy actions"
    "stats stats stats"
    "bar bar bar" !important;
  align-items: center !important;
}
.rankx-hero__mesh {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(0,240,224,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225,77,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.rankx-hero__badge { grid-area: badge; }
.rankx-hero__copy { grid-area: copy; min-width: 0; }
.rankx-actions { grid-area: actions; flex-direction: row !important; align-items: center !important; min-width: 0; }
.rankx-hero__pilot {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem;
  margin: .55rem 0 0;
}
.rankx-hero__pilot strong { font-size: 1rem; }
.rankx-hero__pilot em {
  font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #ffc14a; padding: .16rem .45rem;
  border: 1px solid rgba(255,193,74,.4); background: rgba(255,193,74,.1);
}
.rankx-hero__stats {
  grid-area: stats;
  list-style: none; margin: .15rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem;
}
.rankx-stat {
  min-width: 0; padding: .5rem .6rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(6,10,16,.55);
}
.rankx-stat em {
  display: block; font-style: normal;
  font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(180,205,220,.7);
}
.rankx-stat strong { display: block; font-size: 1.15rem; line-height: 1.1; }
.rankx-stat small { display: block; margin-top: .15rem; font-size: .68rem; color: rgba(180,205,220,.72); }
.rankx-stat--elo { border-color: rgba(0,240,224,.35); }
.rankx-stat--elo strong { color: #5ffff3; }
.rankx-stat--lvl { border-color: rgba(74,125,255,.4); }
.rankx-stat--lvl strong { color: #9eb6ff; }
.rankx-stat--wl { border-color: rgba(93,255,176,.35); }
.rankx-stat--wl strong { color: #5dffb0; }
.rankx-stat--gap { border-color: rgba(255,193,74,.4); background: linear-gradient(160deg, rgba(255,193,74,.12), rgba(6,10,16,.7)); }
.rankx-stat--gap strong { color: #ffd27a; }
.rankx-you {
  grid-area: bar !important;
  grid-template-columns: auto auto minmax(0, 1fr) auto !important;
  margin-top: .65rem !important;
  width: 100%;
}
.rankx-you__medal {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--nc) 40%, #111), #070b12 72%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nc) 55%, transparent);
}
.rankx-you__medal img { width: 32px; height: 32px; object-fit: contain; }
.rankx-you__track {
  height: auto !important; background: none !important; box-shadow: none !important;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center;
}
.rankx-you__track span {
  height: 10px !important; border-radius: 99px;
  background: linear-gradient(90deg, #00d4c8, var(--nc)) !important;
}
.rankx-you__track b { font-size: .75rem; color: var(--nc); }
.rankx-you__gap {
  font-family: var(--font-d); font-size: .58rem; letter-spacing: .06em;
  color: #041016; white-space: nowrap; padding: .38rem .5rem;
  background: linear-gradient(120deg, var(--nc), #fff 160%);
}
.rankx-league.is-you {
  transform: translateY(-10px) scale(1.05) !important;
}
.rankx-league.is-next {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lc) 80%, #fff), 0 0 28px color-mix(in srgb, var(--lc) 35%, transparent) !important;
}
.rankx-league.is-you .rankx-league__flag,
.rankx-league.is-next .rankx-league__flag {
  font-size: .52rem;
  box-shadow: 0 0 12px color-mix(in srgb, var(--lc) 55%, transparent), 0 4px 0 rgba(0,0,0,.35);
}
.rankx-guide {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: .6rem;
  margin-top: .9rem;
}
.rankx-guide__card {
  min-width: 0;
  padding: .75rem .8rem;
  border: 1px solid rgba(0,240,224,.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%),
    rgba(6,10,16,.72);
}
.rankx-guide__card em {
  display: block; font-style: normal;
  font-family: var(--font-d); font-size: .48rem; letter-spacing: .14em;
  text-transform: uppercase; color: #7af8ef;
}
.rankx-guide__card strong { display: block; margin-top: .2rem; font-size: .95rem; }
.rankx-guide__card p { margin: .3rem 0 0; font-size: .78rem; color: rgba(190,210,225,.78); }
.rankx-guide__card--next {
  display: flex; gap: .65rem; align-items: center;
  border-color: color-mix(in srgb, var(--nc) 55%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--nc) 16%, transparent);
}
.rankx-guide__card--next img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.rankx-guide__card--next em { color: var(--nc); }
.rankx-guide__card--path ul {
  list-style: none; margin: .45rem 0 0; padding: 0;
  display: grid; gap: .28rem;
}
.rankx-guide__card--path li {
  display: flex; justify-content: space-between; gap: .4rem;
  font-size: .75rem;
  border-left: 3px solid var(--lc, #7af8ef);
  padding: .15rem 0 .15rem .4rem;
}
.rankx-guide__card--path span { color: rgba(190,210,225,.75); white-space: nowrap; }
@media (max-width: 980px) {
  body.app-shell.ranking-page .rankx-hero {
    grid-template-columns: 1fr !important;
    grid-template-areas: "badge" "copy" "actions" "stats" "bar" !important;
  }
  .rankx-hero__badge { margin: 0 auto; }
  .rankx-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rankx-actions { width: 100%; }
  .rankx-actions .mech-btn { flex: 1; }
  .rankx-you { grid-template-columns: auto 1fr !important; }
  .rankx-you__track, .rankx-you__gap { grid-column: 1 / -1; }
  .rankx-guide { grid-template-columns: 1fr; }
}

/* Stats e rota de ascensão — placas tech */
.rankx-stat {
  position: relative;
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico label" "ico value" "ico meta";
  column-gap: .45rem;
  align-content: center;
  min-height: 76px;
  overflow: hidden;
  padding: .55rem .6rem .55rem .55rem !important;
  border-width: 1px !important;
  background: rgba(8,12,18,.78) !important;
}
.rankx-stat::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  background: var(--sc, #00f0e0);
  box-shadow: 0 0 10px var(--sc, #00f0e0);
}
.rankx-stat::after {
  content: "";
  position: absolute; right: 0; bottom: 0; width: 46%; height: 16px; opacity: .4;
  background: repeating-linear-gradient(90deg, var(--sc, #00f0e0) 0 2px, transparent 2px 7px);
  mask-image: linear-gradient(90deg, transparent, #000);
}
.rankx-stat__ico {
  grid-area: ico;
  width: 28px; height: 28px;
  display: grid; place-items: center; align-self: center;
  color: var(--sc, #5ffff3);
  border: 1px solid color-mix(in srgb, var(--sc, #5ffff3) 50%, transparent);
  background: color-mix(in srgb, var(--sc, #5ffff3) 14%, transparent);
  box-shadow: inset 0 0 8px color-mix(in srgb, var(--sc, #5ffff3) 25%, transparent);
}
.rankx-stat em { grid-area: label; }
.rankx-stat strong { grid-area: value; color: var(--sc, #fff) !important; }
.rankx-stat small { grid-area: meta; color: color-mix(in srgb, var(--sc, #9bb) 70%, #fff) !important; }
.rankx-stat--elo { --sc: #5ffff3; background: linear-gradient(160deg, rgba(0,240,224,.18), rgba(4,10,16,.82)) !important; }
.rankx-stat--lvl { --sc: #7aa2ff; background: linear-gradient(160deg, rgba(74,125,255,.2), rgba(4,10,16,.82)) !important; }
.rankx-stat--wl { --sc: #5dffb0; background: linear-gradient(160deg, rgba(61,207,122,.18), rgba(4,10,16,.82)) !important; }
.rankx-stat--wl::after { background: repeating-linear-gradient(-45deg, #5dffb0 0 2px, transparent 2px 6px); }
.rankx-stat--gap { --sc: #ffc14a; background: linear-gradient(145deg, rgba(255,193,74,.22), rgba(225,77,255,.12) 55%, rgba(4,10,16,.84)) !important; }

.rankx-guide {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: .65rem !important;
  margin-top: .85rem !important;
}
.rankx-mech {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}
.rankx-mech__tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ico label" "ico title" "ico meta";
  column-gap: .65rem;
  align-content: center;
  min-height: 92px;
  padding: .75rem .85rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--sc, #5ffff3) 45%, rgba(255,255,255,.12));
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 38%),
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--sc, #5ffff3) 28%, transparent), transparent 55%),
    linear-gradient(165deg, #243246, #121820 55%, #0a0e14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    inset 0 -14px 18px rgba(0,0,0,.55),
    0 8px 0 #070b10,
    0 16px 24px rgba(0,0,0,.38),
    0 0 18px color-mix(in srgb, var(--sc, #5ffff3) 18%, transparent);
  transform: translateZ(0);
}
.rankx-mech__tile::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,240,224,.16), transparent);
  background-size: 100% 220%;
  animation: opsxScan 3.8s linear infinite;
  opacity: .35;
}
.rankx-mech__ico {
  grid-area: ico;
  width: 42px; height: 42px;
  display: grid; place-items: center; align-self: center;
  border-radius: 14px;
  color: var(--sc, #5ffff3);
  border: 1px solid color-mix(in srgb, var(--sc) 55%, transparent);
  background:
    linear-gradient(180deg, rgba(255,255,255,.2), transparent 40%),
    linear-gradient(160deg, #1a2430, #0b1016);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -6px 8px rgba(0,0,0,.55),
    0 4px 0 rgba(0,0,0,.45),
    0 0 14px color-mix(in srgb, var(--sc) 35%, transparent);
}
.rankx-mech__tile em {
  grid-area: label; position: relative; z-index: 1;
  font-style: normal; font-family: var(--font-d);
  font-size: .46rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sc);
}
.rankx-mech__tile strong { grid-area: title; position: relative; z-index: 1; font-size: .95rem; }
.rankx-mech__tile small { grid-area: meta; position: relative; z-index: 1; font-size: .68rem; color: rgba(190,210,225,.72); }
.rankx-mech__tile--win { --sc: #5dffb0; }
.rankx-mech__tile--loss { --sc: #ff6a6a; }
.rankx-mech__tile--queue { --sc: #5ffff3; }
.rankx-mech__tile:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}
.rankx-route {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .45rem;
}
.rankx-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: .15rem;
  min-width: 0;
  padding: .7rem .35rem .6rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--lc) 35%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--lc) 22%, transparent), transparent 58%),
    rgba(6,10,16,.82);
}
.rankx-step__tick {
  position: absolute; top: 6px; right: 6px; width: 8px; height: 8px;
  border-top: 2px solid var(--lc); border-right: 2px solid var(--lc);
}
.rankx-step img {
  width: 46px; height: 46px; object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.45));
}
.rankx-step strong { font-size: .78rem; }
.rankx-step em {
  font-style: normal; font-size: .62rem;
  color: color-mix(in srgb, var(--lc) 75%, #fff);
}
.rankx-step > span:last-child {
  margin-top: .15rem;
  font-family: var(--font-d); font-size: .52rem; letter-spacing: .06em;
  color: #041016; padding: .16rem .35rem;
  background: var(--lc);
}
.rankx-step.is-hot {
  border-color: var(--lc);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lc) 70%, #fff), 0 0 22px color-mix(in srgb, var(--lc) 35%, transparent);
  animation: rankxHot 2.4s ease-in-out infinite;
}
.rankx-step__flag {
  position: absolute; top: 6px; left: 6px;
  font-size: .46rem; letter-spacing: .12em; text-transform: uppercase;
  color: #041016; background: var(--lc); padding: .08rem .28rem;
}
@keyframes rankxHot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (max-width: 980px) {
  .rankx-mech { grid-template-columns: 1fr; }
  .rankx-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
