:root {
  --theme-bg: #170c0d;
  --theme-bg-2: #350d10;
  --theme-surface: rgba(28, 13, 15, 0.9);
  --theme-text: #fff7f0;
  --theme-muted: #cbb8ae;
  --theme-accent: #ef493c;
  --theme-accent-2: #ffb45e;
  --theme-border: rgba(255, 123, 92, 0.28);
  --theme-shadow: rgba(37, 0, 4, 0.48);
  --theme-radius: 18px;
  --theme-card-radius: 14px;
  --theme-font: "Quicksand", "Segoe UI", sans-serif;
  --theme-display: "PUSAB", "Arial Black", sans-serif;
  --theme-header: rgba(20, 8, 10, 0.93);
  color-scheme: dark;
}
html[data-site-theme="neon-grid"] {
  --theme-bg: #080b18;
  --theme-bg-2: #151044;
  --theme-surface: rgba(12, 16, 38, 0.9);
  --theme-text: #edf8ff;
  --theme-muted: #98a8c8;
  --theme-accent: #8b5cf6;
  --theme-accent-2: #26e6d1;
  --theme-border: rgba(92, 228, 255, 0.28);
  --theme-shadow: rgba(20, 4, 64, 0.58);
  --theme-radius: 8px;
  --theme-card-radius: 4px;
  --theme-font: "Segoe UI", sans-serif;
  --theme-header: rgba(6, 9, 25, 0.94);
}
html[data-site-theme="aurora"] {
  --theme-bg: #f3f7f4;
  --theme-bg-2: #dfeee7;
  --theme-surface: rgba(255, 255, 255, 0.92);
  --theme-text: #17241e;
  --theme-muted: #607269;
  --theme-accent: #087f68;
  --theme-accent-2: #b76531;
  --theme-border: rgba(20, 95, 77, 0.18);
  --theme-shadow: rgba(42, 85, 69, 0.16);
  --theme-radius: 28px;
  --theme-card-radius: 22px;
  --theme-font: Georgia, "Times New Roman", serif;
  --theme-display: Georgia, "Times New Roman", serif;
  --theme-header: rgba(248, 252, 249, 0.94);
  color-scheme: light;
}
html[data-site-theme="obsidian-gold"] {
  --theme-bg: #0c0d0e;
  --theme-bg-2: #1a1813;
  --theme-surface: rgba(23, 23, 21, 0.94);
  --theme-text: #f4f0e6;
  --theme-muted: #a9a397;
  --theme-accent: #c9a453;
  --theme-accent-2: #f0d991;
  --theme-border: rgba(211, 177, 99, 0.25);
  --theme-shadow: rgba(0, 0, 0, 0.68);
  --theme-radius: 2px;
  --theme-card-radius: 2px;
  --theme-font: "Segoe UI", sans-serif;
  --theme-display: Georgia, "Times New Roman", serif;
  --theme-header: rgba(10, 10, 9, 0.96);
}
html[data-site-theme="pixel-pop"] {
  --theme-bg: #fff4d8;
  --theme-bg-2: #ffd8df;
  --theme-surface: rgba(255, 255, 255, 0.95);
  --theme-text: #24203a;
  --theme-muted: #69627d;
  --theme-accent: #e94b73;
  --theme-accent-2: #276ac4;
  --theme-border: #24203a;
  --theme-shadow: rgba(36, 32, 58, 0.28);
  --theme-radius: 16px;
  --theme-card-radius: 12px;
  --theme-font: "Quicksand", "Segoe UI", sans-serif;
  --theme-display: "PUSAB", "Arial Black", sans-serif;
  --theme-header: rgba(255, 248, 228, 0.97);
  color-scheme: light;
}
html,
body {
  background-color: var(--theme-bg) !important;
}
body {
  color: var(--theme-text) !important;
  font-family: var(--theme-font) !important;
  background-image:
    radial-gradient(
      circle at 8% 3%,
      color-mix(in srgb, var(--theme-accent) 20%, transparent),
      transparent 31rem
    ),
    radial-gradient(
      circle at 90% 28%,
      color-mix(in srgb, var(--theme-accent-2) 15%, transparent),
      transparent 34rem
    ),
    linear-gradient(145deg, var(--theme-bg), var(--theme-bg-2)) !important;
  background-attachment: fixed !important;
}
h1,
h2,
h3,
.f-pusad,
.auth-title {
  font-family: var(--theme-display) !important;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--theme-accent) !important;
  outline-offset: 3px;
}
.legacy-site-header,
.arcade-header {
  background: var(--theme-header) !important;
  border-color: var(--theme-border) !important;
  box-shadow: 0 16px 44px var(--theme-shadow) !important;
  backdrop-filter: blur(18px) saturate(125%);
}
.legacy-game-search,
.arcade-search {
  color: var(--theme-text) !important;
  background: var(--theme-surface) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius) !important;
}
.legacy-game-search input,
.arcade-search input {
  color: var(--theme-text) !important;
}
.legacy-game-search button,
.auth-btn {
  color: #fff !important;
  background: var(--theme-accent) !important;
}
.menu-backdrop {
  background: var(--theme-bg-2) !important;
}
.menu-items a:hover {
  color: var(--theme-accent-2) !important;
  background: var(--theme-surface) !important;
}
.content-box,
.auth-container,
.profile-card,
.game-card,
.card {
  color: var(--theme-text) !important;
  background: var(--theme-surface) !important;
  border-color: var(--theme-border) !important;
  border-radius: var(--theme-card-radius) !important;
  box-shadow: 0 22px 60px var(--theme-shadow) !important;
}
.content-box {
  max-width: 78rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3.5rem) !important;
}
.content-box p,
.content-box li {
  color: var(--theme-muted);
  line-height: 1.78;
}
.content-box h2 {
  color: var(--theme-accent-2);
  margin-top: 1.7em;
  letter-spacing: -0.025em;
}
.g-gradient,
.r-gradient,
.playBT,
.arcade-tool-button {
  color: #fff !important;
  background: var(--theme-accent) !important;
  border-color: var(--theme-accent-2) !important;
  border-radius: calc(var(--theme-radius) * 0.72) !important;
  box-shadow: 0 8px 0 var(--theme-shadow) !important;
}
.g-gradient:hover,
.r-gradient:hover,
.playBT:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}
.g-gradient:active,
.r-gradient:active,
.playBT:active {
  transform: translateY(2px) scale(0.99);
}
.blue-pink-gradient {
  background: linear-gradient(
    155deg,
    var(--theme-bg-2),
    var(--theme-bg)
  ) !important;
}
.footer-bg {
  background: linear-gradient(
    180deg,
    transparent,
    var(--theme-bg-2) 40%
  ) !important;
}
.text-white {
  color: var(--theme-text) !important;
}
.text-success,
a {
  color: var(--theme-accent-2);
}
::-webkit-scrollbar-thumb {
  background: var(--theme-accent);
}
html[data-site-theme="neon-grid"] body {
  background-image:
    linear-gradient(rgba(67, 218, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 218, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, #281866, transparent 48%),
    linear-gradient(145deg, var(--theme-bg), var(--theme-bg-2)) !important;
  background-size:
    32px 32px,
    32px 32px,
    auto,
    auto !important;
}
html[data-site-theme="neon-grid"] .grid-container {
  gap: 3px;
}
html[data-site-theme="neon-grid"] .grid-item img {
  border-radius: 2px;
  filter: saturate(1.2);
}
html[data-site-theme="neon-grid"] .legacy-site-header-inner {
  grid-template-columns: 1fr minmax(280px, 420px) 1fr 64px;
}
html[data-site-theme="neon-grid"] .legacy-game-search {
  grid-column: 2;
}
html[data-site-theme="aurora"] .legacy-site-header-inner {
  max-width: 1180px;
  margin: auto;
  grid-template-columns: 1fr minmax(260px, 340px) auto;
}
html[data-site-theme="aurora"] .legacy-game-search {
  grid-column: 2;
}
html[data-site-theme="aurora"] .legacy-site-header .menu-container {
  grid-column: 3;
}
html[data-site-theme="aurora"] .grid-container {
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 190px;
}
html[data-site-theme="aurora"] .grid-item img {
  object-fit: cover;
  border-radius: 80px 80px 20px 20px;
}
html[data-site-theme="aurora"] .content-box {
  border: 0 !important;
}
html[data-site-theme="obsidian-gold"] body {
  letter-spacing: 0.012em;
}
html[data-site-theme="obsidian-gold"] .legacy-site-header {
  border-bottom: 1px solid var(--theme-accent) !important;
}
html[data-site-theme="obsidian-gold"] .legacy-site-header-inner {
  max-width: 1440px;
  margin: auto;
}
html[data-site-theme="obsidian-gold"] .grid-container {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: 260px;
}
html[data-site-theme="obsidian-gold"] .grid-item img {
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(0.25) contrast(1.08);
}
html[data-site-theme="obsidian-gold"] .content-box {
  border-left: 3px solid var(--theme-accent) !important;
}
html[data-site-theme="pixel-pop"] body {
  background-image:
    radial-gradient(#e94b73 1.2px, transparent 1.2px),
    linear-gradient(145deg, var(--theme-bg), var(--theme-bg-2)) !important;
  background-size:
    22px 22px,
    auto !important;
}
html[data-site-theme="pixel-pop"] .legacy-site-header,
html[data-site-theme="pixel-pop"] .content-box,
html[data-site-theme="pixel-pop"] .auth-container {
  border: 3px solid var(--theme-border) !important;
  box-shadow: 7px 7px 0 var(--theme-border) !important;
}
html[data-site-theme="pixel-pop"] .grid-container {
  gap: 14px;
  transform: rotate(-0.25deg);
}
html[data-site-theme="pixel-pop"] .grid-item:nth-child(even) {
  transform: translateY(12px) rotate(1deg);
}
html[data-site-theme="pixel-pop"] .grid-item img {
  border: 3px solid var(--theme-border);
  border-radius: 10px;
}
@media (max-width: 768px) {
  html[data-site-theme] .legacy-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  html[data-site-theme] .legacy-game-search {
    grid-column: 1/-1;
    grid-row: 2;
  }
  html[data-site-theme] .legacy-site-logo {
    grid-column: 1;
    grid-row: 1;
  }
  html[data-site-theme] .legacy-site-header .menu-container {
    grid-column: 2;
    grid-row: 1;
  }
  .content-box {
    padding: 1.15rem !important;
  }
  html[data-site-theme] .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(142px, 42vw) !important;
    gap: 8px !important;
    width: 100%;
    padding: 8px !important;
  }
  html[data-site-theme] .grid-item {
    min-width: 0;
    transform: none !important;
  }
  html[data-site-theme] .grid-item img {
    max-width: 100%;
  }
}

/* Portal layout correction: rails stay in document flow and never cover the game. */
@media (min-width: 1100px) {
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {
    display: grid !important;
    align-items: start !important;
    justify-content: stretch !important;
    gap: 18px;
    width: min(100% - 28px, 1540px);
    max-width: none;
    margin: 24px auto 0 !important;
    padding: 0 !important;
  }
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround {
    grid-template-columns: minmax(220px, 280px) minmax(560px, 920px) minmax(220px, 280px);
  }
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround {
    grid-template-columns: minmax(640px, 1fr) 164px;
    max-width: 1320px;
  }
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {
    grid-template-columns: 94px minmax(620px, 980px) 176px;
    max-width: 1320px;
  }
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround > .game-ad-side,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .game-ad-side,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround > .game-ad-side,
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround > .marquee-container,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .marquee-container,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround > .marquee-container {
    display: none !important;
  }
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround > .col-md-10,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .col-md-10,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround > .col-md-10 {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    transform: none !important;
  }
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .col-md-10 {
    grid-column: 1;
  }
  html[data-site-theme="orbit-deck"] .theme-game-surround,
  html[data-site-theme="arcade-cabinet"] .theme-game-surround,
  html[data-site-theme="mosaic-arena"] .theme-game-surround {
    display: contents !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    transform: none !important;
    pointer-events: auto;
  }
  html[data-site-theme="orbit-deck"] .theme-game-rail,
  html[data-site-theme="arcade-cabinet"] .theme-game-rail,
  html[data-site-theme="mosaic-arena"] .theme-game-rail {
    position: static;
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
  }
  html[data-site-theme="orbit-deck"] .theme-game-rail-left {grid-column:1;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-site-theme="orbit-deck"] .theme-game-rail-right {grid-column:3;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-site-theme="arcade-cabinet"] .theme-game-rail-left {display:none}
  html[data-site-theme="arcade-cabinet"] .theme-game-rail-right {grid-column:2;grid-row:1;grid-template-columns:1fr;gap:8px}
  html[data-site-theme="mosaic-arena"] .theme-game-rail-left {grid-column:1;grid-row:1;grid-template-columns:1fr;gap:10px}
  html[data-site-theme="mosaic-arena"] .theme-game-rail-right {grid-column:3;grid-row:1;grid-template-columns:1fr;gap:12px}

  html[data-site-theme="orbit-deck"] .theme-surround-card,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card,
  html[data-site-theme="mosaic-arena"] .theme-surround-card {
    position: static !important;
    inset: auto !important;
    display: grid;
    width: auto !important;
    height: auto !important;
    padding: 7px;
    transform: none !important;
    overflow: hidden;
    text-decoration: none;
  }
  html[data-site-theme="orbit-deck"] .theme-surround-card {
    grid-template-rows: 94px auto;
    gap: 7px;
    border: 1px solid rgba(87,185,169,.35);
    border-radius: 13px;
  }
  html[data-site-theme="arcade-cabinet"] .theme-surround-card {
    grid-template-rows: 82px;
    padding: 4px;
    border: 1px solid #3b3b43;
    border-radius: 8px;
  }
  html[data-site-theme="mosaic-arena"] .theme-surround-card {
    grid-template-rows: 72px auto;
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(24,33,49,.2);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(45,61,85,.13);
  }
  html[data-site-theme="mosaic-arena"] .theme-game-rail-left .theme-surround-card {
    grid-template-rows: 72px;
    padding: 3px;
  }
  html[data-site-theme="orbit-deck"] .theme-surround-card img,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card img,
  html[data-site-theme="mosaic-arena"] .theme-surround-card img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    border: 0;
    border-radius: 8px !important;
    object-fit: cover;
  }
  .theme-surround-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--theme-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  html[data-site-theme="arcade-cabinet"] .theme-surround-title,
  html[data-site-theme="mosaic-arena"] .theme-game-rail-left .theme-surround-title {display:none}

  html[data-site-theme="orbit-deck"] .home-iframe-area #bgame,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area #bgame,
  html[data-site-theme="mosaic-arena"] .home-iframe-area #bgame {
    overflow: hidden;
    border-radius: var(--theme-card-radius) !important;
  }
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .col-md-10 {
    padding: 12px !important;
    border: 1px solid #32323a;
    border-top: 5px solid var(--theme-accent);
    border-radius: 10px;
    box-shadow: 0 16px 44px rgba(0,0,0,.32);
  }
  html[data-site-theme="mosaic-arena"] .home-iframe-area #bgame {
    border: 1px solid rgba(24,33,49,.22);
    box-shadow: 0 18px 44px rgba(45,61,85,.18) !important;
  }
}

