/* ==========================================================================
   SHADOWS // Site de apresentação do time
   Linguagem visual do menu do Rainbow Six Siege aplicada a um site
   institucional. Paleta: preto operacional + roxo do time.
   ========================================================================== */

:root {
  --bg: #07060a;
  --bg-2: #0d0a14;
  --panel: rgba(20, 15, 30, 0.72);
  --panel-solid: #120e1c;
  --line: rgba(168, 85, 247, 0.22);
  --line-strong: rgba(168, 85, 247, 0.55);

  --accent: #a855f7;
  --accent-2: #7c3aed;
  --accent-hot: #d8b4fe;
  --danger: #ef4444;
  --ok: #22c55e;

  --ink: #eceaf4;
  --muted: #8b839f;
  --dim: #5b5470;

  --ui: "Barlow Condensed", "Rajdhani", system-ui, sans-serif;
  --display: "Orbitron", "Rajdhani", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;

  --shell: 22px;
  --ease: cubic-bezier(.2, .8, .25, 1);
}

html { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5fb;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, .84);
  --panel-solid: #ffffff;
  --line: rgba(91, 33, 182, .16);
  --line-strong: rgba(91, 33, 182, .38);
  --accent: #7c3aed;
  --accent-2: #5b21b6;
  --accent-hot: #8b5cf6;
  --ink: #1d1826;
  --muted: #665f73;
  --dim: #91899e;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  overflow: hidden;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent-2); color: #fff; }

:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 2px; }

/* ==========================================================================
   CARREGAMENTO INICIAL
   ========================================================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(124, 58, 237, .22), transparent 34%),
    linear-gradient(145deg, #0d0914, #050407 70%);
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease), visibility .35s;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(168, 85, 247, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 70%);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(330px, 78vw);
}

.page-loader__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: min(280px, 72vw);
  height: min(280px, 72vw);
}

.page-loader__emblem img {
  position: relative;
  width: min(180px, 48vw);
  height: min(180px, 48vw);
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(168, 85, 247, .75));
  animation: loader-logo .9s var(--ease) both;
}

.page-loader__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168, 85, 247, .28);
}

.page-loader__ring--outer {
  inset: 0;
  border-top-color: var(--accent-hot);
  border-right-color: var(--accent);
  animation: loader-spin 1s linear infinite;
}

.page-loader__ring--inner {
  inset: 12px;
  border-bottom-color: var(--accent);
  animation: loader-spin .8s linear infinite reverse;
}

.page-loader__title {
  margin-top: 16px;
  color: var(--ink);
  font: 800 23px/1 var(--display);
  letter-spacing: .28em;
  text-indent: .28em;
  text-shadow: 0 0 18px rgba(168, 85, 247, .55);
}

.page-loader__status {
  margin-top: 10px;
  color: var(--muted);
  font: 600 11px/1 var(--mono);
  letter-spacing: .16em;
  text-align: center;
}

.page-loader__progress {
  width: 100%;
  height: 2px;
  margin-top: 20px;
  overflow: hidden;
  background: rgba(168, 85, 247, .16);
}

.page-loader__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-hot));
  box-shadow: 0 0 12px var(--accent);
  transform-origin: left;
  animation: loader-progress 1s linear both;
}

@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-logo {
  from { opacity: 0; transform: scale(.82); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes loader-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Barras de rolagem internas */
.stage ::-webkit-scrollbar,
.stage::-webkit-scrollbar { width: 8px; height: 8px; }
.stage ::-webkit-scrollbar-track,
.stage::-webkit-scrollbar-track { background: rgba(255, 255, 255, .03); }
.stage ::-webkit-scrollbar-thumb,
.stage::-webkit-scrollbar-thumb { background: rgba(168, 85, 247, .35); }
.stage ::-webkit-scrollbar-thumb:hover,
.stage::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247, .6); }

/* ==========================================================================
   FUNDO
   ========================================================================== */
/* O fundo ocupa exatamente o viewport e clipa o próprio conteúdo: as camadas
   internas são propositalmente maiores (para o parallax não revelar bordas),
   mas não podem gerar rolagem horizontal no documento. */
.world {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 0%, #150f22 0%, var(--bg) 60%),
    var(--bg);
}

.world__layer {
  position: absolute;
  inset: -8%;
  will-change: transform;
  transition: transform .35s var(--ease);
}

.world__layer--grid {
  background-image:
    linear-gradient(rgba(168, 85, 247, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .07) 1px, transparent 1px),
    linear-gradient(rgba(168, 85, 247, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, .16) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 220px 220px, 220px 220px;
  mask-image: radial-gradient(120% 100% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 25%, transparent 78%);
  opacity: .8;
}

.world__layer--glow {
  background:
    radial-gradient(38% 42% at 14% 22%, rgba(124, 58, 237, .30), transparent 70%),
    radial-gradient(34% 40% at 86% 74%, rgba(168, 85, 247, .22), transparent 72%),
    radial-gradient(26% 30% at 62% 12%, rgba(216, 180, 254, .10), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.4%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(1.6%, 1.4%, 0) scale(1.06); }
}

.world__layer--mark {
  display: grid;
  place-items: center;
}
.world__layer--mark img {
  width: min(74vh, 60vw);
  opacity: .07;
  filter: grayscale(1) contrast(1.35);
  animation: markpulse 9s ease-in-out infinite;
}
@keyframes markpulse {
  0%, 100% { opacity: .055; }
  50%      { opacity: .10; }
}

.world__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, .32) 2px 4px
  );
  opacity: .5;
  mix-blend-mode: multiply;
}
.world__scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28vh;
  background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, .07) 45%, transparent);
  animation: sweep 7.5s linear infinite;
}
@keyframes sweep {
  from { top: -30vh; }
  to   { top: 110vh; }
}

