/* Alastro — identidade "Brasa": grafite quente, brasa (laranja → âmbar) e fumaça, com o HUD tático
   (cantos chanfrados, colchetes de mira) e tipografia condensada pesada.
   Animações só de transform/opacity e pausadas durante a live (body.is-live). */
:root {
  --bg: #0b0a09;
  --bg-2: #100e0c;
  --surface: #15120f;
  --surface-2: #1d1915;
  --line: rgba(255, 236, 220, .07);
  --line-2: rgba(255, 236, 220, .14);
  --text: #f5efe9;
  --muted: #9b938b;
  --faint: #5c554e;
  --accent: #ff5a1f;
  --accent-2: #ffb020;
  --accent-ink: #1a0800;
  --accent-soft: rgba(255, 90, 31, .12);
  --ember: linear-gradient(135deg, #ffb020 0%, #ff7a1f 45%, #ff4a14 100%);
  --live: #ff2d55;
  --ok: #3ee08f;
  --warn: #ffb020;
  --discord: #5865f2;
  --cut: 14px;
  --cut-sm: 8px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Segoe UI', sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Brasa no pé da página, fumaça no alto e grid de mapa bem leve: um único fundo fixo, estático. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 115%, rgba(255, 90, 31, .16), transparent 70%),
    radial-gradient(40% 35% at 88% -5%, rgba(255, 176, 32, .07), transparent 70%),
    radial-gradient(45% 40% at 5% 10%, rgba(155, 147, 139, .06), transparent 70%),
    linear-gradient(rgba(255, 236, 220, .022) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 236, 220, .022) 1px, transparent 1px) 0 0 / 64px 64px;
}
/* Grão de filme bem sutil (SVG estático, sem animação). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

body.is-live *, body.is-live *::before, body.is-live *::after {
  animation-play-state: paused !important;
  transition: none !important;
  backdrop-filter: none !important;
}
body.is-live::after { display: none; }

/* ---------- Utilidades de forma ---------- */
.cut {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
/* Colchetes de mira nos quatro cantos (camada separada, não interfere no fundo). */
.brackets { position: relative; }
.brackets::after {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --b: var(--accent);
  --l: 16px;
  background:
    linear-gradient(var(--b), var(--b)) top left / var(--l) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top left / 2px var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) top right / var(--l) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 2px var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / var(--l) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 2px var(--l) no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / var(--l) 2px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 2px var(--l) no-repeat;
}

