/* NANA_CUSTOMER_THEME_FLOW_LOCK_V5 */

/*
 * One stable UI contract per device family.
 * Primary navigation: #ch12-global-nav-12
 * Theme navigation:   #nana-action-nav (Livestream / Dance / Social)
 * Duplicate gate rail:#nana-gate-nav (hidden)
 */

html[data-nana-ui-lock="v5"] body {
  min-height: 100dvh !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

html[data-nana-ui-lock="v5"] #nana-customer-shell {
  display: block !important;
  min-height: 100dvh !important;
  visibility: visible !important;
  opacity: 1 !important;
}

html[data-nana-ui-lock="v5"] .nana-stage,
html[data-nana-ui-lock="v5"] #nana-shell-canvas {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* The nine-gate rail repeats destinations already present in the main dock. */
html[data-nana-ui-lock="v5"] #nana-gate-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html[data-nana-ui-lock="v5"] #nana-action-nav:empty {
  display: none !important;
}

html[data-nana-ui-lock="v5"] #ch12-global-nav-12,
html[data-nana-ui-lock="v5"] #nana-action-nav {
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-inline: contain !important;
  scroll-snap-type: x proximity !important;
  scroll-behavior: auto !important;
}

html[data-nana-ui-lock="v5"] #ch12-global-nav-12::-webkit-scrollbar,
html[data-nana-ui-lock="v5"] #nana-action-nav::-webkit-scrollbar {
  display: none !important;
}

html[data-nana-ui-lock="v5"] #ch12-global-nav-12 > *,
html[data-nana-ui-lock="v5"] #nana-action-nav > * {
  flex: 0 0 auto !important;
  scroll-snap-align: start !important;
}

/* Keep the older colored icon language and soften the newer heavy labels. */
html[data-nana-ui-lock="v5"] #ch12-global-nav-12 .nav12-icon {
  font-weight: 760 !important;
  filter: saturate(1.1) brightness(1.05) !important;
}

html[data-nana-ui-lock="v5"] #ch12-global-nav-12 .nav12-label {
  font-weight: 580 !important;
  letter-spacing: .012em !important;
}

html[data-nana-ui-lock="v5"] #ch12-global-nav-12 a[data-active="true"] .nav12-label {
  font-weight: 680 !important;
}

html[data-nana-ui-lock="v5"] #nana-action-nav {
  justify-content: center !important;
  gap: 5px !important;
  padding: 3px !important;
  border-color: rgba(247, 196, 81, .26) !important;
  background: rgba(8, 5, 12, .86) !important;
  backdrop-filter: blur(20px) saturate(135%) !important;
}

html[data-nana-ui-lock="v5"] #nana-action-nav > .nana-theme-link {
  flex: 1 1 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-width: 108px !important;
  min-height: 28px !important;
  padding: 0 15px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: rgba(255, 247, 232, .78) !important;
  text-decoration: none !important;
  font: 520 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: .02em !important;
  white-space: nowrap !important;
}

html[data-nana-ui-lock="v5"] #nana-action-nav > .nana-theme-link.is-active {
  color: #fff !important;
  border-color: rgba(247, 196, 81, .28) !important;
  background: linear-gradient(100deg, rgba(247, 196, 81, .24), rgba(159, 75, 229, .27)) !important;
  box-shadow: 0 0 18px rgba(172, 70, 221, .13) !important;
  font-weight: 640 !important;
}

html[data-nana-ui-lock="v5"] .nana-theme-icon {
  color: #f2bd52 !important;
  font-size: 13px !important;
  text-shadow: 0 0 12px currentColor !important;
}

/* Never leave the customer surface visually empty while the shell initializes. */
html[data-nana-ui-lock="v5"] #nana-shell-canvas:empty::before {
  content: "NANA GROUP";
  position: absolute;
  inset: 14% 8%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 196, 81, .22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 62% 42%, rgba(157, 67, 205, .2), transparent 36%),
    rgba(7, 4, 10, .78);
  color: rgba(255, 239, 206, .82);
  font: 500 clamp(13px, 2vw, 22px)/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .24em;
  box-shadow: inset 0 1px rgba(255, 255, 255, .03), 0 24px 70px rgba(0, 0, 0, .42);
}

