@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&display=swap');

/* =========================================================
   VARIÁVEIS GLOBAIS — TEMA GAMER
   ========================================================= */
:root {
  --bg:        #080c14;
  --bg2:       #0d1420;
  --bg3:       #111928;
  --neon:      #00f0ff;
  --neon2:     #e4e709;
  --neon3:     #ff3cac;
  --green:     #00ff88;
  --red:       #ff4d4d;
  --blue:      #58b4f7;
  --blue2:     #90d5ff; 
  --gold:      #ffd700;
  --silver:    #c0c0c0;
  --bronze:    #cd7f32;
  --orange:    #ff8c00;
  --border:    rgba(0,240,255,0.18);
  --border2:   rgba(228,231,9,0.25);
  --text:      rgba(255,255,255,0.92); 
  /* Cor textos pequenos 
  Original: rgba(255, 255, 255, 0.45) 
  Azul Ok: rgba(142, 209, 240, 0.884) */
  --smallAlt:   rgba(200, 227, 250, 0.904); 
  --muted:     rgba(0, 238, 255, 0.555); 
  --glow:      0 0 18px rgba(0,240,255,0.35);
  --glow-y:    0 0 18px rgba(228,231,9,0.4);
  --font-title: 'Bebas Neue', sans-serif;
  --font-body:  'Rajdhani', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Grade de fundo decorativa (global) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Garante que conteúdo fica sobre a grade */
body > * { position: relative; z-index: 1; }

/* =========================================================
   UTILITÁRIOS
   ========================================================= */
.small {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-body);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border2);
  background: rgba(228,231,9,0.08);
  color: var(--neon2);
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 14px;
  letter-spacing: 0.06em;
}

/* Logo do Index */
.brandLogo {
  max-width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.badgePlayer {
  color: var(--neon2);
  font-weight: 900;
}

.list { list-style: none; padding: 0; margin: 0; }

/* =========================================================
   FUNDO GAMER COMPARTILHADO
   ========================================================= */
.gamer-bg-radial {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,240,255,0.1), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(228,231,9,0.07), transparent),
    linear-gradient(180deg, #080c14 0%, #0a0f1a 100%);
}

/* =========================================================
   CARD PADRÃO GAMER
   ========================================================= */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
  opacity: 0.5;
}

/* =========================================================
   BOTÃO PADRÃO GAMER
   ========================================================= */
button {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text);
  cursor: pointer;
  transition: all 180ms ease;
}

button:hover {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0,240,255,0.07);
  box-shadow: var(--glow);
}

button.primary {
  border-color: var(--border2);
  background: rgba(228,231,9,0.12);
  color: var(--neon2);
}

button.primary:hover {
  background: rgba(228,231,9,0.22);
  box-shadow: var(--glow-y);
  border-color: var(--neon2);
}

button.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.15);
  color: var(--muted);
}

button.ghost:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
  box-shadow: none;
}

#btnEnter {
  padding: 6px 18px;   /* 1º valor = altura (vertical) · 2º = largura (horizontal) */
  font-size: 14px;      /* tamanho do texto */
}



/* =========================================================
   HOME PAGE (index.html)
   ========================================================= */
body.home {
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,240,255,0.1), transparent),
    radial-gradient(ellipse 50% 40% at 90% 110%, rgba(228,231,9,0.08), transparent),
    linear-gradient(180deg, #080c14 0%, #0a0f1a 100%);
}


/* Header / Logo */
.siteHeader {
  text-align: center;
  padding: 15px 20px 10px;
}

.brandTitle {
  font-family: var(--font-title);
  font-size: clamp(52px, 9vw, 96px);
  letter-spacing: 0.06em;
  color: var(--neon2);
  text-shadow:
    0 0 30px rgba(228,231,9,0.35),
    0 0 80px rgba(228,231,9,0.15);
  line-height: 1;
}

.brandTagline {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--neon);
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.75;
}

body.home .page {
  width: min(860px, 94vw);
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Card do jogador */
.homePlayerCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.homePlayerCard::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon2), transparent);
  opacity: 0.6;
}

/* Card do jogador — info à esquerda (nome + B$ na mesma linha, legenda embaixo), ação à direita */
.homePlayerCard { align-items: center; }

.homePlayerCol {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.homePlayerCol--info   { align-items: flex-start; }
.homePlayerCol--action { align-items: flex-end; margin-left: auto; text-align: right; }

.homePlayerValues {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.homePlayerLabel {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#whoami {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.08em;
}

#enterMsg { font-size: 12px; color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* Grid de botões principais */
.homeGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.homeBtn {
  position: relative;
  padding: 16px 14px;
  border-radius: 10px;
  border: 1px solid var(--border); 
  background: var(--bg2);
  color: var(--text);
  font-family: var(--font-title); /* era --font-title */
  font-weight: 700; /* NEW - GPT */
  letter-spacing: 0.03em; /* era 0.1em */
  cursor: pointer;
  text-align: left;
  transition: all 200ms ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 124px;
  justify-content: flex-start;
}

.homeBtn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,240,255,0.05), transparent);
  opacity: 0;
  transition: opacity 200ms;
}

.homeBtn:hover {
  border-color: var(--neon);
  box-shadow: var(--glow);
  transform: translateY(-2px);
  color: var(--text);
  background: var(--bg2);
}
.homeBtn:hover::before { opacity: 1; }

.homeBtn.primary {
  border-color: var(--border2);
  background: linear-gradient(135deg, rgba(228,231,9,0.1), rgba(228,231,9,0.04));
}
.homeBtn.primary:hover {
  border-color: var(--neon2);
  box-shadow: var(--glow-y);
}

