/* Payment methods and the service-card deck keep the footer compact. */
.yb-game-footer.footer {
  --footer-ink: #153d5a;
  --footer-muted: #41637c;
  --footer-layout-gap: clamp(16px, 1.25vw, 28px);
  --footer-panel: linear-gradient(135deg, #fafdfff0, #eaf5fbe8);
  --footer-control-panel: linear-gradient(115deg, #0b466deb, #082b49e0);
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0;
  padding: 18px max(4%, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(4%, env(safe-area-inset-left));
  border: 0;
  background: transparent;
  color: var(--footer-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.yb-game-footer, .yb-game-footer * { box-sizing: border-box; }
.yb-game-footer a { color: inherit; text-decoration: none; }
.yb-game-footer :is(a, select, [tabindex]):focus-visible { outline: 3px solid #1595c9; outline-offset: 4px; }
.yb-game-footer svg { display: block; flex: 0 0 auto; }

/* Layout wrappers are intentionally clear: only the individual groups have panels. */
.yb-game-footer :is(.footer__shell, .footer__main, .footer__left, .footer__right) {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.yb-game-footer .footer__shell { width: 100%; margin: 0; }
.yb-game-footer .footer__main { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: var(--footer-layout-gap); }
.yb-game-footer .footer__left { display: grid; grid-column: span 4; gap: var(--footer-layout-gap); }
.yb-game-footer .footer__currency-row {
  min-width: 0;
  border: 1px solid #ffffffa6;
  border-radius: 3px;
  background: var(--footer-panel);
  box-shadow: 0 2px 0 #375f7a26;
}
.yb-game-footer .footer__mini-payments {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.yb-game-footer .footer__mini-payments img { display: block; width: 1320px; min-width: 0; max-width: none; height: auto; user-select: none; }
.yb-game-footer .footer__payments { min-width: 0; width: min(100%, calc(min(1650px, 96vw) - 378px)); }
.js .yb-game-footer .footer__payments .footer__mini-payments { scrollbar-width: none; }
.js .yb-game-footer .footer__payments .footer__mini-payments::-webkit-scrollbar { display: none; }
/* Always-visible pink/blue rail, matching the original footer's scrollbar. */
.yb-game-footer .footer__payment-scroll { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.yb-game-footer .footer__payment-scroll[hidden] { display: none; }
.js .yb-game-footer .footer__payment-scroll[hidden] { display: block; visibility: hidden; }
.yb-game-footer .footer__payment-scroll::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg,rgba(255,205,228,.35),rgba(210,225,255,.35)); }
.yb-game-footer .footer__payment-scroll::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: var(--payment-thumb-width,48px); height: 8px; border: 0; border-radius: 999px; background: linear-gradient(90deg,#ff9ecf,#9bbcff); }
.yb-game-footer .footer__payment-scroll::-moz-range-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg,rgba(255,205,228,.35),rgba(210,225,255,.35)); }
.yb-game-footer .footer__payment-scroll::-moz-range-thumb { width: var(--payment-thumb-width,48px); height: 8px; border: 0; border-radius: 999px; background: linear-gradient(90deg,#ff9ecf,#9bbcff); }
.yb-game-footer .footer__payment-scroll:disabled { cursor: default; opacity: .65; }
/* Full-size windows fan from the upper-left to the active lower-right window. */
.yb-game-footer .yb-footer-nav { --footer-stack-step: 26px; --footer-stack-inset: 78px; position: relative; min-width: 0; }
.yb-game-footer .yb-footer-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.yb-game-footer .yb-footer-panel { min-width: 0; margin: 0; padding: 16px; border: 1px solid #88bad180; border-left: 3px solid #ffe173; border-radius: 7px 3px; background: linear-gradient(115deg,#153d59f5,#0b263eeb); }
.yb-game-footer .yb-footer-panel__title { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 12px; color: #ffe173; font-size: 17px; font-weight: 800; line-height: 1.4; text-shadow: 0 1px 3px #00101d; }
.yb-game-footer .yb-footer-panel__icon { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; color: #c0ebff; }
.yb-game-footer .yb-footer-panel__icon svg { width: 24px; height: 24px; }
.yb-game-footer .yb-footer-panel ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0 0 4px; list-style: none; }
.yb-game-footer .yb-footer-panel li { min-width: 0; margin: 0; padding: 0; }
.yb-game-footer .yb-footer-panel a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; height: 100%; margin: 0; padding: 10px 14px; border: 1px solid #82b6ce55; border-left: 2px solid #a6d7e699; border-radius: 2px; background-color: #0c293f; color: #e8f2f8; font-size: 14px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; text-shadow: 0 1px 2px #001924; transition: background-color .18s ease, border-color .18s ease, translate .18s ease; }
.yb-game-footer .yb-footer-panel a::after { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-top: 2px solid #e9c879; border-right: 2px solid #e9c879; transform: rotate(45deg); }
.yb-game-footer .yb-footer-panel a:focus-visible { outline-color: #ffe173; outline-offset: 2px; }
.yb-game-footer .yb-footer-deck-controls[hidden] { display: none; }
.yb-game-footer .yb-footer-deck-controls { position: absolute; top: calc(var(--footer-stack-inset) + 16px); right: 40px; z-index: 6; display: flex; align-items: center; gap: 3px; }
.yb-game-footer .yb-footer-deck-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #8abbd280; border-radius: 4px; background: #163e5b; color: #e5f6ff; cursor: pointer; touch-action: manipulation; }
.yb-game-footer .yb-footer-deck-controls button:focus-visible { outline: 2px solid #ffe173; outline-offset: 2px; }
.yb-game-footer .yb-footer-position { min-width: 27px; color: #d6eaf6; font-size: 11px; font-weight: 700; text-align: center; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-stack { grid-template-columns: minmax(0,1fr); gap: 0; padding: var(--footer-stack-inset) 24px 24px var(--footer-stack-inset); isolation: isolate; touch-action: pan-x pinch-zoom; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel { grid-area: 1 / 1; position: relative; pointer-events: none; background: linear-gradient(115deg,#153d59,#0b263e); box-shadow: 0 6px 14px #00101d30; transform: translate(calc(var(--footer-depth) * var(--footer-stack-step) * -1),calc(var(--footer-depth) * var(--footer-stack-step) * -1)); transition: transform .36s cubic-bezier(.22,.68,.2,1); }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel[data-yb-footer-depth="1"] { background: linear-gradient(115deg,#15334d,#0b2339); }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel[data-yb-footer-depth="2"] { background: linear-gradient(115deg,#112c43,#091c30); }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel[data-yb-footer-depth="3"] { background: linear-gradient(115deg,#0d253a,#07182a); }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel::before { content: attr(data-yb-footer-label); position: absolute; top: 4px; left: 12px; color: #b9d9ea; font-size: 12px; font-weight: 700; line-height: 18px; opacity: 1; transition: opacity .14s ease; pointer-events: none; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel > * { opacity: 0; transition: opacity .16s ease; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel__title { padding-right: 126px; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel.is-current { pointer-events: auto; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel.is-current::before { content: ""; opacity: 0; }
.yb-game-footer [data-yb-footer-ready] .yb-footer-panel.is-current > * { opacity: 1; }


.yb-game-footer .footer__right { display: grid; align-content: start; gap: var(--footer-layout-gap); }
.yb-game-footer .footer__social-head { display: grid; min-width: 0; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.yb-game-footer .footer__social-title { color: #f0f8ff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 2px #00101d, 0 2px 7px #00101df2; }
.yb-game-footer .footer__list-social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.yb-game-footer .footer__list-social a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #bdd6e3;
  border-radius: 3px;
  background: #ffffffb3;
}
.yb-game-footer .footer__list-social img { display: block; width: 24px; height: 24px; object-fit: contain; }
.yb-game-footer .footer__app-btn {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 10px;
  padding: 11px;
  color: #f5fbff;
}
.yb-game-footer .footer__app-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #80d9ffa6;
  border-left: 3px solid #ffe173;
  background: var(--footer-control-panel);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  pointer-events: none;
}
.yb-game-footer .footer__app-btn img { width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.yb-game-footer .footer__app-label { min-width: 0; color: #f5fbff; font-size: 12px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; text-shadow: 0 1px 3px #001423; }
.yb-game-footer .footer__currency-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; padding: 11px 12px; }
.yb-game-footer .footer__currency-text { color: var(--footer-muted); font-size: 12px; line-height: 1.5; }
.yb-game-footer .footer__currency { min-width: 86px; max-width: 100%; }
.yb-game-footer .footer__currency .currency-picker { min-height: 44px; padding: 8px 28px 8px 12px; border: 1px solid #a8cbdc; border-radius: 2px; background-color: #fff; color: var(--footer-ink); font: inherit; }

.yb-game-footer .copyright__content {
  display: flex;
  width: 100%;
  min-height: 26px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin: 11px auto 0;
  background: transparent;
  color: #f5fbff;
  font-size: 14px;
  line-height: 1.6;
}
.yb-game-footer :is(.copyright__company, .footer__legal-link) { display: inline-flex; min-width: 0; max-width: 100%; min-height: 44px; align-items: center; padding: 9px 0; border: 0; background: transparent; color: #f5fbff; font-weight: 700; text-shadow: 0 1px 2px #00101d, 0 2px 7px #00101df2; }
.yb-game-footer .copyright__company { overflow-wrap: anywhere; }
.yb-game-footer .footer__legal-link { gap: 8px; text-underline-offset: 4px; }
.yb-game-footer :is(.footer__legal-icon, .footer__legal-arrow) { color: #ffe173; filter: drop-shadow(0 1px 2px #00101d); }
.yb-game-footer .footer__legal-icon { width: 17px; height: 17px; }
.yb-game-footer .footer__legal-arrow { width: 15px; height: 15px; }
.yb-game-footer .footer__legal-text { min-width: 0; overflow-wrap: anywhere; }
.yb-game-home .yb-game-footer.footer { padding-top: 12px; }

@media (min-width: 1090px) {
  .yb-game-footer :is(.footer__social-title, .footer__currency-text) { font-size: clamp(13px, .8vw, 16px); }
  .yb-game-footer .footer__app-label { font-size: clamp(14px, .85vw, 17px); }
  .yb-game-footer .footer__app-btn { min-height: 84px; padding: 14px; }
  .yb-game-footer .copyright__content { font-size: clamp(14px, .85vw, 16px); }
}
@media (hover: hover) {
  .yb-game-footer .yb-footer-panel a:hover { color: #fff; background-color: #20465f; border-color: #a2d8e9; translate: 2px 0; text-decoration: none; }
  .yb-game-footer .footer__legal-link:hover { color: #a2e9ff; text-decoration: underline; }
  .yb-game-footer .footer__list-social a:hover { border-color: #299acc; background: #e6f6ff; }
  .yb-game-footer .footer__app-btn:hover::before { background: linear-gradient(115deg, #13618a, #0b3a60); border-color: #b1ebff; }
}
.yb-game-footer .yb-footer-panel a:active { translate: 0 1px; }
@media (max-width: 1089px) {
  .yb-game-footer .footer__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .yb-game-footer .footer__left { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .yb-game-footer .footer__payments { width: 100%; }
  .yb-game-footer .footer__mini-payments img { width: 1100px; }
}
@media (max-width: 700px) {
  .yb-game-footer.footer { --footer-layout-gap: 14px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .yb-game-footer .footer__mini-payments img { width: auto; height: 32px; }
  .yb-game-footer .footer__main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .yb-game-footer .footer__left { grid-column: auto; }
  .yb-game-footer .yb-footer-stack { grid-template-columns: minmax(0,1fr); }
  .yb-game-footer .yb-footer-panel { padding: 10px; }
  .yb-game-footer .yb-footer-panel__title { font-size: 15px; gap: 6px; }
  .yb-game-footer .yb-footer-panel__icon { flex-basis: 22px; width: 22px; }
  .yb-game-footer .yb-footer-panel__icon svg { width: 21px; height: 21px; }
  .yb-game-footer .yb-footer-nav { --footer-stack-step: 18px; --footer-stack-inset: 54px; }
  .yb-game-footer .yb-footer-deck-controls { top: calc(var(--footer-stack-inset) + 10px); right: 26px; gap: 2px; }
  .yb-game-footer [data-yb-footer-ready] .yb-footer-stack { padding-right: 16px; padding-bottom: 16px; }
  .yb-game-footer [data-yb-footer-ready] .yb-footer-panel::before { top: 1px; left: 8px; font-size: 11px; line-height: 15px; }
  .yb-game-footer [data-yb-footer-ready] .yb-footer-panel__title { padding-right: 112px; }
  .yb-game-footer .yb-footer-panel__title { margin-bottom: 8px; }
  .yb-game-footer .yb-footer-panel ul { gap: 8px; }
  .yb-game-footer .yb-footer-panel a { min-height: 50px; padding: 8px 9px; gap: 6px; font-size: 13px; }
  .yb-game-footer .footer__right { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .yb-game-footer .footer__social-head { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
  .yb-game-footer .footer__list-social { flex-wrap: nowrap; gap: 6px; }
  .yb-game-footer .footer__app-btn { min-height: 48px; width: auto; gap: 6px; padding: 7px 9px; }
  .yb-game-footer .footer__app-btn img { width: 30px; height: 30px; flex-basis: 30px; }
  .yb-game-footer .footer__app-label { font-size: 12px; line-height: 1.4; }
  .yb-game-footer .footer__currency-row { grid-column: 2; justify-self: end; flex-wrap: nowrap; padding: 0; gap: 6px; border: 0; background: transparent; box-shadow: none; }
  :is(.yb-game-home,.template-collection,.template-search,.template-cart) .yb-game-footer .footer__currency-text { color: #f5fbff; text-shadow: 0 1px 3px #00101d; }
  .yb-game-footer .copyright__content { justify-content: center; margin-top: 12px; font-size: 13px; text-align: center; }
}
@media (max-width: 420px) {
  .yb-game-footer .yb-footer-nav { --footer-stack-step: 16px; --footer-stack-inset: 48px; }
  .yb-game-footer.footer { --footer-layout-gap: 12px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
}
@media (max-width: 360px) {
  .yb-game-footer [data-yb-footer-ready] .yb-footer-panel__title { min-height: 84px; padding-right: 0; align-items: flex-start; }
  .yb-game-footer .yb-footer-deck-controls { top: calc(var(--footer-stack-inset) + 42px); }
}
@media (prefers-reduced-motion: reduce) {
  .yb-game-footer [data-yb-footer-ready] .yb-footer-panel, .yb-game-footer [data-yb-footer-ready] .yb-footer-panel::before, .yb-game-footer [data-yb-footer-ready] .yb-footer-panel > *, .yb-game-footer .yb-footer-panel a { transition: none; }
}

