/* ==========================================================================
   NEW ERA COMMUNITY - COMPREHENSIVE RESPONSIVE DESIGN SYSTEM & ENGINE
   Ensures 100% flawless layout and zero horizontal overflow across:
   - Ultra-wide & Desktop (1440px - 2560px+)
   - Standard Laptops & Tablets Landscape (1024px - 1439px)
   - Tablets Portrait & Large Foldables (768px - 1023px)
   - Modern Mobile Devices (360px - 767px)
   - Small Mobile Screens (< 360px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL VIEWPORT & OVERFLOW SAFETY
   -------------------------------------------------------------------------- */
html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  scroll-behavior: smooth !important;
  -webkit-text-size-adjust: 100% !important;
}

body,
body.public-site,
body.subpage-v2 {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  position: relative !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-top: 82px !important;
  overscroll-behavior-y: auto !important;
}

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

img,
video,
iframe,
svg {
  max-width: 100%;
}

.app,
main,
#main-content,
.container {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
  box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   2. UNIFIED FIXED NAVBAR ACROSS ALL PAGES & TABS
   Eliminates jumping/shifting: Header sits at top:0 on every tab.
   -------------------------------------------------------------------------- */
header,
header[data-v-49eeea0c],
.subpage-v2 .page > header[data-v-49eeea0c],
.page > header[data-v-49eeea0c] {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 82px !important;
  margin: 0 !important;
  padding: 0 clamp(14px, 2.5vw, 36px) !important;
  background: rgba(8, 12, 18, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  z-index: 9999 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

header .right {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  padding-right: 2px !important;
}

header .login-btn,
header .login-btn._primary {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-right: 0 !important;
}

header .discord-nav-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  margin-right: 0 !important;
}

@media (max-width: 1550px) {
  .ner-micro-item:nth-child(5),
  .ner-micro-divider:nth-child(6),
  .ner-micro-item:nth-child(7) {
    display: none !important;
  }
}

@media (max-width: 1380px) {
  .ner-micro-item:not(:first-child),
  .ner-micro-divider {
    display: none !important;
  }
}

@media (max-width: 1220px) {
  .ner-micro-status {
    display: none !important;
  }
  header nav.nav-item-wrapper,
  header .nav-item-wrapper {
    display: none !important;
  }
  header .right .burger,
  header .burger {
    display: flex !important;
  }
  header {
    padding: 0 18px !important;
  }
}

@media (max-width: 768px) {
  body,
  body.public-site {
    padding-top: 68px !important;
  }

  header,
  header[data-v-49eeea0c] {
    height: 68px !important;
    padding: 0 14px !important;
  }

  header .left .logo img,
  header .left .ner-wordmark {
    max-width: 150px !important;
    height: 38px !important;
  }

  /* Micro status simplified to single online pill */
  .ner-micro-status {
    padding: 2px 6px !important;
    gap: 4px !important;
  }
  .ner-micro-item:not(:first-child),
  .ner-micro-divider {
    display: none !important;
  }

  header .right {
    gap: 8px !important;
  }

  .discord-nav-btn {
    padding: 7px 10px !important;
    font-size: 12px !important;
  }
  .discord-nav-btn span {
    display: none !important;
  }
  .discord-nav-btn svg {
    margin: 0 !important;
  }

  header .login-btn,
  header .login-btn._primary {
    padding: 7px 12px !important;
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
  }

  header .right .burger,
  header .burger {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0 10px !important;
  }

  header .left .logo img,
  header .left .ner-wordmark {
    max-width: 130px !important;
    height: 32px !important;
  }

  .ner-micro-status {
    display: none !important;
  }

  header .login-btn,
  header .login-btn._primary {
    padding: 6px 10px !important;
    font-size: 10.5px !important;
  }
}

/* --------------------------------------------------------------------------
   3. HERO / INTRO SECTION & CHARACTER ROLES RESPONSIVENESS
   -------------------------------------------------------------------------- */
/* Large Desktop (>= 1201px): Standard 7-card showcase */
@media (min-width: 1201px) {
  .intro {
    min-height: calc(100vh - 82px) !important;
    height: calc(100vh - 82px) !important;
    max-height: 920px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .intro-container {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(1580px, calc(100vw - 48px)) !important;
    max-width: 1580px !important;
    height: clamp(520px, 72vh, 600px) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    z-index: 10 !important;
    pointer-events: auto !important;
  }

  .intro-container .card {
    flex: 1 1 0 !important;
    height: 100% !important;
    margin-right: 14px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
  }

  .intro-container .card:last-child {
    margin-right: 0 !important;
  }

  .intro-container .card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(232, 28, 90, 0.6) !important;
    box-shadow: 0 12px 35px rgba(232, 28, 90, 0.25) !important;
  }

  .intro-container .card.center {
    background: linear-gradient(180deg, rgba(232, 28, 90, 0.18) 0%, rgba(232, 28, 90, 0.95) 100%) !important;
    box-shadow: 0 0 50px rgba(232, 28, 90, 0.35) !important;
  }

  .intro-container .card.center:hover {
    box-shadow: 0 0 85px rgba(232, 28, 90, 0.7) !important;
  }

  .intro-play-container {
    display: none !important;
  }
}

/* Tablets & Mobile (<= 1200px): Touch-friendly swipeable carousel & Mobile CTA */
@media (max-width: 1200px) {
  .intro {
    min-height: auto !important;
    height: auto !important;
    padding: 32px 0 54px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .intro-back-logo {
    position: relative !important;
    top: 0 !important;
    left: auto !important;
    transform: none !important;
    margin: 16px auto 20px !important;
    max-width: min(420px, 86vw) !important;
    height: auto !important;
    display: block !important;
  }

  /* Centered Mobile Action CTA */
  .intro-play-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin: 0 auto 28px !important;
    position: relative !important;
    z-index: 12 !important;
    width: 100% !important;
    padding: 0 16px !important;
  }

  .intro-play-container__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #e81c5a 0%, #ff2994 100%) !important;
    color: #fff !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 30px rgba(232, 28, 90, 0.55) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  .intro-play-container__btn-text br {
    display: none !important;
  }

  .intro-play-container__players {
    background: rgba(14, 14, 20, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #cbd5e1 !important;
  }

  .intro-play-container__players .players__value {
    color: #22c55e !important;
    font-weight: 700 !important;
  }

  /* Responsive Touch Carousel for Roleplay Cards */
  .intro-container {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    gap: 14px !important;
    padding: 16px 20px 24px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 10 !important;
  }

  /* Custom subtle scrollbar for mobile carousel */
  .intro-container::-webkit-scrollbar {
    height: 4px !important;
  }
  .intro-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 999px !important;
  }
  .intro-container::-webkit-scrollbar-thumb {
    background: rgba(232, 28, 90, 0.6) !important;
    border-radius: 999px !important;
  }

  /* Cards in Carousel */
  .intro-container .card {
    flex: 0 0 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
    height: 340px !important;
    scroll-snap-align: center !important;
    border-radius: 14px !important;
    margin-right: 0 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: #0f1118 !important;
    overflow: hidden !important;
  }

  .intro-container .card .human {
    height: 240px !important;
    width: 100% !important;
    object-fit: contain !important;
    filter: saturate(1) !important;
    transform: translateY(0) !important;
  }

  .intro-container .card .info {
    opacity: 1 !important;
    margin-bottom: 20px !important;
    position: relative !important;
    z-index: 4 !important;
  }

  .intro-container .card .info-text {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .intro-container .card .info-value {
    font-size: 16px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
  }

  .intro-container .card.center {
    display: none !important; /* Hide redundant center play card in carousel since main CTA is above */
  }
}

@media (max-width: 480px) {
  .intro-container .card {
    flex: 0 0 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
    height: 310px !important;
  }
  .intro-container .card .human {
    height: 210px !important;
  }
}

/* --------------------------------------------------------------------------
   4. QUEST STARTER SECTION RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .questStarter .palms {
    display: none !important; /* Remove wide palm assets causing horizontal scroll */
  }
  .questStarter .mens.left,
  .questStarter .mens.right {
    opacity: 0.2 !important;
    height: 480px !important;
    width: auto !important;
    max-width: 40% !important;
  }
  .questStarter .mens.left {
    left: -20px !important;
  }
  .questStarter .mens.right {
    right: -20px !important;
  }
}

