﻿/* ==========================================================
   CATSELECT — Balanced journey selection
   ========================================================== */

#s-catselect {
  position: relative !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background-image:
    linear-gradient(180deg,
      rgba(7, 10, 18, 0.69) 0%,
      rgba(7, 10, 18, 0.36) 18%,
      rgba(7, 10, 18, 0.12) 42%,
      rgba(7, 10, 18, 0.26) 76%,
      rgba(7, 10, 18, 0.52) 100%),
    radial-gradient(circle at 50% 22%, rgba(214, 178, 84, 0.14), transparent 34%),
    url("/static/assets/images/backgrounds/man2.3.jpg?v=catselect-desktop-1") !important;
  background-position: center top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: #09101a !important;
}

#s-catselect .topnav {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 clamp(24px, 4vw, 42px) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  background: rgba(7, 10, 18, 0.74) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(214, 178, 84, 0.10) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

#s-catselect .tnbrand {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 2.2px !important;
  text-transform: uppercase !important;
  color: rgba(244, 236, 219, 0.96) !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

#s-catselect .topnav > div:last-child {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: rgba(226, 204, 151, 0.74) !important;
  flex: 0 0 auto !important;
  margin-left: 16px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#s-catselect .catselect-body {
  width: 100% !important;
  padding: clamp(12px, 1.8vh, 18px) clamp(20px, 5vw, 56px) 28px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

#s-catselect .catselect-title {
  max-width: 760px !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(1.84rem, 3.8vw, 3.04rem) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: 0.02em !important;
  color: #f6efdf !important;
  text-align: center !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34) !important;
  margin-bottom: 8px !important;
}

#s-catselect .catselect-sub {
  max-width: 620px !important;
  font-size: clamp(14px, 1.15vw, 16px) !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 1.58 !important;
  letter-spacing: 0.01em !important;
  color: rgba(241, 236, 227, 0.82) !important;
  text-align: center !important;
  margin-bottom: clamp(12px, 1.9vh, 18px) !important;
}

#s-catselect .cats-select {
  width: min(1220px, 100%) !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(330px, 360px)) !important;
  justify-content: center !important;
  gap: clamp(22px, 2vw, 26px) !important;
  margin-top: 4px !important;
  align-items: start !important;
}

#s-catselect .cat-sel,
#s-catselect .journey-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  height: 504px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(18, 24, 40, 0.95) 0%, rgba(12, 18, 30, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34) !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease !important;
}

#s-catselect .cat-sel.cat-primary {
  border-color: rgba(213, 172, 72, 0.48) !important;
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(213, 172, 72, 0.06) inset !important;
  cursor: pointer !important;
}

#s-catselect .cat-sel.cat-primary:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(225, 187, 92, 0.68) !important;
  box-shadow: 0 30px 66px rgba(0, 0, 0, 0.39), 0 12px 26px rgba(213, 172, 72, 0.12) !important;
}

#s-catselect .cat-sel.cat-dev,
#s-catselect .cat-sel.locked-cat {
  opacity: 0.94 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  cursor: default !important;
}

#s-catselect .cat-sel.cat-dev:hover,
#s-catselect .cat-sel.locked-cat:hover {
  transform: none !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34) !important;
}

#s-catselect .cat-img,
#s-catselect .journey-card__image {
  position: relative !important;
  height: 248px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  background-color: #0d1120 !important;
}

#s-catselect .cat-img-media,
#s-catselect .cat-img-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.01) !important;
  transition: transform 0.24s ease !important;
}

#s-catselect .cat[data-cat="myth"] .cat-img-media,
#s-catselect .cat[data-cat="myth"] .cat-img-bg {
  object-position: center 46% !important;
  background-position: center 46% !important;
}

#s-catselect .cat[data-cat="battle"] .cat-img-media,
#s-catselect .cat[data-cat="battle"] .cat-img-bg {
  object-position: center 48% !important;
  background-position: center 48% !important;
}

#s-catselect .cat[data-cat="dynasty"] .cat-img-media,
#s-catselect .cat[data-cat="dynasty"] .cat-img-bg {
  object-position: center 46% !important;
  background-position: center 46% !important;
}

#s-catselect .cat[data-cat="myth"] .cat-img-bg { background-image: url("/static/assets/images/thumbnails/thumb-myth.webp") !important; }
#s-catselect .cat[data-cat="battle"] .cat-img-bg { background-image: url("/static/assets/images/thumbnails/thumb-battle.webp") !important; }
#s-catselect .cat[data-cat="dynasty"] .cat-img-bg { background-image: url("/static/assets/images/thumbnails/thumb-dynasty.webp") !important; }

#s-catselect .cat-primary:hover .cat-img-media,
#s-catselect .cat-primary:hover .cat-img-bg {
  transform: scale(1.03) !important;
}

#s-catselect .cat-dev .cat-img-media,
#s-catselect .cat-dev .cat-img-bg,
#s-catselect .locked-cat .cat-img-media,
#s-catselect .locked-cat .cat-img-bg {
  filter: saturate(0.92) brightness(0.86) !important;
}