html[data-nana-ui-lock="v5"] .nana-device-shell-fallback {
  left: 50% !important;
  top: 50% !important;
  display: block !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) !important;
}

html[data-nana-ui-lock="v5"] .nana-device-shell-fallback .nana-shell-copy {
  opacity: 1 !important;
  visibility: visible !important;
}

html[data-nana-ui-lock="v5"] .nana-device-shell-fallback a.nana-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

html[data-nana-ui-lock="v5"] #nana-shell-canvas[data-nana-gesture-lock="v5"] {
  touch-action: pan-y pinch-zoom !important;
  overscroll-behavior: contain !important;
}

/* ----------------------------- Web / macOS ----------------------------- */
html[data-nana-ui-profile="web"] .nana-stage {
  inset: 58px 0 148px !important;
}

html[data-nana-ui-profile="web"] #nana-action-nav {
  top: auto !important;
  bottom: calc(98px + var(--safe-bottom, 0px)) !important;
  left: 50% !important;
  right: auto !important;
  width: min(500px, calc(100vw - 32px)) !important;
  height: 36px !important;
  min-height: 36px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
}

html[data-nana-ui-profile="web"] #ch12-global-nav-12 {
  top: auto !important;
  bottom: calc(34px + var(--safe-bottom, 0px)) !important;
  left: 50% !important;
  right: auto !important;
  width: min(1200px, calc(100vw - 28px)) !important;
  height: 56px !important;
  min-height: 56px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
}

html[data-nana-ui-profile="web"] .nana-footer {
  bottom: 5px !important;
}

/* -------------------------------- iPhone ------------------------------- */
html[data-nana-ui-profile="iphone"] .nana-header {
  height: 52px !important;
  padding: 7px 12px !important;
}

html[data-nana-ui-profile="iphone"] #nana-action-nav {
  top: auto !important;
  bottom: calc(92px + var(--safe-bottom, 0px)) !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  transform: none !important;
  display: flex !important;
  padding: 2px !important;
  border-radius: 15px !important;
  background: rgba(8, 5, 12, .76) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28) !important;
}

html[data-nana-ui-profile="iphone"] #nana-action-nav > * {
  min-width: 82px !important;
  min-height: 28px !important;
  padding-inline: 13px !important;
}

html[data-nana-ui-profile="iphone"] .nana-stage {
  inset: 58px 0 calc(134px + var(--safe-bottom, 0px)) !important;
}

html[data-nana-ui-profile="iphone"] .nana-scene-shell {
  width: calc(100vw - 40px) !important;
  height: min(68vh, calc(100% - 18px)) !important;
  border-radius: 24px !important;
}

html[data-nana-ui-profile="iphone"] .nana-scene-shell[data-slot="active"] {
  transform: translate(-50%, -50%) scale(1) !important;
}

html[data-nana-ui-profile="iphone"] .nana-shell-copy {
  left: 24px !important;
  right: 20px !important;
  bottom: 52px !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
}

html[data-nana-ui-profile="iphone"] .nana-shell-copy h1 {
  font-size: clamp(38px, 12vw, 54px) !important;
  font-weight: 500 !important;
}

html[data-nana-ui-profile="iphone"] .nana-shell-copy h2 {
  font-weight: 420 !important;
}

html[data-nana-ui-profile="iphone"] #nana-customer-top-right.nana-customer-top-right {
  top: 100px !important;
  right: 9px !important;
  transform: scale(.88) !important;
  transform-origin: top right !important;
}

html[data-nana-ui-profile="iphone"] #ch12-global-nav-12 {
  top: auto !important;
  bottom: calc(27px + var(--safe-bottom, 0px)) !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  max-width: none !important;
  height: 58px !important;
  min-height: 58px !important;
  transform: none !important;
  display: flex !important;
  padding: 5px !important;
  border-radius: 18px !important;
}

html[data-nana-ui-profile="iphone"] #ch12-global-nav-12 > a,
html[data-nana-ui-profile="iphone"] #ch12-global-nav-12 > button {
  min-width: 84px !important;
  min-height: 46px !important;
  border-radius: 14px !important;
}

html[data-nana-ui-profile="iphone"] .nana-footer,
html[data-nana-ui-profile="iphone"] footer.nana-footer {
  position: fixed !important;
  z-index: 2147483001 !important;
  inset: auto 8px calc(2px + var(--safe-bottom, 0px)) 8px !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 22px !important;
  height: 22px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, transparent, rgba(2, 1, 3, .78)) !important;
  filter: none !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

