@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));
}
.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,
.controls-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: #20e8ff;
  font-size: clamp(1.45rem, 2.7vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.85);
}
.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: #00e5ff;
  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: #00e5ff;
  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: #00e5ff;
  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://hyper-viper.b-cdn.net/Hyper-Viper/images/pickup-nodes/data-node.png") center / contain no-repeat;
  filter: drop-shadow(0 0 8px #20e8ff);
}
.node.blue {
  background-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/pickup-nodes/blue-node.png");
  filter: drop-shadow(0 0 8px #4f8cff);
}
.node.gold {
  background-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/pickup-nodes/gold-node.png");
  filter: drop-shadow(0 0 8px #ffd166);
}
.node.trim {
  background-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/pickup-nodes/trim-node.png");
  filter: drop-shadow(0 0 8px #ff8a2a);
}
.node.virus {
  background-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/pickup-nodes/virus-node.png");
  filter: drop-shadow(0 0 8px #b94eff);
}
.node.clock {
  background-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/pickup-nodes/clock-node.png");
  filter: drop-shadow(0 0 8px #22ff7a);
}
.node.icebreaker {
  background-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/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: #f6f0ff;
  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: #8b5cff;
  font-size: 1rem;
}
.controls-panel.is-open .controls-trigger {
  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-drawer {
  position: absolute;
  z-index: 55;
  top: -8px;
  right: calc(100% + 12px);
  width: min(290px, 36vw);
  padding: 14px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(185, 78, 255, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(8, 14, 35, 0.98), rgba(2, 5, 14, 0.98)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px);
  box-shadow: inset 0 0 28px rgba(185, 78, 255, 0.12), 0 0 34px rgba(0, 213, 255, 0.18);
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.controls-panel.is-open .controls-drawer {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.controls-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.controls-drawer__header span {
  color: #00e5ff;
  font-family: "Orbitron", "Rajdhani", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.drawer-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 36, 79, 0.76);
  border-radius: 5px;
  color: #f6f0ff;
  font-size: 1.1rem;
  font-weight: 900;
  background: rgba(24, 3, 14, 0.7);
  cursor: pointer;
}
.controls-drawer__keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
}
.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: repeat(4, 46px);
  gap: 10px;
  justify-content: center;
}
.controls-drawer__support {
  padding-top: 12px;
  display: grid;
  gap: 10px;
  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;
}
/* Shatter Drive prototype theme overrides. */
body {
  background: linear-gradient(rgba(255, 36, 79, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 36, 79, 0.06) 1px, transparent 1px), radial-gradient(circle at 50% 8%, rgba(255, 36, 79, 0.28), transparent 26%), radial-gradient(circle at 50% 72%, rgba(67, 232, 255, 0.08), transparent 30%), linear-gradient(180deg, #070509 0%, #030204 58%, #120208 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}
.title-rig h1 {
  color: #f6f0ff;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(246, 240, 255, 0.9), 0 0 24px rgba(255, 36, 79, 0.96), 0 0 48px rgba(255, 36, 79, 0.58);
}
.panel,
.upgrade-card,
.icon-button,
.mobile-controls button,
#startButton {
  border-color: rgba(255, 36, 79, 0.44);
  background: linear-gradient(90deg, rgba(255, 36, 79, 0.13), transparent 22%, transparent 78%, rgba(67, 232, 255, 0.08)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(20, 7, 12, 0.96), rgba(4, 3, 6, 0.98));
  box-shadow: 0 0 18px rgba(255, 36, 79, 0.18), inset 0 0 0 1px rgba(255, 138, 36, 0.12), inset 0 -2px 0 rgba(255, 36, 79, 0.26);
}
.panel {
  background: linear-gradient(#ff244f, #ff244f) top left / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) top left / 2px 24px no-repeat, linear-gradient(#ff244f, #ff244f) top right / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) top right / 2px 24px no-repeat, linear-gradient(#ff244f, #ff244f) bottom left / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) bottom left / 2px 24px no-repeat, linear-gradient(#ff244f, #ff244f) bottom right / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) bottom right / 2px 24px no-repeat, linear-gradient(180deg, rgba(20, 7, 12, 0.96), rgba(4, 3, 6, 0.98));
}
.board-wrap {
  border-color: rgba(255, 36, 79, 0.68);
  background: linear-gradient(#ff244f, #ff244f) 0 0 / 118px 3px no-repeat, linear-gradient(#43e8ff, #43e8ff) 100% 100% / 118px 3px no-repeat, radial-gradient(circle at 18px 18px, rgba(255, 36, 79, 0.64), transparent 38px), radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(67, 232, 255, 0.34), transparent 38px), linear-gradient(180deg, rgba(18, 2, 8, 0.98), rgba(2, 2, 4, 0.98));
  box-shadow: 0 0 0 8px rgba(5, 3, 6, 0.98), 0 0 0 11px rgba(255, 36, 79, 0.14), 0 0 54px rgba(255, 36, 79, 0.28), inset 0 0 80px rgba(0, 0, 0, 0.72);
}
.node {
  border-radius: 3px;
  background: #ff244f;
  filter: drop-shadow(0 0 8px #ff244f);
}
.node.blue {
  background: #43e8ff;
  filter: drop-shadow(0 0 8px #43e8ff);
}
.node.gold {
  background: #ffd166;
  filter: drop-shadow(0 0 8px #ffd166);
}
.node.trim {
  background: #ff8a24;
  filter: drop-shadow(0 0 8px #ff8a24);
}
.node.virus {
  background: #8b5cff;
  filter: drop-shadow(0 0 8px #8b5cff);
}
.node.clock {
  background: #f6f0ff;
  filter: drop-shadow(0 0 8px #f6f0ff);
}
.node.icebreaker {
  background: #a9ddff;
  filter: drop-shadow(0 0 8px #a9ddff);
}
.world-copy .hero-logo {
  width: auto;
  max-width: min(100%, 560px);
  color: #f6f0ff;
  font-family: Orbitron, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(246, 240, 255, 0.9), 0 0 28px rgba(255, 36, 79, 0.9);
}
.world-card[data-theme="reactor"] {
  --zone-a: #21030b;
  --zone-b: #030204;
  --zone-glow: #ff244f;
}
.world-card[data-theme="glass"] {
  --zone-a: #0a1f2a;
  --zone-b: #030204;
  --zone-glow: #43e8ff;
}
.world-card[data-theme="iron"] {
  --zone-a: #18181d;
  --zone-b: #050407;
  --zone-glow: #a9ddff;
}
.world-card[data-theme="forge"] {
  --zone-a: #2b0c04;
  --zone-b: #050202;
  --zone-glow: #ff8a24;
}
.world-card[data-theme="prism"] {
  --zone-a: #190821;
  --zone-b: #030204;
  --zone-glow: #f6f0ff;
}
.world-card[data-theme="singularity"] {
  --zone-a: #0d0718;
  --zone-b: #020105;
  --zone-glow: #8b5cff;
}
/* Final sidebar correction: keep rails dark like the mockup. */
.game-shell .left-rail,
.game-shell .right-rail {
  padding: 10px !important;
  border: 0 !important;
  background: 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(4, 3, 7, 0.94), rgba(1, 1, 4, 0.98)) !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  box-shadow: inset 0 0 42px rgba(255, 48, 79, 0.055), 0 0 26px rgba(0, 0, 0, 0.52) !important;
}
.game-shell .left-rail .panel,
.game-shell .right-rail .panel {
  border: 1px solid rgba(255, 48, 79, 0.78) !important;
  border-radius: 2px !important;
  background: linear-gradient(#ff304f, #ff304f) top left / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) top left / 1px 24px no-repeat, linear-gradient(#ff304f, #ff304f) top right / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) top right / 1px 24px no-repeat, linear-gradient(#ff304f, #ff304f) bottom left / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) bottom left / 1px 24px no-repeat, linear-gradient(#ff304f, #ff304f) bottom right / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) bottom right / 1px 24px no-repeat, 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-size: auto, auto, auto, auto, auto, auto, auto, auto, 28px 28px, 28px 28px, auto !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 {
  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 .stat {
  border-bottom-color: rgba(255, 48, 79, 0.24) !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 .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 .right-rail .controls-trigger {
  border-color: rgba(255, 48, 79, 0.52) !important;
  color: #ffb0ba !important;
  background: rgba(6, 2, 5, 0.72) !important;
}
.game-shell .right-rail .controls-trigger i {
  color: #ff304f !important;
}
.game-shell .right-rail .minimap {
  border-color: rgba(255, 48, 79, 0.62) !important;
  background: linear-gradient(rgba(255, 48, 79, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 48, 79, 0.18) 1px, transparent 1px), rgba(5, 2, 5, 0.94) !important;
  background-size: 18px 18px, 18px 18px, auto !important;
}
/* Final sidebar correction: keep rails dark like the mockup. */
.game-shell .left-rail,
.game-shell .right-rail {
  padding: 10px !important;
  border: 0 !important;
  background: 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(4, 3, 7, 0.94), rgba(1, 1, 4, 0.98)) !important;
  background-size: 32px 32px, 32px 32px, auto !important;
  box-shadow: inset 0 0 42px rgba(255, 48, 79, 0.055), 0 0 26px rgba(0, 0, 0, 0.52) !important;
}
.game-shell .left-rail .panel,
.game-shell .right-rail .panel {
  border: 1px solid rgba(255, 48, 79, 0.78) !important;
  border-radius: 2px !important;
  background: linear-gradient(#ff304f, #ff304f) top left / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) top left / 1px 24px no-repeat, linear-gradient(#ff304f, #ff304f) top right / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) top right / 1px 24px no-repeat, linear-gradient(#ff304f, #ff304f) bottom left / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) bottom left / 1px 24px no-repeat, linear-gradient(#ff304f, #ff304f) bottom right / 24px 1px no-repeat, linear-gradient(#ff304f, #ff304f) bottom right / 1px 24px no-repeat, 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-size: auto, auto, auto, auto, auto, auto, auto, auto,
    28px 28px, 28px 28px, auto !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 .panel > 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 {
  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 .stat {
  border-bottom-color: rgba(255, 48, 79, 0.24) !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 .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: rgba(6, 2, 5, 0.72) !important;
}
.game-shell .right-rail .controls-trigger i {
  color: #ff304f !important;
}
.game-shell .right-rail .minimap {
  border-color: rgba(255, 48, 79, 0.62) !important;
  background: linear-gradient(rgba(255, 48, 79, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 48, 79, 0.18) 1px, transparent 1px), rgba(5, 2, 5, 0.94) !important;
  background-size: 18px 18px, 18px 18px, auto !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;
}
/* Mockup-inspired cabinet pass. */
:root {
  --rail-width: 210px;
  --title-height: 78px;
  --tray-height: 132px;
}
body {
  color: #ffe8ec;
  background: radial-gradient(circle at 50% -8%, rgba(255, 36, 79, 0.34), transparent 22%), linear-gradient(rgba(255, 36, 79, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 36, 79, 0.045) 1px, transparent 1px), radial-gradient(circle at 50% 72%, rgba(255, 36, 79, 0.14), transparent 30%), #020207;
  background-size: auto, 42px 42px, 42px 42px, auto, auto;
}
.game-shell {
  padding: 12px 16px 16px;
}
.title-rig::before,
.title-rig::after {
  width: clamp(160px, 22vw, 360px);
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 36, 79, 0.9), transparent) 0 50% / 100% 2px no-repeat, linear-gradient(90deg, transparent, rgba(255, 36, 79, 0.56), transparent) 18% 1px / 60% 1px no-repeat, linear-gradient(90deg, transparent, rgba(255, 36, 79, 0.56), transparent) 38% 8px / 56% 1px no-repeat;
  filter: drop-shadow(0 0 10px rgba(255, 36, 79, 0.84));
}
.title-rig h1 {
  gap: clamp(14px, 2vw, 26px);
  padding: 0;
  color: #ffd5dc;
  font-style: italic;
  font-size: clamp(2.45rem, 4.8vw, 4.75rem);
  letter-spacing: 0;
  text-shadow: 0 0 4px #fff, 0 0 18px rgba(255, 36, 79, 0.98), 0 0 34px rgba(255, 36, 79, 0.78);
}
.title-rig h1 span {
  display: block;
}
.title-core {
  position: relative;
  width: clamp(54px, 6.2vw, 88px);
  aspect-ratio: 1;
  display: block;
  flex: 0 0 auto;
  border: 2px solid #ff506a;
  border-radius: 50%;
  background: linear-gradient(48deg, transparent 44%, rgba(255, 255, 255, 0.42) 45% 47%, transparent 48%), linear-gradient(136deg, transparent 42%, rgba(255, 36, 79, 0.9) 43% 45%, transparent 46%), radial-gradient(circle at 38% 28%, #fff 0 4%, #ff6e7f 5% 12%, transparent 13%), radial-gradient(circle, #220208 0 45%, #ff244f 46% 51%, #050207 52%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 28px rgba(255, 36, 79, 0.96), inset 0 0 18px rgba(255, 36, 79, 0.9);
}
.title-core::before,
.title-core::after {
  position: absolute;
  inset: 13%;
  border: 1px solid rgba(255, 84, 104, 0.78);
  border-radius: 50%;
  content: "";
  clip-path: polygon(0 0, 100% 14%, 74% 100%, 12% 76%);
}
.title-core::after {
  inset: 27%;
  transform: rotate(55deg);
}
.panel,
.upgrade-card,
.icon-button,
.mobile-controls button,
#startButton {
  border-color: rgba(255, 36, 79, 0.72);
  background: linear-gradient(rgba(255, 36, 79, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 36, 79, 0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(12, 4, 8, 0.84), rgba(3, 2, 5, 0.96));
  background-size: 36px 36px, 36px 36px, auto;
  box-shadow: 0 0 18px rgba(255, 36, 79, 0.22), inset 0 0 0 1px rgba(255, 36, 79, 0.2), inset 0 0 34px rgba(255, 36, 79, 0.08);
}
.stats-panel,
.right-rail .panel,
.upgrade-strip {
  padding: 18px 16px;
}
.stat {
  gap: 5px;
  padding-bottom: 10px;
  border-bottom-color: rgba(255, 36, 79, 0.24);
}
.stat span,
.next-panel span,
.next-panel p,
.legend-panel > span,
.upgrade-strip > span,
.minimap-panel > span {
  color: #ff7b8c;
  letter-spacing: 0.12em;
}
.stat strong,
.next-panel strong {
  color: #ff304f;
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.8rem);
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255, 36, 79, 0.9), 0 0 22px rgba(255, 36, 79, 0.5);
}
.stat.stat-score strong {
  font-size: clamp(2rem, 3.2vw, 3.8rem);
}
.stat.stat-lives strong {
  color: #ff304f;
}
.stat.cache-stat strong {
  border: 0;
  padding: 0;
  color: #ff304f;
  background: none;
  box-shadow: none;
}
.stat.cache-stat strong::before {
  content: ">>>>>>";
  display: block;
  color: #ff304f;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  letter-spacing: 0;
}
.stat.cache-stat small {
  color: #ff304f;
  font-family: Orbitron, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0;
}
.next-panel strong::after {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 10px;
  border: 1px solid rgba(255, 36, 79, 0.62);
  background: linear-gradient(90deg, #ff304f 0 68%, rgba(255, 36, 79, 0.16) 68%);
  box-shadow: 0 0 10px rgba(255, 36, 79, 0.45);
  content: "";
}
.board-wrap {
  padding: 10px;
  border-color: rgba(255, 36, 79, 0.88);
  background: linear-gradient(#ff244f, #ff244f) 0 0 / 132px 2px no-repeat, linear-gradient(#ff244f, #ff244f) 0 0 / 2px 132px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 0 / 132px 2px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 0 / 2px 132px no-repeat, linear-gradient(#ff244f, #ff244f) 0 100% / 132px 2px no-repeat, linear-gradient(#ff244f, #ff244f) 0 100% / 2px 132px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 100% / 132px 2px no-repeat, linear-gradient(#ff244f, #ff244f) 100% 100% / 2px 132px no-repeat, linear-gradient(180deg, rgba(24, 4, 9, 0.98), rgba(4, 2, 5, 0.98));
  box-shadow: 0 0 0 7px rgba(2, 2, 6, 0.98), 0 0 0 9px rgba(255, 36, 79, 0.3), 0 0 30px rgba(255, 36, 79, 0.4), inset 0 0 60px rgba(255, 36, 79, 0.13);
}
.board-wrap::after {
  inset: 10px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 36, 79, 0.24), transparent 18%), linear-gradient(90deg, rgba(255, 36, 79, 0.22), transparent 5%, transparent 95%, rgba(255, 36, 79, 0.22)), radial-gradient(circle at 50% 100%, rgba(255, 36, 79, 0.16), transparent 24%);
}
#board {
  border: 1px solid rgba(255, 36, 79, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 36, 79, 0.46), inset 0 0 36px rgba(255, 36, 79, 0.16);
}
/* Sidebar polish: remove inherited Hyper Viper cyan/violet chrome. */
.left-rail,
.right-rail {
  padding: 10px;
  border: 1px solid rgba(255, 36, 79, 0.18);
  background: linear-gradient(rgba(255, 36, 79, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 36, 79, 0.035) 1px, transparent 1px), linear-gradient(180deg, rgba(5, 3, 6, 0.88), rgba(1, 1, 4, 0.96));
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: inset 0 0 36px rgba(255, 36, 79, 0.06), 0 0 24px rgba(0, 0, 0, 0.48);
}
.left-rail .panel,
.right-rail .panel {
  border-color: rgba(255, 48, 79, 0.8);
  border-radius: 2px;
  background: linear-gradient(#ff304f, #ff304f) top left / 22px 1px no-repeat, linear-gradient(#ff304f, #ff304f) top left / 1px 22px no-repeat, linear-gradient(#ff304f, #ff304f) top right / 22px 1px no-repeat, linear-gradient(#ff304f, #ff304f) top right / 1px 22px no-repeat, linear-gradient(#ff304f, #ff304f) bottom left / 22px 1px no-repeat, linear-gradient(#ff304f, #ff304f) bottom left / 1px 22px no-repeat, linear-gradient(#ff304f, #ff304f) bottom right / 22px 1px no-repeat, linear-gradient(#ff304f, #ff304f) bottom right / 1px 22px no-repeat, linear-gradient(rgba(255, 36, 79, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 36, 79, 0.04) 1px, transparent 1px), linear-gradient(180deg, rgba(11, 4, 8, 0.86), rgba(2, 1, 4, 0.96));
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 28px 28px, 28px 28px, auto;
  box-shadow: 0 0 12px rgba(255, 36, 79, 0.2), inset 0 0 0 1px rgba(255, 36, 79, 0.14), inset 0 0 24px rgba(255, 36, 79, 0.045);
}
.stats-panel::before,
.upgrade-strip::before,
.next-panel::before,
.legend-panel::before,
.controls-panel::before,
.minimap-panel::before {
  top: 0;
  left: 20px;
  display: block;
  width: 46%;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 48, 79, 0.94), rgba(255, 48, 79, 0));
  box-shadow: 0 0 10px rgba(255, 36, 79, 0.7);
  animation: none;
}
.stats-panel::after,
.upgrade-strip::after,
.next-panel::after,
.legend-panel::after,
.controls-panel::after,
.minimap-panel::after {
  display: none;
}
.stat span,
.upgrade-strip > span,
.next-panel span,
.next-panel p,
.legend-panel > span,
.controls-panel .weapon-system > span,
.minimap-panel > span {
  color: #ff304f;
  font-family: Orbitron, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(255, 36, 79, 0.55);
}
.legend-row {
  grid-template-columns: 22px minmax(0, 1fr) minmax(52px, auto);
  min-height: 27px;
}
.legend-row b,
.legend-row small {
  color: #f6dce2;
  font-size: 0.66rem;
  letter-spacing: 0;
}
.legend-row small {
  color: #ffb0ba;
}
.node,
.node.blue,
.node.gold,
.node.trim,
.node.virus,
.node.clock,
.node.icebreaker {
  width: 18px;
  height: 18px;
  border: 2px solid #ff304f;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 10%, #ff304f 11% 42%, rgba(255, 48, 79, 0.24) 43% 100%);
  box-shadow: 0 0 10px rgba(255, 48, 79, 0.86);
  filter: none;
}
.node.blue {
  border-color: #ff5a6f;
  background: radial-gradient(circle, #fff 0 8%, #ff5a6f 9% 42%, rgba(255, 90, 111, 0.2) 43%);
}
.node.gold,
.node.trim {
  border-color: #ff9b42;
  background: radial-gradient(circle, #fff 0 8%, #ff9b42 9% 42%, rgba(255, 155, 66, 0.2) 43%);
  box-shadow: 0 0 10px rgba(255, 155, 66, 0.8);
}
.node.virus,
.node.clock,
.node.icebreaker {
  border-color: #ff304f;
  background: radial-gradient(circle, #fff 0 8%, #ff304f 9% 42%, rgba(255, 48, 79, 0.18) 43%);
}
.upgrade-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff304f, #ff8a24);
  box-shadow: 0 0 10px rgba(255, 36, 79, 0.55);
}
.upgrade-list em,
.upgrade-list span {
  min-height: 42px;
  padding: 8px 10px 8px 48px;
  border-color: rgba(255, 48, 79, 0.28);
  border-radius: 2px;
  color: #f8e6ea;
  background: linear-gradient(180deg, rgba(255, 36, 79, 0.08), rgba(4, 2, 5, 0.64));
}
.upgrade-list em::before,
.upgrade-list span::before,
.upgrade-list span:nth-child(3n + 1)::before,
.upgrade-list span:nth-child(3n + 2)::before {
  width: 26px;
  height: 26px;
  border-color: #ff304f;
  border-radius: 2px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0 8%, transparent 9%), linear-gradient(135deg, rgba(255, 48, 79, 0.32), rgba(255, 138, 36, 0.12));
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.72), inset 0 0 10px rgba(255, 48, 79, 0.24);
}
.controls-panel {
  display: grid;
  gap: 14px;
}
.weapon-system {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}
.weapon-ship {
  position: relative;
  width: min(168px, 100%);
  height: 48px;
  display: grid;
  place-items: center;
}
.weapon-ship i {
  position: relative;
  width: 126px;
  height: 20px;
  display: block;
  border: 1px solid rgba(255, 104, 122, 0.76);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0 8%, #ff304f 8% 13%, transparent 13% 87%, #ff304f 87% 92%, transparent 92%), linear-gradient(180deg, #2b2328, #070509);
  box-shadow: 0 0 14px rgba(255, 48, 79, 0.58), inset 0 0 10px rgba(255, 48, 79, 0.22);
}
.weapon-ship i::before,
.weapon-ship i::after {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 3px;
  background: #ff304f;
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.8);
  content: "";
  transform: translateY(-50%);
}
.weapon-ship i::before {
  right: 100%;
}
.weapon-ship i::after {
  left: 100%;
}
.weapon-system strong {
  color: #f8e6ea;
  font-family: Orbitron, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.weapon-segments {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}
.weapon-segments i {
  height: 12px;
  border: 1px solid rgba(255, 48, 79, 0.38);
  border-radius: 2px;
  background: rgba(255, 48, 79, 0.08);
}
.weapon-segments i.is-lit {
  background: #ff304f;
  box-shadow: 0 0 10px rgba(255, 48, 79, 0.72);
}
.weapon-energy {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  text-align: left;
}
.weapon-energy span,
.weapon-energy b {
  color: #ff9ba8;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.weapon-energy b {
  color: #ff304f;
}
.weapon-energy em {
  grid-column: 1 / -1;
  height: 8px;
  border: 1px solid rgba(255, 48, 79, 0.55);
  border-radius: 2px;
  background: rgba(255, 48, 79, 0.08);
  overflow: hidden;
}
.weapon-energy i {
  width: 0%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #ff304f, #ff6576);
  box-shadow: 0 0 10px rgba(255, 48, 79, 0.72);
}
.controls-trigger {
  min-height: 36px;
  padding: 8px 10px;
  border-color: rgba(255, 48, 79, 0.45);
  color: #ff9ba8;
  background: rgba(255, 48, 79, 0.06);
}
.controls-trigger i {
  color: #ff304f;
}
.minimap {
  border-color: rgba(255, 48, 79, 0.62);
  background: linear-gradient(rgba(255, 48, 79, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 48, 79, 0.18) 1px, transparent 1px), rgba(5, 2, 5, 0.92);
  background-size: 18px 18px, 18px 18px, auto;
  box-shadow: inset 0 0 22px rgba(255, 48, 79, 0.12);
}
.minimap i,
.minimap .scan-pickup,
.minimap .scan-bonus,
.minimap .scan-hazard {
  background: #ff304f;
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.9);
}
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;
}
.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: #f6f0ff;
  border-color: rgba(185, 78, 255, 0.86);
  box-shadow: 0 0 16px rgba(185, 78, 255, 0.42), inset 0 0 18px rgba(185, 78, 255, 0.18);
}
.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));
}
.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;
  accent-color: #b94eff;
}
.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://hyper-viper.b-cdn.net/Hyper-Viper/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;
  left: 28px;
  z-index: 10;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.55rem;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(255, 48, 79, 0.72);
}
.world-dialog__home:hover,
.world-dialog__home:focus-visible {
  outline: 0;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 48, 79, 0.9);
}
.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: #ffffff;
  font-size: 1.55rem;
  line-height: 0.8;
  border: none;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 14px rgba(255, 48, 79, 0.72);
  cursor: pointer;
}
.world-dialog__close:hover {
  color: white;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 48, 79, 0.9);
}
.world-dialog__header {
  min-height: 116px;
  display: grid;
  grid-template-columns: minmax(56px, 1fr) minmax(210px, 300px) minmax(56px, 1fr);
  align-items: start;
  justify-items: center;
  text-align: center;
}
.world-dialog__header img {
  grid-column: 2;
  width: min(300px, 42vw);
  margin-top: -4px;
  filter: drop-shadow(0 0 18px rgba(255, 48, 79, 0.5));
}
.world-dialog__header > div {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: -4px;
}
.world-dialog__header h2 {
  margin: 0;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 48, 79, 0.8), 0 0 34px rgba(255, 48, 79, 0.38);
}
.world-dialog__header p {
  margin: 0;
  color: #ffc5cc;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.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: #a9ddff;
}
.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: #00e5ff;
}
.world-copy > span::before,
.world-copy > span::after {
  height: 1px;
  background-color: #43e8ff;
  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://hyper-viper.b-cdn.net/Hyper-Viper/images/level-select/blue-tile.png");
}
.world-pillars .pillar-card-upgrade {
  --pillar-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/level-select/purple-tile.png");
}
.world-pillars .pillar-card-survive {
  --pillar-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/images/level-select/pink-tile.png");
}
.world-pillars .pillar-card-dominate {
  --pillar-image: url("https://hyper-viper.b-cdn.net/Hyper-Viper/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;
}
.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: #43e8ff;
  letter-spacing: 0.48em;
  text-transform: uppercase;
}
.world-zone-heading span::before,
.world-zone-heading span::after {
  height: 1px;
  background-color: #43e8ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.42);
  content: "";
}
.world-zone-heading p {
  max-width: 520px;
  color: #a9ddff;
  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;
}
@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%;
    min-height: 100dvh;
    height: auto;
    padding: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: var(--title-height) auto auto auto auto;
    align-content: start;
  }
  .title-rig {
    grid-column: 1;
    clip-path: none;
  }
  .title-rig h1 {
    font-size: clamp(1.4rem, 8vw, 2.4rem);
    letter-spacing: 0.1em;
  }
  .title-rig h1 img {
    width: clamp(24px, 10vw, 42px);
    height: clamp(20px, 8vw, 34px);
  }
  .title-rig::before,
  .title-rig::after {
    display: none;
  }
  .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,
  .right-rail,
  .speed-probe {
    display: none;
  }
  .game-area {
    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: 2;
    grid-column: 1;
    grid-row: 5;
    width: 100%;
    padding: 12px max(8px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    display: grid;
    grid-template-columns: repeat(3, minmax(64px, 88px));
    grid-template-areas: "pause up map" "left warp right" "cache down .";
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
  }
  .mobile-controls button {
    min-width: 0;
    min-height: 58px;
    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;
    font-size: 0.78rem;
  }
  .mobile-controls .mobile-command--pause {
    grid-area: pause;
    color: #f6f0ff;
  }
  .mobile-controls .mobile-command--map {
    grid-area: map;
    color: #ff244f;
  }
  .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: left;
  }
  .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;
  }
  .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 {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .world-enter {
    grid-column: 1;
    width: 100%;
    padding: 0 18px;
  }
}
/* Shatter Drive prototype theme overrides. */
body {
  background: linear-gradient(rgba(255, 36, 79, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 36, 79, 0.06) 1px, transparent 1px), radial-gradient(circle at 50% 8%, rgba(255, 36, 79, 0.28), transparent 26%), radial-gradient(circle at 50% 72%, rgba(67, 232, 255, 0.08), transparent 30%), linear-gradient(180deg, #070509 0%, #030204 58%, #120208 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
}
.title-rig h1 {
  color: #f6f0ff;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(246, 240, 255, 0.9), 0 0 24px rgba(255, 36, 79, 0.96), 0 0 48px rgba(255, 36, 79, 0.58);
}
.panel,
.upgrade-card,
.icon-button,
.mobile-controls button,
#startButton {
  border-color: rgba(255, 36, 79, 0.44);
  background: linear-gradient(90deg, rgba(255, 36, 79, 0.13), transparent 22%, transparent 78%, rgba(67, 232, 255, 0.08)), repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px), linear-gradient(180deg, rgba(20, 7, 12, 0.96), rgba(4, 3, 6, 0.98));
  box-shadow: 0 0 18px rgba(255, 36, 79, 0.18), inset 0 0 0 1px rgba(255, 138, 36, 0.12), inset 0 -2px 0 rgba(255, 36, 79, 0.26);
}
.panel {
  background: linear-gradient(#ff244f, #ff244f) top left / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) top left / 2px 24px no-repeat, linear-gradient(#ff244f, #ff244f) top right / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) top right / 2px 24px no-repeat, linear-gradient(#ff244f, #ff244f) bottom left / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) bottom left / 2px 24px no-repeat, linear-gradient(#ff244f, #ff244f) bottom right / 24px 2px no-repeat, linear-gradient(#ff244f, #ff244f) bottom right / 2px 24px no-repeat, linear-gradient(180deg, rgba(20, 7, 12, 0.96), rgba(4, 3, 6, 0.98));
}
.board-wrap {
  border-color: rgba(255, 36, 79, 0.68);
  background: linear-gradient(#ff244f, #ff244f) 0 0 / 118px 3px no-repeat, linear-gradient(#43e8ff, #43e8ff) 100% 100% / 118px 3px no-repeat, radial-gradient(circle at 18px 18px, rgba(255, 36, 79, 0.64), transparent 38px), radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), rgba(67, 232, 255, 0.34), transparent 38px), linear-gradient(180deg, rgba(18, 2, 8, 0.98), rgba(2, 2, 4, 0.98));
  box-shadow: 0 0 0 8px rgba(5, 3, 6, 0.98), 0 0 0 11px rgba(255, 36, 79, 0.14), 0 0 54px rgba(255, 36, 79, 0.28), inset 0 0 80px rgba(0, 0, 0, 0.72);
}
.node {
  border-radius: 3px;
  background: #ff244f;
  filter: drop-shadow(0 0 8px #ff244f);
}
.node.blue {
  background: #43e8ff;
  filter: drop-shadow(0 0 8px #43e8ff);
}
.node.gold {
  background: #ffd166;
  filter: drop-shadow(0 0 8px #ffd166);
}
.node.trim {
  background: #ff8a24;
  filter: drop-shadow(0 0 8px #ff8a24);
}
.node.virus {
  background: #8b5cff;
  filter: drop-shadow(0 0 8px #8b5cff);
}
.node.clock {
  background: #f6f0ff;
  filter: drop-shadow(0 0 8px #f6f0ff);
}
.node.icebreaker {
  background: #a9ddff;
  filter: drop-shadow(0 0 8px #a9ddff);
}
.world-copy .hero-logo {
  width: auto;
  max-width: min(100%, 560px);
  color: #f6f0ff;
  font-family: Orbitron, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(246, 240, 255, 0.9), 0 0 28px rgba(255, 36, 79, 0.9);
}
.world-card[data-theme="reactor"] {
  --zone-a: #21030b;
  --zone-b: #030204;
  --zone-glow: #ff244f;
}
.world-card[data-theme="glass"] {
  --zone-a: #0a1f2a;
  --zone-b: #030204;
  --zone-glow: #43e8ff;
}
.world-card[data-theme="iron"] {
  --zone-a: #18181d;
  --zone-b: #050407;
  --zone-glow: #a9ddff;
}
.world-card[data-theme="forge"] {
  --zone-a: #2b0c04;
  --zone-b: #050202;
  --zone-glow: #ff8a24;
}
.world-card[data-theme="prism"] {
  --zone-a: #190821;
  --zone-b: #030204;
  --zone-glow: #f6f0ff;
}
.world-card[data-theme="singularity"] {
  --zone-a: #0d0718;
  --zone-b: #020105;
  --zone-glow: #8b5cff;
}
