* {
  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-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 h3{
  margin: 0 0 6px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
}

.extra-winners ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.extra-winners li{
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #fff;
  font-size: 11px;
}

.extra-winners li strong{
  color: #facc15;
  font-weight: 900;
}

.extra-btn-blue{
  background: linear-gradient(180deg, #38bdf8, #1d4ed8);
}

.home-extra-bottom{
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.extra-mini{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(8, 10, 22, .95);
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  display: block;
}

.extra-mini-top{
  font-size: 10px;
  font-weight: 900;
}

.extra-mini-sub{
  margin-top: 2px;
  font-size: 9px;
  color: #cbd5e1;
}

.extra-mini-btn{
  margin-top: 6px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  border-radius: 8px;
  padding: 4px 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-winners h3{
    font-size: 12px;
    margin-bottom: 4px;
  }

  .extra-winners li{
    font-size: 10px;
  }

  .extra-btn-purple,
  .extra-btn-blue{
    min-height: 24px;
    font-size: 10px;
    border-radius: 7px;
  }

  .home-extra-bottom{
    gap: 6px;
    margin-top: 6px;
  }

  .extra-mini{
    padding: 6px 4px;
    border-radius: 10px;
  }

  .extra-mini-top{
    font-size: 9px;
  }

  .extra-mini-sub{
    font-size: 8px;
  }

  .extra-mini-btn{
    font-size: 9px;
    border-radius: 6px;
    padding: 3px 0;
  }
}
