/* Loaded after the inherited cabinet stylesheet so Shatter Drive sidebars stay dark. */
.game-shell .left-rail,
.game-shell .right-rail {
  padding: 10px !important;
  border: 0 !important;
  min-width: 0 !important;
  background-color: #030207 !important;
  background-image:
    linear-gradient(rgba(255, 48, 79, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(6, 4, 8, 0.96), rgba(1, 1, 4, 0.98)) !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  box-shadow:
    inset 0 0 44px rgba(255, 48, 79, 0.055),
    0 0 26px rgba(0, 0, 0, 0.52) !important;
}

.game-shell .left-rail {
  overflow: hidden !important;
}

.game-shell .right-rail {
  overflow: visible !important;
}

.game-shell .left-rail .panel,
.game-shell .right-rail .panel {
  min-width: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 48, 79, 0.78) !important;
  border-radius: 2px !important;
  background-color: rgba(3, 2, 5, 0.96) !important;
  background-image:
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(rgba(255, 48, 79, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(9, 4, 8, 0.9), rgba(2, 1, 4, 0.96)) !important;
  background-position:
    top left,
    top left,
    top right,
    top right,
    bottom left,
    bottom left,
    bottom right,
    bottom right,
    0 0,
    0 0,
    0 0 !important;
  background-size:
    24px 1px,
    1px 24px,
    24px 1px,
    1px 24px,
    24px 1px,
    1px 24px,
    24px 1px,
    1px 24px,
    28px 28px,
    28px 28px,
    100% 100% !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat !important;
  box-shadow:
    0 0 13px rgba(255, 48, 79, 0.24),
    inset 0 0 0 1px rgba(255, 48, 79, 0.12),
    inset 0 0 26px rgba(255, 48, 79, 0.045) !important;
}

.game-shell .left-rail .panel::before,
.game-shell .right-rail .panel::before {
  top: 0 !important;
  left: 20px !important;
  display: block !important;
  width: 48% !important;
  height: 1px !important;
  border: 0 !important;
  background: linear-gradient(90deg, rgba(255, 48, 79, 0.95), rgba(255, 48, 79, 0)) !important;
  box-shadow: 0 0 10px rgba(255, 48, 79, 0.72) !important;
  animation: none !important;
}

.game-shell .left-rail .panel::after,
.game-shell .right-rail .panel::after {
  display: none !important;
}

.game-shell .left-rail .stat span,
.game-shell .right-rail .next-panel span,
.game-shell .right-rail .next-panel p,
.game-shell .right-rail .legend-panel > span,
.game-shell .right-rail .minimap-panel > span,
.game-shell .right-rail .weapon-system > span,
.game-shell .left-rail .upgrade-strip > span {
  color: #ff566d !important;
  font-family: Orbitron, sans-serif !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-shadow: 0 0 8px rgba(255, 48, 79, 0.58) !important;
}

.game-shell .left-rail .stat strong,
.game-shell .right-rail .next-panel strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  letter-spacing: 0.015em !important;
  color: #ff304f !important;
  text-shadow:
    0 0 10px rgba(255, 48, 79, 0.9),
    0 0 22px rgba(255, 48, 79, 0.48) !important;
}

.game-shell .left-rail #score,
.game-shell .left-rail #best {
  font-size: clamp(1.45rem, 1.85vw, 2.32rem) !important;
  line-height: 1 !important;
}

.game-shell .left-rail #best {
  font-size: clamp(1.28rem, 1.58vw, 2rem) !important;
}

.game-shell .left-rail #level,
.game-shell .left-rail #nodes,
.game-shell .left-rail #multiplier,
.game-shell .left-rail #combo {
  font-size: clamp(1.38rem, 1.7vw, 2.25rem) !important;
}

.game-shell .left-rail .stat {
  border-bottom-color: rgba(255, 48, 79, 0.24) !important;
}

.game-shell .left-rail .cache-stat strong {
  width: 100% !important;
  padding: 7px 10px 6px !important;
  border: 1px solid rgba(255, 48, 79, 0.76) !important;
  border-radius: 4px !important;
  background:
    linear-gradient(rgba(255, 48, 79, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 48, 79, 0.08), rgba(5, 2, 5, 0.88)) !important;
  background-size: 12px 12px, 12px 12px, auto !important;
  color: #ff304f !important;
  font-size: clamp(1.05rem, 1.25vw, 1.52rem) !important;
  text-shadow: 0 0 10px rgba(255, 48, 79, 0.72) !important;
  box-shadow:
    0 0 10px rgba(255, 48, 79, 0.18),
    inset 0 0 12px rgba(255, 48, 79, 0.1) !important;
}

