* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  /* background-color: #0a0a0a; */
  /* color: #fff; */
}

/* #alaca-snackbar-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 1000;
  pointer-events: none;
} */

#alaca-snackbar-container {
  position: fixed;
  bottom: 10px;
  left: 50%;
  /* Position left edge at 50% of viewport width */
  transform: translateX(-50%);
  /* Shift element left by 50% of its own width to center it */
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 1000;
  pointer-events: none;
}


#alaca-snackbar-container>* {
  pointer-events: auto;
}

.alaca-snackbar {
  background: linear-gradient(35deg, #181515 50%, #2b2a2a 95%, #474343 100%);
  border: 2px solid rgb(255, 94, 0);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow:
    /* 0 0 20px rgba(255, 102, 0, 0.5), */
    0 4px 12px rgba(255, 149, 78, 0.5);
  animation: 0.3s ease-out alacaSlideIn;
  transition: 0.3s;
  opacity: 0.95;
  position: relative;
  overflow: hidden;
}

.alaca-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.alaca-progress-fill {
  height: 100%;
  background: linear-gradient(-90deg, #f5e8e5, #BD2D09, #941E00);
  background-size: 200% 100%;
  width: 100%;
  transform-origin: left;
  animation:
    progressShrink var(--dismiss-time, 6000ms) linear,
    progressGlow 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

@keyframes progressShrink {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@keyframes progressGlow {

  0%,
  100% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.alaca-mega-win .alaca-progress-fill {
  background: linear-gradient(90deg, #f0f, #ff6b6b, gold, #ff6b6b, #f0f);
  background-size: 300% 100%;
  animation:
    progressShrink var(--dismiss-time, 6000ms) linear,
    megaShimmer 1.5s linear infinite;
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.8);
}

@keyframes megaShimmer {
  0% {
    background-position: 0 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.alaca-snackbar:hover .alaca-progress-fill {
  animation-play-state: paused;
}

@keyframes alacaSlideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 0.95;
  }
}

.alaca-snackbar.alaca-fade-out {
  animation: 0.3s ease-out forwards alacaFadeOut;
}

@keyframes alacaFadeOut {
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.alaca-snackbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.alaca-snackbar-title {
  font-size: 18px;
  font-weight: 700;
  color: gold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.alaca-snackbar-close {
  background: 0 0;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.alaca-snackbar-close:hover {
  color: #fff;
}

.alaca-snackbar-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}

.alaca-snackbar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #e0e0e0;
}

.alaca-snackbar-amount {
  font-weight: 600;
  color: #4ade80;
  animation: 0.6s ease-out alacaCountUp;
}

.alaca-snackbar-multiplier {
  font-weight: 700;
  color: gold;
  font-size: 16px;
  animation: 2s ease-in-out infinite alacaSubtlePulse;
}

.alaca-snackbar-game {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}


.alaca-snackbar-button {
  text-transform: uppercase;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  background-color: linear-gradient(145deg, #0f0f0f, #1c1c1c);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  z-index: 1;


}

.alaca-snackbar-button:before {
  content: "";
  position: absolute;
  width: 200%;
  height: 90%;
  background: conic-gradient(from 0deg, #00ffff, #ff00ff, #00ffff);
  animation: rotate 5s linear infinite;
  z-index: -2;
}

.alaca-snackbar-button::after {
   content: "";
  position: absolute;
  inset: 2px;
  background: #0a0a0a;
  border-radius: inherit;
  z-index: -1;
}




.alaca-snackbar-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 255, 1);
}

.alaca-snackbar.alaca-mega-win {
  border-color: #ff6b6b;
  box-shadow:
    0 0 30px rgba(255, 107, 107, 0.6),
    0 4px 15px rgba(0, 0, 0, 0.6);
  animation:
    0.3s ease-out alacaSlideIn,
    1.5s ease-in-out alacaPulse;
}

@keyframes alacaPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

#alaca-snackbar-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  animation: 0.3s alacaFadeIn;
}

@keyframes alacaFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes alacaSubtlePulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

@keyframes alacaCountUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alaca-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background-color: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.alaca-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #2a2a2a;
  border-bottom: 1px solid #333;
}

.alaca-modal-title {
  justify-content: center;
  text-align: center;
  font-size: 20px;
  text-shadow: 1px 1px 2px #000000;
  font-weight: 700;
  color: rgb(173, 173, 173);
}

.alaca-modal-close {
  background: 0 0;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.alaca-modal-close:hover {
  color: #fff;
}

.alaca-modal-body {
  padding: 20px;
  background-color: #1a1a1a;
}

#alaca-iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-color: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
}

#alaca-bukti-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.alaca-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid #333;
  border-top-color: gold;
  border-radius: 50%;
  animation: 1s linear infinite alacaSpin;
}

@keyframes alacaSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.alaca-close-menu {
  position: absolute;
  top: 30px;
  right: 0;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 0;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1002;
  overflow: hidden;
}

.alaca-close-menu button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: 0 0;
  border: none;
  color: #e0e0e0;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.alaca-close-menu button:first-child {
  border-bottom: 1px solid #444;
}

.alaca-close-menu button:hover {
  background: #333;
}

.alaca-close-menu button:last-child {
  color: #ff6b6b;
}

#alaca-opt-out-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #999;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
  z-index: 999;
}

#alaca-opt-out-btn:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 768px) {
  #alaca-snackbar-container {
    bottom: 80px;
    right: 10px;
    width: 280px;
  }

  #alaca-opt-out-btn {
    bottom: 80px;
  }
}

@media (max-width: 400px) {
  #alaca-snackbar-container {
    bottom: 100px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 320px;
  }

  .alaca-snackbar {
    padding: 12px;
    font-size: 14px;
  }

  .alaca-snackbar-title {
    font-size: 16px;
  }

  .alaca-snackbar-info {
    font-size: 13px;
  }

  .alaca-snackbar-button {
    font-size: 13px;
    padding: 8px 12px;
  }

  .alaca-modal-content {
    width: 95%;
  }

  .alaca-modal-header {
    padding: 15px;
  }

  .alaca-modal-title {
    font-size: 18px;
  }

  #alaca-opt-out-btn {
    bottom: 100px;
    font-size: 11px;
    padding: 6px 10px;
  }
}