@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,900;1,700&family=Barlow:wght@400;500;600&display=swap');

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:    #0D1240;
  --navy-d:  #080C2E;
  --wine:    #8B1A3A;
  --white:   #FFFFFF;
  --off:     #F0EEF8;
  --text:    #1A1A3A;
  --text-m:  #4A4A7A;
  --gold:    #C9A84C;
  --navbar-h: 66px;
  --radius:  16px;
}

html, body {
  width: 100%; height: 100%;
  font-family: 'Barlow', sans-serif;
  background: var(--navy-d);
  color: var(--text);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════
   BACKGROUND
══════════════════════════════════════════════════════ */
.bg-layer {
  position: fixed;
  inset: 0;
  background: url('/assets/bg_poly.jpg') center/cover no-repeat;
  filter: brightness(.45) saturate(.8);
  z-index: 0;
}

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: var(--white);
  z-index: 100;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.navbar-inner {
  max-width: 1760px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.navbar-logo-text {
  flex-direction: column;
  gap: 0;
}
.logo-taca {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .18em;
}
.logo-tbd {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .06em;
  line-height: 1;
  font-style: italic;
}

/* Links */
.navbar-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-m);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all .18s;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--navy); }
.nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* Right side */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-admin-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  transition: background .18s;
}
.nav-admin-btn:hover { background: #1a1f5a; }

.nav-login-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 7px 22px;
  border-radius: 6px;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  cursor: pointer;
  transition: all .18s;
}
.nav-login-btn:hover { background: var(--navy); color: var(--white); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
}
.nav-logout-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid rgba(13,18,64,.3);
  background: transparent;
  color: var(--text-m);
  cursor: pointer;
  transition: all .18s;
  letter-spacing: .08em;
}
.nav-logout-btn:hover { background: var(--navy); color: var(--white); }

/* ══════════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: var(--navbar-h);
  min-height: 100vh;
}

.home-section { display: none; }
.home-section.active { display: block; }

/* ══════════════════════════════════════════════════════
   CARROSSEL DE NOTÍCIAS
══════════════════════════════════════════════════════ */
.carousel-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 80px 24px;
  gap: 16px;
  min-height: calc(100vh - var(--navbar-h));
  justify-content: center;
}

.carousel-card {
  width: 100%;
  max-width: 1200px;
  height: 560px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
}

/* Slides */
.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  cursor: pointer;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay de texto no slide */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,12,46,.92) 0%, rgba(8,12,46,.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 44px;
}

.slide-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: .02em;
  margin-bottom: 8px;
  max-width: 700px;
}

.slide-legenda {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.5;
}

.slide-hint {
  position: absolute;
  bottom: 36px;
  right: 44px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
}

/* Slide sem imagem */
.slide-no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2060 50%, #2a1040 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 44px;
}

/* Empty state */
.carousel-empty {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f6ff 0%, #e8eaf6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 40px;
}
.carousel-empty-icon { font-size: 56px; opacity: .35; }
.carousel-empty-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-m);
  letter-spacing: .04em;
}
.carousel-empty-sub { font-size: 14px; color: #8888AA; max-width: 380px; line-height: 1.6; }

/* Pontinhos */
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 1200px;
  padding-right: 4px;
}
.dot {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .25s;
  border: none;
}
.dot.active {
  background: var(--white);
  width: 36px;
}
.dot:hover { background: rgba(255,255,255,.6); }

/* ── OVERLAY DE LEITURA ── */
.carousel-reader {
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 10;
  overflow-y: auto;
  animation: readerIn .3s ease;
}
@keyframes readerIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reader-close {
  position: absolute;
  top: 16px; right: 20px;
  background: rgba(0,0,0,.08);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 11;
  transition: background .18s;
  color: var(--text);
}
.reader-close:hover { background: rgba(0,0,0,.15); }