#s-catselect .cat-img-ov {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0) 56%, rgba(7, 10, 18, 0.11) 76%, rgba(7, 10, 18, 0.58) 100%) !important;
}

#s-catselect .cat-dev .cat-img-ov,
#s-catselect .locked-cat .cat-img-ov {
  background: linear-gradient(180deg, rgba(7, 10, 18, 0) 56%, rgba(7, 10, 18, 0.15) 76%, rgba(7, 10, 18, 0.62) 100%) !important;
}

#s-catselect .cat-em,
#s-catselect .primary-badge,
#s-catselect .dev-badge,
#s-catselect .cat-locked-overlay {
  display: none !important;
}

#s-catselect .cat-meta,
#s-catselect .journey-card__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 14px 18px 0 !important;
  flex-shrink: 0 !important;
}

#s-catselect .cat-meta span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: rgba(236, 228, 214, 0.78) !important;
}

#s-catselect .cat-primary .cat-meta span {
  background: rgba(213, 172, 72, 0.10) !important;
  border-color: rgba(213, 172, 72, 0.20) !important;
  color: rgba(244, 224, 174, 0.90) !important;
}

#s-catselect .cat-foot,
#s-catselect .journey-card__body {
  padding: 10px 18px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#s-catselect .cat-name {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(26px, 2.15vw, 32px) !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  color: #f6efdf !important;
}

#s-catselect .cat-dev .cat-name,
#s-catselect .locked-cat .cat-name {
  color: rgba(244, 237, 226, 0.90) !important;
}

#s-catselect .cat-desc {
  margin: 0 !important;
  font-size: clamp(14px, 1vw, 15.5px) !important;
  font-weight: 400 !important;
  line-height: 1.52 !important;
  color: rgba(234, 226, 214, 0.80) !important;
  text-wrap: pretty !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

#s-catselect .cat-dev .cat-desc,
#s-catselect .locked-cat .cat-desc {
  color: rgba(230, 222, 210, 0.89) !important;
}

#s-catselect .cat-pill,
#s-catselect .journey-card__button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 4px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid transparent !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.3 !important;
  text-align: center !important;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}

#s-catselect .cat-primary .cat-pill {
  background: linear-gradient(180deg, #f2cf73 0%, #d7a63e 100%) !important;
  color: #241509 !important;
  border-color: rgba(242, 207, 115, 0.22) !important;
  box-shadow: 0 10px 22px rgba(190, 140, 34, 0.22) !important;
  cursor: pointer !important;
}

#s-catselect .cat-primary .cat-pill:hover {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, #f7d883 0%, #dda947 100%) !important;
  box-shadow: 0 12px 24px rgba(190, 140, 34, 0.26) !important;
}

#s-catselect .cat-primary .cat-pill:focus-visible {
  outline: 2px solid rgba(244, 224, 174, 0.88) !important;
  outline-offset: 3px !important;
}

#s-catselect .cat-dev .cat-pill,
#s-catselect .locked-cat .cat-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(240, 233, 221, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

#s-catselect .cat-status {
  white-space: normal !important;
}

#s-catselect .cat-pill::before,
#s-catselect .journey-card__button::before {
  content: none !important;
  display: none !important;
}

#s-catselect.active ~ #chatbot-btn,
body:has(#s-catselect.active) #chatbot-btn {
  display: none !important;
}

@media (max-width: 1100px) {
  #s-catselect .cats-select {
    max-width: 820px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #s-catselect .cat-sel,
  #s-catselect .journey-card {
    height: 496px !important;
  }
}

@media (max-width: 760px) {
  #s-catselect .topnav {
    padding: 0 16px !important;
  }

  #s-catselect .topnav > div:last-child {
    display: none !important;
  }

  #s-catselect .catselect-body {
    padding: 18px 16px 36px !important;
  }

  #s-catselect .catselect-title {
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }

  #s-catselect .catselect-sub {
    margin-bottom: 24px !important;
  }

  #s-catselect .cats-select {
    max-width: 420px !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #s-catselect .cat-sel,
  #s-catselect .journey-card {
    height: auto !important;
  }

  #s-catselect .cat-img,
  #s-catselect .journey-card__image {
    height: 220px !important;
  }

  #s-catselect .cat-foot,
  #s-catselect .journey-card__body {
    padding: 14px 18px 18px !important;
  }

  #s-catselect .cat-name {
    font-size: clamp(28px, 7vw, 32px) !important;
  }

  #s-catselect .cat-desc {
    -webkit-line-clamp: unset !important;
  }

  #s-catselect .cat-primary:hover {
    transform: none !important;
  }
}

@media (max-width: 480px) {
  #s-catselect .topnav {
    padding: 0 14px !important;
  }

  #s-catselect .cat-img,
  #s-catselect .journey-card__image {
    height: 210px !important;
  }

  #s-catselect .catselect-sub {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}