* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #050505;
  background-image: radial-gradient(circle at top, #2a0050 0%, #050505 45%);
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
}

/* CONTAINER */
.container {
  display: flex;
  min-height: 100vh;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  margin-left: 240px;
  padding: 18px;
  background:
    linear-gradient(rgba(0,0,0,.82), rgba(0,0,0,.88)),
    url('/public/images/bg-race.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

/* =========================================
   BANNER SPINBALL
========================================= */

.spinball-banner {
  width: 100%;
  height: 260px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  margin-bottom: 22px;
  border: 2px solid #8a2cff;
  box-shadow:
    0 0 20px rgba(162, 0, 255, 0.6),
    0 0 50px rgba(0, 153, 255, 0.25);
}

.spinball-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-subtitle{
  margin: -8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 1.2px;
  font-size: 24px;
  text-shadow: 0 0 12px #ff00ff;
}

.hero-subtitle span{
  width: 52px;
  height: 4px;
  border-radius: 30px;
  background: linear-gradient(to right,#ff00ff,#7c3aed);
  box-shadow: 0 0 12px #ff00ff;
}

/* =========================================
   CARDS DAS CORRIDAS
========================================= */

.race-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}

.race-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 18px;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(10px);
  transition: .3s;
  border: 2px solid transparent;
}

.race-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* CORES DOS CARDS */

.card-blue {
  border-color: #00aeff;
  box-shadow:
    0 0 15px #00aeff,
    inset 0 0 20px rgba(0,174,255,.25);
}

.card-yellow {
  border-color: #ffb300;
  box-shadow:
    0 0 15px #ffb300,
    inset 0 0 20px rgba(255,179,0,.25);
}

.card-green {
  border-color: #39ff14;
  box-shadow:
    0 0 15px #39ff14,
    inset 0 0 20px rgba(57,255,20,.18);
}

/* =========================================
   TOPO DO CARD
========================================= */

.card-top-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 2px solid rgba(255,255,255,.2);
}

.card-top-icon img {
  width: 38px;
}

.card-top-icon i{
  font-size: 30px;
}

/* =========================================
   IMAGEM
========================================= */

