* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: #121212;
  color: #EDEAE0;
  font-family: 'Inter', sans-serif;
  padding-bottom: 60px;
}
.header { background: #000000; border-bottom: 3px solid #E3B23C; padding: 28px 20px; }
.header-inner { max-width: 900px; margin: 0 auto; }
.eyebrow { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px; color: #E3B23C; }
.title { font-family: 'Oswald', sans-serif; font-size: 34px; font-weight: 700; margin: 6px 0 4px; letter-spacing: 1px; }
.sub { color: #C9C4B0; font-size: 14px; margin: 0; }
.warn { color: #E3B23C; font-size: 12px; margin: 6px 0 0; }

.tabs { display: flex; gap: 8px; max-width: 900px; margin: 18px auto 0; padding: 0 20px; }
.tab-btn {
  flex: 1; padding: 12px 8px; background: #1C1C1C; color: #C9C4B0;
  border: 1px solid #3A3226; border-radius: 6px; font-family: 'Oswald', sans-serif;
  letter-spacing: 1px; font-size: 13px; cursor: pointer;
}
.tab-btn.active { background: #E3B23C; color: #121212; border-color: #E3B23C; font-weight: 700; }

.main { max-width: 900px; margin: 20px auto 0; padding: 0 20px; }

.round-title {
  font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 2px; color: #E3B23C;
  border-bottom: 1px solid #3A3226; padding-bottom: 6px; margin-bottom: 10px;
}
.round-block { margin-bottom: 22px; }
.game-list { display: flex; flex-direction: column; gap: 6px; }
.game-row {
  display: grid; grid-template-columns: 110px 1fr 40px 16px 40px 1fr;
  align-items: center; gap: 8px; background: #1C1C1C; border: 1px solid #3A3226;
  border-radius: 6px; padding: 8px 12px; font-size: 13px;
}
.game-row.done { border-color: #E3B23C; }
.game-day { color: #9A958A; font-size: 11px; }
.team-name { text-align: right; font-weight: 600; }
.team-name-right { text-align: left; font-weight: 600; }
.winner { color: #8FBF7F; }
.x { text-align: center; color: #9A958A; }
.score-input {
  width: 40px; text-align: center; background: #000000; color: #EDEAE0;
  border: 1px solid #3A3226; border-radius: 4px; padding: 6px 0; font-size: 14px; font-weight: 700;
}
.reset-btn {
  margin-top: 10px; background: transparent; color: #C0574A; border: 1px solid #C0574A;
  border-radius: 6px; padding: 10px 16px; font-family: 'Oswald', sans-serif;
  letter-spacing: 1px; cursor: pointer;
}

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: #C9C4B0; margin-bottom: 12px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid #3A3226; border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: center; padding: 10px 8px; background: #000000; color: #E3B23C;
  font-family: 'Oswald', sans-serif; letter-spacing: 1px; font-size: 12px; border-bottom: 2px solid #3A3226;
}
th.left, td.left { text-align: left; }
td { text-align: center; padding: 8px; border-bottom: 1px solid #2A2A2A; }

.note { color: #9A958A; font-size: 13px; margin-top: 10px; font-style: italic; }

.ko-block { margin-bottom: 24px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
}
.chip-green { background: #8FBF7F22; border: 1px solid #8FBF7F; color: #8FBF7F; }
.chip-red { background: #C0574A22; border: 1px solid #C0574A; color: #C0574A; }

.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-box {
  background: #1C1C1C; border: 1px solid #3A3226; border-radius: 10px;
  padding: 28px; max-width: 360px; width: 100%;
}
.login-input {
  width: 100%; margin-top: 14px; padding: 10px 12px; background: #000000; color: #EDEAE0;
  border: 1px solid #3A3226; border-radius: 6px; font-size: 14px;
}
.login-btn {
  width: 100%; margin-top: 12px; padding: 10px 12px; background: #E3B23C; color: #121212;
  border: none; border-radius: 6px; font-family: 'Oswald', sans-serif; letter-spacing: 1px;
  font-weight: 700; cursor: pointer;
}
.login-erro { color: #C0574A; font-size: 13px; margin-top: 10px; min-height: 16px; }

.logout-btn {
  position: absolute; top: 24px; right: 20px; background: transparent; color: #C9C4B0;
  border: 1px solid #3A3226; border-radius: 6px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.header { position: relative; }
.sim-banner {
  background: #E3B23C; color: #121212; text-align: center; padding: 8px; font-weight: 700;
  font-family: 'Oswald', sans-serif; letter-spacing: 1px; font-size: 13px;
}

/* ---------- Filtro por time ---------- */
.filtro-bar {
  max-width: 900px; margin: 16px auto 0; padding: 0 20px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filtro-label {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 1.5px; color: #E3B23C;
}
.filtro-select {
  background: #1C1C1C; color: #EDEAE0; border: 1px solid #E3B23C; border-radius: 6px;
  padding: 8px 12px; font-size: 13px; font-family: 'Inter', sans-serif; cursor: pointer;
}

/* ---------- Análise / KPIs ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi-card {
  background: #1C1C1C; border: 1px solid #3A3226; border-radius: 8px; padding: 16px;
  text-align: center;
}
.kpi-value { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: #E3B23C; }
.kpi-label { font-size: 11px; letter-spacing: 1px; color: #C9C4B0; margin-top: 4px; text-transform: uppercase; }

.forma-row { display: flex; gap: 6px; flex-wrap: wrap; }
.forma-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700;
  font-family: 'Oswald', sans-serif;
}
.forma-v { background: #8FBF7F22; border: 1px solid #8FBF7F; color: #8FBF7F; }
.forma-e { background: #E3B23C22; border: 1px solid #E3B23C; color: #E3B23C; }
.forma-d { background: #C0574A22; border: 1px solid #C0574A; color: #C0574A; }

.analise-team-name {
  font-family: 'Oswald', sans-serif; font-size: 20px; letter-spacing: 1px; color: #EDEAE0;
  margin-bottom: 14px;
}