.game-shell .left-rail .cache-stat strong::before {
  display: none !important;
  content: none !important;
}

.game-shell .left-rail .cache-stat small {
  color: #ff7b8c !important;
  text-shadow: 0 0 8px rgba(255, 48, 79, 0.42) !important;
}

.game-shell .left-rail .cache-stat.is-cache-ready strong,
.game-shell .left-rail .cache-stat.is-cache-active strong {
  border-color: rgba(255, 92, 110, 0.9) !important;
  color: #ff6b7c !important;
  text-shadow:
    0 0 10px rgba(255, 48, 79, 0.9),
    0 0 22px rgba(255, 48, 79, 0.48) !important;
}

.game-shell .title-rig::before,
.game-shell .title-rig::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 48, 79, 0.95), rgba(255, 92, 110, 0.84), transparent) 0 50% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 36, 79, 0.72), transparent) 18% 5px / 42% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(255, 106, 122, 0.62), transparent) 40% 13px / 58% 2px no-repeat !important;
  filter: drop-shadow(0 0 7px rgba(255, 48, 79, 0.62)) !important;
}

.game-shell .title-core {
  border: 0 !important;
  background: var(--shatter-title-ball-url, url("../images/game-board/shatter-ball.png")) center / contain no-repeat !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 18px rgba(255, 48, 79, 0.82)) !important;
}

.game-shell .title-core::before,
.game-shell .title-core::after {
  display: none !important;
}