html[data-nana-ui-profile="iphone"] .nana-footer > * {
  display: block !important;
  width: auto !important;
  height: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255, 244, 222, .78) !important;
  font-size: 5.8px !important;
  font-weight: 500 !important;
  line-height: 7px !important;
  letter-spacing: .035em !important;
}

html[data-nana-ui-profile="iphone"] .nana-footer > * + *::before {
  content: none !important;
  display: none !important;
}

/* --------------------------------- iPad -------------------------------- */
html[data-nana-ui-profile="ipad"] .nana-stage {
  inset: 58px 0 calc(146px + var(--safe-bottom, 0px)) !important;
}

html[data-nana-ui-profile="ipad"] #nana-action-nav {
  top: auto !important;
  bottom: calc(100px + var(--safe-bottom, 0px)) !important;
  left: 50% !important;
  right: auto !important;
  width: min(520px, calc(100vw - 32px)) !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
}

html[data-nana-ui-profile="ipad"] #ch12-global-nav-12 {
  top: auto !important;
  bottom: calc(36px + var(--safe-bottom, 0px)) !important;
  left: 16px !important;
  right: 16px !important;
  width: auto !important;
  max-width: none !important;
  height: 56px !important;
  min-height: 56px !important;
  transform: none !important;
  display: flex !important;
}

html[data-nana-ui-profile="ipad"] #ch12-global-nav-12 > a {
  min-width: 92px !important;
}

html[data-nana-ui-profile="ipad"] .nana-footer {
  left: 12px !important;
  right: 12px !important;
  bottom: calc(5px + var(--safe-bottom, 0px)) !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  justify-content: center !important;
  font-size: 7.5px !important;
}

/* ------------------------------- Apple TV ------------------------------ */
html[data-nana-ui-profile="appletv"] .nana-header {
  height: 82px !important;
  padding-inline: 54px !important;
}

html[data-nana-ui-profile="appletv"] .nana-brand-mark {
  width: 48px !important;
  height: 48px !important;
  font-size: 32px !important;
}

html[data-nana-ui-profile="appletv"] .nana-product-link {
  font-size: 17px !important;
}

html[data-nana-ui-profile="appletv"] .nana-stage {
  inset: 82px 0 206px !important;
}

html[data-nana-ui-profile="appletv"] #nana-action-nav {
  top: auto !important;
  bottom: 152px !important;
  left: 50% !important;
  right: auto !important;
  width: min(720px, calc(100vw - 96px)) !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
}

html[data-nana-ui-profile="appletv"] #nana-action-nav > * {
  min-width: 180px !important;
  min-height: 38px !important;
  font-size: 15px !important;
}

html[data-nana-ui-profile="appletv"] #ch12-global-nav-12 {
  top: auto !important;
  bottom: 58px !important;
  left: 50% !important;
  right: auto !important;
  width: min(92vw, 1700px) !important;
  max-width: none !important;
  height: 76px !important;
  min-height: 76px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  padding: 8px !important;
  border-radius: 24px !important;
}

html[data-nana-ui-profile="appletv"] #ch12-global-nav-12 > a {
  min-width: 146px !important;
  min-height: 58px !important;
}

html[data-nana-ui-profile="appletv"] #ch12-global-nav-12 .nav12-icon {
  width: 36px !important;
  height: 36px !important;
  flex-basis: 36px !important;
  font-size: 21px !important;
}

html[data-nana-ui-profile="appletv"] #ch12-global-nav-12 .nav12-label {
  font-size: 16px !important;
}

html[data-nana-ui-profile="appletv"] :is(a, button):focus-visible {
  outline: 4px solid #ffd36f !important;
  outline-offset: 4px !important;
  transform: scale(1.045) !important;
}

html[data-nana-ui-profile="appletv"] .nana-footer {
  bottom: 11px !important;
  font-size: 11px !important;
}

/* -------------------------------- Android ------------------------------ */
html[data-nana-ui-profile="android"] .nana-header {
  height: 54px !important;
  padding: 7px 12px !important;
}