.world__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 85% at 50% 45%, transparent 40%, rgba(0, 0, 0, .78) 100%);
}

.world__noise {
  position: absolute;
  inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.6'/></svg>");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* ==========================================================================
   MOLDURA / HUD
   ========================================================================== */
.hud {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--shell);
  gap: 14px;
  animation: hudin .6s var(--ease) both;
}
@keyframes hudin {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: none; }
}

.hud__corners { position: fixed; inset: 12px; pointer-events: none; z-index: 20; }
.hud__corners .c { position: absolute; width: 26px; height: 26px; border: 2px solid var(--line-strong); }
.c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.c--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.c--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- TOPO ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(20, 15, 30, .82), rgba(12, 9, 18, .6));
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(8px);
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  color: var(--accent-hot);
  background: rgba(168, 85, 247, .08);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(168, 85, 247, .16);
  transform: translateY(-2px);
}
.theme-toggle__ico { grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.theme-toggle__ico--moon { opacity: 0; transform: rotate(-25deg) scale(.72); }
html[data-theme="light"] .theme-toggle__ico--sun { opacity: 0; transform: rotate(25deg) scale(.72); }
html[data-theme="light"] .theme-toggle__ico--moon { opacity: 1; transform: none; }

.topbar__id { display: flex; align-items: center; gap: 14px; min-width: 0; }

.avatar { position: relative; width: 56px; height: 56px; flex: none; }
.avatar img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(168, 85, 247, .65));
}