@media (max-width: 768px) {
  .questStarter {
    padding: 60px 16px !important;
    min-height: auto !important;
    height: auto !important;
    position: relative !important;
  }

  .questStarter .mens {
    display: none !important; /* Clean legible text on mobile without background occlusion */
  }

  .questStarter .info {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .questStarter .info .text {
    font-size: 15px !important;
    line-height: 1.6 !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    padding: 0 10px !important;
  }

  .questStarter .question {
    font-size: 20px !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  .questStarter .question-line {
    max-width: 80% !important;
    margin: 10px auto 0 !important;
  }

  .questStarter .choice {
    flex-direction: column !important;
    width: 100% !important;
    gap: 14px !important;
    align-items: center !important;
  }

  .questStarter .choice-btn {
    width: 100% !important;
    max-width: 360px !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    text-align: center !important;
  }

  .questStarter .scroll {
    margin-top: 32px !important;
  }
}

/* --------------------------------------------------------------------------
   5. ACTIVITIES & EVENTS SECTION RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .olc-activities {
    padding: 48px 16px !important;
  }

  .activity-heading {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 28px !important;
  }

  .activity-post {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 20px !important;
    border-radius: 16px !important;
  }

  .activity-cover {
    width: 100% !important;
    max-height: 320px !important;
    height: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .activity-copy {
    width: 100% !important;
  }

  .activity-copy h3 {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .activity-stories {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .activity-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 520px) {
  .activity-gallery {
    grid-template-columns: 1fr !important;
  }
  .activity-tags {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   6. SHOWCASE & MEDIA SECTION RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .showcase {
    flex-direction: column !important;
    padding: 48px 16px !important;
    gap: 32px !important;
  }

  .showcase .cards,
  .showcase .media {
    width: 100% !important;
    max-width: 100% !important;
  }

  .showcase .media .photos {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 640px) {
  .showcase .media .photos {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .showcase .cards .title {
    font-size: 22px !important;
  }
  .showcase .cards .text {
    font-size: 14px !important;
  }
}

/* --------------------------------------------------------------------------
   7. HOW TO JOIN GUIDE & COMMUNITY SOCIALS RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .guide {
    padding: 48px 16px !important;
  }

  .guide .content {
    flex-direction: column !important;
    gap: 40px !important;
  }

  .guide .how-to-play,
  .guide .move-with-us {
    width: 100% !important;
    max-width: 100% !important;
  }

  .how-to-play .cards .row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    padding: 18px !important;
  }

  .how-to-play .cards .row .row-button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
  }

  .move-with-us .row-container {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .move-with-us .row {
    width: 100% !important;
  }
}

/* --------------------------------------------------------------------------
   8. FAQ RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .faq {
    padding: 48px 16px !important;
  }

  .faq-body {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .faq .card {
    padding: 20px !important;
    min-height: auto !important;
  }
}

/* --------------------------------------------------------------------------
   9. NEWSLETTER PROMO RESPONSIVENESS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .newsletter-promo {
    padding: 40px 16px !important;
  }

  .newsletter-promo__container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .newsletter-promo__form-row {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .newsletter-promo__submit {
    width: 100% !important;
    padding: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   10. MOBILE MENU (BURGER DRAWER) FULL-SCREEN ACCESSIBILITY
   -------------------------------------------------------------------------- */
#mobile-menu,
.Burger.modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(8, 10, 18, 0.98) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
  z-index: 9999999 !important;
  overflow-y: auto !important;
  display: none !important;
  flex-direction: column !important;
  padding: 24px 20px 40px !important;
  box-sizing: border-box !important;
}

#mobile-menu[hidden],
.Burger.modal[hidden],
#gallery[hidden] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

#mobile-menu.is-open,
.Burger.modal.is-open {
  display: flex !important;
}

#mobile-menu .header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 28px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#mobile-menu .cross {
  width: 32px !important;
  height: 32px !important;
  color: #fff !important;
  cursor: pointer !important;
  display: block !important;
}

#mobile-menu nav.nav-item-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
}

#mobile-menu .nav-item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 14px 20px !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
}

#mobile-menu .nav-item:active,
#mobile-menu .nav-item:hover {
  background: rgba(0, 210, 255, 0.15) !important;
  border-color: rgba(0, 210, 255, 0.4) !important;
  color: #00d2ff !important;
}

#mobile-menu .nav-item.mobile-join {
  display: flex !important;
  background: linear-gradient(135deg, #e81c5a 0%, #ff2994 100%) !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(232, 28, 90, 0.45) !important;
  margin-top: 8px !important;
}