html[data-nana-ui-profile="android"] #nana-action-nav {
  top: auto !important;
  bottom: calc(95px + var(--safe-bottom, 0px)) !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  max-width: none !important;
  height: 38px !important;
  min-height: 38px !important;
  transform: none !important;
  display: flex !important;
}

html[data-nana-ui-profile="android"] #nana-action-nav > * {
  min-width: 88px !important;
  min-height: 32px !important;
}

html[data-nana-ui-profile="android"] .nana-stage {
  inset: 60px 0 calc(141px + var(--safe-bottom, 0px)) !important;
}

html[data-nana-ui-profile="android"] .nana-scene-shell {
  width: calc(100vw - 32px) !important;
  height: min(68vh, calc(100% - 16px)) !important;
}

html[data-nana-ui-profile="android"] .nana-scene-shell[data-slot="active"] {
  transform: translate(-50%, -50%) scale(1) !important;
}

html[data-nana-ui-profile="android"] .nana-shell-copy {
  left: 24px !important;
  right: 20px !important;
  bottom: 52px !important;
  top: auto !important;
  width: auto !important;
  transform: none !important;
}

html[data-nana-ui-profile="android"] #nana-customer-top-right.nana-customer-top-right {
  top: 106px !important;
  right: 9px !important;
  transform: scale(.9) !important;
  transform-origin: top right !important;
}

html[data-nana-ui-profile="android"] #ch12-global-nav-12 {
  top: auto !important;
  bottom: calc(28px + var(--safe-bottom, 0px)) !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  max-width: none !important;
  height: 60px !important;
  min-height: 60px !important;
  transform: none !important;
  display: flex !important;
  padding: 5px !important;
  border-radius: 18px !important;
}

html[data-nana-ui-profile="android"] #ch12-global-nav-12 > a {
  min-width: 88px !important;
  min-height: 48px !important;
}

html[data-nana-ui-profile="android"] .nana-footer {
  left: 8px !important;
  right: 8px !important;
  bottom: calc(3px + var(--safe-bottom, 0px)) !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  height: 22px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  font-size: 5.8px !important;
  line-height: 7px !important;
  overflow: hidden !important;
}

html[data-nana-ui-profile="android"] .nana-footer > * {
  display: block !important;
  height: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 5.8px !important;
  font-weight: 500 !important;
  line-height: 7px !important;
}

html[data-nana-ui-profile="android"] .nana-footer > * + *::before {
  content: none !important;
  display: none !important;
}

/* Android tablets use the roomy composition while keeping Android controls. */
@media (min-width: 700px) {
  html[data-nana-ui-profile="android"] .nana-stage {
    inset: 58px 0 calc(146px + var(--safe-bottom, 0px)) !important;
  }

  html[data-nana-ui-profile="android"] #nana-action-nav {
    top: auto !important;
    bottom: calc(100px + var(--safe-bottom, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    width: min(520px, calc(100vw - 32px)) !important;
    transform: translateX(-50%) !important;
  }

  html[data-nana-ui-profile="android"] #ch12-global-nav-12 {
    bottom: calc(36px + var(--safe-bottom, 0px)) !important;
    left: 16px !important;
    right: 16px !important;
  }

  html[data-nana-ui-profile="android"] .nana-footer {
    display: flex !important;
    height: auto !important;
    justify-content: center !important;
    font-size: 7.5px !important;
  }

  html[data-nana-ui-profile="android"] .nana-footer > * {
    display: inline-flex !important;
    height: auto !important;
    padding: 0 8px !important;
    font-size: inherit !important;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  html[data-nana-ui-profile="iphone"] .nana-stage,
  html[data-nana-ui-profile="android"] .nana-stage {
    top: 54px !important;
    bottom: calc(126px + var(--safe-bottom, 0px)) !important;
  }

  html[data-nana-ui-profile="iphone"] .nana-shell-copy,
  html[data-nana-ui-profile="android"] .nana-shell-copy {
    bottom: 24px !important;
  }

  html[data-nana-ui-profile="iphone"] .nana-shell-copy p,
  html[data-nana-ui-profile="android"] .nana-shell-copy p {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-nana-ui-lock="v5"] *,
  html[data-nana-ui-lock="v5"] *::before,
  html[data-nana-ui-lock="v5"] *::after {
    scroll-behavior: auto !important;
  }
}