.topbar__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .16em;
  line-height: 1.1;
}
.topbar__tag { color: var(--accent); font-size: 12px; margin-left: 4px; letter-spacing: .1em; }
.topbar__rank {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c9c4d4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .09em;
  text-shadow: 0 0 12px rgba(168, 85, 247, .18);
}
.rank-pip {
  width: 7px; height: 7px;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Abas */
.tabs { display: flex; gap: 2px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.tab {
  position: relative;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transition: color .2s, background .2s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.tab:hover { color: var(--ink); background: rgba(168, 85, 247, .08); }
.tab:hover::after, .tab.is-active::after { transform: scaleX(1); }
.tab.is-active { color: #fff; background: rgba(168, 85, 247, .14); }

/* Contadores */
.topbar__stats { display: flex; gap: 10px; align-items: center; }
.cstat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .3);
}
.cstat__ico { color: var(--accent); font-size: 14px; }
.cstat__val { font-family: var(--mono); font-size: 20px; color: #fff; line-height: 1; }
.cstat__lbl { font-size: 13px; font-weight: 600; color: #b8b1c7; letter-spacing: .12em; }
.cstat--clock .cstat__val { color: var(--accent-hot); }

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.stage { position: relative; min-height: 0; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-rows: auto 1fr;
  gap: 14px;
  overflow: hidden;
}
.screen.is-active { display: grid; animation: screenin .38s var(--ease) both; }
@keyframes screenin {
  from { opacity: 0; transform: translateY(14px) scale(.995); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.screen.is-out { animation: screenout .2s var(--ease) both; }
@keyframes screenout {
  to { opacity: 0; transform: translateY(-10px); filter: blur(6px); }
}

.screen__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.screen__title {
  font-family: var(--display);
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 800;
  letter-spacing: .17em;
  margin: 0;
}
.screen__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: .04em;
}
.screen__hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .12em;
}

/* ==========================================================================
   O TIME
   ========================================================================== */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 26px;
  align-items: center;
  align-content: safe center;
  overflow: auto;
  padding-right: 4px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .24em;
  margin-bottom: 8px;
}
.eyebrow::before { content: "// "; color: var(--dim); }

/* Marca — logo em destaque ao lado do nome do time */
.intro__brand {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.6vw, 48px);
  margin-bottom: 28px;
}

.emblem {
  position: relative;
  flex: none;
  margin-left: clamp(10px, 1.4vw, 20px);
  width: clamp(150px, 18vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.emblem img {
  position: relative;
  z-index: 2;
  width: 118%;
  max-width: none;
  filter: drop-shadow(0 0 26px rgba(168, 85, 247, .6));
  animation: emblempulse 6s ease-in-out infinite;
}
@keyframes emblempulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(168, 85, 247, .45)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 38px rgba(168, 85, 247, .8)); transform: scale(1.03); }
}

/* A troca de tema dissolve/materializa o logo em uma nuvem curta de fumaça. */
.emblem__smoke {
  position: absolute;
  z-index: 3;
  inset: -18%;
  opacity: 0;
  pointer-events: none;
}
.emblem__smoke i {
  --smoke-x: 0px;
  --smoke-y: -44px;
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  filter: blur(13px);
  background: radial-gradient(circle,
    rgba(216, 180, 254, .82) 0%,
    rgba(168, 85, 247, .48) 34%,
    rgba(91, 33, 182, .12) 68%,
    transparent 76%);
  mix-blend-mode: screen;
}
.emblem__smoke i:nth-child(1) { left: 5%;  top: 45%; --smoke-x: -34px; --smoke-y: -55px; }
.emblem__smoke i:nth-child(2) { left: 26%; top: 24%; --smoke-x: -12px; --smoke-y: -72px; }
.emblem__smoke i:nth-child(3) { left: 48%; top: 36%; --smoke-x:  16px; --smoke-y: -68px; }
.emblem__smoke i:nth-child(4) { left: 62%; top: 52%; --smoke-x:  40px; --smoke-y: -48px; }
.emblem__smoke i:nth-child(5) { left: 33%; top: 61%; --smoke-x:   5px; --smoke-y: -38px; }

.emblem.is-theme-vanishing .emblem__smoke,
.emblem.is-theme-materializing .emblem__smoke { opacity: 1; }
.emblem.is-theme-vanishing .emblem__smoke i,
.emblem.is-theme-materializing .emblem__smoke i {
  animation: emblem-smoke 1s cubic-bezier(.18, .7, .25, 1) both;
}
.emblem.is-theme-vanishing .emblem__smoke i:nth-child(2),
.emblem.is-theme-materializing .emblem__smoke i:nth-child(2) { animation-delay: 40ms; }
.emblem.is-theme-vanishing .emblem__smoke i:nth-child(3),
.emblem.is-theme-materializing .emblem__smoke i:nth-child(3) { animation-delay: 90ms; }
.emblem.is-theme-vanishing .emblem__smoke i:nth-child(4),
.emblem.is-theme-materializing .emblem__smoke i:nth-child(4) { animation-delay: 20ms; }
.emblem.is-theme-vanishing .emblem__smoke i:nth-child(5),
.emblem.is-theme-materializing .emblem__smoke i:nth-child(5) { animation-delay: 120ms; }

html[data-theme="light"] .emblem img {
  opacity: 0;
  transform: scale(.72);
  filter: blur(16px);
  animation: none;
}
html[data-theme="light"] .emblem.is-theme-vanishing img {
  animation: emblem-vanish .72s cubic-bezier(.4, 0, .2, 1) both;
}
html[data-theme="dark"] .emblem.is-theme-materializing img {
  animation: emblem-materialize .88s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes emblem-vanish {
  from { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 30px rgba(168, 85, 247, .72)); }
  to   { opacity: 0; transform: scale(.72); filter: blur(16px) drop-shadow(0 0 4px rgba(168, 85, 247, 0)); }
}
@keyframes emblem-materialize {
  0%   { opacity: 0; transform: scale(.7); filter: blur(18px) drop-shadow(0 0 4px rgba(168, 85, 247, 0)); }
  62%  { opacity: 1; transform: scale(1.06); filter: blur(1px) drop-shadow(0 0 42px rgba(168, 85, 247, .9)); }
  100% { opacity: 1; transform: scale(1); filter: blur(0) drop-shadow(0 0 24px rgba(168, 85, 247, .58)); }
}
@keyframes emblem-smoke {
  0%   { opacity: 0; transform: translate(0, 14px) scale(.35); }
  26%  { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--smoke-x), var(--smoke-y)) scale(1.65); }
}
/* Anel tático girando atrás do emblema */
.emblem__ring {
  position: absolute;
  inset: -10%;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-bottom-color: var(--accent-2);
  border-radius: 50%;
  animation: ringspin 14s linear infinite;
}
.emblem__ring::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(168, 85, 247, .28);
  border-radius: 50%;
}
@keyframes ringspin {
  to { transform: rotate(360deg); }
}

.intro__brandtext { min-width: 0; }

