/* Reading pages use document flow; both full-page sites share a footer drawer. */
html.g-fullpage-document { height: 100%; overflow: hidden; }
.g-legal.site-footer {
  position: relative;
  inset: auto;
  z-index: 58;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 32px max(24px, 5vw) 28px;
  border-top: 1px solid #d5c39426;
  background: #10161d;
  color: #b7c0c6;
  font: 13px/1.6 "PingFang SC", "Microsoft YaHei", sans-serif;
  text-align: left;
  backdrop-filter: none;
  box-sizing: border-box;
}
.g-legal.site-footer > .site-footer-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  gap: 24px 56px;
  width: min(1200px, 100%);
  margin: 0 auto;
}
.site-footer-main { min-width: 0; grid-column: 2; grid-row: 1; }
.site-footer-brand { display: flex; align-items: center; justify-content: flex-start; gap: 20px; grid-column: 1; grid-row: 1; }
.site-footer-brand img { display: block; flex: none; height: auto; mix-blend-mode: screen; }
.site-footer-brand .site-footer-company-logo { width: 140px; }
.site-footer-brand .site-footer-game-logo { width: 94px; }
.site-footer-brand-divider { flex: 0 0 1px; height: 58px; background: #b7c0c64a; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 28px; margin: 0 0 8px; }
.site-footer-links a, .g-legal.site-footer .support-entry { display: inline-flex; align-items: center; min-height: 32px; padding: 0; font: inherit; color: #e0e3e1; }
.g-legal.site-footer button.support-entry:disabled { border: 0; background: none; opacity: .6; cursor: default; }
.g-legal.site-footer .site-footer-links a { cursor: pointer; }
.g-legal.site-footer .site-footer-links a:is(:hover, :focus-visible) { color: #f0d89d; }
.site-footer :is(a, button):focus-visible { outline: 2px solid #e4c787; outline-offset: 4px; }
.site-footer-details p { margin: 0; }
.site-footer-details a { color: inherit; text-decoration: none; }
.site-footer-details a:hover { color: #f0d89d; }
.site-footer-details .site-footer-filings { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 22px; }
.site-footer-contact { margin: 4px 0 0; color: #aab5bd; font-size: 12px; }
.site-footer-contact a { color: inherit; text-decoration: none; }
.site-footer-contact a:hover { color: #f0d89d; }
.site-footer-details p:last-child { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 22px; }
.site-footer-developer, .site-footer-copyright { margin: 2px 0 0; color: #87959f; font-size: 12px; }
.site-footer-responsible { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #d5c3941c; }
.site-footer-rating { display: block; flex: 0 0 auto; width: 44px; height: auto; }
.site-footer-rating-button {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}
.site-footer-rating-button:hover { filter: brightness(1.12); }

/* One accessible age notice is shared by every footer. */
.age-rating-dialog {
  box-sizing: border-box;
  width: min(860px, calc(100vw - 48px));
  max-width: none;
  max-height: min(800px, calc(100svh - 56px));
  padding: 0;
  border: 1px solid #cbb77c;
  border-radius: 16px 3px;
  background: #17212a;
  color: #e4e7e6;
  font: 16px/1.95 "PingFang SC", "Microsoft YaHei", sans-serif;
  box-shadow: 0 20px 90px #0008;
  overflow: hidden;
}
.age-rating-dialog::backdrop { background: #050b12b8; backdrop-filter: blur(5px); }
.age-rating-content {
  box-sizing: border-box;
  max-height: min(708px, calc(100svh - 148px));
  padding: 48px 58px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #8d805e transparent;
}
.age-rating-content h2 { margin: 0 0 28px; color: #e3c47e; font-size: 28px; font-weight: 500; text-align: center; }
.age-rating-content ol { margin: 0; padding-left: 1.55em; }
.age-rating-content li { padding-left: .3em; margin: 0 0 22px; }
.age-rating-content li:last-child { margin-bottom: 0; }
.age-rating-content p { margin: 0 0 12px; }
.age-rating-content p:last-child { margin-bottom: 0; }
.age-rating-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid #cbb77c55;
  border-radius: 3px;
  background: #17212a;
  cursor: pointer;
}
.age-rating-close img { display: block; width: 22px; height: 22px; }
.age-rating-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 132px;
  min-height: 44px;
  margin: 0 auto;
  padding: 8px 28px;
  border: 1px solid #eed498;
  border-radius: 3px;
  background: #e3c47e;
  color: #17212a;
  font: inherit;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.age-rating-actions { padding: 18px 22px 26px; background: #17212a; }
.age-rating-dialog button:focus-visible { outline: 2px solid #f4dba2; outline-offset: 3px; }
@media (max-width: 680px) {
  .age-rating-dialog { width: calc(100vw - 28px); max-height: calc(100svh - 36px); font-size: 14px; }
  .age-rating-content { max-height: calc(100svh - 128px); padding: 54px 22px 8px; }
  .age-rating-content h2 { margin-bottom: 22px; font-size: 22px; }
  .age-rating-content li { margin-bottom: 18px; }
}
.site-footer-health { flex: 1; min-width: 0; margin: 0; padding: 0; color: #909da6; font-size: 12px; line-height: 1.6; text-align: left; }
.site-footer-health strong { display: block; color: #bac2c6; font-weight: 500; }
.site-footer-health span { display: block; margin: 0; }

/* Keep touch scrolling aligned to a full panel on mobile as well as desktop. */
[data-experience="campaign"] .g-fullpage { scroll-snap-type: y mandatory; }
[data-experience="campaign"].g-footer-open .g-rail-campaign { visibility: hidden; pointer-events: none; }

.g-legal.site-footer[data-footer-mode="drawer"] {
  position: fixed;
  inset: auto 0 0;
  max-height: calc(100svh - 86px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: 36px;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform .32s ease, visibility .32s;
  box-shadow: 0 -16px 50px #0003;
}
.g-footer-open .site-footer[data-footer-mode="drawer"] { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform .32s ease; }
.g-footer-open .g-fullpage { overflow: hidden; }
.g-footer-open .g-footer-trigger { visibility: hidden; }
.g-legal.site-footer .site-footer-close {
  position: absolute;
  top: 8px;
  right: max(18px, 3.4vw);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 8px;
  font: inherit;
  color: #cdbb8e;
}
.site-footer-close .g-icon { width: 14px; height: 14px; transform: rotate(180deg); }
.g-footer-trigger {
  position: absolute;
  right: max(24px, 3.4vw);
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 16px;
  border: 1px solid #d6c18a50;
  border-radius: 3px;
  background: #101820dc;
  color: #e2d2a9;
  font-size: 13px;
  letter-spacing: .06em;
}
.g-footer-trigger .g-icon { width: 15px; height: 15px; }
.g-footer-trigger:hover { background: #28313a; }
.recharge-reference { padding-bottom: 0; }
.recharge-reference > .site-footer { margin-top: 48px; }
.news-page > .site-footer { margin-top: 24px; }

@media (min-width: 681px) and (max-width: 1000px) {
  .g-legal.site-footer > .site-footer-inner { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .site-footer-brand { gap: 14px; }
  .site-footer-brand .site-footer-company-logo { width: 100px; }
  .site-footer-brand .site-footer-game-logo { width: 70px; }
  .site-footer-brand-divider { height: 46px; }
}

@media (max-width: 680px) {
  .g-legal.site-footer { padding: 28px 20px 24px; font-size: 12px; line-height: 1.65; }
  .g-legal.site-footer > .site-footer-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 460px; }
  .site-footer-main { display: block; grid-column: 1; grid-row: 2; }
  .site-footer-brand { grid-column: 1; grid-row: 1; gap: 18px; }
  .site-footer-brand .site-footer-company-logo { width: 100px; }
  .site-footer-brand .site-footer-game-logo { width: 76px; }
  .site-footer-brand-divider { height: 46px; }
  .site-footer-links { gap: 0 20px; margin: 0 0 8px; }
  .site-footer-links a, .g-legal.site-footer .support-entry { min-height: 36px; }
  .site-footer-details p:last-child { gap: 0 12px; }
  .site-footer-contact, .site-footer-developer, .site-footer-copyright { font-size: 11px; }
  .site-footer-responsible { gap: 12px; padding-top: 10px; }
  .site-footer-rating { width: 40px; }
  .site-footer-health { font-size: 11px; }
  .site-footer-health strong { margin-bottom: 0; }
  .site-footer-health span { margin: 0; }
  .g-legal.site-footer[data-footer-mode="drawer"] { max-height: calc(100svh - 76px); padding-top: 46px; }
  .g-footer-trigger { right: 18px; bottom: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-legal.site-footer[data-footer-mode="drawer"] { transition: none; }
}
