/* Yingju Home V2: full homepage redesign layer, not a theme-only patch. */
body.home-page.yj-home-v2 {
  --v2-bg: var(--background, #080706);
  --v2-surface: var(--surface, rgba(24, 21, 20, .72));
  --v2-surface-strong: var(--surfaceElevated, rgba(38, 32, 30, .86));
  --v2-text: var(--textPrimary, #f8efe6);
  --v2-muted: var(--textSecondary, #b9aaa0);
  --v2-accent: var(--accent, #c04835);
  --v2-accent-soft: var(--accentSoft, rgba(192, 72, 53, .18));
  --v2-border: var(--border, rgba(248, 239, 230, .14));
  --v2-success: var(--success, #45b787);
  background:
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--v2-accent) 24%, transparent), transparent 34rem),
    radial-gradient(circle at 12% 18%, rgba(69, 183, 135, .14), transparent 32rem),
    linear-gradient(180deg, color-mix(in srgb, var(--v2-bg) 92%, white 4%) 0%, var(--v2-bg) 46%, #040403 100%) !important;
}

body.home-page.yj-home-v2 .page-bg-gradient {
  background: transparent !important;
}

body.home-page.yj-home-v2 .container {
  width: min(1240px, calc(100% - 48px)) !important;
}

/* Navigation */
body.home-page.yj-home-v2 .navbar {
  top: 24px !important;
  width: min(1280px, calc(100% - 48px)) !important;
  height: 64px !important;
  margin: 0 auto !important;
  border-radius: 22px !important;
  border: 1px solid var(--v2-border) !important;
  background: color-mix(in srgb, var(--v2-surface-strong) 74%, transparent) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(24px) saturate(1.08);
}

body.home-page.yj-home-v2 .navbar .container {
  width: 100% !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 0 18px !important;
}

body.home-page.yj-home-v2 .navbar-logo {
  gap: 12px !important;
  min-width: 142px !important;
}

body.home-page.yj-home-v2 .navbar-logo-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .navbar-logo h1 {
  font-size: 20px !important;
  letter-spacing: 0 !important;
}

body.home-page.yj-home-v2 .navbar-categories {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

body.home-page.yj-home-v2 .nav-category[data-channel="all"],
body.home-page.yj-home-v2 .nav-category.is-v2-hidden {
  display: none !important;
}

body.home-page.yj-home-v2 .nav-category {
  min-width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--v2-muted) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  transition: color .18s ease;
}

body.home-page.yj-home-v2 .nav-category:hover,
body.home-page.yj-home-v2 .nav-category.active:not([data-channel="all"]) {
  color: var(--v2-text) !important;
}

body.home-page.yj-home-v2 .navbar-search {
  flex: 0 0 300px !important;
  width: 300px !important;
  height: 40px !important;
  margin-left: auto !important;
  border: 1px solid color-mix(in srgb, var(--v2-border) 100%, transparent) !important;
  border-radius: 13px !important;
  background: color-mix(in srgb, var(--v2-bg) 58%, transparent) !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .navbar-search input {
  height: 38px !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .search-btn {
  width: 40px !important;
  height: 38px !important;
  color: var(--v2-accent) !important;
}

body.home-page.yj-home-v2 .navbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding-right: 0 !important;
}

body.home-page.yj-home-v2 .nav-action-btn,
body.home-page.yj-home-v2 .codex-theme-trigger.is-inline,
body.home-page.yj-home-v2 .yj-login-entry {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--v2-border) !important;
  background: color-mix(in srgb, var(--v2-surface-strong) 78%, transparent) !important;
  color: var(--v2-text) !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .codex-theme-trigger.is-inline {
  width: auto !important;
  min-width: 66px !important;
  gap: 6px !important;
  padding: 0 12px !important;
}

body.home-page.yj-home-v2 .yj-login-entry {
  width: 54px !important;
  border: 0 !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 92%, white 8%), var(--v2-accent)) !important;
  color: var(--buttonTextOnAccent, #fff8f0) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* Hero */
body.home-page.yj-home-v2 .hero-section {
  min-height: 720px !important;
  padding-top: 0 !important;
  background: transparent !important;
  border-bottom: 1px solid color-mix(in srgb, var(--v2-border) 64%, transparent);
  overflow: hidden !important;
}

body.home-page.yj-home-v2 .hero-slide-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: saturate(1.02) contrast(1.04) brightness(.78) !important;
}

body.home-page.yj-home-v2 .hero-slide::after {
  background:
    linear-gradient(90deg, rgba(3, 4, 3, .94) 0%, rgba(3, 4, 3, .78) 31%, rgba(3, 4, 3, .36) 58%, rgba(3, 4, 3, .08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .18) 52%, var(--v2-bg) 100%) !important;
}

body.home-page.yj-home-v2 .hero-inner {
  width: min(1240px, calc(100% - 48px)) !important;
  min-height: 720px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 138px 0 98px !important;
}

body.home-page.yj-home-v2 .hero-copy {
  position: relative !important;
  z-index: 5 !important;
  isolation: isolate !important;
  max-width: 710px !important;
  padding: 28px 0 38px !important;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .42) !important;
}

body.home-page.yj-home-v2 .hero-copy::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: -72px -150px -76px -132px !important;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .50) 46%, rgba(0, 0, 0, .14) 82%, transparent 100%) !important;
  pointer-events: none !important;
}

body.home-page.yj-home-v2 .hero-copy::after {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: -132px !important;
  right: -40px !important;
  bottom: -78px !important;
  height: 1px !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--v2-accent) 58%, transparent), transparent 72%) !important;
  opacity: .64 !important;
  pointer-events: none !important;
}

body.home-page.yj-home-v2 .hero-kicker {
  min-height: 32px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--v2-success) 16%, transparent) !important;
  border-color: color-mix(in srgb, var(--v2-success) 34%, transparent) !important;
  color: var(--v2-success) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body.home-page.yj-home-v2 .hero-title {
  max-width: 680px !important;
  margin-top: 24px !important;
  font-size: clamp(58px, 6.6vw, 88px) !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body.home-page.yj-home-v2 .hero-description {
  max-width: 590px !important;
  margin-top: 24px !important;
  color: var(--v2-muted) !important;
  font-size: 18px !important;
  line-height: 1.72 !important;
  -webkit-line-clamp: 2 !important;
}

body.home-page.yj-home-v2 .hero-actions {
  margin-top: 32px !important;
}

body.home-page.yj-home-v2 .hero-cta-primary {
  height: 48px !important;
  min-width: 148px !important;
  padding: 0 24px !important;
  border-radius: 12px !important;
}

body.home-page.yj-home-v2 .hero-thumbs {
  display: none !important;
}

body.home-page.yj-home-v2 .hero-controls {
  right: max(24px, calc((100vw - 1240px) / 2)) !important;
  bottom: 56px !important;
}

body.home-page.yj-home-v2 .hero-progress {
  left: max(24px, calc((100vw - 1240px) / 2)) !important;
  bottom: 76px !important;
  width: 420px !important;
  transform: none !important;
}

body.home-page.yj-home-v2 .hero-dots {
  left: calc(max(24px, (100vw - 1240px) / 2) + 440px) !important;
  bottom: 68px !important;
  transform: none !important;
}

.yj-hero-poster-card {
  display: none !important;
  position: relative;
  z-index: 4;
  justify-self: end;
  width: 245px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 52%, transparent);
  border-radius: 22px;
  background: var(--v2-surface-strong);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .46);
}

.yj-hero-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}

.yj-hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .78));
}

.yj-hero-poster-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.yj-hero-poster-copy strong {
  display: block;
  color: var(--v2-text);
  font-size: 19px;
  line-height: 1.22;
}

.yj-hero-poster-copy span {
  display: block;
  margin-top: 7px;
  color: var(--v2-muted);
  font-size: 12px;
}

/* Status + entries */
body.home-page.yj-home-v2 .resource-radar-section {
  margin-top: -38px !important;
  padding: 0 0 34px !important;
  background: transparent !important;
  border: 0 !important;
}

body.home-page.yj-home-v2 .resource-radar-wrap {
  padding: 18px 22px !important;
  border-radius: 18px !important;
  border: 1px solid var(--v2-border) !important;
  background: color-mix(in srgb, var(--v2-surface-strong) 78%, transparent) !important;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .3) !important;
}

body.home-page.yj-home-v2 .resource-radar-title {
  font-size: 22px !important;
}

body.home-page.yj-home-v2 .resource-radar-note {
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .resource-radar-actions {
  gap: 10px !important;
}

body.home-page.yj-home-v2 .resource-radar-btn {
  min-height: 40px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .shared-entry-section {
  padding: 8px 0 42px !important;
  background: transparent !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-card {
  min-height: 78px !important;
  padding: 18px !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, var(--v2-surface) 86%, transparent) !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
}

/* Sections */
body.home-page.yj-home-v2 .home-section-panel {
  padding: 42px 0 58px !important;
  border-top: 0 !important;
  background: transparent !important;
}

body.home-page.yj-home-v2 .home-section-header {
  min-height: auto !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .section-title {
  font-size: clamp(30px, 3.4vw, 42px) !important;
  letter-spacing: 0 !important;
}

body.home-page.yj-home-v2 .section-desc {
  max-width: 620px !important;
  font-size: 15px !important;
}

body.home-page.yj-home-v2 .section-actions .btn {
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
}

/* Featured posters */
body.home-page.yj-home-v2 #moviesSection .movie-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  overflow: visible !important;
}

body.home-page.yj-home-v2 #moviesSection .movie-card,
body.home-page.yj-home-v2 #recommendSection .recommend-card {
  min-height: auto !important;
  border-radius: 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 #moviesSection .movie-cover-wrap {
  aspect-ratio: 2 / 3 !important;
  height: auto !important;
  border-radius: 18px !important;
  border: 1px solid var(--v2-border) !important;
  background: linear-gradient(160deg, var(--v2-accent-soft), transparent), var(--v2-surface-strong) !important;
}

body.home-page.yj-home-v2 #moviesSection .movie-info {
  padding: 12px 2px 0 !important;
  background: transparent !important;
}

body.home-page.yj-home-v2 #moviesSection .movie-title {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

body.home-page.yj-home-v2 #moviesSection .movie-get-btn {
  display: none !important;
}

