/* ===============================================================
   BOMBA PATCH DEV — Currículo Risoaldo Nóbrega
   Paleta: fundo azul-claro central + painéis metálicos escuros
   Estética Winning Eleven / Bomba Patch PS2
   =============================================================== */

/* -------------------- RESET & TOKENS -------------------- */
:root {
  /* fundo azul-claro "mesa do menu" */
  --table-blue-1: #7ba9cc;    /* azul médio claro (centro) */
  --table-blue-2: #9ec2de;    /* azul claro luminoso */
  --table-blue-3: #5a85a8;    /* azul médio escuro (bordas) */
  --table-blue-4: #3d6a8e;    /* azul mais escuro (vinheta) */
  --table-ink: #0f2638;        /* texto escuro sobre azul */

  /* painéis metálicos (laterais dos times) */
  --bg-deep: #050608;
  --panel-gray-1: #1f252d;
  --panel-gray-2: #2a313a;
  --panel-gray-3: #3a424d;
  --panel-gray-4: #555d68;
  --panel-border: #7a828e;
  --panel-border-lit: #b3bcc7;

  /* temas dos times */
  --t-blue-1: #0a2a63;
  --t-blue-2: #1a4eb0;
  --t-blue-3: #3d7ae0;
  --t-blue-light: #6ea8ff;

  --t-red-1: #3a0812;
  --t-red-2: #78152a;
  --t-red-3: #b5243f;
  --t-red-light: #ff5a7a;

  --t-gold-1: #1b2510;
  --t-gold-2: #3f4e1f;
  --t-gold-3: #a88b1d;
  --t-gold-light: #f2d24a;

  /* acentos */
  --text-main: #e9ecef;
  --text-dim: #a5adb5;
  --text-muted: #6c7480;
  --accent-yellow: #ffd23a;
  --accent-cyan: #4fd1ff;
  --accent-green: #3aff8a;
  --accent-red: #ff3b4a;
  --accent-purple: #c56bff;

  /* posições (igual imagem 2: GOL/ZAC/LD/LE/MLC/VOL/MLD/MLE/CA) */
  --pos-gol: #f2c32c;  /* amarelo */
  --pos-zac: #2a82ff;  /* azul */
  --pos-ld:  #37b8ff;  /* azul claro */
  --pos-le:  #37b8ff;
  --pos-mlc: #34d466;  /* verde */
  --pos-vol: #2abd59;  /* verde escuro */
  --pos-mld: #34d466;
  --pos-mle: #34d466;
  --pos-ca:  #ff4d4d;  /* vermelho */

  --radius-panel: 4px;
  --radius-inner: 2px;

  --ff-display: 'Press Start 2P', system-ui;
  --ff-ui: 'Oswald', 'Rajdhani', sans-serif;
  --ff-mono: 'VT323', monospace;
  --ff-body: 'Rajdhani', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  /* fundo azul-claro "mesa do menu Bomba Patch" */
  background:
    radial-gradient(ellipse 85% 70% at 50% 45%,
      var(--table-blue-2) 0%,
      var(--table-blue-1) 40%,
      var(--table-blue-3) 85%,
      var(--table-blue-4) 100%),
    var(--table-blue-3);
  color: var(--text-main);
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  min-height: 100vh;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
}

/* textura sutil de ruído sobre o fundo azul */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06  0 0 0 0 0.1  0 0 0 0 0.14  0 0 0 0.25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: 1;
}