/* Card Jogar Online — destaque azul neon */
.homeBtn--online {
  border-color: rgba(0,240,255,0.35);
  background: linear-gradient(135deg, rgba(0,240,255,0.10), rgba(0,240,255,0.03));
}
.homeBtn--online .homeBtnIcon,
.homeBtn--online { color: var(--neon); }
.homeBtn--online:hover {
  border-color: var(--neon);
  box-shadow: var(--glow);
  background: linear-gradient(135deg, rgba(0,240,255,0.18), rgba(0,240,255,0.06));
}
.homeBtn--online .homeBtnSub { color: rgba(0,240,255,0.55); }

.homeBtnIcon { width: 36px; height: 36px; object-fit: contain; margin-bottom: 2px; }
.homeBtnSmIcon { width: 22px; height: 22px; object-fit: contain; }

/* Título dos 4 botões grandes — ajuste o tamanho do texto AQUI */
.homeBtnTitle {
  font-size: 25px;   /* ← tamanho do texto do botão (ex.: JOGO TREINO) */
  line-height: 1.1;
  letter-spacing: 0.10em;   /* ← espaço entre as letras */
}

.homeBtnSub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Linha inferior */
.homeRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

/* Botão de Resultados */

.homeBtnSm {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);   /* era --muted   */
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700; /* NEW - GPT */
  letter-spacing: 0.4em; /* era 0.1em */
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 200ms;
}
.homeBtnSm:hover {
  border-color: var(--neon);
  color: var(--text);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* Debug card */
.cardDebug {
  border-color: rgba(255,255,255,0.08) !important;
  opacity: 0.6;
}
.cardDebug h2 { font-size: 13px; color: var(--muted); font-family: var(--font-body); font-weight: 700; }
.cardDebug::after { display: none; }
.listDebug li { font-size: 12px; color: var(--muted); padding: 3px 0; }
.listDebug a { color: var(--neon); text-decoration: none; font-size: 12px; }

/* Divisor neon */
.neonDivider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.2;
  margin: 14px 0;
}

#menuMsg { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* =========================================================
   MATCH PAGE (match.html)
   ========================================================= */
body.match {
  /* background via .pc-page */
}

.matchHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid var(--border);
}

.matchBrand {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--neon2);
  text-shadow: 0 0 14px rgba(228,231,9,0.25);
}

.matchPlayer {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

body.match .page {
  width: min(700px, 94vw);
  margin: 0 auto;
  padding: 20px 0 40px;
}

body.match h1 {
  font-family: var(--font-title);
  font-size: 30px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

body.match .card h2 {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--neon);
  margin-bottom: 14px;
  text-shadow: 0 0 10px rgba(0,240,255,0.25);
}

/* Mini gol */
.miniGoalFrame {
  position: relative;
  width: 100%; /* era 280px; */
  height: 165px;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3a 100%);
  border-radius: 10px 10px 0 0;
  border: 2px solid rgba(0,240,255,0.2);
  border-bottom: none;
  box-shadow: 0 10px 0 #11f05b ;  /* Campo logo abaixo da barra */
  margin: 0;
  overflow: hidden;
}


/* Barra de campo verde abaixo do mini gol */
.miniGoalField {
  width: 340px;
  height: 14px;
  background: linear-gradient(180deg, #0fdb53, #0a7a30); /* 2o. campo embaixo da barra  #0db844, #08702a */
  border-radius: 0 0 8px 8px;
  margin: 0 16px;
  display: block;
  position: relative;
  z-index: 0;
}


/* Wrapper para empilhar gol + campo */
.miniGoalFrame + .miniGoalField {
  margin-top: 0;
}

/* Wrapper gol + campo */
.miniGoalWrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;  /* <- muda de center para stretch */
  width: min(340px, 90%);
  margin: 0 auto 12px;
}

.miniGoalWrap .miniGoalFrame {
  width: 100%;  /* <- herda do wrap */
  margin: 0;
}

.miniGoalWrap .miniGoalField {
  width: 100%;  /* <- herda do wrap */
  margin: 0 0 0 0;
}

/* Rede do mini gol */
.miniGoalFrame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.miniCrossbar {
  position: absolute;
  left: 8px; right: 8px; top: 8px;
  height: 6px;
  background: rgba(255,255,255,0.9);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
  z-index: 2;
}

.miniPost {
  position: absolute;
  top: 8px; bottom: 0;
  width: 5px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
  z-index: 2;
}
.miniPost-left  { left: 6px; }
.miniPost-right { right: 6px; }

.pick-grid.miniGoalGrid {
  position: absolute;
  inset: 18px 18px 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 5px;
  z-index: 1;
}

.pick-cell {
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 18px;
  color: rgba(0,240,255,0.55);
  cursor: pointer;
  transition: all 150ms;
  user-select: none;
}

.pick-cell:hover {
  background: rgba(0,240,255,0.14);
  border-color: var(--neon);
  color: var(--neon);
}

.pick-cell.selected {
  background: rgba(228,231,9,0.15);
  border-color: var(--neon2);
  color: var(--neon2);
  box-shadow: inset 0 0 10px rgba(228,231,9,0.1);
}

/* Linha de botões enviar */
.matchBtnRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

#btnSubmit {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 12px 22px;
  border-color: var(--border2);
  background: rgba(228,231,9,0.12);
  color: var(--neon2);
}
#btnSubmit:hover {
  background: rgba(228,231,9,0.22);
  box-shadow: var(--glow-y);
  border-color: var(--neon2);
  color: var(--neon2);
}

