html, body {
  height: 100%;
  margin: 0;
}
body {
  background: #000 url('./images/image.PNG') center center / cover no-repeat fixed;
  position: relative;
  color: #eaeaea;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
/* Ensure background image is enforced if other scripts/styles override body background */
html, body {
  background-color: #000 !important;
  background-image: url('./images/image.PNG'), url('./images/image.png') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
/* Foggy overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
/* Center wrapper */
.center-wrap {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 440px;
  background: rgba(20, 20, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 28px;
  text-align: center;
}
.title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.sub {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #bdbdbd;
}
.interact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 216, 0, 0.35);
  background: linear-gradient(180deg, #ffe080 0%, #ffcf40 40%, #e6b800 100%);
  color: #1a1200;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease, box-shadow 0.3s ease, background-position 0.6s ease;
  box-shadow: 0 6px 18px rgba(230, 184, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.5);
  background-size: 100% 200%;
  background-position: 50% 0%;
  animation: goldPulse 2.2s ease-in-out infinite;
}

.interact-button:hover { 
  filter: brightness(1.05); 
  transform: translateY(1px);
  box-shadow: 0 5px 15px rgba(230, 184, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.5);
}

.interact-button:active {
  transform: translateY(4px);
  filter: brightness(0.95);
  background-position: 50% 100%;
  box-shadow: 0 1px 4px rgba(230, 184, 0, 0.3), inset 0 2px 4px rgba(0,0,0,0.2);
}
.hint {
  margin-top: 14px;
  font-size: 12px;
  color: #9a9a9a;
}
/* Graceful fallback if backdrop-filter unsupported */
.no-backdrop-filter .overlay,
.no-backdrop-filter .card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.no-backdrop-filter .overlay {
  background: rgba(10, 10, 10, 0.45);
}

.no-backdrop-filter .card {
  background: rgba(20, 20, 22, 0.8);
}
.wallet-graphic {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

@keyframes goldPulse {
  0% { box-shadow: 0 6px 18px rgba(230, 184, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.5); }
  50% { box-shadow: 0 10px 26px rgba(230, 184, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.6); }
  100% { box-shadow: 0 6px 18px rgba(230, 184, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.5); }
}

/* Betting Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.betting-notification {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  animation: slideIn 0.4s ease-out forwards;
  max-width: 280px;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.betting-notification:hover {
  transform: translateX(0) scale(1.02);
  border-color: rgba(255, 216, 0, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.betting-notification.fade-out {
  animation: slideOut 0.3s ease-in forwards;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notification-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-username {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.notification-text {
  font-size: 13px;
  color: #bdbdbd;
  line-height: 1.3;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .betting-notification {
    max-width: none;
    width: 100%;
  }
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 9999;
  opacity: 1;
  transition: opacity 300ms ease;
}

.loading-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 280px;
  max-width: 70vw;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Prevent UI interaction while loading */
.is-loading .center-wrap,
.is-loading .overlay,
.is-loading .notification-container {
  pointer-events: none;
  user-select: none;
  filter: blur(1px) saturate(0.9) brightness(0.9);
}

/* Disabled button state while initializing */
.interact-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: grayscale(0.2) brightness(0.95);
  animation: none;
} 
/* Accessibility helpers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}