:root {
  --bg: #4e127f;
  --bg-dark: #3a0c66;
  --card: #68209f;
  --card-light: #8141b8;
  --text: #ffffff;
  --muted: #d4b3f0;
  --pink: #ff75c6;
  --blue: #88deff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: rgb(20, 20, 20);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

.page {
  width: min(100%, 390px);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 166px;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.35) 0%, rgba(20, 20, 20, 0.72) 100%),
    url("images/11f9e2a1-47bd-4a25-9eba-c7fba2dca629.webp") center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 6px;
  background: transparent;
}

.top-logo {
  width: min(68%, 250px);
  height: auto;
  display: block;
}

.hero {
  padding: 14px 14px 20px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1 {
  text-align: center;
  color: #ff9ad5;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
  text-shadow: 0 2px 0 #98287f, 0 0 10px rgba(255, 174, 229, 0.6);
}

.hero h2 {
  margin-top: 8px;
  text-align: center;
  font-size: 28px;
  color: #ffe5f5;
  text-shadow: 0 2px 0 #98348a;
}

.phone-frame {
  margin-top: 16px;
  border: 10px solid #ddd;
  border-radius: 26px;
  background: #201134;
  padding: 18px 12px 12px;
  position: relative;
  overflow: hidden;
}

.camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 16px;
  border-radius: 999px;
  background: #131313;
  box-shadow: inset 0 0 0 2px #2f2f2f;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tile {
  height: 102px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8345c1, #4e246f);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: #fbe9ff;
  font-size: 12px;
  font-weight: 700;
}

.tile-image-wrap {
  padding-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-title {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 42%;
  text-align: center;
  font-size: 44px;
  line-height: 1.08;
  color: #ffc6ea;
  font-weight: 900;
  text-shadow: 0 2px 0 #8b246b, 0 0 14px rgba(255, 198, 234, 0.62);
}

.cta-row {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 390px);
  z-index: 50;
  padding: 6px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(95, 23, 152, 0.1) 0%,
    rgba(79, 17, 130, 0.96) 32%,
    rgba(67, 11, 111, 0.98) 100%
  );
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-left {
  position: relative;
  padding-left: 4px;
}

.cta-main {
  font-size: 48px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -1px;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffe8ff 45%, #ffb4e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 189, 236, 0.75), 0 0 22px rgba(255, 146, 217, 0.55);
}

.heart {
  margin-left: 6px;
  font-size: 30px;
  color: #ffd5ea;
  vertical-align: middle;
  text-shadow: 0 0 10px rgba(255, 209, 236, 0.8);
}

.cta-sub {
  margin-top: 2px;
  font-size: 46px;
  line-height: 0.95;
  font-weight: 900;
  background-image: linear-gradient(180deg, #ffffff 0%, #e6f6ff 45%, #9fe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(178, 233, 255, 0.72), 0 0 22px rgba(123, 208, 255, 0.5);
}

.cta-line {
  position: absolute;
  left: 122px;
  bottom: -10px;
  width: 86px;
  height: 6px;
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
}

.cta-right {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-btn {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  border: 2px solid #a38a56;
  outline: 2px solid rgba(58, 31, 90, 0.9);
  outline-offset: -8px;
  background: radial-gradient(circle at 36% 25%, #4f2f86 0%, #2d1d55 62%, #251644 100%);
  box-shadow: 0 0 0 1px rgba(255, 246, 177, 0.42), 0 5px 10px rgba(0, 0, 0, 0.38);
  background: radial-gradient(circle at 36% 25%, #4f2f86 0%, #2d1d55 62%, #251644 100%);
  font-size: 24px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  position: relative;
  z-index: 2;
}

.round-btn-text {
  display: inline-block;
  background-image: linear-gradient(180deg, #fff7c8 0%, #ffddb1 50%, #ffd08f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 223, 158, 0.75));
  text-align: center;
}

.frame-v {
  position: absolute;
  right: 6px;
  top: 3px;
  width: 2px;
  height: 105px;
  background: rgba(255, 255, 255, 0.26);
}

.frame-h {
  position: absolute;
  right: 7px;
  bottom: 4px;
  width: 48px;
  height: 2px;
  background: rgba(255, 255, 255, 0.26);
}

.frame-corner {
  position: absolute;
  right: 3px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(255, 255, 255, 0.26);
  border-bottom: 2px solid rgba(255, 255, 255, 0.26);
}

.feature-slider {
  overflow: hidden;
  padding: 8px 14px 4px;
}

.feature-track {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: marquee 20s linear infinite;
}

.feature-card {
  width: 158px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
  background: #4f2f88;
  position: relative;
}

.feature-card.active {
  box-shadow: 0 8px 20px rgba(255, 163, 238, 0.3);
}

.feature-video {
  width: 100%;
  height: 252px;
  object-fit: cover;
  display: block;
  background: #2a184f;
  pointer-events: none;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.live-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(28, 28, 28, 0.74);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #11e46d;
  box-shadow: 0 0 8px rgba(17, 228, 109, 0.8);
}

.feature-meta {
  pointer-events: auto;
}

.profile-name {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.profile-age {
  color: rgba(255, 255, 255, 0.78);
}

.play-btn {
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #6e61ff 0%, #4f39d8 100%);
  box-shadow: 0 8px 18px rgba(63, 49, 172, 0.5);
}

.recommend {
  padding: 14px;
}

.recommend h3 {
  text-align: center;
  font-size: 56px;
  font-weight: 900;
  background-image: linear-gradient(90deg, #ffd8f2 0%, #ff8fd7 45%, #ffc0ea 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 14px rgba(255, 174, 235, 0.35);
  margin-bottom: 10px;
  animation: title-breath 1.4s ease-in-out infinite, title-gradient-snap 1s steps(1, end) infinite;
  transform-origin: center;
}

.game-card {
  display: grid;
  grid-template-columns: 102px 1fr 74px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(90deg, #8a3fc4, #65329a);
}

.thumb {
  height: 74px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f39ad9, #8f4bbf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.content {
  min-width: 0;
}

.game-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}

.game-desc {
  margin-top: 4px;
  color: #f2cdfb;
  font-size: 13px;
}

.small-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #9ce7ff, #4ea8e9);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 5px));
  }
}

@keyframes title-breath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes title-gradient-snap {
  0% {
    background-image: linear-gradient(90deg, #ffd8f2 0%, #ff8fd7 45%, #ffc0ea 100%);
  }
  50% {
    background-image: linear-gradient(90deg, #9ee6ff 0%, #73c4ff 45%, #c7a3ff 100%);
  }
  100% {
    background-image: linear-gradient(90deg, #ffd8f2 0%, #ff8fd7 45%, #ffc0ea 100%);
  }
}
