@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: #010208;
  scrollbar-color: #1a2140 #02040b;
  scrollbar-width: thin;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.world-dialog::-webkit-scrollbar,
.world-dialog__panel::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.world-dialog::-webkit-scrollbar-track,
.world-dialog__panel::-webkit-scrollbar-track {
  background: #02040b;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.1);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.world-dialog::-webkit-scrollbar-thumb,
.world-dialog__panel::-webkit-scrollbar-thumb {
  border: 3px solid #02040b;
  border-radius: 999px;
  background: linear-gradient(180deg, #11182f, #050814);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.26), 0 0 12px rgba(139, 92, 255, 0.32);
}
:root {
  --board-cols: 24;
  --board-rows: 18;
  --rail-width: 220px;
  --title-height: 70px;
  --tray-height: 138px;
  --cabinet-gap: 8px;
  --panel-cut: 18px;
}
body {
  margin: 0;
  min-height: 100vh;
  color: #edf4f7;
  font-family: "Rajdhani", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 50% 0%, rgba(185, 78, 255, 0.2), transparent 30%), radial-gradient(circle at 24% 48%, rgba(0, 214, 255, 0.12), transparent 30%), radial-gradient(circle at 78% 48%, rgba(58, 255, 125, 0.08), transparent 28%), linear-gradient(180deg, #060916 0%, #03050b 56%, #010208 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}
body::before {
  z-index: 0;
  background: linear-gradient(rgba(43, 105, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 238, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
}
body::after {
  z-index: 20;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  opacity: 0.38;
}
button {
  color: inherit;
  font: inherit;
}
h1,
h2,
p {
  margin: 0;
}
.game-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  padding: 12px 14px 14px;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--rail-width);
  grid-template-rows: var(--title-height) minmax(0, 1fr) var(--tray-height);
  gap: var(--cabinet-gap);
}
.game-shell::before {
  position: absolute;
  inset: 8px;
  z-index: -1;
  border: 1px solid rgba(0, 213, 255, 0.06);
  background: linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 78, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  content: "";
}
.title-rig {
  position: relative;
  grid-column: 2;
  min-width: 0;
  display: grid;
  place-items: center;
  align-self: start;
  height: var(--title-height);
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  box-shadow: none;
}
.title-rig::before,
.title-rig::after {
  position: absolute;
  top: 50%;
  width: clamp(130px, 23vw, 390px);
  height: 18px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.78), rgba(139, 92, 255, 0.9)) 0 50% / 100% 2px no-repeat, linear-gradient(90deg, transparent, rgba(255, 36, 88, 0.76)) 18% 5px / 42% 2px no-repeat, linear-gradient(90deg, transparent, rgba(139, 92, 255, 0.82)) 40% 13px / 58% 2px no-repeat;
  opacity: 0.95;
  transform: translateY(-50%);
  filter: drop-shadow(0 0 6px rgba(139, 92, 255, 0.75)) drop-shadow(0 0 10px rgba(0, 229, 255, 0.36));
  content: "";
}
.title-rig::before {
  right: calc(50% + clamp(190px, 24vw, 360px));
  clip-path: none;
}
.title-rig::after {
  left: calc(50% + clamp(190px, 24vw, 360px));
  clip-path: none;
  transform: translateY(-50%) scaleX(-1);
}
.title-rig h1 {
  position: relative;
  z-index: 1;
  padding: 0 clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 18px);
  color: #f6f0ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 3.7vw, 4.05rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 5px #ffffff, 0 0 14px rgba(185, 78, 255, 0.92), 0 0 30px rgba(0, 224, 255, 0.7);
}
.title-rig h1 img {
  width: clamp(38px, 4.8vw, 80px);
  height: clamp(30px, 3.8vw, 64px);
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  transform: translateY(0.02em);
  filter: drop-shadow(0 0 9px rgba(255, 36, 88, 0.78)) drop-shadow(0 0 16px rgba(185, 78, 255, 0.44));
}
.mobile-title-menu {
  display: none;
}
.rail {
  grid-row: 1 / 4;
  min-height: 0;
  display: grid;
  gap: var(--cabinet-gap);
}
.left-rail {
  grid-column: 1;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
}
.right-rail {
  grid-column: 3;
  grid-template-rows: auto auto auto minmax(150px, 1fr);
  align-content: stretch;
}
.panel,
.upgrade-card,
.icon-button,
.mobile-controls button,
#startButton {
  position: relative;
  border: 1px solid rgba(0, 213, 255, 0.34);
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 18%, transparent 82%, rgba(185, 78, 255, 0.08)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px), linear-gradient(135deg, rgba(0, 213, 255, 0.12) 0 1px, transparent 1px 18px), linear-gradient(180deg, rgba(7, 14, 34, 0.95), rgba(2, 5, 15, 0.98));
  box-shadow: 0 0 18px rgba(0, 213, 255, 0.18), inset 0 0 0 1px rgba(126, 83, 255, 0.24), inset 0 -2px 0 rgba(185, 78, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel::before,
.upgrade-card::before,
.icon-button::before,
.mobile-controls button::before,
#startButton::before,
.panel::after,
.upgrade-card::after,
.icon-button::after,
.mobile-controls button::after,
#startButton::after {
  position: absolute;
  z-index: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  content: "";
  display: none;
}
.panel::before,
.upgrade-card::before,
.icon-button::before,
.mobile-controls button::before,
#startButton::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid rgba(255, 36, 88, 0.96);
  border-left: 2px solid rgba(185, 78, 255, 0.96);
  box-shadow: -3px -3px 14px rgba(255, 36, 88, 0.34), -1px -1px 18px rgba(185, 78, 255, 0.28);
}
.panel::after,
.upgrade-card::after,
.icon-button::after,
.mobile-controls button::after,
#startButton::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid rgba(185, 78, 255, 0.95);
  border-bottom: 2px solid rgba(255, 36, 88, 0.88);
  box-shadow: 3px 3px 14px rgba(255, 36, 88, 0.26), 1px 1px 18px rgba(185, 78, 255, 0.24);
}
.panel > *,
.upgrade-card > *,
.icon-button > *,
.mobile-controls button > *,
#startButton > * {
  position: relative;
  z-index: 1;
}
.panel {
  background: linear-gradient(#63ff57, #63ff57) top left / 24px 2px no-repeat, linear-gradient(#63ff57, #63ff57) top left / 2px 24px no-repeat, linear-gradient(#63ff57, #63ff57) top right / 24px 2px no-repeat, linear-gradient(#63ff57, #63ff57) top right / 2px 24px no-repeat, linear-gradient(#63ff57, #63ff57) bottom left / 24px 2px no-repeat, linear-gradient(#63ff57, #63ff57) bottom left / 2px 24px no-repeat, linear-gradient(#63ff57, #63ff57) bottom right / 24px 2px no-repeat, linear-gradient(#63ff57, #63ff57) bottom right / 2px 24px no-repeat, linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 18%, transparent 82%, rgba(185, 78, 255, 0.08)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px), linear-gradient(135deg, rgba(0, 213, 255, 0.12) 0 1px, transparent 1px 18px), linear-gradient(180deg, rgba(7, 14, 34, 0.95), rgba(2, 5, 15, 0.98));
  box-shadow: 0 0 16px rgba(139, 92, 255, 0.18), 0 0 14px rgba(255, 36, 79, 0.12), inset 0 0 0 1px rgba(126, 83, 255, 0.18), inset 0 -2px 0 rgba(139, 92, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.panel::marker {
  content: "";
}
.rail .panel {
  border-color: rgba(0, 213, 255, 0.16);
}
.icon-button,
.mobile-controls button,
#startButton {
  cursor: pointer;
  clip-path: none;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(12, 25, 52, 0.96), rgba(4, 10, 26, 0.98));
}
.icon-button::before,
.mobile-controls button::before,
#startButton::before,
.icon-button::after,
.mobile-controls button::after,
#startButton::after {
  display: none;
}
.stats-panel::before,
.upgrade-strip::before,
.next-panel::before,
.legend-panel::before,
.minimap-panel::before {
  display: block;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 255, 0.86), rgba(255, 36, 79, 0.78), transparent);
  width: 42%;
  height: 2px;
  border: 0;
  top: 8px;
  left: 18px;
  opacity: 0.8;
  animation: rail-current 3.4s ease-in-out infinite;
}
.stats-panel {
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}
.stat {
  display: grid;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 213, 255, 0.18);
}
.stat:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.stat span {
  color: #ffffff;
  font-size: clamp(0.66rem, 0.9vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat strong {
  color: white;
  font-size: clamp(1.45rem, 2.7vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
}
.stat.stat-score strong {
  font-size: clamp(2rem, 3.4vw, 4.3rem);
}
.stat.stat-lives strong {
  color: #ff244f;
  font-size: clamp(1.25rem, 2vw, 2.4rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(255, 36, 79, 0.95), 0 0 22px rgba(139, 92, 255, 0.58);
}
.stat.cache-stat strong {
  width: fit-content;
  padding: 7px 9px 5px;
  border: 1px solid rgba(139, 92, 255, 0.72);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)), repeating-linear-gradient(90deg, rgba(139, 92, 255, 0.16) 0 2px, transparent 2px 10px);
  color: #a9ddff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.55vw, 1.8rem);
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(139, 92, 255, 0.72);
  box-shadow: 0 0 12px rgba(139, 92, 255, 0.22), inset 0 0 14px rgba(139, 92, 255, 0.14);
}
.stat.cache-stat small {
  color: #76cfff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat.cache-stat.is-cache-ready strong,
.stat.cache-stat.is-cache-active strong {
  border-color: rgba(255, 209, 102, 0.72);
  color: #ffd166;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.9), 0 0 22px rgba(255, 138, 42, 0.5);
  animation: cache-pulse 0.9s ease-in-out infinite alternate;
}
.upgrade-strip {
  padding: 18px 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}
.upgrade-strip > span {
  color: white;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.upgrade-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.upgrade-list::-webkit-scrollbar {
  width: 6px;
}
.upgrade-list::-webkit-scrollbar-track {
  background: rgba(0, 229, 255, 0.08);
  border-radius: 999px;
}
.upgrade-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cff, #00e5ff);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(139, 92, 255, 0.55);
}
.upgrade-list em,
.upgrade-list span {
  position: relative;
  min-height: 38px;
  padding: 9px 10px 9px 42px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(0, 213, 255, 0.2);
  border-radius: 6px;
  background: rgba(4, 12, 28, 0.72);
  color: #a9ddff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.upgrade-list em::before,
.upgrade-list span::before {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #00e5ff;
  border-radius: 6px;
  content: "";
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.75);
}
.upgrade-list span:nth-child(3n + 1)::before {
  border-color: #b94eff;
  box-shadow: 0 0 12px rgba(185, 78, 255, 0.75);
}
.upgrade-list span:nth-child(3n + 2)::before {
  border-color: #22ff7a;
  box-shadow: 0 0 12px rgba(34, 255, 122, 0.65);
}
.minimap-panel {
  padding: 18px 20px 20px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 150px;
}
.minimap-panel > span {
  color: white;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.minimap {
  position: relative;
  overflow: hidden;
  min-height: 0;
  align-self: stretch;
  border: 1px solid rgba(0, 229, 255, 0.58);
  border-radius: 5px;
  background: linear-gradient(rgba(0, 229, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.22) 1px, transparent 1px), rgba(1, 12, 24, 0.82);
  background-size: 24px 24px;
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.12);
}
.minimap i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 12px #00e5ff;
  transform: translate(-50%, -50%);
  animation: scan-pulse 1.4s ease-in-out infinite;
}
.minimap .scan-pickup {
  background: #20e8ff;
  box-shadow: 0 0 12px #20e8ff;
}
.minimap .scan-bonus {
  width: 6px;
  height: 6px;
  background: #ffd166;
  box-shadow: 0 0 13px #ffd166;
}
.minimap .scan-hazard {
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: #ff4fc3;
  box-shadow: 0 0 9px #ff4fc3;
  animation-duration: 2s;
}
.game-area {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  display: grid;
}
.board-wrap {
  position: relative;
  width: min(100%, calc((100dvh - var(--title-height) - var(--tray-height) - 42px) * 1.3333));
  max-height: min(100%, calc((100vw - (var(--rail-width) * 2) - 44px) * 0.75));
  aspect-ratio: 4 / 3;
  place-self: start center;
  padding: 14px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(#ff244f, #ff244f) 0 0 / 118px 3px no-repeat, linear-gradient(#8b5cff, #8b5cff) 0 0 / 3px 118px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 0 / 118px 3px no-repeat, linear-gradient(#8b5cff, #8b5cff) 100% 0 / 3px 118px no-repeat, linear-gradient(#8b5cff, #8b5cff) 0 100% / 118px 3px no-repeat, linear-gradient(#00e5ff, #00e5ff) 0 100% / 3px 118px no-repeat, linear-gradient(#8b5cff, #8b5cff) 100% 100% / 118px 3px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 100% / 3px 118px no-repeat, radial-gradient(circle at 18px 18px, rgba(255, 36, 79, 0.58), transparent 36px), radial-gradient(circle at calc(100% - 18px) 18px, rgba(139, 92, 255, 0.58), transparent 36px), radial-gradient(circle at 18px calc(100% - 18px), rgba(0, 229, 255, 0.46), transparent 36px), radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(139, 92, 255, 0.52), transparent 36px), linear-gradient(90deg, rgba(0, 229, 255, 0.18), transparent 8%, transparent 92%, rgba(139, 92, 255, 0.2)), linear-gradient(180deg, rgba(255, 36, 79, 0.12), transparent 14%, transparent 86%, rgba(139, 92, 255, 0.14)), #030814;
  box-shadow: 0 0 0 8px rgba(6, 12, 28, 0.98), 0 0 0 11px rgba(0, 213, 255, 0.12), -10px -10px 30px rgba(255, 36, 79, 0.18), 10px 10px 34px rgba(139, 92, 255, 0.18), 0 0 46px rgba(0, 213, 255, 0.26), 0 0 78px rgba(139, 92, 255, 0.24), inset 0 0 80px rgba(0, 0, 0, 0.62);
}
.board-wrap::before,
.board-wrap::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
}
.board-wrap::before {
  border: 1px solid rgba(139, 92, 255, 0.46);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.14), inset 0 0 34px rgba(139, 92, 255, 0.14);
}
.board-wrap::after {
  inset: 14px;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.36)), radial-gradient(circle at 2% 2%, rgba(255, 36, 79, 0.38), transparent 6%), radial-gradient(circle at 98% 2%, rgba(139, 92, 255, 0.42), transparent 6%), radial-gradient(circle at 2% 98%, rgba(0, 229, 255, 0.34), transparent 5%), radial-gradient(circle at 98% 98%, rgba(255, 36, 79, 0.32), transparent 5%), linear-gradient(90deg, rgba(0, 229, 255, 0.14), transparent 5%, transparent 95%, rgba(139, 92, 255, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 18px 0 32px rgba(0, 213, 255, 0.16), inset -18px 0 32px rgba(139, 92, 255, 0.16), inset 0 -18px 32px rgba(139, 92, 255, 0.12);
}
#board {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.22), inset 0 0 32px rgba(0, 0, 0, 0.45);
}
.right-rail .panel {
  padding: 20px 22px;
}
.next-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.next-panel span,
.next-panel p,
.next-panel li {
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.next-panel strong {
  color: #20e8ff;
  font-size: clamp(2.1rem, 3vw, 4rem);
  line-height: 1;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.84);
}
.next-panel strong b {
  font: inherit;
}
.next-panel ul {
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}
.legend-panel {
  display: grid;
  gap: 8px;
}
.legend-panel > span {
  margin-bottom: 4px;
  color: #00e5ff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.legend-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 0.9fr) minmax(64px, auto);
  gap: 8px;
  align-items: center;
  min-height: 30px;
}
.legend-row b,
.legend-row small {
  color: #a9ddff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}
.legend-row small {
  color: #76cfff;
  text-align: right;
  white-space: nowrap;
}
.node {
  width: 22px;
  height: 22px;
  display: block;
  background: url("https://assets.worldweavergames.com/images/pickup-nodes/data-node.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px #20e8ff);
}
.node.blue {
  background-image: url("https://assets.worldweavergames.com/images/pickup-nodes/blue-node.png");
  filter: drop-shadow(0 0 8px #4f8cff);
}
.node.gold {
  background-image: url("https://assets.worldweavergames.com/images/pickup-nodes/gold-node.png");
  filter: drop-shadow(0 0 8px #ffd166);
}
.node.trim {
  background-image: url("https://assets.worldweavergames.com/images/pickup-nodes/trim-node.png");
  filter: drop-shadow(0 0 8px #ff8a2a);
}
.node.virus {
  background-image: url("https://assets.worldweavergames.com/images/pickup-nodes/virus-node.png");
  filter: drop-shadow(0 0 8px #b94eff);
}
.node.clock {
  background-image: url("https://assets.worldweavergames.com/images/pickup-nodes/clock-node.png");
  filter: drop-shadow(0 0 8px #22ff7a);
}
.node.icebreaker {
  background-image: url("https://assets.worldweavergames.com/images/pickup-nodes/pickaxe-node.png");
  filter: drop-shadow(0 0 8px #7ed8ff);
}
.controls-panel {
  position: relative;
  min-height: 92px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.controls-trigger {
  min-width: 128px;
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 213, 255, 0.78);
  border-radius: 6px;
  color: #FFFFFF;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.94), rgba(2, 5, 14, 0.94));
  box-shadow: inset 0 0 20px rgba(0, 213, 255, 0.1), 0 0 18px rgba(0, 213, 255, 0.16);
  cursor: pointer;
}
.controls-trigger i {
  color: #FFFFFF;
  font-size: 1rem;
}
.controls-panel.is-open .controls-trigger {
  display: none;
  border-color: rgba(255, 36, 79, 0.88);
  box-shadow: inset 0 0 20px rgba(255, 36, 79, 0.12), 0 0 20px rgba(255, 36, 79, 0.24);
}
.controls-panel.is-open {
  position: fixed;
  inset: 0;
  z-index: 70;
  min-height: 0;
  display: block;
  pointer-events: auto;
}
.controls-panel.is-open::before {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(4px);
  content: "";
}
.controls-drawer {
  position: fixed;
  z-index: 55;
  top: 0;
  right: 0;
  width: min(340px, calc(100vw - 24px));
  height: 100dvh;
  max-height: 100dvh;
  padding: 18px 18px max(22px, env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: none;
  opacity: 0;
  transform: translateX(104%);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}
.controls-panel.is-open .controls-drawer {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.controls-drawer__header {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  min-height: 114px;
  padding: 2px 34px 0;
}
.controls-drawer__brand {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.controls-drawer__logo {
  width: min(210px, 78%);
  display: block;
  filter: drop-shadow(0 0 14px rgba(99, 255, 87, 0.5));
}
.controls-drawer__head {
  width: 58px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 36, 79, 0.72)) drop-shadow(0 0 18px rgba(185, 78, 255, 0.42));
}
.drawer-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  color: #f6f0ff;
  font-size: 1.35rem;
  font-weight: 900;
  background: transparent;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.78), 0 0 14px rgba(255, 36, 79, 0.52);
  cursor: pointer;
}
.controls-drawer__keys {
  padding-top: 2px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}
.key-cluster {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  grid-template-areas: ". up ." "left down right";
  gap: 6px;
  justify-content: center;
}
.key-cluster kbd {
  min-width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 156, 255, 0.7);
  border-radius: 5px;
  background: rgba(9, 20, 45, 0.92);
  color: #a9ddff;
  font-weight: 900;
  box-shadow: inset 0 0 12px rgba(0, 213, 255, 0.12);
}
.key-cluster kbd:nth-child(1) {
  grid-area: up;
}
.key-cluster kbd:nth-child(2) {
  grid-area: left;
}
.key-cluster kbd:nth-child(3) {
  grid-area: down;
}
.key-cluster kbd:nth-child(4) {
  grid-area: right;
}
.key-cluster.wasd {
  grid-template-areas: ". up ." "left down right";
}
.control-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.drawer-menu-button {
  --drawer-button-color: #20ffd7;
  --drawer-button-text: var(--drawer-button-color);
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-4.png");
  min-height: 62px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "label" "hint";
  place-items: center;
  align-items: center;
  gap: 2px;
  border: 1px solid color-mix(in srgb, var(--drawer-button-color) 86%, transparent);
  border-radius: 5px;
  color: var(--drawer-button-text);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(1, 4, 10, 0.62), rgba(1, 4, 10, 0.86)), var(--drawer-button-image) center / cover no-repeat;
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--drawer-button-color) 16%, transparent), 0 0 18px color-mix(in srgb, var(--drawer-button-color) 20%, transparent);
  cursor: pointer;
}
.drawer-menu-button i {
  display: none;
  grid-area: icon;
  color: var(--drawer-button-color);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--drawer-button-color) 58%, transparent));
}
.drawer-menu-button span {
  grid-area: label;
  color: var(--drawer-button-text);
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-shadow: 0 0 10px color-mix(in srgb, var(--drawer-button-color) 78%, transparent), 0 0 18px color-mix(in srgb, var(--drawer-button-color) 45%, transparent);
}
.drawer-menu-button small {
  grid-area: hint;
  color: #f6f0ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.1;
  text-shadow: 0 0 9px rgba(255, 255, 255, 0.48);
}
.drawer-menu-button:hover,
.drawer-menu-button:focus-visible {
  outline: 0;
  filter: brightness(1.15);
}
.drawer-menu-button--home,
.drawer-menu-button--audio {
  --drawer-button-color: #ff5a1f;
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-1.png");
}
.drawer-menu-button--os,
.drawer-menu-button--cache {
  --drawer-button-color: #20ffd7;
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-4.png");
}
.drawer-menu-button--skin {
  --drawer-button-color: #24c8ff;
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-5.png");
}
.drawer-menu-button--how,
.drawer-menu-button--warp {
  --drawer-button-color: #b76cff;
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-6.png");
}
.drawer-menu-button--map {
  --drawer-button-color: #ffd34a;
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-2.png");
}
.drawer-menu-button--purchase {
  --drawer-button-color: #a8ff2a;
  --drawer-button-text: var(--drawer-button-color);
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-3.png");
}
.drawer-menu-button--purchase.is-restoring {
  --drawer-button-color: #a8ff2a;
  --drawer-button-text: var(--drawer-button-color);
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-3.png");
}
.drawer-menu-button--pause {
  --drawer-button-color: #ff3f82;
  --drawer-button-text: var(--drawer-button-color);
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-7.png");
}
.drawer-menu-button--settings {
  --drawer-button-color: #ff40b9;
  --drawer-button-image: url("https://assets.worldweavergames.com/images/level-select/snake-texture-8.png");
}
.controls-drawer__support {
  padding-top: 20px;
  display: grid;
  gap: 20px;
  border-top: 1px solid rgba(0, 213, 255, 0.18);
}
.controls-drawer__support a {
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 5px;
  color: #f6f0ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.08), rgba(5, 10, 25, 0.9));
  box-shadow: inset 0 0 16px rgba(0, 213, 255, 0.08);
}
.controls-drawer__support small {
  color: rgba(213, 236, 255, 0.54);
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}
.drawer-paypal {
  width: min(100%, 240px);
  display: grid;
  justify-items: center;
  justify-self: center;
}
.drawer-paypal form {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.45rem;
  width: 100%;
}
.drawer-paypal img {
  max-width: 138px;
}
.drawer-paypal section {
  color: rgba(213, 236, 255, 0.62);
  font-size: 0.7rem;
  text-align: center;
}
.drawer-paypal section img {
  height: 0.8rem;
  vertical-align: middle;
}
html.is-electron .drawer-paypal {
  display: none;
}
.paypal-donate-button {
  min-width: 10.5rem;
  height: 2.45rem;
  padding: 0 1.5rem;
  border: 1px solid #000000;
  border-radius: 1.5rem;
  color: #000000;
  background-color: #ffffff;
  cursor: pointer;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
}
.support-payment-note {
  max-width: 220px;
  color: rgba(213, 236, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.icon-button {
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  color: #f6f0ff;
  font-weight: 900;
  cursor: pointer;
}
.title-screen-button {
  color: #63ff57;
  text-decoration: none;
}
.mobile-controls button {
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  color: #20e8ff;
  font-weight: 900;
  cursor: pointer;
}
#worldMenuButton {
  color: #ff244f;
}
.settings-menu {
  position: relative;
}
.settings-menu summary {
  list-style: none;
}
.settings-menu summary::-webkit-details-marker {
  display: none;
}
.settings-menu[open] summary,
.settings-menu.is-open summary {
  color: #ff8a2a;
  border-color: rgba(255, 138, 42, 0.9);
  box-shadow: 0 0 16px rgba(255, 138, 42, 0.38), inset 0 0 18px rgba(255, 138, 42, 0.16);
}
.settings-panel {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 170px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(0, 213, 255, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 18, 42, 0.98), rgba(3, 7, 18, 0.98));
}
.controls-drawer .settings-panel {
  position: static;
  margin-top: 8px;
  min-width: 0;
  border-color: rgba(255, 138, 42, 0.52);
  background: rgba(0, 0, 0, 0.58);
}
.setting-row {
  min-height: 38px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}