.btnWhatsApp {
  font-family: var(--font-title) !important;
  font-size: 18px !important;
  letter-spacing: 0.1em !important;
  padding: 12px 22px !important;
  background: rgba(37,211,102,0.1) !important;
  border: 1px solid rgba(37,211,102,0.4) !important;
  color: #25d366 !important;
}
.btnWhatsApp:hover {
  background: rgba(37,211,102,0.2) !important;
  box-shadow: 0 0 18px rgba(37,211,102,0.3) !important;
  border-color: rgba(37,211,102,0.7) !important;
}

/* =========================================================
   RESPOND PAGE (respond.html)
   ========================================================= */
/*
body.desafio {
  
} */ /* background via .pc-page */
/*
body.respond {
  
} */ /* background via .pc-page */

.respondHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.45);
  border-bottom: 1px solid var(--border);
}

.respondBrand {
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--neon2);
  text-shadow: 0 0 14px rgba(228,231,9,0.35);
}

.respondPlayer {
  font-size: 13px;
  color: var(--muted);
}

body.respond .page {
  width: min(700px, 94vw);
  margin: 0 auto;
  padding: 20px 0 40px;
}

.respondTitle {
  font-family: var(--font-title);
  font-size: 30px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* Card público */
body.respond .card:nth-of-type(1) h2 {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(0,240,255,0.35);
  margin-bottom: 10px;
}

/* Card diretos */
body.respond .card:nth-of-type(2) {
  border-color: rgba(255,140,0,0.3);
}
body.respond .card:nth-of-type(2)::after {
  background: linear-gradient(90deg, #ff8c00, transparent);
}
body.respond .card:nth-of-type(2) h2 {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #ff8c00;
  text-shadow: 0 0 10px rgba(255,140,0,0.4);
  margin-bottom: 10px;
}

/* Items da inbox */
body.respond .list .card,
.inboxItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,140,0,0.06);
  border: 1px solid rgba(255,140,0,0.25);
  border-radius: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}
.inboxItem::after { display: none; }

.inboxFrom {
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #ff8c00;
}

.inboxId {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

body.respond #btnPlayPublic {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.12em;
  padding: 12px 28px;
  border-color: var(--neon);
  background: rgba(0,240,255,0.1);
  color: var(--neon);
  box-shadow: 0 0 12px rgba(0,240,255,0.15);
}
body.respond #btnPlayPublic:hover {
  background: rgba(0,240,255,0.2);
  box-shadow: 0 0 26px rgba(0,240,255,0.35);
  color: var(--neon);
  border-color: var(--neon);
  transform: translateY(-2px);
}

body.respond .list a,
body.respond .list button {
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border: 1px solid rgba(255,140,0,0.4);
  background: rgba(255,140,0,0.1);
  color: #ff8c00;
  border-radius: 6px;
}
body.respond .list a:hover,
body.respond .list button:hover {
  background: rgba(255,140,0,0.2);
  box-shadow: 0 0 14px rgba(255,140,0,0.35);
  color: #ff8c00;
  border-color: rgba(255,140,0,0.7);
}

body.respond #inboxMsg { margin-top: 8px; }


/* =========================================================
   REPLAY v2 — TEMA ESTÁDIO
   Só vale para <body class="stadium stadium-v2">
   ========================================================= */