@media (max-width: 1099px) {
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {
    display: block !important;
    width: 100%;
    margin: 12px auto 0 !important;
    padding: 0 10px 16px !important;
  }
  html[data-site-theme="orbit-deck"] .theme-game-surround,
  html[data-site-theme="arcade-cabinet"] .theme-game-surround,
  html[data-site-theme="mosaic-arena"] .theme-game-surround {
    display: none !important;
  }
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround > .col-md-10,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .col-md-10,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround > .col-md-10 {
    width: 100% !important;
    max-width: 920px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Blend the game discovery area into the page and remove legacy vertical gaps. */
html[data-site-theme] .top-margin-home1 {
  margin-top: 24px !important;
  margin-bottom: 32px !important;
}
html[data-site-theme] .blue-pink-gradient,
html[data-site-theme] .game-related-band {
  background: transparent !important;
  background-image: none !important;
}
html[data-site-theme] .top-margin-home2 {
  margin-top: 0 !important;
}
html[data-site-theme] .top-margin-home2 > .mt-5.py-5 {
  margin-top: 0 !important;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

/* Empty side-ad slots must not stretch the gameplay row to 620px. */
html[data-site-theme] .home-iframe-area {
  --home-game-height: 200px;
  align-items: flex-start !important;
  margin-top: 5px !important;
  isolation: isolate;
}
html[data-site-theme] .home-iframe-area > .marquee-container {
  position: absolute !important;
  inset: calc(var(--home-game-height) - 100px) 0 auto !important;
  z-index: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none;
  pointer-events: none;
  opacity: 0.62;
}
@media (min-width: 375px) {
  html[data-site-theme] .home-iframe-area {
    --home-game-height: 315px;
  }
}
@media (min-width: 550px) {
  html[data-site-theme] .home-iframe-area {
    --home-game-height: 410px;
  }
}
@media (min-width: 881px) {
  html[data-site-theme] .home-iframe-area {
    --home-game-height: 500px;
  }
}
html[data-site-theme] .home-iframe-area > .marquee-container .marquee {
  margin: 0 !important;
}
html[data-site-theme] .home-iframe-area > :not(.marquee-container) {
  position: relative;
  z-index: 1;
}
html[data-site-theme] .home-iframe-area .game-ad-side {
  min-height: 0 !important;
}
html[data-site-theme]
  .home-iframe-area
  .game-ad-inner:not(:has(iframe, img, video, object, embed)),
html[data-site-theme]
  .home-iframe-area
  .game-ad-bottom:not(:has(iframe, img, video, object, embed)) {
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
html[data-site-theme]
  .home-iframe-area
  .game-ad-side:has(
    .game-ad-inner:not(:has(iframe, img, video, object, embed))
  ) {
  display: none !important;
}

/* Orbit Deck: a centered play surface with related games in four orbital bays. */
html[data-site-theme="orbit-deck"] {
  --theme-bg: #0b1518;
  --theme-bg-2: #13282c;
  --theme-surface: rgba(17, 35, 38, 0.94);
  --theme-text: #ecf6f2;
  --theme-muted: #a4bbb5;
  --theme-accent: #57b9a9;
  --theme-accent-2: #f0a35c;
  --theme-border: rgba(121, 214, 197, 0.24);
  --theme-shadow: rgba(1, 10, 12, 0.62);
  --theme-radius: 24px;
  --theme-card-radius: 18px;
  --theme-font: "Segoe UI", Arial, sans-serif;
  --theme-display: "PUSAB", "Arial Black", sans-serif;
  --theme-header: rgba(8, 21, 24, 0.94);
}
html[data-site-theme="orbit-deck"] body {
  background-image: radial-gradient(circle at 50% 16%, rgba(87,185,169,.17), transparent 34rem), linear-gradient(160deg, var(--theme-bg), var(--theme-bg-2)) !important;
}
html[data-site-theme="orbit-deck"] .legacy-site-header-inner {max-width:1380px;margin:auto;grid-template-columns:280px minmax(300px,520px) 1fr 64px}
html[data-site-theme="orbit-deck"] .legacy-game-search {grid-column:2}
html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround {max-width:1480px;margin-inline:auto!important;padding:54px 190px 20px!important}
html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround > .col-md-10 {width:100%!important;max-width:980px!important;flex:0 0 auto!important}
html[data-site-theme="orbit-deck"] .home-iframe-area #bgame {border:1px solid var(--theme-border);box-shadow:0 30px 80px var(--theme-shadow)}
html[data-site-theme="orbit-deck"] .theme-game-surround {position:absolute;inset:0;pointer-events:none}
html[data-site-theme="orbit-deck"] .theme-surround-card {position:absolute;display:block;width:142px;height:142px;padding:8px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface);box-shadow:0 18px 45px var(--theme-shadow);pointer-events:auto;overflow:hidden}
html[data-site-theme="orbit-deck"] .theme-surround-card-1 {left:18px;top:34px}
html[data-site-theme="orbit-deck"] .theme-surround-card-2 {left:36px;bottom:42px}
html[data-site-theme="orbit-deck"] .theme-surround-card-3 {right:18px;top:34px}
html[data-site-theme="orbit-deck"] .theme-surround-card-4 {right:36px;bottom:42px}
html[data-site-theme="orbit-deck"] .theme-surround-card img {width:100%;height:100%;margin:0!important;border-radius:12px!important;object-fit:cover}
html[data-site-theme="orbit-deck"] .theme-surround-card .game-thumb-title {border-radius:0 0 12px 12px}
html[data-site-theme="orbit-deck"] .game-related-list,
html[data-site-theme="orbit-deck"] .top-margin-home2 > .mt-5.py-5 {display:none!important}
html[data-site-theme="orbit-deck"] .grid-container {grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:150px;gap:16px;max-width:1380px;margin:auto}
html[data-site-theme="orbit-deck"] .grid-item:nth-child(7n+1),html[data-site-theme="orbit-deck"] .grid-item:nth-child(7n+5){grid-column:span 2;grid-row:span 2}
html[data-site-theme="orbit-deck"] .grid-item img {object-fit:cover;border-radius:16px}
html[data-site-theme="orbit-deck"] .content-comments-layout {grid-template-columns:minmax(0,1.6fr) minmax(280px,.7fr)}

/* Arcade Cabinet: the recommendation strip becomes the marquee above a framed cabinet. */
html[data-site-theme="arcade-cabinet"] {
  --theme-bg: #171719;
  --theme-bg-2: #272428;
  --theme-surface: #222225;
  --theme-text: #f8f3e7;
  --theme-muted: #c5beb0;
  --theme-accent: #e94a33;
  --theme-accent-2: #f2c84b;
  --theme-border: rgba(242, 200, 75, 0.42);
  --theme-shadow: rgba(4, 4, 5, 0.72);
  --theme-radius: 10px;
  --theme-card-radius: 8px;
  --theme-font: "Segoe UI", Arial, sans-serif;
  --theme-display: "PUSAB", "Arial Black", sans-serif;
  --theme-header: rgba(21, 21, 23, 0.97);
}
html[data-site-theme="arcade-cabinet"] body {background-image:linear-gradient(90deg,rgba(242,200,75,.035) 1px,transparent 1px),linear-gradient(180deg,var(--theme-bg),var(--theme-bg-2))!important;background-size:72px 100%,auto!important}
html[data-site-theme="arcade-cabinet"] .legacy-site-header {border-bottom:4px solid var(--theme-accent)!important}
html[data-site-theme="arcade-cabinet"] .legacy-site-header-inner {max-width:1240px;margin:auto;grid-template-columns:220px minmax(300px,1fr) 64px}
html[data-site-theme="arcade-cabinet"] .legacy-game-search {grid-column:2}
html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround {max-width:1240px;margin-inline:auto!important;padding:164px 84px 30px!important}
html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .col-md-10 {width:100%!important;max-width:980px!important;flex:0 0 auto!important;padding:18px 22px 24px!important;border:3px solid var(--theme-accent);border-top:14px solid var(--theme-accent-2);border-radius:10px;background:#1c1c1f;box-shadow:18px 22px 0 rgba(0,0,0,.3)}
html[data-site-theme="arcade-cabinet"] .theme-game-surround {position:absolute;left:50%;top:18px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px;width:min(940px,calc(100% - 40px));transform:translateX(-50%)}
html[data-site-theme="arcade-cabinet"] .theme-surround-card {position:relative;display:block;height:126px;padding:6px;border:2px solid #444;border-radius:8px;background:#202024;overflow:hidden;box-shadow:0 9px 0 rgba(0,0,0,.28)}
html[data-site-theme="arcade-cabinet"] .theme-surround-card img {width:100%;height:100%;margin:0!important;border-radius:4px!important;object-fit:cover}
html[data-site-theme="arcade-cabinet"] .game-related-list,
html[data-site-theme="arcade-cabinet"] .top-margin-home2 > .mt-5.py-5 {display:none!important}
html[data-site-theme="arcade-cabinet"] .grid-container {grid-template-columns:2fr repeat(3,1fr);grid-auto-rows:210px;gap:4px;max-width:1320px;margin:auto;padding:4px;background:var(--theme-accent-2)}
html[data-site-theme="arcade-cabinet"] .grid-item {padding:0;background:var(--theme-bg)}
html[data-site-theme="arcade-cabinet"] .grid-item:nth-child(6n+1){grid-row:span 2}
html[data-site-theme="arcade-cabinet"] .grid-item img {object-fit:cover;border-radius:0}
html[data-site-theme="arcade-cabinet"] .content-box {border-top:8px solid var(--theme-accent)!important}

/* Mosaic Arena: a light poster layout with four corner recommendations. */
html[data-site-theme="mosaic-arena"] {
  --theme-bg: #eef1f5;
  --theme-bg-2: #dce3eb;
  --theme-surface: rgba(250, 252, 253, 0.96);
  --theme-text: #182131;
  --theme-muted: #596475;
  --theme-accent: #2858d8;
  --theme-accent-2: #c8462f;
  --theme-border: rgba(24, 33, 49, 0.2);
  --theme-shadow: rgba(45, 61, 85, 0.2);
  --theme-radius: 2px;
  --theme-card-radius: 2px;
  --theme-font: "Segoe UI", Arial, sans-serif;
  --theme-display: "Arial Black", "Segoe UI", sans-serif;
  --theme-header: rgba(238, 241, 245, 0.96);
  color-scheme:light;
}
html[data-site-theme="mosaic-arena"] body {background-image:linear-gradient(135deg,rgba(40,88,216,.08),transparent 32%),linear-gradient(315deg,rgba(200,70,47,.07),transparent 38%),linear-gradient(var(--theme-bg),var(--theme-bg-2))!important}
html[data-site-theme="mosaic-arena"] .legacy-site-header {border-bottom:1px solid #182131!important;box-shadow:none!important}
html[data-site-theme="mosaic-arena"] .legacy-site-header-inner {max-width:1440px;margin:auto;grid-template-columns:300px 1fr minmax(280px,380px) 64px}
html[data-site-theme="mosaic-arena"] .legacy-game-search {grid-column:3}
html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {max-width:1460px;margin-inline:auto!important;padding:76px 180px 70px!important}
html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround > .col-md-10 {width:100%!important;max-width:1040px!important;flex:0 0 auto!important;transform:rotate(-.35deg)}
html[data-site-theme="mosaic-arena"] .home-iframe-area #bgame {border:5px solid #182131;border-radius:2px!important;box-shadow:14px 16px 0 var(--theme-accent)!important}
html[data-site-theme="mosaic-arena"] .theme-game-surround {position:absolute;inset:0;pointer-events:none}
html[data-site-theme="mosaic-arena"] .theme-surround-card {position:absolute;display:block;width:150px;height:150px;padding:0;border:4px solid #182131;background:var(--theme-surface);box-shadow:8px 9px 0 rgba(24,33,49,.18);pointer-events:auto;overflow:hidden}
html[data-site-theme="mosaic-arena"] .theme-surround-card-1 {left:8px;top:18px;transform:rotate(-3deg)}
html[data-site-theme="mosaic-arena"] .theme-surround-card-2 {left:34px;bottom:18px;transform:rotate(2deg)}
html[data-site-theme="mosaic-arena"] .theme-surround-card-3 {right:24px;top:20px;transform:rotate(3deg)}
html[data-site-theme="mosaic-arena"] .theme-surround-card-4 {right:6px;bottom:18px;transform:rotate(-2deg)}
html[data-site-theme="mosaic-arena"] .theme-surround-card img {width:100%;height:100%;margin:0!important;border-radius:0!important;object-fit:cover}
html[data-site-theme="mosaic-arena"] .game-related-list,
html[data-site-theme="mosaic-arena"] .top-margin-home2 > .mt-5.py-5 {display:none!important}
html[data-site-theme="mosaic-arena"] .grid-container {grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:170px;gap:20px;max-width:1400px;margin:auto;padding:30px}
html[data-site-theme="mosaic-arena"] .grid-item:nth-child(8n+1){grid-column:span 2;grid-row:span 2;transform:rotate(-1deg)}
html[data-site-theme="mosaic-arena"] .grid-item:nth-child(8n+4){grid-column:span 2;transform:translateY(22px) rotate(1deg)}
html[data-site-theme="mosaic-arena"] .grid-item img {object-fit:cover;border:2px solid #182131;border-radius:0;box-shadow:7px 8px 0 rgba(40,88,216,.18)}
html[data-site-theme="mosaic-arena"] .content-comments-layout {grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);align-items:start}
html[data-site-theme="mosaic-arena"] .content-box {border:2px solid #182131!important;box-shadow:12px 14px 0 rgba(40,88,216,.16)!important}

@media (prefers-reduced-motion: no-preference) {
  html[data-site-theme="orbit-deck"] .theme-surround-card,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card,
  html[data-site-theme="mosaic-arena"] .theme-surround-card {animation:theme-card-enter .55s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(var(--theme-card-index,0) * 70ms)}
  html[data-site-theme="orbit-deck"] .theme-surround-card:hover,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card:hover {transform:translateY(-6px)}
}
@keyframes theme-card-enter {from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}

@media (max-width: 1099px) {
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {padding:170px 16px 20px!important}
  html[data-site-theme="orbit-deck"] .theme-game-surround,
  html[data-site-theme="mosaic-arena"] .theme-game-surround {inset:18px 16px auto;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
  html[data-site-theme="orbit-deck"] .theme-surround-card,
  html[data-site-theme="mosaic-arena"] .theme-surround-card {position:relative;inset:auto;width:auto;height:132px;transform:none!important}
}
@media (max-width: 768px) {
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {padding:116px 8px 18px!important}
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround > .col-md-10 {padding:9px!important;border-width:2px!important;border-top-width:8px!important;box-shadow:7px 9px 0 rgba(0,0,0,.28)}
  html[data-site-theme="orbit-deck"] .theme-game-surround,
  html[data-site-theme="arcade-cabinet"] .theme-game-surround,
  html[data-site-theme="mosaic-arena"] .theme-game-surround {left:8px;right:8px;top:10px;width:auto;transform:none;grid-template-columns:repeat(4,1fr);gap:6px}
  html[data-site-theme="orbit-deck"] .theme-surround-card,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card,
  html[data-site-theme="mosaic-arena"] .theme-surround-card {height:86px;padding:3px;border-width:2px;box-shadow:none}
  html[data-site-theme="orbit-deck"] .theme-surround-card .game-thumb-title,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card .game-thumb-title,
  html[data-site-theme="mosaic-arena"] .theme-surround-card .game-thumb-title {display:none}
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround > .col-md-10 {transform:none}
  html[data-site-theme="orbit-deck"] .grid-container,
  html[data-site-theme="arcade-cabinet"] .grid-container,
  html[data-site-theme="mosaic-arena"] .grid-container {grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:minmax(142px,42vw)!important;padding:8px!important;gap:8px!important}
  html[data-site-theme="orbit-deck"] .grid-item,
  html[data-site-theme="arcade-cabinet"] .grid-item,
  html[data-site-theme="mosaic-arena"] .grid-item {grid-column:span 1!important;grid-row:span 1!important;transform:none!important}
}

/* Final portal geometry. Kept last so legacy theme rules cannot reintroduce overlap. */
@media (min-width:1100px) {
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {display:grid!important;align-items:start!important;justify-content:stretch!important;gap:18px;width:min(calc(100% - 28px),1540px);max-width:none;margin:22px auto 0!important;padding:0!important}
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround {grid-template-columns:minmax(220px,280px) minmax(560px,920px) minmax(220px,280px)}
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround {grid-template-columns:minmax(640px,1fr) 164px;width:min(calc(100% - 28px),1320px)}
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {grid-template-columns:94px minmax(620px,980px) 176px;width:min(calc(100% - 28px),1320px)}
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround>.game-ad-side,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround>.game-ad-side,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround>.game-ad-side,
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround>.marquee-container,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround>.marquee-container,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround>.marquee-container {display:none!important}
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround>.col-md-10,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround>.col-md-10,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround>.col-md-10 {grid-column:2;grid-row:1;width:100%!important;max-width:none!important;min-width:0;margin:0!important;padding:0!important;transform:none!important}
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround>.col-md-10 {grid-column:1;padding:12px!important;border:1px solid #32323a!important;border-top:5px solid var(--theme-accent)!important;border-radius:10px!important;box-shadow:0 16px 44px rgba(0,0,0,.32)!important}
  html[data-site-theme="orbit-deck"] .theme-game-surround,
  html[data-site-theme="arcade-cabinet"] .theme-game-surround,
  html[data-site-theme="mosaic-arena"] .theme-game-surround {display:contents!important;position:static!important;inset:auto!important;width:auto!important;transform:none!important;pointer-events:auto!important}
  html[data-site-theme="orbit-deck"] .theme-game-rail,
  html[data-site-theme="arcade-cabinet"] .theme-game-rail,
  html[data-site-theme="mosaic-arena"] .theme-game-rail {position:static!important;display:grid;align-content:start;gap:12px;min-width:0}
  html[data-site-theme="orbit-deck"] .theme-game-rail-left {grid-column:1;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-site-theme="orbit-deck"] .theme-game-rail-right {grid-column:3;grid-row:1;grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-site-theme="arcade-cabinet"] .theme-game-rail-left {display:none!important}
  html[data-site-theme="arcade-cabinet"] .theme-game-rail-right {grid-column:2;grid-row:1;grid-template-columns:1fr;gap:8px}
  html[data-site-theme="mosaic-arena"] .theme-game-rail-left {grid-column:1;grid-row:1;grid-template-columns:1fr;gap:10px}
  html[data-site-theme="mosaic-arena"] .theme-game-rail-right {grid-column:3;grid-row:1;grid-template-columns:1fr;gap:12px}
  html[data-site-theme="orbit-deck"] .theme-surround-card,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card,
  html[data-site-theme="mosaic-arena"] .theme-surround-card {position:static!important;inset:auto!important;display:grid;width:auto!important;height:auto!important;transform:none!important;overflow:hidden;text-decoration:none}
  html[data-site-theme="orbit-deck"] .theme-surround-card {grid-template-rows:92px minmax(32px,auto);gap:6px;padding:7px;border:1px solid rgba(87,185,169,.35);border-radius:13px}
  html[data-site-theme="arcade-cabinet"] .theme-surround-card {grid-template-rows:82px;padding:4px;border:1px solid #3b3b43;border-radius:8px}
  html[data-site-theme="mosaic-arena"] .theme-surround-card {grid-template-rows:72px minmax(30px,auto);gap:5px;padding:5px;border:1px solid rgba(24,33,49,.2);border-radius:12px;box-shadow:0 6px 18px rgba(45,61,85,.13)}
  html[data-site-theme="mosaic-arena"] .theme-game-rail-left .theme-surround-card {grid-template-rows:72px;padding:3px}
  html[data-site-theme="orbit-deck"] .theme-surround-card img,
  html[data-site-theme="arcade-cabinet"] .theme-surround-card img,
  html[data-site-theme="mosaic-arena"] .theme-surround-card img {display:block;width:100%;height:100%;margin:0!important;border:0;border-radius:8px!important;object-fit:cover}
  html[data-site-theme="arcade-cabinet"] .theme-surround-title,
  html[data-site-theme="mosaic-arena"] .theme-game-rail-left .theme-surround-title {display:none}
  html[data-site-theme="orbit-deck"] .home-iframe-area .iframe-height,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area .iframe-height,
  html[data-site-theme="mosaic-arena"] .home-iframe-area .iframe-height {height:clamp(390px,34vw,480px)!important;min-height:0!important}
  html[data-site-theme="mosaic-arena"] .home-iframe-area #bgame {border:1px solid rgba(24,33,49,.22)!important;box-shadow:0 18px 44px rgba(45,61,85,.18)!important}
  html[data-site-theme="mosaic-arena"] .home-iframe-area h1 {color:#f7f8fa!important}
}
@media (max-width:1099px) {
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround {display:block!important;width:100%;margin:12px auto 0!important;padding:0 10px 16px!important}
  html[data-site-theme="orbit-deck"] .theme-game-surround,
  html[data-site-theme="arcade-cabinet"] .theme-game-surround,
  html[data-site-theme="mosaic-arena"] .theme-game-surround {display:none!important}
  html[data-site-theme="orbit-deck"] .home-iframe-area.has-theme-surround>.col-md-10,
  html[data-site-theme="arcade-cabinet"] .home-iframe-area.has-theme-surround>.col-md-10,
  html[data-site-theme="mosaic-arena"] .home-iframe-area.has-theme-surround>.col-md-10 {width:100%!important;max-width:920px!important;margin-inline:auto!important;padding-inline:0!important;transform:none!important}
}
@media (min-width:1100px) {
  html[data-site-theme="orbit-deck"] .theme-game-rail,
  html[data-site-theme="arcade-cabinet"] .theme-game-rail,
  html[data-site-theme="mosaic-arena"] .theme-game-rail {max-height:590px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
  html[data-site-theme="orbit-deck"] .theme-game-rail::-webkit-scrollbar,
  html[data-site-theme="arcade-cabinet"] .theme-game-rail::-webkit-scrollbar,
  html[data-site-theme="mosaic-arena"] .theme-game-rail::-webkit-scrollbar {display:none}
}
