/* body {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	background-color: #121212;
}
 */
html, body {
  display: flex;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background-color: #121212;
}




.emoji-img {
  width: 1em;
  height: 1em;
  vertical-align: middle;
}
#customMenu {
  position: absolute;
  display: none;
  background-color: #1e1e1e;
  color: white;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.5);
  z-index: 1000;
  min-width: 160px;
  font-family: monospace;
  overflow: hidden;
  user-select: none;
}

#customMenu div {
  padding: 10px 14px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s;
}

#customMenu div:last-child {
	border-bottom: none; /* No border on the last item */
}

#customMenu div:hover {
	background-color: #333;
}


#inventory {
  position: absolute;
  right: 45px;
  top: 10px;
  width: 250px;
  max-height: 400px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-family: monospace;
  z-index: 10000;
  display: block;
  border: 1px solid #00e5ff;
  transition: box-shadow 0.2s ease;
}
#inventory button {
    background: transparent;
    border: 1px outset #00e5ff;
    border-radius: 50%;
    color: #00e5ff;
    padding: 0px 3px;
    font-family: "Press Start 2P", monospace;
    font-size: 10px;
    margin-top: 2px;
    margin-right: 2px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

  #inventory:hover {
    box-shadow: 0 0 8px #00e5ff;
  }
  #inventory button:hover {
    box-shadow: 0 0 8px #00e5ff;
  }
#inventory-grid div:hover {
  outline: 2px solid #00faff;
  background: rgba(0, 20, 60, 0.95);
}
.inventory-icon {
  font-size: 16px;
}
.inventory-icon > div:first-child,
.inventory-icon > div:nth-child(2) {
  pointer-events: none;
}
#storage-modal {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 250px; /* match inventory width */
  max-height: 400px; /* same as inventory */
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-family: monospace;
  z-index: 10000;
  border: 1px solid #00e5ff;
  transition: box-shadow 0.2s ease;
}

#storage-modal:hover {
  box-shadow: 0 0 8px #00e5ff;
}

#storage-modal button {
  background: transparent;
  border: 1px solid #00e5ff;
  color: #00e5ff;
  padding: 2px 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  margin-top: 4px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

#storage-modal button:hover {
  box-shadow: 0 0 8px #00e5ff;
}

#storage-contents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px; /* add some spacing between slots */
  margin-top: 10px;
}

#storage-contents > div {
  border: 1px solid #00e5ff;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  user-select: none;
  cursor: pointer;
  transition: background 0.2s, outline 0.2s;
  position: relative;
  border-radius: 4px;
  background: rgba(0, 15, 30, 0.9);
  box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.44);
}

#storage-contents > div:hover {
  outline: 2px solid #00faff;
  background: rgba(0, 20, 60, 0.95);
}

/* Optional: quantity label styling for storage slots */
#storage-contents > div > span.quantity-label {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 12px;
  color: #00e5ff;
  font-weight: bold;
  user-select: none;
  pointer-events: none;
  font-family: "Press Start 2P", monospace;
}

#gameArea {
  position: relative;
  opacity: 0; /* Start invisible */
  width: 90vw;
  height: 600px;
  margin: auto;
  background-color: rgba(0, 42, 64, 0.7); /* bluish + transparent */
  border: 8px solid #00aaff;
  box-shadow: 0 0 30px #00aaffaa;
  overflow: hidden;
  user-select: none;
  background-image: url('https://i.imgur.com/W5E5i4U.png');
  background-repeat: no-repeat;
  background-size: 100% 106%;
  background-position-y: -14px;
  transition: opacity 0.5s ease-in-out; /* Smooth fade */
}

#gameArea.visible {
  opacity: 1;
}

	#pixelb8 {
		position: absolute;
		width: 124px; /* Adjust according to your sprite size */
		height: 124px; /* Adjust according to your sprite size */
		background-image: url('https://pixelb8.lol/core/js/core-apps/pixelbotApp/images/sprites/pixelbot/pixelbot-face-front.png'); /* Initial spritesheet */
		background-size: cover;
		opacity:0.8;
	    image-rendering: pixelated;
	    -webkit-backface-visibility: hidden; /* sometimes helps with flickering */
	    backface-visibility: hidden;
	    will-change: transform, opacity;
		transition: transform 0.15s ease, opacity 0.2s ease;
		z-index:20;

	}


