/* Game Layout 3 Columns */
.game-layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 20px;
  height: calc(100vh - 180px);
  min-height: 500px;
}

/* Side Panel (Active List) */
.side-panel {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.left-panel {
  border-right: 4px solid rgba(0, 0, 0, 0.2);
}

.right-panel {
  border-left: 4px solid rgba(0, 0, 0, 0.2);
}

.panel-header {
  padding: 15px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
}

.panel-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.badge-count {
  background: var(--primary);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 800;
}

.active-list-container,
.winners-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-state-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 20px;
  font-style: italic;
  opacity: 0.5;
}

/* Card Style for Lists */
.side-panel .participant-card {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.winners-list-container .participant-card {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(250, 204, 21, 0.1));
  border-color: rgba(250, 204, 21, 0.3);
  animation: slide-in-right 0.5s ease-out;
}

.winners-list-container .participant-name {
  font-weight: 700;
  color: #fca5a5;
  /* Light Red */
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Main Stage */
.main-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 30px;
  border: 1px solid var(--glass-border);
}

/* SLOT MACHINE STRUCTURE (Restored) */
.slot-machine-container {
  width: 100%;
  max-width: 800px;
  text-align: center;
  transition: transform 0.5s ease;
}

.main-stage.zoomed .slot-machine-container {
  transform: scale(1.1);
}

.slot-frame {
  position: relative;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border: 8px solid #334155;
  border-radius: 20px;
  padding: 20px 0;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 50px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slot-indicator-left,
.slot-indicator-right {
  font-size: 3rem;
  color: #facc15;
  text-shadow: 0 0 20px #facc15;
  z-index: 20;
  padding: 0 20px;
}

.slot-window {
  height: 180px;
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #fff;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Shadow Overlay */
.slot-window::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.1) 20%,
      transparent 50%,
      rgba(0, 0, 0, 0.1) 80%,
      rgba(0, 0, 0, 0.9) 100%);
  z-index: 5;
  pointer-events: none;
}

.slot-tape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  transform: translateY(0);
}

.slot-item {
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  background: white;
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}

/* Alternating colors */
.slot-item:nth-child(odd) {
  background: #f8fafc;
}

.slot-item:nth-child(even) {
  background: #e2e8f0;
}

.slot-status {
  margin-top: 30px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Slot Machine Tweaks */
.slot-tape.blur {
  /* Less blur so names are visible */
  filter: blur(1px);
}

.slot-item {
  font-family: 'Courier New', monospace;
  /* Monospace for rolling effect */
  font-weight: 800;
}

/* Winner Effect di Slot */
.slot-item.winner {
  color: #db2777;
  /* Pink/Redish */
  text-shadow: 0 0 5px rgba(219, 39, 119, 0.5);
  background: #fff;
  /* Animation scale up little bit */
  animation: bounce-win 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce-win {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .game-layout {
    grid-template-columns: 250px 1fr;
  }

  .slot-item {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .game-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
  }

  .side-panel {
    max-height: 200px;
  }

  .slot-window {
    height: 120px;
  }

  .slot-item {
    height: 120px;
    font-size: 2rem;
  }
}