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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #000;
  overflow: hidden;
  height: 100vh;
}

/* Video Background */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
}

/* Logo Overlay */
#logo-overlay {
  position: fixed;
  top: 16px;
  left: 16px;
  height: 88px;
  width: auto;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  #logo-overlay {
    height: 58px;
  }
}

/* Responsible Gambling Footer */
#responsible-gambling {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  white-space: nowrap;
}

#responsible-gambling a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.3s ease;
}

#responsible-gambling a:hover {
  color: #d4af37;
}

@media (max-width: 768px) {
  #responsible-gambling {
    font-size: 11px;
    bottom: 6px;
    white-space: normal;
    max-width: 90%;
    line-height: 1.4;
  }
}

/* Social Media Links */
#social-links {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1001;
  display: flex !important;
  gap: 16px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  pointer-events: auto;
  visibility: visible;
}

#social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  text-decoration: none;
  pointer-events: auto;
}

#social-links a:hover {
  color: #d4af37;
  transform: translateY(-2px);
}

#social-links svg {
  width: 20px;
  height: 20px;
}

/* Play Overlay */
#play-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#play-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#play-button:hover {
  transform: scale(1.1);
}

.play-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.play-title {
  color: white;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.play-subtitle {
  color: white;
  font-size: 16px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .play-title {
    font-size: 18px;
  }
  
  .play-subtitle {
    font-size: 14px;
  }
}

/* Play Again Button */
#play-again-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

#play-again-button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%) translateY(-2px);
}

#play-again-button.hidden {
  opacity: 0;
  pointer-events: none;
}

#play-again-button svg {
  width: 20px;
  height: 20px;
}

#play-again-button span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Chatbot Container */
#chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Chat Toggle Button */
#chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2e 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#chat-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

#chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff3b3b;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid #000;
}

.notification-badge.hidden {
  display: none;
}

/* Chat Widget */
#chatbot-widget {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 550px;
  background: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#chatbot-widget.chatbot-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Chat Header */
#chat-header {
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2e 100%);
  padding: 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-container {
  position: relative;
  width: 44px;
  height: 44px;
}

#chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #4ade80;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
}

.header-text {
  flex: 1;
  color: white;
}

.header-text h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.header-text p {
  font-size: 12px;
  opacity: 0.9;
}

#close-chat {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

#close-chat:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Chat Messages */
#chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0a0a0a;
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.message {
  display: flex;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 14px;
  overflow: visible;
}

.message.bot .message-bubble {
  background: #2a2a2a;
  color: #f0f0f0;
  border-bottom-left-radius: 4px;
  overflow: visible;
}

.message.user .message-bubble {
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2e 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Email Form */
.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
  min-height: 200px;
}

.email-form input[type="text"],
.email-form input[type="email"] {
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1a1a1a;
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.email-form input[type="text"]:focus,
.email-form input[type="email"]:focus {
  border-color: #d4af37;
}

.consent-box {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #ddd !important;
  padding: 12px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  margin: 12px 0 !important;
}

.consent-box input[type="checkbox"] {
  margin-top: 2px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  accent-color: #d4af37 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.consent-box label {
  cursor: pointer !important;
  line-height: 1.5 !important;
  color: #ddd !important;
  flex: 1 !important;
}

.submit-email-btn {
  padding: 12px;
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2e 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.submit-email-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Chat Input */
#chat-input-container {
  padding: 16px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #2a2a2a;
}

#chat-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 24px;
  background: #0a0a0a;
  color: white;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

#chat-input:focus {
  border-color: #d4af37;
}

#send-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37 0%, #aa8c2e 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

#send-button:hover:not(:disabled) {
  transform: scale(1.1);
}

#send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: #666;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Make social links more compact on mobile */
  #social-links {
    position: absolute;
    bottom: 40px;
    left: 16px;
    gap: 12px;
    padding: 8px 12px;
  }
  
  #social-links a {
    width: 32px;
    height: 32px;
  }
  
  #social-links svg {
    width: 18px;
    height: 18px;
  }
  
  /* Ensure chat widget fits on screen with safe margins */
  #chatbot-widget {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 180px);
    height: auto;
    min-height: min(450px, calc(100vh - 180px));
    bottom: 16px;
    right: 16px;
  }
  
  #chatbot-widget.chatbot-open {
    bottom: 80px;
  }
  
  /* Make chat toggle button smaller on mobile */
  #chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }
  
  /* Position chat toggle higher to show logo */
  #chatbot-container {
    bottom: 16px;
    right: 16px;
  }
  
  /* Adjust play button for mobile */
  #play-button {
    gap: 16px;
  }
  
  #play-button svg {
    width: 60px;
    height: 60px;
  }
  
  .play-title {
    font-size: 18px;
  }
  
  .play-subtitle {
    font-size: 12px;
  }
  
  /* Center play again button on mobile */
  #play-again-button {
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    font-size: 13px;
  }
  
  #play-again-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
  }
  
  #play-again-button svg {
    width: 18px;
    height: 18px;
  }
  
  /* Adjust chat messages for better mobile viewing */
  #chat-messages {
    padding: 16px;
    gap: 12px;
    max-height: calc(100vh - 280px);
  }
  
  .message {
    max-width: 85%;
  }
  
  /* Make input area more mobile-friendly */
  #chat-input-container {
    padding: 12px;
  }
  
  #chat-input {
    font-size: 14px;
    padding: 10px 14px;
  }
}

/* Small mobile screens - adjust for very short heights */
@media (max-width: 480px) and (max-height: 600px) {
  #chatbot-widget {
    max-height: calc(100vh - 160px);
    min-height: min(350px, calc(100vh - 160px));
  }
  
  #chatbot-widget.chatbot-open {
    max-height: calc(100vh - 160px);
  }
  
  #chat-messages {
    max-height: calc(100vh - 240px);
  }
}

/* Extra small mobile screens */
@media (max-width: 380px) {
  #chatbot-widget {
    width: calc(100vw - 24px);
    right: 12px;
  }
  
  #chatbot-container {
    right: 12px;
  }
  
  .play-title {
    font-size: 16px;
  }
  
  #chat-toggle {
    width: 46px;
    height: 46px;
  }
}