@keyframes robot-glow {
  0% {
    filter: drop-shadow(0 0 1px #fff)
            drop-shadow(0 0 2px #00e5ff)
            drop-shadow(0 0 3px #00e5ff);
  }
  50% {
    filter: drop-shadow(0 0 2px #fff)
            drop-shadow(0 0 4px #00e5ff)
            drop-shadow(0 0 6px #00e5ff);
  }
  100% {
    filter: drop-shadow(0 0 1px #fff)
            drop-shadow(0 0 2px #00e5ff)
            drop-shadow(0 0 3px #00e5ff);
  }
}

#pixelb8:hover {
  animation: robot-glow 1.5s ease-in-out infinite;
  cursor: pointer;
}

.sprite {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}

.sprite.active {
  opacity: 1;
}
	#pixelb8.batterylow {
		position: absolute;
		width: 124px; /* Adjust according to your sprite size */
		height: 124px; /* Adjust according to your sprite size */
		background-image: url('https://pixelb8.lol/core/js/core-apps/pixelbotApp/images/sprites/pixelbot/pixelbot-face-front.png'); /* Initial spritesheet */
		background-size: cover;
		opacity: 0.8;
		transition: transform 0.15s ease;
	}
	@keyframes move {
		from { background-position: 0 0; }
		to { background-position: -500px 0; } /* Adjust according to your spritesheet width */
	}
	.animate {
		animation: move 1.8s steps(4) infinite; /* 4 frames per second */
	}	

@keyframes tilt {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-4deg); }
  100% { transform: rotate(0deg); }
}

.tilt-animation {
  animation: tilt 0.3s infinite;
}
@keyframes wobbleAnimation {
  0%, 100% {
	transform: rotate(0deg);
  }
  25% {
	transform: rotate(5deg);
  }
  75% {
	transform: rotate(-5deg);
  }
}

.wobble {
  animation: wobbleAnimation 0.6s ease-in-out infinite;
}
@keyframes popOut {
  0% {
    transform: scale(0.6);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes squash {
  0%   { transform: scale(1,1); }
  40%  { transform: scale(1.5, 0.5); }
  70%  { transform: scale(0.8, 1.3); }
  100% { transform: scale(1,1); }
}
.squash {
  animation: squash 1.5s ease-in-out forwards;
  transform-origin: bottom center;
}

@keyframes coldPulse {
  0%, 100% { filter: hue-rotate(180deg) brightness(0.7) saturate(0.4); }
  50%      { filter: hue-rotate(180deg) brightness(1) saturate(0.7); }
}
.cold {
  animation: coldPulse 5s infinite ease-in-out;
  filter: hue-rotate(180deg) brightness(0.7) saturate(0.4);
}

@keyframes burningGlow {
  0%, 100% { box-shadow: 0 0 15px 8px orange; filter: brightness(1.6) sepia(1) hue-rotate(10deg); }
  50%      { box-shadow: 0 0 25px 12px orange; filter: brightness(1.9) sepia(1) hue-rotate(15deg); }
}
.burning {
  animation: burningGlow 4s infinite ease-in-out;
  filter: brightness(1.6) sepia(1) hue-rotate(10deg);
  box-shadow: 0 0 15px 8px orange;
}

@keyframes hurtFlash {
  0%, 100% { filter: brightness(2.5) sepia(1) hue-rotate(-50deg) saturate(3); transform: scale(1); }
  50%      { filter: brightness(3.5) sepia(1) hue-rotate(-50deg) saturate(4); transform: scale(1.4); }
}
.hurt {
  animation: hurtFlash 1.5s ease-in-out forwards;
}
.dropped-pop {
  animation: popOut 0.6s ease-out;
}
#move-indicator {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff inset;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff inset;
  }
  50% {
    box-shadow: 0 0 15px #00e5ff, 0 0 30px #00e5ff inset;
  }
  100% {
    box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff inset;
  }
}

#move-indicator.pulsing {
  animation: pulse-glow 0.8s ease-in-out;
}
	
	.obstacle {
	  position: absolute;
	  background-color: transparent;
	  z-index: 1;
	  pointer-events: ;
	}
	.storage-unit, .placed-item {
	  position: absolute;
	  width: 46px;
      height: 42px;
	  transform: ; /* center horizontally, align bottom */
	}

.storage-unit:hover, .placed-item:hover {
  text-shadow: 0 0 6px #fff, 0 0 10px #00f, 0 0 14px #0ff;
  filter: brightness(1.2);
  cursor: pointer;
}

.placed-item.tree {
    margin: -29px;
    margin-left: -10px;
}
.dropped-item {
  position: absolute;
  text-align: center;
  cursor: pointer;
  transform: translate(-50%, -100%);
  z-index: 5000;
}

/* Base icon style */
.dropped-item-icon {
  display: block;
  font-size: 23px;
  line-height: 0.5;
  transition: all 0.2s ease;
  z-index:10;
}

/* When you hover the whole dropped item, apply hover styles to the icon */
.dropped-item:hover .dropped-item-icon {
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 0 8px #00e5ff;
  animation: wobbleAnimation 0.6s ease-in-out infinite;
  z-index: 30;
}

/* Label style remains the same */
.dropped-item-label {
  font-size: 10px;
  position: relative;
  color: #12a6bd;
  white-space: nowrap;
  font-family: lucida console;
  font-weight: bold;
  margin-top: 1px;
  top: 100%;
  left: 50%;
  z-index: 30;
  transform: translateX(-50%);
  text-shadow: 0 0 2px black, 1px 1px 2px black; /* soft black shadow */
}
.dropped-item-label:hover {
  line-height: 1;
  box-shadow: 0 0 8px #00e5ff;
  transform: translateX(-50%);
  z-index: 30;
}
.dropped-item-icon.hovered {
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 0 8px #00e5ff;
  animation: wobbleAnimation 0.6s ease-in-out infinite;
  z-index: 30;
}
/* Example: different sizes (optional) */
.dropped-item[data-size="large"] .dropped-item-icon {
  font-size: 40px;
}

.dropped-item[data-size="small"] .dropped-item-icon {
  font-size: 15px;
}

/* new inventory css*/
#inventory {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 240px;
  max-height: 400px;
  overflow-y: auto;
  background: rgba(0, 0, 40, 0.85);
  color: #00e5ff;
  padding: 12px;
  border: 2px solid #00e5ff;
  border-radius: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  z-index: 10000;
  display: none;
  box-shadow: 0 0 12px #00e5ff;

  transition: opacity 0.3s ease;
}

#inventory-header {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

#inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 50px);
  grid-gap: 6px;
  margin-top: 8px;
}

#inventory-info {
    margin-top: 2px;
    padding: 2px;
    padding-right: 6px;
    background: #111213c4;
    border-top: 1px solid #00e5ff;
    font-size: 12px;
    white-space: pre-wrap;
    min-height: 0px;
    color: #32c31c;
    text-align: right;
}

.inventory-icon {
    width: 52px;
    height: 30px;
    border: 1px solid #00e5ff;
    border-radius: 8px;
    background: rgba(0, 15, 30, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    box-shadow: inset 0 0 8px #00e5ff70;
    cursor: pointer;
}
.inventory-icon .icon {
  font-size: 18px;
}

.inventory-icon .qty {
  font-size: 9px;
  position: absolute;
  bottom: 2px;
  right: 4px;
  color: #00e5ff;
  text-shadow: 0 0 2px black, 1px 1px 2px black;
}

.inventory-icon .drop-btn {
  position: absolute;
  top: 0px;
  right: 0px;
  background: transparent;
  color: #00e5ff;
  border: none;
  cursor: pointer;
  font-size: 10px;
}
.inventory-icon[draggable="true"] {
  cursor: grab;
}
.drag-ghost {
  position: absolute;
  top: -9999px;
  left: -9999px;
  font-size: 14px;
  padding: 2px 6px;
  background: #003344;
  color: #00e5ff;
  border: 1px solid #00e5ff;
  border-radius: 4px;
  pointer-events: none;
  font-family: sans-serif;
}
/* Styled map display like the inventory */
#mapDisplayContainer {
    display: block;
    position: absolute;
	padding: 10px 14px;
    background: rgba(0, 0, 40, 0.85);
	border: 2px solid #00e5ff;
	border-radius: 8px;
    color: #00e5ff;
    left: 10px;
    top: 10px;
    z-index: 100;

}
#mapDisplay {
  background: rgba(0, 0, 40, 0.85);
  color: #00e5ff;
  padding: 10px 14px;
  border: 2px solid #00e5ff;
  border-radius: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  z-index: 10000;
  box-shadow: 0 0 12px #00e5ff;
  cursor: pointer;
  transition: background 0.2s ease;
}

