/* body {
  min-width: 1400px;
  overflow-x: auto;
}

.game-container {
  width: 1400px;
  max-width: 1400px;
} */
html, body {
  touch-action: none;
  zoom: 1 !important;
  -ms-touch-action: none;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}




/* Parent container */
.game-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px;
}

/* Top Panel */
.top-panel {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Road Panel */
.road-panel {
  position: relative;
  width: 100%;
}

/* Bet Panel */
.bet-panel {
  display: flex;
  flex-direction: column;
}

/* Horizontal bet row inside bet panel */
.horizontal-bet-row {
  display: flex;
  gap: 12px;
}

/* Left: Car Buttons in bet panel */
.bet-cars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 12px;
  width: 70%;
}

/* Right: Actions */
.bet-actions {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsive stacking */
/* @media(max-width:900px){
  .top-panel, .horizontal-bet-row {
    flex-direction: column;
  }
  .bet-cars, .bet-actions {
    width: 100%;
  }
} */








/* ----------------------
   Neon Game Panel
---------------------- */
.game-panel {
  max-width: 1100px;
  margin: 20px auto;
  padding: 15px;
  font-family: 'Poppins', sans-serif;
}

/* User Info */
.neon-user-info {
  text-align: center;
  margin-bottom: 16px;
}
.user-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg,#0d1b2a,#1b263b,#0d1b2a);
  border-radius: 14px;
  box-shadow: 0 0 12px #0ff, inset 0 1px 2px rgba(255,255,255,0.1);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}
.diamond-icon {
  font-size: 22px;
  animation: sparkle 1.5s infinite ease-in-out;
}
.label { color: #64ffda; font-weight: 700; }

/* Track Top Row */
.neon-track-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1b2a;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: 0 0 12px #0ff inset;
}
.status { font-weight: 600; color: #38bdf8; }
.timer { font-weight: 600; color: #facc15; }
.traffic { display: flex; gap: 6px; }
.light {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #444;
  opacity: 0.3;
  transition: all 0.4s;
  box-shadow: 0 0 6px #000 inset;
}
.light.red { background:red; }
.light.yellow { background:yellow; }
.light.green { background:limegreen; }

/* Road */
.neon-road {
  display: flex;
  position: relative;
  background: linear-gradient(180deg,#1e293b,#0f172a);
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 0 15px #0ff inset;
  overflow: hidden;
}

/* Lanes */
.lanes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.lane {
  position: relative;
  height: 100px;
  background: rgba(0,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(0,255,255,0.1);
  box-shadow: 0 0 8px #0ff inset;
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  transition: transform 0.3s;
}
.lane:hover { transform: scale(1.02); }

/* Finish Line */
.finishline {
  position: absolute;
  top: 0; bottom: 0;
  right: 8px;
  width: 8px;
  background: repeating-linear-gradient(90deg,#fff 0 6px,#000 6px 12px);
  border-radius: 4px;
  box-shadow: 0 2px 6px #fff;
  z-index: 5;
}

/* Car Box */
.car-box {
  position: absolute;
  left: 0;
  top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
}
.car-img {
  width: 80px;
  filter: drop-shadow(0 8px 18px rgba(0,255,255,0.4));
}
.car-box.active .car-img { animation: bounce 0.8s infinite alternate; }
@keyframes bounce { 0%{transform:translateY(0);} 100%{transform:translateY(-6px) rotate(-2deg);} }

/* Progress Bar */
.progress-wrap {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#06b6d4,#3b82f6);
  border-radius: 6px;
  transition: width 0.3s ease-in-out;
}

/* Pools */
.pools {
  width: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-left: 15px;
}
.pool {
  background: linear-gradient(90deg,#fde68a,#fbbf24);
  padding: 6px 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 6px 20px rgba(251,191,36,0.4);
  margin-bottom: 10px;
  transition: transform 0.2s;
}
.pool:hover { transform: scale(1.05); }

/* Animations */
@keyframes sparkle {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 3px #00f5ff);}
  50% { transform: scale(1.2); filter: drop-shadow(0 0 6px #00ffe7);}
}

















/* bet area................ */
/* Bet Card */
.neon-bet-card {
  background: rgba(10,15,25,0.7);
  border: 2px solid #0ff;
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 0 15px #0ff, 0 0 30px #0ff inset;
  backdrop-filter: blur(8px);
}

/* Bet label */
.bet-label {
  font-size: 16px;
  font-weight: 700;
  color: #0ff;
  display: block;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #0ff;
}

/* Input Field */
.bet-input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid rgba(0,255,255,0.3);
  background: rgba(0,255,255,0.05);
  color: #fff;
  font-size: 16px;
  outline: none;
  margin-bottom: 16px;
  transition: 0.3s;
}
.bet-input-field:focus {
  border-color: #0ff;
  box-shadow: 0 0 12px #0ff;
}

/* Bet buttons grid */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

/* Bet Box */
.neon-bet-box {
  background: rgba(0,0,0,0.5);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 0 6px #0ff, 0 0 12px #0ff inset;
}
.neon-bet-box:hover {
  border-color: #0ff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 12px #0ff, 0 0 24px #0ff inset;
}

/* Bet diamonds & multiplier */
.bet-diamonds {
  font-size: 14px;
  font-weight: bold;
  color: #facc15;
  margin-bottom: 4px;
  text-shadow: 0 0 4px #facc15;
}
.bet-mult {
  font-size: 16px;
  color: #38bdf8;
  margin-bottom: 6px;
  text-shadow: 0 0 4px #38bdf8;
}

/* Bet car image */
.bet-car img {
  width: 60px;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 10px #0ff);
}

/* Bet name */
.bet-name {
  font-size: 14px;
  color: #fff;
  text-shadow: 0 0 4px #0ff;
}

/* Bet summary */
.bet-summary-label {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
}
.bet-summary {
  min-height: 46px;
  margin-top: 8px;
  color: #0ff;
  font-weight: 700;
  text-shadow: 0 0 6px #0ff;
}

/* Action Buttons */
.action-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
}
.neon-btn {
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 12px #22c55e, 0 0 24px #16a34a inset;
  transition: all 0.25s ease;
}
.neon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #22c55e, 0 0 40px #16a34a inset;
}

.neon-btn-clear {
  background: linear-gradient(135deg,#f43f5e,#ec4899);
  box-shadow: 0 0 12px #f43f5e, 0 0 24px #ec4899 inset;
}
.neon-btn-clear:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #f43f5e, 0 0 40px #ec4899 inset;
}

/* Responsive */
/* @media(max-width:600px){
  .bet-car img{width:50px;}
  .btn-grid{gap:8px;}
  .neon-btn,.neon-btn-clear{padding:10px 16px; font-size:14px;}
} */















.horizontal-bet-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
}

/* Left: car buttons section - 70% width */
.bet-cars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 70%;
  justify-content: flex-start;
}

/* Right: amount + confirm + clear - 30% width */
.bet-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 30%;
  min-width: 180px;
}

/* Buttons compact for neat look */
.bet-box {
  padding: 6px;
  font-size: 12px;
}
.bet-car img { width: 40px; }

/* Input & Actions */
.bet-input-field {
  padding: 8px;
  border-radius: 6px;
  font-size: 14px;
}
.action-row { display: flex; gap: 6px; margin-top:4px; }
.action { flex:1; padding:8px; font-size:13px; }

/* Responsive for mobile */
/* @media(max-width:800px){
  .horizontal-bet-row { flex-direction: column; }
  .bet-cars, .bet-actions { flex: 1 1 100%; min-width:auto; justify-content:center; }
} */


















/*popup windo overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}

/* popup box */
.popup-box.gamer-style {
  position: relative;
  background: #111827;
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  width: 340px;
  box-shadow: 0 0 40px rgba(0,255,150,0.4), 0 0 80px rgba(0,200,255,0.2);
  animation: zoomIn 0.4s ease;
  overflow: hidden;
}

/* glowing ring bg */
.glow-ring {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg,#00ffcc,#00aaff,#00ff99,#00ffcc);
  animation: spin 6s linear infinite;
  z-index: 0;
  opacity: 0.2;
}
.popup-box.gamer-style * {
  position: relative;
  z-index: 1;
}

/* winner car */
.winner-car {
  width: 140px; height: 90px;
  margin: 0 auto 14px;
}
.winner-car img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: floatCar 2s infinite ease-in-out;
}

/* car name */
#winner-car-name {
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
  text-shadow: 0 0 8px rgba(0,200,255,0.7);
}

/* winner text */
.winner-text {
  font-size: 24px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(34,197,94,0.8);
}

/* diamonds */
.winner-meta {
  font-size: 18px;
  font-weight: 600;
  color: #facc15;
  margin-bottom: 16px;
  text-shadow: 0 0 8px rgba(250,204,21,0.7);
}

/* button */
.popup-box button {
  background: linear-gradient(135deg,#22c55e,#16a34a);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 0 15px rgba(34,197,94,0.6);
  transition: all 0.25s ease;
}
.popup-box button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg,#16a34a,#15803d);
}

/* animations */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes floatCar {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}