/* Recent updates: compact horizontal cards */
body.home-page.yj-home-v2 .latest-update-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.home-page.yj-home-v2 .latest-update-card {
  min-height: 128px !important;
  padding: 14px !important;
  grid-template-columns: 80px minmax(0, 1fr) 14px !important;
  gap: 14px !important;
  border-radius: 16px !important;
  border: 1px solid var(--v2-border) !important;
  background: color-mix(in srgb, var(--v2-surface) 84%, transparent) !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .latest-index-cover,
body.home-page.yj-home-v2 .latest-index-cover img {
  width: 80px !important;
  height: 120px !important;
  border-radius: 12px !important;
  aspect-ratio: 2 / 3 !important;
}

body.home-page.yj-home-v2 .latest-index-body h4 {
  font-size: 17px !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 2 !important;
}

body.home-page.yj-home-v2 .latest-update-note,
body.home-page.yj-home-v2 .latest-update-meta {
  font-size: 13px !important;
}

/* Guess you like: compact poster wall */
body.home-page.yj-home-v2 #recommendSection .recommend-scroll {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 18px !important;
  overflow: visible !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-showcase-cover {
  aspect-ratio: 2 / 3 !important;
  min-height: 0 !important;
  border-radius: 18px !important;
  border: 1px solid var(--v2-border) !important;
  overflow: hidden !important;
  background: linear-gradient(160deg, var(--v2-accent-soft), transparent), var(--v2-surface-strong) !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-showcase-info {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-title {
  font-size: 15px !important;
  line-height: 1.35 !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-meta,
body.home-page.yj-home-v2 #recommendSection .recommend-reason {
  font-size: 12px !important;
}

/* Keep collections but align style */
body.home-page.yj-home-v2 #collectionsSection .rail-grid {
  gap: 16px !important;
}

body.home-page.yj-home-v2 #curatedSection {
  display: none !important;
}

/* Better placeholder than grey block */
body.home-page.yj-home-v2 img[src$="default.jpg"],
body.home-page.yj-home-v2 img[src="/images/default.jpg"] {
  background:
    radial-gradient(circle at 78% 14%, color-mix(in srgb, var(--v2-accent) 38%, transparent), transparent 4rem),
    linear-gradient(160deg, color-mix(in srgb, var(--v2-surface-strong) 92%, white 6%), var(--v2-bg)) !important;
}

@media (max-width: 1100px) {
  body.home-page.yj-home-v2 .navbar-search { flex-basis: 220px !important; width: 220px !important; }
  body.home-page.yj-home-v2 .navbar-categories { gap: 16px !important; }
  body.home-page.yj-home-v2 #moviesSection .movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.home-page.yj-home-v2 #recommendSection .recommend-scroll { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.home-page.yj-home-v2 .latest-update-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
  body.home-page.yj-home-v2 .container { width: calc(100% - 28px) !important; }
  body.home-page.yj-home-v2 .navbar {
    top: 14px !important;
    width: calc(100% - 28px) !important;
    height: 56px !important;
    border-radius: 18px !important;
  }
  body.home-page.yj-home-v2 .navbar .container {
    height: 56px !important;
    gap: 10px !important;
    padding: 0 12px !important;
  }
  body.home-page.yj-home-v2 .navbar-logo { min-width: auto !important; }
  body.home-page.yj-home-v2 .navbar-logo h1 { font-size: 17px !important; }
  body.home-page.yj-home-v2 .navbar-categories {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    top: 78px !important;
    overflow-x: auto !important;
    gap: 18px !important;
    padding: 0 4px 8px !important;
  }
  body.home-page.yj-home-v2 .navbar-search {
    display: none !important;
  }
  body.home-page.yj-home-v2 .nav-action-btn:nth-child(n+2),
  body.home-page.yj-home-v2 .codex-theme-trigger.is-inline {
    display: none !important;
  }
  body.home-page.yj-home-v2 .yj-login-entry {
    width: 48px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
  body.home-page.yj-home-v2 .hero-section { min-height: 680px !important; }
  body.home-page.yj-home-v2 .hero-inner {
    min-height: 680px !important;
    display: flex !important;
    padding: 134px 0 72px !important;
  }
  body.home-page.yj-home-v2 .hero-copy {
    max-width: 100% !important;
    padding: 18px 0 26px !important;
  }
  body.home-page.yj-home-v2 .hero-copy::before {
    inset: -56px -44px -64px -42px !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .62) 58%, rgba(0, 0, 0, .18) 100%) !important;
  }
  body.home-page.yj-home-v2 .hero-title { font-size: 42px !important; }
  body.home-page.yj-home-v2 .hero-description { font-size: 15px !important; }
  .yj-hero-poster-card {
    display: none !important;
  }
  body.home-page.yj-home-v2 .hero-progress,
  body.home-page.yj-home-v2 .hero-dots,
  body.home-page.yj-home-v2 .hero-controls {
    display: none !important;
  }
  body.home-page.yj-home-v2 .shared-entry-section .home-entry-grid,
  body.home-page.yj-home-v2 .latest-update-grid {
    grid-template-columns: 1fr !important;
  }
  body.home-page.yj-home-v2 #moviesSection .movie-grid,
  body.home-page.yj-home-v2 #recommendSection .recommend-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  body.home-page.yj-home-v2 .latest-update-card {
    grid-template-columns: 72px minmax(0, 1fr) 10px !important;
  }
  body.home-page.yj-home-v2 .latest-index-cover,
  body.home-page.yj-home-v2 .latest-index-cover img {
    width: 72px !important;
    height: 108px !important;
  }
}
/* Atmosphere V3: layered gradients, editorial updates, and auto poster shelf */
body.home-page.yj-home-v2 {
  --v2-bg-gradient: var(--bgGradient, radial-gradient(circle at 76% -12%, rgba(126, 83, 42, .26), transparent 34rem), radial-gradient(circle at 8% 16%, rgba(34, 99, 72, .22), transparent 32rem), linear-gradient(180deg, #050706 0%, #07110e 48%, #030302 100%));
  --v2-section-gradient: var(--sectionGradient, linear-gradient(135deg, rgba(13, 27, 22, .78) 0%, rgba(7, 9, 8, .48) 56%, rgba(54, 25, 17, .28) 100%));
  --v2-surface-gradient: var(--surfaceGradient, linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 42%, rgba(0, 0, 0, .18)));
  --v2-button-gradient: var(--buttonGradient, linear-gradient(135deg, #f0c96f 0%, #c9922e 100%));
  --v2-poster-fallback-gradient: var(--posterFallbackGradient, linear-gradient(180deg, #111826 0%, #11151d 56%, #050607 100%));
  --v2-shadow-color: var(--shadowColor, rgba(0, 0, 0, .42));
  background: var(--v2-bg-gradient) !important;
}

body.home-page.yj-home-v2 .hero-cta-primary,
body.home-page.yj-home-v2 .resource-radar-btn.is-primary,
body.home-page.yj-home-v2 .yj-login-entry {
  background: var(--v2-button-gradient) !important;
}

body.home-page.yj-home-v2 .home-section-panel {
  position: relative !important;
}

body.home-page.yj-home-v2 #latestSection,
body.home-page.yj-home-v2 #recommendSection {
  isolation: isolate !important;
  overflow: hidden !important;
}

body.home-page.yj-home-v2 #latestSection::before,
body.home-page.yj-home-v2 #recommendSection::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  inset: 22px max(16px, calc((100vw - 1320px) / 2)) 18px !important;
  border: 1px solid color-mix(in srgb, var(--v2-border) 76%, transparent) !important;
  border-radius: 26px !important;
  background: var(--v2-section-gradient) !important;
  box-shadow: 0 30px 110px var(--v2-shadow-color) !important;
  opacity: .74 !important;
}

body.home-page.yj-home-v2 #latestSection .home-section-header,
body.home-page.yj-home-v2 #recommendSection .home-section-header {
  margin-bottom: 28px !important;
}

body.home-page.yj-home-v2 #latestSection .section-title,
body.home-page.yj-home-v2 #recommendSection .section-title {
  font-size: clamp(34px, 4vw, 56px) !important;
}

body.home-page.yj-home-v2 #latestSection .section-actions .btn,
body.home-page.yj-home-v2 #recommendSection .section-actions .btn {
  border-color: color-mix(in srgb, var(--v2-border) 92%, transparent) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--v2-surface-strong) 78%, transparent), color-mix(in srgb, var(--v2-bg) 62%, transparent)) !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .latest-update-grid {
  grid-template-columns: minmax(380px, .92fr) repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 112px !important;
  align-items: stretch !important;
  gap: 16px !important;
}

body.home-page.yj-home-v2 .latest-update-card {
  position: relative !important;
  min-height: 112px !important;
  padding: 12px !important;
  grid-template-columns: 64px minmax(0, 1fr) 10px !important;
  gap: 13px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid color-mix(in srgb, var(--v2-border) 88%, transparent) !important;
  background: var(--v2-surface-gradient), color-mix(in srgb, var(--v2-surface) 70%, transparent) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .16) !important;
  transition: transform .22s ease, border-color .22s ease, background .22s ease !important;
}

body.home-page.yj-home-v2 .latest-update-card:hover {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--v2-accent) 46%, var(--v2-border)) !important;
}

body.home-page.yj-home-v2 .latest-update-card:first-child {
  grid-row: span 3 !important;
  min-height: 368px !important;
  padding: 18px !important;
  grid-template-columns: minmax(142px, 40%) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: end !important;
  border-color: color-mix(in srgb, var(--v2-accent) 36%, var(--v2-border)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 18%, transparent), transparent 44%),
    var(--v2-surface-gradient),
    color-mix(in srgb, var(--v2-bg) 74%, transparent) !important;
}

body.home-page.yj-home-v2 .latest-update-card:first-child::before {
  content: "今日重点" !important;
  position: absolute !important;
  left: 18px !important;
  top: 18px !important;
  z-index: 3 !important;
  height: 26px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 42%, transparent) !important;
  background: color-mix(in srgb, var(--v2-bg) 58%, transparent) !important;
  color: var(--v2-accent) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

body.home-page.yj-home-v2 .latest-update-card:first-child .latest-index-cover,
body.home-page.yj-home-v2 .latest-update-card:first-child .latest-index-cover img {
  width: 100% !important;
  height: auto !important;
  min-height: 240px !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 16px !important;
}

body.home-page.yj-home-v2 .latest-update-card:not(:first-child) .latest-index-cover,
body.home-page.yj-home-v2 .latest-update-card:not(:first-child) .latest-index-cover img {
  width: 64px !important;
  height: 96px !important;
  border-radius: 11px !important;
}