.intro__title {
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .1em;
  margin: 0;
  background: linear-gradient(180deg, #fff 25%, var(--accent-hot) 75%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro__tagline {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--accent-hot);
}

.intro__lead {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 62ch;
  margin: 0 0 18px;
}

/* Efeito glitch no nome */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.glitch::before { color: #ff4dd8; }
.glitch::after { color: #4dd8ff; }
.glitch.is-glitching::before { animation: gl-a .35s steps(2) 1; opacity: .8; }
.glitch.is-glitching::after  { animation: gl-b .35s steps(2) 1; opacity: .8; }
@keyframes gl-a {
  0%   { transform: translate(0); clip-path: inset(0 0 70% 0); }
  33%  { transform: translate(-4px, 1px); clip-path: inset(45% 0 25% 0); }
  66%  { transform: translate(3px, -2px); clip-path: inset(70% 0 5% 0); }
  100% { transform: translate(0); clip-path: inset(0 0 100% 0); }
}
@keyframes gl-b {
  0%   { transform: translate(0); clip-path: inset(60% 0 10% 0); }
  33%  { transform: translate(4px, -1px); clip-path: inset(10% 0 60% 0); }
  66%  { transform: translate(-3px, 2px); clip-path: inset(30% 0 40% 0); }
  100% { transform: translate(0); clip-path: inset(100% 0 0 0); }
}

/* Números de destaque */
.factgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.fact {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(20, 15, 30, .7), rgba(20, 15, 30, .2));
}
.fact b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.fact span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
}

.intro__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.intro__cta .btn { width: auto; min-width: 220px; padding: 13px 15px; font-size: 14px; letter-spacing: .18em; }

/* Pilares */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.pillar { display: grid; gap: 5px; }
.pillar b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
}
.pillar span { font-size: 17px; font-weight: 500; color: var(--muted); line-height: 1.55; }

/* Coluna lateral */
.intro__side { display: grid; gap: 14px; align-content: start; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: 16px;
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.panel__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.panel__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .17em;
}

.pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  color: var(--accent-hot);
  letter-spacing: .12em;
  white-space: nowrap;
}
.pill--live::before {
  content: "●";
  margin-right: 5px;
  color: var(--ok);
  animation: blink 1.6s infinite;
}

.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.matchup__side {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.matchup__logo { width: 62px; filter: drop-shadow(0 0 14px rgba(168, 85, 247, .6)); }
.matchup__unknown {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border: 1px dashed var(--dim);
  color: var(--dim);
  font-size: 26px;
}
.matchup__side--tbd { color: var(--muted); }
.matchup__vs {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.matchup__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
  margin-bottom: 14px;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 7px;
  background: rgba(168, 85, 247, .16);
  border: 1px solid var(--line);
  color: var(--accent-hot);
  letter-spacing: .1em;
}
.tag--ghost { background: none; color: var(--muted); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.countdown__cell {
  display: grid;
  justify-items: center;
  padding: 8px 4px;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--line);
}
.countdown__cell b { font-family: var(--mono); font-size: 21px; color: #fff; font-weight: 400; }
.countdown__cell i { font-style: normal; font-size: 10px; color: var(--dim); letter-spacing: .16em; }

.btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .22em;
  border: 1px solid var(--accent);
  color: #fff;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: color .2s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
/* Preenchimento que desliza por trás do texto (z-index negativo no
   contexto de empilhamento do próprio botão). */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: translateX(-101%);
  transition: transform .3s var(--ease);
}
.btn:hover::before { transform: none; }
.btn--primary { background: rgba(168, 85, 247, .14); }
.btn--ghost { border-color: var(--line-strong); color: var(--muted); }
.btn--ghost:hover { color: #fff; }
.btn:disabled { opacity: .55; cursor: progress; }

/* Elenco resumido na lateral */
.panel--roster .panel__title {
  font-size: 14px;
  letter-spacing: .14em;
}
.panel--roster .pill {
  font-size: 10px;
  letter-spacing: .1em;
}
.minroster { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.minrow {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border-left: 2px solid transparent;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.minrow:hover {
  background: rgba(168, 85, 247, .12);
  border-left-color: var(--accent-hot);
  transform: translateX(5px);
}
.minrow__face {
  position: relative;
  width: 46px; height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .4);
}
.minrow__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.minrow__id { min-width: 0; }
.minrow__nick {
  display: block;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* ==========================================================================
   PLAYERS
   ========================================================================== */
.oplayout {
  position: relative;
  min-height: 0;
  overflow: auto;
}

.opgrid {
  --gap: 14px;
  --card-w: clamp(135px, 12vw, 185px);
  display: grid;
  grid-template-columns: repeat(7, var(--card-w));
  grid-auto-rows: minmax(0, 1fr);
  justify-content: center;
  align-content: start;
  align-items: stretch;
  gap: var(--gap);
  min-width: 0;
  height: 100%;
  padding: 8px 0 24px;
}

.opdetail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 390;
  border: 0;
  background: rgba(3, 2, 7, .64);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), visibility .25s;
  backdrop-filter: blur(3px);
}
.opdetail-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.opcard {
  position: relative;
  min-height: 0;
  width: var(--card-w);
  height: 100%;
  align-self: stretch;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 20, 46, .8), rgba(10, 7, 16, .95));
  overflow: hidden;
  text-align: left;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
/* Gradiente que garante leitura do nome sobre a foto */
.opcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 6, 10, .1) 30%, rgba(7, 6, 10, .92));
}
.opcard:hover, .opcard:focus-visible {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(124, 58, 237, .3);
}

/* Avatar Ubisoft usado como fundo do card */
.opcard__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 50% 35%, rgba(124, 58, 237, .28), transparent 72%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 6px, transparent 6px 12px);
}
.opcard__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(1) contrast(1.08) brightness(.8);
  transform: scale(var(--photo-scale, 1.27));
  transition: transform .45s var(--ease), filter .3s;
}
.opcard:hover .opcard__img, .opcard:focus-visible .opcard__img {
  transform: scale(var(--photo-hover-scale, 1.36));
}
.opcard:hover .opcard__img, .opcard:focus-visible .opcard__img {
  filter: grayscale(0) contrast(1.1) brightness(.95);
}

