/* OLTGames integration tweaks */
.locale__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-lilac-2);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.locale__menu a:hover {
  background: rgba(152, 16, 250, 0.28);
  color: #fff;
}
.locale__menu a.is-active {
  background: rgba(152, 16, 250, 0.4);
  color: #fff;
}
.site-nav__link.is-active {
  color: var(--accent-gold);
}

/* Home: back to top — fixed float on viewport right */
.scroll-top {
  position: fixed;
  left: auto;
  right: 20px;
  bottom: 32px;
  top: auto;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(233, 195, 73, 0.55);
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent-gold);
  background: linear-gradient(145deg, rgba(61, 26, 95, 0.95), rgba(30, 12, 52, 0.98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(152, 16, 250, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, border-color 0.2s, box-shadow 0.2s;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 10px 32px rgba(152, 16, 250, 0.4);
  color: #fff;
}
.scroll-top:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .scroll-top {
    right: 12px;
    bottom: 24px;
    width: 46px;
    height: 46px;
  }
}

/* index.jsp：首页单页，内容区始终展示 */
.olt-main {
  width: 100%;
}
#olt-panel-home.olt-panel {
  display: block;
}

/* 首页轮播：1920×630，宽度 100% */
body.page-landing .landing__content {
  width: 100%;
  max-width: none;
}
body.page-landing .hero-carousel {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1920 / 630;
  min-height: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}
body.page-landing .hero-carousel__dots {
  margin-top: 12px;
  padding: 0 24px 24px;
}
body.page-landing .hot-games,
body.page-landing .more-games {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
}
body.page-landing .hot-games {
  margin-top: 32px;
}

/* 首页下载按钮：与 more-games 同宽，三列铺满 */
body.page-landing .landing__content .app-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1440px;
  width: 100%;
  margin: 28px auto 0;
  padding-left: clamp(16px, 5vw, 80px);
  padding-right: clamp(16px, 5vw, 80px);
  box-sizing: border-box;
}
body.page-landing .landing__content .app-banners .app-card {
  width: 100%;
  max-width: none;
  min-width: 0;
}
@media (max-width: 900px) {
  body.page-landing .landing__content .app-banners {
    grid-template-columns: 1fr;
  }
}

/* 下载按钮下方：内页内容区块（紧凑排版） */
.olt-home-sections {
  max-width: 1440px;
  width: 100%;
  margin: 32px auto 48px;
  padding: 0 clamp(16px, 5vw, 80px);
  box-sizing: border-box;
}
.olt-home-section {
  margin-bottom: 32px;
  scroll-margin-top: 140px;
}
.olt-home-section:last-child {
  margin-bottom: 0;
}
.olt-home-section + .olt-home-section {
  padding-top: 4px;
  border-top: 1px solid rgba(238, 177, 255, 0.1);
}
.olt-home-section .olt-page-content {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
/* 首页嵌入：缩小 hero / section 上下留白 */
.olt-home-sections .fair-hero {
  padding: 48px 24px 36px;
}
.olt-home-sections .fair-hero h1 {
  margin-bottom: 12px;
}
.olt-home-sections .fair-hero p {
  margin-bottom: 0;
}
.olt-home-sections .fair-hero + .section,
.olt-home-sections .fair-hero + section.section {
  padding-top: 24px;
}
.olt-home-sections .fair-hero--baccarat {
  height: auto;
  min-height: 220px;
  max-height: 340px;
  padding: 48px 24px 36px;
}
.olt-home-sections .fair-hero--baccarat h1 {
  margin-bottom: 12px;
}
.olt-home-sections .fair-hero--baccarat p {
  margin-bottom: 0;
}
/* 首页嵌入：Rules / About 标题字号、字重完全一致 */
.olt-home-sections .fair-hero h1,
.olt-home-sections .fair-hero h1 span {
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.6px;
  color: var(--text-lilac-2);
  text-shadow: none;
}
.olt-home-sections .section {
  padding: 28px 0;
}
.olt-home-sections .section.container {
  padding-left: 0;
  padding-right: 0;
}
.olt-home-sections .section-title {
  margin-bottom: 20px;
  padding: 12px 20px;
}
.olt-home-sections .info-bento {
  gap: 16px;
}

/* Mobile：安装指南 + QR 图片 */
.olt-home-sections #olt-section-mobile .olt-page-content {
  padding: 0;
}
.olt-mobile-install-block {
  width: 100%;
}
.olt-mobile-install-block__title {
  margin: 0 0 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}
.olt-mobile-login-preview {
  margin: 0 auto 32px;
  max-width: 360px;
  text-align: center;
}
.olt-mobile-login-preview img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 40px rgba(152, 16, 250, 0.2);
  border: 1px solid rgba(238, 177, 255, 0.2);
}
.olt-mobile-install-block__downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.olt-mobile-install-block__downloads .app-card {
  width: 100%;
  max-width: none;
}
.olt-mobile-install-block__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.olt-mobile-step {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-purple-card);
  border: 1px solid rgba(238, 177, 255, 0.15);
  text-align: center;
}
.olt-mobile-step h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-lilac-3);
  line-height: 1.35;
}
.olt-mobile-step__text {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
  text-align: left;
}
.olt-mobile-step__text a {
  color: var(--accent-gold);
  word-break: break-all;
}
.olt-mobile-step__qr {
  display: block;
  margin: 12px auto 0;
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
@media (max-width: 900px) {
  .olt-mobile-install-block__downloads,
  .olt-mobile-install-block__steps {
    grid-template-columns: 1fr;
  }
}

/* Inner pages: design <main> sections are full-width */
body.page-inner .olt-page-content,
body.page-fair .olt-page-content,
body.page-rules .olt-page-content,
body.page-contact .olt-page-content,
body.page-about .olt-page-content,
body.page-mobile .olt-page-content {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
body.page-contact .olt-page-content {
  background: var(--grad-hero);
}

/* 内页：隐藏首页轮播/Hot Games（防止旧 JSP 缓存误输出首页区块） */
body.page-fair .hero-carousel,
body.page-fair .hot-games,
body.page-fair .more-games,
body.page-fair .landing__main,
body.page-fair .app-banners,
body.page-contact .hero-carousel,
body.page-contact .hot-games,
body.page-contact .more-games,
body.page-contact .landing__main,
body.page-about .hero-carousel,
body.page-about .hot-games,
body.page-about .more-games,
body.page-about .landing__main,
body.page-mobile .hero-carousel,
body.page-mobile .hot-games,
body.page-mobile .more-games,
body.page-mobile .landing__main,
body.page-rules .hero-carousel,
body.page-rules .hot-games,
body.page-rules .more-games,
body.page-rules .landing__main {
  display: none !important;
}

/* Mobile page (afbcasino mobile.html + app downloads) */
body.page-mobile .olt-mobile-page__login {
  display: flex;
  justify-content: center;
  padding: 48px 24px 32px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(152, 16, 250, 0.35) 0%, transparent 60%),
    radial-gradient(50% 50% at 90% 100%, rgba(230, 0, 118, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, #3c0366 0%, #200a27 60%, #000 100%);
}
body.page-mobile .phone__field--captcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
body.page-mobile .phone__field--captcha img {
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
}
body.page-mobile .app-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 24px 16px 48px;
}
body.page-mobile .olt-mobile-install {
  padding-bottom: 64px;
}
body.page-mobile .olt-mobile-install img {
  margin-top: 12px;
  border-radius: 8px;
}
