body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  touch-action: manipulation;
  -webkit-touch-callout: none; /* iOS Safari */
}

#game-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.instructions {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 8px;
  font-size: 18px;
  color: #fff;
  z-index: 100;
  max-width: 400px;
  text-align: center;
}

.crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
  display: none; /* Hide crosshair for third-person view */
}

.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background-color: white;
}

.crosshair::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}

.crosshair::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}

#joystick-container {
  position: fixed;
  bottom: 50px;
  left: 20px;
  width: 150px;  
  height: 150px; 
  z-index: 1000;
  display: none; 
  touch-action: none;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

#jump-button {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: none; 
  z-index: 1000;
  touch-action: none;
  text-align: center;
  line-height: 80px;
  font-weight: bold;
  color: #333;
  user-select: none;
}

#emotes-button {
  position: fixed;
  bottom: 140px; 
  right: 20px;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: none; 
  z-index: 1000;
  touch-action: none;
  text-align: center;
  line-height: 80px;
  font-weight: bold;
  color: #333;
  user-select: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-6c.78 2.34 2.72 4 5 4s4.22-1.66 5-4H7zm1-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
}

#fly-up-button, #fly-down-button {
  position: fixed;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: none; /* Hidden by default */
  z-index: 1000;
  touch-action: none;
  text-align: center;
  line-height: 80px;
  font-weight: bold;
  color: #333;
  user-select: none;
}

#fly-up-button {
  bottom: 230px;
  right: 110px;
}

#fly-down-button {
  bottom: 140px;
  right: 110px;
}

#coin-counter {
  position: fixed;
  top: 20px;
  right: 120px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

#coin-counter .coin-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('fried-chicken-leg-illustration-a-delicious-fried-chicken-isolated-on-a-transparent-background-png.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.chat-message {
  position: absolute;
  font-size: 14px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -100%);
  margin-top: -25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#chat-input-container {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 500px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 10px;
  display: none;
  z-index: 2000;
}

#chat-input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
}

#chat-button {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  font-weight: bold;
  color: #333;
  z-index: 1000;
  touch-action: none;
  cursor: pointer;
  display: none;
}

#close-chat {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

#shop-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#shop-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #4CAF50;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

#shop-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2000;
  width: 280px;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
}

#shop-modal h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #FFD700;
}

.shop-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
}

.shop-item-info {
  flex-grow: 1;
  margin-right: 0;
  margin-bottom: 8px;
}

.shop-purchase-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
}

.shop-purchase-controls input[type="number"] {
  width: 40px;
  padding: 4px;
  text-align: center;
  border: 1px solid #555;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 3px;
}

.shop-purchase-controls input[type=number]::-webkit-inner-spin-button,
.shop-purchase-controls input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.shop-purchase-controls input[type=number] {
  -moz-appearance: textfield;
}

.shop-item-title {
  font-weight: bold;
  color: #4CAF50;
  font-size: 14px;
}

.shop-item-desc {
  font-size: 11px;
  color: #CCC;
}

.shop-item-cost {
  color: #FFD700;
  font-weight: bold;
  min-width: 30px;
  text-align: right;
  font-size: 14px;
}

.shop-item button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 12px;
}

.shop-item button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

#buy-rain-money {
  background-color: #2E8B57;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 12px;
}

#buy-rain-money::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: gold;
  border-radius: 50%;
  top: 3px;
  left: 5px;
  opacity: 0.6;
}

#buy-rain-money::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(255,215,0,0.2), transparent);
  transform: translateY(0);
  animation: rain-money-button 1s infinite;
}

#buy-rain-money:disabled {
  background-color: #666;
  cursor: not-allowed;
}

#buy-golden-rain {
  background-color: #DAA520;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(to right, #DAA520, #FFD700, #DAA520);
  background-size: 200% 100%;
  animation: golden-button 2s infinite;
  font-size: 12px;
}

#buy-golden-rain::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: #FFD700;
  border-radius: 50%;
  top: 2px;
  left: 5px;
  box-shadow: 0 0 4px 1px rgba(255,215,0,0.6);
  opacity: 0.8;
}

#buy-golden-rain:disabled {
  background-color: #666;
  background-image: none;
  animation: none;
  cursor: not-allowed;
}

.magnet-icon {
  display: inline-block;
  width: 12px;
  height: 18px;
  border-radius: 20px 20px 0 0;
  border: 2px solid #cc0000;
  border-bottom: none;
  position: relative;
  margin-right: 5px;
}

.magnet-icon::after {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 4px;
  background: #cc0000;
  bottom: 0;
  left: -2px;
}

#edit-player-button {
  position: fixed;
  top: 70px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#edit-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #9C27B0;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-6c.78 2.34 2.72 4 5 4s4.22-1.66 5-4H7zm1-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-6c.78 2.34 2.72 4 5 4s4.22-1.66 5-4H7zm1-4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
}

#customize-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2000;
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  display: none;
}

#customize-modal h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #9C27B0;
}

#customize-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.morphs-section {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.morph-option {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  margin-bottom: 10px;
  padding: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.morph-slider {
  width: 70%;
}

.morph-value {
  width: 40px;
  text-align: right;
  color: #ccc;
}

#player-preview-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
}

#player-preview {
  background-color: #222;
  border-radius: 4px;
}

.color-options {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.color-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.color-option label {
  flex-grow: 1;
}

.color-option input[type="color"] {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}

.transparency-slider {
  margin-bottom: 20px;
}

.transparency-slider label {
  display: block;
  margin-bottom: 5px;
}

.transparency-slider input[type="range"] {
  width: 100%;
  cursor: pointer;
}

#save-colors {
  background-color: #9C27B0;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#save-colors:hover {
  background-color: #7B1FA2;
}

