/* V98 — Explore overlay on exact #/activity (Hot Event layout) */

html.co-explore-open,
html.co-explore-open body {
  overflow: hidden;
}

html.co-explore-open #app {
  visibility: hidden !important;
  z-index: 120 !important;
  pointer-events: none !important;
}
html.co-explore-open .tabbar__container,
html.co-explore-open #app .tabbar__container {
  visibility: visible !important;
  z-index: 121 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
html.co-explore-open .tabbar__container-item,
html.co-explore-open .tabbar__container .turntableBg,
html.co-explore-open .tabbar__container .v83-spin-wrap,
html.co-explore-open .tabbar__container .v83-spin-disc {
  overflow: visible !important;
}
html.co-explore-open .tabbar__container-item:nth-of-type(3),
html.co-explore-open .tabbar__container [data-v83-key="turntable"] {
  z-index: 122 !important;
}

.co-ex {
  --explore-bg: #1a201e;
  --explore-header: #27312f;
  --explore-card: #303936;
  --explore-card-inner: #3e4845;
  --explore-card-dark: #252d2a;
  --explore-primary: #f1f4f2;
  --explore-secondary: #c0cac5;
  --explore-muted: #919d98;
  --explore-emerald: #27e68b;
  --explore-emerald-soft: rgba(39, 230, 139, 0.18);
  --explore-gold: #d9bc59;
  --explore-border: rgba(235, 244, 239, 0.08);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 10rem;
  height: calc(100% - 1.72rem);
  height: calc(100dvh - 1.72rem - env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  background: var(--explore-bg);
  color: var(--explore-primary);
  font-family: inherit;
  overflow: hidden;
}

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

.co-ex__header {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 0.85333rem 1fr 0.85333rem;
  align-items: center;
  height: 1.17333rem;
  padding: 0 0.32rem;
  background: var(--explore-header);
}

.co-ex__title {
  text-align: center;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--explore-primary);
}

.co-ex__feature {
  margin: 0;
}

.co-ex__section-title {
  margin: 0.36rem 0.32rem 0.2rem;
  padding: 0;
  font-size: 0.4rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--explore-primary);
}

.co-ex__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 0.56rem;
}

@keyframes co-ex-hero-in {
  from { opacity: 0; transform: translateX(0.18rem); }
  to { opacity: 1; transform: translateX(0); }
}

.co-ex__hero {
  position: relative;
  display: block;
  min-height: 3.84rem;
  height: 3.84rem;
  margin: 0.32rem 0.32rem 0;
  padding: 0.4rem 4.26667rem 0.4rem 0.4rem;
  overflow: hidden;
  border: 1px solid var(--explore-border);
  border-radius: 0.42667rem;
  background: var(--explore-card);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: co-ex-hero-in 0.45s ease both;
}

.co-ex__hero--banner {
  width: calc(100% - 0.64rem);
  height: auto;
  min-height: 0;
  padding: 0;
  background: var(--explore-card);
}

.co-ex__hero--banner::after {
  display: none;
}

.co-ex__hero-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
  object-position: center 30%;
  background: var(--explore-card);
}

.co-ex__hero--invite {
  background:
    radial-gradient(circle at 86% 50%, rgba(39, 230, 139, 0.14), transparent 38%),
    linear-gradient(135deg, #2c3532 0%, #1f2624 100%);
}

.co-ex__hero--rewards {
  animation-delay: 0.08s;
  background:
    radial-gradient(circle at 86% 50%, rgba(39, 230, 139, 0.10), transparent 40%),
    linear-gradient(135deg, #2c3532 0%, #1f2624 100%);
}

.co-ex__hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(31, 38, 36, 0.92) 0%, rgba(31, 38, 36, 0.55) 62%, rgba(31, 38, 36, 0) 100%);
}

.co-ex__hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-width: 0;
}

.co-ex__hero-title {
  display: block;
  font-size: 0.45333rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--explore-primary);
}

.co-ex__hero-sub {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.29333rem;
  line-height: 1.35;
  color: var(--explore-secondary);
}

