
    /* Additional styles for crash button state */
    .place-bet-btn.crashed {
      background-color: #dc2626 !important;
      color: white !important;
      cursor: not-allowed !important;
      opacity: 0.9;
    }
    
    .place-bet-btn.crashed:hover {
      background-color: #dc2626 !important;
    }
    
    /* Infinity button active state */
    .infinity-btn.active {
      background-color: #3ea6ff !important;
      color: white !important;
    }
    
    .infinity-btn.active:hover {
      background-color: #2563eb !important;
    }
    
    /* Cash marker animations */
    .cash-marker {
      position: absolute;
      pointer-events: none;
      z-index: 15;
      animation: cashFloat 2.6s ease-out forwards;
    }
    
    .cash-marker .coin {
      width: 16px;
      height: 16px;
      background: radial-gradient(circle, #ffd700, #ffb700);
      border-radius: 50%;
      margin: 0 auto 4px;
      box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }
    
    .cash-marker .label {
      background: rgba(0, 20, 30, 0.95);
      border: 1px solid;
      border-radius: 6px;
      padding: 2px 6px;
      font-size: 11px;
      font-weight: bold;
      white-space: nowrap;
      color: #00d084;
      text-align: center;
    }
    
    @keyframes cashFloat {
      0% {
        transform: translateY(0) scale(1);
        opacity: 1;
      }
      70% {
        transform: translateY(-20px) scale(1.1);
        opacity: 1;
      }
      100% {
        transform: translateY(-40px) scale(0.8);
        opacity: 0;
      }
    }
    
    /* Bust marker styles */
    .bust-marker {
      position: absolute;
      pointer-events: none;
      z-index: 15;
      animation: bustPulse 2s ease-out forwards;
    }
    
    .bust-marker .dot {
      width: 12px;
      height: 12px;
      background: #ff4d4f;
      border-radius: 50%;
      margin: 0 auto 4px;
      box-shadow: 0 0 12px rgba(255, 77, 79, 0.7);
    }
    
    .bust-marker .label {
      background: rgba(40, 15, 15, 0.95);
      border: 1px solid #ff4d4f;
      border-radius: 6px;
      padding: 2px 6px;
      font-size: 11px;
      font-weight: bold;
      white-space: nowrap;
      color: #ff4d4f;
      text-align: center;
    }
    
    @keyframes bustPulse {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      50% {
        transform: scale(1.2);
        opacity: 0.8;
      }
      100% {
        transform: scale(1);
        opacity: 0;
      }
    }

    /* History drawer styles */
    .history-drawer {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 50;
      transform: translateY(100%);
      transition: transform 0.3s ease-in-out;
      max-height: 60vh;
      background: #0b111a;
      border-top: 2px solid #142033;
      overflow-y: auto;
    }
    
    .history-drawer.open {
      transform: translateY(0);
    }
    
    .history-tab {
  position: fixed;
  bottom: 0;
  right: 16px;
  z-index: 51;
  background: #0b111a;
  border: 2px solid #142033;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: bold;
  color: #9fb3c8;
  transition: all 0.3s ease;
}

.history-drawer.open ~ .history-tab {
  bottom: 26vh
}
    
    .history-tab:hover {
      background: #0b111a;
      color: #e6eef8;
    }
    
    /* Responsive layout adjustments */
    @media (max-width: 768px) {
      /* Mobile layout - stack canvas and UI vertically */
      .game-layout {
        display: flex !important;
        flex-direction: column !important;
      }
      
      .game-ui-column {
        width: 100% !important;
        border-right: none !important;
        border-top: 2px solid #1f2b3a;
        max-height: none !important;
        order: 2;
      }
      
      .canvas-section {
        width: 100% !important;
        height: 50vh !important;
        order: 1;
      }
      
      /* Hide desktop lines section on mobile */
      .lines-section-desktop {
        display: none !important;
      }
      
      /* Show mobile grid for animal lines */
      .lines-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
      }
      
      /* Animal line mobile layout */
      .animal-line-mobile {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 12px !important;
      }
      
      .animal-line-mobile .emoji {
        font-size: 1.7rem !important;
        margin-bottom: 0px;
        margin-top:-25px;
      }
      
      .animal-line-mobile .button-row {
        display: flex !important;
        gap: 8px !important;
        width: 100% !important;
      }
      
      .animal-line-mobile .place-bet-btn {
        flex: 1 !important;
        font-size: 12px !important;
        padding: 8px 4px !important;
        min-height: 36px !important;
      }
      
      .animal-line-mobile .settings-btn {
        padding: 8px !important;
        min-width: 36px !important;
        font-size: 12px !important;
      }
      
      /* Cash out all button styling for mobile */
      .cash-out-all-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: bold !important;
        font-size: 12px !important;
        background: #14321e !important;
        color: #9ef0c0 !important;
        border: 1px solid #1e5f45 !important;
        border-radius: 16px !important;
        padding: 12px 8px !important;
        text-align: center !important;
        height: 100% !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
      }
      
      .cash-out-all-mobile:hover {
        background: #1e5f45 !important;
      }
      
      /* Hide desktop actions on mobile */
      .desktop-actions {
        display: none !important;
      }
      
      /* Show mobile actions */
      .mobile-actions {
        display: block !important;
        margin-top: 16px !important;
      }
      
      /* Hide desktop history on mobile */
      .history-section-desktop {
        display: none !important;
      }
      
      /* Show mobile history drawer and tab */
      .history-drawer,
      .history-tab {
        display: block !important;
      }
      
      /* Adjust multiplier display for mobile */
      #multReadout {
        font-size: 3rem !important;
        top: 40% !important;
      }
    }
    
    @media (min-width: 769px) {
      /* Hide mobile-specific elements on desktop */
      .lines-grid {
        display: none !important;
      }
      
      .lines-section-desktop {
        display: block !important;
      }
      
      .cash-out-all-mobile {
        display: none !important;
      }
      
      .mobile-actions {
        display: none !important;
      }
      
      .desktop-actions {
        display: block !important;
      }
      
      .history-drawer,
      .history-tab {
        display: none !important;
      }
      
      .history-section-desktop {
        display: block !important;
      }
    }
 
 /* NEW STYLING FROM PLINKO GAME - Add this to your existing styles.css */

