@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   style.css â€” visual compartilhado (home, telÃ£o, admin).
   ============================================================ */
:root {
  --bg: #070a13;
  --bg2: #0e1428;
  --card: rgba(20, 28, 51, 0.65);
  --line: rgba(255, 255, 255, 0.08);
  --txt: #eaf0ff;
  --muted: #8b9dc3;
  --accent: #00f0ff;
  --accent2: #8a2be2;
  --gold: #ffbe0b;
  --win: #00ff88;
  --danger: #ff0055;
  --radius: 16px;
  --glow-accent: rgba(0, 240, 255, 0.4);
  --glow-accent2: rgba(138, 43, 226, 0.4);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 50% -10%, #151b3a 0%, var(--bg) 55%);
  color: var(--txt);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); transition: color 0.3s ease; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--glow-accent); }

.wrap { max-width: 980px; margin: 0 auto; padding: 24px 18px 60px; }

/* topo */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand .logo { font-size: 28px; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2)); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* botÃµes */
.btn {
  appearance: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--txt); padding: 12px 20px; border-radius: 12px; font-size: 15px;
  font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(8px);
}
.btn:hover { 
  border-color: rgba(255, 255, 255, 0.2); 
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn:active { transform: translateY(1px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.btn.primary { 
  background: linear-gradient(135deg, var(--accent2), var(--accent)); 
  border: 0; color: #fff; 
  box-shadow: 0 4px 15px var(--glow-accent2);
}
.btn.primary:hover {
  box-shadow: 0 8px 25px var(--glow-accent);
  filter: brightness(1.1);
}

.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn.danger { 
  border-color: rgba(255, 0, 85, 0.4); color: #ff80a6; 
  background: rgba(255, 0, 85, 0.05);
}
.btn.danger:hover {
  border-color: var(--danger);
  background: rgba(255, 0, 85, 0.15);
  box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
  color: #fff;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; }

/* cards (Glassmorphism) */
.card {
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); 
  border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.card h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card .sub { color: var(--muted); font-size: 15px; margin: 0 0 20px; line-height: 1.5; }

/* formulÃ¡rios */
label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin: 16px 0 8px; }
input, textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2); color: var(--txt); font-size: 16px; font-family: 'Outfit', sans-serif;
  transition: all 0.3s ease;
}
input:focus, textarea:focus { 
  outline: none; 
  border-color: var(--accent); 
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}
.row { display: flex; gap: 12px; align-items: center; }
.row input { flex: 1; }

/* chips / status */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge.open { background: rgba(0, 240, 255, 0.1); color: var(--accent); border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 0 10px rgba(0, 240, 255, 0.1); }
.badge.run { background: rgba(138, 43, 226, 0.1); color: #d69eff; border-color: rgba(138, 43, 226, 0.3); box-shadow: 0 0 10px rgba(138, 43, 226, 0.1); }
.badge.done { background: rgba(255, 190, 11, 0.1); color: var(--gold); border-color: rgba(255, 190, 11, 0.3); box-shadow: 0 0 10px rgba(255, 190, 11, 0.1); }

/* escalaÃ§Ã£o (inscriÃ§Ã£o) */
.escalacao-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 28px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 16px; color: #fff;
}
.jogador-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.jogador-row .num {
  flex: 0 0 38px; width: 38px; height: 46px; display: grid; place-items: center;
  border-radius: 10px; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff;
  box-shadow: 0 4px 10px var(--glow-accent2);
}
.jogador-row.res .num {
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; box-shadow: none;
}
.jogador-row input { flex: 1; }

/* comando do jogo ao vivo (painel admin) */
.live-cmd { 
  border-color: rgba(255, 0, 85, 0.4); 
  background: linear-gradient(180deg, rgba(255, 0, 85, 0.08), rgba(20, 28, 51, 0.65));
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.15); 
}
.cmd-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 28px; color: var(--gold); text-shadow: 0 0 10px rgba(255, 190, 11, 0.4); }
.cmd-timer.estourou { color: #ff0055; animation: pulse 1s infinite; }
.cmd-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 20px; }
.cmd-team { text-align: center; }
.cmd-nome { font-weight: 800; font-size: 19px; margin-bottom: 8px; min-height: 24px; }
.cmd-score { font-size: 64px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.cmd-btns { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.cmd-x { font-size: 32px; font-weight: 800; color: var(--muted); opacity: 0.5; }
.ou-sep { text-align: center; color: var(--muted); font-size: 14px; margin: 20px 0 14px; position: relative; }
.ou-sep::before, .ou-sep::after {
  content: ""; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--line);
}
.ou-sep::before { left: 0; }
.ou-sep::after { right: 0; }

/* lista de times */
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.time {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px; 
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, background 0.2s ease;
}
.time:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.time h3 { margin: 0 0 10px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.time ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; font-size: 16px; }

/* ====== chaveamento (bracket) ====== */
.bracket { display: flex; gap: 0; overflow-x: auto; padding: 12px 4px 24px; align-items: center; justify-content: center; }
.bracket-side { display: flex; gap: 40px; }
.bracket-left { margin-right: 40px; }
.bracket-right { margin-left: 40px; }
.bracket-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.col { display: flex; flex-direction: column; justify-content: space-around; min-width: 240px; gap: 20px; position: relative; }
.col .col-title {
  text-align: center; color: var(--accent); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.match {
  background: rgba(14, 20, 40, 0.8); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}
.match:hover { transform: scale(1.02); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); }
.match .side {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; font-size: 15px; transition: background 0.2s;
}
.match .side + .side { border-top: 1px solid var(--line); }
.match .side .nm-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.match .side .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.telao .match .side .escudo { width: 34px !important; height: 34px !important; font-size: 15px !important; }
.bracket.grid-mode .side .nm-wrap { flex-direction: column; gap: 6px; }
.telao .bracket.grid-mode .side .escudo { width: 48px !important; height: 48px !important; font-size: 20px !important; }
.match .side .sc { font-weight: 900; color: var(--muted); min-width: 20px; text-align: right; }
.match .side.win { background: linear-gradient(90deg, rgba(0, 255, 136, 0.15), rgba(0, 255, 136, 0.05)); }
.match .side.win .nm { font-weight: 800; color: #fff; text-shadow: 0 0 5px rgba(255,255,255,0.3); }
.match .side.win .sc { color: var(--win); text-shadow: 0 0 10px rgba(0, 255, 136, 0.4); }
.match .side.tbd .nm { color: #4a5578; font-style: italic; }
.match .side.bye .nm { color: #4a5578; }

/* bye ("camarote") */
.match.bye-box { opacity: 0.8; border: 1px dashed rgba(255,255,255,0.1); background: transparent; box-shadow: none; }
.match.bye-box .bye-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  text-align: center; padding: 4px 0 6px; background: rgba(0,0,0,0.2);
}

/* conectores das chaves visualmente melhorados se desejar (opcional se nÃ£o quiser mudar estrutura, mas no CSS original nÃ£o tinha as linhas. Aqui manteremos limpo, o gap jÃ¡ faz o serviÃ§o) */

/* ============================================================
   TELÃƒO â€” layout de tela cheia (projetor)
   ============================================================ */
body.telao {
  background: radial-gradient(circle at 50% 0%, #151b3a 0%, #030408 80%);
  overflow: hidden;
}
.telao-root {
  display: flex; flex-direction: column; height: 100vh; padding: 24px 32px 16px; gap: 20px;
}

/* topo */
.t-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.telao .brand { font-size: clamp(26px, 3vw, 44px); text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.t-meta { display: flex; align-items: center; gap: 16px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 24px; color: var(--muted); }
.live {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 15px;
  letter-spacing: 0.15em; color: #fff; background: var(--danger); padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}
.live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.telao .badge { font-size: 15px; padding: 8px 18px; }

/* hero do prÃ³ximo jogo */
.hero {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 60px);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 240, 255, 0.15));
  border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: clamp(14px, 2vh, 28px) clamp(24px, 4vw, 60px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 0 80px rgba(138, 43, 226, 0.1);
  backdrop-filter: blur(12px);
}
.hero-team { text-align: center; min-width: 0; }
.hero-team .ht-nome {
  font-size: clamp(28px, 4vw, 64px); font-weight: 900; line-height: 1.05;
  overflow: hidden; text-overflow: ellipsis; text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.hero-team.left .ht-nome { color: #d69eff; }
.hero-team.right .ht-nome { color: #80ffe5; }
.hero-mid { text-align: center; }
.hero-lbl { font-size: 14px; letter-spacing: 0.2em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.hero-vs {
  font-size: clamp(40px, 6vw, 100px); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #fff, #8b9dc3); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.hero-rod { font-size: clamp(14px, 1.6vw, 20px); color: var(--gold); font-weight: 800; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ===== card de JOGO AO VIVO (placar + cronÃ´metro) ===== */
.live-card {
  background: linear-gradient(135deg, rgba(255, 0, 85, 0.2), rgba(255, 190, 11, 0.15));
  border: 2px solid rgba(255, 0, 85, 0.5); border-radius: 24px;
  padding: clamp(12px, 1.8vh, 24px) clamp(24px, 4vw, 60px);
  box-shadow: 0 0 80px rgba(255, 0, 85, 0.25), inset 0 0 40px rgba(255, 190, 11, 0.1);
  backdrop-filter: blur(16px);
}
.lc-tag {
  text-align: center; font-weight: 900; letter-spacing: 0.15em; color: #ff3377;
  font-size: clamp(15px, 1.6vw, 22px); margin-bottom: 8px; text-shadow: 0 0 10px rgba(255,0,85,0.4);
}
.lc-tag .lc-rod { color: #ffd166; font-weight: 800; letter-spacing: 0.05em; margin-left: 8px; }
.lc-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 50px); }
.lc-team { text-align: center; min-width: 0; }
.lc-nome {
  font-size: clamp(26px, 3.8vw, 60px); font-weight: 900; line-height: 1.05;
  overflow: hidden; text-overflow: ellipsis; text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.lc-team:first-child .lc-nome { color: #d69eff; }
.lc-team:last-child .lc-nome { color: #80ffe5; }
.lc-score {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 30px);
  font-size: clamp(48px, 7vw, 120px); font-weight: 900; font-variant-numeric: tabular-nums;
  text-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.lc-score .lc-x { font-size: 0.4em; color: rgba(255,255,255,0.3); }
.lc-timer {
  text-align: center; margin-top: 8px; font-variant-numeric: tabular-nums; font-weight: 800;
  font-size: clamp(22px, 2.6vw, 40px); color: var(--gold); letter-spacing: 0.08em;
  text-shadow: 0 0 15px rgba(255, 190, 11, 0.4);
}
.lc-timer.estourou { color: #ff0055; animation: pulse 1s infinite; text-shadow: 0 0 20px rgba(255,0,85,0.6); }

/* partida ao vivo dentro do chaveamento */
.match.ao-vivo { border-color: var(--danger); box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); }
.match.ao-vivo .side .sc { color: #ff3377; text-shadow: 0 0 8px rgba(255,0,85,0.3); }

/* ===== MODO JOGO: telÃ£o foca sÃ³ no jogo ao vivo ===== */
.modo-jogo .bracket-viewport, .modo-jogo .prem-bar, .modo-jogo .hero { display: none !important; }
.modo-jogo .live-card {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 3vh;
  border-width: 4px; border-radius: 32px;
}
.modo-jogo .lc-tag { font-size: clamp(22px, 2.5vw, 38px); }
.modo-jogo .lc-nome { font-size: clamp(40px, 6vw, 100px); }
.modo-jogo .lc-score { font-size: clamp(80px, 15vw, 260px); }
.modo-jogo .lc-timer { font-size: clamp(34px, 4vw, 64px); }

/* placar pulando quando muda */
.lc-score span { display: inline-block; }
.lc-score span.bump { animation: bump 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.8); color: #fff; text-shadow: 0 0 40px rgba(255,255,255,0.8); } 100% { transform: scale(1); } }

/* ===== efeito de GOL (tela inteira) ===== */
.gol-overlay {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2vh;
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.4), rgba(3, 4, 8, 0.98));
  backdrop-filter: blur(8px);
}
.gol-big {
  font-size: clamp(100px, 22vw, 400px); font-weight: 900; line-height: 0.9; text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, #80ffe5, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 60px rgba(0, 255, 136, 0.6));
}
.gol-time { font-size: clamp(32px, 6vw, 96px); font-weight: 900; color: #fff; text-align: center; padding: 0 24px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.gol-overlay.show .gol-big { animation: golpop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both; }
.gol-overlay.show .gol-time { animation: golup 0.7s 0.2s both; }
@keyframes golpop { 0% { transform: scale(0.1) rotate(-10deg); opacity: 0; filter: blur(20px); } 100% { transform: scale(1) rotate(0); opacity: 1; filter: blur(0); } }
@keyframes golup { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* aguardando */
.aguardando { text-align: center; margin: auto; }
.aguardando .ag-emoji { font-size: 80px; animation: roll 3s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.aguardando h2 { font-size: clamp(30px, 4.5vw, 56px); margin: 12px 0; font-weight: 800; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
@keyframes roll { 0%,100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-20px) rotate(10deg); } }

/* viewport do chaveamento */
.bracket-viewport { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 24px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }
.telao .bracket { position: absolute; top: 0; left: 0; transform-origin: top left; margin: 0; padding: 40px; gap: 0; }
.telao .bracket-side { gap: 80px; }
.telao .bracket-left { margin-right: 80px; }
.telao .bracket-right { margin-left: 80px; }
.telao .col { min-width: 340px; gap: 30px; }
.telao .match .side { padding: 18px 24px; font-size: 28px; }
.telao .col-title { font-size: 22px; margin-bottom: 20px; }

/* campeÃ£o */
.champ {
  text-align: center; margin: auto; padding: 40px 60px; position: relative;
  border: 3px solid var(--gold); border-radius: 32px; background: linear-gradient(180deg, rgba(255, 190, 11, 0.15), rgba(0,0,0,0.4));
  box-shadow: 0 0 100px rgba(255, 190, 11, 0.25), inset 0 0 50px rgba(255, 190, 11, 0.1);
  backdrop-filter: blur(16px);
}
.champ-lbl { font-size: clamp(20px, 2.5vw, 32px); letter-spacing: 0.25em; color: var(--gold); font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.champ-nome { font-size: clamp(48px, 9vw, 130px); font-weight: 900; color: #fff; line-height: 1.1; text-shadow: 0 0 40px rgba(255, 190, 11, 0.6); margin-top: 10px; }

/* rodapÃ© de premiaÃ§Ãµes */
.prem-bar {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  background: rgba(255, 190, 11, 0.15); border: 1px solid rgba(255, 190, 11, 0.4); color: var(--gold);
  border-radius: 16px; padding: 14px 24px; font-weight: 800; font-size: clamp(16px, 1.8vw, 24px);
  backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.prem-bar .prem-ico { font-size: 24px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 99; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { padding: 14px 24px; border-radius: 12px; font-weight: 700; box-shadow: 0 10px 40px rgba(0,0,0,0.5); animation: up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-size: 15px; }
.toast.success { background: #002211; color: var(--win); border: 1px solid var(--win); box-shadow: 0 10px 40px rgba(0,255,136,0.2); }
.toast.error { background: #220011; color: #ff80a6; border: 1px solid var(--danger); box-shadow: 0 10px 40px rgba(255,0,85,0.2); }
.toast.info { background: #001122; color: #80ffe5; border: 1px solid var(--accent); }
@keyframes up { from { opacity: 0; transform: translateY(20px) scale(0.9); } }

.hide { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ===== Escudo do time (imagem ou genérico) ===== */
.escudo {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; flex: 0 0 auto; vertical-align: middle;
  border: 1px solid var(--line); background: #0b1020; color: #fff; font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
img.escudo { object-fit: cover; }
.escudo-gen { letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.escudo-tbd { background: rgba(255, 255, 255, .06); border-style: dashed; filter: grayscale(.3) opacity(.85); }
/* escolha do escudo no formulário */
.escudo-pick { display: flex; align-items: center; gap: 14px; margin: 8px 0 4px; }
.escudo-pick .escudo { width: 64px; height: 64px; font-size: 26px; }

/* ============================================================
   HOME — acompanhar meu time (pós-sorteio, mobile-first)
   ============================================================ */
/* seletor de categoria (inscrição) */
.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 4px; }
.cat-opt { padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--txt); font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s; }
.cat-opt:hover { background: rgba(255,255,255,.07); }
.cat-opt.sel { border-color: var(--accent); background: rgba(0,240,255,.12); color: #fff; box-shadow: 0 0 14px rgba(0,240,255,.15); }
.cat-opt:disabled { opacity: .4; cursor: not-allowed; }
.cat-hint { background: rgba(255,190,11,.1); border: 1px solid rgba(255,190,11,.35); color: #ffe08a; border-radius: 12px; padding: 12px 14px; margin: 4px 0 0; font-size: 14px; line-height: 1.5; font-weight: 600; }

/* avisos do evento (banner no topo da tela do jogador) */
.avisos-box { background: rgba(255, 190, 11, .1); border: 1px solid rgba(255, 190, 11, .35); color: #ffe08a; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; font-size: 14px; line-height: 1.5; }

.meu-time-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.meu-time-head h2 { margin: 2px 0 0; }
.lbl-mini { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }

.destaque { border-radius: 16px; padding: 18px; margin: 18px 0; border: 1px solid var(--line); overflow: hidden; }
.destaque .d-lbl { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; line-height: 1.4; }
.destaque .d-aovivo { color: #ff3377; white-space: nowrap; }
/* grid 1fr auto 1fr: colunas dos times encolhem de verdade, placar/× no meio.
   Evita o card estourar a largura no celular (bug do "FINAL" cortado). */
.destaque .d-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 14px 0 6px; }
.destaque .d-team { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; }
.destaque .d-team .d-nm { max-width: 100%; line-height: 1.15; overflow-wrap: anywhere; }
.destaque .d-team .escudo { width: 44px; height: 44px; font-size: 18px; }
.destaque .d-team.eu { color: #80ffe5; }
.destaque .d-timer { text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 32px; color: var(--gold); letter-spacing: 0.06em; margin: 6px 0 2px; text-shadow: 0 0 12px rgba(255, 190, 11, .35); }
.destaque .d-timer.estourou { color: #ff3377; animation: pulse 1s infinite; text-shadow: 0 0 14px rgba(255, 0, 85, .4); }
.destaque .d-x { font-size: 20px; font-weight: 900; color: var(--muted); }
.destaque .d-sc { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.destaque .d-rod { text-align: center; color: var(--gold); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }

.destaque.prox { background: linear-gradient(135deg, rgba(138,43,226,.18), rgba(0,240,255,.12)); border-color: rgba(0,240,255,.3); }
.destaque.prox .d-lbl { color: var(--accent); }
.destaque.live { background: linear-gradient(135deg, rgba(255,0,85,.18), rgba(255,190,11,.12)); border-color: rgba(255,0,85,.5); box-shadow: 0 0 30px rgba(255,0,85,.2); }
.destaque.live .d-lbl { color: #ff3377; }
.destaque.camp { background: linear-gradient(180deg, rgba(255,190,11,.18), rgba(0,0,0,.3)); border-color: var(--gold); text-align: center; }
.destaque.camp .d-lbl { color: var(--gold); }
.destaque.camp .d-big { font-size: 28px; font-weight: 900; margin-top: 8px; }
.destaque.out { background: rgba(255,255,255,.02); }
.destaque.out .d-lbl { color: var(--muted); }

.jogos-lista { display: flex; flex-direction: column; gap: 10px; }
.jogo-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.jogo-card .jc-rod { flex: 0 0 72px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; line-height: 1.2; }
.jogo-card .jc-mid { flex: 1; min-width: 0; }
.jogo-card .jc-times { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jogo-card .jc-times b { color: #fff; }
.jogo-card .jc-chip { flex: 0 0 auto; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
/* destaca os jogos do próprio time na lista do chaveamento */
.jogo-card.meu { border-color: rgba(0, 240, 255, .45); background: rgba(0, 240, 255, .06); }
/* confronto time1 × time2 (vista chaveamento) */
.jc-confronto { display: flex; align-items: center; gap: 8px; white-space: normal; overflow: visible; text-overflow: clip; }
.jc-confronto .jc-lado { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.jc-confronto .jc-lado:last-child { justify-content: flex-end; text-align: right; }
.jc-confronto .jc-meio { flex: 0 0 auto; font-weight: 800; color: var(--muted); }
.jc-chip.win { background: rgba(0,255,136,.12); color: var(--win); }
.jc-chip.lose { background: rgba(255,0,85,.12); color: #ff80a6; }
.jc-chip.live { background: rgba(255,0,85,.15); color: #ff3377; }
.jc-chip.wait { background: rgba(255,255,255,.05); color: var(--muted); }

.time-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0; }
.time-picker .pick { justify-content: flex-start; gap: 8px; border: 1px solid var(--line); }
.time-picker .pick .escudo { width: 22px; height: 22px; font-size: 10px; }
.jogo-card .jc-times .escudo { width: 22px; height: 22px; font-size: 10px; }

.acoes-tela { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* código de confirmação (capitão mostra no dia) */
.cod-grande {
  font-size: 44px; font-weight: 900; letter-spacing: 0.18em; margin: 10px 0 8px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text;
  background-clip: text; color: transparent; filter: drop-shadow(0 2px 8px rgba(0,240,255,.3));
}

/* status do time no painel admin */
.time .t-status { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.time .t-status.ok { color: var(--win); }
.time .t-status.pend { color: var(--gold); }
.time .t-cod { font-family: ui-monospace, monospace; letter-spacing: .12em; color: var(--accent); font-weight: 800; }
.time .t-tel { font-size: 13px; margin: 0 0 8px; }
.time .t-tel a { font-weight: 700; }
.time .t-mover { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0 2px; }
.time .t-mover select { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.2); color: var(--txt); font-family: inherit; font-size: 13px; }
.time .t-acoes { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cod-confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cod-confirm input { flex: 1; min-width: 120px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* honeypot anti-bot: fora da tela, invisível pra humano e leitor de tela */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* aviso de inscrições lotadas */
.aviso-lotado {
  background: rgba(255, 0, 85, .1); border: 1px solid rgba(255, 0, 85, .4); color: #ff80a6;
  border-radius: 12px; padding: 12px 16px; font-weight: 700; margin-bottom: 16px; text-align: center;
}

/* ===== Mobile (foco da tela de inscrição/acompanhamento) ===== */
@media (max-width: 640px) {
  .wrap { padding: 16px 12px 48px; }
  .topbar { margin-bottom: 18px; }
  .brand { font-size: 19px; }
  .brand .logo { font-size: 24px; }
  .nav { gap: 6px; }
  .nav .btn { padding: 9px 12px; font-size: 13px; }
  .card { padding: 18px 16px; }
  .card h2 { font-size: 18px; }
  .destaque { padding: 16px 14px; }
  .destaque .d-vs { gap: 8px; }
  .destaque .d-team { font-size: 15px; }
  .destaque .d-team .escudo { width: 38px !important; height: 38px !important; font-size: 15px; }
  .destaque .d-sc { font-size: 24px; }
}

/* ===== Animação de sorteio ===== */
.anim-hide { opacity: 0; transform: scale(0.5); pointer-events: none; }
.anim-pop { animation: popin 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes popin {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== MODO FOCO: tel�o ===== */
body.telao.modo-foco .t-top, body.telao.modo-foco header, body.telao.modo-foco .prem-bar { display: none !important; }
.float-btn { position: fixed; top: 16px; right: 16px; z-index: 999; opacity: 0.2; transition: opacity 0.3s; }
.float-btn:hover { opacity: 1; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.tab-btn { background: transparent; border: 1px solid transparent; color: var(--muted); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: 0.2s; white-space: nowrap; }
.tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.tab-btn.active { background: rgba(0,240,255,0.1); color: var(--accent); border-color: rgba(0,240,255,0.3); }

/* ===== Grid Mode ===== */
.bracket.grid-mode { display: grid; grid-template-columns: repeat(var(--grid-cols, 1), 320px); gap: 20px; width: max-content; margin: 0 auto; align-items: start; justify-content: center; overflow-y: visible; padding-top: 20px; }
.bracket.grid-mode .col { display: contents; }
.bracket.grid-mode .col-title { grid-column: 1 / -1; font-size: 24px; text-align: center; margin-bottom: 10px; }
.bracket.grid-mode .match { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 20px; gap: 10px; min-height: 100px; position: relative; }
.bracket.grid-mode .match::after { content: "X"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; font-weight: 900; color: var(--accent); background: #111; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(0,240,255,0.2); }
.bracket.grid-mode .side { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: transparent; border: none; padding: 0; text-align: center; font-size: 16px; }
.bracket.grid-mode .side .sc { font-size: 20px; font-weight: 900; background: rgba(255,255,255,0.1); padding: 4px 16px; border-radius: 8px; color: #fff; }
.telao .bracket.grid-mode { grid-template-columns: repeat(var(--grid-cols, 1), 500px); gap: 40px; }
.telao .bracket.grid-mode .col-title { font-size: 40px; margin-bottom: 20px; }
.telao .bracket.grid-mode .match { padding: 30px; gap: 20px; min-height: 140px; border-radius: 20px; }
.telao .bracket.grid-mode .match::after { width: 50px; height: 50px; font-size: 28px; }
.telao .bracket.grid-mode .side { font-size: 26px; gap: 12px; }
.telao .bracket.grid-mode .side .sc { font-size: 32px; padding: 8px 24px; border-radius: 12px; }