#mapDisplay:hover {
  background: rgba(0, 0, 60, 0.95);
}

/* World Map Modal */
#worldMapModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

#worldMapContent {
    background: #010122;
    border: 2px solid #00e5ffbf;
    border-radius: 10px;
    padding: 8px;
    color: #00e5ff;
    font-family: "Press Start 2P", monospace;
    max-width: 400px;
    text-align: left;
}

#worldMapContent h2 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 0px;
}
#worldMapMainContent {
    display: flex
;
}
#worldMapList {
    list-style: none;
    padding: 8px;
    border: 2px inset #00e5ff;
    background: #000000b0;
    border-radius: 8px;
    margin: 8px;
    font-size: 11px;
    max-height: 300px;
    overflow-y: auto;
}

#worldMapList li {
  margin-bottom: 6px;
}

#worldMapList .current-map {
  color: #32c31c;
  text-shadow: 0 0 4px #32c31c;
}

#worldMapContent button {
  margin-top: 14px;
  font-family: inherit;
  font-size: 11px;
  background: #001133;
  border: 1px solid #00e5ff;
  color: #00e5ff;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}
#miniMap {
    display: grid;
    border: 1px inset #00faff;
    border-radius: 8px;
    padding: 8px;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(4, 40px);
    gap: 5px;
    margin: auto;
    max-width: 200px;
    position: relative;
}
.mini-room {
  width: 40px;
  height: 40px;
  color: #00e5ff;
  border: 1px solid #00e5ff;
  border-radius: 8px;
  background: rgba(0, 15, 30, 0.9);
  text-align: center;
  line-height: 40px;
  font-size: 12px;
  white-space: pre-wrap;
  position: relative;
}

