/* ==========================================================================
   ELCHUH CASINO - GIVEAWAY STYLESHEET
   ========================================================================== */

:root {
  --bg-color: #05060f;
  --panel-bg: rgba(13, 17, 33, 0.6);
  --border-color: rgba(255, 215, 0, 0.15);
  --border-glow: rgba(255, 215, 0, 0.05);
  
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.35);
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #b39500 100%);
  
  --blue: #00f0ff;
  --blue-glow: rgba(0, 240, 255, 0.3);
  --blue-gradient: linear-gradient(135deg, #80f5ff 0%, #00f0ff 50%, #007780 100%);

  --text-primary: #ffffff;
  --text-secondary: #8c9cb2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* --- Premium Background Effects --- */
.bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  animation: float 20s infinite alternate ease-in-out;
}

.orb-gold {
  background: var(--gold);
  width: 400px;
  height: 400px;
  top: -100px;
  right: 10%;
}

.orb-blue {
  background: var(--blue);
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: 5%;
  animation-delay: -5s;
}

.neon-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 85%);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

/* --- App Container & Layout --- */
.app-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 40px;
  max-width: 1800px;
  margin: 0 auto;
}

/* --- Header / Logo --- */
.casino-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

.logo-text {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.subtitle {
  font-size: 0.95rem;
  letter-spacing: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 5px;
}

/* --- Content Main Box --- */
.content-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --- Glassmorphism Panel Template --- */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px var(--border-glow);
  transition: all 0.3s ease;
}

/* --- States Configurations --- */
.giveaway-state {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease;
}

.giveaway-state.active {
  display: block;
}

/* --- IDLE STATE --- */
.idle-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  animation: scaleUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pulse-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pulse-ring::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
  opacity: 0.5;
}

.casino-icon {
  width: 50px;
  height: 50px;
  color: var(--gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.idle-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.idle-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.info-badges {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  backdrop-filter: blur(5px);
}

.info-badge strong {
  color: var(--text-primary);
}

/* --- ACTIVE STATE --- */
.active-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 30px;
  height: 60vh;
}

.active-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
}

.prize-card {
  flex: 1.2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-left: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.prize-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

.card-label {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 10px;
}

.prize-amount {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
  letter-spacing: -1px;
}

.prize-currency {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timer-card {
  flex: 1;
  padding: 25px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--blue);
}

.timer-display {
  font-family: 'Share Tech Mono', monospace;
  font-size: 4.5rem;
  font-weight: bold;
  color: var(--blue);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  line-height: 1;
  margin-bottom: 15px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--blue-gradient);
  box-shadow: 0 0 10px var(--blue-glow);
  border-radius: 4px;
  transition: width 1s linear;
}

.instruction-card {
  padding: 20px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.highlight-badge {
  background: var(--gold-gradient);
  color: #000;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  margin: 0 4px;
}

/* Sidebar & Participants */
.active-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 25px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.participant-count {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--blue);
  color: var(--blue);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.participant-list-container {
  flex-grow: 1;
  overflow-y: auto;
  position: relative;
  /* Scrollbar styling for Webkit */
}

.participant-list-container::-webkit-scrollbar {
  width: 4px;
}

.participant-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.participant-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.participant-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}