.game-shell .board-wrap {
  border-color: rgba(255, 48, 79, 0.58) !important;
  background:
    linear-gradient(#ff304f, #ff304f) 0 0 / 118px 3px no-repeat,
    linear-gradient(#ff304f, #ff304f) 0 0 / 3px 118px no-repeat,
    linear-gradient(#ff5c6e, #ff5c6e) 100% 0 / 118px 3px no-repeat,
    linear-gradient(#ff304f, #ff304f) 100% 0 / 3px 118px no-repeat,
    linear-gradient(#ff304f, #ff304f) 0 100% / 118px 3px no-repeat,
    linear-gradient(#ff5c6e, #ff5c6e) 0 100% / 3px 118px no-repeat,
    linear-gradient(#ff304f, #ff304f) 100% 100% / 118px 3px no-repeat,
    linear-gradient(#ff304f, #ff304f) 100% 100% / 3px 118px no-repeat,
    radial-gradient(circle at 18px 18px, rgba(255, 36, 79, 0.5), transparent 36px),
    radial-gradient(circle at calc(100% - 18px) 18px, rgba(255, 92, 110, 0.4), transparent 36px),
    radial-gradient(circle at 18px calc(100% - 18px), rgba(255, 48, 79, 0.32), transparent 36px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(255, 48, 79, 0.28), transparent 36px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.12), transparent 8%, transparent 92%, rgba(255, 48, 79, 0.12)),
    linear-gradient(180deg, rgba(255, 36, 79, 0.1), transparent 14%, transparent 86%, rgba(255, 48, 79, 0.08)),
    #030207 !important;
  box-shadow:
    0 0 0 8px rgba(5, 2, 5, 0.98),
    0 0 0 11px rgba(255, 48, 79, 0.12),
    -10px -10px 30px rgba(255, 36, 79, 0.14),
    10px 10px 34px rgba(255, 48, 79, 0.1),
    0 0 42px rgba(255, 48, 79, 0.18) !important;
}

.game-shell .board-wrap::before {
  border-color: rgba(255, 48, 79, 0.42) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 48, 79, 0.1) !important;
}

.game-shell .board-wrap::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 62%, rgba(0, 0, 0, 0.26)),
    radial-gradient(circle at 2% 2%, rgba(255, 36, 79, 0.24), transparent 6%),
    radial-gradient(circle at 98% 2%, rgba(255, 70, 92, 0.2), transparent 6%),
    radial-gradient(circle at 2% 98%, rgba(255, 48, 79, 0.18), transparent 5%),
    radial-gradient(circle at 98% 98%, rgba(255, 48, 79, 0.18), transparent 5%) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 48, 79, 0.08) !important;
}

.game-shell #board {
  box-shadow: none !important;
}

.game-shell .overlay h2 {
  color: #fff5f5 !important;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.78),
    0 0 16px rgba(255, 48, 79, 0.62),
    0 0 34px rgba(255, 36, 79, 0.34) !important;
}

.game-shell .right-rail .legend-row b,
.game-shell .right-rail .legend-row small {
  color: #f8e4e8 !important;
}

.game-shell .right-rail .legend-row small {
  color: #ffb0ba !important;
}

.game-shell .right-rail .node {
  filter: none !important;
}

.game-shell .left-rail .upgrade-list em,
.game-shell .left-rail .upgrade-list span {
  border-color: rgba(255, 48, 79, 0.32) !important;
  color: #f8e6ea !important;
  background: linear-gradient(180deg, rgba(255, 48, 79, 0.08), rgba(7, 3, 7, 0.76)) !important;
}

.game-shell .left-rail .upgrade-list em::before,
.game-shell .left-rail .upgrade-list span::before,
.game-shell .left-rail .upgrade-list span:nth-child(3n + 1)::before,
.game-shell .left-rail .upgrade-list span:nth-child(3n + 2)::before {
  border-color: #ff304f !important;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.84) 0 8%, transparent 9%),
    linear-gradient(135deg, rgba(255, 48, 79, 0.32), rgba(255, 138, 36, 0.14)) !important;
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.72) !important;
}

.game-shell .right-rail .controls-trigger {
  border-color: rgba(255, 48, 79, 0.52) !important;
  color: #ffb0ba !important;
  background:
    linear-gradient(rgba(255, 48, 79, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 4, 8, 0.9), rgba(4, 1, 4, 0.94)) !important;
  background-size: 14px 14px, 14px 14px, auto !important;
  box-shadow:
    inset 0 0 18px rgba(255, 48, 79, 0.1),
    0 0 14px rgba(255, 48, 79, 0.16) !important;
}

.game-shell .right-rail .controls-trigger i {
  color: #ff304f !important;
}

.game-shell .right-rail .controls-panel {
  overflow: visible !important;
  z-index: 20 !important;
}

.game-shell .right-rail .controls-panel.is-open {
  z-index: 80 !important;
}

.game-shell .right-rail .controls-panel.is-open .controls-trigger {
  border-color: rgba(255, 92, 110, 0.92) !important;
  color: #fff0f2 !important;
  box-shadow:
    inset 0 0 20px rgba(255, 48, 79, 0.14),
    0 0 18px rgba(255, 48, 79, 0.32) !important;
}

.game-shell .right-rail .controls-drawer {
  top: -10px !important;
  right: calc(100% + 14px) !important;
  width: min(310px, 34vw) !important;
  max-height: min(78vh, 650px) !important;
  overflow-y: auto !important;
  padding: 14px !important;
  gap: 14px !important;
  border: 1px solid rgba(255, 48, 79, 0.82) !important;
  border-radius: 3px !important;
  background-color: rgba(4, 1, 4, 0.98) !important;
  background-image:
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(#ff304f, #ff304f),
    linear-gradient(rgba(255, 48, 79, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 4, 7, 0.98), rgba(2, 1, 3, 0.98)) !important;
  background-position:
    top left,
    top left,
    bottom right,
    bottom right,
    0 0,
    0 0,
    0 0 !important;
  background-size:
    42px 1px,
    1px 42px,
    42px 1px,
    1px 42px,
    22px 22px,
    22px 22px,
    100% 100% !important;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat !important;
  box-shadow:
    0 0 0 1px rgba(255, 48, 79, 0.18),
    0 0 28px rgba(255, 48, 79, 0.24),
    inset 0 0 28px rgba(255, 48, 79, 0.08) !important;
}

.game-shell .right-rail .controls-drawer::-webkit-scrollbar {
  width: 6px !important;
}

.game-shell .right-rail .controls-drawer::-webkit-scrollbar-track {
  background: rgba(255, 48, 79, 0.08) !important;
}

.game-shell .right-rail .controls-drawer::-webkit-scrollbar-thumb {
  background: #ff304f !important;
  border-radius: 999px !important;
}

.game-shell .right-rail .controls-drawer__header {
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 48, 79, 0.22) !important;
}

.game-shell .right-rail .controls-drawer__header span,
.game-shell .right-rail .controls-drawer__support small {
  color: #ff6b7c !important;
  text-shadow: 0 0 8px rgba(255, 48, 79, 0.46) !important;
}

.game-shell .right-rail .drawer-close,
.game-shell .right-rail .icon-button,
.game-shell .right-rail .controls-drawer__support a,
.game-shell .right-rail .paypal-donate-button {
  border: 1px solid rgba(255, 48, 79, 0.58) !important;
  border-radius: 4px !important;
  color: #fff0f2 !important;
  background:
    linear-gradient(180deg, rgba(255, 48, 79, 0.12), rgba(6, 2, 5, 0.9)) !important;
  box-shadow:
    inset 0 0 14px rgba(255, 48, 79, 0.08),
    0 0 12px rgba(255, 48, 79, 0.1) !important;
}

.game-shell .right-rail .drawer-close:hover,
.game-shell .right-rail .icon-button:hover,
.game-shell .right-rail .controls-drawer__support a:hover,
.game-shell .right-rail .paypal-donate-button:hover {
  border-color: rgba(255, 92, 110, 0.9) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 0 18px rgba(255, 48, 79, 0.14),
    0 0 16px rgba(255, 48, 79, 0.28) !important;
}

.game-shell .right-rail .title-screen-button,
.game-shell .right-rail #worldMenuButton,
.game-shell .right-rail #pauseButton,
.game-shell .right-rail .settings-menu summary {
  color: #ff6b7c !important;
}

.game-shell .right-rail .key-cluster kbd {
  border-color: rgba(255, 48, 79, 0.52) !important;
  color: #ffd7dc !important;
  background:
    linear-gradient(180deg, rgba(255, 48, 79, 0.1), rgba(5, 2, 5, 0.9)) !important;
  box-shadow: inset 0 0 12px rgba(255, 48, 79, 0.1) !important;
}

.game-shell .right-rail .controls-drawer__support {
  border-top-color: rgba(255, 48, 79, 0.22) !important;
}

.game-shell .right-rail .drawer-paypal img,
.game-shell .right-rail .drawer-paypal section {
  display: none !important;
}

.game-shell .right-rail .paypal-donate-button {
  min-width: 100% !important;
  border-radius: 4px !important;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
}

.game-shell .right-rail .settings-menu[open] summary,
.game-shell .right-rail .settings-menu.is-open summary {
  border-color: rgba(255, 92, 110, 0.86) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 16px rgba(255, 48, 79, 0.3),
    inset 0 0 18px rgba(255, 48, 79, 0.14) !important;
}

.game-shell .right-rail .settings-panel {
  border-color: rgba(255, 48, 79, 0.62) !important;
  border-radius: 4px !important;
  background:
    linear-gradient(rgba(255, 48, 79, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(12, 4, 7, 0.98), rgba(3, 1, 3, 0.98)) !important;
  background-size: 18px 18px, 18px 18px, auto !important;
  box-shadow: 0 0 18px rgba(255, 48, 79, 0.22) !important;
}

.game-shell .right-rail .setting-row {
  color: #ffd7dc !important;
}

.game-shell .right-rail .setting-row:hover {
  background: rgba(255, 48, 79, 0.1) !important;
}

.game-shell .right-rail .setting-row input {
  accent-color: #ff304f !important;
}

.game-shell .right-rail .minimap {
  border-color: rgba(255, 48, 79, 0.62) !important;
  background-color: rgba(5, 2, 5, 0.94) !important;
  background-image:
    linear-gradient(rgba(255, 48, 79, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.18) 1px, transparent 1px) !important;
  background-size: 18px 18px, 18px 18px !important;
}

.game-shell .right-rail .minimap i,
.game-shell .right-rail .minimap .scan-pickup,
.game-shell .right-rail .minimap .scan-bonus,
.game-shell .right-rail .minimap .scan-hazard {
  background: #ff304f !important;
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.9) !important;
}

.world-dialog {
  padding: clamp(10px, 1.4vw, 22px) !important;
  scrollbar-color: #ff304f #030105 !important;
  scrollbar-width: thin !important;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 48, 79, 0.2), transparent 36%),
    rgba(1, 1, 3, 0.86) !important;
  backdrop-filter: blur(8px) brightness(0.66) !important;
}