/* Green gradient button styling for place-bet-btn */
.place-bet-btn.plinko-style {
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: 0px;
  border: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  font-family: Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.75;
  min-width: 64px;
  width: 100%;
  text-align: center;
  text-transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  color: rgb(255, 255, 255);
  font-weight: 900;
  letter-spacing: normal;
  transition: background-size 0.3s ease-in-out;
  background: linear-gradient(420deg, rgb(100, 227, 0) 0%, rgb(100, 227, 0) 15%, rgb(73, 200, 0) 15%, rgb(73, 200, 0) 100%) left center / 100% 100% no-repeat;
  padding: 12px 14px 16px;
  box-shadow: rgb(73, 149, 14) 0px -3px 0px 0px inset, rgb(158, 255, 70) 0px 2px 0px 0px inset;
}

@media (hover) and (pointer: fine) {
  .place-bet-btn.dragon-style:hover {
    background-size: 750% 100%;
    box-shadow: #b91c1c 0px -3px 0px 0px inset, #fca5a5 0px 2px 0px 0px inset;
  }
  
  .place-bet-btn.phoenix-style:hover {
    background-size: 750% 100%;
    box-shadow: #c2410c 0px -3px 0px 0px inset, #fed7aa 0px 2px 0px 0px inset;
  }
  
  .place-bet-btn.kirin-style:hover {
    background-size: 750% 100%;
    box-shadow: #0284c7 0px -3px 0px 0px inset, #bae6fd 0px 2px 0px 0px inset;
  }
  
  .place-bet-btn.turtle-style:hover {
    background-size: 750% 100%;
    box-shadow: #047857 0px -3px 0px 0px inset, #86efac 0px 2px 0px 0px inset;
  }
  
  .place-bet-btn.nian-style:hover {
    background-size: 750% 100%;
    box-shadow: #7c3aed 0px -3px 0px 0px inset, #c4b5fd 0px 2px 0px 0px inset;
  }
}
/* Animal-specific button colors */
.place-bet-btn.dragon-style {
  background: linear-gradient(420deg, #ff4d4f 0%, #ff4d4f 15%, #dc2626 15%, #dc2626 100%) left center / 100% 100% no-repeat;
  box-shadow: #b91c1c 0px -3px 0px 0px inset, #fca5a5 0px 2px 0px 0px inset;
}

.place-bet-btn.phoenix-style {
  background: linear-gradient(420deg, #ff9f0a 0%, #ff9f0a 15%, #ea580c 15%, #ea580c 100%) left center / 100% 100% no-repeat;
  box-shadow: #c2410c 0px -3px 0px 0px inset, #fed7aa 0px 2px 0px 0px inset;
}

.place-bet-btn.kirin-style {
  background: linear-gradient(420deg, #7ad7ff 0%, #7ad7ff 15%, #0ea5e9 15%, #0ea5e9 100%) left center / 100% 100% no-repeat;
  box-shadow: #0284c7 0px -3px 0px 0px inset, #bae6fd 0px 2px 0px 0px inset;
}

.place-bet-btn.turtle-style {
  background: linear-gradient(420deg, #00d084 0%, #00d084 15%, #059669 15%, #059669 100%) left center / 100% 100% no-repeat;
  box-shadow: #047857 0px -3px 0px 0px inset, #86efac 0px 2px 0px 0px inset;
}

.place-bet-btn.nian-style {
  background: linear-gradient(420deg, #a87cff 0%, #a87cff 15%, #8b5cf6 15%, #8b5cf6 100%) left center / 100% 100% no-repeat;
  box-shadow: #7c3aed 0px -3px 0px 0px inset, #c4b5fd 0px 2px 0px 0px inset;
}

/* Hover effects for each color */
@media (hover) and (pointer: fine) {
  .place-bet-btn.dragon-style:hover { background-size: 750% 100%; }
  .place-bet-btn.phoenix-style:hover { background-size: 750% 100%; }
  .place-bet-btn.kirin-style:hover { background-size: 750% 100%; }
  .place-bet-btn.turtle-style:hover { background-size: 750% 100%; }
  .place-bet-btn.nian-style:hover { background-size: 750% 100%; }
}
.place-bet-btn.plinko-style:disabled {
  background: gray;
  cursor: not-allowed;
  transform: none;
  box-shadow: rgb(100, 100, 100) 0px -3px 0px 0px inset, rgb(150, 150, 150) 0px 2px 0px 0px inset;
}

/* Plus icon button styling for settings-btn */
.settings-btn.plinko-style {
  width: 50px;
  height: 55px;
  border-radius: 12px;
  background: rgb(39, 39, 80);
  border: 0px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 50px;
}

.settings-btn.plinko-style:hover {
  background: rgba(50, 50, 80, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile adjustments for new styling */
@media (max-width: 768px) {
  .place-bet-btn.plinko-style {
    font-size: 12px;
    padding: 8px 4px 12px;
    min-height: 36px;
  }
  
  .settings-btn.plinko-style {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 12px;
  }
}