:root {
  --raja-red: #174b8d;
  --raja-red-deep: #123363;
  --raja-white: #fff;
  --raja-paper: #f4f8ff;
  --raja-gold: #e2ba55;
  --raja-gold-ink: #745108;
  --raja-ink: #172e54;
}
html body.desktop.home {
  min-height: 100vh;
  background: linear-gradient(rgba(255,255,255,.94),rgba(239,246,255,.96)),
    url('popup-banner.jpg') center top / min(100%, 780px) auto fixed, #f4f8ff;
}
body.desktop.home .app-wrapper,
body.desktop.home .recovery-page { background: rgba(255,255,255,.82); }
body.desktop.home .nav-wrapper .dropdown-menu,
body.desktop.home .nav-wrapper .sub-menu { color: var(--raja-ink); background: var(--raja-paper); }
body.desktop.home .recovery-mast,
body.desktop.home .header-wrapper,
body.desktop.home .site-footer { background-color: var(--raja-red-deep); }
body.desktop.home .game-title,
body.desktop.home .app-wrapper [data-card-carousel] .game-title { background-color: var(--raja-red); color: white; }
.raja-languages { display: flex; gap: 12px; justify-content: flex-end; padding-block: 3px 8px; }
.raja-languages a, .recovery-brand { color: #ffe5a0; }
.raja-popup:not([open]) { display: none; }
.raja-popup[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(400px, calc(100vw - 48px));
  max-width: 400px;
  max-height: calc(100dvh - 48px);
  overflow: visible;
  border: 1px solid #e2ba55;
  border-radius: 12px;
  background: #123363;
}
.raja-popup::backdrop { background: rgba(10,24,49,.76); }
.raja-popup img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 48px); object-fit: contain; border-radius: 11px; }
.raja-popup-close {
  position: absolute; top: -14px; right: -14px; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 2px solid #e2ba55; border-radius: 50%;
  background: #123363; color: #fff; cursor: pointer;
  font: 30px/1 system-ui,sans-serif;
}
.raja-popup-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Keep the local banner visible behind the old template's painted surfaces. */
html body.raja-blue-theme {
  background: linear-gradient(rgba(10,33,70,.17),rgba(10,33,70,.32)),
    url('popup-banner.jpg') center 38% / cover fixed no-repeat,
    #123363 !important;
}
.raja-blue-theme .top_navbar,
.raja-blue-theme .header-wrapper,
.raja-blue-theme #masthead,
.raja-blue-theme .recovery-mast {
  background: #123c75 !important;
  color: #fff;
}
.raja-blue-theme .nav-wrapper,
.raja-blue-theme .nav-wrapper .main-nav,
.raja-blue-theme .nav-wrapper .navlink {
  background: #194f90 !important;
  color: #fff;
}
.raja-blue-theme .nav-wrapper .navlink .nav-title { color: #fff; }
.raja-blue-theme .nav-wrapper .nav-item:hover > .navlink,
.raja-blue-theme .nav-wrapper .navlink.active { background: #2564a7 !important; }
.raja-blue-theme .header-wrapper .compliant-btn,
.raja-blue-theme .header-wrapper .btn-accent {
  background: #e6bd55 !important;
  color: #123363 !important;
  border-color: #e6bd55 !important;
}
.raja-blue-theme .header-wrapper .btn-tertiery {
  background: #fff !important;
  color: #123363 !important;
  border-color: #e6bd55 !important;
}
.raja-blue-theme .app-wrapper,
.raja-blue-theme .recovery-page {
  background: rgba(249,252,255,.91) !important;
  color: #172e54;
}
.raja-blue-theme .site-footer,
.raja-blue-theme .footer-desc,
.raja-blue-theme .recovery-footer {
  background: #123363 !important;
  color: #fff4d2;
}
.raja-blue-theme .raja-popup-login {
  position: absolute;
  inset-inline: 14px;
  bottom: 12px;
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 2px solid #fff1bf;
  border-radius: 7px;
  background: #e2ba55;
  color: #123363;
  font: 800 16px/1.2 system-ui,sans-serif;
  text-decoration: none;
}
.raja-blue-theme .raja-popup-login:hover,
.raja-blue-theme .raja-popup-login:focus-visible { background: #ffe599; }
@media (max-width: 767px) {
  html body.raja-blue-theme { background-attachment: scroll !important; }
}

/* Expose the artwork behind the homepage tracks, while keeping the cards legible. */
html body.raja-blue-theme .raja-catalog-backdrop,
html body.raja-blue-theme .raja-catalog-backdrop [data-card-carousel],
html body.raja-blue-theme .raja-catalog-backdrop [data-card-carousel] .title-wrapper,
html body.raja-blue-theme .raja-catalog-backdrop [data-card-carousel] .content-wrapper,
html body.raja-blue-theme .raja-catalog-backdrop [data-card-track] {
  background: transparent !important;
}
html body.raja-blue-theme .raja-catalog-backdrop [data-card-carousel] .u-section-title {
  color: #ffe18a !important;
  text-shadow: 0 1px 3px #12233e, 0 0 8px #12233e;
}