.card-image {
  width: 100%;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   TEXTO
========================================= */

.race-title {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  font-style: italic;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-blue .race-title {
  color: #d8f4ff;
  text-shadow: 0 0 12px #00aeff;
}

.card-yellow .race-title {
  color: #ffe07a;
  text-shadow: 0 0 12px #ffb300;
}

.card-green .race-title {
  color: #b8ff9d;
  text-shadow: 0 0 12px #39ff14;
}

.multiplier-label {
  text-align: center;
  font-size: 20px;
  opacity: .9;
  margin-bottom: 6px;
  font-weight: 700;
}

.multiplier-value {
  text-align: center;
  font-size: 70px;
  font-weight: 900;
  margin-bottom: 10px;
}

.card-blue .multiplier-value {
  color: #00aeff;
  text-shadow: 0 0 15px #00aeff;
}

.card-yellow .multiplier-value {
  color: #ffb300;
  text-shadow: 0 0 15px #ffb300;
}

.card-green .multiplier-value {
  color: #39ff14;
  text-shadow: 0 0 15px #39ff14;
}

.win-text {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}

.win-text strong {
  display: block;
  font-size: 55px;
}

/* =========================================
   BOTÃO
========================================= */

.play-btn {
  width: 100%;
  height: 58px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  transition: .25s;
}

.play-btn:hover {
  transform: scale(1.04);
}

.card-blue .play-btn {
  background: linear-gradient(180deg, #1eb8ff, #006cff);
  box-shadow: 0 0 18px #00aeff;
}

.card-yellow .play-btn {
  background: linear-gradient(180deg, #ffd000, #ff9800);
  box-shadow: 0 0 18px #ffb300;
}

.card-green .play-btn {
  background: linear-gradient(180deg, #4cff00, #159800);
  box-shadow: 0 0 18px #39ff14;
}

/* =========================================
   CARDS EXTRAS (HELIX / TOP / ATALHOS)
========================================= */
.home-extra-cards{
  margin-top: 10px;
  margin-bottom: 8px;
}

.home-extra-top{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
}

.extra-card{
  border-radius: 14px;
  border: 2px solid rgba(120, 160, 255, 0.35);
  background: rgba(5, 8, 24, 0.92);
  box-shadow: 0 0 14px rgba(33, 110, 255, 0.22);
  padding: 10px;
}

.extra-helix{
  border-color: rgba(199, 70, 255, 0.45);
  box-shadow: 0 0 16px rgba(199, 70, 255, 0.35);
}

.extra-cameras{
  border-color: rgba(75, 160, 255, 0.42);
  box-shadow: 0 0 14px rgba(10, 120, 255, 0.26);
  padding: 0;
}

.extra-cameras-media{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 118px;
}

.extra-cameras-bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.extra-cameras-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  padding: 8px;
  background: linear-gradient(180deg, rgba(8, 10, 24, 0.08) 35%, rgba(8, 10, 24, 0.72) 100%);
}

.extra-cameras-overlay p{
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  color: #efe7ff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.home-extra-bolao{
  display: block;
  margin: 12px 0 14px;
}

.extra-bolao{
  display: block;
  text-decoration: none;
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.28);
  padding: 0;
  cursor: pointer;
}

.extra-bolao-media{
  position: relative;
  width: 100%;
  min-height: 112px;
}

.extra-bolao-bg{
  width: 100%;
  min-height: 112px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.extra-bolao-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(8, 10, 24, 0.05) 30%, rgba(8, 10, 24, 0.78) 100%);
  border-radius: 12px;
}

.extra-bolao-overlay p{
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  color: #ecfdf5;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}

.extra-bolao .extra-btn-purple{
  margin-top: 2px;
  width: auto;
  min-width: 130px;
  padding: 0 10px;
  pointer-events: none;
}

.extra-helix-left img{
  width: 100%;
  height: 48px;
  object-fit: contain;
  display: block;
}

.extra-helix-left p{
  margin-top: 4px;
  color: #f3e8ff;
  font-size: 10px;
  font-weight: 700;
}

.extra-btn-purple,
.extra-btn-blue{
  margin-top: 6px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  min-height: 28px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.extra-btn-purple{
  background: linear-gradient(180deg, #d946ef, #7e22ce);
}

.extra-winners-soon{
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
}

.extra-winners-soon-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
}

.extra-winners-soon-inner p{
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.35px;
  color: #1a1a2e;
  line-height: 1.35;
  text-transform: uppercase;
}

.extra-winners-soon-mini{
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: #1a1a2e;
}

.extra-winners-soon-mini .extra-mini-top{
  color: #1a1a2e;
}

.extra-winners-soon-label{
  margin-top: 4px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.25px;
  color: #334155;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-extra-bottom{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(5px, 1.5vw, 8px);
  align-items: stretch;
}

.home-extra-bottom > *{
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: clamp(108px, 30vw, 124px);
  align-self: stretch;
  box-sizing: border-box;
  overflow: visible;
}

.home-extra-bottom .extra-mini,
.home-extra-bottom .extra-card.extra-winners{
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  padding: clamp(6px, 1.4vw, 8px) clamp(4px, 1vw, 6px);
  box-shadow: none;
}

.home-extra-bottom .extra-card.extra-winners{
  min-height: unset;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.extra-winners h3{
  margin: 0 0 6px;
  color: #fde68a;
  font-size: clamp(10px, 2.6vw, 14px);
  font-weight: 900;
  line-height: 1.15;
}

.extra-winners ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2px, 0.6vw, 4px);
  flex: 1 1 auto;
}

.extra-winners li{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: clamp(8px, 2.2vw, 11px);
  min-width: 0;
}

.extra-winners li span,
.extra-winners li strong{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extra-winners li span{
  flex: 1 1 auto;
}

.extra-winners li strong{
  flex: 0 0 auto;
  color: #facc15;
  font-weight: 900;
  font-size: clamp(7px, 2vw, 10px);
}

.home-extra-bottom .extra-winners .extra-btn-blue{
  margin-top: auto;
  flex-shrink: 0;
}

.extra-btn-blue{
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
}

.extra-mini{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(8, 10, 22, .95);
  padding: clamp(6px, 1.4vw, 8px) clamp(4px, 1vw, 6px);
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(2px, 0.8vw, 4px);
  min-height: unset;
  height: 100%;
  overflow: visible;
}

.extra-mini-top{
  font-size: clamp(10px, 2.8vw, 13px);
  font-weight: 900;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 1vw, 5px);
  flex-wrap: wrap;
}

.extra-mini-top span{
  word-break: break-word;
  line-height: 1.1;
}

.extra-mini-icon{
  width: clamp(16px, 4.5vw, 20px);
  height: clamp(16px, 4.5vw, 20px);
  object-fit: contain;
  flex: 0 0 clamp(16px, 4.5vw, 20px);
}

.extra-mini-sub{
  margin-top: 0;
  font-size: clamp(8px, 2.2vw, 11px);
  color: #cbd5e1;
  line-height: 1.15;
}

.extra-mini-btn{
  margin-top: auto;
  font-size: clamp(9px, 2.4vw, 12px);
  font-weight: 900;
  color: #fff;
  border-radius: 8px;
  padding: clamp(4px, 1vw, 5px) 2px;
  line-height: 1.1;
  flex-shrink: 0;
}

.extra-mini-purple .extra-mini-btn{ background: linear-gradient(180deg,#a855f7,#6d28d9); }
.extra-mini-blue .extra-mini-btn{ background: linear-gradient(180deg,#38bdf8,#1d4ed8); }
.extra-mini-green .extra-mini-btn{ background: linear-gradient(180deg,#4ade80,#15803d); }
.extra-mini-red .extra-mini-btn{ background: linear-gradient(180deg,#fb7185,#be123c); }

/* =========================================
   CARD TOP GANHADORES
========================================= */

.top-winners {
  background: rgba(8,8,20,.95);
  border-radius: 22px;
  padding: 20px;
  border: 2px solid #0077ff;
  box-shadow: 0 0 18px rgba(0,119,255,.5);
}

.top-winners h2 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 16px;
}

.winner-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 20px;
}

.winner-item span:last-child {
  color: #ffd000;
  font-weight: 800;
}

/* =========================================
   BOTTOM NAV
========================================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 240px;
  right: 0;
  background: rgba(5,5,10,.98);
  border-top: 2px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  z-index: 999;
}

.bottom-nav-content {
  display: flex;
  justify-content: space-around;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #8f8f8f;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  transition: .3s;
}

.nav-item img {
  width: 30px;
  height: 30px;
}

.nav-item.active {
  color: #ffd000;
}

.nav-item.apostar {
  width: 95px;
  height: 95px;
  background: radial-gradient(circle, #39ff14, #007500);
  border-radius: 50%;
  justify-content: center;
  margin-top: -45px;
  color: #fff;
  box-shadow:
    0 0 25px #39ff14,
    0 0 55px rgba(57,255,20,.6);
}

.nav-item.apostar img {
  width: 42px;
  height: 42px;
}

/* =========================================
   RESPONSIVO
========================================= */

@media(max-width: 768px) {
  .home-content-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 96px !important;
  }

  #ballPercentagesSection {
    margin-top: 2px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .main-content {
    margin-left: 0;
    padding: 10px 0 120px;
    padding-bottom: 120px;
  }

  .race-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
    padding: 0 6px;
  }

  .race-title {
    font-size: 22px;
  }

  .multiplier-value {
    font-size: 38px;
  }

  .play-btn {
    font-size: 13px;
  }

  .spinball-banner{
    height: 190px;
    margin-bottom: 8px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero-subtitle{
    font-size: 18px;
    margin: -4px 0 8px;
  }

  .race-card{
    padding: 9px 7px 10px;
    border-radius: 14px;
    background: #050914;
    backdrop-filter: none;
  }

  .card-top-icon{
    width: 34px;
    height: 34px;
    margin-bottom: 6px;
  }

  .card-image{
    height: 62px;
    margin-bottom: 7px;
    border-radius: 10px;
  }

  .race-title{
    font-size: 22px;
    margin-bottom: 4px;
  }

  .multiplier-label{
    font-size: 9px;
    margin-bottom: 1px;
  }

  .multiplier-value{
    font-size: 34px;
    margin-bottom: 3px;
  }

  .win-text{
    font-size: 10px;
    margin-bottom: 7px;
  }

  .win-text strong{
    font-size: 27px;
  }

  .play-btn{
    height: 32px;
    font-size: 12px;
    border-radius: 9px;
    padding: 0;
  }

  .bottom-nav {
    left: 0;
  }

  .home-extra-top{
    grid-template-columns: 1.45fr 1fr;
    gap: 6px;
  }

  .extra-card{
    padding: 8px;
    border-radius: 12px;
  }

  .extra-helix-left img{
    height: 38px;
  }

  .extra-helix-left p{
    font-size: 9px;
  }

  .extra-btn-purple,
  .extra-btn-blue{
    min-height: 24px;
    font-size: 10px;
    border-radius: 7px;
  }

  .home-extra-bolao{
    margin: 10px 0 12px;
  }

  .extra-bolao-media,
  .extra-bolao-bg{
    min-height: 96px;
  }

  .home-extra-bottom{
    gap: clamp(5px, 1.5vw, 6px);
    margin-top: 14px;
  }
}