.world-dialog::-webkit-scrollbar,
.world-dialog__panel::-webkit-scrollbar {
  width: 12px;
}

.world-dialog::-webkit-scrollbar-track,
.world-dialog__panel::-webkit-scrollbar-track {
  background: #030105;
}

.world-dialog::-webkit-scrollbar-thumb,
.world-dialog__panel::-webkit-scrollbar-thumb {
  border: 3px solid #030105;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff304f, #7a0718);
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.48);
}

.world-dialog__panel {
  width: min(1800px, 100%) !important;
  padding: clamp(20px, 2vw, 34px) !important;
  gap: clamp(14px, 1.45vw, 22px) !important;
  scrollbar-color: #ff304f #030105 !important;
  scrollbar-width: thin !important;
  border: 1px solid rgba(255, 48, 79, 0.88) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 48, 79, 0.12), transparent 34%),
    linear-gradient(rgba(255, 48, 79, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.04) 1px, transparent 1px),
    rgba(2, 1, 3, 0.96) !important;
  background-size: auto, 36px 36px, 36px 36px, auto !important;
  box-shadow:
    0 0 46px rgba(255, 48, 79, 0.28),
    inset 0 0 80px rgba(0, 0, 0, 0.72) !important;
}

.world-dialog__panel::before {
  display: none !important;
}