/* linhas tênues do "campo de fundo" (igual imagem de ref) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 50%, transparent 180px, rgba(255,255,255,0.06) 181px, transparent 182px),
    linear-gradient(to right, transparent 0 49.7%, rgba(255,255,255,0.06) 49.7% 50.3%, transparent 50.3%);
  opacity: 0.6;
}

/* -------------------- MENU CENTRAL DECORATIVO -------------------- */
.menu-backdrop {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: min(340px, 70vw);
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
  filter: blur(0.4px);
}
.menu-box {
  background: linear-gradient(180deg, rgba(68, 98, 134, 0.55), rgba(42, 68, 96, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.menu-title {
  background: linear-gradient(180deg, #3d6589 0%, #24425e 100%);
  color: #fff;
  text-align: center;
  padding: 4px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}
.menu-items {
  list-style: none;
  padding: 10px 14px 6px;
}
.menu-items li {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  padding: 2px 0;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}
.menu-items li.active {
  background: rgba(255,255,255,0.18);
  padding-left: 4px;
}
.menu-items li.menu-checkbox {
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin-top: 4px;
  padding-top: 4px;
}
.menu-hint {
  font-family: var(--ff-body);
  font-size: 13px;
  color: #fff;
  padding: 6px 14px 10px;
  line-height: 1.3;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
  border-top: 1px dashed rgba(255,255,255,0.3);
}

/* -------------------- EFEITOS CRT -------------------- */
.crt-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: radial-gradient(ellipse at center,
    transparent 55%, rgba(0,0,0,0.3) 92%, rgba(0,0,0,0.55) 100%);
}
.crt-scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 998;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.04) 0px,
    rgba(0,0,0,0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}
.crt-flicker {
  position: fixed; inset: 0; pointer-events: none; z-index: 997;
  background: rgba(255, 255, 255, 0.015);
  animation: flicker 0.15s infinite;
}
@keyframes flicker {
  0%   { opacity: 0.25; }
  30%  { opacity: 0.55; }
  50%  { opacity: 0.30; }
  80%  { opacity: 0.55; }
  100% { opacity: 0.35; }
}

/* -------------------- HEADER / LOGO -------------------- */
.top-bar {
  position: relative;
  z-index: 3;
  margin: 8px auto 18px;
  max-width: 1320px;
  padding: 12px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background:
    linear-gradient(180deg, #1a1f27 0%, #0c1015 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 0 0 1px #000,
    0 6px 20px rgba(0,0,0,0.45);
  overflow: hidden;
}
.top-bar::before,
.top-bar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  pointer-events: none;
}
.top-bar::before {
  left: 0;
  background: linear-gradient(90deg, var(--t-blue-2), transparent);
  opacity: 0.4;
}
.top-bar::after {
  right: 0;
  background: linear-gradient(-90deg, var(--t-red-2), transparent);
  opacity: 0.4;
}

.top-deco {
  flex: 0 0 80px;
  height: 48px;
  position: relative;
}
.top-deco.left {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 60%, transparent),
    repeating-linear-gradient(135deg, rgba(255,215,58,0.2) 0 6px, transparent 6px 12px);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
}
.top-deco.right {
  background:
    linear-gradient(-90deg, transparent, rgba(255,255,255,0.12) 60%, transparent),
    repeating-linear-gradient(45deg, rgba(255,215,58,0.2) 0 6px, transparent 6px 12px);
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}

.logo-wrap {
  text-align: center;
  z-index: 2;
  position: relative;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-display);
  letter-spacing: 0.02em;
}
.logo-bomba {
  font-size: clamp(22px, 4.5vw, 40px);
  color: #fff;
  text-shadow:
    0 0 1px #fff,
    2px 2px 0 #000,
    4px 4px 0 rgba(0,0,0,0.4);
}
.logo-patch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #000;
  padding: 6px 14px 4px;
  border-radius: 3px;
  box-shadow:
    2px 2px 0 #000,
    inset 0 -2px 0 rgba(0,0,0,0.15);
  transform: skewX(-4deg);
}
.patch-text {
  font-size: clamp(18px, 3.6vw, 32px);
  font-family: var(--ff-display);
  letter-spacing: 0;
}
.patch-paw {
  font-size: clamp(14px, 2.6vw, 22px);
  margin-left: 4px;
}