body.home-page.yj-home-v2 .latest-index-cover img,
body.home-page.yj-home-v2 .recommend-cover,
body.home-page.yj-home-v2 .movie-cover,
body.home-page.yj-home-v2 img[src$="default.jpg"],
body.home-page.yj-home-v2 img[src="/images/default.jpg"] {
  background: var(--v2-poster-fallback-gradient) !important;
}

body.home-page.yj-home-v2 .latest-index-body h4 {
  font-size: 18px !important;
  line-height: 1.32 !important;
}

body.home-page.yj-home-v2 .latest-update-card:first-child .latest-index-body h4 {
  font-size: clamp(24px, 2.2vw, 34px) !important;
  -webkit-line-clamp: 3 !important;
}

body.home-page.yj-home-v2 .latest-update-tag {
  background: color-mix(in srgb, var(--v2-accent) 18%, transparent) !important;
  border-color: color-mix(in srgb, var(--v2-accent) 44%, transparent) !important;
  color: color-mix(in srgb, var(--v2-accent) 70%, white 20%) !important;
}

body.home-page.yj-home-v2 #recommendSection .container {
  position: relative !important;
}

body.home-page.yj-home-v2 #recommendSection .container::before,
body.home-page.yj-home-v2 #recommendSection .container::after {
  content: "" !important;
  position: absolute !important;
  z-index: 4 !important;
  top: 116px !important;
  bottom: 22px !important;
  width: 112px !important;
  pointer-events: none !important;
}

body.home-page.yj-home-v2 #recommendSection .container::before {
  left: 0 !important;
  background: linear-gradient(90deg, var(--v2-bg) 0%, transparent 100%) !important;
}

body.home-page.yj-home-v2 #recommendSection .container::after {
  right: 0 !important;
  background: linear-gradient(270deg, var(--v2-bg) 0%, transparent 100%) !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-scroll.yj-recommend-marquee {
  display: flex !important;
  width: max-content !important;
  gap: 22px !important;
  overflow: visible !important;
  will-change: transform !important;
  animation: yjRecommendMarquee 54s linear infinite !important;
}

body.home-page.yj-home-v2 #recommendSection:hover .recommend-scroll.yj-recommend-marquee {
  animation-play-state: paused !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-card {
  flex: 0 0 clamp(160px, 13.2vw, 210px) !important;
  transform-origin: center bottom !important;
  transition: transform .24s ease, opacity .24s ease !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-card:hover {
  transform: translateY(-8px) scale(1.035) !important;
  z-index: 5 !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-showcase-cover {
  box-shadow: 0 22px 66px rgba(0, 0, 0, .28) !important;
  background: var(--v2-poster-fallback-gradient) !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-showcase-cover::after {
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .74) 100%) !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-reason {
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: opacity .22s ease, transform .22s ease !important;
}

body.home-page.yj-home-v2 #recommendSection .recommend-card:hover .recommend-reason {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@keyframes yjRecommendMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 1180px) {
  body.home-page.yj-home-v2 .latest-update-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-page.yj-home-v2 .latest-update-card:first-child {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 760px) {
  body.home-page.yj-home-v2 #latestSection::before,
  body.home-page.yj-home-v2 #recommendSection::before {
    inset: 10px 10px 8px !important;
    border-radius: 20px !important;
  }

  body.home-page.yj-home-v2 .latest-update-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
  }

  body.home-page.yj-home-v2 .latest-update-card:first-child {
    min-height: auto !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  body.home-page.yj-home-v2 .latest-update-card:first-child .latest-index-cover,
  body.home-page.yj-home-v2 .latest-update-card:first-child .latest-index-cover img {
    width: 96px !important;
    min-height: 144px !important;
  }

  body.home-page.yj-home-v2 #recommendSection .container::before,
  body.home-page.yj-home-v2 #recommendSection .container::after {
    width: 48px !important;
  }

  body.home-page.yj-home-v2 #recommendSection .recommend-card {
    flex-basis: 148px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page.yj-home-v2 #recommendSection .recommend-scroll.yj-recommend-marquee {
    animation: none !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.home-page.yj-home-v2 #recommendSection .recommend-card[data-v2-clone="true"] {
    display: none !important;
  }
}

/* Daily gacha module */
body.home-page.yj-home-v2 .resource-radar-section.yj-gacha-section {
  margin-top: -54px !important;
  padding-bottom: 22px !important;
}

body.home-page.yj-home-v2 .yj-gacha-wrap {
  position: relative !important;
  overflow: hidden !important;
  min-height: 170px !important;
  padding: 26px 30px !important;
  border-radius: 24px !important;
  border-color: color-mix(in srgb, var(--v2-accent) 24%, var(--v2-border)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 12%, transparent), transparent 42%),
    var(--v2-section-gradient) !important;
  box-shadow: 0 28px 90px var(--v2-shadow-color) !important;
}

body.home-page.yj-home-v2 .yj-gacha-wrap::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045), transparent 34%),
    radial-gradient(circle at 82% 28%, color-mix(in srgb, var(--v2-accent) 18%, transparent), transparent 24rem) !important;
  pointer-events: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-wrap .resource-radar-top {
  position: relative !important;
  z-index: 2 !important;
  align-items: center !important;
}

body.home-page.yj-home-v2 .yj-gacha-wrap .resource-radar-title {
  font-size: clamp(28px, 3vw, 42px) !important;
  letter-spacing: 0 !important;
}

body.home-page.yj-home-v2 .yj-gacha-wrap .resource-radar-note {
  max-width: 720px !important;
  margin-top: 10px !important;
  color: var(--v2-muted) !important;
  font-size: 15px !important;
}

body.home-page.yj-home-v2 .resource-radar-actions {
  align-items: center !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 74px !important;
  padding: 10px 20px 10px 12px !important;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 52%, transparent) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-surface-strong) 86%, transparent), color-mix(in srgb, var(--v2-bg) 56%, transparent)),
    var(--v2-surface-gradient) !important;
  color: var(--v2-text) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  cursor: pointer !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger:hover,
body.home-page.yj-home-v2 .yj-gacha-trigger:focus-visible {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb, var(--v2-accent) 78%, white 8%) !important;
  box-shadow: 0 26px 72px rgba(0, 0, 0, .34), 0 0 0 5px color-mix(in srgb, var(--v2-accent) 16%, transparent) !important;
  outline: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger.is-empty {
  opacity: .72 !important;
}

body.home-page.yj-home-v2 .yj-gacha-bouncer {
  position: relative !important;
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: var(--v2-button-gradient) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 16px 30px color-mix(in srgb, var(--v2-accent) 26%, transparent) !important;
  animation: yjGachaJump 2.4s ease-in-out infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-capsule {
  width: 28px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 38%),
    linear-gradient(90deg, color-mix(in srgb, var(--v2-accent) 28%, white 62%) 0 50%, color-mix(in srgb, var(--v2-accent) 84%, black 4%) 50% 100%) !important;
  transform: rotate(-16deg) !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .16) inset !important;
}

body.home-page.yj-home-v2 .yj-gacha-spark {
  position: absolute !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--v2-accent) 74%, white 20%) !important;
  opacity: .72 !important;
}

body.home-page.yj-home-v2 .yj-gacha-spark.is-one {
  right: -2px !important;
  top: 10px !important;
}

body.home-page.yj-home-v2 .yj-gacha-spark.is-two {
  left: 4px !important;
  bottom: 8px !important;
  width: 5px !important;
  height: 5px !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger-copy strong,
body.home-page.yj-home-v2 .yj-gacha-trigger-copy em {
  display: block !important;
  font-style: normal !important;
  white-space: nowrap !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger-copy strong {
  font-size: 20px !important;
  line-height: 1.15 !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger-copy em {
  margin-top: 5px !important;
  color: var(--v2-muted) !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .yj-gacha-trigger-copy b {
  color: var(--v2-accent) !important;
}

body.home-page.yj-home-v2 .yj-gacha-stats {
  position: relative !important;
  z-index: 2 !important;
  margin-top: 18px !important;
  gap: 10px !important;
}

body.home-page.yj-home-v2 .yj-gacha-stat {
  height: 32px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--v2-bg) 44%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--v2-border) 78%, transparent) !important;
  color: var(--v2-muted) !important;
}

body.home-page.yj-home-v2 .yj-gacha-stat i {
  color: var(--v2-accent) !important;
}

body.home-page.yj-home-v2 .yj-entry-strip-section {
  padding: 0 0 38px !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-grid.yj-entry-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-card.yj-entry-chip {
  min-height: 54px !important;
  padding: 11px 14px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--v2-border) 72%, transparent) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--v2-surface) 62%, transparent), color-mix(in srgb, var(--v2-bg) 42%, transparent)) !important;
  box-shadow: none !important;
  gap: 10px !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-card.yj-entry-chip:hover {
  border-color: color-mix(in srgb, var(--v2-accent) 42%, var(--v2-border)) !important;
  transform: translateY(-2px) !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-card.yj-entry-chip .home-entry-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--v2-accent) 16%, transparent) !important;
  color: var(--v2-accent) !important;
  box-shadow: none !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-card.yj-entry-chip strong {
  font-size: 14px !important;
}

body.home-page.yj-home-v2 .shared-entry-section .home-entry-card.yj-entry-chip em {
  display: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-modal {
  padding: 26px !important;
}

body.home-page.yj-home-v2 .yj-gacha-modal-content {
  width: min(1120px, calc(100vw - 52px)) !important;
  max-height: min(760px, calc(100vh - 52px)) !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 28px !important;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 26%, var(--v2-border)) !important;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v2-accent) 10%, transparent), transparent 42%),
    var(--v2-section-gradient) !important;
  box-shadow: 0 40px 140px rgba(0, 0, 0, .62) !important;
}

body.home-page.yj-home-v2 .yj-gacha-close {
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  z-index: 8 !important;
}

body.home-page.yj-home-v2 .yj-gacha-layout {
  display: grid !important;
  grid-template-columns: minmax(360px, .88fr) minmax(0, 1.12fr) !important;
  min-height: 640px !important;
}

body.home-page.yj-home-v2 .yj-gacha-machine-panel {
  position: relative !important;
  padding: 38px 34px 34px !important;
  overflow: hidden !important;
  border-right: 1px solid color-mix(in srgb, var(--v2-border) 68%, transparent) !important;
}

body.home-page.yj-home-v2 .yj-gacha-machine-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: auto -18% -22% -18% !important;
  height: 48% !important;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--v2-accent) 24%, transparent), transparent 60%) !important;
  pointer-events: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-machine-panel h3 {
  margin: 10px 0 10px !important;
  color: var(--v2-text) !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.08 !important;
}