.world-dialog__home {
  top: 26px !important;
  left: 24px !important;
  right: auto !important;
  z-index: 20 !important;
  display: grid !important;
  place-items: center !important;
  color: #ffffff !important;
  font-size: 1.45rem !important;
  text-shadow: 0 0 14px rgba(255, 48, 79, 0.72) !important;
}

.world-dialog__close {
  top: 26px !important;
  right: 26px !important;
  z-index: 20 !important;
  width: 48px !important;
  height: 48px !important;
  display: grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  color: #ffffff !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: 0 0 14px rgba(255, 48, 79, 0.72) !important;
}

.world-dialog__home i,
.world-dialog__close i {
  color: #ffffff !important;
  line-height: 1 !important;
}

.world-dialog__header {
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.world-dialog__header img {
  grid-column: 1 !important;
  width: min(300px, 42vw);
  max-height: 118px;
  object-fit: contain;
  justify-self: center;
  filter: drop-shadow(0 0 18px rgba(255, 48, 79, 0.72));
}

.world-dialog__header div {
  grid-column: 1 !important;
  display: grid;
  justify-items: center;
  text-align: center;
  text-transform: uppercase;
}

.world-dialog__header h2 {
  display: none !important;
}

.world-dialog__header p {
  margin-top: 4px;
  color: #ffb0ba;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.world-dialog__intro {
  min-height: clamp(270px, 29vh, 420px) !important;
  grid-template-columns: minmax(280px, 0.82fr) minmax(560px, 1.86fr) minmax(280px, 0.82fr) !important;
  align-items: stretch !important;
  gap: clamp(14px, 1.6vw, 24px) !important;
}

.world-copy,
.world-run-panel {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  align-content: stretch !important;
  justify-items: stretch !important;
  gap: 14px !important;
}

.world-copy {
  grid-template-rows: 0.85fr 1.15fr !important;
}

.world-run-panel {
  grid-template-rows: 0.95fr 1.05fr !important;
}

.world-info-card {
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 48, 79, 0.5);
  border-radius: 5px;
  background:
    linear-gradient(rgba(255, 48, 79, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.035) 1px, transparent 1px),
    rgba(3, 1, 3, 0.72);
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow: inset 0 0 18px rgba(255, 48, 79, 0.05);
}

.world-info-card span {
  display: block;
  color: #ff304f;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-info-card strong,
.world-info-card small,
.world-info-card li {
  color: #d8c9cd;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.world-info-card strong {
  display: block;
  margin-top: 14px;
}

.world-info-card small {
  display: block;
  margin-top: 6px;
}

.world-info-card > i {
  height: 12px;
  margin-top: 14px;
  display: block;
  border: 1px solid rgba(255, 48, 79, 0.32);
  background: rgba(255, 48, 79, 0.08);
}

.world-info-card > i b {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #ff304f, #ff6b7c);
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.72);
}

.world-info-card ul {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.world-info-card li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.world-info-card li i {
  color: #ff304f;
  text-shadow: 0 0 10px rgba(255, 48, 79, 0.72);
}

.world-info-card li b {
  color: #fff2f4;
}

.world-mod-card {
  min-height: 120px;
  place-items: center;
  text-align: center;
}

.world-mod-card strong {
  color: #c9a8ae;
  text-transform: uppercase;
}

.world-map-art {
  min-height: 100% !important;
  border-radius: 4px !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  border: 1px solid rgba(255, 48, 79, 0.22) !important;
  box-shadow: inset 0 0 46px rgba(255, 48, 79, 0.06) !important;
}

.world-map-art::before {
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(2, 1, 3, 0.32) 76%, rgba(2, 1, 3, 0.82) 100%),
    linear-gradient(90deg, rgba(2, 1, 3, 0.76), transparent 18%, transparent 82%, rgba(2, 1, 3, 0.78)) !important;
}

.arena-access {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 4;
  min-width: min(360px, calc(100% - 40px));
  padding: 13px 18px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 48, 79, 0.58);
  border-radius: 5px;
  color: #fff2f4;
  text-align: center;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, rgba(255, 48, 79, 0.24), rgba(5, 1, 3, 0.82), rgba(255, 48, 79, 0.2));
  box-shadow: 0 0 18px rgba(255, 48, 79, 0.24), inset 0 0 20px rgba(255, 48, 79, 0.08);
  transform: translateX(-50%);
  cursor: not-allowed;
  opacity: 0.5;
}

.arena-access.is-unlocked {
  cursor: pointer;
  opacity: 1;
}

.arena-access.is-selected {
  border-color: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 24px rgba(255, 48, 79, 0.56), inset 0 0 24px rgba(255, 48, 79, 0.16);
}

.arena-access--mobile {
  display: none;
}