.reader-inner {
  display: flex;
  height: 100%;
}
.reader-img-wrap {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-d);
  padding: 20px;
}
.reader-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.reader-content {
  flex: 1;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.reader-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--wine);
  text-transform: uppercase;
}
.reader-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: .02em;
}
.reader-legenda {
  font-size: 15px;
  color: var(--text-m);
  font-weight: 500;
  line-height: 1.5;
  border-left: 3px solid var(--navy);
  padding-left: 14px;
}
.reader-corpo {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  white-space: pre-wrap;
  flex: 1;
}
.reader-data {
  font-size: 11px;
  color: #AAAACC;
  letter-spacing: .06em;
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════
   SEÇÕES PÚBLICAS (classificação, jogadores, etc.)
══════════════════════════════════════════════════════ */
.section-card {
  max-width: 1400px;
  margin: 28px auto;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,.45);
}

.section-header {
  padding: 24px 32px 18px;
  border-bottom: 2px solid var(--navy);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-sub {
  font-size: 12px;
  color: var(--text-m);
  letter-spacing: .1em;
  font-weight: 500;
}

/* Tabela pública */
.pub-table-wrap { overflow: hidden; }

.pub-table-header,
.pub-rank-header {
  display: grid;
  padding: 0 20px;
  height: 38px;
  align-items: center;
  background: var(--navy);
}
.pub-table-header {
  grid-template-columns: 48px 1.4fr 1.2fr 1.2fr 70px 64px 44px 44px 44px;
}
.pub-rank-header {
  grid-template-columns: 44px 1.5fr 1fr 80px 64px 60px 44px 44px 44px;
}

.pth {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.pth.c { justify-content: center; }

.pub-table-row,
.pub-rank-row {
  padding: 0 20px;
  height: 48px;
  align-items: center;
  border-bottom: 1px solid rgba(13,18,64,.07);
  transition: background .15s;
  animation: rowIn .3s ease forwards;
  opacity: 0;
}
.pub-table-row {
  display: grid;
  grid-template-columns: 48px 1.4fr 1.2fr 1.2fr 70px 64px 44px 44px 44px;
}
.pub-rank-row {
  display: grid;
  grid-template-columns: 44px 1.5fr 1fr 80px 64px 60px 44px 44px 44px;
}
.pub-table-row:hover,
.pub-rank-row:hover { background: rgba(13,18,64,.04); }
.pub-table-row:last-child,
.pub-rank-row:last-child { border-bottom: none; }

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ptd {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ptd.c { text-align: center; display: flex; align-items: center; justify-content: center; }
.ptd.muted { color: var(--text-m); font-size: 12px; }

.pub-pos-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.ppb-1 { background: #FFD700; color: #1A0F00; }
.ppb-2 { background: #C0C0C0; color: #1A1A1A; }
.ppb-3 { background: #CD7F32; color: #1A0A00; }
.ppb-n { background: rgba(13,18,64,.08); color: var(--text-m); }

.pub-pts { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); }
.pub-pod1 { color: #B8860B; font-weight: 700; font-size: 13px; }
.pub-pod2 { color: #888; font-weight: 700; font-size: 13px; }
.pub-pod3 { color: #A0522D; font-weight: 700; font-size: 13px; }
.pub-guilda { font-size: 14px; font-weight: 600; color: var(--navy); }

.pub-empty { text-align: center; padding: 40px; }
.pub-spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(13,18,64,.12);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pub-empty-msg { padding: 40px; text-align: center; color: var(--text-m); font-size: 14px; font-style: italic; }

/* ── HISTÓRICO ── */
.hist-layout { display: flex; gap: 0; }

.hist-rodadas {
  width: 200px;
  min-width: 200px;
  border-right: 1px solid rgba(13,18,64,.1);
  max-height: 520px;
  overflow-y: auto;
}
.hist-rodada-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(13,18,64,.06);
  cursor: pointer;
  transition: background .15s;
}
.hist-rodada-item:hover { background: rgba(13,18,64,.04); }
.hist-rodada-item.active { background: rgba(13,18,64,.08); border-left: 3px solid var(--navy); }
.hist-rnum { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; color: var(--navy); }
.hist-rdata { font-size: 11px; color: var(--text-m); }

.hist-corridas { flex: 1; padding: 16px 20px; max-height: 520px; overflow-y: auto; }

/* ── CALENDÁRIO ── */
.pub-cal-rodada { margin-bottom: 32px; padding: 0 24px; }
.pub-cal-rodada-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-top: 20px;
}
.pub-cal-rodada-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 3px 12px;
  border-radius: 3px;
  letter-spacing: .12em;
}
.pub-cal-rodada-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  color: var(--text-m);
  letter-spacing: .04em;
}
.pub-cal-line { flex: 1; height: 1px; background: rgba(13,18,64,.1); }
.pub-cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

.pub-pareo-card {
  border: 1px solid rgba(13,18,64,.12);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  height: 90px;
  transition: box-shadow .18s;
}
.pub-pareo-card:hover { box-shadow: 0 4px 16px rgba(13,18,64,.15); transform: translateY(-2px); }
.pub-pareo-info { flex: 1; padding: 12px 18px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.pub-pareo-num { font-size: 9px; letter-spacing: .18em; color: var(--text-m); text-transform: uppercase; font-weight: 600; }
.pub-pareo-nome { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--navy); }
.pub-pareo-tipo { font-size: 10px; letter-spacing: .03em; }
.pub-pareo-pista { font-size: 11px; color: var(--text-m); }

/* ══════════════════════════════════════════════════════
   LOGIN OVERLAY
══════════════════════════════════════════════════════ */
.login-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,46,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  backdrop-filter: blur(6px);
}
.login-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 44px;
  width: 360px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.login-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  font-size: 18px; cursor: pointer; color: var(--text-m);
}
.login-logo { text-align: center; font-size: 36px; margin-bottom: 10px; }
.login-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 900;
  color: var(--navy); text-align: center;
  letter-spacing: .06em; margin-bottom: 4px;
}
.login-sub { font-size: 13px; color: var(--text-m); text-align: center; margin-bottom: 22px; }
.login-input {
  width: 100%;
  border: 1px solid rgba(13,18,64,.2);
  border-radius: 7px;
  padding: 10px 13px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
  transition: border-color .18s;
}
.login-input:focus { border-color: var(--navy); }
.login-btn {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 11px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: .1em; cursor: pointer;
  margin-top: 4px;
  transition: background .18s;
}
.login-btn:hover { background: #1a1f5a; }
.login-err { color: #CC3333; font-size: 12px; text-align: center; margin-top: 8px; display: none; }

/* ══════════════════════════════════════════════════════
   PAINEL ADMIN
══════════════════════════════════════════════════════ */
.admin-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,46,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}
.admin-box {
  background: var(--white);
  border-radius: var(--radius);
  width: 600px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  overflow: hidden;
}
.admin-header {
  padding: 18px 24px;
  border-bottom: 2px solid var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--navy);
  letter-spacing: .06em;
}
.admin-header button {
  background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-m);
}
.admin-body { padding: 22px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.admin-field { display: flex; flex-direction: column; gap: 5px; }
.admin-field label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; color: var(--text-m);
  text-transform: uppercase;
}
.admin-input {
  border: 1px solid rgba(13,18,64,.2);
  border-radius: 6px; padding: 9px 12px;
  font-family: 'Barlow', sans-serif; font-size: 13px;
  color: var(--text); outline: none;
  transition: border-color .18s;
}
.admin-input:focus { border-color: var(--navy); }
.admin-textarea {
  border: 1px solid rgba(13,18,64,.2);
  border-radius: 6px; padding: 9px 12px;
  font-family: 'Barlow', sans-serif; font-size: 13px;
  color: var(--text); outline: none; resize: vertical;
  min-height: 120px; transition: border-color .18s;
}
.admin-textarea:focus { border-color: var(--navy); }