.co-ex__hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.08rem;
  margin-top: 0.2rem;
  font-size: 0.29333rem;
  font-weight: 800;
  color: var(--explore-emerald);
}

.co-ex__hero-cta svg {
  width: 0.32rem;
  height: 0.32rem;
  display: block;
}

.co-ex__hero-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 4.26667rem;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.co-ex__hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 84% 48%;
  transform: scale(1.12);
  transform-origin: 82% 50%;
}

.co-ex__hero--invite .co-ex__hero-photo {
  object-position: 85% 46%;
}

.co-ex__hero--rewards .co-ex__hero-photo {
  object-position: 87% 48%;
}

.co-ex__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  margin: 0.32rem 0.32rem 0;
  border-bottom: 1px solid rgba(235, 244, 239, 0.09);
}

.co-ex__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18667rem;
  min-height: 1.06667rem;
  padding: 0 0.12rem;
  border: 0;
  background: transparent;
  color: #89948f;
  font-size: 0.32rem;
  font-weight: 730;
  cursor: pointer;
}

.co-ex__tab-icon {
  width: 0.4rem;
  height: 0.4rem;
  flex: 0 0 0.4rem;
  display: block;
  stroke: currentColor;
}

.co-ex__tab.is-on {
  color: var(--explore-primary);
}

.co-ex__tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--explore-emerald);
  box-shadow: none;
}

.co-ex__list {
  display: flex;
  flex-direction: column;
  gap: 0.26667rem;
  padding: 0.26667rem 0.32rem 0.56rem;
}

.co-ex__promo,
.co-promotion-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--explore-border);
  border-radius: 0.32rem;
  overflow: hidden;
  background: var(--explore-card);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.co-ex__promo-banner,
.co-promotion-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
  background: var(--explore-card);
}

.co-ex__promo-banner img,
.co-promotion-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.co-ex__promo-banner img.is-off { display: none; }

.co-ex__promo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.32rem;
  background:
    radial-gradient(circle at 88% 20%, var(--explore-emerald-soft), transparent 46%),
    linear-gradient(135deg, #2a3431 0%, #1e2624 100%);
}

.co-ex__promo-banner.is-fallback .co-ex__promo-fallback { display: flex; }

.co-ex__promo-fallback-copy {
  max-width: 64%;
  font-size: 0.34667rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--explore-primary);
}

.co-ex__promo-fallback svg {
  width: 2.13rem;
  height: 2.13rem;
  flex: none;
}

.co-ex__promo-row,
.co-promotion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.26667rem;
  min-height: 1.14667rem;
  height: 1.14667rem;
  padding: 0 0.26667rem;
  background: var(--explore-card-dark);
}

.co-ex__promo-title,
.co-promotion-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.32rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--explore-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co-ex__pill,
.co-promotion-status {
  flex: 0 0 auto;
  padding: 0.16rem 0.26667rem;
  border: 1px solid rgba(39, 230, 139, 0.28);
  border-radius: 0.18667rem;
  background: rgba(39, 230, 139, 0.09);
  color: var(--explore-emerald);
  font-size: 0.26667rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.co-ex__pill.is-ended {
  border-color: rgba(145, 157, 152, 0.35);
  background: rgba(145, 157, 152, 0.08);
  color: var(--explore-muted);
}

.co-ex__state {
  padding: 1.2rem 0.4rem;
  text-align: center;
  color: var(--explore-secondary);
  font-size: 0.34667rem;
  line-height: 1.45;
}

.co-ex__state-title {
  display: block;
  margin-bottom: 0.12rem;
  font-size: 0.4rem;
  font-weight: 800;
  color: var(--explore-primary);
}

.co-ex__retry {
  margin-top: 0.32rem;
  height: 0.88rem;
  padding: 0 0.48rem;
  border: 0;
  border-radius: 0.16rem;
  background: var(--explore-card);
  color: var(--explore-primary);
  font-size: 0.34667rem;
  font-weight: 800;
  cursor: pointer;
}