.participant-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInLeft 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.participant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.participant-name {
  flex-grow: 1;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.participant-chance-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.participant-chance-badge.active-chance {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

/* Flash animation for chance update */
@keyframes chanceFlash {
  0% {
    transform: scale(1);
    background: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px var(--gold);
    color: #000;
  }
  100% {
    transform: scale(1);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
    color: var(--gold);
  }
}

.flash-badge {
  animation: chanceFlash 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* --- WINNER STATE --- */
.winner-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.winner-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 3px;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.winner-title {
  font-size: 1.8rem;
  letter-spacing: 6px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 25px;
}

.winner-box-wrapper {
  padding: 8px;
  background: linear-gradient(90deg, #ffd700, #ffe066, #b39500, #ffd700);
  background-size: 300% 100%;
  border-radius: 24px;
  margin-bottom: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.25);
  animation: shimmer 6s infinite linear;
}

.winner-box {
  background: #090b16;
  border-radius: 18px;
  padding: 40px 60px;
}

#winner-name {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
  display: inline-block;
  animation: pulseScale 1.5s infinite ease-in-out;
}

.winner-prize-display {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.reset-timer {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

/* --- DEV/TESTING PANEL --- */
.test-panel {
  position: absolute;
  bottom: 0;
  right: 40px;
  width: 320px;
  background: rgba(10, 12, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  z-index: 9999;
  font-family: inherit;
  display: none; /* Controlled by Javascript */
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.test-panel.collapsed {
  transform: translateY(calc(100% - 40px));
}

.test-panel-header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.test-panel.collapsed .toggle-icon {
  transform: rotate(180deg);
}

.test-panel-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.test-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.test-row input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  width: 140px;
  font-family: 'Outfit', sans-serif;
  text-align: right;
}

.test-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  color: #000;
  transition: filter 0.2s;
}

.btn:hover {
  filter: brightness(1.2);
}

.btn-green { background: #10b981; color: #fff; }
.btn-blue { background: #3b82f6; color: #fff; grid-column: span 2; }
.btn-orange { background: #f59e0b; color: #fff; }
.btn-red { background: #ef4444; color: #fff; }

.test-status {
  margin-top: 10px;
  font-size: 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(0,0,0,0.4);
  padding: 6px 10px;
  border-radius: 4px;
  color: #a78bfa;
  min-height: 26px;
  display: flex;
  align-items: center;
}

/* --- Stream Promo Banner --- */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 15px 30px;
  margin: -10px auto 30px auto;
  width: 100%;
  max-width: 900px;
  border-left: 4px solid var(--gold);
  border-right: 4px solid var(--gold);
  text-align: center;
  animation: fadeInDown 1s ease-out;
  position: relative;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(255, 215, 0, 0.08);
}

.promo-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
  box-shadow: 0 0 10px var(--gold-glow);
  flex-shrink: 0;
}

.promo-content-box {
  display: flex;
  align-items: center;
}

.promo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.gold-text-promo {
  color: var(--gold);
  font-weight: 900;
  text-shadow: 0 0 10px var(--gold-glow);
  text-transform: uppercase;
}

/* --- Info Row (Twitch Join + Double Chance + Music) --- */
.info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 22px auto;
  width: 100%;
  max-width: 900px;
  flex-wrap: wrap;
  animation: fadeInDown 1.2s ease-out;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-pill:hover {
  transform: translateY(-2px);
}

.twitch-pill {
  background: rgba(145, 71, 255, 0.12);
  border: 1px solid rgba(145, 71, 255, 0.4);
  color: #c9a7ff;
  box-shadow: 0 0 15px rgba(145, 71, 255, 0.1);
}

.twitch-pill strong {
  color: #fff;
  background: rgba(145, 71, 255, 0.3);
  padding: 2px 8px;
  border-radius: 5px;
  margin: 0 2px;
}

.double-pill {
  background: rgba(255, 215, 0, 0.07);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #e0d0a0;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.06);
}

.pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Music Toggle Button --- */
.music-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--blue);
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.06);
  letter-spacing: 0.5px;
}

.music-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.music-btn.muted {
  border-color: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  box-shadow: none;
}

/* --- Casino Info Pill --- */
.casino-pill {
  background: rgba(255, 60, 60, 0.08);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff9999;
  box-shadow: 0 0 15px rgba(255, 60, 60, 0.08);
}

.casino-pill strong {
  color: #ffdddd;
  background: rgba(255, 60, 60, 0.25);
  padding: 2px 8px;
  border-radius: 5px;
  margin: 0 2px;
}

/* --- Floating Casino Gamble Notifications --- */
.gamble-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 420px;
  width: 100%;
  pointer-events: none;
}

.gamble-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
             fadeOutRight 0.5s ease-in 5.5s forwards;
  position: relative;
  overflow: hidden;
  border: 1.5px solid;
  pointer-events: auto;
}

/* Win State */
.gamble-card.win {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.gamble-card.win .gamble-result-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.gamble-card.win::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #10b981;
}

/* Loss State */
.gamble-card.loss {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.gamble-card.loss .gamble-result-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.gamble-card.loss::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #ef4444;
}

/* Gamble Card Components */
.gamble-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.gamble-info {
  flex-grow: 1;
}

.gamble-user {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: 0.3px;
}

.gamble-details {
  font-size: 0.85rem;
  color: #c9d1d9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gamble-amount-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
}

.gamble-result-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* --- Main Layout Grid wrapper --- */
.main-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr 0.9fr;
  gap: 30px;
  width: 100%;
  height: 60vh;
  margin-top: 10px;
}

/* --- Casino Live Feed Sidebar --- */
.casino-feed-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 25px;
  border-left: 4px solid var(--gold);
}

.casino-howto {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 60, 60, 0.06);
  border: 1px solid rgba(255, 60, 60, 0.25);
  border-radius: 10px;
  padding: 9px 14px;
  margin: 0 0 15px 0;
  font-size: 0.82rem;
  color: #ff9999;
  line-height: 1.4;
}

.casino-howto strong {
  color: #ffdddd;
}

.casino-feed-list-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 15px;
}

.casino-feed-list-container::-webkit-scrollbar {
  width: 4px;
}

.casino-feed-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.casino-feed-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.casino-feed-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.casino-feed-empty {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

.casino-feed-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

/* Override animations for inline feed items */
.casino-feed-list .gamble-card {
  animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  margin-bottom: 2px;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Win Chance Sidebar (left) --- */
.win-chance-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 25px;
  border-right: 4px solid var(--gold);
}

.win-chance-howto {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  padding: 9px 14px;
  margin: 0 0 15px 0;
  font-size: 0.82rem;
  color: #e0d0a0;
  line-height: 1.4;
}

.win-chance-howto strong {
  color: var(--gold);
}

.win-chance-list-container {
  flex-grow: 1;
  overflow-y: auto;
  margin-top: 15px;
}

.win-chance-list-container::-webkit-scrollbar {
  width: 4px;
}

.win-chance-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.win-chance-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.win-chance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.win-chance-empty {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

.win-chance-badge {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.chance-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  border-radius: 16px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(255, 215, 0, 0.08);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  animation: slideInDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.chance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.chance-card.leader {
  background: rgba(255, 215, 0, 0.14);
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.12), 0 4px 15px rgba(0, 0, 0, 0.4);
}

.chance-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.chance-info {
  flex-grow: 1;
  min-width: 0;
}

.chance-user {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chance-percent-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 900;
  font-family: 'Share Tech Mono', monospace;
  flex-shrink: 0;
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
  transition: all 0.3s ease;
}

.chance-percent-badge.flash-chance {
  animation: chanceFlash 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}