.admin-upload {
  border: 2px dashed rgba(13,18,64,.2);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s;
  min-height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.admin-upload:hover { border-color: var(--navy); }
.upload-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 20px; color: var(--text-m);
  font-size: 13px;
}
.upload-placeholder span:first-child { font-size: 28px; }
.upload-img-preview {
  width: 100%; height: 140px;
  object-fit: cover; display: block;
}

.admin-footer {
  padding: 14px 24px;
  border-top: 1px solid rgba(13,18,64,.1);
  display: flex; gap: 10px; justify-content: flex-end;
}
.admin-btn-cancel {
  padding: 8px 20px; border-radius: 6px;
  border: 1px solid rgba(13,18,64,.2);
  background: transparent; color: var(--text-m);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
  letter-spacing: .06em; transition: all .18s;
}
.admin-btn-cancel:hover { background: rgba(13,18,64,.06); }
.admin-btn-save {
  padding: 8px 24px; border-radius: 6px;
  border: none; background: var(--navy); color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
  letter-spacing: .06em; transition: background .18s;
}
.admin-btn-save:hover { background: #1a1f5a; }

/* ── Botão deletar nos slides (admin) ── */
.slide-delete-btn {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(160,20,20,.8);
  color: white; border: none;
  border-radius: 6px; padding: 5px 12px;
  font-size: 11px; font-weight: 700;
  cursor: pointer; z-index: 5;
  letter-spacing: .06em;
  display: none;
  transition: background .18s;
}
.slide-delete-btn:hover { background: rgba(200,30,30,.9); }
.is-admin .slide-delete-btn { display: block; }

/* ══════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════ */
.home-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px; padding: 12px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  z-index: 999; opacity: 0;
  transform: translateY(6px);
  transition: all .25s ease;
  pointer-events: none;
  border-left: 4px solid var(--gold);
}
.home-toast.show { opacity: 1; transform: translateY(0); }
.home-toast.err  { border-left-color: #CC3333; }
.home-toast.ok   { border-left-color: #3A9960; }

/* Botão de música */
.nav-music-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(13,18,64,.25);
  background: transparent;
  color: var(--text-m);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}
.nav-music-btn:hover {
  background: rgba(13,18,64,.08);
  color: var(--navy);
}
.nav-music-btn.playing {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(13,18,64,.06);
}

/* ══════════════════════════════════════════════════════
   PERSONAGENS — Grid + Player Card Modal
══════════════════════════════════════════════════════ */

/* Grid de cards */
.uma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 20px 24px;
}