.mini-room.current {
  background: rgb(0 0 0 / 92%);
  color: #0eb917;
  border: 1px solid #0eb917;  
  font-weight: bold;
  box-shadow: 0px 0px 3px #0eb917ed, inset 0 0 7px #0eb917ed;
}


.flying-item {
  pointer-events: none;
  user-select: none;
  z-index: 9999;
}


.entity {
  font-size: 24px;
  position: absolute;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.entity:hover {
  transform: translate(-50%, -100%) scale(1.2);
}

.entity-npc {
  color: #88c0d0;
  text-shadow: 0 0 4px #5e81ac;
}

.entity-enemy {
  color: #bf616a;
  text-shadow: 0 0 4px #d08770;
}

.entity-pet {
  color: #a3be8c;
  text-shadow: 0 0 4px #8fbcbb;
}
#hud {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 20, 40, 0.8);
  border: 2px solid #00ccff;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00ccff88;
  font-family: 'Orbitron', monospace;
  z-index: 9999;
}

#pixelbotHealth {
  color: #00ccff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 5px #00ccff, 0 0 10px #003344;
}








/* DEBUGGGGINNNG*/
#debugoverlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.debug-info-box {
  margin-bottom: 8px;
  border-bottom: 1px solid #444;
  color: #00ccff;
  font-size: 12px;
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 4px;
  max-width: 220px;
}

.debug-line {
  position: absolute;
  height: 1px;
  background: rgba(0, 255, 255, 0.3);
  transform-origin: left center;
  pointer-events: none;
}

.debug-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: cyan;
  border-radius: 50%;
  pointer-events: none;
}

.debug-dot-player {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: red;
  border-radius: 50%;
  pointer-events: none;
}

/*DEBUG PANEL*/
>
  #debug-panel {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 40, 0.85);
    color: #00e5ff;
    border: 2px solid #00e5ff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 0 10px #00e5ff;
	resize: vertical;
  }
div#debug-panel {
    display: block;
    position: fixed;
    top: 23px;
    right: 10px;
    width: 15vw;
    background: rgba(0, 0, 40, 0.85);
    color: rgb(0, 229, 255);
    z-index: 9999;
    border: 2px solid rgb(0, 229, 255);
    border-radius: 6px;
    border-bottom-right-radius: 0;
    resize: vertical;
}
  #debug-panel h3 {
    color: #00ffff;
    margin: 3px; 
  }



  .debug-panel-Tab {
    border: 2px solid #000;
    outline: 3px solid #003344;
    width: 95%;
    padding: 4px;
    margin-top: 10px;
  }
  .debug-panel-Tab.active {
    display: block;
  }

  /* Textarea - Hacker style */
  #debugNotesTextarea {
    background-color: #000000c9;
    color: #00ff00;
    border: 1px SOLID #292727;
    OUTLINE: 4PX RIDGE GRAY;
    font-family: 'Lucida Console';
    padding: 6px;
    width: 90%;
    max-width: 90%;
    resize: vertical;
  }

 #debug-panel hr {
    border: 0;
    border-top: 1px solid #00e5ff;
    margin: 6px 0;
  }



  /* Selects + Inputs */
  #debug-panel input,
  #debug-panel select {
    background-color: #000;
    color: #00e5ff;
    border: 1px solid #00e5ff;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
  }
  #debug-panel select:disabled,
  #debug-panel input:disabled {
    color: #555;
  }