.arena-access span,
.arena-access small {
  color: #ff6b7c;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.arena-access strong {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
}

.world-zone-heading {
  display: grid !important;
  place-items: center !important;
}

.world-zone-heading span {
  color: #fff2f4 !important;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  letter-spacing: 0.18em !important;
  text-shadow: 0 0 14px rgba(255, 48, 79, 0.72);
}

.world-zone-heading span::before,
.world-zone-heading span::after {
  background-color: #ff304f !important;
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.52) !important;
}

.world-zone-heading p {
  color: #c9a8ae !important;
}

.world-cards {
  grid-template-columns: repeat(6, minmax(132px, 1fr)) !important;
  gap: clamp(12px, 1.25vw, 22px) !important;
}

.world-card {
  min-height: clamp(250px, 27vh, 390px) !important;
  border-radius: 6px !important;
  border-color: color-mix(in srgb, var(--zone-glow, #ff304f) 72%, transparent) !important;
  background: #050207 !important;
  cursor: pointer !important;
}

.world-card.is-selected {
  border-color: #ff304f !important;
  box-shadow: 0 0 0 1px rgba(255, 48, 79, 0.7), 0 0 28px rgba(255, 48, 79, 0.58) !important;
}

.world-card[data-theme="reactor"] { --zone-glow: #ff304f; }
.world-card[data-theme="glass"] { --zone-glow: #22ff7a; }
.world-card[data-theme="iron"] { --zone-glow: #ffb347; }
.world-card[data-theme="forge"] { --zone-glow: #b94eff; }
.world-card[data-theme="prism"] { --zone-glow: #43e8ff; }
.world-card[data-theme="singularity"] { --zone-glow: #ff304f; }

.world-card__number {
  width: 48px !important;
  height: 48px !important;
  border-color: var(--zone-glow, #ff304f) !important;
}

.world-card__lock {
  position: absolute !important;
  left: 50% !important;
  top: 43% !important;
  z-index: 2 !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  color: rgba(240, 244, 250, 0.68) !important;
  font-size: clamp(2.35rem, 3vw, 3.4rem) !important;
  text-shadow: 0 0 12px rgba(240, 244, 250, 0.36), 0 0 24px rgba(255, 48, 79, 0.18) !important;
}

.world-card__meta {
  padding-top: 120px !important;
  background: linear-gradient(180deg, transparent, rgba(2, 1, 3, 0.84) 42%, rgba(2, 1, 3, 0.98)) !important;
}

.world-card__meta strong {
  font-size: clamp(0.92rem, 1.25vw, 1.34rem) !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.72), 0 0 14px color-mix(in srgb, var(--zone-glow, #ff304f) 58%, transparent) !important;
}

.world-card__meta span,
.world-card__meta em {
  color: color-mix(in srgb, var(--zone-glow, #ff304f) 78%, #ffffff) !important;
  font-style: normal;
}

.world-card__meta em {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.world-card__meta small {
  border-color: rgba(255, 48, 79, 0.42) !important;
  color: #ffb0ba !important;
  background: rgba(18, 2, 6, 0.78) !important;
  box-shadow: inset 0 0 16px rgba(255, 48, 79, 0.08) !important;
}

.world-card.is-selected .world-card__meta small {
  border-color: rgba(255, 48, 79, 0.9) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 48, 79, 0.36), inset 0 0 18px rgba(255, 48, 79, 0.14) !important;
}

.world-dialog__footer {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: clamp(16px, 2vw, 36px);
}

.world-enter {
  width: min(100%, 680px);
  min-width: 0;
  min-height: 70px !important;
  justify-self: center;
  white-space: nowrap;
  border-color: rgba(255, 48, 79, 0.92) !important;
  border-radius: 6px !important;
  background:
    linear-gradient(90deg, rgba(255, 48, 79, 0.32), rgba(255, 48, 79, 0.08), rgba(255, 48, 79, 0.26)),
    linear-gradient(180deg, rgba(20, 2, 6, 0.92), rgba(5, 1, 3, 0.96)) !important;
  box-shadow: 0 0 28px rgba(255, 48, 79, 0.34), inset 0 0 22px rgba(255, 48, 79, 0.12) !important;
}

.world-enter:disabled,
.world-enter.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.world-enter.is-purchase-locked,
.world-card.is-purchase-locked .world-card__meta small,
.arena-access.is-purchase-locked {
  border-color: rgba(255, 188, 72, 0.82) !important;
  color: #ffd6a0 !important;
  box-shadow: 0 0 22px rgba(255, 188, 72, 0.22), inset 0 0 18px rgba(255, 188, 72, 0.12) !important;
}

.world-protocols,
.world-bests {
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 14px 18px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 48, 79, 0.42);
  border-radius: 5px;
  color: #c9a8ae;
  background: rgba(3, 1, 3, 0.68);
}

.world-protocols {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
}

.world-protocols i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #ff304f;
  color: #ff304f;
  font-size: 1.35rem;
  box-shadow: 0 0 16px rgba(255, 48, 79, 0.36);
}

.world-protocols span,
.world-bests span {
  color: #ff304f;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-bests strong {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #c9a8ae;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.world-bests b {
  color: #ffb0ba;
}

@media (max-width: 860px) {
  .world-dialog {
    padding: 6px !important;
    place-items: start center !important;
  }

  .world-dialog__panel {
    width: 100% !important;
    min-height: calc(100vh - 12px) !important;
    padding: 18px 18px 28px !important;
    gap: 18px !important;
    border-radius: 10px !important;
  }

  .game-shell .left-rail,
  .game-shell .right-rail {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .world-dialog__header,
  .world-dialog__intro,
  .world-dialog__footer {
    grid-template-columns: 1fr !important;
  }

  .world-dialog__header {
    min-height: 0 !important;
    padding: 42px 44px 8px !important;
    justify-items: center !important;
    gap: 10px !important;
  }

  .world-dialog__header img {
    display: block !important;
    width: min(72vw, 310px) !important;
    max-height: 126px !important;
    justify-self: center !important;
  }

  .world-dialog__header h2 {
    font-size: clamp(1.45rem, 7vw, 2.35rem) !important;
    letter-spacing: 0.14em !important;
  }

  .world-dialog__header p {
    font-size: 0.68rem !important;
    letter-spacing: 0.2em !important;
  }

  .world-dialog__intro,
  .world-map-art,
  .world-copy,
  .world-run-panel,
  .world-protocols,
  .world-bests {
    display: none !important;
  }

  .world-zone-heading {
    margin-top: 2px !important;
  }

  .world-zone-heading span {
    width: 100% !important;
    grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr) !important;
    font-size: clamp(0.92rem, 4vw, 1.25rem) !important;
  }

  .world-zone-heading p {
    max-width: 32rem;
    text-align: center;
  }

  .world-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .world-card {
    min-height: clamp(220px, 58vw, 340px) !important;
  }

  .world-card__meta {
    padding-top: 92px !important;
  }

  .world-card__lock {
    top: 41% !important;
    font-size: clamp(2.15rem, 11vw, 3.25rem) !important;
  }

  .arena-access--mobile {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    display: grid !important;
    width: min(100%, 520px) !important;
    min-width: 0 !important;
    margin: 2px auto 0 !important;
    transform: none !important;
  }

  .world-dialog__footer {
    justify-items: center !important;
  }

  .world-enter {
    width: min(100%, 680px) !important;
    min-height: 62px !important;
    font-size: clamp(0.95rem, 4.2vw, 1.28rem) !important;
  }
}

.demo-purchase-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: clamp(12px, 3vw, 32px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 48, 79, 0.2), transparent 32%),
    linear-gradient(rgba(255, 48, 79, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.06) 1px, transparent 1px),
    rgba(2, 0, 2, 0.82);
  background-size: auto, 46px 46px, 46px 46px, auto;
  backdrop-filter: blur(12px) brightness(0.7);
}

.demo-purchase-dialog.is-hidden {
  display: none;
}

.demo-purchase-dialog__panel {
  position: relative;
  width: min(900px, 100%);
  max-height: min(920px, calc(100vh - 24px));
  padding: clamp(22px, 4vw, 48px) clamp(18px, 5vw, 64px);
  display: grid;
  gap: clamp(14px, 2vh, 22px);
  overflow: auto;
  scrollbar-color: rgba(255, 48, 79, 0.82) rgba(8, 1, 4, 0.9);
  scrollbar-width: thin;
  border: 1px solid rgba(255, 48, 79, 0.88);
  border-radius: 8px;
  text-align: center;
  background:
    linear-gradient(rgba(255, 48, 79, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 48, 79, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0, rgba(255, 48, 79, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(12, 1, 4, 0.98), rgba(3, 0, 2, 0.99));
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 0 0 1px rgba(255, 48, 79, 0.22), 0 0 44px rgba(255, 48, 79, 0.26), inset 0 0 58px rgba(0, 0, 0, 0.48);
}

.demo-purchase-dialog__panel::-webkit-scrollbar {
  width: 10px;
}

.demo-purchase-dialog__panel::-webkit-scrollbar-track {
  background: rgba(8, 1, 4, 0.9);
}

.demo-purchase-dialog__panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 1, 4, 0.9);
  border-radius: 999px;
  background: rgba(255, 48, 79, 0.82);
}

.demo-purchase-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 48, 79, 0.72);
  border-radius: 7px;
  color: #fff5f5;
  background: linear-gradient(180deg, rgba(28, 4, 8, 0.96), rgba(5, 1, 3, 0.96));
  box-shadow: 0 0 18px rgba(255, 48, 79, 0.26), inset 0 0 16px rgba(255, 48, 79, 0.12);
  font-size: 1.15rem;
}

.demo-purchase-dialog__art img {
  width: min(380px, 70vw);
  filter: drop-shadow(0 0 12px rgba(255, 48, 79, 0.78)) drop-shadow(0 0 26px rgba(255, 48, 79, 0.32));
}

.demo-purchase-dialog__copy {
  display: grid;
  gap: 10px;
}

.demo-purchase-dialog__copy span {
  color: #ff304f;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 48, 79, 0.72);
}

.demo-purchase-dialog__copy h2 {
  color: #fff5f5;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 28px rgba(255, 48, 79, 0.62);
}

.demo-purchase-dialog__copy p,
.demo-purchase-dialog__status {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 236, 239, 0.9);
  line-height: 1.42;
}

.demo-purchase-dialog__features,
.demo-purchase-dialog__recovery,
.demo-purchase-dialog__actions {
  position: relative;
  z-index: 1;
}

.demo-purchase-dialog__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}

.demo-purchase-dialog__features article {
  min-height: 112px;
  padding: 16px 10px 14px;
  display: grid;
  gap: 7px;
  place-items: center;
  border: 1px solid rgba(255, 48, 79, 0.42);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(28, 3, 8, 0.78), rgba(6, 1, 3, 0.96));
  box-shadow: inset 0 0 24px rgba(255, 48, 79, 0.08);
}

.demo-purchase-dialog__features i,
.demo-purchase-dialog__features strong {
  color: #ff304f;
  text-shadow: 0 0 14px rgba(255, 48, 79, 0.7);
}

.demo-purchase-dialog__features strong {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.demo-purchase-dialog__features span,
.demo-purchase-dialog__email-label,
.demo-purchase-dialog__restore,
.demo-purchase-dialog__primary {
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-purchase-dialog__features span {
  color: #fff5f5;
  font-size: 0.76rem;
}

.demo-purchase-dialog__recovery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  text-align: left;
}

.demo-purchase-dialog__email {
  display: grid;
  gap: 8px;
}

.demo-purchase-dialog__email-label {
  color: #ffb0ba;
  font-size: 0.76rem;
}

.demo-purchase-dialog__email-label small {
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 188, 72, 0.72);
  border-radius: 4px;
  color: #ffd6a0;
  background: rgba(255, 188, 72, 0.1);
}

.demo-purchase-dialog__email-shell {
  min-height: 56px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid rgba(255, 48, 79, 0.72);
  border-radius: 7px;
  background: rgba(7, 1, 3, 0.88);
  box-shadow: inset 0 0 18px rgba(255, 48, 79, 0.1);
}

.demo-purchase-dialog__email-shell i {
  color: #ff304f;
}

.demo-purchase-dialog__email-shell input {
  min-height: 54px;
  width: 100%;
  padding-left: 16px;
  border: 0;
  color: #fff5f5;
  font: inherit;
  background: transparent;
  outline: none;
}

.demo-purchase-dialog__restore,
.demo-purchase-dialog__primary {
  min-height: 56px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 48, 79, 0.72);
  border-radius: 7px;
  color: #fff5f5;
  background: linear-gradient(180deg, rgba(34, 4, 9, 0.92), rgba(7, 1, 3, 0.96));
  box-shadow: inset 0 0 18px rgba(255, 48, 79, 0.12);
}

.demo-purchase-dialog__primary {
  width: min(100%, 520px);
  min-height: 68px;
  margin: 0 auto;
  border-color: rgba(255, 48, 79, 0.96);
  background: linear-gradient(90deg, rgba(255, 48, 79, 0.32), rgba(255, 48, 79, 0.08), rgba(255, 48, 79, 0.26)), rgba(8, 1, 4, 0.96);
  box-shadow: inset 0 0 24px rgba(255, 48, 79, 0.2), 0 0 28px rgba(255, 48, 79, 0.28);
}

.purchase-menu-button {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-color: rgba(255, 48, 79, 0.72) !important;
}

@media (max-width: 680px) {
  .demo-purchase-dialog {
    place-items: start center;
    overflow-y: auto;
  }

  .demo-purchase-dialog__features,
  .demo-purchase-dialog__recovery {
    grid-template-columns: 1fr;
  }

  .demo-purchase-dialog__restore,
  .demo-purchase-dialog__primary {
    width: 100%;
  }
}