/* ---------- Tipografia ---------- */
.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: '['; color: var(--faint); }
.eyebrow::after { content: ']'; color: var(--faint); }
.display {
  font: 900 clamp(58px, 10vw, 168px)/.86 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
.display em {
  font-style: normal;
  background: linear-gradient(180deg, #ffc23d 0%, #ff8a1f 45%, #ff4a14 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 90, 31, .35));
}
.display.sm { font-size: clamp(44px, 6.6vw, 104px); }
.label {
  font: 500 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before { content: ''; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
.label .count { color: var(--text); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Topo ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 68px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(var(--bg) 35%, transparent);
}
.logo {
  font: 900 27px/1 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo svg { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 10px rgba(255, 90, 31, .55)); }
.topbar-tag { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.topbar-tag b { color: var(--accent); font-weight: 500; }
.me { display: flex; align-items: center; gap: 12px; }
.me .btn.discord svg { width: 16px; height: 16px; }
.me-name { font-weight: 500; }

/* ---------- Botões ---------- */
.btn {
  --c-bg: var(--surface-2);
  --c-fg: var(--text);
  height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 13px/1 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--c-bg);
  color: var(--c-fg);
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .35s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { --c-bg: #1d222a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { --c-fg: var(--accent-ink); background: var(--ember); box-shadow: none; }
.btn.primary:hover { background: linear-gradient(135deg, #ffc84a 0%, #ff8f2e 45%, #ff5a1f 100%); box-shadow: none; }
.btn.light { --c-bg: var(--text); --c-fg: var(--bg); box-shadow: none; }
.btn.discord { --c-bg: var(--discord); --c-fg: #fff; box-shadow: none; }
.btn.discord:hover { --c-bg: #6b76f5; }
.btn.danger { --c-bg: rgba(255, 59, 59, .1); --c-fg: #ff7b7b; box-shadow: inset 0 0 0 1px rgba(255, 59, 59, .35); }
.btn.danger:hover { --c-bg: rgba(255, 59, 59, .18); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 11px; }
.btn.lg { height: 58px; padding: 0 28px; font-size: 14px; }
.btn.icon { width: 40px; height: 40px; padding: 0; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
/* clip-path corta o outline: o foco vira contorno interno. */
.btn:focus-visible, .wbtn:focus-visible, .gcard:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.btn.primary:focus-visible, .btn.light:focus-visible, .btn.discord:focus-visible { box-shadow: inset 0 0 0 2px var(--bg); }
.scard:focus-visible { outline: none; }
.scard:focus-visible .thumb { box-shadow: inset 0 0 0 2px var(--accent); }
.btn .arrow { display: inline-flex; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Campos ---------- */
.field { display: grid; gap: 8px; }
.field > span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.input {
  height: 52px;
  padding: 0 18px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  outline: none;
  width: 100%;
  font-size: 16px;
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, 0 100%);
  transition: border-color .2s, background .2s;
}
.input:focus { border-color: var(--accent); background: #170e09; }
.input.code { font-family: var(--mono); letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Avatares ---------- */
.av {
  --s: 32px;
  width: var(--s);
  height: var(--s);
  flex: none;
  background: var(--c, #888);
  color: #0b0b0b;
  display: grid;
  place-items: center;
  font: 700 calc(var(--s) * .38)/1 var(--display);
  overflow: hidden;
  position: relative;
  clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.xs { --s: 24px; }
.av.lg { --s: 44px; }
.av.xl { --s: 84px; }
.stack { display: flex; align-items: center; }
.stack .av + .av { margin-left: -6px; }
.stack .more { margin-left: 8px; font: 500 12px var(--mono); color: var(--muted); }
.dot { width: 8px; height: 8px; background: var(--faint); flex: none; transform: rotate(45deg); }
.dot.on { background: var(--ok); box-shadow: 0 0 10px rgba(52, 224, 138, .6); }

/* ---------- Selos ---------- */
.live-badge {
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  background: var(--live);
  color: #fff;
  font: 600 10px/1 var(--mono);
  letter-spacing: .14em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  padding-right: 14px;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  background: rgba(0, 0, 0, .6);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}
.chip svg { width: 13px; height: 13px; }

/* ---------- Layout de página ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 36px 28px 140px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 500 11px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color .2s;
}
.back:hover { color: var(--accent); }
.back svg { width: 16px; height: 16px; }
.card {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
section + section { margin-top: 64px; }

/* ---------- Landing ---------- */
.landing {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 28px 0;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 420px);
  gap: 56px;
  align-items: center;
}
.hero .display { font-size: clamp(64px, 10.5vw, 190px); }
.hero-fx {
  position: absolute;
  inset: -96px calc(50% - 50vw) -40px;
  z-index: -1;
  width: 100vw;
  height: calc(100% + 136px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 74%, transparent 98%);
          mask-image: linear-gradient(#000 74%, transparent 98%);
}
/* Sem WebGL (ou movimento reduzido sem quadro), fica um brilho estático no lugar. */
.hero-fx.off { background: radial-gradient(60% 55% at 70% 100%, rgba(255, 90, 31, .22), transparent 70%); }
.hero-sub { display: flex; align-items: center; gap: 14px; margin-top: 26px; font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-sub::before { content: ''; width: 40px; height: 2px; background: var(--ember); }
.lede {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 32px 0 0;
}
.lede b { color: var(--text); font-weight: 500; }
.specs {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 680px;
  border-top: 1px solid var(--line);
}
.specs li { padding: 18px 16px 0 0; display: grid; gap: 6px; }
.specs li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.specs b { font: 800 31px/1 var(--display); letter-spacing: -.02em; }
.specs span { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.login { padding: 30px; display: grid; gap: 16px; }
.login h2 { margin: 0; font: 800 34px/1 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.login h2 small { display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
.login .or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font: 500 10px var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login .or::before, .login .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.fine { margin: 0; font-size: 13px; color: var(--faint); }
.perk { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.perk svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--accent); }
.invite-banner {
  padding: 14px 16px;
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
  font-size: 14px;
}
.invite-banner b { color: var(--accent); font-weight: 600; }

/* Faixa de gêneros (só transform: barata). */
.ticker {
  margin: 56px -28px 0;
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-2);
}
.ticker-track { display: inline-flex; animation: ticker 38s linear infinite; }
.ticker span {
  padding: 18px 28px;
  font: 800 20px/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 28px;
}
.ticker span::after { content: ''; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }

/* Mock do que o espectador vê: cena gerada com gradientes + HUD. */
.showcase { padding: 110px 0 120px; display: grid; gap: 48px; }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.showcase-head p { max-width: 420px; margin: 0; color: var(--muted); }
.frame {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(30% 24% at 70% 40%, rgba(255, 200, 110, .75), transparent 70%),
    radial-gradient(70% 40% at 30% 30%, rgba(120, 110, 100, .25), transparent 70%),
    linear-gradient(180deg, #120c0a 0%, #3a1a10 34%, #ff6a2a 56%, #2a140c 57%, #0d0907 100%);
}
/* Duas cordilheiras em polígono: a de trás mais clara (profundidade), a da frente quase preta. */
.frame::before, .frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
}
.frame::before {
  height: 60%;
  background: linear-gradient(#3a2216, #1a0f0a);
  clip-path: polygon(0 48%, 7% 36%, 13% 42%, 21% 20%, 29% 34%, 36% 26%, 44% 44%, 52% 30%, 60% 38%, 68% 14%, 77% 32%, 85% 24%, 93% 38%, 100% 30%, 100% 100%, 0 100%);
}
.frame::after {
  height: 42%;
  background: #0a0706;
  clip-path: polygon(0 40%, 6% 30%, 12% 44%, 19% 18%, 27% 46%, 35% 34%, 42% 52%, 51% 26%, 58% 42%, 66% 32%, 74% 50%, 82% 22%, 90% 40%, 100% 28%, 100% 100%, 0 100%);
}
.frame > * { z-index: 1; }
.frame-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(255, 90, 31, .06), transparent);
  animation: scan 5s linear infinite;
}
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat;
  -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px, #000 18px, transparent 18.5px);
          mask: radial-gradient(circle, transparent 7px, #000 7.5px, #000 18px, transparent 18.5px);
  filter: drop-shadow(0 0 6px rgba(255, 90, 31, .6));
}
.hud { position: absolute; display: flex; gap: 8px; align-items: center; }
.hud.tl { top: 4%; left: 3%; }
.hud.tr { top: 4%; right: 3%; }
.hud.bl { bottom: 5%; left: 3%; }
.hud.br { bottom: 5%; right: 3%; }
.hud .chip { background: rgba(5, 6, 8, .7); }
.hud-fps { color: var(--accent-2); }
.frame-squad { position: absolute; right: 3%; top: 15%; width: 19%; display: grid; gap: 8px; }
.frame-squad span {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px;
  font: 600 11px var(--sans);
  background: var(--c);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.frame-squad span::before { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); background: linear-gradient(transparent 50%, rgba(0, 0, 0, .7)); }
.frame-squad b { position: relative; display: grid; place-items: center; width: 16px; height: 16px; background: rgba(255, 255, 255, .2); font: 600 9px var(--mono); }
.frame-squad em { position: relative; font-style: normal; }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature { position: relative; overflow: hidden; }
.feature::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.feature:hover::after { transform: scaleX(1); }
.feature { padding: 26px; display: grid; gap: 12px; align-content: start; }
.feature .n { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--accent); }
.feature h3 { margin: 0; font: 800 25px/1.15 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.landing-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font: 500 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Grupos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gcard {
  padding: 24px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform .45s var(--ease), background .25s;
}
.gcard:hover { transform: translateY(-4px); background: var(--surface-2); }
.gcard:hover h3 { color: var(--accent); }
.gcard-top { display: flex; justify-content: space-between; align-items: center; }
.gcard .idx { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--faint); }
.gcard .idx::before { content: 'SQUAD // '; }
.gcard h3 {
  margin: auto 0 0;
  font: 800 36px/1.02 var(--display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  word-break: break-word;
  transition: color .2s;
}
.gcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 500 11px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty { padding: 56px 32px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.empty h3 { margin: 0; font: 800 34px/1.05 var(--display); text-transform: uppercase; }
.empty p { margin: 0; color: var(--muted); max-width: 440px; }

/* ---------- Página do grupo ---------- */
.group-head { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.group-head .display { word-break: break-word; }
.group-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.invite-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 6px 0 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 500 11px var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
}
.invite-chip code { font: 600 15px var(--mono); letter-spacing: .26em; color: var(--accent); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.members { padding: 22px; position: sticky; top: 88px; }
/* Resumo da live e stats do CS2. */
.sum-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); margin: 6px 0 18px; }
.sum-grid > div { background: var(--surface); padding: 14px 12px; display: grid; gap: 4px; }
.sum-grid b { font: 800 26px/1 var(--display); }
.sum-grid span { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sum-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 520px) { .sum-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs2-card { margin-top: 28px; padding: 22px; }
.cs2-top { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin-top: 14px; font-size: 14px; color: var(--muted); }
.cs2-top b { color: var(--text); text-transform: uppercase; font-weight: 600; }
.cs2-top .label { width: 100%; margin: 0; }

/* Arquivo do CS2 e avisos no perfil. */
.gsi-box b { display: inline-flex; align-items: center; gap: 8px; }
.gsi-box b svg { width: 16px; height: 16px; color: var(--accent-2); }
.gsi-box code { font: 400 12px var(--mono); color: var(--text); background: var(--surface-2); padding: 1px 5px; word-break: break-all; }
#gsi-status.ok, #push-status.ok { color: var(--ok); }

/* Mural de clipes do grupo. */
.clip-grid { display: grid; gap: 10px; margin-top: 4px; }
.clip-card { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.clip-card:hover { background: var(--surface-2); }
.clip-play { position: relative; display: grid; place-items: center; width: 112px; aspect-ratio: 16 / 9; flex: none; background: radial-gradient(circle at 30% 20%, rgba(255, 90, 31, .28), transparent 60%), #000; }
.clip-play > svg { position: absolute; width: 22px; height: 22px; color: #fff; opacity: .85; }
.clip-play .av { opacity: .55; }
.clip-dur { position: absolute; right: 4px; bottom: 4px; font: 500 10px/1 var(--mono); padding: 3px 5px; background: rgba(0, 0, 0, .7); }
.clip-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.clip-info b, .clip-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-info span { color: var(--muted); font-size: 13px; }
.clip-info small { color: var(--faint); font: 400 11px var(--mono); }
.clip-acts { display: flex; gap: 6px; }
.btn.icon.sm { width: 34px; height: 34px; }
.btn.icon.sm svg { width: 15px; height: 15px; }
.clip-video { width: 100%; max-height: 70vh; background: #000; display: block; }

.member-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.member-list li { transition: background .2s; }
.member-list li:hover { background: var(--surface-2); }
.member { display: flex; align-items: center; gap: 12px; padding: 8px; width: 100%; text-align: left; }
.member:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.member-list .name { flex: 1; min-width: 0; display: grid; gap: 4px; }
.member-list .name-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.member-list .tag svg { width: 15px; height: 15px; color: var(--warn); }
.member-list .tag { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.member-list li.off { opacity: .55; }

.cta {
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  background:
    linear-gradient(115deg, transparent 55%, var(--accent-soft) 55.2%, transparent 75%),
    var(--surface);
}
.cta h2 { margin: 0 0 8px; font: 800 34px/1.05 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { margin: 0; color: var(--muted); max-width: 440px; }

.streams { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.scard { display: grid; gap: 14px; }
.thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 20% 0%, color-mix(in oklab, var(--c, #888) 45%, transparent), transparent 65%),
    linear-gradient(160deg, #141820, #0a0c10);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: transform .5s var(--ease);
}
.thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, rgba(0, 0, 0, .22) 3px 4px);
  pointer-events: none;
}
.scard:hover .thumb { transform: scale(.985); }
.thumb .tl { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.thumb .br { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 6px; }
.thumb .play {
  position: absolute;
  inset: auto auto 12px 12px;
  height: 34px;
  padding: 0 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 11px/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  padding-right: 18px;
  transition: opacity .25s, transform .45s var(--ease);
}
.scard:hover .play, .scard:focus-visible .play { opacity: 1; transform: none; }
.thumb .play svg { width: 13px; height: 13px; }
.sinfo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sinfo > div { min-width: 0; }
.sinfo b { display: block; font-weight: 600; }
.sinfo > div > span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.none {
  padding: 28px;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .015) 10px 20px);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  text-align: center;
}

/* ---------- Painel de quem transmite ---------- */
.live-panel { padding: 26px; margin-bottom: 48px; display: grid; gap: 22px; box-shadow: inset 0 0 0 1px rgba(255, 59, 59, .3); }
.lp-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lp-head .timer { font: 500 15px var(--mono); }
.lp-head .grow { flex: 1; }
.lp-title { margin: 0; font: 800 31px/1.1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.lp-preview { overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.lp-preview video { width: 100%; height: 100%; object-fit: contain; display: block; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.stats > div { padding: 14px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.stats dt { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.stats dd { margin: 0; font: 800 23px/1.2 var(--display); letter-spacing: -.02em; }
.stats dd small { font: 400 12px var(--sans); color: var(--muted); letter-spacing: 0; }
.good { color: var(--ok); }
.bad { color: var(--warn); }
.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-actions .grow { flex: 1; }
.hint { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.net-warn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(255, 181, 71, .08);
  box-shadow: inset 2px 0 0 var(--warn);
  color: #ffd08a;
  font-size: 14px;
}

/* ---------- Barra "ao vivo" global ---------- */
.livebar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 12px;
  background: #12151a;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 60px rgba(0, 0, 0, .6);
  font-size: 14px;
  max-width: calc(100% - 32px);
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  animation: rise .6s var(--ease) both;
}
.livebar .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Modal ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 4, 6, .78);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fade .25s both;
}
.sheet {
  width: min(600px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 30px;
  display: grid;
  gap: 24px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  animation: rise .45s var(--ease) both;
  scrollbar-width: thin;
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-head h2 { margin: 0; font: 800 34px/1.05 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.sheet-head h2 em { font-style: normal; color: var(--accent); }
.sheet-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.opt-group { display: grid; gap: 10px; }
.opt-group > .label { margin: 0; }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source { position: relative; }
.source input { position: absolute; opacity: 0; pointer-events: none; }
.source .box {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: box-shadow .2s, background .2s;
}
.source .box svg { width: 28px; height: 28px; color: var(--muted); transition: color .2s; }
.source .box b { font-weight: 600; }
.source .box span { font-size: 13px; color: var(--muted); }
.source input:checked + .box { box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.source input:checked + .box svg { color: var(--accent); }
.source input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: flex; padding: 4px; gap: 2px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  font: 500 13px var(--sans);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.seg span:hover { color: var(--text); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.switch-row b { font-weight: 600; display: block; }
.switch-row span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 46px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: var(--faint); transition: background .2s; pointer-events: none; }
.switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  transition: transform .3s var(--ease);
}
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(22px); background: var(--accent-ink); }
details.adv { border-top: 1px solid var(--line); padding-top: 18px; }
details.adv summary { cursor: pointer; list-style: none; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary::before { content: '+'; color: var(--accent); }
details.adv[open] summary::before { content: '–'; }
details.adv .adv-body { display: grid; gap: 18px; margin-top: 18px; }
.estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
  font: 500 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.estimate b { color: var(--accent); font: 800 20px var(--display); letter-spacing: 0; }

/* ---------- Player ---------- */
.watch { position: fixed; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; }
.watch video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.w-top, .w-bottom {
  position: absolute;
  left: 0;
  right: 0;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity .35s, transform .45s var(--ease);
}
/* Notch e barras do sistema (iPhone deitado): os controles nunca ficam embaixo delas. */
.w-top, .w-bottom { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.w-top { top: 0; background: linear-gradient(rgba(0, 0, 0, .78), transparent); padding-bottom: 60px; padding-top: max(20px, env(safe-area-inset-top)); }
.w-bottom { bottom: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); padding-top: 60px; }
.watch.idle { cursor: none; }
.watch.idle .w-top { opacity: 0; transform: translateY(-10px); }
.watch.idle .w-bottom { opacity: 0; transform: translateY(10px); }
.w-top .grow, .w-bottom .grow { flex: 1; }
.w-host b { display: block; font-weight: 600; }
.w-host > div > span { display: block; font-size: 13px; color: rgba(255, 255, 255, .65); }
.wbtn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background .2s;
  flex: none;
}
.wbtn:hover { background: rgba(255, 255, 255, .18); }
.wbtn.on { background: var(--accent); color: var(--accent-ink); }
.wbtn svg { width: 18px; height: 18px; }
.wbtn.wide { width: auto; padding: 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.volume { width: 110px; accent-color: var(--accent); }
.w-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.w-center > div { display: grid; justify-items: center; gap: 14px; text-align: center; pointer-events: auto; }
.w-center h3 { margin: 0; font: 800 36px/1.05 var(--display); text-transform: uppercase; }
.w-center p { margin: 0; color: rgba(255, 255, 255, .6); }
.spinner {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.w-stats {
  position: absolute;
  top: 84px;
  right: 24px;
  padding: 14px 16px;
  min-width: 230px;
  background: rgba(7, 8, 10, .85);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font: 400 12px/1.9 var(--mono);
}
.w-stats div { display: flex; justify-content: space-between; gap: 18px; }
.w-stats span { color: var(--muted); }
.unmute { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); }

/* Menu de opções de quem assiste. */
.w-menu {
  position: absolute;
  right: 24px;
  bottom: 84px;
  z-index: 3;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  display: grid;
  gap: 2px;
  background: rgba(7, 8, 10, .92);
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
}
.w-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px; cursor: pointer; }
.w-opt:hover { background: rgba(255, 255, 255, .05); }
.w-opt input { margin-top: 3px; accent-color: var(--accent); }
.w-opt b { display: block; font-weight: 600; font-size: 14px; }
.w-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Diretor e linha do tempo da ação. */
.w-dir-note {
  position: absolute; top: 84px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(7, 8, 10, .85); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .5);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2);
  animation: fade .35s var(--ease);
}
.w-dir-note svg { width: 14px; height: 14px; }
.w-tl { position: absolute; left: max(24px, env(safe-area-inset-left)); right: max(24px, env(safe-area-inset-right)); bottom: 86px; z-index: 2; width: auto; cursor: pointer; transition: opacity .35s; }
.watch.idle .w-tl { opacity: 0; }
/* Miniatura brilha conforme a ação naquela câmera. */
.w-tile.thumb { --act: 0; }
.w-tile.thumb::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 122, 31, var(--act)), 0 0 calc(var(--act) * 26px) rgba(255, 90, 31, calc(var(--act) * .8)); transition: box-shadow .6s; }

/* Replay instantâneo: cobre o palco; a live segue tocando muda por baixo. */
.w-replay { position: absolute; inset: 0; z-index: 4; background: #000; display: grid; grid-template-rows: 1fr auto; }
.rp-stage { position: relative; min-height: 0; }
.rp-draw { position: absolute; cursor: crosshair; touch-action: none; box-shadow: inset 0 0 0 2px rgba(255, 176, 32, .55); }
/* Jogada desenhada por alguém do grupo. */
.board-card { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: min(420px, calc(100vw - 36px)); background: var(--surface); box-shadow: 0 18px 60px rgba(0, 0, 0, .6), inset 0 0 0 1px var(--line-2); animation: rise .35s var(--ease); }
.board-card header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.board-card header .grow { flex: 1; }
.board-card img { display: block; width: 100%; cursor: zoom-in; }
.board-full { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, .88); cursor: zoom-out; }
.board-full img { max-width: 96vw; max-height: 92vh; }
.rp-bar { display: flex; align-items: center; gap: 8px; padding: 12px max(16px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(7, 8, 10, .92); box-shadow: inset 0 1px 0 var(--line-2); flex-wrap: wrap; }
.rp-bar .grow { flex: 1; }
.rp-bar .wbtn.wide { display: inline-flex; align-items: center; gap: 6px; }
.rp-bar .wbtn.wide svg { width: 14px; height: 14px; }
.rp-tag { font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-2); margin-right: 6px; }

/* Janela flutuante (Document PiP): só o palco, miniaturas menores. */
.watch.pip .w-tile.thumb { --tw: 112px; right: 8px; bottom: calc(8px + var(--i, 0) * (var(--tw) * 9 / 16 + 6px)); }
.watch.pip .w-tile.thumb .w-tile-label { display: none; }

/* ---------- Modo Squad: tela principal + miniaturas ---------- */
/* Os vídeos nunca mudam de lugar no DOM; trocar a principal só troca as classes. */
.w-stage { position: absolute; inset: 0; }
.w-tile { position: absolute; inset: 0; background: #000; }
.w-tile.main { z-index: 0; }
.w-tile.thumb {
  --tw: 232px;
  inset: auto 20px calc(92px + var(--i, 0) * (var(--tw) * 9 / 16 + 10px)) auto;
  width: var(--tw);
  aspect-ratio: 16 / 9;
  z-index: 4;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: transform .35s var(--ease), opacity .3s;
}
.w-tile.thumb::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); pointer-events: none; }
.w-tile.thumb:hover { transform: translateX(-6px); }
.w-tile.thumb:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.w-tile.thumb video { object-fit: cover; }
.w-tile.thumb.ended { opacity: .35; }
.w-tile-label { display: none; }
.w-tile.thumb .w-tile-label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 22px 10px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .88));
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.w-tile-label .k { display: grid; place-items: center; width: 18px; height: 18px; background: rgba(255, 255, 255, .16); font: 600 10px/1 var(--mono); }
.w-tile-label .who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.watch.idle .w-tile.thumb { opacity: .5; }
.watch.idle .w-tile.thumb:hover { opacity: 1; }
#w-game svg, .chip svg { flex: none; }

/* ---------- Steam ---------- */
.steam-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.steam-box > div { display: grid; gap: 4px; min-width: 0; flex: 1 1 220px; }
.steam-box p { margin: 0; font-size: 13px; color: var(--muted); }
.steam-box .grow { flex: 1; }
.steam-av { width: 40px; height: 40px; flex: none; clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%); }
.steam-info { display: flex; gap: 12px; flex-wrap: wrap; }
.m-game { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font: 500 11px var(--mono); color: var(--ok); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-game svg { width: 14px; height: 14px; flex: none; }

/* ---------- Nível, tags e perfil ---------- */
/* Selo de nível: hexágono chanfrado na cor do tier. */
.lvl {
  --t: var(--accent);
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 6px;
  flex: none;
  background: color-mix(in oklab, var(--t) 18%, #0b0d10);
  color: var(--t);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--t) 60%, transparent);
  font: 700 11px/1 var(--mono);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}
.lvl.lg { min-width: 34px; height: 26px; font-size: 13px; }
.lvl.xl { min-width: 64px; height: 52px; font: 800 31px/1 var(--display); clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.who { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tag: o contorno (.ptag) leva brilho via drop-shadow; o miolo (b) leva recorte, fundo e animação. */
.ptag { display: inline-flex; flex: none; position: relative; vertical-align: middle; }
.ptag b {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px 0 8px;
  overflow: hidden;
  font: 600 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.ptag.lg b { height: 28px; padding: 0 13px 0 10px; font-size: 11px; gap: 6px; }
.ptag b svg { width: 12px; height: 12px; flex: none; position: relative; z-index: 1; }
.ptag.lg b svg { width: 14px; height: 14px; }
.ptag b::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
/* Comum: grafite com fio de brasa. */
.fx-basic b { background: linear-gradient(180deg, #221d18, #17130f); box-shadow: inset 0 0 0 1px rgba(255, 236, 220, .16), inset 0 -2px 0 rgba(255, 90, 31, .55); }
.fx-basic b svg { color: var(--accent); }

/* Brilho que atravessa (shine, crystal, gold). */
.fx-shine b, .fx-crystal b, .fx-gold b { isolation: isolate; }
.fx-shine b::after, .fx-crystal b::after, .fx-gold b::after {
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: tag-sweep 3.2s var(--ease) infinite;
}
.fx-shine b { background: #2a1408; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .45); }
.fx-crystal b { background: linear-gradient(120deg, #0b3442, #1c7290, #0b3442); color: #e3fbff; box-shadow: inset 0 0 0 1px rgba(140, 235, 255, .5); }
.fx-crystal b::after { animation-duration: 2.4s; }
.fx-gold { filter: drop-shadow(0 0 6px rgba(255, 207, 61, .45)); }
.fx-gold b { background: linear-gradient(135deg, #8a6400, #ffd84a 40%, #fff4c0 50%, #ffcf3d 60%, #8a6400); color: #2a1c00; box-shadow: none; }

/* Lua: céu noturno com estrelas que piscam. */
.fx-moon b { background: linear-gradient(135deg, #18204a, #3b2b70); color: #d7ddff; box-shadow: inset 0 0 0 1px rgba(170, 180, 255, .35); }
.fx-moon b::after {
  background:
    radial-gradient(1px 1px at 18% 30%, #fff, transparent),
    radial-gradient(1px 1px at 62% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 86% 26%, #fff, transparent),
    radial-gradient(1px 1px at 40% 82%, #fff, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}

/* Scanline verde de monitor. */
/* Fósforo âmbar de monitor antigo, varrido por uma linha. */
.fx-scan b { background: #140c03; color: #ffc457; box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .45); text-shadow: 0 0 6px rgba(255, 176, 32, .75); }
.fx-scan b::after { height: 35%; background: linear-gradient(transparent, rgba(255, 176, 32, .35), transparent); animation: scan 1.8s linear infinite; }

/* Pulso vermelho de casa cheia. */
.fx-pulse { filter: drop-shadow(0 0 5px rgba(255, 70, 70, .5)); }
.fx-pulse b { background: #3a0b10; color: #ff9a9a; box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .55); }
.fx-pulse b::after { background: radial-gradient(closest-side, rgba(255, 80, 80, .45), transparent); animation: pulse 1.3s ease-in-out infinite; }

/* Fogo: degradê quente que sobe. */
.fx-fire { filter: drop-shadow(0 0 6px rgba(255, 120, 0, .55)); }
.fx-fire b { background: #2a0a00; color: #fff4d6; box-shadow: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.fx-fire b::after {
  inset: -100% 0 0;
  background: linear-gradient(0deg, #ff3d00, #ff8a00 30%, #ffd000 50%, #ff8a00 70%, #ff3d00);
  z-index: -1;
  animation: tag-rise 1.6s linear infinite;
}
.fx-fire b { isolation: isolate; }

/* Holográfico: arco-íris pastel deslizando. */
.fx-holo b, .fx-rainbow b, .fx-plasma b { isolation: isolate; box-shadow: none; }
.fx-holo b { color: #14121c; }
.fx-holo b::after, .fx-rainbow b::after {
  inset: 0 -200% 0 0;
  z-index: -1;
  background: linear-gradient(100deg, #ffa8e8, #a8fff0, #b3bcff, #fff0a8, #ffa8e8, #a8fff0, #b3bcff);
  animation: tag-slide 4s linear infinite;
}

/* Glitch: texto duplicado em ciano e magenta que treme. */
.fx-glitch b { background: #12001a; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 60, 220, .45); }
.fx-glitch::before, .fx-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 10px 0 25px;              /* 8px de borda + 12px do ícone + 5px de espaço */
  font: 600 10px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .8;
}
.fx-glitch.lg::before, .fx-glitch.lg::after { padding: 0 13px 0 30px; font-size: 11px; }
.fx-glitch::before { color: #00f0ff; animation: tag-glitch 2.6s steps(1) infinite; }
.fx-glitch::after { color: #ff2bd6; animation: tag-glitch 2.6s steps(1) infinite reverse; }

/* Lendárias: arco-íris saturado com aura, e plasma com núcleo pulsando. */
.fx-rainbow { filter: drop-shadow(0 0 7px rgba(255, 98, 239, .55)); }
.fx-rainbow b { color: #0b0b0b; font-weight: 700; }
.fx-rainbow b::after { background: linear-gradient(100deg, #ff3b3b, #ffb000, #c6ff1a, #00e5ff, #8a5cff, #ff3bd4, #ff3b3b, #ffb000, #c6ff1a); animation-duration: 2.6s; }
.fx-plasma { filter: drop-shadow(0 0 8px rgba(140, 90, 255, .7)); }
.fx-plasma b { background: #0c0420; color: #fff; text-shadow: 0 0 8px #b18cff, 0 0 2px #fff; }
.fx-plasma b::after {
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, #2a0f6b, #7b2cff, #00c8ff, #2a0f6b, #ff2bd6, #2a0f6b);
  opacity: .75;
  animation: spin 3s linear infinite;
}

@keyframes tag-sweep { 55%, 100% { transform: translateX(130%); } }
@keyframes tag-rise { to { transform: translateY(50%); } }
@keyframes tag-slide { to { transform: translateX(-50%); } }
@keyframes tag-glitch {
  0%, 86%, 100% { transform: none; opacity: 0; }
  88% { transform: translate(-2px, 1px); opacity: .8; }
  92% { transform: translate(2px, -1px); opacity: .8; }
  96% { transform: translate(-1px, 0); opacity: .8; }
}

/* Barra de XP */
.xpbar { height: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.xpbar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 60%, #000), var(--accent)); }
.xpbar-txt { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .06em; color: var(--muted); }

/* Card do jogador na tela inicial */
.player {
  --t: var(--accent);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 26px;
  width: 100%;
  padding: 22px 26px;
  margin-bottom: 48px;
  text-align: left;
  background:
    radial-gradient(60% 140% at 0% 50%, color-mix(in oklab, var(--t) 14%, transparent), transparent 70%),
    var(--surface);
  transition: background .3s;
}
.player:hover { background: radial-gradient(60% 140% at 0% 50%, color-mix(in oklab, var(--t) 22%, transparent), transparent 70%), var(--surface-2); }
.player:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.player-main { display: grid; gap: 10px; min-width: 0; }
.player-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.player-top b { font: 800 21px/1 var(--display); text-transform: uppercase; color: var(--t); }
.player-side { display: grid; gap: 4px; text-align: right; }
.player-side b { font: 800 29px/1 var(--display); }
.player-side b small { font-size: 13px; color: var(--muted); }
.player-side span { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Topo: botão do perfil */
.me-profile { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; transition: background .2s; }
.me-profile:hover { background: var(--surface-2); }
.me-profile:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }

/* Cards de grupo */
.gcard.is-live { box-shadow: inset 0 0 0 1px rgba(255, 59, 59, .35); }
.gcard-live { margin: -6px 0 0; font-size: 13px; color: #ff9a9a; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gcard-live svg { width: 14px; height: 14px; flex: none; color: var(--warn); }
.gcard-foot b { font-weight: 500; }
.gcard-foot b.on { color: var(--ok); }
.tag-own { display: inline-flex; align-items: center; gap: 5px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--warn); }
.tag-own svg { width: 13px; height: 13px; }

/* Grupo: título, ranking e XP da live */
.g-title { display: flex; align-items: center; gap: 14px; }
.g-title .btn svg { width: 17px; height: 17px; }
#g-owner-acts { display: contents; }
.members .label svg { width: 14px; height: 14px; color: var(--warn); }
.members .label:has(svg)::before { display: none; }
.rank { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; }
.rank .member { gap: 10px; padding: 7px 8px; }
.rank .member:hover { background: var(--surface-2); }
.rank .pos { width: 18px; font: 800 17px var(--display); color: var(--faint); text-align: center; }
.rank .p1 .pos { color: #ffcf3d; }
.rank .p2 .pos { color: #cfd8e2; }
.rank .p3 .pos { color: #d4925a; }
.rank .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.rank .xp { font: 500 11px var(--mono); color: var(--muted); min-width: 64px; text-align: right; }
.rank-empty { padding: 10px 8px; font-size: 13px; color: var(--muted); }
.lp-xp:empty { display: none; }
.lp-xp { display: grid; gap: 10px; padding: 14px 16px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .2); }
.lp-xp-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.lp-xp-top > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.lp-xp-top b { color: var(--accent); font: 800 20px var(--display); }

/* ---------- Página de perfil ---------- */
.display.xs { font-size: clamp(36px, 4.4vw, 64px); }
.prof-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 8px 0 36px; border-bottom: 1px solid var(--line); }
.prof-id { display: flex; align-items: center; gap: 26px; min-width: 0; }
.prof-id .av.xl { --s: 108px; }
.prof-id-txt { min-width: 0; }
.prof-id h1 { word-break: break-word; }
.prof-badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }

/* Emblema de nível: hexágono na cor do tier e um anel girando em volta (só transform). */
.emblem { position: relative; width: 214px; height: 214px; display: grid; place-items: center; flex: none; }
.emblem-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--t), transparent 22%, var(--t) 50%, transparent 72%, var(--t));
  -webkit-mask: radial-gradient(closest-side, transparent 93%, #000 94%, #000 99%, transparent 100%);
          mask: radial-gradient(closest-side, transparent 93%, #000 94%, #000 99%, transparent 100%);
  opacity: .85;
  animation: spin 14s linear infinite;
}
.emblem-hex {
  position: relative;
  width: 160px;
  height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: var(--t);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.emblem-hex::before {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: radial-gradient(90% 60% at 50% 0%, color-mix(in oklab, var(--t) 38%, transparent), transparent 70%), linear-gradient(165deg, #1d1712, #0c0a08);
}
.emblem-hex b {
  position: relative;
  font: 900 96px/.85 var(--display);
  background: linear-gradient(180deg, #fff 10%, var(--t));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px color-mix(in oklab, var(--t) 55%, transparent));
}
.emblem-hex small { position: relative; font: 500 10px var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* XP em segmentos inclinados, estilo HUD. */
.prof-xp { padding: 32px 0; display: grid; gap: 14px; }
.seg-bar { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; height: 18px; }
.seg-bar i { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transform: skewX(-20deg); }
.seg-bar i.on { background: var(--ember); box-shadow: 0 0 14px rgba(255, 90, 31, .35); }
.seg-bar i.cur { background: linear-gradient(90deg, #ff7a1f, transparent); animation: pulse 1.6s ease-in-out infinite; }
.seg-txt { display: flex; gap: 24px; flex-wrap: wrap; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg-txt b { color: var(--text); font-weight: 600; }

/* Números grandes. */
.prof-numbers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.prof-numbers div { padding: 26px 18px 24px 0; display: grid; gap: 10px; }
.prof-numbers div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.prof-numbers b { font: 900 clamp(32px, 3.4vw, 48px)/.9 var(--display); }
.prof-numbers b small { font-size: .5em; color: var(--muted); }
.prof-numbers span { font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Coleção de tags: cartas que inclinam em 3D e refletem a luz conforme o ponteiro. */
.prof-coll { margin-top: 64px; }
.prof-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.prof-sec-head .display em { -webkit-text-fill-color: transparent; }
.prof-sec-head p.muted { margin: 10px 0 0; max-width: 520px; font-size: 14px; }
.prof-sec-head .seg { min-width: 340px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; perspective: 900px; }
.tcard {
  --r: #a8a097;
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 262px;
  padding: 18px 18px 16px;
  text-align: left;
  overflow: hidden;
  cursor: default;
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in oklab, var(--r) 16%, transparent), transparent 62%), var(--surface);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .55s var(--ease);
}
.tcard::before { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--r) 42%, transparent); }
.tcard.tilt { transition: transform .08s linear; }
.tcard[data-tag] { cursor: pointer; }
.tcard.r-rara { --r: #ff7a2e; }
.tcard.r-epica { --r: #ff3d6e; }
.tcard.r-lendaria { --r: #ffd36a; }
.tc-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 60%);
}
.tcard.r-lendaria .tc-shine {
  background:
    radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(115deg, rgba(255, 98, 239, .14), rgba(0, 229, 255, .12) 40%, rgba(255, 211, 106, .14) 70%, rgba(255, 98, 239, .14));
}
.tcard.tilt .tc-shine { opacity: 1; }
.tc-top { display: flex; justify-content: space-between; gap: 8px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tc-rar { color: var(--r); }
.tc-icon {
  position: relative;
  width: 66px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 6px 0 4px;
  color: var(--r);
  background: color-mix(in oklab, var(--r) 13%, #0d0b09);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.tc-icon > svg { width: 30px; height: 30px; filter: drop-shadow(0 0 8px color-mix(in oklab, var(--r) 70%, transparent)); }
.tc-icon i { position: absolute; right: 8px; bottom: 12px; width: 20px; height: 20px; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.tc-icon i svg { width: 12px; height: 12px; }
.tc-name { font: 800 27px/1 var(--display); text-transform: uppercase; }
.tc-desc { font-size: 13px; line-height: 1.4; color: var(--muted); }
.tc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tc-lockt { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.tc-on { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.tcard.on::before { box-shadow: inset 0 0 0 2px var(--accent-2); }
.tcard.locked { background: var(--surface); }
.tcard.locked .tc-icon { color: var(--faint); background: var(--surface-2); }
.tcard.locked .tc-icon > svg { filter: none; }
.tcard.locked .tc-name { color: var(--muted); }
/* Secreta: nem a cor da raridade aparece antes de desbloquear. */
.tcard.secret { --r: #6b635b; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 236, 220, .025) 10px 20px), var(--surface); }
.tcard.secret .tc-name { letter-spacing: .24em; color: var(--faint); }
.tcard.secret .tc-rar { color: var(--muted); }
.tcard[data-tag]:focus-visible { outline: none; }
.tcard[data-tag]:focus-visible::before { box-shadow: inset 0 0 0 2px var(--accent); }

/* Como ganhar XP. */
.prof-how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 48px 0 16px; }
.how { padding: 24px; display: grid; gap: 10px; }
.how .n { font: 500 11px var(--mono); letter-spacing: .14em; color: var(--accent); }
.how b { font: 900 52px/.9 var(--display); background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how b small { font-size: 18px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; }
.prof .steam-box { margin: 14px 0; }
.prof-owner { padding: 20px; display: grid; gap: 12px; }

/* Convite para entrar no squad e XP de quem assiste. */
.squad-cta { background: radial-gradient(70% 120% at 100% 50%, rgba(255, 90, 31, .18), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .32); }
.squad-cta .eyebrow { margin-bottom: 12px; }
.squad-stack { margin-top: 14px; }
.cta-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.xp-chip { color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .45); }
.wbtn.join { background: var(--ember); color: var(--accent-ink); gap: 6px; display: inline-flex; align-items: center; }
.wbtn.join:hover { background: linear-gradient(135deg, #ffc84a, #ff5a1f); }
.wbtn.join svg { width: 14px; height: 14px; }

@media (max-width: 980px) {
  .prof-hero { grid-template-columns: 1fr; gap: 24px; }
  .emblem { width: 170px; height: 170px; }
  .emblem-hex { width: 128px; height: 142px; }
  .emblem-hex b { font-size: 76px; }
  .prof-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prof-numbers div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .prof-numbers div:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .prof-how { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prof-id { gap: 16px; }
  .prof-id .av.xl { --s: 72px; }
  .prof-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-numbers div, .prof-numbers div:nth-child(3n + 1) { padding-left: 14px; border-left: 1px solid var(--line); }
  .prof-numbers div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .prof-numbers div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .prof-sec-head .seg { min-width: 0; width: 100%; }
  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tcard { min-height: 230px; padding: 14px 12px; }
  .tc-name { font-size: 21px; }
  .tc-icon { width: 54px; height: 60px; }
  .seg-bar { gap: 2px; height: 14px; }
}

/* Subida de nível */
.levelup {
  --t: var(--accent);
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--t) 22%, rgba(7, 8, 10, .7)), rgba(7, 8, 10, .88) 60%);
  animation: fade .3s ease both, fade .5s ease 2.7s reverse both;
  cursor: pointer;
}
.lu-rays {
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  background: repeating-conic-gradient(from 0deg, color-mix(in oklab, var(--t) 13%, transparent) 0 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 55%);
  mask: radial-gradient(closest-side, #000 15%, transparent 55%);
  animation: spin 14s linear infinite;
}
.lu-body { position: relative; display: grid; justify-items: center; gap: 14px; animation: lu-pop .7s var(--ease) both; }
.lu-kicker { font: 500 12px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--text); }
.lu-badge {
  display: grid;
  place-items: center;
  min-width: 170px;
  height: 140px;
  padding: 0 30px;
  background: color-mix(in oklab, var(--t) 22%, #0b0d10);
  color: var(--t);
  font: 800 99px/1 var(--display);
  text-shadow: 0 0 30px var(--t);
  clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 30px 100%, 0 50%);
  box-shadow: inset 0 0 0 3px var(--t);
}
.lu-tier { font: 800 26px var(--display); text-transform: uppercase; color: var(--t); letter-spacing: .04em; }
@keyframes lu-pop { from { opacity: 0; transform: scale(.6); } 60% { transform: scale(1.06); } }

.toast.unlock { display: flex; align-items: center; gap: 12px; background: #170e09; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 90, 31, .4), 0 12px 40px rgba(0, 0, 0, .5); }

/* ---------- Toasts ---------- */
#toasts {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
}
.toast {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 13px var(--sans);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
  animation: drop .45s var(--ease) both;
  max-width: 100%;
}
.toast.err { background: #ff6b6b; color: #1a0303; }

/* ---------- Animações ---------- */
.reveal { animation: rise .9s var(--ease) both; }
.settled .reveal { animation: none; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }
.reveal.d4 { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 24px; }
  .cols { grid-template-columns: 1fr; }
  .members { position: static; }
  .features { grid-template-columns: 1fr; }
  .showcase { padding: 80px 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; height: 60px; }
  .topbar-tag { display: none; }
  .page, .landing { padding-left: 16px; padding-right: 16px; }
  .ticker { margin-left: -16px; margin-right: -16px; }
  .page { padding-top: 20px; }
  .me-name { display: none; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs li:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs b { font-size: 20px; }
  .login, .cta, .live-panel, .feature { padding: 22px; }
  .sheet { padding: 22px; }
  .sources { grid-template-columns: 1fr; }
  .seg span { font-size: 12px; padding: 10px 4px; }
  .volume { display: none; }
  .w-top, .w-bottom { padding-left: 14px; padding-right: 14px; }
  .w-stats { right: 14px; left: 14px; }
  .grid, .streams { grid-template-columns: 1fr; }
  .hud.bl, .hud.br { display: none; }
  .w-tile.thumb { --tw: 132px; right: 12px; bottom: calc(84px + var(--i, 0) * (var(--tw) * 9 / 16 + 8px)); }
  .w-tile.thumb .w-tile-label { padding: 14px 6px 4px; font-size: 11px; }
  .w-tile.thumb .w-tile-label .lvl { display: none; }
  .player { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px; }
  .player-side { display: none; }
  .lvl.xl { min-width: 52px; height: 44px; font-size: 20px; }
  .tag-grid { grid-template-columns: 1fr; }
  .prof-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prof-head { gap: 12px; }
  .prof-head .av.xl { --s: 60px; }
  .me-tag { display: none; }
  .lu-badge { min-width: 130px; height: 110px; font-size: 58px; }
}

/* ---------- Player no celular em pé ----------
   Como um app de vídeo: vídeo na largura toda no topo, controles sempre visíveis logo abaixo
   e as miniaturas do squad numa fileira embaixo dele. Deitado, volta o player de tela cheia. */
@media (orientation: portrait) and (max-width: 900px) {
  .watch {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--bg);
  }
  .w-top, .w-bottom { position: static; background: none; transition: none; }
  .watch.idle { cursor: auto; }
  .watch.idle .w-top, .watch.idle .w-bottom { opacity: 1; transform: none; }
  .w-top { order: 0; min-height: 64px; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
  .w-top #w-game { display: none; }
  .w-host { min-width: 0; }
  .w-host > div { min-width: 0; }
  .w-host > div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .w-stage { order: 1; position: relative; inset: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .w-tile { position: relative; inset: auto; }
  .w-tile.main { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 9; }
  .w-tile.thumb { inset: auto; width: auto; aspect-ratio: 16 / 9; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
  .w-tile.thumb:hover { transform: none; }
  .watch.idle .w-tile.thumb { opacity: 1; }
  .w-tile.thumb .w-tile-label { padding: 12px 5px 4px; font-size: 10px; gap: 4px; }
  .w-tile.thumb .w-tile-label .lvl { display: none; }
  /* Avisos e "Ativar som" ficam em cima do vídeo, não no meio da tela. */
  .w-center { inset: calc(max(10px, env(safe-area-inset-top)) + 64px) 0 auto; aspect-ratio: 16 / 9; }
  .unmute { bottom: auto; top: calc(max(10px, env(safe-area-inset-top)) + 64px + 28.125vw - 23px); }
  .w-bottom { order: 2; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .w-stats { order: 3; position: static; margin: 0 14px 16px; min-width: 0; }
}

/* Celular deitado: miniaturas menores para caberem na altura da tela. */
@media (orientation: landscape) and (max-height: 520px) {
  .w-top { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 36px; }
  .w-bottom { padding-top: 36px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .w-host > div > span { display: none; }
  .w-tile.thumb { --tw: 128px; right: max(12px, env(safe-area-inset-right)); bottom: calc(66px + var(--i, 0) * (var(--tw) * 9 / 16 + 6px)); }
  .w-tile.thumb .w-tile-label .lvl { display: none; }
}