body.stadium.stadium-v2{
  margin: 0;
  min-height: 100vh;
  color: rgba(255,255,255,0.92);

  /* Fundo geral: céu + arquibancada */
  background:
    radial-gradient(1200px 520px at 50% 0%,
      rgba(255,255,255,0.22),
      rgba(255,255,255,0) 60%),
    linear-gradient(180deg,
      #1a2436 0%,
      #151f2f 28%,
      #202633 28%,
      #202633 100%);
}

.detail {
  white-space: pre-line;
}

/* =========================================================
   HUD SUPERIOR (placar, título, nova partida)
   ========================================================= */

.hud2{
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* esquerda | centro | direita */
  gap: 14px;
  align-items: center;
  padding: 14px 16px;                  /* altura do HUD */
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hud2-center{
  display: grid;
  justify-items: center;
  gap: 6px;
}

/* Título "Pênaltis" */
.hud2-title{
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 20px;
  color: #e4e709;
  text-transform: uppercase;
}

/* Placar grande (ex: 4 x 3) */
.hud2-scoreline{
  font-weight: 900;
  font-size: 22px;     /* <<< tamanho do placar */
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
}


/* =========================================================
   STAGE PRINCIPAL
   ========================================================= */

.stage2{
  padding: 18px 14px 0; /* espaçamento geral */
}

/* Linha com nomes dos jogadores */
.namesRow{
  width: min(760px, 92vw);  /* <<< LARGURA GERAL DO JOGO */
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nameLeft, .nameRight{
  font-size: 22px;
  font-weight: 900;
}


/* =========================================================
   ARENA — TRACKS + GOL
   ========================================================= */

.arena{
  width: min(760px, 92vw); /* <<< manter IGUAL à namesRow e fieldStrip */
  margin: 0 auto;

  display: grid;
  grid-template-columns: 92px minmax(0,1fr) 92px; /* tracks simétricos */
  column-gap: 18px;

  padding: 14px 12px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
}

/* Track lateral (coluna de pênaltis) */
.track{
  width: 92px;              /* <<< largura fixa (simetria) */
  display: grid;
  place-items: center;
}

/* Coluna interna com 5 slots */
.trackCol{
  display: grid;
  grid-template-rows: repeat(5, 44px); /* <<< tamanho dos slots */
  gap: 10px;
}

/* Slot individual (bola ou X) */
.pSlot{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
}

/* Gol marcado */
.pSlot.goal{
  background: rgba(20,160,70,0.55);
}

/* Erro */
.pSlot.miss{
  background: rgba(185,30,45,0.55);
}

/* Lance atual */
.pSlot.active{
  outline: 3px solid rgba(255,255,255,0.65);
}

/* Ícone dentro do slot */
.pIcon{
  font-size: 22px;
  font-weight: 900;
}


/* =========================================================
   GOL (TRAVES + GRADE 2x3)
   ========================================================= */

.goalZone{
  display: grid;
  justify-items: center;
}

/* Moldura do gol */
.goalFrame{
  position: relative;
  width: min(560px, 100%); /* <<< tamanho máximo do gol */
  aspect-ratio: 3 / 1.2;     /* proporção do gol */
  padding: 30px 18px 18px; /* espaço do travessão */
  background: transparent;  /* <<< remove o painel */
  border: none;             /* <<< remove a moldura */
  border-radius: 0;         /* <<< remove arredondamento do container */
}

/* Traves verticais */
.post{
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 12px;              /* <<< espessura da trave */
  background: rgba(255,255,255,0.9);
}

.post-left{ left: 14px; }
.post-right{ right: 14px; }

/* Travessão */
.crossbar2{
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 12px;             /* <<< espessura do travessão */
  background: rgba(255,255,255,0.9);
}

/* Rede (retícula) */
.net2{
  position: absolute;
  inset: 14px;
  background-size: 40px 40px; /* <<< tamanho da malha */
  opacity: 0.10;
}

/* Grade 2x3 */
.goal-grid{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(2,1fr);
  gap: clamp(2px,1.0vw,6px); /* <<< espaço entre quadrados */
  
  /* >>> AJUSTE AQUI para “estreitar” os quadrados */
  width: 80%;          /* tente 88%, 86%, 84% até ficar perfeito */
  height: 100%;        /* garante as 2 linhas ocupando a altura interna */
  margin: 0 auto;      /* centraliza o grid dentro do gol */
}

/* Quadrado do gol */
.goal-cell{
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  font-size: clamp(18px,3.2vw,28px);
  font-weight: 900;
}


/* =========================================================
   CAMPO (FAIXA VERDE)
   ========================================================= */

.fieldStrip{
  width: min(760px, 92vw); /* <<< manter alinhado com arena */
  margin: 0 auto;
  margin-top: -14px;        /* <<< sobe o campo até encostar na trave */
  padding: 10px 14px 18px;

  background: linear-gradient(180deg,
    rgba(20,110,55,0.95),
    rgba(10,70,34,0.95));

  border-radius: 0 0 16px 16px;
}


/* =========================================================
   RESULTADO GRANDE (GOOL / DEFENDEU / PRA FORA)
   ========================================================= */

.bigResult{
  font-size: 34px;        /* <<< tamanho do texto */
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
    /* >>> CENTRALIZAÇÃO */
  display: inline-block;
  text-align: center;
}

body.stadium.stadium-v2 .fieldStrip{
  text-align: center;   /* <<< centraliza o bigResult */
}

.bigResult.goal{ color: #ffe066; }
.bigResult.save{ color: #a6d8ff; }
.bigResult.miss{ color: #ffc9c9; }

/* =========================================================
   RESULTADO FINAL (VITÓRIA / DERROTA / EMPATE)
   ========================================================= */

.bigResult.win{
  color: #2ecc71;   /* verde */
}

.bigResult.lose{
  color: #ff4d4d;   /* vermelho */
}

.bigResult.draw{
  color: #b0b0b0;   /* cinza */
}


/* =========================================================
   CONTROLES (Play / Prev / Next)
   ========================================================= */

.controls2{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.btn{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  cursor: pointer;
}

.btn.primary{
  background: rgba(255,255,255,0.16);
}


/* =========================================================
   ANIMAÇÃO DE DESTAQUE
   ========================================================= */

.pulse{
  animation: pulse 0.35s ease-in-out;
}

@keyframes pulse{
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
/* =========================================================
   FIX: Replay - grade 2x3 precisa ocupar toda a altura do gol
   ========================================================= */

/* Faz a área interna do gol ter um layout previsível */
body.stadium.stadium-v2 .goalFrame{
  /* garante que o conteúdo interno tenha “área” para o 1fr funcionar */
  display: grid;
}

/* A grid precisa preencher a área disponível do goalFrame */
body.stadium.stadium-v2 .goal-grid{
  width: 100%;               /* <<< CONTROLE PRINCIPAL do tamanho dos quadrados */
  height: 100%;
  margin: 0 auto;           /* <<< centraliza a grid no gol */
  grid-template-rows: 1fr;  /* ← adicione: força 1 linha só */
  align-self: center;
  justify-self: center;
}

/* Cada quadrado volta a ter cara de “caixa” e centraliza o número */
body.stadium.stadium-v2 .goal-cell{
  display: flex;            /* <<< centralização */
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);

  /* o “tamanho visual” da caixa */
  min-height: 0;            /* evita bugs de grid em alguns layouts */
  border-radius: 16px;
}
/* =========================================================
   FIX: Replay - alinhamento dos nomes
   ========================================================= */
body.stadium.stadium-v2 .nameLeft{
  justify-self: start;
  text-align: left;
}

body.stadium.stadium-v2 .nameRight{
  justify-self: end;        /* <<< encosta na direita */
  text-align: right;
}
/* =========================================================
   Ajuste fino: deslocar o gol um pouco para a esquerda
   ========================================================= */
body.stadium.stadium-v2 .goalFrame{
  margin-left: -14px;  /* <<< ajuste fino: -8, -12, -16... */
}
/* =========================================================
   HUD INLINE: nomes + placar na mesma linha
   ========================================================= */

/* Esconde o placar do HUD superior */
body.stadium.stadium-v2 .hud2-scoreline{
  display: none;
}

/* Estilo do placar central entre os nomes */
body.stadium.stadium-v2 .inlineScore{
  font-weight: 900;
  font-size: 26px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  text-align: center;
}
/* =========================================================
   HUD – alinhar botão "Nova partida" à direita
   ========================================================= */
body.stadium.stadium-v2 .hud2-right{
  display: flex;
  justify-content: flex-end;
}
/* =========================================================
   HUD – textos informativos (jogadores / match)
   ========================================================= */
body.stadium.stadium-v2 .hud2-kicker{
  font-size: 12px;     /* <<< diminui "Jogadores: FFA vs Bern" */
  opacity: 0.85;       /* opcional: deixa mais discreto */
}

body.stadium.stadium-v2 .hud2-match{
  font-size: 11px;     /* <<< diminui "Match: xxxx" */
  opacity: 0.75;
}
/* =========================================================
   Replay – mensagens do lance
   ========================================================= */
body.stadium.stadium-v2 .headline{
  font-size: 16px;    /* <<< diminui "Começa a disputa!" */
  color: var(--blue2);
  font-weight: 600;
}

body.stadium.stadium-v2 .detail{
  font-size: 16px;    /* <<< diminui "Clique em Play..." */
  color: var(--blue2);
  opacity: 0.85;      /* opcional */
}
/* =========================================================
   REPLAY – Marcadores (bola = círculo / goleiro = quadrado)
   + micro animação
   ========================================================= */

/* deixa a grid e as células aceitarem elementos “saindo” pra fora (pra fora na trave) */
body.stadium.stadium-v2 .goal-grid{ overflow: visible; }
body.stadium.stadium-v2 .goalFrame{ overflow: visible; } /* se você ainda usa overflow hidden em algum lugar */
body.stadium.stadium-v2 .goal-cell{
  position: relative;
  overflow: visible; /* essencial pro “pra fora” sair da célula */
}

/* base dos marcadores */
body.stadium.stadium-v2 .mk{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.70);
  opacity: 0;
  animation: mkPop 220ms ease-out forwards;
}

/* micro animação padrão */
@keyframes mkPop{
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* marcador bola (círculo) */
body.stadium.stadium-v2 .mk-ball{
  width: 42%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  box-shadow: 0 10px 16px rgba(0,0,0,0.25);
  z-index: 3;
}

/* marcador goleiro (quadrado) */
body.stadium.stadium-v2 .mk-keeper{
  width: 54%;                 /* um pouco maior que a bola (para o caso DEFENDEU) */
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 12px 18px rgba(0,0,0,0.22);
  z-index: 2;
}

/* cores */
body.stadium.stadium-v2 .mk-green{ background: rgba(80, 220, 140, 0.95); }
body.stadium.stadium-v2 .mk-red{   background: rgba(255, 90, 90, 0.95); }
body.stadium.stadium-v2 .mk-NO{   background: rgba(109, 130, 160, 0.95); }

/* no DEFENDEU: quadrado (verde) atrás, bola (vermelha) na frente — já resolvido pelo z-index */

/* PRA FORA: bola “sobe” e fica parcialmente fora da grade (em direção à trave) */
body.stadium.stadium-v2 .mk-miss{
  top: 10px; /* leva para o topo da célula */
  transform: translate(-50%, -75%) scale(0.70);
  opacity: 0;
  animation: mkPopMiss 240ms ease-out forwards;
  z-index: 4; /* acima de tudo */
}

@keyframes mkPopMiss{
  to { transform: translate(-50%, -75%) scale(1); opacity: 1; }
}

/* =========================================================
   Ajuste: bola pra fora nas laterais (Replay)
   ========================================================= */

/* Garantias para posicionamento das marcas dentro da célula */
.goal-cell { position: relative; }

/* PRA FORA lateral: sobrescreve mk-miss (top/transform) */
body.stadium.stadium-v2 .goal-cell .mk-ball.mk-miss.mk-out-left{
  left: -18px;                 /* fora à esquerda */
  top: 72%;                    /* altura da linha de baixo */
  transform: translate(-50%, -50%) scale(1);
}

body.stadium.stadium-v2 .goal-cell .mk-ball.mk-miss.mk-out-right{
  left: calc(100% + 18px);     /* fora à direita */
  top: 72%;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================================================
   MATCH – Mini gol para seleção de chutes/defesas
   ========================================================= */

/* Container do “mini gol” */
.pick-cell:hover{
  background: #ffffff;
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Estado selecionado mais “marcado” */
.pick-cell.selected{
  background: #e8eef5;
  outline: 3px solid #2b6cb0; /* azul discreto */
}

/* =========================================================
   MATCH PAGE (match.html)
   ========================================================= */

body.match{
  margin: 0;
  min-height: 100vh;
  color: rgba(255,255,255,0.92);   

  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,240,255,0.1), transparent),
    radial-gradient(ellipse 50% 40% at 90% 110%, rgba(228,231,9,0.08), transparent),
    linear-gradient(180deg, #080c14 0%, #0a0f1a 100%);
}

body.match .page{
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: 10px 0 28px;
}

/* Header */
.matchHeader{
  text-align: center;
  padding: 16px 0 8px;
}

.matchVersus{
  margin: 0px 0 0px;
  text-align:center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
}
.matchVersus .vs{ opacity:.65; margin:0 6px; }
.matchVersus .nick{ color: var(--neon2); }

.matchBrand{
  font-size: 22px;   /* menor que na home */
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e4e709;
  text-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

body.match h1{
  font-size: 20px;   /* ajuste como quiser */
  font-weight: 800;
  margin: -2px 0 6px;
}

.matchPlayer{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* Cards estilo painel */
body.match .card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

/* Botões estilo game */
body.match button{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

body.match button:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

/* Badge do jogador */
body.match .badge{
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.20);
  color: rgba(255,255,255,0.92);
  padding: 4px 10px;
  border-radius: 999px;
}

body.match .badgePlayer{
  font-weight: 900;
  color: #ffe066;
}

/* =========================================================
   RESPOND PAGE (respond.html)
   ========================================================= */

body.respond{
  margin: 0;
  min-height: 100vh;
  color: rgba(255,255,255,0.92);

  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(0,240,255,0.1), transparent),
    radial-gradient(ellipse 50% 40% at 90% 110%, rgba(228,231,9,0.08), transparent),
    linear-gradient(180deg, #080c14 0%, #0a0f1a 100%);

}

body.respond .page{
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: 12px 0 28px;
}

/* Header */
.respondHeader{
  text-align: center;
  padding: 16px 0 8px;
}

.respondBrand{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e4e709;
  text-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

.respondPlayer{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

/* Título principal menor */
.respondTitle{
  font-size: 26px;
  font-weight: 800;
  margin-top: 10px;
}

/* Ícone ao lado do título das páginas (respond, desafio, ranking, results) */
.titleIcon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -4px;   /* alinha opticamente com a baseline do texto */
}

/* Cards estilo painel */
body.respond .card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

/* Botões estilo game */
body.respond button{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}

body.respond button:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

body.respond .small{
  color: var(--smallAlt); /* rgba(188, 218, 243, 0.904); /* rgba(188, 218, 243, 0.808) rgba(0, 238, 255, 0.555); */
}

/* =========================================================
   RESULTS (results.html)
   ========================================================= */

body.results {
  margin: 0;
  min-height: 100vh;
  color: rgba(255,255,255,0.92);
  /* background via .pc-page */
}

body.results .page{
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: 12px 0 28px;
}

/* Header */
.resultsHeader{ text-align:center; padding: 16px 0 8px; }
.resultsBrand{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e4e709;
  text-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.resultsPlayer{ margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.resultsTitle{ font-size: 26px; font-weight: 800; margin-top: 10px; }

/* Cards no tema */
body.results .card{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

/* Botões */
body.results button{
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
body.results button:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.22);
}

/* Card de partida (layout mais “jogo”, menos “código”) */
body.results .matchCard{ margin-bottom: 12px; }
body.results .matchTitle{
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}
body.results .matchMeta{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
body.results .matchId{
  opacity: 0.75;
  font-size: 12px;
}

/* placar */
body.results .resultScore{
  margin-top: 10px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  color: #19b8f7;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 900;
  font-size: 18px;
}

body.results .btnResult{
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffd54f;
}

/* Define a cor dos textos menores do ranking */
body.results .small { color: var(--smallAlt); }

body.results .btnResult:hover{
  background: rgba(255, 193, 7, 0.25);
}

body.results .resultScore.win{
  color: #08c56a;
}
body.results .resultScore.loss{
  color: #c73434;
}
body.results .resultScore.draw{
  color: rgba(197, 215, 252, 0.85);
}

/* Ajustes dos badges das pasrtidas - PUBLIC OPEN DIRECTED FINISHED */
.matchMetaBar {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(139, 148, 155, 0.767);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* =========================================================
   RANKING PAGE (ranking.html)
   ========================================================= */

body.ranking {
  margin: 0;
  min-height: 100vh;
  color: rgba(255,255,255,0.92);
  /* background via .pc-page */
}

body.ranking .page {
  width: min(820px, 92vw);
  margin: 0 auto;
  padding: 10px 0 40px;
}

body.ranking h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

/* Header */
.rankHeader {
  text-align: center;
  padding: 18px 0 10px;
}
.rankBrand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e4e709;
  text-shadow: 0 6px 14px rgba(0,0,0,0.4);
}
.rankPlayer {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* Cards */
body.ranking .card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  margin-bottom: 16px;
  padding: 18px 20px;
}

/* Tabs de período */
.rankTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.rankTab {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
  letter-spacing: 0.04em;
}
.rankTab:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.rankTab.active {
  background: rgba(228,231,9,0.15);
  border-color: rgba(228,231,9,0.5);
  color: #e4e709;
}

/* Pódio */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  padding: 10px 0 0;
}
.podiumPlace {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.podiumNick {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.podiumPts {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.podiumAvatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  border: 3px solid transparent;
}
.podiumAvatar-gold   { border-color: #ffd700; background: rgba(255,215,0,0.15); width:60px; height:60px; font-size:24px; }
.podiumAvatar-silver { border-color: #c0c0c0; background: rgba(192,192,192,0.15); }
.podiumAvatar-bronze { border-color: #cd7f32; background: rgba(205,127,50,0.15); }

.podiumBlock {
  border-radius: 8px 8px 0 0;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}
.podiumBlock-gold   { background: rgba(255,215,0,0.2);   color: #ffd700; }
.podiumBlock-silver { background: rgba(192,192,192,0.2); color: #c0c0c0; }
.podiumBlock-bronze { background: rgba(205,127,50,0.2);  color: #cd7f32; }

.meNickStyle { color: #e4e709; }

/* Tabela */
.rankTable {
  width: 100%;
  border-collapse: collapse;
}
.rankTable th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  padding: 0 10px 10px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.rankTable th:not(:first-child) { text-align: center; }
.rankTable td {
  padding: 12px 10px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
  text-align: center;
}
.rankTable td:first-child,
.rankTable td:nth-child(2) { text-align: left; }
.rankTable tr:last-child td { border-bottom: none; }
.rankTable tr:hover td { background: rgba(255,255,255,0.03); }

/* Linha do jogador logado */
.rankMe td { background: rgba(228,231,9,0.06); }
.rankMe td:first-child { border-left: 3px solid #e4e709; }

.rankPos       { font-size: 13px; font-weight: 900; color: rgba(255,255,255,0.45); display:inline-block; width:22px; text-align:center; }
.rankPos.gold   { color: #ffd700; }
.rankPos.silver { color: #c0c0c0; }
.rankPos.bronze { color: #cd7f32; }

.rankNick   { font-weight: 800; }
.rankNickMe { color: #e4e709; }
.rankWin    { color: #08c56a; font-weight: 700; }
.rankLoss   { color: #ff4d4d; font-weight: 700; }
.rankPts    { font-weight: 900; font-size: 15px; }
.rankRate   { font-weight: 700; color: #4fa3e0; }

/* Botão voltar */
.rankBtnBack {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background 150ms ease;
}
.rankBtnBack:hover { background: rgba(255,255,255,0.10); }

/* Mobile */
@media (max-width: 520px) {
  body.ranking h1 { font-size: 22px; }
  .podiumBlock { width: 56px; }
  .hide-mobile { display: none; }
  .rankTable th, .rankTable td { padding: 10px 6px; font-size: 13px; }
}

/* Linha de botões do match (Enviar + WhatsApp) */
.matchBtnRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
}

/* Botão WhatsApp */
.btnWhatsApp {
  background: rgba(37,211,102,0.2) !important;
  border: 1px solid rgba(37,211,102,0.5) !important;
  color: #25d366 !important;
  font-weight: 700;
}

.btnWhatsApp:hover {
  background: rgba(37,211,102,0.32) !important;
}


/* =========================================================
   MOBILE — Ajustes para telas pequenas (≤ 520px)
   ========================================================= */

@media (max-width: 520px) {

  /* ---- MATCH: mini gol maior e centralizado ---- */
  .miniGoalFrame {
    width: 100% !important;
    box-sizing: border-box;
    margin: 12px 0 10px !important;
    padding: 14px 10px 10px !important;
  }
  /* ---- MATCH: grid do mini gol (FIX corte col. 3 e 6) ---- */
  .pick-grid.miniGoalGrid {
    /* mantém o absolute, mas NÃO force width:100% junto com inset */
    width: auto !important;
    
    /* reduz um pouco as “margens internas” pra caber melhor no mobile */
    inset: 18px 12px 8px !important;
    
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(2, 80px) !important;
    gap: 6px !important;
  }
  .miniGoalGrid .pick-cell { font-size: 18px; }
  body.match .page, body.respond .page {
    width: 94vw !important;
    padding: 8px 0 20px !important;
  }
  body.match .card { padding: 12px 10px; }
  .matchBtnRow { flex-direction: column; }
  .matchBtnRow button { width: 100%; }

  /* ---- REPLAY ---- */

  /* HUD compacto */
  .hud2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 6px 10px !important;
    text-align: center;
  }
  .hud2-left   { order: 2; font-size: 10px; opacity: 0.75; }
  .hud2-center { order: 1; }
  .hud2-right  { order: 3; width: 100%; display: flex; justify-content: center !important; }
  .hud2-title  { font-size: 14px !important; }
  body.stadium.stadium-v2 .hud2-scoreline { display: none !important; }

  .stage2 { padding: 6px 0 0 !important; }

  /* Nomes */
  .namesRow { width: 96vw !important; margin-bottom: 4px !important; }
  .nameLeft, .nameRight {
    font-size: 12px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
  }
  .inlineScore { font-size: 14px !important; padding: 2px 8px !important; }

  /* Arena: tracks de 28px, tudo dentro de 96vw */
  .arena {
    width: 96vw !important;
    box-sizing: border-box !important;
    grid-template-columns: 28px minmax(0,1fr) 28px !important;
    column-gap: 3px !important;
    padding: 6px 3px 4px !important;
  }

  .track { width: 28px !important; }

  .trackCol {
    grid-template-rows: repeat(5, 24px) !important;
    gap: 4px !important;
  }

  .pSlot {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
  }

  .pIcon { font-size: 11px !important; }

  /* Gol: remove deslocamento e abre espaço para as traves */
  .goalFrame,
  body.stadium.stadium-v2 .goalFrame {
    margin-left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 28px 16px 12px !important;
  }

  /* Textos de lance */
  body.stadium.stadium-v2 .headline { font-size: 16px !important; }
  body.stadium.stadium-v2 .detail   { font-size: 10px !important; }

  /* Campo */
  .fieldStrip {
    width: 96vw !important;
    padding: 6px 8px 12px !important;
  }

  .bigResult { font-size: 18px !important; padding: 3px 10px !important; }

  /* Controles */
  .controls2 {
    flex-wrap: wrap !important;
    gap: 5px !important;
    justify-content: center;
    padding-top: 5px !important;
  }
  .btn   { padding: 7px 10px !important; font-size: 13px; }
  .speed { font-size: 12px; }

  /* ---- RANKING ---- */
  body.ranking h1 { font-size: 22px; }
  .podiumBlock { width: 56px; }
  .hide-mobile { display: none; }
  .rankTable th, .rankTable td { padding: 10px 6px; font-size: 13px; }
}

  /* ---- HOME mobile ---- */
  .homeGrid { grid-template-columns: 1fr 1fr; }
  .homeRow  { grid-template-columns: 1fr 1fr; }
  .homeBtn  { min-height: 116px; padding: 14px 12px; }
  .homeBtnTitle { font-size: 21px; }
  .homePlayerCard { gap: 8px; padding: 14px 16px; flex-wrap: nowrap; }
  .brandTitle { font-size: 56px; }
  body.match .page, body.respond .page { width: 94vw !important; padding: 12px 0 20px !important; }
  .miniGoalFrame { width: 100% !important; margin: 0 0 10px !important; }
  .pick-grid.miniGoalGrid {
    grid-template-rows: repeat(2, 72px) !important;
  }
  .matchBtnRow { flex-direction: column; }
  .matchBtnRow button { width: 100%; }

  /* =========================================================
   DESAFIO.HTML
   ========================================================= */

/* Layout da linha do desafio público */
.desafioPublicRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Card do desafio direto — borda laranja */
.desafioDirectCard {
  border-color: var(--border-or, rgba(255,140,0,0.30));
}
.desafioDirectCard::after {
  background: linear-gradient(90deg, var(--orange), transparent);
}
.desafioDirectCard h2 {
  color: var(--orange);
}

/* Campo de busca */
.playerSearch {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.playerSearch input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  outline: none;
  transition: border-color 180ms;
}
.playerSearch input:focus {
  border-color: var(--neon);
  box-shadow: var(--glow);
}
.playerSearch input::placeholder { color: rgba(255,255,255,0.25); }

/* Tabela de jogadores */
.playerTable {
  width: 100%;
  border-collapse: collapse;
}
.playerTable th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding: 0 10px 10px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.playerTable th:not(:first-child) { text-align: center; }
.playerTable td {
  padding: 11px 10px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}
.playerTable td:not(:first-child) { text-align: center; }
.playerTable tr:last-child td { border-bottom: none; }
.playerTable tr:hover td { background: rgba(255,140,0,0.04); }

.pPos { font-size: 13px; font-weight: 900; color: rgba(255,255,255,0.35); width: 24px; display: inline-block; text-align: center; }
.pPos.gold   { color: var(--gold); }
.pPos.silver { color: var(--silver); }
.pPos.bronze { color: var(--bronze); }
.pNick { font-weight: 800; }
.pPts  { font-weight: 900; font-size: 15px; }
.pWin  { color: #08c56a; font-weight: 700; }
.pLoss { color: #ff4d4d; font-weight: 700; }

/* Botão desafiar inline */
.btnDesafiar {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,140,0,0.30);
  background: rgba(255,140,0,0.10);
  color: var(--orange);
  cursor: pointer;
  transition: all 160ms ease;
  white-space: nowrap;
}
.btnDesafiar:hover {
  background: rgba(255,140,0,0.22);
  box-shadow: 0 0 18px rgba(255,140,0,0.4);
}

/* Rodapé da tabela */
.tableFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.tableCount {
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.05em;
}
.btnVerMais {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,140,0,0.30);
  background: rgba(255,140,0,0.08);
  color: var(--orange);
  cursor: pointer;
  transition: all 160ms ease;
}
.btnVerMais:hover {
  background: rgba(255,140,0,0.20);
  box-shadow: 0 0 18px rgba(255,140,0,0.4);
}
.btnVerMais:disabled {
  opacity: 0.3;
  cursor: default;
  box-shadow: none;
}

/* ── CONTEXTO ATIVO (liga) ─────────────────────────────── */
.homeContextBar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.18);
  border-radius: 8px;
  margin-bottom: 8px;
}
.homeContextIcon { font-size: 14px; }
.homeContextName {
  flex: 1;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--neon);
  text-transform: uppercase;
}
.homeContextChange {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .5px;
  cursor: pointer;
  padding: 2px 6px;
}
.homeContextChange:hover { color: var(--neon); }

/* Dropdown de ligas */
.homeContextDropdown {
  background: var(--cardBg);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}
.homeContextLeagueItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: .84rem;
  transition: background .15s;
}
.homeContextLeagueItem:hover { background: rgba(0,240,255,0.06); }
.homeContextLeagueItem.active { color: var(--neon); font-weight: 700; }
.homeContextLeagueName { flex: 1; }
.homeContextLeagueCheck { color: var(--neon); font-size: .8rem; }
.homeContextNewLeague {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: transparent;
  border: 1px dashed rgba(0,240,255,0.25);
  border-radius: 7px;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .15s;
}
.homeContextNewLeague:hover { border-color: var(--neon); color: var(--neon); }

/* Bichos no card do jogador */
.homeBichos {
  font-size: 1rem;
  color: var(--neon2);
  font-weight: 700;
  letter-spacing: .5px;
  font-family: var(--font-title);
}

/* Botão ligas na homeRow */
.homeBtn--liga {
  border-color: rgba(228,231,9,0.3);
  color: var(--neon2);
}
.homeBtn--liga:hover {
  border-color: var(--neon2);
  background: rgba(228,231,9,0.08);
}

/* ── TORNEIOS ─────────────────────────────────────────────── */
.homeBtn--torneio {
  border-color: rgba(255,45,85,0.3);
  color: #ff6b6b;
  position: relative;
}
.homeBtn--torneio:hover {
  border-color: #ff2d55;
  background: rgba(255,45,85,0.08);
}
.tournamentBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff2d55;
  color: #fff;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 700;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
}
/* Tag de torneio em results.html */
.tournamentTag {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffd166;
  /*background: rgba(255, 209, 102, 0.12);
  //border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 999px; */
}