.opcard__rank {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1px;
  pointer-events: none;
}
.opcard__rank img {
  width: clamp(46px, 3.8vw, 56px);
  height: clamp(46px, 3.8vw, 56px);
  object-fit: contain;
  filter: grayscale(1) drop-shadow(0 4px 10px rgba(0, 0, 0, .8));
  transition: filter .3s var(--ease);
}
.opcard:hover .opcard__rank img,
.opcard:focus-visible .opcard__rank img {
  filter: grayscale(0) drop-shadow(0 4px 10px rgba(0, 0, 0, .8));
}
.opcard__rank small {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 5px;
  background: rgba(7, 6, 10, .76);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.opcard__foot {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 14px;
  z-index: 2;
  text-align: center;
}
.opcard__nick {
  font-family: var(--display);
  /* Acompanha o tamanho do card, que varia com a altura da tela */
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 800;
  letter-spacing: .1em;
  display: block;
  line-height: 1.15;
}
.opcard__bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
  z-index: 3;
}
.opcard:hover .opcard__bar, .opcard:focus-visible .opcard__bar { transform: none; }

/* Perfil do jogador */
.opdetail {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  width: min(390px, calc(100vw - 36px));
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  padding: 48px 18px 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 28px));
  box-shadow: -24px 0 80px rgba(0, 0, 0, .58), 0 0 0 1px rgba(168, 85, 247, .08);
  transition: transform .32s var(--ease), opacity .25s, visibility .32s;
}
.opdetail.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}
.opdetail__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: rgba(8, 5, 13, .82);
  color: #fff;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1;
  transition: border-color .2s, background .2s;
}
.opdetail__close:hover,
.opdetail__close:focus-visible {
  border-color: var(--accent-hot);
  background: rgba(168, 85, 247, .2);
}
.opdetail__portrait {
  position: relative;
  height: 176px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(124, 58, 237, .3), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 6px, transparent 6px 12px);
}
.opdetail__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(.72) contrast(1.08);
}
.opdetail__scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-hot), transparent);
  animation: opscan 3.2s linear infinite;
  z-index: 2;
}
@keyframes opscan {
  from { top: -4px; }
  to   { top: 178px; }
}

.opdetail__nick {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .1em;
}
.opdetail__name { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.opdetail__bio { font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1.6; }

.oprank {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 7px 11px;
  border: 1px solid rgba(168, 85, 247, .34);
  background: linear-gradient(100deg, rgba(28, 12, 48, .92), rgba(3, 3, 7, .88));
  backdrop-filter: blur(8px);
}
.oprank[hidden] { display: none; }
.oprank__image {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  object-fit: contain;
  filter: drop-shadow(0 5px 13px rgba(0, 0, 0, .72));
}
.oprank__copy { min-width: 0; display: grid; gap: 2px; }
.oprank__label {
  color: var(--accent-hot);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}
.oprank__name {
  color: #fff;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.oprank__meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.opstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.opstat {
  position: relative;
  min-width: 0;
  padding: 9px 10px 8px 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .025);
  display: grid;
  gap: 3px;
}
.opstat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(var(--accent-hot), var(--accent-2));
  box-shadow: 0 0 8px rgba(168, 85, 247, .55);
}
.opstat__label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}
.opstat__value {
  overflow: hidden;
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  text-overflow: ellipsis;
}

.opdetail__foot { display: flex; flex-wrap: wrap; gap: 8px; }
#opSince {
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .12em;
}

.opdetail__links { display: flex; flex-wrap: wrap; gap: 8px; }
.opdetail__links:empty { display: none; }
.oplink {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  color: var(--accent-hot);
  transition: background .2s, color .2s;
}
.oplink:hover { background: rgba(168, 85, 247, .18); color: #fff; }

/* ==========================================================================
   FUNDAMENTOS
   ========================================================================== */
/* Grade fluida: os cards crescem conforme a lista em DATA.fundamentos
   aumenta, sem precisar de --rows como na grade fechada dos players. */
.fungrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-content: start;
  padding: 8px 0 24px;
  overflow: auto;
}

.funcard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 20, 46, .8), rgba(10, 7, 16, .95));
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.funcard:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(124, 58, 237, .3);
}

/* Arte de fundo — mesma imagem do hero da página que o card abre.
   Nasce dessaturada e ganha cor no hover, como os cards de operador. */
.funcard__thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.funcard__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Centraliza o corte no operador e no defuser, à direita do quadro */
  object-position: 55% center;
  filter: grayscale(.65) contrast(1.05);
  transition: transform .45s var(--ease), filter .3s;
}
.funcard:hover .funcard__thumb img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.08);
}
/* Véu que garante a leitura do texto sobre a arte */
.funcard__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 10, .55) 0%, rgba(7, 6, 10, .8) 45%, rgba(7, 6, 10, .96) 100%);
}