.uma-card {
  background: var(--white);
  border: 1px solid rgba(13,18,64,.1);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.uma-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13,18,64,.12);
}

.uma-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: rgba(13,18,64,.05);
}

.uma-card-img-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, rgba(13,18,64,.06), rgba(13,18,64,.12));
}

.uma-card-info {
  padding: 10px 10px 12px;
}

.uma-card-name {
  font-family: Barlow Condensed, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 4px;
}

.uma-card-stats {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-m);
}

.uma-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--navy);
  color: #fff;
  font-family: Barlow Condensed, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .06em;
}

.uma-card-badge.gold { background: #B8860B; }
.uma-card-badge.silver { background: #888; }

/* Filtros */
.uma-filters {
  padding: 16px 24px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid rgba(13,18,64,.08);
}

.uma-filter-btn {
  font-family: Barlow Condensed, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: 6px;
  border: 1px solid rgba(13,18,64,.15);
  background: transparent;
  color: var(--text-m);
  cursor: pointer;
  transition: all .18s;
}
.uma-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.uma-filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.uma-search {
  margin-left: auto;
  background: rgba(13,18,64,.04);
  border: 1px solid rgba(13,18,64,.15);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: Barlow, sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  width: 180px;
  transition: border-color .18s;
}
.uma-search:focus { border-color: var(--navy); }

/* Modal overlay */
.uma-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,46,.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.uma-modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: umaModalIn .3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes umaModalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.uma-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(13,18,64,.08);
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background .18s;
  color: var(--text);
}
.uma-modal-close:hover { background: rgba(13,18,64,.16); }

.uma-modal-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 280px;
  flex-shrink: 0;
}