.setting-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.setting-row input {
  width: 18px;
  height: 18px;
  display: grid;
  place-content: center;
  appearance: none;
  border: 1px solid rgba(99, 255, 87, 0.82);
  border-radius: 3px;
  background: rgba(2, 6, 10, 0.94);
  box-shadow: inset 0 0 8px rgba(99, 255, 87, 0.1);
}
.setting-row input::before {
  width: 5px;
  height: 10px;
  border-right: 2px solid #02060b;
  border-bottom: 2px solid #02060b;
  content: "";
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform 120ms ease;
}
.setting-row input:checked {
  border-color: #63ff57;
  background: #63ff57;
  box-shadow: 0 0 10px rgba(99, 255, 87, 0.42), inset 0 0 6px rgba(255, 255, 255, 0.18);
}
.setting-row input:checked::before {
  transform: translateY(-1px) rotate(45deg) scale(1);
}
.overlay {
  position: absolute;
  z-index: 7;
  inset: 14px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: rgba(2, 5, 14, 0.2);
  backdrop-filter: blur(5px);
  overflow: hidden;
}
.overlay.is-visible {
  display: grid;
}
.overlay::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(2, 5, 14, 0.06), rgba(2, 5, 14, 0.22)), radial-gradient(circle at 50% 46%, rgba(2, 5, 14, 0.52) 0 24%, rgba(2, 5, 14, 0.2) 42%, transparent 68%), var(--overlay-screen-image, none) center / cover no-repeat;
  opacity: 0;
  content: "";
  transform: scale(1.01);
  transition: opacity 180ms ease;
}
.overlay::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px), radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(2, 5, 14, 0.18) 82%);
  background-size: 100% 4px, 100% 100%, 100% 100%;
  opacity: 0;
  content: "";
  pointer-events: none;
}
.overlay.has-zone-screen {
  background: rgba(2, 5, 14, 0.08);
  backdrop-filter: blur(1px);
}
.overlay.has-zone-screen::before,
.overlay.has-zone-screen::after {
  opacity: 1;
}
.overlay > * {
  position: relative;
  z-index: 1;
}
.overlay h2 {
  color: #f6f0ff;
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(185, 78, 255, 0.92);
}
.overlay p {
  max-width: 520px;
  color: #f6f0ff;
  line-height: 1.45;
}
.resume-countdown {
  position: absolute;
  z-index: 8;
  inset: 14px;
  display: none;
  place-items: center;
  color: #f6f0ff;
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 34px rgba(185, 78, 255, 0.95), 0 0 58px rgba(0, 229, 255, 0.72);
  pointer-events: none;
}
.resume-countdown.is-visible {
  display: grid;
  animation: countdown-pop 1s ease-out infinite;
}
.run-summary {
  display: none;
  width: min(520px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.run-summary.is-visible {
  display: grid;
}
.run-summary div {
  padding: 10px;
  border: 1px solid rgba(0, 213, 255, 0.32);
  border-radius: 7px;
  background: rgba(4, 12, 28, 0.78);
}
.run-summary span {
  display: block;
  color: #00e5ff;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}
.run-summary strong {
  color: #20e8ff;
  font-size: 1.2rem;
}
#startButton {
  min-width: 166px;
  min-height: 50px;
  padding: 0 22px;
  color: #f6f0ff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
}
.upgrade-panel {
  grid-column: 2;
  grid-row: 3;
  display: none;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: var(--cabinet-gap);
  align-items: stretch;
  min-height: var(--tray-height);
  padding: 8px;
  border: 1px solid rgba(0, 213, 255, 0.2);
  border-radius: 5px;
  background: linear-gradient(#ff244f, #ff244f) 0 0 / 82px 2px no-repeat, linear-gradient(#8b5cff, #8b5cff) 0 0 / 2px 54px no-repeat, linear-gradient(#8b5cff, #8b5cff) 100% 0 / 82px 2px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 0 / 2px 54px no-repeat, linear-gradient(#00e5ff, #00e5ff) 0 100% / 82px 2px no-repeat, linear-gradient(#8b5cff, #8b5cff) 0 100% / 2px 54px no-repeat, linear-gradient(#8b5cff, #8b5cff) 100% 100% / 82px 2px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 100% / 2px 54px no-repeat, linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 18%, transparent 82%, rgba(185, 78, 255, 0.08)), linear-gradient(180deg, rgba(2, 5, 14, 0.8), rgba(2, 5, 14, 0.96));
  box-shadow: 0 0 18px rgba(139, 92, 255, 0.16), 0 0 16px rgba(255, 36, 79, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 -12px 34px rgba(0, 0, 0, 0.34);
}
.upgrade-panel.is-visible {
  display: grid;
}
.upgrade-heading {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  border: 1px solid rgba(185, 78, 255, 0.22);
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(185, 78, 255, 0.12), transparent 72%), linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 18%, transparent 82%, rgba(185, 78, 255, 0.08)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(7, 14, 34, 0.96), rgba(2, 5, 15, 0.98));
}
.upgrade-heading span {
  color: #b94eff;
  font-size: clamp(1.3rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(185, 78, 255, 0.9);
}
.upgrade-heading strong {
  color: #a9ddff;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.upgrade-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--cabinet-gap);
}
.upgrade-card {
  --upgrade-color: #00e5ff;
  --upgrade-glow: rgba(0, 229, 255, 0.9);
  min-height: 98px;
  padding: 14px 16px 12px 90px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-color: var(--upgrade-color);
  border-radius: 5px;
  color: #a9ddff;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(var(--upgrade-color), var(--upgrade-color)) top left / 30px 2px no-repeat, linear-gradient(var(--upgrade-color), var(--upgrade-color)) bottom right / 30px 2px no-repeat, linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 18%, transparent 82%, rgba(185, 78, 255, 0.08)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(7, 14, 34, 0.96), rgba(2, 5, 15, 0.98));
  clip-path: none;
}
.upgrade-card::before {
  display: block;
  top: 50%;
  left: 24px;
  width: 44px;
  height: 44px;
  border: 4px solid var(--upgrade-color);
  border-radius: 10px;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 18px var(--upgrade-glow), inset 0 0 18px rgba(255, 255, 255, 0.12);
}
.upgrade-card .upgrade-icon {
  position: absolute;
  top: 50%;
  left: 28px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--upgrade-color);
  transform: translateY(-50%);
  pointer-events: none;
}
.upgrade-card .upgrade-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  filter: drop-shadow(0 0 10px currentColor);
}
.upgrade-card::after {
  display: none;
}
.upgrade-card strong {
  color: var(--upgrade-color);
  font-size: 0.86rem;
  line-height: 1.1;
  text-transform: uppercase;
}
.upgrade-card > span:not(.upgrade-icon) {
  color: #a9ddff;
  font-size: 0.7rem;
  line-height: 1.35;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.upgrade-card[data-upgrade="overclock"] {
  --upgrade-color: #ff8a2a;
  --upgrade-glow: rgba(255, 138, 42, 0.9);
}
.upgrade-card[data-upgrade="compression"] {
  --upgrade-color: #22ff7a;
  --upgrade-glow: rgba(34, 255, 122, 0.72);
}
.upgrade-card[data-upgrade="magnet"] {
  --upgrade-color: #00e5ff;
  --upgrade-glow: rgba(0, 229, 255, 0.9);
}
.upgrade-card[data-upgrade="ghost"] {
  --upgrade-color: #b94eff;
  --upgrade-glow: rgba(185, 78, 255, 0.9);
}
.upgrade-card[data-upgrade="storm"] {
  --upgrade-color: #4f8cff;
  --upgrade-glow: rgba(79, 140, 255, 0.86);
}
.upgrade-card[data-upgrade="cache"] {
  --upgrade-color: #ffd166;
  --upgrade-glow: rgba(255, 209, 102, 0.82);
}
.upgrade-card[data-upgrade="warp"] {
  --upgrade-color: #ff4fc3;
  --upgrade-glow: rgba(255, 79, 195, 0.86);
}
.upgrade-card[data-upgrade="surge"] {
  --upgrade-color: #43e8ff;
  --upgrade-glow: rgba(67, 232, 255, 0.86);
}
.upgrade-card[data-upgrade="lightning"] {
  --upgrade-color: #f6f0ff;
  --upgrade-glow: rgba(246, 240, 255, 0.86);
}
.upgrade-card[data-upgrade="blackhole"] {
  --upgrade-color: #8d68ff;
  --upgrade-glow: rgba(141, 104, 255, 0.86);
}
.upgrade-card[data-upgrade="repair"] {
  --upgrade-color: #ff8a2a;
  --upgrade-glow: rgba(255, 138, 42, 0.78);
}
.upgrade-card[data-upgrade="hunter"] {
  --upgrade-color: #ff153f;
  --upgrade-glow: rgba(255, 21, 63, 0.78);
}
.speed-probe {
  position: fixed;
  left: -999px;
  top: -999px;
}
.mobile-controls {
  display: none;
}
.world-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: clamp(12px, 3vw, 46px);
  display: grid;
  place-items: start center;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 30%, rgba(139, 92, 255, 0.22), transparent 34%), rgba(1, 4, 12, 0.78);
  backdrop-filter: blur(8px) brightness(0.72);
}
.world-dialog.is-hidden {
  display: none;
}
.world-dialog__panel {
  position: relative;
  width: min(1400px, 100%);
  min-height: min-content;
  padding: clamp(18px, 3vw, 55px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(14px, 1.7vw, 22px);
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: radial-gradient(circle at 28% 18%, rgba(185, 78, 255, 0.22), transparent 28%), linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 78, 255, 0.045) 1px, transparent 1px), rgba(2, 4, 13, 0.88);
  background-size: auto, 42px 42px, 42px 42px, auto;
  box-shadow: 0 0 70px rgba(0, 229, 255, 0.22), 0 0 110px rgba(139, 92, 255, 0.2), inset 0 0 70px rgba(0, 0, 0, 0.72);
}
.world-dialog__panel::before {
  position: absolute;
  inset: -6px;
  z-index: 2;
  background: url("https://assets.worldweavergames.com/images/game-board/dialog-frame.png") center / 100% 100% no-repeat;
  pointer-events: none;
  content: "";
}
.world-dialog__panel > * {
  position: relative;
  z-index: 3;
}
.world-dialog__home {
  position: absolute;
  top: 28px;
  right: 86px;
  z-index: 10;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 1.55rem;
  text-decoration: none;
}
.world-dialog__home:hover,
.world-dialog__home:focus-visible {
  outline: 0;
  border-color: rgba(255, 45, 111, 0.9);
  color: #ffffff;
}
.world-dialog__home i {
  line-height: 1;
}
.world-dialog__close {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: white;
  font-size: 1.55rem;
  line-height: 0.8;
  border: none;
  background: rgba(3, 8, 22, 0.88);
  cursor: pointer;
}
.world-dialog__close:hover {
  color: white;
}
.world-dialog__intro {
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.5fr);
  gap: clamp(18px, 2.2vw, 34px);
}
.world-copy {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.world-copy .hero-logo {
  width: 100%;
  max-width: 350px;
}
.world-copy > span,
.world-copy p {
  color: white;
}
.world-copy > span {
  display: inline-grid;
  grid-template-columns: minmax(34px, 1fr) auto minmax(34px, 1fr);
  align-items: center;
  gap: 14px;
  width: min(420px, 100%);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: white;
}
.world-copy > span::before,
.world-copy > span::after {
  height: 1px;
  background-color: white;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.45);
  content: "";
}
.world-copy > span::before {
  opacity: 0.78;
}
.world-copy > span::after {
  opacity: 0.88;
}
.world-copy p {
  max-width: 450px;
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
  line-height: 1.45;
}
.world-pillars {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.world-pillars article {
  min-height: 150px;
  padding: 18px 12px 16px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: var(--pillar-image) center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.12));
}
.world-pillars article i {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 2.9rem;
  line-height: 1;
  text-shadow: 0 0 0px currentColor, 0 0 20px color-mix(in srgb, currentColor 72%, transparent), 0 0 34px color-mix(in srgb, currentColor 48%, transparent);
}
.world-pillars article strong {
  color: #00e5ff;
  font-size: 0.86rem;
  text-transform: uppercase;
}
.world-pillars article small {
  color: #d5ecff;
  font-size: 0.8rem;
  line-height: 1.25;
}
.world-pillars .pillar-card-data {
  --pillar-image: url("https://assets.worldweavergames.com/images/level-select/blue-tile.png");
}
.world-pillars .pillar-card-upgrade {
  --pillar-image: url("https://assets.worldweavergames.com/images/level-select/purple-tile.png");
}
.world-pillars .pillar-card-survive {
  --pillar-image: url("https://assets.worldweavergames.com/images/level-select/pink-tile.png");
}
.world-pillars .pillar-card-dominate {
  --pillar-image: url("https://assets.worldweavergames.com/images/level-select/yellow-tile.png");
}
.world-pillars .pillar-data {
  color: #00e5ff;
}
.world-pillars .pillar-upgrade {
  color: #b94eff;
}
.world-pillars .pillar-survive {
  color: #ff244f;
}
.world-pillars .pillar-dominate {
  color: #ffd166;
}
.world-map-art {
  position: relative;
  min-height: 360px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(2, 4, 13, 0.98), transparent 16%, transparent 84%, rgba(2, 4, 13, 0.98)), linear-gradient(180deg, rgba(2, 4, 13, 0.86), transparent 18%, transparent 78%, rgba(2, 4, 13, 0.9));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-composite: intersect;
}
.world-map-art::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 46%, rgba(2, 4, 13, 0.34) 74%, rgba(2, 4, 13, 0.9) 100%), linear-gradient(90deg, rgba(2, 4, 13, 0.7), transparent 20%, transparent 80%, rgba(2, 4, 13, 0.7));
  content: "";
  pointer-events: none;
}
.world-map-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.arena-access {
  position: absolute;
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 50px);
  z-index: 3;
  min-width: 220px;
  padding: 13px 18px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(99, 255, 87, 0.38);
  border-radius: 6px;
  color: #63ff57;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  text-align: left;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(7, 22, 10, 0.74), rgba(1, 7, 4, 0.94)), linear-gradient(90deg, rgba(99, 255, 87, 0.14), transparent 72%);
  box-shadow: inset 0 0 22px rgba(99, 255, 87, 0.08), 0 0 20px rgba(99, 255, 87, 0.12);
  opacity: 0.56;
  cursor: not-allowed;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, transform 160ms ease;
}
.arena-access span {
  color: #b3ff99;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}
.arena-access strong {
  color: #63ff57;
  font-size: 1.04rem;
  letter-spacing: 0.11em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(99, 255, 87, 0.48);
}
.arena-access small {
  color: #a9ddff;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}
.arena-access.is-unlocked {
  border-color: rgba(99, 255, 87, 0.82);
  opacity: 1;
  cursor: pointer;
}
.arena-access.is-unlocked:hover,
.arena-access.is-selected {
  box-shadow: inset 0 0 24px rgba(99, 255, 87, 0.18), 0 0 28px rgba(99, 255, 87, 0.34);
  transform: translateY(-1px);
}
.arena-access.is-selected {
  border-color: #63ff57;
}
.arena-access:disabled {
  pointer-events: none;
}
.arena-access--mobile {
  position: relative;
  inset: auto;
  display: none;
  width: min(100%, 420px);
  justify-self: center;
  text-align: center;
}
.map-node,
.map-path {
  position: absolute;
  z-index: 2;
  display: none;
  pointer-events: none;
}
.map-node {
  width: 26px;
  height: 26px;
  border: 4px solid #00e5ff;
  border-radius: 50%;
  background: #061020;
  box-shadow: 0 0 20px #00e5ff;
}
.node-core {
  left: 50%;
  top: 58%;
  width: 36px;
  height: 36px;
}
.node-cyber {
  left: 30%;
  top: 44%;
  border-color: #b94eff;
  box-shadow: 0 0 20px #b94eff;
}
.node-jungle {
  left: 58%;
  top: 37%;
  border-color: #22ff7a;
  box-shadow: 0 0 20px #22ff7a;
}
.node-frozen {
  left: 78%;
  top: 34%;
  border-color: #7ed8ff;
  box-shadow: 0 0 20px #7ed8ff;
}
.node-lava {
  left: 76%;
  top: 72%;
  border-color: #ff4b1f;
  box-shadow: 0 0 20px #ff4b1f;
}
.node-abyss {
  left: 48%;
  top: 78%;
  border-color: #00e5ff;
  box-shadow: 0 0 20px #00e5ff;
}
.map-path {
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #8b5cff);
  box-shadow: 0 0 14px #00e5ff;
  transform-origin: left center;
}
.path-one {
  left: 33%;
  top: 47%;
  width: 160px;
  transform: rotate(24deg);
}
.path-two {
  left: 53%;
  top: 59%;
  width: 142px;
  transform: rotate(-28deg);
}
.path-three {
  left: 54%;
  top: 61%;
  width: 170px;
  transform: rotate(28deg);
}
.path-four {
  left: 50%;
  top: 63%;
  width: 120px;
  transform: rotate(92deg);
}
.world-zone-heading {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
}
.world-zone-heading span {
  display: inline-grid;
  grid-template-columns: minmax(54px, 1fr) auto minmax(54px, 1fr);
  align-items: center;
  gap: 18px;
  width: min(620px, 100%);
  color: white;
  letter-spacing: 0.48em;
  text-transform: uppercase;
}
.world-zone-heading span::before,
.world-zone-heading span::after {
  height: 1px;
  background-color: white;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.42);
  content: "";
}
.world-zone-heading p {
  max-width: 520px;
  color: white;
  font-size: 0.92rem;
  line-height: 1.35;
}
.world-cards {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 12px;
}
.world-card {
  position: relative;
  min-height: 270px;
  padding: 12px;
  display: grid;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #d5ecff;
  text-align: left;
  background: linear-gradient(180deg, rgba(10, 18, 42, 0.92), rgba(3, 6, 14, 0.98));
  opacity: 0.48;
  overflow: hidden;
  cursor: not-allowed;
}
.world-card.is-unlocked {
  opacity: 1;
  cursor: pointer;
}
.world-card:not(.is-unlocked) .world-card__art {
  filter: grayscale(1) brightness(0.55) contrast(1.08);
}
.world-card:not(.is-unlocked) .world-card__number {
  border-color: rgba(214, 225, 239, 0.32);
  color: rgba(214, 225, 239, 0.56);
  box-shadow: none;
  text-shadow: none;
}
.world-card:not(.is-unlocked) .world-card__meta strong {
  color: rgba(214, 225, 239, 0.54);
  text-shadow: 0 0 10px rgba(246, 240, 255, 0.18);
}
.world-card:not(.is-unlocked) .world-card__meta span {
  color: rgba(0, 229, 255, 0.52);
  text-shadow: none;
}
.world-card:not(.is-unlocked) .world-card__meta small {
  border-color: rgba(214, 225, 239, 0.16);
  color: rgba(214, 225, 239, 0.48);
  background: rgba(26, 20, 39, 0.56);
  box-shadow: none;
  text-shadow: none;
}
.world-card.is-selected {
  border-color: #b94eff;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.64), 0 0 28px rgba(185, 78, 255, 0.7);
}
.world-card__art {
  position: absolute;
  inset: 10px;
  z-index: 0;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(2, 6, 16, 0.04), rgba(2, 6, 16, 0.72)), var(--zone-image), radial-gradient(circle at 50% 30%, var(--zone-glow, #00e5ff), transparent 34%), linear-gradient(135deg, var(--zone-a, #101c38), var(--zone-b, #02040b));
  background-position: center;
  background-size: cover, cover, auto, auto;
}
.world-card__art::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
  opacity: 0.42;
  content: "";
}
.world-card[data-theme="cyber"] {
  --zone-a: #18003b;
  --zone-b: #020815;
  --zone-glow: #b94eff;
}
.world-card[data-theme="jungle"] {
  --zone-a: #062617;
  --zone-b: #050c08;
  --zone-glow: #22ff7a;
}
.world-card[data-theme="frozen"] {
  --zone-a: #0b2a48;
  --zone-b: #020a16;
  --zone-glow: #7ed8ff;
}
.world-card[data-theme="lava"] {
  --zone-a: #361006;
  --zone-b: #090304;
  --zone-glow: #ff4b1f;
}
.world-card[data-theme="abyss"] {
  --zone-a: #062340;
  --zone-b: #010611;
  --zone-glow: #00e5ff;
}
.world-card[data-theme="sky"] {
  --zone-a: #23253f;
  --zone-b: #050610;
  --zone-glow: #d8f1ff;
}
.world-card[data-theme="arena"] {
  --zone-a: #143c10;
  --zone-b: #020b04;
  --zone-glow: #60ff4f;
}
.world-card__number,
.world-card__lock {
  z-index: 1;
}
.world-card__number {
  position: absolute;
  left: 12px;
  top: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--zone-glow, #00e5ff);
  color: #ffffff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  background: rgba(7, 9, 24, 0.48);
  box-shadow: 0 0 10px color-mix(in srgb, var(--zone-glow, #00e5ff) 72%, transparent), inset 0 0 10px color-mix(in srgb, var(--zone-glow, #00e5ff) 24%, transparent);
  text-shadow: 0 0 8px rgba(246, 240, 255, 0.86), 0 0 14px color-mix(in srgb, var(--zone-glow, #00e5ff) 72%, transparent);
}
.world-card__number.neon-metropolis,
.world-card__number.theme-cyber {
  --zone-glow: #b94eff;
}
.world-card__number.theme-jungle {
  --zone-glow: #22ff7a;
}
.world-card__number.theme-frozen {
  --zone-glow: #7ed8ff;
}
.world-card__number.theme-lava {
  --zone-glow: #ff244f;
}
.world-card__number.theme-abyss {
  --zone-glow: #00e5ff;
}
.world-card__number.theme-sky {
  --zone-glow: #d8f1ff;
}
.world-card__number.theme-arena {
  --zone-glow: #60ff4f;
}
.world-card__lock {
  position: relative;
  justify-self: center;
  margin-bottom: 8px;
  color: rgba(214, 225, 239, 0.64);
  font-size: 2.35rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(214, 225, 239, 0.28), 0 0 18px rgba(214, 225, 239, 0.16);
}
.world-card__meta {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 92px 6px 6px;
  display: grid;
  gap: 5px;
  border-radius: 4px;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(2, 5, 15, 0.82) 38%, rgba(2, 5, 15, 0.96));
}
.world-card__meta strong {
  color: #ffffff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  line-height: 1.05;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.82), 0 0 16px rgba(185, 78, 255, 0.72);
}
.world-card__meta span {
  color: #00e5ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.62);
}
.world-card__meta small {
  margin-top: 9px;
  padding: 9px 8px;
  border: 1px solid rgba(185, 78, 255, 0.42);
  border-radius: 5px;
  color: #ffffff;
  letter-spacing: 0.13em;
  background: linear-gradient(90deg, rgba(185, 78, 255, 0.16), rgba(255, 36, 79, 0.08), rgba(185, 78, 255, 0.16)), rgba(16, 6, 28, 0.72);
  box-shadow: inset 0 0 18px rgba(185, 78, 255, 0.18), 0 0 14px rgba(185, 78, 255, 0.22);
  text-shadow: 0 0 10px rgba(246, 240, 255, 0.74);
}
.world-card.is-unlocked:not(.is-selected) .world-card__meta small {
  border-color: rgba(0, 229, 255, 0.32);
  color: rgba(213, 236, 255, 0.78);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.08), rgba(67, 232, 255, 0.04), rgba(0, 229, 255, 0.08)), rgba(5, 14, 28, 0.72);
  box-shadow: inset 0 0 14px rgba(0, 229, 255, 0.08), 0 0 8px rgba(0, 229, 255, 0.1);
  text-shadow: 0 0 8px rgba(169, 221, 255, 0.36);
}
.world-card.is-selected .world-card__meta small {
  border-color: rgba(185, 78, 255, 0.86);
  color: #ffffff;
  background: linear-gradient(90deg, rgba(185, 78, 255, 0.3), rgba(255, 36, 79, 0.12), rgba(185, 78, 255, 0.3)), rgba(28, 8, 45, 0.86);
  box-shadow: inset 0 0 20px rgba(185, 78, 255, 0.24), 0 0 18px rgba(185, 78, 255, 0.34);
  text-shadow: 0 0 12px rgba(246, 240, 255, 0.88);
}
.world-dialog__footer {
  display: grid;
  place-items: center;
}
.world-enter {
  min-height: 58px;
  padding: 0 36px;
  border: 1px solid rgba(185, 78, 255, 0.96);
  border-radius: 6px;
  color: #ffffff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(36, 64, 116, 0.72), rgba(5, 8, 24, 0.9) 48%, rgba(58, 22, 82, 0.82)), linear-gradient(90deg, rgba(0, 229, 255, 0.18), rgba(246, 240, 255, 0.1), rgba(185, 78, 255, 0.2));
  cursor: pointer;
}
.world-enter span {
  margin-left: 10px;
}
.demo-purchase-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: clamp(12px, 3vw, 32px);
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 18%, rgba(164, 255, 40, 0.16), transparent 30%), radial-gradient(circle at 0 50%, rgba(185, 78, 255, 0.22), transparent 28%), radial-gradient(circle at 100% 50%, rgba(185, 78, 255, 0.18), transparent 28%), linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 16%, transparent 84%, rgba(0, 229, 255, 0.08)), rgba(1, 4, 12, 0.82);
  backdrop-filter: blur(12px) brightness(0.68);
}
.demo-purchase-dialog.is-hidden {
  display: none;
}
.demo-purchase-dialog__panel {
  position: relative;
  width: min(940px, 100%);
  max-height: min(940px, calc(100vh - 24px));
  padding: clamp(22px, 4vw, 50px) clamp(18px, 5vw, 70px);
  display: grid;
  gap: clamp(14px, 2.1vh, 24px);
  border: 1px solid rgba(170, 255, 34, 0.82);
  border-radius: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(170, 255, 34, 0.78) rgba(4, 8, 18, 0.82);
  scrollbar-width: thin;
  text-align: center;
  background: linear-gradient(rgba(129, 255, 51, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px), radial-gradient(circle at 50% 0, rgba(164, 255, 40, 0.13), transparent 28%), radial-gradient(circle at 50% 42%, rgba(185, 78, 255, 0.14), transparent 36%), linear-gradient(180deg, rgba(8, 17, 26, 0.98), rgba(3, 6, 15, 0.99));
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow: 0 0 0 1px rgba(170, 255, 34, 0.22), 0 0 42px rgba(170, 255, 34, 0.24), 0 0 95px rgba(185, 78, 255, 0.22), inset 0 0 66px rgba(0, 0, 0, 0.62);
}
.demo-purchase-dialog__panel::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(170, 255, 34, 0.68), transparent 20%, transparent 80%, rgba(170, 255, 34, 0.68)) top / 100% 2px no-repeat, linear-gradient(90deg, rgba(185, 78, 255, 0.62), transparent 32%, transparent 68%, rgba(185, 78, 255, 0.62)) center / 100% 1px no-repeat, linear-gradient(90deg, rgba(170, 255, 34, 0.48), transparent 20%, transparent 80%, rgba(170, 255, 34, 0.48)) bottom / 100% 2px no-repeat;
  opacity: 0.72;
  content: "";
  pointer-events: none;
}
.demo-purchase-dialog__panel::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 5px), linear-gradient(180deg, transparent, rgba(164, 255, 40, 0.04), transparent);
  mix-blend-mode: screen;
  opacity: 0.2;
  content: "";
  pointer-events: none;
}
.demo-purchase-dialog__panel::-webkit-scrollbar {
  width: 10px;
}
.demo-purchase-dialog__panel::-webkit-scrollbar-track {
  background: rgba(4, 8, 18, 0.82);
}
.demo-purchase-dialog__panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(4, 8, 18, 0.82);
  border-radius: 999px;
  background: rgba(170, 255, 34, 0.78);
}
.demo-purchase-dialog__close {
  position: absolute;
  top: clamp(12px, 2vw, 22px);
  right: clamp(12px, 2vw, 22px);
  width: 54px;
  height: 54px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 255, 34, 0.72);
  border-radius: 7px;
  color: #f6f0ff;
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.96), rgba(4, 7, 18, 0.96));
  box-shadow: 0 0 16px rgba(170, 255, 34, 0.22), inset 0 0 16px rgba(185, 78, 255, 0.18);
  font-size: 1.25rem;
  z-index: 2;
}
.demo-purchase-dialog__art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.demo-purchase-dialog__art img {
  width: min(430px, 74vw);
  filter: drop-shadow(0 0 12px rgba(170, 255, 34, 0.82)) drop-shadow(0 0 26px rgba(170, 255, 34, 0.34));
}
.demo-purchase-dialog__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}
.demo-purchase-dialog__copy span {
  width: min(430px, 100%);
  min-height: 34px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  color: #dfff5f;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: linear-gradient(90deg, transparent, rgba(170, 255, 34, 0.16) 14%, rgba(170, 255, 34, 0.16) 86%, transparent), linear-gradient(90deg, rgba(170, 255, 34, 0.44), transparent 22%, transparent 78%, rgba(170, 255, 34, 0.44)) bottom / 100% 1px no-repeat;
  text-shadow: 0 0 13px rgba(170, 255, 34, 0.72);
}
.demo-purchase-dialog__copy h2 {
  color: #f6f0ff;
  font-size: clamp(2.4rem, 7vw, 4.85rem);
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(185, 78, 255, 0.85), 0 0 28px rgba(185, 78, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.24);
}
.demo-purchase-dialog__copy p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(246, 240, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.42;
}
.demo-purchase-dialog__features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}
.demo-purchase-dialog__features article {
  min-height: 118px;
  padding: 16px 10px 14px;
  display: grid;
  gap: 7px;
  place-items: center;
  border: 1px solid rgba(0, 229, 255, 0.42);
  border-radius: 7px;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px), linear-gradient(180deg, rgba(8, 24, 42, 0.88), rgba(4, 10, 25, 0.96));
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08), 0 0 20px rgba(185, 78, 255, 0.18);
}
.demo-purchase-dialog__features i {
  color: rgba(67, 232, 255, 0.92);
  font-size: 1.55rem;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
}
.demo-purchase-dialog__features strong {
  color: #00e5ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.05rem);
  line-height: 1;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.78), 0 0 24px rgba(0, 229, 255, 0.34);
}
.demo-purchase-dialog__features span {
  color: #f6f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-purchase-dialog__actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.demo-purchase-dialog__actions button {
  min-height: 58px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(185, 78, 255, 0.66);
  border-radius: 6px;
  color: #f6f0ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px), linear-gradient(180deg, rgba(17, 31, 62, 0.9), rgba(4, 8, 22, 0.96));
  box-shadow: inset 0 0 18px rgba(185, 78, 255, 0.13), 0 0 14px rgba(185, 78, 255, 0.16);
}
.demo-purchase-dialog__actions button i {
  color: #c58bff;
  text-shadow: 0 0 12px rgba(185, 78, 255, 0.68);
}
.demo-purchase-dialog__actions[hidden] {
  display: none !important;
}
.demo-purchase-dialog__recovery {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(200px, 240px);
  align-items: end;
  gap: 10px;
}
.demo-purchase-dialog__restore {
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(185, 78, 255, 0.78);
  border-radius: 7px;
  color: #f6f0ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px), linear-gradient(180deg, rgba(17, 31, 62, 0.9), rgba(4, 8, 22, 0.96));
  box-shadow: inset 0 0 18px rgba(185, 78, 255, 0.13), 0 0 14px rgba(185, 78, 255, 0.16);
}
.demo-purchase-dialog__restore i {
  color: #c58bff;
  text-shadow: 0 0 12px rgba(185, 78, 255, 0.68);
}
.demo-purchase-dialog__email {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  text-align: left;
}
.demo-purchase-dialog__email > span:first-child {
  color: #a9ddff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.demo-purchase-dialog__email-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.demo-purchase-dialog__email-label small {
  padding: 3px 7px;
  border: 1px solid rgba(255, 205, 83, 0.72);
  border-radius: 4px;
  color: #ffd166;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  background: rgba(255, 205, 83, 0.1);
  box-shadow: 0 0 12px rgba(255, 205, 83, 0.18);
}
.demo-purchase-dialog__email-shell {
  min-height: 58px;
  width: 100%;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid rgba(185, 78, 255, 0.78);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(185, 78, 255, 0.13), rgba(0, 229, 255, 0.04), rgba(185, 78, 255, 0.13)), rgba(3, 9, 22, 0.86);
  box-shadow: inset 0 0 18px rgba(185, 78, 255, 0.12), 0 0 14px rgba(185, 78, 255, 0.18);
}
.demo-purchase-dialog__email-shell i {
  color: #c58bff;
  font-size: 1.32rem;
  text-shadow: 0 0 14px rgba(185, 78, 255, 0.8);
}
.demo-purchase-dialog__email-shell input {
  min-height: 56px;
  width: 100%;
  padding-left: 20px;
  border: 0;
  color: #f6f0ff;
  font: inherit;
  background: transparent;
  outline: none;
}
.demo-purchase-dialog__email-shell input:focus {
  box-shadow: none;
}
.demo-purchase-dialog__email-shell:focus-within {
  border-color: rgba(170, 255, 34, 0.82);
  box-shadow: inset 0 0 18px rgba(170, 255, 34, 0.08), 0 0 20px rgba(170, 255, 34, 0.2);
}
.demo-purchase-dialog__primary {
  grid-column: 1 / -1;
  min-height: 72px !important;
  border-color: rgba(170, 255, 34, 0.96) !important;
  color: #f8ffed !important;
  font-size: clamp(1rem, 2vw, 1.22rem) !important;
  background: linear-gradient(180deg, rgba(170, 255, 34, 0.3), rgba(31, 74, 10, 0.34) 45%, rgba(5, 13, 18, 0.98)), linear-gradient(90deg, rgba(170, 255, 34, 0.2), rgba(170, 255, 34, 0.08), rgba(170, 255, 34, 0.2)) !important;
  box-shadow: inset 0 0 26px rgba(170, 255, 34, 0.2), 0 0 26px rgba(170, 255, 34, 0.36), 0 0 48px rgba(170, 255, 34, 0.18) !important;
}
.demo-purchase-dialog__primary i {
  color: #b4ff22 !important;
  text-shadow: 0 0 14px rgba(170, 255, 34, 0.88) !important;
}
.demo-purchase-dialog__primary[hidden] {
  display: none !important;
}
.demo-purchase-dialog__status {
  position: relative;
  z-index: 1;
  min-height: 1.4em;
  color: #a9ddff;
  font-size: 0.92rem;
  line-height: 1.35;
}
@keyframes countdown-pop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }
  18% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.18;
    transform: scale(0.92);
  }
}
@keyframes cache-pulse {
  from {
    transform: translateY(0);
    box-shadow: inset 0 0 14px rgba(255, 209, 102, 0.12), 0 0 10px rgba(255, 209, 102, 0.18);
  }
  to {
    transform: translateY(-1px);
    box-shadow: inset 0 0 18px rgba(255, 209, 102, 0.24), 0 0 20px rgba(255, 209, 102, 0.46);
  }
}
@keyframes scan-pulse {
  0%,
  100% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.25);
  }
}
@keyframes rail-current {
  0% {
    opacity: 0.35;
    transform: translateX(-12px);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.35;
    transform: translateX(12px);
  }
}
@media (max-width: 1400px) and (min-width: 861px) {
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .game-shell {
    min-height: 100dvh;
    height: auto;
    grid-template-rows: var(--title-height) auto auto;
    align-content: start;
  }
  .game-area,
  .board-wrap,
  .upgrade-panel {
    align-self: start;
  }
  .upgrade-panel {
    min-height: 0;
    margin-top: var(--cabinet-gap);
    grid-template-columns: 1fr;
  }
  .upgrade-heading {
    display: none;
  }
  .upgrade-options {
    grid-template-columns: 1fr;
  }
  .upgrade-card {
    min-height: 78px;
    padding: 12px 14px 12px 78px;
  }
  .upgrade-card::before {
    left: 22px;
    width: 36px;
    height: 36px;
  }
  .upgrade-card svg {
    left: 31px;
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 1180px) {
  :root {
    --tray-height: 120px;
    --cabinet-gap: 6px;
    --panel-cut: 14px;
  }
  .game-shell {
    gap: var(--cabinet-gap);
    padding: 10px;
  }
  .stats-panel,
  .right-rail .panel,
  .upgrade-strip {
    padding: 16px 14px;
  }
  .stat strong {
    font-size: clamp(1.2rem, 2.45vw, 2.4rem);
  }
  .legend-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
  }
  .legend-row small {
    grid-column: 2;
    text-align: left;
  }
  .upgrade-card {
    padding-left: 84px;
  }
  .upgrade-card::before {
    left: 22px;
    width: 40px;
    height: 40px;
  }
  .upgrade-card .upgrade-icon {
    left: 22px;
    width: 40px;
    height: 40px;
  }
  .upgrade-card .upgrade-icon svg {
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 1100px) {
  .world-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  :root {
    --title-height: 54px;
    --tray-height: 0px;
    --cabinet-gap: 8px;
    --panel-cut: 10px;
  }
  html,
  body {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
  .game-shell {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 8px 8px max(24px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--cabinet-gap);
    grid-template-columns: 1fr;
    grid-template-rows: var(--title-height) auto auto auto auto;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .title-rig {
    grid-column: 1;
    clip-path: none;
  }
  .title-rig h1 {
    padding-inline: 48px;
    font-size: clamp(1.22rem, 6vw, 2.05rem);
    letter-spacing: 0.08em;
  }
  .title-rig h1 img {
    width: clamp(22px, 8vw, 36px);
    height: clamp(18px, 6.5vw, 30px);
  }
  .title-rig::before,
  .title-rig::after {
    display: none;
  }
  .mobile-title-menu {
    position: absolute;
    z-index: 4;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    color: #f6f0ff;
    background: transparent;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.82), 0 0 14px rgba(185, 78, 255, 0.58);
    transform: translateY(-50%);
    cursor: pointer;
  }
  .mobile-title-menu i {
    font-size: 1.18rem;
  }
  .left-rail {
    grid-column: 1;
    grid-row: 2;
    grid-template-rows: auto;
  }
  .stats-panel {
    padding: 8px;
    background-color: black;
    background: black !important;
    border: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }
  .stats-panel:before {
    background: unset;
  }
  .cache-stat {
    display: none;
  }
  .stat {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .stat span {
    font-size: 0.5rem;
  }
  .stat strong,
  .stat.stat-score strong {
    font-size: clamp(0.82rem, 4vw, 1.15rem);
  }
  .stat.stat-lives strong {
    font-size: clamp(0.74rem, 3.5vw, 1rem);
  }
  .upgrade-strip,
  .minimap-panel,
  .speed-probe {
    display: none;
  }
  .right-rail {
    display: contents;
  }
  .right-rail > :not(.controls-panel) {
    display: none;
  }
  .controls-panel {
    position: fixed;
    inset: 0;
    z-index: 70;
    min-height: 0;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }
  .controls-trigger {
    display: none;
  }
  .controls-panel.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .controls-panel.is-open::before {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(4px);
    content: "";
  }
  .controls-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px 20px max(22px, env(safe-area-inset-bottom));
    overflow: auto;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    transform: translateX(104%);
  }
  .controls-panel.is-open .controls-drawer {
    transform: translateX(0);
  }
  .game-area {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
  }
  .board-wrap {
    width: min(100%, calc(100vw - 16px));
    max-height: none;
    place-self: start center;
    padding: 8px;
  }
  .board-wrap::after {
    inset: 8px;
  }
  .overlay,
  .resume-countdown {
    inset: 8px;
  }
  .overlay {
    align-content: center;
    gap: 10px;
    padding: 14px;
  }
  .overlay h2 {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: 0.06em;
  }
  .overlay p {
    max-width: 300px;
    font-size: clamp(0.9rem, 4.5vw, 1.08rem);
    line-height: 1.35;
  }
  .overlay .run-summary.is-visible {
    display: none;
  }
  .overlay #startButton {
    min-width: 150px;
    min-height: 46px;
  }
  .upgrade-panel {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    min-height: 0;
    margin-top: 8px;
    grid-template-columns: 1fr;
    gap: 8px;
    background: rgba(2, 5, 14, 0.92);
  }
  .upgrade-heading {
    display: none;
  }
  .upgrade-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .upgrade-card {
    min-height: 76px;
    padding: 12px 12px 12px 74px;
  }
  .upgrade-card::before {
    left: 22px;
    width: 34px;
    height: 34px;
  }
  .upgrade-card .upgrade-icon {
    left: 22px;
    width: 34px;
    height: 34px;
  }
  .upgrade-card .upgrade-icon svg {
    width: 22px;
    height: 22px;
  }
  .mobile-controls {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 5;
    width: 100%;
    margin-top: clamp(48px, 14vw, 72px);
    padding: 12px max(14px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: repeat(2, minmax(108px, 156px));
    grid-template-areas: "up up" "left right" "down down" "warp pause" "cache cache";
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
  }
  .mobile-controls button {
    min-width: 0;
    width: 100%;
    min-height: 62px;
    font-size: clamp(1rem, 4.6vw, 1.45rem);
  }
  .mobile-controls [data-action="up"] {
    grid-area: up;
  }
  .mobile-controls [data-action="left"] {
    grid-area: left;
  }
  .mobile-controls [data-action="right"] {
    grid-area: right;
  }
  .mobile-controls [data-action="down"] {
    grid-area: down;
  }
  .mobile-controls [data-action="warp"] {
    grid-area: warp;
    display: grid;
    place-items: center;
    color: #ffd34a;
    font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 211, 74, 0.58);
  }
  .mobile-controls .mobile-command--pause {
    grid-area: pause;
    display: grid;
    place-items: center;
    color: #ff3f82;
    font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 63, 130, 0.58);
  }
  .mobile-controls .mobile-command--map {
    grid-area: map;
    color: #ff244f;
    display: none;
  }
  .mobile-controls .mobile-command--menu {
    grid-area: menu;
    display: none;
    place-items: center;
    gap: 3px;
    color: #f6f0ff;
  }
  .mobile-controls .mobile-command--menu i {
    color: #8b5cff;
    font-size: 1rem;
  }
  .mobile-controls .mobile-command--menu span {
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
  }
  .mobile-controls .mobile-cache-button {
    grid-area: cache;
    min-height: 58px;
    padding: 7px 6px;
    display: grid;
    align-content: center;
    gap: 2px;
    color: #b9d8f4;
    text-align: center;
  }
  .mobile-controls .mobile-cache-button span,
  .mobile-controls .mobile-cache-button small {
    color: #a9ddff;
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }
  .mobile-controls .mobile-cache-button strong {
    width: fit-content;
    padding: 3px 5px 2px;
    border: 1px solid rgba(139, 92, 255, 0.72);
    border-radius: 4px;
    color: #d8ecff;
    font-size: clamp(0.86rem, 4vw, 1.05rem);
    letter-spacing: 0.06em;
    line-height: 1;
    text-shadow: 0 0 10px rgba(216, 91, 255, 0.58);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)), repeating-linear-gradient(90deg, rgba(139, 92, 255, 0.16) 0 2px, transparent 2px 10px);
  }
  .mobile-controls .mobile-cache-button.is-cache-ready strong,
  .mobile-controls .mobile-cache-button.is-cache-active strong {
    border-color: rgba(255, 209, 102, 0.72);
    color: #ffd166;
    text-shadow: 0 0 12px rgba(255, 209, 102, 0.9), 0 0 22px rgba(255, 138, 42, 0.5);
    animation: cache-pulse 0.9s ease-in-out infinite alternate;
  }
  .world-dialog {
    padding: 0;
    align-items: start;
  }
  .world-dialog .world-pillars {
    display: none;
  }
  .world-dialog__panel {
    width: 100%;
    max-height: none;
    padding: 18px 16px 22px;
    overflow: visible;
    background: radial-gradient(circle at 28% 18%, rgba(185, 78, 255, 0.22), transparent 28%), linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 78, 255, 0.045) 1px, transparent 1px), rgba(2, 4, 13, 0.94);
    background-size: auto, 42px 42px, 42px 42px, auto;
    gap: clamp(14px, 2vw, 22px);
  }
  .world-dialog__panel::before,
  .world-dialog__panel::after {
    display: none;
  }
  .world-cards {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .world-dialog__close {
    top: 16px;
    right: 20px;
    width: 46px;
    height: 46px;
    font-size: 1.18rem;
  }
  .world-dialog__home {
    top: 16px;
    left: 20px;
    width: 46px;
    height: 46px;
    font-size: 1.18rem;
  }
  .world-dialog__intro {
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .world-dialog__intro span {
    display: none;
  }
  .world-copy {
    gap: 14px;
    padding-top: 35px;
  }
  .world-copy h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    letter-spacing: 0.08em;
  }
  .world-copy > span {
    width: 100%;
    gap: 10px;
    letter-spacing: 0.28em;
  }
  .world-copy p {
    font-size: 1rem;
  }
  .world-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .world-pillars article {
    min-height: 136px;
    padding: 16px 10px 14px;
  }
  .world-pillars article i {
    width: 46px;
    height: 46px;
    font-size: 2.35rem;
  }
  .world-pillars article strong {
    font-size: 0.78rem;
  }
  .world-pillars article small {
    font-size: 0.72rem;
  }
  .world-map-art {
    display: none;
    min-height: 190px;
  }
  .arena-access--mobile {
    display: grid;
  }
  .world-zone-heading span {
    grid-template-columns: minmax(24px, 1fr) auto minmax(24px, 1fr);
    gap: 10px;
    letter-spacing: 0.34em;
  }
  .world-card {
    min-height: 220px;
    padding: 10px;
  }
  .world-card__meta {
    padding-top: 86px;
  }
  .world-card__meta strong {
    font-size: 0.92rem;
  }
  .world-card__meta span {
    font-size: 0.72rem;
  }
  .world-dialog__footer {
    position: sticky;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 12;
    width: 100%;
    padding: 10px 0 0;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(2, 4, 13, 0), rgba(2, 4, 13, 0.92) 34%, rgba(2, 4, 13, 0.96));
  }
  .world-enter {
    grid-column: 1;
    width: 100%;
    padding: 0 18px;
  }
  .demo-purchase-dialog {
    padding: 12px;
    place-items: start center;
    overflow-y: auto;
  }
  .demo-purchase-dialog__panel {
    gap: 14px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .demo-purchase-dialog__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-purchase-dialog__features article {
    min-height: 108px;
  }
  .demo-purchase-dialog__actions {
    grid-template-columns: 1fr;
  }
  .demo-purchase-dialog__recovery {
    grid-template-columns: 1fr;
  }
  .demo-purchase-dialog__actions button {
    width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
}
@media (max-width: 860px) and (max-height: 720px) {
  .mobile-controls {
    gap: 8px;
  }
  .mobile-controls button {
    min-height: 52px;
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
  .mobile-controls .mobile-cache-button {
    min-height: 52px;
  }
}
