/* Staging homepage V2: local overrides only; never installed on production */
/* Keep all existing modules, headings and CSS untouched. */
#games .games-tabs .tab-panel.is-active { min-height: 0; align-items: center; }
#games .games-tabs .tab-media { min-height: 0; align-self:stretch; aspect-ratio: 4/3; }
#games .games-tabs .tab-media picture { height: 100%; }
#games .games-tabs .tab-media img { height:100%; width:100%; object-fit:cover; }
#games .games-tabs .tab-copy { padding: 26px 36px; }
#games .games-tabs .tab-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; line-height:1.8; }
#games .games-tabs .tab-copy p.is-expanded { display:block; overflow:visible; }
#games .games-tabs .tab-copy .ky-more { display:inline-block; background:none; border:0; padding:5px 0; cursor:pointer; color:#976821; font-weight:700; }
.ky-partners-empty-message { display:flex; align-items:center; gap:22px; min-height:210px; border-radius:24px; padding:34px 40px; background:linear-gradient(115deg,#312a1d 0%,#171719 70%); color:#fff; }
.ky-partners-empty-mark { font-size:68px; color:#d4af68; }
.ky-partners-empty-message div {flex:1}
.ky-partners-empty-message h3 {margin:0 0 8px;font-size:26px;color:#fff}
.ky-partners-empty-message p {color:#ded6c6;max-width:600px;line-height:1.75;margin:0}
.ky-partners-empty-message a {display:inline-block;border:1px solid #d4af68;border-radius:25px;padding:10px 16px;color:#f2dba4;white-space:nowrap}
@media(max-width:750px){#games .games-tabs .tab-panel.is-active{display:block}#games .games-tabs .tab-media{aspect-ratio:16/9}#games .games-tabs .tab-copy{padding:22px 20px}.ky-partners-empty-message{display:block;padding:26px}.ky-partners-empty-mark{font-size:38px}.ky-partners-empty-message a{margin-top:16px}}

/* Kaiyun staging homepage V3: scoped layout refinements; loaded after home.css */
/* 1. Floating four-card bar: align its visual center near the Hero bottom edge. */
.home-page .home-quick-wrap { margin-top:-42px; }

/* 2. Consistent vertical rhythm for content sections; never touch the agent two-column layout. */
.home-page .home-section { padding-top:42px; padding-bottom:42px; }
.home-page #about.home-intro { padding-top:42px; }
.home-page #games.home-games, .home-page #app.home-app,
.home-page #news.home-news, .home-page #partners.ky-partners { padding-top:42px; padding-bottom:42px; }
.home-page #agent.home-agent { padding-top:42px; padding-bottom:42px; }

/* 3. Center section titles, add restrained gold separator like APP heading. */
.home-page .home-section:not(.home-agent) > .container > .section-heading {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:0; text-align:center; margin-bottom:28px;
}
.home-page .home-section:not(.home-agent) > .container > .section-heading > div { width:100%; }
.home-page .home-section:not(.home-agent) > .container > .section-heading h2 { margin:7px 0 0; }
.home-page .home-section:not(.home-agent) > .container > .section-heading h2::after {
  content:""; display:block; width:76px; height:3px; border-radius:99px;
  margin:15px auto 0; background:linear-gradient(90deg,transparent,var(--cms-heading-line, #c89b43) 20%,var(--cms-heading-line, #c89b43) 80%,transparent);
}
.home-page .home-section:not(.home-agent) > .container > .section-heading > p {
  max-width:720px; margin:14px auto 0; line-height:1.7;
}
/* No duplicate line on headings from unrelated components. */

/* 4. Games: source images are 1280x853. Preserve 3:2 aspect ratio; only outer shell clips corners. */
.home-page #games .games-tabs { overflow:hidden; border-radius:18px; }
.home-page #games .games-tabs .tab-panel { min-height:0; align-items:stretch; }
.home-page #games .games-tabs .tab-media { min-height:0; width:100%; aspect-ratio:1280/853; overflow:hidden; border-radius:0; align-self:stretch; }
.home-page #games .games-tabs .tab-media picture,
.home-page #games .games-tabs .tab-media img {
  display:block; width:100%; height:100%; border-radius:0; object-fit:cover; object-position:center;
}
.home-page #games .games-tabs .tab-media picture { overflow:hidden; }
.home-page #games .games-tabs .tab-copy { align-self:center; }

/* 5. Platform intro article CTA, independent of game and partnership CTAs. */
.home-page #about .ky-intro-more { display:inline-flex; align-items:center; gap:10px; margin-top:20px; text-decoration:none; }
.home-page #about .ky-intro-more:hover { text-decoration:underline; }

@media(max-width:900px) {
  .home-page .home-section { padding-top:36px; padding-bottom:36px; }
  .home-page #about.home-intro, .home-page #games.home-games,
  .home-page #app.home-app, .home-page #news.home-news,
  .home-page #partners.ky-partners, .home-page #agent.home-agent { padding-top:36px; padding-bottom:36px; }
  .home-page #games .games-tabs .tab-media { aspect-ratio:1280/853; height:auto; }
}
@media(max-width:600px) {
  .home-page .home-quick-wrap { margin-top:-13px; }
  .home-page .home-section { padding-top:30px; padding-bottom:30px; }
  .home-page #about.home-intro, .home-page #games.home-games,
  .home-page #app.home-app, .home-page #news.home-news,
  .home-page #partners.ky-partners, .home-page #agent.home-agent { padding-top:30px; padding-bottom:30px; }
  .home-page .home-section:not(.home-agent) > .container > .section-heading { margin-bottom:22px; }
  .home-page .home-section:not(.home-agent) > .container > .section-heading h2::after { margin-top:12px; }
  .home-page #games .games-tabs .tab-media { aspect-ratio:1280/853; height:auto; }
}