.uma-modal-left {
  position: relative;
  overflow: hidden;
  border-radius: 16px 0 0 0;
  background: rgba(13,18,64,.05);
}

.uma-modal-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  min-height: 280px;
}

.uma-modal-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,12,46,.95) 0%, transparent 100%);
  padding: 36px 16px 28px;
  font-family: Barlow Condensed, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
  line-height: 1.1;
}

.uma-modal-sub {
  position: absolute;
  bottom: 10px; left: 16px; right: 16px;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
  margin-top: 0;
}

.uma-modal-right {
  padding: 20px 24px;
  border-left: 1px solid rgba(13,18,64,.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uma-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.uma-stat-box {
  background: rgba(13,18,64,.04);
  border: 1px solid rgba(13,18,64,.08);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}

.uma-stat-val {
  font-family: Barlow Condensed, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.uma-stat-lbl {
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Histórico no modal */
.uma-modal-bottom {
  border-top: 1px solid rgba(13,18,64,.08);
  padding: 16px 24px;
  overflow-y: auto;
  max-height: 280px;
}

.uma-hist-title {
  font-family: Barlow Condensed, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.uma-hist-header {
  display: grid;
  grid-template-columns: 70px 50px 1fr 100px 60px;
  padding: 5px 10px;
  background: var(--navy);
  border-radius: 6px 6px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .14em;
  text-transform: uppercase;
  gap: 8px;
}

.uma-hist-row {
  display: grid;
  grid-template-columns: 70px 50px 1fr 100px 60px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(13,18,64,.05);
  align-items: center;
  font-size: 12px;
  gap: 8px;
  transition: background .15s;
}
.uma-hist-row:hover { background: rgba(13,18,64,.03); }
.uma-hist-row:last-child { border-bottom: none; }

/* Nav buttons no modal */
.uma-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13,18,64,.85);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
  line-height: 1;
}
.uma-nav-btn:hover { background: var(--navy); border-color: rgba(255,255,255,.4); }
.uma-nav-prev { left: 10px; }
.uma-nav-next { right: 10px; }
.uma-nav-counter {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Barlow Condensed, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-m);
  letter-spacing: .08em;
  z-index: 10;
}

/* Botões externos NetKeiba / UmaWiki */
.uma-ext-btn {
  display: block;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s, opacity .18s;
  text-decoration: none;
  width: 100px;
}
.uma-ext-btn:hover { transform: scale(1.04); opacity: .9; }
.uma-ext-btn img { width: 100%; height: auto; display: block; }
.uma-ext-disabled {
  width: 100px;
  height: 36px;
  background: rgba(13,18,64,.06);
  border: 1px solid rgba(13,18,64,.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: .5;
}

/* Exibir mais no histórico do modal */
.uma-hist-extra {
  border-top: 1px dashed rgba(13,18,64,.1);
  margin-top: 2px;
}
.uma-hist-toggle {
  text-align: center;
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
  cursor: pointer;
  border-top: 1px solid rgba(13,18,64,.06);
  margin-top: 4px;
  transition: background .15s;
  border-radius: 0 0 6px 6px;
}
.uma-hist-toggle:hover { background: rgba(13,18,64,.04); }

/* ══════════════════════════════════════════════════════
   CADASTRO DE INTERESSE
══════════════════════════════════════════════════════ */
.cad-wrap {
  padding: 24px 32px 32px;
  max-width: 900px;
}
.cad-intro {
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.7;
  margin-bottom: 24px;
}
.cad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cad-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cad-field label {
  font-family: Barlow Condensed, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-m);
}
.cad-input, .cad-textarea {
  border: 1px solid rgba(13,18,64,.18);
  border-radius: 7px;
  padding: 10px 13px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .18s;
  background: var(--white);
}
.cad-input:focus, .cad-textarea:focus { border-color: var(--navy); }
.cad-textarea {
  resize: vertical;
  min-height: 90px;
  width: 100%;
}
.cad-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cad-submit {
  font-family: Barlow Condensed, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 12px 32px;
  border-radius: 7px;
  border: none;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .18s, opacity .18s;
}
.cad-submit:hover { background: #1a1f5a; }
.cad-submit:disabled { opacity: .6; cursor: wait; }
.cad-msg {
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity .25s;
}
.cad-msg.show { opacity: 1; }
.cad-msg.ok { color: #1D7A3C; }
.cad-msg.err { color: #A32D2D; }

@media (max-width: 720px) {
  .cad-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVIDADE MOBILE (até 768px)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .navbar { border-radius: 0 0 18px 18px; }
  .navbar-inner {
    padding: 0 12px;
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--navbar-h);
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .navbar-logo img { height: 36px; }
  .navbar-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nav-link {
    font-size: 11px;
    padding: 5px 9px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .navbar-right { gap: 6px; }
  .nav-admin-btn, .nav-login-btn { font-size: 10px; padding: 5px 10px; }
  .nav-user { font-size: 11px; }

  /* ── Page wrapper / carousel ── */
  .page-wrapper { padding-top: 96px; }
  .carousel-outer {
    padding: 12px 12px 16px;
    min-height: auto;
  }
  .carousel-card {
    height: 320px;
    max-width: 100%;
  }
  .slide-overlay { padding: 18px 18px; }
  .slide-title { font-size: 22px; max-width: 100%; }
  .slide-legenda { font-size: 12px; max-width: 100%; }
  .slide-hint { display: none; }
  .carousel-dots { max-width: 100%; padding-right: 0; justify-content: center; }

  /* ── Reader ── */
  .reader-inner { flex-direction: column; height: auto; max-height: 100%; }
  .reader-img-wrap {
    width: 100%; min-width: 0; max-width: 100%;
    padding: 12px;
  }
  .reader-img-wrap img { max-height: 200px; }
  .reader-content { padding: 20px; }
  .reader-title { font-size: 22px; }

  /* ── Section cards ── */
  .section-card { margin: 14px 10px; border-radius: 12px; }
  .section-header { padding: 16px 16px 12px; flex-wrap: wrap; gap: 6px; }
  .section-title { font-size: 20px; }

  /* ── Tables (classificação / ranking) ── */
  .pub-table-header, .pub-rank-header { display: none; }
  .pub-table-row, .pub-rank-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-areas:
      "pos nome pts"
      "pos info  pods";
    padding: 10px 14px;
    height: auto;
    gap: 2px 10px;
    row-gap: 4px;
  }
  .pub-table-row .ptd:nth-child(1), .pub-rank-row .ptd:nth-child(1) { grid-area: pos; }
  .pub-table-row .ptd:nth-child(2), .pub-rank-row .ptd:nth-child(2) { grid-area: nome; }
  .pub-table-row .ptd:nth-child(6), .pub-rank-row .ptd:nth-child(5) { grid-area: pts; justify-self: end; }
  .pub-table-row .ptd:nth-child(3),
  .pub-table-row .ptd:nth-child(4),
  .pub-table-row .ptd:nth-child(5),
  .pub-rank-row .ptd:nth-child(3),
  .pub-rank-row .ptd:nth-child(4),
  .pub-rank-row .ptd:nth-child(6) {
    grid-area: info;
    font-size: 11px;
    white-space: normal;
  }
  .pub-table-row .ptd:nth-child(7),
  .pub-table-row .ptd:nth-child(8),
  .pub-table-row .ptd:nth-child(9),
  .pub-rank-row .ptd:nth-child(7),
  .pub-rank-row .ptd:nth-child(8),
  .pub-rank-row .ptd:nth-child(9) {
    grid-area: pods;
    justify-self: end;
  }
  .pub-guilda { font-size: 13px; }

  /* ── Histórico ── */
  .hist-layout { flex-direction: column; }
  .hist-rodadas {
    width: 100%; min-width: 0;
    max-height: 160px;
    border-right: none;
    border-bottom: 1px solid rgba(13,18,64,.1);
    display: flex;
    overflow-x: auto;
  }
  .hist-rodada-item {
    flex-shrink: 0;
    min-width: 140px;
    border-bottom: none;
    border-right: 1px solid rgba(13,18,64,.06);
  }
  .hist-corridas { padding: 12px; max-height: none; }

  /* ── Calendário ── */
  .pub-cal-grid { grid-template-columns: 1fr; }
  .pub-pareo-card { height: auto; flex-direction: column; }
  .pub-cal-rodada { padding: 0 10px; }

  /* ── Personagens grid ── */
  .uma-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 12px; }
  .uma-card-img, .uma-card-img-placeholder { height: 120px; }
  .uma-filters { padding: 12px 12px 0; }
  .uma-search { width: 100%; margin-left: 0; order: 99; }

  /* ── Modal de personagem ── */
  .uma-modal-box { max-height: 92vh; }
  .uma-modal-top {
    grid-template-columns: 1fr;
  }
  .uma-modal-left { min-height: 0; height: 180px; border-radius: 16px 16px 0 0; }
  .uma-modal-left img { min-height: 0; height: 180px; }
  .uma-modal-right {
    border-left: none;
    border-top: 1px solid rgba(13,18,64,.08);
    padding: 14px 16px;
  }
  .uma-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .uma-modal-right > div[style*="display:flex"] {
    flex-direction: column;
    gap: 12px !important;
  }
  #uma-radar { max-width: 100%; height: auto; }

  /* histórico do modal: vira cards em coluna */
  .uma-hist-header { display: none; }
  .uma-hist-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "rod  pos"
      "nick nick"
      "guilda pts";
    gap: 2px 8px;
    padding: 8px 6px;
  }
  .uma-hist-row > div:nth-child(1) { grid-area: rod; }
  .uma-hist-row > div:nth-child(2) { grid-area: pos; justify-self: end; }
  .uma-hist-row > div:nth-child(3) { grid-area: nick; }
  .uma-hist-row > div:nth-child(4) { grid-area: guilda; font-size: 11px; }
  .uma-hist-row > div:nth-child(5) { grid-area: pts; }

  /* ── Cadastro ── */
  .cad-wrap { padding: 14px 16px 24px; }
  .cad-footer { flex-direction: column; align-items: stretch; }
  .cad-submit { width: 100%; }
}

/* ══════════════════════════════════════════════════════
   MODAL DE ESTATÍSTICAS DE CORRIDA
══════════════════════════════════════════════════════ */
.corrida-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,12,46,.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}
.corrida-modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: umaModalIn .3s ease;
}
.corrida-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(255,255,255,.12);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  transition: background .18s;
}
.corrida-modal-close:hover { background: rgba(255,255,255,.22); }
.corrida-modal-head {
  background: #0D1240;
  padding: 16px 52px 16px 22px;
  flex-shrink: 0;
}
.corrida-modal-kicker {
  font-family: Barlow Condensed, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #C9A84C;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.corrida-modal-nome {
  font-family: Barlow Condensed, sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.corrida-modal-sub {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 3px;
}
.corrida-modal-badges {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.corrida-bdg {
  font-family: Barlow Condensed, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
}
.corrida-bdg-dist  { background: rgba(201,168,76,.18); color: #C9A84C; }
.corrida-bdg-tipo  { background: rgba(24,95,165,.22);  color: #7EB8F0; }
.corrida-bdg-g1    { background: #C9A84C; color: #3A2000; }
.corrida-bdg-count { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.corrida-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.corrida-sec-lbl {
  font-family: Barlow Condensed, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #4A4A7A;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(13,18,64,.08);
}
/* Stats 4 */
.corrida-stats4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.corrida-stat-card {
  background: #F0EEF8;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.corrida-stat-val {
  font-family: Barlow Condensed, sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: #0D1240;
}
.corrida-stat-lbl {
  font-size: 11px;
  color: #4A4A7A;
  margin-top: 2px;
}
/* Destaques */
.corrida-destaques {
  display: flex;
  gap: 10px;
}
.corrida-destaque-card {
  flex: 1;
  border: 0.5px solid rgba(13,18,64,.1);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.corrida-uma-face {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(13,18,64,.06);
  position: relative;
}
.corrida-uma-face img {
  width: 100%;
  height: 160%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  top: 0; left: 0;
}
.corrida-trophy {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #FFFAED;
  border: 1px solid #E8C840;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.corrida-destaque-info { flex: 1; min-width: 0; }
.corrida-destaque-lbl {
  font-size: 10px;
  color: #4A4A7A;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.corrida-destaque-nome {
  font-family: Barlow Condensed, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0D1240;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.corrida-destaque-stat {
  font-size: 11px;
  color: #4A4A7A;
  margin-top: 1px;
}
.corrida-destaque-badge {
  font-family: Barlow Condensed, sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-mais-usada  { background: rgba(201,168,76,.15); color: #854F0B; }
.badge-mais-vit    { background: rgba(13,158,117,.12); color: #0F6E56; }
/* Estratégias */
.corrida-strat-list { display: flex; flex-direction: column; gap: 6px; }
.corrida-strat-row  { display: flex; align-items: center; gap: 10px; }
.corrida-strat-name {
  font-family: Barlow Condensed, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0D1240;
  width: 56px;
  flex-shrink: 0;
}
.corrida-strat-bar-wrap {
  flex: 1;
  height: 10px;
  background: rgba(13,18,64,.08);
  border-radius: 5px;
  overflow: hidden;
}
.corrida-strat-bar { height: 100%; border-radius: 5px; }
.corrida-strat-pct  { font-family: Barlow Condensed, sans-serif; font-size: 12px; font-weight: 700; color: #4A4A7A; width: 36px; text-align: right; }
.corrida-strat-wins { font-size: 11px; color: #4A4A7A; width: 60px; text-align: right; }
/* Histórico */
.corrida-hist-header {
  display: flex;
  gap: 10px;
  padding: 4px 12px;
  font-family: Barlow Condensed, sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #4A4A7A;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.corrida-hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(13,18,64,.03);
  border-radius: 7px;
  border: 0.5px solid rgba(13,18,64,.07);
  margin-bottom: 5px;
  transition: background .15s;
}
.corrida-hist-row:hover { background: rgba(13,18,64,.06); }
.corrida-hist-rod {
  font-family: Barlow Condensed, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #4A4A7A;
  width: 56px;
  flex-shrink: 0;
}
.corrida-hist-medal {
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Barlow Condensed, sans-serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.chm1 { background: #FFD700; color: #3A2000; }
.chm2 { background: #C8C8C8; color: #1A1A1A; }
.chm3 { background: #CD7F32; color: #1A0A00; }
.chmn { background: rgba(13,18,64,.08); color: #4A4A7A; }
.corrida-hist-nick  { font-family: Barlow Condensed, sans-serif; font-size: 13px; font-weight: 700; color: #0D1240; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corrida-hist-uma   { font-size: 11px; color: #534AB7; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corrida-hist-guilda{ font-size: 11px; color: #4A4A7A; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corrida-hist-pts   { font-family: Barlow Condensed, sans-serif; font-size: 13px; font-weight: 700; color: #0D1240; flex-shrink: 0; }
.corrida-empty {
  font-size: 12px;
  color: #9999BB;
  font-style: italic;
  padding: 16px;
  text-align: center;
  background: rgba(13,18,64,.03);
  border-radius: 7px;
}

@media (max-width: 768px) {
  .corrida-stats4 { grid-template-columns: repeat(2,1fr); }
  .corrida-destaques { flex-direction: column; }
  .corrida-hist-uma, .corrida-hist-guilda { display: none; }
}