.logo-subrow {
  margin-top: 6px;
}
.logo-dev {
  display: inline-block;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: clamp(11px, 1.8vw, 16px);
  letter-spacing: 0.55em;
  color: var(--accent-yellow);
  padding: 3px 12px;
  border: 1px solid rgba(255,210,58,0.55);
  background: rgba(255,210,58,0.08);
  text-shadow: 0 0 8px rgba(255,210,58,0.4);
}
.tagline {
  margin-top: 8px;
  font-family: var(--ff-mono);
  font-size: clamp(13px, 1.6vw, 17px);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* -------------------- BIO BAR -------------------- */
.bio-bar {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: linear-gradient(180deg, #222933 0%, #12161c 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 4px 12px rgba(0,0,0,0.45);
  overflow: hidden;
}
.bio-cell {
  padding: 8px 14px;
  border-right: 1px solid rgba(122,130,142,0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
}
.bio-cell:last-child { border-right: 0; }
.bio-label {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.bio-value {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-main);
  letter-spacing: 0.04em;
}
.bio-overall {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(255,210,58,0.5);
}
.bio-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
}
.status-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green), 0 0 2px #fff inset;
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}

/* -------------------- CONTAINER DOS PAINÉIS -------------------- */
.teams-container {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* -------------------- PAINEL DE TIME -------------------- */
.team-panel {
  position: relative;
  background: linear-gradient(180deg, #1e242d 0%, #0d1116 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 0 0 1px #000,
    0 6px 18px rgba(0,0,0,0.45);
  overflow: hidden;
  outline: none;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
/* brilho quando painel selecionado via teclado/hover */
.team-panel.is-selected {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    0 0 0 2px var(--accent-yellow),
    0 0 22px rgba(255,210,58,0.45),
    0 6px 18px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}

/* === Cabeçalho do time === */
.team-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #2e3542 0%, #1a1f28 100%);
  border-bottom: 1px solid var(--panel-border);
  overflow: hidden;
}
.team-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 20%, transparent 40%);
  animation: shimmer 6s linear infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.team-crest {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 3px;
  position: relative;
  z-index: 1;
}
.crest-blue  svg polygon { filter: drop-shadow(0 0 4px rgba(61,122,224,0.5)); }
.crest-red   svg circle  { filter: drop-shadow(0 0 4px rgba(181,36,63,0.5)); }
.crest-gold  svg path    { filter: drop-shadow(0 0 4px rgba(242,210,74,0.5)); }

.team-name {
  position: relative;
  z-index: 1;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.04em;
  color: #fff;
  flex: 1;
  text-shadow: 1px 1px 0 #000;
  font-style: italic;
}
.team-name span {
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* badge TITULAR / RESERVAS / CARREIRA */
.panel-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 3px 8px 2px;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #0b0d10;
  background: var(--accent-yellow);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 -2px 0 rgba(0,0,0,0.2);
  text-shadow: none;
}
.panel-badge.badge-bench {
  background: #d4d9e0;
  color: #1a1f28;
}
.panel-badge.badge-career {
  background: var(--t-gold-light);
  color: #1a1500;
}

/* cores por tema (cabeçalho + detalhes) */
.theme-blue .team-head {
  background: linear-gradient(180deg, var(--t-blue-2) 0%, var(--t-blue-1) 100%);
  border-bottom-color: var(--t-blue-light);
}
.theme-red .team-head {
  background: linear-gradient(180deg, var(--t-red-2) 0%, var(--t-red-1) 100%);
  border-bottom-color: var(--t-red-light);
}
.theme-gold .team-head {
  background: linear-gradient(180deg, var(--t-gold-2) 0%, var(--t-gold-1) 100%);
  border-bottom-color: var(--t-gold-light);
}

/* === Barra de formação === */
.formation-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: linear-gradient(180deg, #0f2a5a, #081a3a);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 14px;
  color: #dde7ff;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.theme-red .formation-bar {
  background: linear-gradient(180deg, #5a0f1b, #2e050c);
  color: #ffd6de;
}
.theme-gold .formation-bar {
  background: linear-gradient(180deg, #3a2e0a, #1a1505);
  color: #fff3c2;
}
.formation-label {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
}

/* hints de botões L1/L2/R1/R2 */
.btn-hint {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 18px;
  padding: 0 6px;
  background: linear-gradient(180deg, #e6e6e6 0%, #8f8f8f 100%);
  color: #111;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 11px;
  border-radius: 9px;
  border: 1px solid #222;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
  letter-spacing: 0.06em;
}
.btn-hint.hint-l { border-top-right-radius: 2px; border-bottom-right-radius: 2px; }
.btn-hint.hint-r { border-top-left-radius: 2px; border-bottom-left-radius: 2px; }
.btn-hint.active {
  background: linear-gradient(180deg, #ffe86a 0%, #c99a08 100%);
  color: #1b1400;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.35), 0 0 8px rgba(255,210,58,0.6);
}

/* === Mini Campo === */
.mini-field {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background:
    linear-gradient(180deg, #184d15 0%, #0d3410 100%);
  overflow: hidden;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}
.mini-field::before {
  /* listras do gramado */
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.04) 0 12%,
      transparent 12% 25%
    );
  pointer-events: none;
}
.mini-field svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.field-lines {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 0.8;
  fill: none;
  filter: drop-shadow(0 0 1px rgba(255,255,255,0.35));
}
.field-dot {
  transform-origin: center;
  transform-box: fill-box;
}
.field-dot-blue  { fill: #3b8dff; stroke: #fff; stroke-width: 0.6; }
.field-dot-red   { fill: #ff3a4a; stroke: #fff; stroke-width: 0.6; }
.field-dot-green { fill: #3cd361; stroke: #fff; stroke-width: 0.6; }
.field-dot-yellow{ fill: #ffcf2b; stroke: #fff; stroke-width: 0.6; }

/* animação de "breathing" das bolinhas */
.field-dot {
  animation: dotPulse 2.2s ease-in-out infinite;
}
.field-dot:nth-child(3n)   { animation-delay: 0.2s; }
.field-dot:nth-child(3n+1) { animation-delay: 0.6s; }
.field-dot:nth-child(3n+2) { animation-delay: 1.0s; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.25); filter: brightness(1.3); }
}

/* faixa "Movimentos" */
.field-footer {
  display: flex;
  justify-content: flex-end;
  padding: 3px 10px;
  background: linear-gradient(180deg, #161a21 0%, #0a0d12 100%);
  border-bottom: 1px solid rgba(122,130,142,0.35);
}
.mov-label {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mov-tag {
  display: inline-block;
  padding: 1px 5px 0;
  font-family: var(--ff-display);
  font-size: 9px;
  color: #000;
  border-radius: 2px;
}
.mov-tag.mov-ma { background: var(--accent-yellow); }
.mov-tag.mov-fa { background: var(--accent-green); color:#001a08; }

/* === Tabs da lista === */
.list-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background: linear-gradient(180deg, #0f2a5a, #081a3a);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.theme-red .list-tabs  { background: linear-gradient(180deg, #5a0f1b, #2e050c); }
.theme-gold .list-tabs { background: linear-gradient(180deg, #3a2e0a, #1a1505); }
.tab-label {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* === Lista de skills/jogadores === */
.skill-list {
  list-style: none;
  flex: 1;
  background: linear-gradient(180deg, #121822 0%, #0a0d13 100%);
}
.skill-list li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(122,130,142,0.18);
  cursor: pointer;
  position: relative;
  transition: background 120ms ease;
  outline: none;
}
.skill-list li:last-child { border-bottom: 0; }

.skill-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 120ms ease;
}
.skill-list li:hover,
.skill-list li.is-selected {
  background:
    linear-gradient(90deg, rgba(255,210,58,0.22) 0%, rgba(255,210,58,0.05) 60%, transparent);
}
.skill-list li:hover::before,
.skill-list li.is-selected::before {
  background: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow);
}
.skill-list li.is-selected .player-name {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,210,58,0.6);
}

.player-num {
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--text-main);
  text-align: right;
  padding-right: 6px;
  border-right: 1px solid rgba(122,130,142,0.35);
  min-width: 30px;
}
.player-name {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text-main);
  letter-spacing: 0.03em;
}
.player-pos {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #0e1218;
  padding: 2px 7px 1px;
  border-radius: 2px;
  min-width: 34px;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.25);
}
.pos-gk, .pos-gol { background: var(--pos-gol); }
.pos-cb, .pos-zac { background: var(--pos-zac); color: #fff; }
.pos-lb, .pos-le, .pos-rb, .pos-ld { background: var(--pos-ld); color: #fff; }
.pos-mf, .pos-mlc, .pos-mld, .pos-mle { background: var(--pos-mlc); }
.pos-dmf, .pos-vol { background: var(--pos-vol); }
.pos-cf, .pos-ca { background: var(--pos-ca); color: #fff; }

/* Cursor indicando painel ativo */
.panel-cursor {
  position: absolute;
  top: 12px; right: -4px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  font-size: 18px;
  color: var(--accent-yellow);
  text-shadow: 0 0 8px var(--accent-yellow);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 150ms ease, transform 150ms ease;
  animation: cursorBlink 0.9s steps(2) infinite;
}
.team-panel.is-selected .panel-cursor {
  opacity: 1;
  transform: translateX(-6px);
}
@keyframes cursorBlink {
  0%, 49%  { opacity: 1; }
  50%, 100%{ opacity: 0.15; }
}

/* -------------------- NAV MOBILE -------------------- */
.mobile-nav {
  display: none;
  max-width: 1320px;
  margin: 12px auto 0;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 3;
}
.mnav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, #2a313a 0%, #10141a 100%);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 3px 8px rgba(0,0,0,0.5);
}
.mnav-btn:active { transform: translateY(1px); }
.mnav-dots { display: flex; gap: 10px; }
.mnav-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 140ms ease, transform 140ms ease;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.25);
}
.mnav-dots .dot.active {
  background: var(--accent-yellow);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--accent-yellow);
  border-color: var(--accent-yellow);
}

/* -------------------- FOOTER / BARRA DE BOTÕES -------------------- */
.bottom-bar {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 18px auto 6px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #1a1f27 0%, #0a0d12 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 7px;
  background: linear-gradient(180deg, #2a313a 0%, #10141a 100%);
  border: 1px solid var(--panel-border);
  color: var(--text-main);
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 140ms ease, border-color 140ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 3px 8px rgba(0,0,0,0.5);
}
.ps-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent-yellow);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 0 14px rgba(255,210,58,0.35),
    0 4px 10px rgba(0,0,0,0.55);
}
.ps-btn:active { transform: translateY(1px); }
.ps-btn-alt {
  background: linear-gradient(180deg, var(--t-gold-3) 0%, #6b5607 100%);
  color: #1b1300;
  border-color: var(--t-gold-light);
  text-shadow: 0 0 4px rgba(255,255,255,0.4);
}
.ps-btn-alt:hover { box-shadow: 0 0 18px rgba(242,210,74,0.55); }

.ps-icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  background: #0b0e13;
  border: 1.5px solid currentColor;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
}
.icon-x { color: #6ea8ff; text-shadow: 0 0 6px #6ea8ff; }
.icon-o { color: #ff5a7a; text-shadow: 0 0 6px #ff5a7a; }
.icon-t { color: #3cd361; text-shadow: 0 0 6px #3cd361; }
.icon-s { color: #c56bff; text-shadow: 0 0 6px #c56bff; }
.icon-dl{ color: #ffd23a; text-shadow: 0 0 6px #ffd23a; }

.help-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-family: var(--ff-mono);
  font-size: 15px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.help-row kbd {
  display: inline-block;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  background: #2a313a;
  border: 1px solid #555;
  border-bottom-width: 2px;
  border-radius: 3px;
  color: #fff;
  margin-right: 4px;
}

/* -------------------- MODAL -------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 30, 60, 0.7);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: min(640px, 100%);
  max-height: 85vh;
  overflow: hidden;
  background: linear-gradient(180deg, #1e242d 0%, #0b0e13 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 2px #000,
    0 0 30px rgba(255,210,58,0.25),
    0 10px 40px rgba(0,0,0,0.75);
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  transition: transform 220ms cubic-bezier(0.22, 1.2, 0.36, 1), opacity 180ms ease;
  display: flex;
  flex-direction: column;
}
.modal-overlay.is-open .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.modal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(180deg, #2e3542 0%, #1a1f28 100%);
  border-bottom: 1px solid var(--panel-border);
}
.modal-title {
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--accent-yellow);
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255,210,58,0.45);
}
.modal-close {
  background: transparent;
  color: #fff;
  border: 1px solid #666;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}
.modal-close:hover { border-color: var(--accent-red); color: var(--accent-red); }

.modal-body {
  padding: 18px;
  overflow-y: auto;
}
.modal-footbar {
  padding: 8px 14px;
  background: linear-gradient(180deg, #161a22 0%, #0a0d12 100%);
  border-top: 1px solid rgba(122,130,142,0.3);
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--text-dim);
}
.modal-footbar kbd {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 10px;
  padding: 1px 5px;
  background: #2a313a;
  border: 1px solid #555;
  border-radius: 3px;
  color: #fff;
  margin-right: 4px;
}

/* ---- Conteúdo do modal: CARD DE SKILL ---- */
.card-skill {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  align-items: start;
}
.card-badge {
  background: linear-gradient(180deg, var(--panel-gray-2), var(--panel-gray-1));
  border: 1px solid var(--panel-border-lit);
  border-radius: 4px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.card-ovr-num {
  font-family: var(--ff-display);
  font-size: 34px;
  color: var(--accent-yellow);
  text-shadow: 0 0 10px rgba(255,210,58,0.55);
  line-height: 1;
}
.card-ovr-label {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  display: block;
  margin-top: 4px;
}
.card-pos {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--accent-yellow);
  color: #1b1500;
  border-radius: 2px;
}
.card-info h3 {
  font-family: var(--ff-ui);
  font-size: 22px;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 700;
}
.card-info .cat {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 11px;
  color: var(--accent-cyan);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.card-info .desc {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 14px;
}
.card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
  margin-top: 10px;
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.stat-row .label {
  width: 86px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
}
.stat-row .bar {
  flex: 1; height: 8px;
  background: #0a0d13;
  border: 1px solid #3a424d;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.stat-row .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow) 70%, var(--accent-red));
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.3);
}
.stat-row .num {
  width: 28px;
  text-align: right;
  color: var(--accent-yellow);
  font-family: var(--ff-display);
  font-size: 12px;
}

/* ---- EXPERIÊNCIAS ---- */
.exp-list, .proj-list, .cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exp-item, .cert-item {
  padding: 12px 14px;
  background: linear-gradient(180deg, #1a2028 0%, #0c1015 100%);
  border: 1px solid #333a45;
  border-left: 3px solid var(--accent-yellow);
  border-radius: 3px;
}
.exp-item .role {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.exp-item .company {
  font-family: var(--ff-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.exp-item .period {
  font-family: var(--ff-mono);
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.exp-item .desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.45;
}
.exp-item ul {
  margin-top: 6px;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}
.exp-item ul li { margin-bottom: 3px; }

/* ---- PROJETOS ---- */
.proj-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.proj-card {
  background: linear-gradient(180deg, #1a2028 0%, #0c1015 100%);
  border: 1px solid #333a45;
  border-radius: 3px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.proj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}
.proj-card h4 {
  font-family: var(--ff-ui);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}
.proj-card .stack {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}
.proj-card .desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---- CONTATO ---- */
.contato-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.contato-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1a2028 0%, #0c1015 100%);
  border: 1px solid #333a45;
  border-radius: 3px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--ff-ui);
  font-weight: 600;
  transition: border-color 140ms, transform 140ms;
}
.contato-item:hover {
  border-color: var(--accent-yellow);
  transform: translateX(3px);
}
.contato-item .ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: #080a10;
  border: 1px solid var(--accent-yellow);
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent-yellow);
}
.contato-item .lbl-top {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.contato-item .lbl-val {
  display: block;
  font-size: 14px;
  color: #fff;
  word-break: break-all;
}

/* -------------------- HUD TOAST -------------------- */
.hud-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: linear-gradient(180deg, #1a1f27 0%, #0a0d12 100%);
  border: 1px solid var(--accent-yellow);
  color: var(--accent-yellow);
  font-family: var(--ff-ui);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(255,210,58,0.35), 0 4px 14px rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.22,1.2,0.36,1);
}
.hud-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -------------------- RESPONSIVO -------------------- */
@media (max-width: 1080px) {
  .teams-container { grid-template-columns: repeat(2, 1fr); }
  .team-panel:nth-child(3) { grid-column: span 2; max-width: 560px; margin: 0 auto; width: 100%; }
  .bio-bar { grid-template-columns: repeat(2, 1fr); }
  .bio-cell:nth-child(2) { border-right: 0; }
  .menu-backdrop { opacity: 0.35; }
}

@media (max-width: 720px) {
  body { padding: 8px; }
  .top-deco { display: none; }
  .top-bar { padding: 10px 14px; margin-bottom: 10px; }
  .menu-backdrop { display: none; }

  /* === CARROSSEL MOBILE: flexbox + scroll-snap === */
  .teams-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding: 0;
    scroll-behavior: smooth;
    /* esconder scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .teams-container::-webkit-scrollbar {
    display: none;
  }

  .team-panel {
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: var(--radius-panel);
    /* suavizar transição */
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 200ms ease;
  }
  .team-panel:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  /* gap visual entre slides */
  .team-panel + .team-panel {
    margin-left: 10px;
  }

  .mobile-nav { display: flex; }

  /* bio bar */
  .bio-bar {
    grid-template-columns: 1fr 1fr;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .bio-cell {
    padding: 6px 10px;
    min-height: 44px;
  }
  .bio-cell:nth-child(2) { border-right: 0; }
  .bio-cell:nth-child(3) { border-right: 1px solid rgba(122,130,142,0.4); }
  .bio-value { font-size: 15px; }

  /* footer */
  .btn-row .ps-label { display: none; }
  .ps-btn { padding: 8px 10px; }
  .help-row { font-size: 12px; gap: 10px; }
  .bottom-bar { margin-top: 12px; padding: 10px 12px; }

  /* modais */
  .proj-list { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .card-skill { grid-template-columns: 70px 1fr; gap: 12px; }
  .card-stats { grid-template-columns: 1fr; }

  /* modal ajustado para tela toda */
  .modal {
    width: calc(100vw - 20px);
    max-height: 80vh;
  }
  .modal-body { padding: 14px; }

  /* logo menor */
  .logo-bomba { font-size: 22px; }
  .patch-text { font-size: 18px; }
  .logo-dev { font-size: 10px; letter-spacing: 0.4em; }
  .tagline { font-size: 12px; }
}

/* Extra small (< 380px, tipo telas bem pequenas) */
@media (max-width: 380px) {
  .team-name { font-size: 16px; }
  .panel-badge { font-size: 9px; padding: 2px 5px; }
  .player-name { font-size: 14px; }
  .player-num { font-size: 11px; }
  .player-pos { font-size: 9px; min-width: 28px; padding: 2px 4px 1px; }
  .formation-label { font-size: 12px; }
  .bio-value { font-size: 14px; }
  .bio-overall { font-size: 16px; }
  .btn-row { gap: 6px; }
  .ps-btn { padding: 6px 8px; }
  .ps-icon { width: 20px; height: 20px; font-size: 11px; }
}