#deupgrade-button {
  position: fixed;
  top: 170px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#deupgrade-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #FF6B6B;
  clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
  transform: rotate(180deg);
}

#deupgrade-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2000;
  width: 320px;
  display: none;
}

#deupgrade-modal h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FF6B6B;
}

#deupgrade-description {
  text-align: center;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 20px;
}

#deupgrade-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.deupgrade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
}

.deupgrade-item-info {
  flex-grow: 1;
}

.deupgrade-item-title {
  font-weight: bold;
  color: #FF6B6B;
}

.deupgrade-item-desc {
  font-size: 12px;
  color: #CCC;
}

.deupgrade-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deupgrade-controls input[type="number"] {
  width: 40px;
  padding: 4px;
  text-align: center;
  border: 1px solid #555;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 3px;
}

.deupgrade-controls input[type=number]::-webkit-inner-spin-button,
.deupgrade-controls input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.deupgrade-controls input[type=number] {
  -moz-appearance: textfield;
}

.deupgrade-controls button {
  width: 28px;
  height: 28px;
  background-color: #FF6B6B;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deupgrade-controls button:disabled {
  background-color: #666;
  cursor: not-allowed;
}

.deupgrade-refund {
  color: #4CAF50;
  font-weight: bold;
}

#round-timer {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1001;
}

.round-end-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  font-size: 32px;
  font-weight: bold;
  z-index: 3000;
  animation: fade-in-out 3s ease-in-out;
}

.win-message {
  background-color: rgba(0, 128, 0, 0.7);
  text-align: center;
}

@keyframes fade-in-out {
  0% { opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}

#emote-menu-modal {
  position: fixed;
  bottom: 230px; 
  right: 20px;
  transform: translateY(0); 
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px;
  border-radius: 10px;
  z-index: 1500; 
  width: 180px; 
  max-height: 60vh;
  overflow-y: auto;
  display: none; 
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#emote-menu-modal h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FF9900; 
  font-size: 18px;
}

#emote-menu-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  font-size: 14px;
}

#emote-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emote-button {
  background-color: #FF9900;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.2s;
}

.emote-button:hover {
  background-color: #E68A00;
}

.creator-badge {
  position: absolute;
  font-size: 24px;
  color: gold;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 4px 12px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  font-weight: bold;
  transform: translate(-50%, -100%);
  z-index: 1000;
  margin-top: -55px; /* Position above name tag */
  border: 2px solid gold;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 215, 0, 1);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  }
}

@media (max-width: 768px) {
  #joystick-container {
    display: block;
  }
  
  #jump-button {
    display: block;
  }
  
  #emotes-button {
    display: block;
  }
  
  #chat-button {
    display: block;
  }
  
  .instructions {
    display: none !important; 
  }
}

#chat-history {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 150px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 10px;
  color: white;
  font-size: 14px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  flex-direction: column-reverse;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#chat-history::-webkit-scrollbar {
  width: 6px;
}

#chat-history::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

#chat-history::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#chat-history p {
  margin: 2px 0;
  line-height: 1.3;
  word-wrap: break-word; 
}

#chat-history p strong {
  color: #aaa; 
  margin-right: 5px;
}

#view-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #1E88E5;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
  mask-size: cover;
  -webkit-mask-size: cover;
}

@media (max-width: 768px) {
  #view-toggle {
    bottom: 230px; /* Position above other mobile controls */
  }
}

.player-name {
  position: absolute;
  font-size: 14px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 8px;
  pointer-events: none;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translate(-50%, -100%);
  margin-top: -25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#mission-button,
#mission-icon,
#mission-modal,
#mission-close,
.mission-item,
.mission-title,
.mission-desc,
.mission-progress-bar,
.mission-progress,
.mission-reward,
.no-missions,
.mission-notification,
.notification-title,
.notification-desc,
.notification-reward,
#donate-button,
#donate-icon,
#donation-modal,
#donation-close,
#donation-form,
.donation-error,
.donation-confirmation,
.donation-notification,
.confirmation-title,
.confirmation-message,
.notification-message {
  display: none !important;
}

#hacks-button {
  position: fixed;
  top: 120px;  
  right: 20px;  
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#hacks-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #FF1493;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

#hacks-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 2000;
  width: 300px;
  display: none;
}

#hacks-modal h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: #FF1493;
}

#hacks-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.hack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
}

.hack-item-info {
  flex-grow: 1;
}

.hack-item-title {
  font-weight: bold;
  color: #FF1493;
}

.hack-item-desc {
  font-size: 12px;
  color: #CCC;
}

.hack-item-toggle {
  width: 60px;
  height: 30px;
  background-color: rgba(255, 20, 147, 0.2);
  border: 2px solid rgba(255, 20, 147, 0.5);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hack-item-toggle::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: #FF1493;
  border-radius: 50%;
  top: 1px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.hack-item-toggle.active {
  background-color: rgba(255, 20, 147, 0.4);
  border-color: #FF1493;
}

.hack-item-toggle.active::after {
  left: 32px;
  background-color: #FF1493;
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.8);
}

.hack-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.hack-item-toggle:hover {
  transform: scale(1.05);
}

.hack-item.active .hack-item-title {
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
}

.customize-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.tab-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.tab-button.active {
  background-color: #9C27B0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.effects-options {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.checkbox-options > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-upload {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.media-upload h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #9C27B0;
  font-size: 16px;
}

.media-preview {
  width: 100%;
  min-height: 100px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.upload-btn {
  background-color: #9C27B0;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.upload-btn:hover {
  background-color: #7B1FA2;
}

.remove-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #d32f2f;
}

.media-note {
  font-size: 12px;
  color: #999;
  text-align: center;
}

#media-preview-image,
#media-preview-video {
  border-radius: 4px;
}