.funcard__num {
  position: absolute;
  top: 16px; left: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
/* Seta de link externo: sinaliza que o card sai para outra aba */
.funcard__ext {
  position: absolute;
  top: 14px; right: 20px;
  z-index: 2;
  font-size: 16px;
  color: var(--muted);
  transition: color .25s, transform .25s var(--ease);
}
.funcard:hover .funcard__ext { color: var(--accent-hot); transform: translate(3px, -3px); }

/* position/z-index sobem o texto acima da arte de fundo */
.funcard__body { display: block; position: relative; z-index: 2; }
.funcard__eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 10px;
}
.funcard__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 10px;
}
.funcard__lead {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.funcard__foot {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--dim);
  transition: color .25s;
}
.funcard:hover .funcard__foot { color: var(--accent-hot); }

.funcard__bar {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-hot));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.funcard:hover .funcard__bar { transform: scaleX(1); }

/* ==========================================================================
   TREINOS
   ========================================================================== */
.agenda {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  padding-right: 6px;
}

.slot {
  display: grid;
  grid-template-columns: 76px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  background: linear-gradient(90deg, rgba(20, 15, 30, .7), rgba(20, 15, 30, .25));
  transition: all .22s var(--ease);
}
.slot:hover {
  border-left-color: var(--accent-hot);
  background: linear-gradient(90deg, rgba(168, 85, 247, .16), rgba(20, 15, 30, .25));
  transform: translateX(8px);
}
.slot__day {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent-hot);
}
.slot__time { font-family: var(--mono); font-size: 17px; color: #fff; }
.slot__act { font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.slot__note { font-size: 13px; color: var(--muted); }
.slot__type { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }

/* ==========================================================================
   HISTÓRICO
   ========================================================================== */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-content: start;
  overflow: auto;
  padding-right: 6px;
}

.report {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s;
}
.report:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.report::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 70%);
}
.report__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.report__title {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
}
.report__meta {
  font-family: var(--mono);
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}
.report__detail { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.comms {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-content: start;
  align-items: start;
  overflow: auto;
  padding-right: 6px;
}
.commscol { display: grid; gap: 16px; align-content: start; }

/* A página de contato concentra mais texto funcional; a escala abaixo
   privilegia leitura sem alterar a hierarquia das demais telas. */
.screen[data-screen="contact"] .screen__title { font-size: clamp(21px, 2.5vw, 27px); }
.screen[data-screen="contact"] .screen__sub {
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}
.screen[data-screen="contact"] .screen__hint {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
}
.screen[data-screen="contact"] .panel { padding: 19px; }
.screen[data-screen="contact"] .panel__title {
  font-size: 17px;
  letter-spacing: .17em;
}
.screen[data-screen="contact"] .panel__head { margin-bottom: 17px; }
.screen[data-screen="contact"] .comms,
.screen[data-screen="contact"] .commscol { gap: 19px; }

.freqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.freqs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-left: 2px solid var(--line);
  background: rgba(0, 0, 0, .25);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .14em;
  transition: all .22s var(--ease);
}
.freqs a:hover {
  border-color: var(--line-strong);
  border-left-color: var(--accent-hot);
  background: rgba(168, 85, 247, .12);
  transform: translateX(8px);
}
.freqs__ico { color: var(--accent); font-size: 16px; }
.freqs i {
  margin-left: auto;
  font-family: var(--ui);
  font-style: normal;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}

.intel { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.intel li { display: grid; gap: 5px; }
.intel b {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .14em;
  font-weight: 600;
}
.contactvalue {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .04em;
  border-bottom: 1px solid transparent;
  justify-self: start;
  transition: color .2s, border-color .2s;
}
.contactvalue:hover { color: var(--accent-hot); border-bottom-color: var(--accent); }

.form { display: grid; gap: 15px; }
.form label { display: grid; gap: 7px; }
.form label span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent);
}
.form input, .form select, .form textarea {
  padding: 13px 14px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid var(--line);
  outline: none;
  font-size: 17px;
  line-height: 1.35;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--accent);
  background: rgba(168, 85, 247, .08);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, .3), 0 0 18px rgba(168, 85, 247, .18);
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: .82; }
.form select option { background: var(--panel-solid); }
.form .btn { margin-top: 4px; font-size: 14px; }

.formhint {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .03em;
  line-height: 1.55;
  margin: 0;
}
.formhint.is-ok { color: var(--ok); }
.formhint.is-err { color: var(--danger); }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.bottombar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-2);
  background: linear-gradient(180deg, rgba(12, 9, 18, .6), rgba(20, 15, 30, .82));
  backdrop-filter: blur(8px);
}