select#CustomIconSelect {
    width: 50px;
}
select#CustomIconSelect:disabled {
    color: #555;
}
input#customIconInput {
    width: 91px;
    font-size: 76px;
    padding: 18px;
    padding-bottom: 0px;
}
  /* Button Styling */
#debug-panel button {
    background-color: #555;
    color: #303030;
    border: 2px solid #000000;
    font-family: monospace;
    font-weight: bold;
	width: 98%;
    padding: 6px 12px;
    margin: 4px;
    cursor: pointer;
    border-radius: 2px;
    outline: 3px solid #003344;
    box-shadow: inset -2px -2px 0 #222, inset 2px 2px 0 #aaa;
    transition: all 0.1s ease-in-out;

}
button.debug {
    background-color: #555;
    color: #303030;
    border: 2px solid #000000;
    font-family: monospace;
    font-weight: bold;
    padding: 6px 12px;
    margin: 4px;
    cursor: pointer;
    border-radius: 2px;
    outline: 3px solid #003344;
    box-shadow: inset -2px -2px 0 #222, inset 2px 2px 0 #aaa;
    transition: all 0.1s ease-in-out;
}
button:hover {
  background-color: #666;
}
button.debug:hover {
  background-color: #666;
}
#debug-panel button:active {
  box-shadow: inset 2px 2px 2px #111, inset -2px -2px 2px #ccc; /* Pressed look */
  background-color: #444;
  transform: translateY(1px); /* Small push down effect */
}
button.debug:active {
  box-shadow: inset 2px 2px 2px #111, inset -2px -2px 2px #ccc; /* Pressed look */
  background-color: #444;
  transform: translateY(1px); /* Small push down effect */
}
  /* Debug Tabs */
  #debug-tabs button {
    background-color: #003;
    color: #00ffff;
    border: 1px solid #007;
    border-radius: 4px;
    margin: 0 2px;
    padding: 4px 6px;
  }

  #debug-tabs button:hover {
    background-color: #005;
  }
 div#debug-saveORloadButts {
    display: flex;
    margin-bottom: 8px;
    justify-content: flex-end;
}
button.debug#savenotes{
	float: right;
	margin-top: 20px;
}
div.debug-panel-Tab label {
    display: flex;
    align-items: center;
    flex-direction: column;
}
div#debug-customitems-Tab label {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}
div#createItemDiv {
    padding: 2px;
}
select#CustomIconSelect {
    font-size: 32px;
    width: 75px;
}
select#customItemIconSelect {
    font-size: 47px;
    padding: 0px;
    padding-top: 6px;
    margin: 8px;
}
select#getCustomItem {
    width: 50%;
}
select#getItem {
    width: 145px;
}
#debugEnemySpawnorKill{
	display:block;
}



/*loaidng screen */
#loadingScreen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, #0ff 5%, #002233 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  font-family: 'Courier New', monospace;
  font-size: 32px;
  color: #0ff;
  animation: screenPulse 2s infinite alternate;
  opacity: 0.6;
  pointer-events: none;
}
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 60, 100, 0.6);
  color: #0ff;
  font-size: 64px;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  display: none;
  opacity:0.6;
  transition: opacity 0.7s ease;
}

#loadingScreen.closing {
  animation: fadeOut 0.8s ease forwards;
}

#loadingScreen.hidden {
  opacity: 0;
  pointer-events: none;
}
.loaderBot {
  display: flex;
  align-items: center;
  animation: floaty 1.5s ease-in-out infinite;
}

.dots span {
  animation: blink 1s infinite;
  animation-delay: calc(var(--i) * 0.2s);
}
.dots span:nth-child(1) { --i: 0; }
.dots span:nth-child(2) { --i: 1; }
.dots span:nth-child(3) { --i: 2; }

@keyframes screenPulse {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes floaty {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