body.home-page.yj-home-v2 .yj-gacha-machine-panel p {
  max-width: 360px !important;
  color: var(--v2-muted) !important;
  line-height: 1.7 !important;
}

body.home-page.yj-home-v2 .yj-gacha-machine {
  position: relative !important;
  width: min(330px, 82vw) !important;
  height: 360px !important;
  margin: 22px auto 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-glass {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  width: 230px !important;
  height: 230px !important;
  transform: translateX(-50%) !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .50), transparent 16%),
    radial-gradient(circle at 62% 68%, color-mix(in srgb, var(--v2-accent) 28%, transparent), transparent 42%),
    rgba(255, 255, 255, .075) !important;
  box-shadow: inset 0 0 42px rgba(255, 255, 255, .12), 0 28px 70px rgba(0, 0, 0, .28) !important;
  backdrop-filter: blur(9px) saturate(1.18) !important;
}

body.home-page.yj-home-v2 .yj-gacha-glass i {
  position: absolute !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--v2-button-gradient) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px rgba(0, 0, 0, .22) !important;
}

body.home-page.yj-home-v2 .yj-gacha-glass i:nth-child(1) { left: 42px !important; top: 96px !important; }
body.home-page.yj-home-v2 .yj-gacha-glass i:nth-child(2) { left: 104px !important; top: 128px !important; transform: scale(.86) !important; }
body.home-page.yj-home-v2 .yj-gacha-glass i:nth-child(3) { right: 38px !important; top: 82px !important; transform: scale(.72) !important; }
body.home-page.yj-home-v2 .yj-gacha-glass i:nth-child(4) { left: 72px !important; bottom: 34px !important; transform: scale(.64) !important; }
body.home-page.yj-home-v2 .yj-gacha-glass i:nth-child(5) { right: 78px !important; bottom: 44px !important; transform: scale(.78) !important; }

body.home-page.yj-home-v2 .yj-gacha-neck {
  position: absolute !important;
  left: 50% !important;
  top: 206px !important;
  width: 104px !important;
  height: 54px !important;
  transform: translateX(-50%) !important;
  border-radius: 18px 18px 8px 8px !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--v2-accent) 42%, white 12%), color-mix(in srgb, var(--v2-accent) 76%, black 12%)) !important;
}

body.home-page.yj-home-v2 .yj-gacha-body {
  position: absolute !important;
  left: 50% !important;
  bottom: 38px !important;
  width: 238px !important;
  height: 136px !important;
  transform: translateX(-50%) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: linear-gradient(145deg, color-mix(in srgb, var(--v2-accent) 64%, white 10%), color-mix(in srgb, var(--v2-accent) 56%, black 28%)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 22px 58px rgba(0, 0, 0, .28) !important;
}

body.home-page.yj-home-v2 .yj-gacha-slot {
  position: absolute !important;
  left: 28px !important;
  top: 34px !important;
  width: 74px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, .38) !important;
}

body.home-page.yj-home-v2 .yj-gacha-knob {
  position: absolute !important;
  right: 36px !important;
  top: 32px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 8px solid rgba(0, 0, 0, .22) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .10)) !important;
}

body.home-page.yj-home-v2 .yj-gacha-base {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 284px !important;
  height: 44px !important;
  transform: translateX(-50%) !important;
  border-radius: 50% 50% 18px 18px !important;
  background: color-mix(in srgb, var(--v2-bg) 54%, black 22%) !important;
}