.footid { display: grid; min-width: 0; }
.footid__mark {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .24em;
}
.footid__note { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.footlinks { display: flex; gap: 6px; flex-wrap: wrap; }
.footlink {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .2s;
}
.footlink:hover { color: #fff; border-color: var(--accent); background: rgba(168, 85, 247, .14); }

/* Player da trilha */
.jukebox { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.jb__btn {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all .2s;
}
.jb__btn:hover { color: #fff; border-color: var(--accent); background: rgba(168, 85, 247, .14); }
.jb__btn:disabled { opacity: .35; cursor: not-allowed; }
.jb__btn--main { width: 36px; height: 36px; color: var(--accent-hot); border-color: var(--line-strong); }

.jb__ico--pause { display: none; }
.jukebox.is-playing .jb__ico--play { display: none; }
.jukebox.is-playing .jb__ico--pause { display: block; }

.jb__info { display: grid; min-width: 130px; max-width: 210px; }
.jb__label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .14em; }
.jb__track {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jb__vol {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  height: 4px;
  background: rgba(255, 255, 255, .12);
  outline: none;
}
.jb__vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: var(--accent-hot);
  border: 1px solid #000;
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
}
.jb__vol::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 0;
  background: var(--accent-hot);
  border: 1px solid #000;
  box-shadow: 0 0 10px var(--accent);
  cursor: pointer;
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  z-index: 900;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  background: rgba(20, 15, 30, .95);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  opacity: 0;
  transition: all .3s var(--ease);
  pointer-events: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { border-color: var(--danger); color: #fca5a5; }

/* ==========================================================================
   TEMA CLARO
   ========================================================================== */
html[data-theme="light"] body {
  background: var(--bg);
}
html[data-theme="light"] .page-loader {
  background:
    radial-gradient(circle at 50% 45%, rgba(124, 58, 237, .14), transparent 36%),
    linear-gradient(145deg, #fff, #f2eef9 72%);
}
html[data-theme="light"] .world {
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--bg) 66%),
    var(--bg);
}
html[data-theme="light"] .world__layer--grid { opacity: .52; }
html[data-theme="light"] .world__layer--glow {
  opacity: .48;
  filter: saturate(.72);
}
html[data-theme="light"] .world__layer--mark img { opacity: .035; }
html[data-theme="light"] .world__scan {
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(54, 35, 78, .035) 2px 4px);
  opacity: .45;
}
html[data-theme="light"] .world__vignette {
  background: radial-gradient(110% 85% at 50% 45%, transparent 48%, rgba(91, 33, 182, .08) 100%);
}
html[data-theme="light"] .topbar,
html[data-theme="light"] .bottombar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(247, 245, 251, .78));
  box-shadow: 0 10px 34px rgba(45, 30, 70, .06);
}
html[data-theme="light"] .topbar__rank {
  color: #4d4659;
  text-shadow: none;
}
html[data-theme="light"] .theme-toggle {
  color: var(--accent-2);
  background: #fff;
  box-shadow: 0 7px 18px rgba(45, 30, 70, .08);
}
html[data-theme="light"] .tab.is-active {
  color: var(--accent-2);
  background: rgba(124, 58, 237, .09);
}
html[data-theme="light"] .cstat {
  background: rgba(255, 255, 255, .78);
}
html[data-theme="light"] .cstat__val,
html[data-theme="light"] .fact b,
html[data-theme="light"] .countdown__cell b,
html[data-theme="light"] .slot__time,
html[data-theme="light"] .report__meta,
html[data-theme="light"] .opstat__value {
  color: var(--ink);
}
html[data-theme="light"] .cstat__lbl { color: #5f576b; }
html[data-theme="light"] .intro__title {
  background: linear-gradient(180deg, #21182e 18%, var(--accent-2) 72%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .intro__tagline,
html[data-theme="light"] .pill,
html[data-theme="light"] .tag,
html[data-theme="light"] .oplink,
html[data-theme="light"] .jb__btn--main {
  color: var(--accent-2);
}
html[data-theme="light"] .fact,
html[data-theme="light"] .slot {
  background: linear-gradient(90deg, rgba(255, 255, 255, .92), rgba(245, 241, 250, .72));
}
html[data-theme="light"] .panel,
html[data-theme="light"] .report,
html[data-theme="light"] .opdetail {
  box-shadow: 0 16px 42px rgba(45, 30, 70, .08);
}
html[data-theme="light"] .countdown__cell,
html[data-theme="light"] .freqs a,
html[data-theme="light"] .form input,
html[data-theme="light"] .form select,
html[data-theme="light"] .form textarea,
html[data-theme="light"] .opstat {
  background: rgba(255, 255, 255, .82);
}
html[data-theme="light"] .btn {
  color: var(--accent-2);
  background: rgba(124, 58, 237, .06);
}
html[data-theme="light"] .btn:hover { color: #fff; }
html[data-theme="light"] .opdetail-backdrop { background: rgba(35, 24, 48, .28); }
html[data-theme="light"] .opdetail__close {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
}
html[data-theme="light"] .opstat { border-color: var(--line); }
html[data-theme="light"] .opcard__nick,
html[data-theme="light"] .funcard__title,
html[data-theme="light"] .oprank__name { color: #fff; }
html[data-theme="light"] .funcard__lead,
html[data-theme="light"] .funcard__foot,
html[data-theme="light"] .oprank__meta { color: rgba(255, 255, 255, .7); }
html[data-theme="light"] .slot:hover {
  background: linear-gradient(90deg, rgba(124, 58, 237, .11), rgba(255, 255, 255, .86));
}
html[data-theme="light"] .form input:focus,
html[data-theme="light"] .form select:focus,
html[data-theme="light"] .form textarea:focus { background: #fff; }
html[data-theme="light"] .footlink:hover,
html[data-theme="light"] .jb__btn:hover { color: var(--accent-2); }
html[data-theme="light"] .jb__vol { background: rgba(91, 33, 182, .16); }
html[data-theme="light"] .toast {
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(45, 30, 70, .12);
}
html[data-theme="light"] .stage::-webkit-scrollbar-track,
html[data-theme="light"] .stage ::-webkit-scrollbar-track { background: rgba(91, 33, 182, .06); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1180px) {
  .intro { grid-template-columns: 1fr; align-content: start; }
  .comms { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --shell: 12px; }

  html, body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .hud {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .hud__corners { display: none; }

  .topbar { position: relative; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px; text-align: center; }
  .topbar__id { width: 100%; justify-content: center; }
  .theme-toggle { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; }
  .tabs { order: 3; width: 100%; }
  .tab { font-size: 12px; padding: 8px 10px; }
  .topbar__stats { width: 100%; justify-content: center; gap: 4px; }
  .cstat { gap: 5px; padding: 6px 8px; }
  .cstat__val { font-size: 16px; }
  .cstat__lbl { font-size: 10px; letter-spacing: .07em; }

  .stage {
    min-height: 0;
    overflow: hidden;
  }

  .screen { position: absolute; inset: 0; }
  .screen:not(.is-active) { display: none; }
  .screen.is-active { display: grid; }

  .screen__head { gap: 3px 10px; padding-bottom: 6px; }
  .screen__sub {
    flex: 1 1 100%;
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }
  .screen__title,
  .screen[data-screen="contact"] .screen__title { font-size: 19px; }
  .screen__sub,
  .screen[data-screen="contact"] .screen__sub { font-size: 14px; }
  .screen[data-screen="contact"] .freqs a { flex-wrap: wrap; }
  .screen[data-screen="contact"] .freqs i {
    flex-basis: 100%;
    margin-left: 28px;
    text-align: left;
  }
  .screen__hint,
  .screen[data-screen="contact"] .screen__hint { margin-left: 0; width: 100%; font-size: 10px; }

  .intro, .oplayout, .agenda, .results, .comms {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .intro::-webkit-scrollbar,
  .oplayout::-webkit-scrollbar,
  .agenda::-webkit-scrollbar,
  .results::-webkit-scrollbar,
  .comms::-webkit-scrollbar { display: none; }
  .opgrid { overflow: visible; }

  .opgrid {
    --gap: clamp(3px, 1vw, 8px);
    --card-w: min(21.5vw, 170px);
    grid-template-columns: repeat(8, calc((var(--card-w) - var(--gap)) / 2));
    grid-auto-rows: max-content;
    justify-content: center;
    align-content: start;
    align-items: start;
    height: auto;
    gap: var(--gap);
    padding: 2px 0 6px;
  }
  .opcard { grid-column: span 2; width: var(--card-w); height: auto; aspect-ratio: 9 / 16; align-self: start; }
  .opcard:nth-child(5) { grid-column: 2 / span 2; }
  .opcard:nth-child(6) { grid-column: 4 / span 2; }
  .opcard:nth-child(7) { grid-column: 6 / span 2; }
  .opcard:hover,
  .opcard:focus-visible { transform: translateY(-2px); }
  .opcard__rank {
    top: auto;
    left: 0;
    right: 0;
    bottom: clamp(24px, 8vw, 40px);
  }
  .opcard__rank img {
    width: clamp(22px, 8.5vw, 58px);
    height: clamp(22px, 8.5vw, 58px);
  }
  .opcard__rank small {
    max-width: calc(var(--card-w) - 4px);
    padding: 1px 2px;
    font-size: clamp(7px, 1.6vw, 10px);
    letter-spacing: .03em;
  }
  .opcard__foot {
    left: 3px;
    right: 3px;
    bottom: clamp(4px, 1.5vw, 12px);
  }
  .opcard__nick { font-size: clamp(10px, 3vw, 19px); letter-spacing: .04em; }
  .opcard__bar { height: 2px; }

  .opdetail { top: 12px; right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .opdetail__portrait { height: 160px; }
  @keyframes opscan { from { top: -4px; } to { top: 162px; } }

  .intro__brand { flex-direction: column; gap: 20px; text-align: center; }
  .emblem { margin-left: 0; }
  .intro__cta .btn { min-width: 0; flex: 1; }

  .slot { grid-template-columns: 60px 1fr; gap: 6px 12px; }
  .slot__type { grid-column: 1 / -1; }

  .bottombar { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px 8px; text-align: center; }
  .footid { justify-items: center; }
  .footid__note { max-width: 100%; font-size: 12px; line-height: 1.3; }
  .footlink { padding: 4px 8px; font-size: 10px; }
  .jukebox { margin: 0 auto; }
  .jb__vol { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
