/* Halloween theme — public pages only. Remove the link from each *inc/head.blade.php to revert. */
:root { --halloween-ink: #110c1e; --halloween-card: #241332; --halloween-orange: #ff8b2c; --halloween-purple: #9d5cf5; --halloween-light: #fff2df; }
html { background: var(--halloween-ink); }
body { color: var(--halloween-light); background: var(--halloween-ink); }
body, .hero-section, .hero-section.dark, .__main_wrapper, .comic-book, .comic-book.white, .wf-section { background-color: var(--halloween-ink); }
.navbar, .off-black, .nav-bar { background: #1c102b !important; border-bottom: 1px solid #693a8d; }
.nav-link, .nav-bar a { color: #f9e9f9 !important; }
.nav-link:hover, .nav-link.w--current { color: var(--halloween-orange) !important; }
.primary-button, .button, .button.nav, .button.main-nav-button, .main-nav-button, button.primary-button { background: linear-gradient(135deg,#ffab3c,#ff651f) !important; color: #211126 !important; border: 1px solid #ffb663 !important; box-shadow: 0 5px 20px #f67a2550 !important; font-weight: 700; }
.primary-button:hover, .button:hover { filter: brightness(1.12); box-shadow: 0 7px 30px #ff7f4680 !important; }
.hero-section { position: relative; }
.hero-section::before { content: '🦇'; position: absolute; font-size: clamp(28px,4vw,55px); color: #9b66ff; opacity: .7; top: 115px; right: 8%; transform: rotate(-13deg); pointer-events:none; z-index: 2; }
.hero-section::after { content: '🎃'; position: absolute; font-size: clamp(38px,6vw,70px); bottom: 35px; right: 6%; pointer-events:none; filter: drop-shadow(0 0 18px #f57d31); z-index:2; }
.__main_wrapper { background: linear-gradient(170deg,#110c1e,#251034 75%,#1a0e26) !important; }
.__main_bg::after { background: linear-gradient(180deg,#170c29d9,#10091d) !important; opacity: .95 !important; }
.__parallax { filter: saturate(.65) hue-rotate(35deg); }
.__main_section, .__live_wins, .__game, .__win_card, .properties, .balance, .hero-description { background: #241332 !important; color: #fff0e1 !important; border-color: #5c3478 !important; }
.__game { border: 2px solid #8647a9; box-shadow: 0 12px 30px #0009; }
.__game:hover { border-color: #ff8b2c; box-shadow: 0 0 28px #ff8b2c77; transform: translateY(-5px); }
.__game .__info, .__ranking { background: linear-gradient(180deg,#271139aa,#160c24) !important; }
.__game_list h2, .rarity-heading, .__ranking h1, .hero-site-name h1 { color: #ffac45 !important; text-shadow: 0 0 18px #ff6f303d; }
.__ranking .__list { border-color: #7c49ad !important; }
.__ranking .__row { color: #1c1127 !important; }
.__ranking .__row:nth-child(odd) { background: #efd6ff !important; }
.__ranking .__row:nth-child(even) { background: #fff2e6 !important; }
.indications, .custom-table { background: #342149 !important; color: #fef6ff !important; border-color: #b975ed !important; }
.indications th, .custom-table thead { background: #51286c !important; color: #fff1e7 !important; }
.rarity-row.blue, .__win_card:hover { background: #533069 !important; }
.sweet-title { color: #ffb45a !important; text-shadow: 2px 2px 0 #6a29a0, 4px 4px 0 #3c1e55 !important; }
.sweet-title span::before { text-shadow: 2px 2px #ab4dca !important; }
input, select, textarea { accent-color: #ff982d; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffad52; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .__game, .primary-button { transition: none !important; } }


/* Mobile-first safety fixes */
html, body {
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .navbar .container,
  .navbar .w-container.container {
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand {
    flex: 0 0 auto;
    max-width: 86px;
    min-width: 0;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .brand .image-6,
  img.image-6 {
    display: block;
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    object-fit: contain;
    margin: 0 !important;
  }

  .mobile_primary_button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile_primary_button .w-nav-dep,
  .mobile_primary_button .main-nav-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px !important;
    font-size: clamp(16px, 4.6vw, 22px) !important;
    line-height: 1.05;
    white-space: nowrap;
    text-align: center;
    border-radius: 12px !important;
  }

  .menu-button.w-nav-button {
    flex: 0 0 auto;
    padding: 12px !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }

  .nav-bar {
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 14px;
    border-radius: 14px;
  }

  .hero-section,
  .wf-section,
  .comic-book,
  .faq-section,
  .__main_wrapper,
  .__main_section {
    overflow-x: hidden;
  }

  .minting-container.w-container,
  .hero-container,
  .faq-container,
  .yourstuff-container,
  .w-container {
    max-width: 100%;
  }

  .properties,
  .rarity-row,
  .rarity-row.roboto-type,
  .rarity-row.roboto-type2,
  .custom-table,
  .indications {
    width: 100%;
    max-width: 100%;
  }

  .rarity-row.roboto-type,
  .rarity-row.roboto-type2 {
    grid-template-columns: 1fr !important;
    column-gap: 12px !important;
  }

  input.w-input,
  select.w-input,
  textarea.w-input,
  .large-input-field,
  .large-input-field.w-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }

  .primary-button {
    width: 100%;
    max-width: 100%;
    padding: 16px 18px !important;
    line-height: 1.2;
    white-space: normal;
  }
}