body.home-page.yj-home-v2 .yj-gacha-modal.is-rolling .yj-gacha-glass {
  animation: yjGachaShake .18s linear infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-modal.is-rolling .yj-gacha-glass i {
  animation: yjGachaBalls .48s ease-in-out infinite alternate !important;
}

body.home-page.yj-home-v2 .yj-gacha-modal.is-rolling .yj-gacha-knob {
  animation: yjGachaKnob .55s linear infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-chance {
  text-align: center !important;
  color: var(--v2-muted) !important;
  font-weight: 700 !important;
}

body.home-page.yj-home-v2 .yj-gacha-chance strong {
  color: var(--v2-accent) !important;
}

body.home-page.yj-home-v2 .yj-gacha-start {
  display: block !important;
  width: min(240px, 100%) !important;
  height: 48px !important;
  margin: 16px auto 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--v2-button-gradient) !important;
  color: var(--buttonTextOnAccent, #111) !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

body.home-page.yj-home-v2 .yj-gacha-start:disabled {
  opacity: .58 !important;
  cursor: not-allowed !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-panel {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  padding: 38px 34px 30px !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-right: 42px !important;
  color: var(--v2-muted) !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-head span {
  color: var(--v2-text) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-head strong {
  color: var(--v2-accent) !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .yj-gacha-results {
  display: grid !important;
  gap: 14px !important;
  margin-top: 22px !important;
}

body.home-page.yj-home-v2 .yj-gacha-empty {
  min-height: 320px !important;
  display: grid !important;
  place-content: center !important;
  text-align: center !important;
  border: 1px dashed color-mix(in srgb, var(--v2-border) 88%, transparent) !important;
  border-radius: 22px !important;
  color: var(--v2-muted) !important;
  background: color-mix(in srgb, var(--v2-bg) 36%, transparent) !important;
}

body.home-page.yj-home-v2 .yj-gacha-empty strong {
  color: var(--v2-text) !important;
  font-size: 20px !important;
}

body.home-page.yj-home-v2 .yj-gacha-empty p {
  margin-top: 8px !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 38px 76px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
  min-height: 118px !important;
  padding: 12px !important;
  border-radius: 20px !important;
  border: 1px solid color-mix(in srgb, var(--v2-border) 84%, transparent) !important;
  background: var(--v2-surface-gradient), color-mix(in srgb, var(--v2-bg) 44%, transparent) !important;
  color: var(--v2-text) !important;
  text-decoration: none !important;
  transition: transform .22s ease, border-color .22s ease !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-card:hover {
  transform: translateX(4px) !important;
  border-color: color-mix(in srgb, var(--v2-accent) 46%, var(--v2-border)) !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-index {
  color: var(--v2-accent) !important;
  font-weight: 950 !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-card img {
  width: 76px !important;
  height: 104px !important;
  border-radius: 12px !important;
  object-fit: cover !important;
  background: var(--v2-poster-fallback-gradient) !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-copy {
  min-width: 0 !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-copy strong,
body.home-page.yj-home-v2 .yj-gacha-result-copy em,
body.home-page.yj-home-v2 .yj-gacha-result-copy b {
  display: block !important;
  font-style: normal !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-copy strong {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 18px !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-copy em {
  margin-top: 7px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: var(--v2-muted) !important;
}

body.home-page.yj-home-v2 .yj-gacha-result-copy b {
  width: fit-content !important;
  margin-top: 10px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--v2-accent) 14%, transparent) !important;
  color: color-mix(in srgb, var(--v2-accent) 72%, white 20%) !important;
  font-size: 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-panel {
  margin-top: auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  gap: 18px !important;
  padding-top: 18px !important;
  color: var(--v2-muted) !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-panel[hidden] {
  display: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-panel strong,
body.home-page.yj-home-v2 .yj-gacha-qr-panel span {
  display: block !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-panel strong {
  color: var(--v2-text) !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-panel span {
  margin-top: 6px !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-list {
  display: flex !important;
  gap: 10px !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-list img {
  width: 88px !important;
  height: 88px !important;
  padding: 8px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .92) !important;
}

@keyframes yjGachaJump {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-8px) rotate(-4deg); }
  58% { transform: translateY(1px) rotate(3deg); }
}

@keyframes yjGachaShake {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-2deg); }
  75% { transform: translateX(-50%) rotate(2deg); }
}

@keyframes yjGachaBalls {
  from { transform: translate3d(-5px, 4px, 0) scale(.9); }
  to { transform: translate3d(7px, -6px, 0) scale(1.02); }
}

@keyframes yjGachaKnob {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  body.home-page.yj-home-v2 .yj-gacha-wrap .resource-radar-top {
    display: grid !important;
    gap: 18px !important;
  }

  body.home-page.yj-home-v2 .resource-radar-actions {
    justify-content: flex-start !important;
  }

  body.home-page.yj-home-v2 .shared-entry-section .home-entry-grid.yj-entry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-layout {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    overflow: auto !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-machine-panel {
    border-right: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--v2-border) 68%, transparent) !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-machine {
    height: 300px !important;
    transform: scale(.86) !important;
    transform-origin: center top !important;
    margin-bottom: -20px !important;
  }
}

@media (max-width: 560px) {
  body.home-page.yj-home-v2 .yj-gacha-wrap {
    padding: 22px 18px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-trigger {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  body.home-page.yj-home-v2 .shared-entry-section .home-entry-grid.yj-entry-strip {
    grid-template-columns: 1fr !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-modal {
    padding: 0 !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-modal-content {
    width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-machine-panel,
  body.home-page.yj-home-v2 .yj-gacha-result-panel {
    padding: 28px 18px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-result-card {
    grid-template-columns: 30px 64px minmax(0, 1fr) !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-result-card img {
    width: 64px !important;
    height: 92px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-qr-panel {
    display: grid !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page.yj-home-v2 .yj-gacha-bouncer,
  body.home-page.yj-home-v2 .yj-gacha-modal.is-rolling .yj-gacha-glass,
  body.home-page.yj-home-v2 .yj-gacha-modal.is-rolling .yj-gacha-glass i,
  body.home-page.yj-home-v2 .yj-gacha-modal.is-rolling .yj-gacha-knob {
    animation: none !important;
  }
}

/* Gacha V4: tiny colorful floating toy instead of homepage block */
body.home-page #trustSection,
body.home-page #homeEntrySection,
body.home-page.yj-home-v2 #trustSection.yj-gacha-home-hidden,
body.home-page.yj-home-v2 #homeEntrySection.yj-gacha-home-hidden,
body.home-page.yj-home-v2 #gachaModal {
  display: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-float {
  position: fixed !important;
  right: 22px !important;
  bottom: 112px !important;
  z-index: 9000 !important;
  width: 78px !important;
  height: 78px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06)),
    linear-gradient(135deg, #ff7ab6 0%, #ffd166 34%, #4dd6b8 66%, #7aa7ff 100%) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42), 0 0 0 5px color-mix(in srgb, var(--v2-accent) 12%, transparent) !important;
  cursor: pointer !important;
  animation: yjFloatToy 2.6s ease-in-out infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-float:hover,
body.home-page.yj-home-v2 .yj-gacha-float:focus-visible {
  transform: translateY(-4px) scale(1.04) !important;
  outline: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-float.is-empty {
  filter: saturate(.72) brightness(.82) !important;
}

body.home-page.yj-home-v2 .yj-mini-machine {
  position: absolute !important;
  inset: 9px 13px 10px !important;
}

body.home-page.yj-home-v2 .yj-mini-globe {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  width: 43px !important;
  height: 39px !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 32% 22%, rgba(255,255,255,.8), rgba(255,255,255,.18) 28%, rgba(255,255,255,.08) 70%) !important;
  backdrop-filter: blur(2px) !important;
}

body.home-page.yj-home-v2 .yj-mini-globe b {
  position: absolute !important;
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
}

body.home-page.yj-home-v2 .yj-mini-globe b:nth-child(1) { left: 9px !important; bottom: 8px !important; background: #ff5c8a !important; }
body.home-page.yj-home-v2 .yj-mini-globe b:nth-child(2) { left: 20px !important; bottom: 12px !important; background: #ffe066 !important; }
body.home-page.yj-home-v2 .yj-mini-globe b:nth-child(3) { right: 8px !important; bottom: 7px !important; background: #3dd6b5 !important; }

body.home-page.yj-home-v2 .yj-mini-body {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 52px !important;
  height: 34px !important;
  transform: translateX(-50%) !important;
  border-radius: 14px 14px 12px 12px !important;
  background: linear-gradient(135deg, #ff6b6b, #ffd166 48%, #5bd8ff) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5) !important;
}

body.home-page.yj-home-v2 .yj-mini-body::before {
  content: "" !important;
  position: absolute !important;
  left: 9px !important;
  top: 11px !important;
  width: 20px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: rgba(16, 18, 24, .42) !important;
}

body.home-page.yj-home-v2 .yj-mini-body::after {
  content: "" !important;
  position: absolute !important;
  right: 8px !important;
  top: 7px !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .14) !important;
}

body.home-page.yj-home-v2 .yj-gacha-badge {
  position: absolute !important;
  right: -7px !important;
  top: -7px !important;
  min-width: 26px !important;
  height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #ff3b68 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .32) !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover {
  position: fixed !important;
  right: 22px !important;
  bottom: 202px !important;
  z-index: 8999 !important;
  width: min(408px, calc(100vw - 28px)) !important;
  max-height: min(76vh, 720px) !important;
  overflow: auto !important;
  padding: 16px !important;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 28%, rgba(255,255,255,.20)) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045)),
    linear-gradient(145deg, rgba(18, 19, 24, .96), color-mix(in srgb, var(--v2-bg) 88%, black 8%)) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .58) !important;
  backdrop-filter: blur(22px) saturate(1.18) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(14px) scale(.96) !important;
  transform-origin: right bottom !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

body.home-page.yj-home-v2 .yj-pop-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

body.home-page.yj-home-v2 .yj-pop-head strong,
body.home-page.yj-home-v2 .yj-pop-head span {
  display: block !important;
}

body.home-page.yj-home-v2 .yj-pop-head strong {
  color: var(--v2-text) !important;
  font-size: 19px !important;
  line-height: 1.2 !important;
}

body.home-page.yj-home-v2 .yj-pop-head span {
  margin-top: 3px !important;
  color: var(--v2-muted) !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .yj-pop-head b {
  color: #ffd166 !important;
}

body.home-page.yj-home-v2 .yj-pop-close {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, .06) !important;
  color: var(--v2-text) !important;
  cursor: pointer !important;
}

body.home-page.yj-home-v2 .yj-toy-machine {
  position: relative !important;
  width: 214px !important;
  height: 224px !important;
  margin: 14px auto 10px !important;
}

body.home-page.yj-home-v2 .yj-toy-globe {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  width: 150px !important;
  height: 142px !important;
  transform: translateX(-50%) !important;
  border: 2px solid rgba(255, 255, 255, .42) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.86), rgba(255,255,255,.16) 22%, rgba(255,255,255,.06) 72%),
    rgba(255, 255, 255, .09) !important;
  box-shadow: inset 0 0 38px rgba(255,255,255,.14), 0 18px 44px rgba(0,0,0,.28) !important;
  overflow: hidden !important;
}

body.home-page.yj-home-v2 .yj-toy-globe i {
  position: absolute !important;
  width: 33px !important;
  height: 33px !important;
  border-radius: 50% !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 8px 18px rgba(0,0,0,.22) !important;
}

body.home-page.yj-home-v2 .yj-toy-globe i:nth-child(1) { left: 24px !important; top: 72px !important; background: #ff5c8a !important; }
body.home-page.yj-home-v2 .yj-toy-globe i:nth-child(2) { left: 62px !important; top: 82px !important; background: #ffd166 !important; }
body.home-page.yj-home-v2 .yj-toy-globe i:nth-child(3) { right: 24px !important; top: 58px !important; background: #4dd6b8 !important; }
body.home-page.yj-home-v2 .yj-toy-globe i:nth-child(4) { left: 42px !important; bottom: 17px !important; background: #7aa7ff !important; }
body.home-page.yj-home-v2 .yj-toy-globe i:nth-child(5) { right: 48px !important; bottom: 22px !important; background: #b47cff !important; }
body.home-page.yj-home-v2 .yj-toy-globe i:nth-child(6) { left: 58px !important; top: 42px !important; background: #ff8f4d !important; transform: scale(.72) !important; }

body.home-page.yj-home-v2 .yj-toy-neck {
  position: absolute !important;
  left: 50% !important;
  top: 126px !important;
  width: 70px !important;
  height: 30px !important;
  transform: translateX(-50%) !important;
  border-radius: 12px 12px 4px 4px !important;
  background: linear-gradient(180deg, #ff90b3, #ff5c8a) !important;
}

body.home-page.yj-home-v2 .yj-toy-body {
  position: absolute !important;
  left: 50% !important;
  bottom: 26px !important;
  width: 162px !important;
  height: 82px !important;
  transform: translateX(-50%) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd166 42%, #4dd6b8 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 18px 34px rgba(0,0,0,.22) !important;
}

body.home-page.yj-home-v2 .yj-toy-slot {
  position: absolute !important;
  left: 21px !important;
  top: 28px !important;
  width: 54px !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.38) !important;
}

body.home-page.yj-home-v2 .yj-toy-knob {
  position: absolute !important;
  right: 22px !important;
  top: 19px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 7px solid rgba(0,0,0,.18) !important;
  background: rgba(255,255,255,.76) !important;
}

body.home-page.yj-home-v2 .yj-toy-tray {
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  width: 178px !important;
  height: 24px !important;
  transform: translateX(-50%) !important;
  border-radius: 50% 50% 12px 12px !important;
  background: rgba(0,0,0,.48) !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-start {
  width: 100% !important;
  height: 42px !important;
  margin: 6px 0 12px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff5c8a, #ffd166 52%, #4dd6b8) !important;
  color: #16120c !important;
  font-size: 15px !important;
  box-shadow: 0 12px 26px rgba(0,0,0,.24) !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-results {
  display: grid !important;
  gap: 9px !important;
  margin-top: 0 !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-empty {
  min-height: 78px !important;
  border-radius: 16px !important;
  border: 1px dashed rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.045) !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-empty strong {
  font-size: 16px !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-empty p {
  margin-top: 4px !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-result-card {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  min-height: 64px !important;
  padding: 8px !important;
  gap: 10px !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.062) !important;
  border-color: rgba(255,255,255,.12) !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-result-card img {
  width: 48px !important;
  height: 64px !important;
  border-radius: 10px !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-result-copy strong {
  font-size: 14px !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-result-copy em {
  margin-top: 4px !important;
  font-size: 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-result-card > b {
  justify-self: end !important;
  align-self: center !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  background: rgba(255, 209, 102, .16) !important;
  color: #ffd166 !important;
  font-size: 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-qr-panel {
  display: block !important;
  margin-top: 8px !important;
  padding-top: 0 !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover .yj-gacha-qr-panel[hidden] {
  display: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-toggle {
  display: block !important;
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--v2-accent) 66%, white 26%) !important;
  font-size: 12px !important;
  cursor: pointer !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-drawer {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-drawer[hidden] {
  display: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-qr-drawer img {
  width: 74px !important;
  height: 74px !important;
  padding: 6px !important;
  border-radius: 12px !important;
  background: #fff !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover.is-rolling .yj-toy-globe {
  animation: yjTinyShake .16s linear infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover.is-rolling .yj-toy-globe i {
  animation: yjTinyBalls .42s ease-in-out infinite alternate !important;
}

body.home-page.yj-home-v2 .yj-gacha-popover.is-rolling .yj-toy-knob {
  animation: yjGachaKnob .46s linear infinite !important;
}

@keyframes yjFloatToy {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  46% { transform: translateY(-7px) rotate(-3deg); }
  60% { transform: translateY(1px) rotate(2deg); }
}

@keyframes yjTinyShake {
  0%, 100% { transform: translateX(-50%) rotate(0deg); }
  25% { transform: translateX(-50%) rotate(-3deg); }
  75% { transform: translateX(-50%) rotate(3deg); }
}

@keyframes yjTinyBalls {
  from { margin-left: -4px; margin-top: 3px; }
  to { margin-left: 5px; margin-top: -4px; }
}

@media (max-width: 560px) {
  body.home-page.yj-home-v2 .yj-gacha-float {
    right: 14px !important;
    bottom: 92px !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 22px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-popover {
    right: 14px !important;
    bottom: 174px !important;
    width: calc(100vw - 28px) !important;
    max-height: 72vh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page.yj-home-v2 .yj-gacha-float,
  body.home-page.yj-home-v2 .yj-gacha-popover.is-rolling .yj-toy-globe,
  body.home-page.yj-home-v2 .yj-gacha-popover.is-rolling .yj-toy-globe i,
  body.home-page.yj-home-v2 .yj-gacha-popover.is-rolling .yj-toy-knob {
    animation: none !important;
  }
}

/* Gacha V5: centered immersive modal with layered toy-machine animation */
body.home-page.yj-home-v2 .yj-gacha-float {
  right: 24px !important;
  bottom: 116px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, .32) !important;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.96), rgba(255,255,255,.18) 27%, transparent 42%),
    linear-gradient(135deg, rgba(255, 92, 138, .96), rgba(255, 209, 102, .94) 48%, rgba(77, 214, 184, .96)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42), 0 0 0 5px rgba(255, 255, 255, .055) !important;
  animation: yjFloatToy 2.8s ease-in-out infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-float::after {
  content: "扭" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -44%) !important;
  color: rgba(20, 18, 16, .86) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

body.home-page.yj-home-v2 .yj-gacha-float .yj-mini-machine {
  display: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-badge {
  right: -5px !important;
  top: -6px !important;
  min-width: 22px !important;
  height: 22px !important;
  border-width: 2px !important;
  background: #ff3b68 !important;
  font-size: 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-items: center !important;
  padding: 24px !important;
  background: rgba(2, 3, 4, .66) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .2s ease !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema {
  position: relative !important;
  width: min(980px, calc(100vw - 48px)) !important;
  max-height: min(760px, calc(100vh - 48px)) !important;
  overflow: auto !important;
  border-radius: 28px !important;
  border: 1px solid color-mix(in srgb, var(--v2-accent) 24%, rgba(255,255,255,.18)) !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 209, 102, .13), transparent 26rem),
    radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--v2-accent) 16%, transparent), transparent 22rem),
    linear-gradient(145deg, rgba(18, 22, 24, .96), rgba(8, 10, 11, .94)) !important;
  box-shadow: 0 44px 140px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  transform: translateY(14px) scale(.98) !important;
  transition: transform .22s ease !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-open .yj-gacha-cinema {
  transform: translateY(0) scale(1) !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema .yj-pop-close {
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  z-index: 5 !important;
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.07) !important;
  color: var(--v2-text) !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-head {
  padding: 30px 34px 10px !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-head span,
body.home-page.yj-home-v2 .yj-gacha-cinema-head strong,
body.home-page.yj-home-v2 .yj-gacha-cinema-head em {
  display: block !important;
  font-style: normal !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-head span {
  color: #ffd166 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-head strong {
  margin-top: 8px !important;
  color: var(--v2-text) !important;
  font-size: clamp(28px, 3.6vw, 44px) !important;
  line-height: 1 !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-head em {
  margin-top: 10px !important;
  color: var(--v2-muted) !important;
  font-size: 14px !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-head b {
  color: #ffd166 !important;
}

body.home-page.yj-home-v2 .yj-gacha-cinema-layout {
  display: grid !important;
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr) !important;
  gap: 26px !important;
  padding: 12px 34px 34px !important;
}

body.home-page.yj-home-v2 .yj-machine-zone {
  display: grid !important;
  align-content: center !important;
  min-height: 470px !important;
}

body.home-page.yj-home-v2 .yj-machine-scene {
  position: relative !important;
  height: 356px !important;
  perspective: 900px !important;
}

body.home-page.yj-home-v2 .yj-machine-3d {
  position: relative !important;
  width: 290px !important;
  height: 350px !important;
  margin: 0 auto !important;
  transform-style: preserve-3d !important;
  transform: rotateX(7deg) rotateY(-8deg) !important;
  transition: transform .28s ease !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-open .yj-machine-3d {
  animation: yjMachineParallax 5.6s ease-in-out infinite !important;
}

body.home-page.yj-home-v2 .yj-machine-dome {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  width: 218px !important;
  height: 210px !important;
  transform: translateX(-50%) translateZ(34px) !important;
  border: 2px solid rgba(255,255,255,.38) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.92), rgba(255,255,255,.16) 22%, rgba(255,255,255,.06) 68%),
    rgba(255,255,255,.08) !important;
  box-shadow: inset 0 0 54px rgba(255,255,255,.12), 0 30px 70px rgba(0,0,0,.32) !important;
  overflow: hidden !important;
}

body.home-page.yj-home-v2 .yj-dome-shine {
  position: absolute !important;
  left: 42px !important;
  top: 28px !important;
  width: 58px !important;
  height: 78px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.32) !important;
  filter: blur(7px) !important;
}

body.home-page.yj-home-v2 .yj-capsule {
  position: absolute !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), 0 9px 20px rgba(0,0,0,.22) !important;
}

body.home-page.yj-home-v2 .yj-capsule.c1 { left: 42px !important; top: 112px !important; background: #ff5c8a !important; }
body.home-page.yj-home-v2 .yj-capsule.c2 { left: 94px !important; top: 124px !important; background: #ffd166 !important; }
body.home-page.yj-home-v2 .yj-capsule.c3 { right: 38px !important; top: 92px !important; background: #4dd6b8 !important; }
body.home-page.yj-home-v2 .yj-capsule.c4 { left: 70px !important; bottom: 28px !important; background: #7aa7ff !important; }
body.home-page.yj-home-v2 .yj-capsule.c5 { right: 78px !important; bottom: 32px !important; background: #b47cff !important; }
body.home-page.yj-home-v2 .yj-capsule.c6 { left: 98px !important; top: 74px !important; background: #ff8f4d !important; transform: scale(.78) !important; }

body.home-page.yj-home-v2 .yj-machine-neck {
  position: absolute !important;
  left: 50% !important;
  top: 190px !important;
  width: 86px !important;
  height: 44px !important;
  transform: translateX(-50%) translateZ(20px) !important;
  border-radius: 16px 16px 7px 7px !important;
  background: linear-gradient(180deg, #ff83a8, #ff566f) !important;
}

body.home-page.yj-home-v2 .yj-machine-body {
  position: absolute !important;
  left: 50% !important;
  bottom: 40px !important;
  width: 224px !important;
  height: 126px !important;
  transform: translateX(-50%) translateZ(12px) !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd166 42%, #4dd6b8 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 24px 54px rgba(0,0,0,.30) !important;
}

body.home-page.yj-home-v2 .yj-machine-mouth {
  position: absolute !important;
  left: 28px !important;
  top: 43px !important;
  width: 76px !important;
  height: 15px !important;
  border-radius: 999px !important;
  background: rgba(0,0,0,.40) !important;
  transform-origin: left center !important;
}

body.home-page.yj-home-v2 .yj-machine-knob {
  position: absolute !important;
  right: 30px !important;
  top: 27px !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  border: 10px solid rgba(0,0,0,.16) !important;
  background: rgba(255,255,255,.76) !important;
}

body.home-page.yj-home-v2 .yj-machine-door {
  position: absolute !important;
  left: 86px !important;
  bottom: 16px !important;
  width: 50px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.24) !important;
  transform-origin: top center !important;
}

body.home-page.yj-home-v2 .yj-machine-shadow {
  position: absolute !important;
  left: 50% !important;
  bottom: 2px !important;
  width: 242px !important;
  height: 34px !important;
  transform: translateX(-50%) rotateX(72deg) translateZ(-16px) !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,.54) !important;
  filter: blur(2px) !important;
}

body.home-page.yj-home-v2 .yj-gacha-particles {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  pointer-events: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-particles i {
  position: absolute !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--particle, #ffd166) !important;
  opacity: 0 !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-gacha-particles i {
  animation: yjParticleBurst .86s ease-out var(--delay, 0ms) forwards !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-machine-dome {
  animation: yjDomeShake .18s linear infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-capsule {
  animation: yjCapsuleBounce .42s ease-in-out infinite alternate !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-machine-knob {
  animation: yjGachaKnob .46s linear infinite !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-revealing .yj-machine-mouth,
body.home-page.yj-home-v2 .yj-gacha-overlay.is-revealing .yj-machine-door {
  animation: yjMouthOpen .5s cubic-bezier(.2, .8, .2, 1) both !important;
}

body.home-page.yj-home-v2 .yj-machine-zone .yj-gacha-start {
  width: min(240px, 100%) !important;
  height: 48px !important;
  margin: 10px auto 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff5c8a 0%, #ffd166 50%, #4dd6b8 100%) !important;
  color: #17120d !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

body.home-page.yj-home-v2 .yj-result-zone {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.home-page.yj-home-v2 .yj-result-topline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

body.home-page.yj-home-v2 .yj-result-topline span {
  color: var(--v2-text) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}

body.home-page.yj-home-v2 .yj-result-topline strong {
  color: #ffd166 !important;
  font-size: 13px !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-results {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-empty {
  grid-column: 1 / -1 !important;
  min-height: 310px !important;
  display: grid !important;
  place-content: center !important;
  text-align: center !important;
  border-radius: 22px !important;
  border: 1px dashed rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.045) !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-card {
  display: block !important;
  min-height: auto !important;
  padding: 10px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035)) !important;
  color: var(--v2-text) !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transform: none !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay.is-revealing .yj-gacha-result-card {
  animation: yjResultPop .55s cubic-bezier(.18, .9, .22, 1) var(--result-delay, 0ms) both !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-card img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
  object-fit: cover !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 70% 14%, #ffd166, transparent 28%),
    linear-gradient(145deg, #ff5c8a, #4dd6b8) !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-copy strong,
body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-copy em {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-copy strong {
  margin-top: 10px !important;
  font-size: 15px !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-copy em {
  margin-top: 5px !important;
  color: var(--v2-muted) !important;
  font-size: 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-card > b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  margin-top: 10px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: rgba(255, 209, 102, .16) !important;
  color: #ffd166 !important;
  font-size: 12px !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-qr-panel {
  display: block !important;
  margin-top: auto !important;
  padding-top: 14px !important;
}

body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-qr-panel[hidden] {
  display: none !important;
}

@keyframes yjMachineParallax {
  0%, 100% { transform: rotateX(7deg) rotateY(-8deg); }
  50% { transform: rotateX(5deg) rotateY(7deg); }
}

@keyframes yjDomeShake {
  0%, 100% { transform: translateX(-50%) translateZ(34px) rotate(0deg); }
  25% { transform: translateX(-50%) translateZ(34px) rotate(-3deg); }
  75% { transform: translateX(-50%) translateZ(34px) rotate(3deg); }
}

@keyframes yjCapsuleBounce {
  from { margin-left: -6px; margin-top: 5px; }
  to { margin-left: 7px; margin-top: -6px; }
}

@keyframes yjMouthOpen {
  0% { transform: scaleX(1); }
  55% { transform: scaleX(1.28); }
  100% { transform: scaleX(1.05); }
}

@keyframes yjParticleBurst {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.4); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), var(--y), 0) scale(1); }
}

@keyframes yjResultPop {
  0% { opacity: 0; transform: translateY(24px) scale(.92); }
  72% { opacity: 1; transform: translateY(-4px) scale(1.018); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 820px) {
  body.home-page.yj-home-v2 .yj-gacha-overlay {
    padding: 14px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-cinema {
    width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 28px) !important;
    border-radius: 22px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-cinema-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 8px 18px 20px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-cinema-head {
    padding: 24px 18px 8px !important;
  }

  body.home-page.yj-home-v2 .yj-machine-zone {
    min-height: auto !important;
  }

  body.home-page.yj-home-v2 .yj-machine-scene {
    height: 270px !important;
  }

  body.home-page.yj-home-v2 .yj-machine-3d {
    transform: scale(.76) rotateX(7deg) rotateY(-8deg) !important;
    transform-origin: top center !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-results {
    grid-template-columns: 1fr !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-card {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 46px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.home-page.yj-home-v2 .yj-gacha-overlay .yj-gacha-result-card img {
    width: 58px !important;
    height: 78px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page.yj-home-v2 .yj-gacha-overlay.is-open .yj-machine-3d,
  body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-machine-dome,
  body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-capsule,
  body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-machine-knob,
  body.home-page.yj-home-v2 .yj-gacha-overlay.is-revealing .yj-gacha-result-card,
  body.home-page.yj-home-v2 .yj-gacha-overlay.is-rolling .yj-gacha-particles i {
    animation: none !important;
  }
}
/* Gacha V6: immersive machine overlay. Keep this block highly specific so it can override older iterations. */
body .yj-gacha-badge,
body .yj-gacha-cinema-head,
body .yj-result-topline,
body .yj-gacha-empty,
body .yj-gacha-qr-panel {
  display: none !important;
}

body .yj-gacha-float {
  position: fixed !important;
  right: 24px !important;
  bottom: 110px !important;
  z-index: 1200 !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  border-radius: 20px !important;
  border: 1px solid color-mix(in srgb, var(--accent, #ffd166) 62%, rgba(255, 255, 255, .26)) !important;
  background:
    radial-gradient(circle at 72% 18%, #ff4f84 0 12%, transparent 13%),
    radial-gradient(circle at 35% 34%, rgba(255, 255, 255, .92) 0 17%, transparent 18%),
    linear-gradient(135deg, #ff6f91 0%, #ffd166 38%, #6ee7b7 72%, #7dd3fc 100%) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .45),
    0 0 0 7px rgba(255, 209, 102, .08),
    inset 0 1px 0 rgba(255, 255, 255, .55) !important;
  color: transparent !important;
  overflow: hidden !important;
  transform-origin: 50% 82% !important;
  animation: yjGachaFloatIdleV6 3.8s ease-in-out infinite !important;
}

body .yj-gacha-float > * {
  display: none !important;
}

body .yj-gacha-float::before,
body .yj-gacha-float::after {
  content: "" !important;
  position: absolute !important;
  pointer-events: none !important;
}

body .yj-gacha-float::before {
  left: 12px !important;
  top: 12px !important;
  width: 31px !important;
  height: 31px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, .76) !important;
  background:
    radial-gradient(circle at 38% 72%, #ff5f7e 0 17%, transparent 18%),
    radial-gradient(circle at 61% 70%, #7dd3fc 0 16%, transparent 17%),
    radial-gradient(circle at 48% 46%, rgba(255, 255, 255, .45), transparent 42%) !important;
  box-shadow: inset 0 -10px 18px rgba(16, 24, 39, .22) !important;
}

body .yj-gacha-float::after {
  left: 13px !important;
  bottom: 10px !important;
  width: 30px !important;
  height: 17px !important;
  border-radius: 12px 12px 9px 9px !important;
  background: linear-gradient(135deg, #ff8a65, #ffd166 54%, #60d7bd) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}

body .yj-gacha-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2200 !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(18px, 4vw, 56px) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 214, 121, .11), transparent 33%),
    rgba(0, 0, 0, .78) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.05) !important;
  backdrop-filter: blur(20px) saturate(1.05) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow-y: auto !important;
  transition: opacity .28s ease, visibility .28s ease !important;
}

body .yj-gacha-overlay.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body .yj-gacha-cinema {
  position: relative !important;
  width: min(860px, calc(100vw - 32px)) !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: translateY(14px) scale(.98) !important;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1) !important;
}

body .yj-gacha-overlay.is-open .yj-gacha-cinema {
  transform: translateY(0) scale(1) !important;
}

body .yj-pop-close,
body .yj-gacha-mute {
  position: fixed !important;
  top: clamp(16px, 3vw, 34px) !important;
  z-index: 2250 !important;
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(10, 12, 12, .56) !important;
  color: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
}

body .yj-pop-close {
  right: clamp(16px, 3vw, 34px) !important;
  font-size: 0 !important;
}

body .yj-pop-close::before,
body .yj-pop-close::after {
  content: "" !important;
  position: absolute !important;
  width: 17px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: currentColor !important;
}

body .yj-pop-close::before {
  transform: rotate(45deg) !important;
}

body .yj-pop-close::after {
  transform: rotate(-45deg) !important;
}

body .yj-gacha-mute {
  right: calc(clamp(16px, 3vw, 34px) + 52px) !important;
}

body .yj-gacha-mute i,
body .yj-gacha-mute i::before,
body .yj-gacha-mute i::after {
  display: block !important;
  position: absolute !important;
  content: "" !important;
}

body .yj-gacha-mute i {
  width: 8px !important;
  height: 13px !important;
  left: 13px !important;
  border-radius: 2px !important;
  background: currentColor !important;
}

body .yj-gacha-mute i::before {
  left: 6px !important;
  top: -4px !important;
  width: 13px !important;
  height: 21px !important;
  border: 2px solid currentColor !important;
  border-left: 0 !important;
  border-radius: 0 18px 18px 0 !important;
  opacity: .78 !important;
}

body .yj-gacha-mute i::after {
  left: -4px !important;
  top: 8px !important;
  width: 25px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #ff647c !important;
  opacity: 0 !important;
  transform: rotate(-42deg) !important;
}

body .yj-gacha-mute.is-muted i::after {
  opacity: 1 !important;
}

body .yj-pop-close:hover,
body .yj-gacha-mute:hover {
  transform: scale(1.06) !important;
  border-color: rgba(255, 209, 102, .38) !important;
  background: rgba(24, 24, 20, .72) !important;
}

body .yj-gacha-cinema-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
}

body .yj-machine-zone {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  min-height: 460px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .yj-machine-zone::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 18px !important;
  width: min(420px, 72vw) !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: radial-gradient(ellipse at center, rgba(255, 209, 102, .24), rgba(0, 0, 0, .36) 48%, transparent 72%) !important;
  transform: translateX(-50%) !important;
  filter: blur(4px) !important;
}

body .yj-machine-scene {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: min(520px, 82vw) !important;
  height: 438px !important;
  margin: 0 auto !important;
  perspective: 1100px !important;
  transform-style: preserve-3d !important;
  filter: drop-shadow(0 34px 58px rgba(0, 0, 0, .62)) !important;
  animation: yjMachineBounceInV6 .62s cubic-bezier(.17, .84, .28, 1.22) both !important;
}

body .yj-machine-3d {
  position: relative !important;
  width: 390px !important;
  height: 418px !important;
  transform-style: preserve-3d !important;
  transform: rotateX(5deg) rotateY(-5deg) !important;
}

body .yj-machine-dome {
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  width: 318px !important;
  height: 318px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  border: 3px solid rgba(255, 255, 255, .28) !important;
  background:
    radial-gradient(circle at 32% 21%, rgba(255, 255, 255, .92) 0 6%, rgba(255, 255, 255, .42) 7% 15%, transparent 29%),
    radial-gradient(circle at 64% 64%, rgba(255, 209, 102, .16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .13) 100%) !important;
  box-shadow:
    inset 0 0 44px rgba(255, 255, 255, .14),
    inset 0 -34px 64px rgba(0, 0, 0, .26),
    0 18px 42px rgba(0, 0, 0, .38) !important;
  transform: translateX(-50%) translateZ(60px) !important;
  z-index: 3 !important;
}

body .yj-machine-dome::before,
body .yj-machine-dome::after {
  content: "" !important;
  position: absolute !important;
  pointer-events: none !important;
  border-radius: 999px !important;
}

body .yj-machine-dome::before {
  left: 56px !important;
  top: 38px !important;
  width: 92px !important;
  height: 128px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), transparent 68%) !important;
  filter: blur(10px) !important;
  transform: rotate(18deg) !important;
}

body .yj-machine-dome::after {
  inset: 16px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
}

body .yj-capsule {
  position: absolute !important;
  width: 64px !important;
  height: 46px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  background: linear-gradient(90deg, var(--c1, #ff7aa2) 0 50%, var(--c2, #ffd166) 51% 100%) !important;
  box-shadow:
    inset 0 8px 10px rgba(255, 255, 255, .26),
    inset 0 -10px 16px rgba(0, 0, 0, .14),
    0 8px 16px rgba(0, 0, 0, .24) !important;
  transform-origin: 50% 50% !important;
  opacity: .96 !important;
}

body .yj-capsule:nth-child(1) {
  --c1: #ff5f7e;
  --c2: #ffd166;
  left: 72px !important;
  top: 202px !important;
  transform: rotate(-18deg) !important;
}

body .yj-capsule:nth-child(2) {
  --c1: #7dd3fc;
  --c2: #a78bfa;
  left: 128px !important;
  top: 230px !important;
  transform: rotate(12deg) !important;
}

body .yj-capsule:nth-child(3) {
  --c1: #fca5a5;
  --c2: #6ee7b7;
  left: 186px !important;
  top: 186px !important;
  transform: rotate(-7deg) !important;
}

body .yj-capsule:nth-child(4) {
  --c1: #fdba74;
  --c2: #fb7185;
  left: 148px !important;
  top: 142px !important;
  transform: rotate(22deg) !important;
}

body .yj-capsule:nth-child(5) {
  --c1: #fde68a;
  --c2: #93c5fd;
  left: 98px !important;
  top: 166px !important;
  transform: rotate(-34deg) !important;
}

body .yj-machine-body {
  position: absolute !important;
  left: 50% !important;
  top: 246px !important;
  width: 382px !important;
  height: 146px !important;
  border-radius: 40px 40px 48px 48px !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 28%),
    linear-gradient(135deg, #ff6f91 0%, #ffcf6a 39%, #74e3b7 100%) !important;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .38),
    inset 0 -24px 34px rgba(0, 0, 0, .14),
    0 22px 48px rgba(0, 0, 0, .36) !important;
  transform: translateX(-50%) translateZ(88px) !important;
  z-index: 5 !important;
}

body .yj-machine-body::after {
  content: "" !important;
  position: absolute !important;
  left: 28px !important;
  right: 28px !important;
  bottom: -26px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, .66) !important;
  filter: blur(2px) !important;
  z-index: -1 !important;
}

body .yj-machine-slot {
  position: absolute !important;
  left: 48px !important;
  top: 46px !important;
  width: 122px !important;
  height: 23px !important;
  border-radius: 999px !important;
  background: rgba(77, 52, 25, .58) !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, .2) !important;
  z-index: 7 !important;
}

body .yj-machine-knob {
  position: absolute !important;
  right: 54px !important;
  top: 35px !important;
  width: 82px !important;
  height: 82px !important;
  border-radius: 50% !important;
  border: 8px solid rgba(255, 255, 255, .24) !important;
  background:
    radial-gradient(circle at 40% 36%, #fff9d7 0 32%, #ead58d 33% 55%, #b38b38 56% 100%) !important;
  box-shadow:
    inset 0 5px 12px rgba(255, 255, 255, .34),
    0 9px 20px rgba(0, 0, 0, .24) !important;
  z-index: 8 !important;
}

body .yj-machine-lever {
  position: absolute !important;
  right: 48px !important;
  top: 29px !important;
  width: 94px !important;
  height: 94px !important;
  z-index: 11 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: transparent !important;
  cursor: pointer !important;
  appearance: none !important;
  transition: transform .16s ease !important;
}

body .yj-machine-lever:hover {
  transform: scale(1.06) !important;
}

body .yj-machine-lever:active {
  transform: scale(.94) rotate(12deg) !important;
}

body .yj-machine-mouth {
  position: absolute !important;
  left: 50% !important;
  bottom: 13px !important;
  width: 118px !important;
  height: 30px !important;
  border-radius: 16px 16px 18px 18px !important;
  background: linear-gradient(180deg, rgba(31, 18, 15, .88), rgba(0, 0, 0, .72)) !important;
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, .44) !important;
  transform: translateX(-50%) !important;
  overflow: hidden !important;
  z-index: 9 !important;
}

body .yj-machine-door {
  position: absolute !important;
  inset: 3px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255, 209, 102, .75), rgba(255, 255, 255, .34)) !important;
  transform-origin: left center !important;
  transition: transform .28s ease !important;
}

body .yj-gacha-overlay.is-revealing .yj-machine-door {
  transform: translateX(88px) scaleX(.32) !important;
}

body .yj-gacha-overlay.is-rolling .yj-machine-3d {
  animation: yjMachineShakeV6 .74s cubic-bezier(.22, .8, .28, 1) both !important;
}

body .yj-gacha-overlay.is-rolling .yj-machine-knob {
  animation: yjKnobClickV6 .66s cubic-bezier(.22, .8, .28, 1) both !important;
}

body .yj-gacha-overlay.is-rolling .yj-capsule {
  animation: yjCapsuleRollV6 .78s cubic-bezier(.17, .84, .28, 1) infinite !important;
}

body .yj-gacha-overlay.is-rolling .yj-capsule:nth-child(2) {
  animation-delay: -.13s !important;
}

body .yj-gacha-overlay.is-rolling .yj-capsule:nth-child(3) {
  animation-delay: -.25s !important;
}

body .yj-gacha-overlay.is-rolling .yj-capsule:nth-child(4) {
  animation-delay: -.38s !important;
}

body .yj-gacha-overlay.is-rolling .yj-capsule:nth-child(5) {
  animation-delay: -.51s !important;
}

body .yj-result-zone {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 16px !important;
  width: min(860px, 100%) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .yj-gacha-overlay:not(.is-revealing) .yj-result-zone {
  display: none !important;
}

body .yj-gacha-results {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

body .yj-gacha-result-card {
  display: grid !important;
  grid-template-columns: 74px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 122px !important;
  padding: 12px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%),
    linear-gradient(135deg, rgba(18, 24, 22, .88), rgba(7, 8, 8, .9)) !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  overflow: hidden !important;
  transform: translateY(18px) scale(.98) !important;
  opacity: 0 !important;
  animation: yjResultRiseV6 .48s cubic-bezier(.2, .9, .22, 1) var(--result-delay, 0s) forwards !important;
  transition: transform .18s ease, border-color .18s ease, background .18s ease !important;
}

body .yj-gacha-result-card:hover {
  border-color: color-mix(in srgb, var(--accent, #ffd166) 46%, rgba(255, 255, 255, .14)) !important;
  transform: translateY(-3px) scale(1.015) !important;
}

body .yj-gacha-poster,
body .yj-gacha-poster img {
  width: 74px !important;
  height: 108px !important;
  border-radius: 13px !important;
  object-fit: cover !important;
}

body .yj-gacha-poster {
  overflow: hidden !important;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 209, 102, .52), transparent 18%),
    linear-gradient(135deg, #26364f, #121826 58%, #26211b) !important;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .34) !important;
}

body .yj-gacha-result-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: var(--textPrimary, #f7f8ef) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
}

body .yj-gacha-result-meta {
  margin-top: 6px !important;
  color: var(--textSecondary, rgba(236, 240, 226, .68)) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

body .yj-gacha-result-tag,
body .yj-gacha-result-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  margin-top: 10px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--accent, #ffd166) 52%, transparent) !important;
  background: color-mix(in srgb, var(--accent, #ffd166) 18%, rgba(0, 0, 0, .36)) !important;
  color: color-mix(in srgb, var(--accent, #ffd166) 84%, white) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body .yj-gacha-start {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 196px !important;
  height: 52px !important;
  margin: 2px auto 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff6f91, #ffd166 48%, #6ee7b7) !important;
  color: #14110b !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(255, 255, 255, .18) inset !important;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}

body .yj-gacha-start:hover {
  transform: scale(1.045) !important;
  filter: brightness(1.05) saturate(1.05) !important;
}

body .yj-gacha-start:active {
  transform: scale(.96) !important;
}

body .yj-gacha-start[disabled],
body .yj-machine-lever[disabled] {
  cursor: wait !important;
  filter: saturate(.82) brightness(.96) !important;
}

body .yj-gacha-particles {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2210 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

body .yj-gacha-particles i {
  position: absolute !important;
  left: 50% !important;
  top: 52% !important;
  width: 8px !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: var(--particle-color, #ffd166) !important;
  box-shadow: 0 0 18px color-mix(in srgb, var(--particle-color, #ffd166) 58%, transparent) !important;
  transform: translate(-50%, -50%) rotate(var(--particle-rotate, 0deg)) !important;
  animation: yjParticleBurstV6 .86s cubic-bezier(.16, .85, .23, 1) forwards !important;
}

@keyframes yjGachaFloatIdleV6 {
  0%, 78%, 100% { transform: translateY(0) rotate(0deg); }
  84% { transform: translateY(-5px) rotate(-4deg); }
  90% { transform: translateY(0) rotate(4deg); }
  95% { transform: translateY(-2px) rotate(-2deg); }
}

@keyframes yjMachineBounceInV6 {
  0% { opacity: 0; transform: translateY(34px) scale(.92); }
  62% { opacity: 1; transform: translateY(-8px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes yjMachineShakeV6 {
  0%, 100% { transform: rotateX(5deg) rotateY(-5deg) translateX(0); }
  13% { transform: rotateX(4deg) rotateY(-9deg) translateX(-11px) rotateZ(-2deg); }
  27% { transform: rotateX(6deg) rotateY(-2deg) translateX(10px) rotateZ(2deg); }
  43% { transform: rotateX(5deg) rotateY(-8deg) translateX(-8px) rotateZ(-1.5deg); }
  59% { transform: rotateX(6deg) rotateY(-3deg) translateX(7px) rotateZ(1.4deg); }
  78% { transform: rotateX(5deg) rotateY(-6deg) translateX(-3px) rotateZ(-.7deg); }
}

@keyframes yjKnobClickV6 {
  0%, 100% { transform: rotate(0deg) scale(1); }
  30% { transform: rotate(34deg) scale(.94); }
  55% { transform: rotate(-10deg) scale(1.04); }
  78% { transform: rotate(6deg) scale(1); }
}

@keyframes yjCapsuleRollV6 {
  0% { margin-left: 0; margin-top: 0; transform: rotate(0deg) scale(1); }
  28% { margin-left: 18px; margin-top: -20px; transform: rotate(108deg) scale(1.03); }
  58% { margin-left: -16px; margin-top: 12px; transform: rotate(228deg) scale(.98); }
  100% { margin-left: 0; margin-top: 0; transform: rotate(360deg) scale(1); }
}

@keyframes yjResultRiseV6 {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  72% { opacity: 1; transform: translateY(-4px) scale(1.015); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes yjParticleBurstV6 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(var(--particle-rotate, 0deg)); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--particle-x, 0px)), calc(-50% + var(--particle-y, -120px))) scale(.9) rotate(calc(var(--particle-rotate, 0deg) + 180deg));
  }
}

@media (max-width: 760px) {
  body .yj-gacha-float {
    right: 16px !important;
    bottom: 88px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 18px !important;
  }

  body .yj-gacha-overlay {
    padding: 18px 14px 24px !important;
    align-items: start !important;
  }

  body .yj-gacha-cinema {
    width: calc(100vw - 28px) !important;
    padding-top: 40px !important;
  }

  body .yj-machine-zone {
    min-height: 360px !important;
  }

  body .yj-machine-scene {
    width: 340px !important;
    height: 340px !important;
    transform: scale(.84) !important;
    transform-origin: center top !important;
  }

  body .yj-gacha-results {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    max-height: 36vh !important;
    overflow: auto !important;
    padding-right: 2px !important;
  }

  body .yj-gacha-result-card {
    min-height: 104px !important;
    grid-template-columns: 62px minmax(0, 1fr) !important;
    border-radius: 18px !important;
  }

  body .yj-gacha-poster,
  body .yj-gacha-poster img {
    width: 62px !important;
    height: 92px !important;
    border-radius: 11px !important;
  }

  body .yj-gacha-start {
    width: min(260px, 86vw) !important;
    height: 48px !important;
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .yj-gacha-float,
  body .yj-machine-scene,
  body .yj-gacha-overlay.is-rolling .yj-machine-3d,
  body .yj-gacha-overlay.is-rolling .yj-capsule,
  body .yj-gacha-overlay.is-rolling .yj-machine-knob,
  body .yj-gacha-particles i,
  body .yj-gacha-result-card {
    animation: none !important;
  }

  body .yj-gacha-result-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
