a,
button,
input,
select,
h1,
h2,
h3,
h4,
h5,
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;

  -webkit-font-smoothing: antialiased;
}

menu,
ol,
ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* -------- Rabbit Road: Header + Hero (scoped) -------- */
.rr-hero {
  background: #f2f2f2;
  border-radius: 16px;
  margin: 16px;
  padding: 16px 0 24px;
}

.rr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.rr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rr-logo img { height: 44px; width: auto; display: block; }

.rr-nav { display: none; gap: 24px; }
.rr-nav a { color: #2b2b2b; font-weight: 500; }

.rr-actions { display: flex; align-items: center; gap: 12px; }
.rr-lang { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: transparent; cursor: pointer; }
.rr-lang span { font-weight: 700; letter-spacing: 0.02em; }
.rr-lang .rr-caret { width: 10px; height: 10px; opacity: 0.7; }

.rr-cta { display: inline-block; padding: 10px 18px; background: linear-gradient(180deg,#ffd27a 0%,#ffb525 100%); color: #212121; border-radius: 10px; box-shadow: 0 6px 14px rgba(255,171,0,0.35); font-weight: 700; }

.rr-hero-body { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-top: 24px; }

.rr-copy { display: grid; gap: 16px; }
.rr-eyebrow { color: #3b3b3b; font-weight: 800; letter-spacing: 0.08em; font-size: 12px; }
.rr-title { font-size: 36px; line-height: 1.2; font-weight: 800; color: #1f1f1f; }
.rr-subtitle { color: #4a4a4a; max-width: 58ch; }

.rr-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.rr-btn { padding: 12px 22px; border-radius: 12px; font-weight: 800; text-transform: none; }
.rr-btn--secondary { background: #fff; color: #ff7a00; border: 2px solid #ff7a00; box-shadow: 0 8px 20px rgba(255,122,0,0.15); }
.rr-btn--primary { background: linear-gradient(180deg,#ff8a22 0%,#ff6a00 100%); color: #fff; box-shadow: 0 10px 24px rgba(255,106,0,0.35); }

.rr-meta { display: grid; grid-template-columns: repeat(3,auto); gap: 24px; margin-top: 8px; }
.rr-meta__label { display: block; font-size: 12px; color: #7a7a7a; font-weight: 800; letter-spacing: 0.06em; }
.rr-meta__value { display: block; font-weight: 800; color: #1f1f1f; }

.rr-illustration { display: flex; justify-content: center; }
.rr-illustration img { width: 100%; max-width: 620px; border-radius: 16px; display: block; }

/* ---- Medium screens ---- */
@media (min-width: 720px) {
  .rr-nav { display: flex; }
  .rr-hero-body { grid-template-columns: 1.05fr 1fr; gap: 32px; }
  .rr-title { font-size: 44px; }
}

/* ---- Large screens ---- */
@media (min-width: 1024px) {
  .rr-hero { padding: 18px 0 28px; }
  .rr-title { font-size: 52px; }
  .rr-eyebrow { font-size: 13px; }
}

/* -------- Game Preview Container -------- */
.game-preview {
  position: relative;
  overflow: hidden;
}

/* Hide background when demo modal is open */
.game-preview.demo-active {
  background: none !important;
  background-image: none !important;
}

/* Hide the specific background image */
.game-preview.demo-active .game-preview-image,
.game-preview.demo-active #game-preview-image {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

.game-preview.demo-active .game-preview-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Ensure the modal is fully visible */
.game-preview.demo-active .demo-modal {
  z-index: 1 !important;
  display: block !important;
}

/* Make the iframe fill the entire game preview area when demo is active */
.game-preview.demo-active .demo-modal-content {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.game-preview.demo-active #demo-iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* Position the close button and title when demo is active */
.game-preview.demo-active .demo-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 1002 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  cursor: pointer !important;
}

.game-preview.demo-active .demo-modal h2 {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 1002 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-size: 18px !important;
  margin: 0 !important;
}

/* Additional specific targeting for the background image */
#game-preview-image.demo-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* -------- Demo Modal Styles -------- */
.demo-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1000;
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  border-radius: 12px;
}

.demo-modal-content {
  position: relative;
  background: transparent;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  box-shadow: none;
}

.demo-modal h2 { display: none; }

.demo-close { display: none; }

.demo-close:hover {
  color: #000;
  background: white;
  transform: scale(1.1);
}

#demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .demo-modal {
    padding: 10px;
  }
  
  .demo-modal-content {
    max-height: 95vh;
  }
  
  #demo-iframe { height: 100%; }
  
  .demo-modal h2 {
    font-size: 20px;
    padding: 15px 15px 10px;
  }
  
  .demo-close {
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .demo-modal {
    padding: 5px;
  }
  
  #demo-iframe { height: 100%; }
  
  .demo-modal h2 {
    font-size: 18px;
    padding: 10px 10px 8px;
  }
}

/* -------- Social Media Links -------- */
.social-btn .icon-letter {
  font-weight: bold;
  font-size: 16px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* -------- Game Features Section -------- */
.game-features-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ff7a00;
}

.features-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  color: #e0e0e0;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 122, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: #ff7a00;
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.2);
}

.feature-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ff7a00;
}

.feature-item p {
  line-height: 1.6;
  color: #e0e0e0;
}

/* Responsive adjustments for game features */
@media (max-width: 768px) {
  .features-title {
    font-size: 2rem;
  }
  
  .features-subtitle {
    font-size: 1.1rem;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .feature-item {
    padding: 25px;
  }
}

/* -------- How to Play Steps -------- */
.how-to-play-steps {
  display: grid;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.step-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid #ff7a00;
  transition: all 0.3s ease;
  color: #333;
}

.step-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ff7a00;
}

.step-item p {
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Responsive adjustments for steps */
@media (max-width: 768px) {
  .how-to-play-steps {
    gap: 20px;
  }
  
  .step-item {
    padding: 25px;
  }
  
  .step-item:hover {
    transform: none;
  }
}

/* -------- Footer Verification Badge -------- */
.footer-verification {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.verification-link {
  display: inline-block;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.verification-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.verification-badge {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

/* Responsive adjustments for verification badge */
@media (max-width: 768px) {
  .footer-verification {
    margin: 15px 0;
    padding: 10px 0;
  }
  
  .verification-badge {
    height: 50px;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .verification-badge {
    height: 40px;
    max-width: 120px;
  }
}