@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root {
  --background: hsl(220, 15%, 8%);
  --foreground: hsl(220, 8%, 95%);
  --card: hsl(220, 15%, 12%);
  --card-foreground: hsl(220, 8%, 95%);
  --popover: hsl(220, 15%, 12%);
  --popover-foreground: hsl(220, 8%, 95%);
  --primary: hsl(186, 100%, 50%);
  --primary-foreground: hsl(220, 15%, 8%);
  --secondary: hsl(220, 15%, 20%);
  --secondary-foreground: hsl(220, 8%, 95%);
  --muted: hsl(220, 15%, 16%);
  --muted-foreground: hsl(220, 8%, 65%);
  --accent: hsl(264, 83%, 70%);
  --accent-foreground: hsl(220, 15%, 8%);
  --destructive: hsl(4, 90%, 58%);
  --destructive-foreground: hsl(220, 8%, 95%);
  --border: hsl(220, 15%, 20%);
  --input: hsl(220, 15%, 20%);
  --ring: hsl(186, 100%, 50%);
  --radius: 12px;
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: 'Courier New', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background: linear-gradient(-45deg, hsl(204, 66.7%, 13.3%), hsl(207, 29.4%, 25.9%), hsl(201, 33.3%, 32.9%));
  background-size: 400% 400%;
  animation: backgroundMove 15s ease infinite;
  color: hsl(220, 8%, 95%);
}

@keyframes backgroundMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes logoGlow {
  0% {
    text-shadow: 0 0 5px hsl(186, 100%, 50%), 0 0 10px hsl(186, 100%, 50%);
  }

  100% {
    text-shadow: 0 0 20px hsl(186, 100%, 50%), 0 0 40px hsl(186, 100%, 50%);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hexagonal Socket Loading Animation */
.socket {
  width: 200px;
  height: 200px;
  position: absolute;
  left: 50%;
  margin-left: -100px;
  top: 50%;
  margin-top: -100px;
}

.hex-brick {
  background: #00f7ff;
  width: 30px;
  height: 17px;
  position: absolute;
  top: 5px;
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
}

.h2 {
  transform: rotate(60deg);
  -webkit-transform: rotate(60deg);
}

.h3 {
  transform: rotate(-60deg);
  -webkit-transform: rotate(-60deg);
}

.gel {
  height: 30px;
  width: 30px;
  transition: all .3s;
  -webkit-transition: all .3s;
  position: absolute;
  top: 50%;
  left: 50%;
}

.center-gel {
  margin-left: -15px;
  margin-top: -15px;
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
}

.c1 {
  margin-left: -47px;
  margin-top: -15px;
}

.c2 {
  margin-left: -31px;
  margin-top: -43px;
}

.c3 {
  margin-left: 1px;
  margin-top: -43px;
}

.c4 {
  margin-left: 17px;
  margin-top: -15px;
}

.c5 {
  margin-left: -31px;
  margin-top: 13px;
}

.c6 {
  margin-left: 1px;
  margin-top: 13px;
}

.c7 {
  margin-left: -63px;
  margin-top: -43px;
}

.c8 {
  margin-left: 33px;
  margin-top: -43px;
}

.c9 {
  margin-left: -15px;
  margin-top: 41px;
}

.c10 {
  margin-left: -63px;
  margin-top: 13px;
}

.c11 {
  margin-left: 33px;
  margin-top: 13px;
}

.c12 {
  margin-left: -15px;
  margin-top: -71px;
}

.c13 {
  margin-left: -47px;
  margin-top: -71px;
}

.c14 {
  margin-left: 17px;
  margin-top: -71px;
}

.c15 {
  margin-left: -47px;
  margin-top: 41px;
}

.c16 {
  margin-left: 17px;
  margin-top: 41px;
}

.c17 {
  margin-left: -79px;
  margin-top: -15px;
}

.c18 {
  margin-left: 49px;
  margin-top: -15px;
}

.c19 {
  margin-left: -63px;
  margin-top: -99px;
}

.c20 {
  margin-left: 33px;
  margin-top: -99px;
}

.c21 {
  margin-left: 1px;
  margin-top: -99px;
}

.c22 {
  margin-left: -31px;
  margin-top: -99px;
}

.c23 {
  margin-left: -63px;
  margin-top: 69px;
}

.c24 {
  margin-left: 33px;
  margin-top: 69px;
}

.c25 {
  margin-left: 1px;
  margin-top: 69px;
}

.c26 {
  margin-left: -31px;
  margin-top: 69px;
}

.c27 {
  margin-left: -79px;
  margin-top: -15px;
}

.c28 {
  margin-left: -95px;
  margin-top: -43px;
}

.c29 {
  margin-left: -95px;
  margin-top: 13px;
}

.c30 {
  margin-left: 49px;
  margin-top: 41px;
}

.c31 {
  margin-left: -79px;
  margin-top: -71px;
}

.c32 {
  margin-left: -111px;
  margin-top: -15px;
}

.c33 {
  margin-left: 65px;
  margin-top: -43px;
}

.c34 {
  margin-left: 65px;
  margin-top: 13px;
}

.c35 {
  margin-left: -79px;
  margin-top: 41px;
}

.c36 {
  margin-left: 49px;
  margin-top: -71px;
}

.c37 {
  margin-left: 81px;
  margin-top: -15px;
}

.r1 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: .2s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: .2s;
}

.r2 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: .4s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: .4s;
}

.r3 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: .6s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: .6s;
}

.r1>.hex-brick {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: .2s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: .2s;
}

.r2>.hex-brick {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: .4s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: .4s;
}

.r3>.hex-brick {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: .6s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: .6s;
}

@keyframes pulse00 {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }

  50% {
    -webkit-transform: scale(0.01);
    transform: scale(0.01);
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes fade00 {
  0% {
    background: #00f7ff;
  }

  50% {
    background: #001a1a;
  }

  100% {
    background: #00f7ff;
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/assets/loadingBackground.png') center/cover no-repeat, rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 20px;
}

.loading-overlay.hidden {
  display: none;
}

/* Loading Animation - Progress Bar Only */
.loader {
  width: 100%;
  height: 1px;
  position: relative;
  display: block;
}

.loader:before {
  content: "";
}

.loader:after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 8px;
  background: #333;
  background-image: linear-gradient(90deg, #00f7ff 0%, #00f7ff 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  animation: progress-fill 6s ease-out forwards;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
  z-index: 9999;
}

@keyframes l16-fill-once {
  0% {
    background-size: 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  12.5% {
    background-size: 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  25% {
    background-size: 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  37.5% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  50% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0, 1ch 0;
  }
  62.5% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0, 1ch 0, 1ch 0;
  }
  75% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0, 1ch 0;
  }
  87.5% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 0;
  }
  100% {
    background-size: 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%, 1ch 100%;
  }
}

@keyframes progress-fill {
  0% { background-size: 0% 100%; }
  100% { background-size: 100% 100%; }
}

/* Remove the old progress loader */
.progress-loader {
  display: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 50%) scale(0.5) rotateX(-15deg);
  }

  60% {
    transform: translate(-50%, 50%) scale(1.05) rotateX(5deg);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 50%) scale(1) rotateX(0deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1); /* Disabled scaling */
  }
}

@keyframes playButtonPulse {

  0%,
  100% {
    box-shadow:
      0 6px 20px hsla(186, 100%, 50%, 0.4),
      0 3px 10px hsla(0, 0%, 0%, 0.3),
      inset 0 1px 0 hsla(255, 255, 255, 0.2);
    border-color: hsla(186, 100%, 50%, 0.8);
  }

  50% {
    box-shadow:
      0 8px 30px hsla(186, 100%, 50%, 0.6),
      0 4px 15px hsla(0, 0%, 0%, 0.4),
      inset 0 1px 0 hsla(255, 255, 255, 0.3);
    border-color: hsla(186, 100%, 50%, 1);
  }
}

@keyframes mapButtonPulse {

  0%,
  100% {
    box-shadow:
      0 6px 20px hsla(45, 100%, 60%, 0.4),
      0 3px 10px hsla(0, 0%, 0%, 0.3),
      inset 0 1px 0 hsla(255, 255, 255, 0.2);
    border-color: hsla(45, 100%, 60%, 0.8);
  }

  50% {
    box-shadow:
      0 8px 30px hsla(45, 100%, 60%, 0.6),
      0 4px 15px hsla(0, 0%, 0%, 0.4),
      inset 0 1px 0 hsla(255, 255, 255, 0.3);
    border-color: hsla(45, 100%, 60%, 1);
  }
}

@keyframes buttonShine {
  0% {
    transform: translateX(-100%) skewX(-30deg);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%) skewX(-30deg);
    opacity: 0;
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 15px hsla(186, 100%, 50%, 0.6);
  }

  50% {
    box-shadow: 0 0 25px hsla(186, 100%, 50%, 1);
  }
}

@keyframes screenShake {

  0%,
  100% {
    transform: translate(0);
  }

  10% {
    transform: translate(-1px, -1px);
  }

  20% {
    transform: translate(1px, 1px);
  }

  30% {
    transform: translate(-1px, 1px);
  }

  40% {
    transform: translate(1px, -1px);
  }

  50% {
    transform: translate(-1px, -1px);
  }

  60% {
    transform: translate(1px, 1px);
  }

  70% {
    transform: translate(-1px, 1px);
  }

  80% {
    transform: translate(1px, -1px);
  }

  90% {
    transform: translate(-1px, -1px);
  }
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 20px hsla(186, 100%, 50%, 0.6);
  }

  50% {
    box-shadow: 0 0 35px hsla(186, 100%, 50%, 1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shop Modal Styles */
.shop-modal {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background: linear-gradient(135deg, rgba(26, 42, 65, 0.98), rgba(40, 40, 60, 0.98));
  backdrop-filter: blur(15px);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 1;
  transition: all 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 247, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.shop-modal.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
}

.shop-content {
  background: transparent;
  border: none;
  border-radius: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.shop-header {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 180, 255, 0.2));
  padding: 25px 40px;
  border-bottom: 2px solid rgba(0, 247, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}

.shop-header h2 {
  color: #00f7ff;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.8);
  margin: 0;
  letter-spacing: 2px;
}

.shop-close {
  background: none;
  border: 2px solid rgba(255, 100, 100, 0.6);
  color: #ff6464;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.shop-close:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: #ff6464;
  color: #fff;
  transform: scale(1.1);
}

.shop-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.shop-categories {
  width: 250px;
  background: rgba(0, 0, 0, 0.3);
  border-right: 2px solid rgba(0, 247, 255, 0.3);
  display: flex;
  flex-direction: column;
  padding: 30px 0;
}

.shop-category {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 35px;
  text-align: left;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 5px solid transparent;
}

.shop-category:hover {
  background: rgba(0, 247, 255, 0.1);
  color: #00f7ff;
  border-left-color: rgba(0, 247, 255, 0.5);
}

.shop-category.active {
  background: rgba(0, 247, 255, 0.2);
  color: #00f7ff;
  border-left-color: #00f7ff;
  text-shadow: 0 0 5px rgba(0, 247, 255, 0.8);
}

.shop-items {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  align-content: start;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}

.shop-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1002;
  cursor: pointer;
  pointer-events: auto;
}

.shop-item:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 247, 255, 0.2);
}

.shop-item.locked {
  opacity: 0.6;
  border-color: rgba(120, 120, 120, 0.3);
}

.shop-item.locked:hover {
  transform: none;
  border-color: rgba(120, 120, 120, 0.3);
  box-shadow: none;
}

.item-preview {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 180, 255, 0.2));
  border: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.item-icon {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 5px rgba(0, 247, 255, 0.6));
}

.item-info h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 8px 0;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.item-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.item-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.price-coin {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
}

.item-price span {
  color: #FFD700;
  font-weight: bold;
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.item-buy {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: 2px solid rgba(76, 175, 80, 0.6);
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 80px;
  position: relative;
  z-index: 1003;
  pointer-events: auto;
}

.item-buy:hover:not(:disabled) {
  background: linear-gradient(135deg, #5CBF60, #4CAF50);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.item-buy:disabled {
  background: linear-gradient(135deg, #666, #555);
  border-color: rgba(120, 120, 120, 0.6);
  cursor: not-allowed;
  opacity: 0.7;
}

/* Scrollbar styling for shop items */
.shop-items::-webkit-scrollbar {
  width: 8px;
}

.shop-items::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.shop-items::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.4);
  border-radius: 4px;
}

.shop-items::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.6);
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@keyframes autoShootNotification {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }

  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }

  20% {
    transform: translate(-50%, -50%) scale(1);
  }

  90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

@keyframes scorePopup {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
    color: hsl(122, 39%, 49%);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes scoreProgressGlow {

  0%,
  100% {
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.4);
  }

  50% {
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.4), 0 0 12px rgba(255, 215, 0, 0.4);
  }
}




.score-popup {
  animation: scorePopup 0.6s ease;
}

.hidden {
  display: none !important;
}

/* Custom crosshair cursor */
.crosshair-cursor {
  cursor: none;
  position: relative;
}

.crosshair-cursor::before {
  content: '+';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #ffffff;
  font-weight: bold;
  pointer-events: none;
  z-index: 1000;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-family: 'Font Awesome 6 Free';
}

.absolute {
  position: absolute;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.-z-10 {
  z-index: -10;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-muted-foreground {
  color: hsl(220, 8%, 65%);
}

/* Top Bar Styles */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background: hsla(0, 0%, 0%, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid hsla(0, 0%, 100%, 0.1);
  box-shadow: 0 0 20px hsla(0, 0%, 0%, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100 !important;
  border-radius: 0;
}

.logo {
  position: absolute;
  left: 30px;
  font-size: 2.2rem;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.logo-text {
  color: hsl(186, 100%, 50%);
  text-shadow: 0 0 10px hsl(186, 100%, 50%), 0 0 20px hsl(186, 100%, 50%);
  animation: logoGlow 3s ease-in-out infinite alternate;
  font-family: var(--font-sans);
  letter-spacing: 1px;
}

.logo-image {
  height: 50px;
  width: 50px;
  filter: brightness(0) invert(1);
  /* Make the white logo visible and remove background */
  background: transparent;
  transition: all 0.3s ease;
}

.logo-image-text {
  height: 48px;
  width: auto;
  transition: all 0.3s ease;
}

.top-buttons {
  display: flex;
  gap: 25px;
  position: relative;
  margin-left: -10px; /* shift to the right */
  padding-left: 20px; /* space after divider */
}

.top-buttons::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
}

/* Hide top bar when in editor */
body.in-editor .top-bar {
  display: none !important;
  visibility: hidden !important;
}

/* Left-side lobby exit button (no background) */
.top-exit-btn {
  background: transparent;
  border: none;
  color: #cfefff;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
  opacity: 0.95;
}
.top-exit-btn:hover { 
  opacity: 1; 
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* Ensure the icon inside the top-exit button is clearly visible */
.top-exit-btn i {
  font-size: 31px;
  line-height: 1;
  color: #ff4d4f;
  margin-top: 12px;
}

/* 3D Button Base Styles */
.button-3d {
  -webkit-appearance: none;
  appearance: none;
  transform: scale(1.08) translateY(-2px);
  position: relative;
  border-width: 0;
  padding: 0 8px 12px;
  min-width: 10em;
  box-sizing: border-box;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.button-3d-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 0;
  padding: 8px 16px;
  transform: translateY(0);
  text-align: center;
  color: #fff;
  text-shadow: 0 -1px rgba(0, 0, 0, .25);
  transition-property: transform;
  transition-duration: .2s;
  -webkit-user-select: none;
  user-select: none;
}

.button-3d:active .button-3d-top {
  transform: translateY(6px);
}

.button-3d-top::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
  text-align: center;
  color: #ffffff;
  box-shadow: inset 0 0 0px 1px rgba(255, 255, 255, .2), 0 1px 2px 1px rgba(255, 255, 255, .2);
  transition-property: border-radius, padding, width, transform;
  transition-duration: .2s;
}

.button-3d:active .button-3d-top::after {
  border-radius: 6px;
  padding: 0 2px;
}

.button-3d-bottom {
  position: absolute;
  z-index: -1;
  bottom: 4px;
  left: 4px;
  border-radius: 8px / 16px 16px 8px 8px;
  padding-top: 6px;
  width: calc(100% - 8px);
  height: calc(100% - 10px);
  box-sizing: content-box;
  background-image: radial-gradient(4px 8px at 4px calc(100% - 8px), rgba(255, 255, 255, .25), transparent), radial-gradient(4px 8px at calc(100% - 4px) calc(100% - 8px), rgba(255, 255, 255, .25), transparent), radial-gradient(16px at -4px 0, white, transparent), radial-gradient(16px at calc(100% + 4px) 0, white, transparent);
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.5), inset 0 -1px 3px 3px rgba(0, 0, 0, .4);
  transition-property: border-radius, padding-top;
  transition-duration: .2s;
}

.button-3d:active .button-3d-bottom {
  border-radius: 10px 10px 8px 8px / 8px;
  padding-top: 0;
}

.button-3d-base {
  position: absolute;
  z-index: -2;
  top: 4px;
  left: 0;
  border-radius: 12px;
  width: 100%;
  height: calc(100% - 4px);
  background-color: rgba(0, 0, 0, .15);
  box-shadow: 0 1px 1px 0 rgba(255, 255, 255, .75), inset 0 2px 2px rgba(0, 0, 0, .25);
}


.button-3d-cyan .button-3d-bottom {
  background-color: #017df9;
}

.button-3d-gold .button-3d-top::after {
  background-image: radial-gradient(#cc9900, #cc9900);
}

.button-3d-gold .button-3d-bottom {
  background-color: #cc9900;
}

.button-3d-green .button-3d-top::after {
  background-image: radial-gradient(#388E3C, #388E3C);
}

.button-3d-green .button-3d-bottom {
  background-color: #2E7D32;
}

.button-3d-purple .button-3d-top::after {
  background-image: radial-gradient(#9C27B0, #7B1FA2);
}

.button-3d-purple .button-3d-bottom {
  background-color: #6A1B9A;
}

.button-3d-orange .button-3d-top::after {
  background-image: radial-gradient(#FF9800, #F57C00);
}

.button-3d-orange .button-3d-bottom {
  background-color: #E65100;
}

.button-3d-pink .button-3d-top::after {
  background-image: radial-gradient(#E91E63, #C2185B);
}

.button-3d-pink .button-3d-bottom {
  background-color: #AD1457;
}

.button-3d-blue .button-3d-top::after {
  background-image: radial-gradient(#4a9eff, #2563eb);
}

.button-3d-blue .button-3d-bottom {
  background-color: #1d4ed8;
}

.button-3d-red .button-3d-top::after {
  background-image: radial-gradient(#cd3f64, #9d3656);
}

.button-3d-red .button-3d-bottom {
  background-color: #803;
}

.top-buttons button {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  border-width: 0;
  padding: 0 6.4px 9.6px;
  min-width: 8em;
  box-sizing: border-box;
  background: transparent;
  font: inherit;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: bold;
}

@keyframes buttonPulse {

  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 4px 15px hsla(0, 0%, 0%, 0.3),
      0 2px 8px hsla(186, 100%, 50%, 0.2),
      inset 0 1px 0 hsla(255, 255, 255, 0.1);
  }

  50% {
    transform: translateY(-2px);
    box-shadow:
      0 6px 20px hsla(0, 0%, 0%, 0.4),
      0 3px 12px hsla(186, 100%, 50%, 0.3),
      inset 0 2px 0 hsla(255, 255, 255, 0.2);
  }
}

/* Settings Button - Purple Theme */
.top-buttons button[onclick*="settings"] {
  background: linear-gradient(135deg, hsla(264, 83%, 70%, 0.25), hsla(264, 83%, 60%, 0.15));
  border: 2px solid hsla(264, 83%, 70%, 0.6);
  border-radius: 12px;
  box-shadow:
    0 4px 15px hsla(264, 83%, 70%, 0.3),
    0 2px 8px hsla(0, 0%, 0%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.15);
}

.top-buttons button[onclick*="settings"]:hover {
  background: linear-gradient(135deg, hsla(264, 83%, 70%, 0.4), hsla(264, 83%, 60%, 0.3));
  border-color: hsla(264, 83%, 70%, 0.9);
  box-shadow:
    0 8px 25px hsla(264, 83%, 70%, 0.6),
    0 4px 15px hsla(0, 0%, 0%, 0.4),
    inset 0 2px 0 hsla(255, 255, 255, 0.2);
  text-shadow: 0 0 12px hsla(264, 83%, 70%, 0.8);
}

/* Locker Button - Gold Theme */
.top-buttons button[onclick*="locker"] {
  background: linear-gradient(135deg, hsla(45, 100%, 60%, 0.25), hsla(45, 100%, 50%, 0.15));
  border: 2px solid hsla(45, 100%, 60%, 0.6);
  border-radius: 12px;
  box-shadow:
    0 4px 15px hsla(45, 100%, 60%, 0.3),
    0 2px 8px hsla(0, 0%, 0%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.15);
}

.top-buttons button[onclick*="locker"]:hover {
  background: linear-gradient(135deg, hsla(45, 100%, 60%, 0.4), hsla(45, 100%, 50%, 0.3));
  border-color: hsla(45, 100%, 60%, 0.9);
  box-shadow:
    0 8px 25px hsla(45, 100%, 60%, 0.6),
    0 4px 15px hsla(0, 0%, 0%, 0.4),
    inset 0 2px 0 hsla(255, 255, 255, 0.2);
  text-shadow: 0 0 12px hsla(45, 100%, 60%, 0.8);
}

/* Shop Button - Cyan Theme (removed - now uses standard button-3d-cyan) */

/* Create Map Button - Green Theme */
.top-buttons button[onclick*="create-map"] {
  background: linear-gradient(135deg, hsla(122, 39%, 49%, 0.25), hsla(122, 39%, 45%, 0.15));
  border: 2px solid hsla(122, 39%, 49%, 0.6);
  border-radius: 12px;
  box-shadow:
    0 4px 15px hsla(122, 39%, 49%, 0.3),
    0 2px 8px hsla(0, 0%, 0%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.15);
}

.top-buttons button[onclick*="create-map"]:hover {
  background: linear-gradient(135deg, hsla(122, 39%, 49%, 0.4), hsla(122, 39%, 45%, 0.3));
  border-color: hsla(122, 39%, 49%, 0.9);
  box-shadow:
    0 8px 25px hsla(122, 39%, 49%, 0.6),
    0 4px 15px hsla(0, 0%, 0%, 0.4),
    inset 0 2px 0 hsla(255, 255, 255, 0.2);
  text-shadow: 0 0 12px hsla(122, 39%, 49%, 0.8);
}

/* Pass Button - Orange/Red Theme */
.top-buttons button[onclick*="pass"] {
  background: linear-gradient(135deg, hsla(15, 100%, 60%, 0.25), hsla(4, 90%, 58%, 0.15));
  border: 2px solid hsla(15, 100%, 60%, 0.6);
  border-radius: 12px;
  box-shadow:
    0 4px 15px hsla(15, 100%, 60%, 0.3),
    0 2px 8px hsla(0, 0%, 0%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.15);
}

.top-buttons button[onclick*="pass"]:hover {
  background: linear-gradient(135deg, hsla(15, 100%, 60%, 0.4), hsla(4, 90%, 58%, 0.3));
  border-color: hsla(15, 100%, 60%, 0.9);
  box-shadow:
    0 8px 25px hsla(15, 100%, 60%, 0.6),
    0 4px 15px hsla(0, 0%, 0%, 0.4),
    inset 0 2px 0 hsla(255, 255, 255, 0.2);
  text-shadow: 0 0 12px hsla(15, 100%, 60%, 0.8);
}

/* Friends Button - Pink/Magenta Theme */
.top-buttons button[onclick*="friends"] {
  background: linear-gradient(135deg, hsla(330, 100%, 60%, 0.25), hsla(330, 90%, 50%, 0.15));
  border: 2px solid hsla(330, 100%, 60%, 0.6);
  border-radius: 12px;
  box-shadow:
    0 4px 15px hsla(330, 100%, 60%, 0.3),
    0 2px 8px hsla(0, 0%, 0%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.15);
}

.top-buttons button[onclick*="friends"]:hover {
  background: linear-gradient(135deg, hsla(330, 100%, 60%, 0.4), hsla(330, 90%, 50%, 0.3));
  border-color: hsla(330, 100%, 60%, 0.9);
  box-shadow:
    0 8px 25px hsla(330, 100%, 60%, 0.6),
    0 4px 15px hsla(0, 0%, 0%, 0.4),
    inset 0 2px 0 hsla(255, 255, 255, 0.2);
  text-shadow: 0 0 12px hsla(330, 100%, 60%, 0.8);
}

.button-3d:hover {
  transform: scale(1.12) translateY(-4px);
}

.button-3d:active {
  transform: scale(1.02) translateY(0);
  transition: all 0.1s ease;
}

.button-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, hsla(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.button-3d:hover::before {
  opacity: 1;
  animation: buttonShine 0.6s ease;
}

.button-3d::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(255, 255, 255, 0.4), transparent);
  transform: skewX(-30deg);
  transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.button-3d:hover::after {
  left: 100%;
}

.fortz-currency {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  height: 55px;
  padding: 8px 15px;
  border-radius: 12px;
  border: 3px solid hsla(44, 100%, 50%, 0.6);
  background: hsla(44, 100%, 50%, 0.05);
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 5px hsla(44, 100%, 50%, 0.3);
  backdrop-filter: blur(8px);
}

.fortz-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px hsla(44, 100%, 50%, 0.4)) brightness(1.0) contrast(1.0);
  background: transparent;
  mix-blend-mode: normal;
  opacity: 1;
}

.fortz-amount {
  font-size: 1.4rem;
  font-weight: bold;
  color: hsl(44, 100%, 70%);
  text-shadow: 0 0 3px hsla(44, 100%, 50%, 0.4);
  min-width: 20px;
  text-align: center;
}

.fortz-currency:hover {
  transform: translateY(-50%) scale(1.02);
  box-shadow: 0 0 8px hsla(44, 100%, 50%, 0.5);
}

/* Game Canvas */
#gameCanvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  cursor: crosshair;
}

/* Game UI Elements */
#ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#ui>* {
  pointer-events: auto;
}

/* Minimap */
#minimap {
  position: absolute;
  top: 20px;
  left: 20px;
  background: hsla(0, 0%, 0%, 0.8);
  border: 2px solid hsl(186, 100%, 50%);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 20px hsla(186, 100%, 50%, 0.5);
  animation: slideInLeft 0.6s ease-out;
  transition: all 0.3s ease;
}

#minimap:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px hsla(186, 100%, 50%, 0.7);
}

#minimapCanvas {
  border-radius: 5px;
  display: block;
}

#minimapTitle {
  color: hsl(186, 100%, 50%);
  text-align: center;
  font-weight: bold;
  margin-top: 5px;
  font-size: 12px;
}





.text-accent {
  color: hsl(264, 83%, 70%);
}

.font-bold {
  font-weight: bold;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Kill Streak Display */
#killStreakDisplay {
  position: absolute;
  top: 120px;
  right: 20px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
  border: 3px solid rgba(255, 215, 0, 0.6);
  border-radius: 15px;
  padding: 15px 25px;
  backdrop-filter: blur(10px);
  z-index: 15;
  animation: pulse 2s ease-in-out infinite;
}

#killStreakDisplay .streak-number {
  font-size: 3rem;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
  display: block;
  text-align: center;
}

#killStreakDisplay .streak-label {
  font-size: 0.9rem;
  color: #FFA500;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  display: block;
  margin-top: 5px;
}

/* Zoom Slider */
.zoom-slider-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: auto;
}

.zoom-slider-track {
  position: relative;
  width: 200px;
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  border: 2px solid rgba(0, 247, 255, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}

.zoom-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, rgba(0, 247, 255, 0.6), rgba(0, 247, 255, 0.8));
  border-radius: 10px;
  transition: width 0.1s ease;
  pointer-events: none;
}

.zoom-slider {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.zoom-slider-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.9), rgba(0, 180, 255, 0.9));
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.zoom-slider:hover+.zoom-slider-thumb {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 20px rgba(0, 247, 255, 1), 0 3px 8px rgba(0, 0, 0, 0.6);
}

.zoom-slider:active+.zoom-slider-thumb {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Map Creator Zoom Slider */
.map-creator-zoom-slider {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999 !important;
  pointer-events: auto;
  display: block !important;
}



/* Rectangular Health System */
#fortniteHealthContainer {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
}

.health-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.health-bar-background {
  width: 200px;
  height: 18px;
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
}

/* Sprint Bar */
.sprint-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.sprint-bar-background {
  width: 200px;
  height: 6px;
  background: rgba(40, 40, 40, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  overflow: hidden;
  position: relative;
  border-radius: 3px;
}

#sprintBar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
  transition: width 0.3s ease;
  position: relative;
  box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.4);
  border-radius: 3px;
}

.sprint-value {
  display: none;
}

/* Sprint glow animation */
@keyframes sprintGlow {

  0%,
  100% {
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.3), 0 0 4px rgba(255, 215, 0, 0.3);
  }

  50% {
    box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.6), 0 0 8px rgba(255, 215, 0, 0.6);
  }
}

#sprintBar {
  animation: sprintGlow 2s ease-in-out infinite;
}

#shieldBar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #00BFFF 0%, #1E90FF 50%, #0080FF 100%);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: inset 0 0 8px rgba(0, 191, 255, 0.3);
}

#healthBar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #32CD32 0%, #00FF00 50%, #228B22 100%);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: inset 0 0 8px rgba(50, 205, 50, 0.3);
}

.health-value {
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  min-width: 35px;
  text-align: center;
}

.shield-icon-container {
  display: none;
}

.shield-icon {
  display: none;
}

.shield-count {
  display: none;
}

/* Add subtle glow animation for health bars */
@keyframes healthGlow {

  0%,
  100% {
    box-shadow: inset 0 0 8px rgba(50, 205, 50, 0.3), 0 0 4px rgba(50, 205, 50, 0.3);
  }

  50% {
    box-shadow: inset 0 0 12px rgba(50, 205, 50, 0.5), 0 0 8px rgba(50, 205, 50, 0.5);
  }
}

@keyframes shieldGlow {

  0%,
  100% {
    box-shadow: inset 0 0 8px rgba(0, 191, 255, 0.3), 0 0 4px rgba(0, 191, 255, 0.3);
  }

  50% {
    box-shadow: inset 0 0 12px rgba(0, 191, 255, 0.5), 0 0 8px rgba(0, 191, 255, 0.5);
  }
}

#healthBar {
  animation: healthGlow 3s ease-in-out infinite;
}

#shieldBar {
  animation: shieldGlow 3s ease-in-out infinite;
}

/* Stats */
#stats {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: hsla(0, 0%, 0%, 0.8);
  border: 2px solid hsl(186, 100%, 50%);
  border-radius: 12px;
  padding: 10px 20px;
  box-shadow: 0 0 20px hsla(186, 100%, 50%, 0.5);
}

#stats div {
  color: white;
  font-weight: bold;
  font-size: 14px;
}

#stats span {
  color: hsl(186, 100%, 50%);
}








/* Enhanced Lobby Screen */
.lobby-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lobby-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

#lobbyScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Background removed - using canvas background instead */
  z-index: 40;
  overflow: hidden;
}

#lobbyScreen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent, rgba(0, 247, 255, 0.03), transparent),
    linear-gradient(-45deg, transparent, rgba(0, 247, 255, 0.02), transparent);
  animation: energyFlow 12s ease-in-out infinite;
  pointer-events: none;
}

#lobbyBackground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block; /* Show canvas for background switching */
}

#lobbyMapContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

#gameMapArea {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.ground-tile, .map-object {
  will-change: transform;
}

.hidden {
  display: none !important;
}

#lobbyScreen .center {
  position: relative;
  z-index: 2;
}

#lobbyContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
  z-index: 2;
  width: 100%;
}

#lobbyContent h1 {
  font-size: 4.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: hsl(186, 100%, 50%);
  text-shadow:
    0 0 20px hsla(186, 100%, 50%, 0.8),
    0 0 40px hsla(186, 100%, 50%, 0.6),
    0 0 80px hsla(186, 100%, 50%, 0.4);
  animation:
    logoGlow 3s ease-in-out infinite alternate,
    floatUp 4s ease-in-out infinite,
    titlePulse 6s ease-in-out infinite;
  margin-bottom: 20px;
  transform-origin: center;
  position: relative;
}

#lobbyContent h1::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, transparent, rgba(0, 247, 255, 0.1), transparent);
  border-radius: 20px;
  animation: titleBackground 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatUp {

  0%,
  100% {
    transform: translateY(0) scale(1) rotateX(0deg);
  }

  50% {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
  }
}

@keyframes backgroundShimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@keyframes energyFlow {

  0%,
  100% {
    transform: translateX(-100%) rotate(0deg);
    opacity: 0;
  }

  25% {
    opacity: 0.8;
  }

  50% {
    transform: translateX(100%) rotate(180deg);
    opacity: 0.4;
  }

  75% {
    opacity: 0.6;
  }
}

@keyframes titlePulse {

  0%,
  100% {
    text-shadow:
      0 0 20px hsla(186, 100%, 50%, 0.8),
      0 0 40px hsla(186, 100%, 50%, 0.6),
      0 0 80px hsla(186, 100%, 50%, 0.4);
  }

  50% {
    text-shadow:
      0 0 30px hsla(186, 100%, 50%, 1),
      0 0 60px hsla(186, 100%, 50%, 0.8),
      0 0 120px hsla(186, 100%, 50%, 0.6);
  }
}

@keyframes titleBackground {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.6;
  }
}

.bottom-right-container {
  position: fixed;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0;
  z-index: 45;
  pointer-events: none;
  overflow: visible;
}

.bottom-right-container > div {
  display: flex;
  gap: 0;
  pointer-events: auto;
}

.play-buttons-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: auto;
}

.solo-button {
  width: 186px;
  height: 43px;
  background: linear-gradient(135deg, #6c5ce7 0%, #a855f7 50%, #7c3aed 100%);
  color: #ffffff;
  border: 3px solid rgba(168, 85, 247, 0.8);
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
  transform: none !important;
}

.solo-button:hover {
  background: linear-gradient(135deg, #7c6cf7 0%, #b865f7 50%, #8c4afd 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.team-mode-dropdown {
  position: absolute;
  bottom: 48px;
  right: 0;
  width: 186px;
  background: linear-gradient(180deg, rgba(40, 25, 70, 0.98) 0%, rgba(25, 15, 45, 0.98) 100%);
  border: 2px solid rgba(168, 85, 247, 0.7);
  border-radius: 0;
  overflow: hidden;
  box-shadow:
    0 -8px 30px rgba(168, 85, 247, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(168, 85, 247, 0.2);
  transform-origin: bottom center;
  animation: dropdownSlideIn 0.25s ease-out;
  z-index: 200;
  padding: 0;
  margin: 0;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.team-mode-dropdown.hidden {
  display: none;
}

.team-mode-option {
  padding: 16px 20px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(168, 85, 247, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  margin: 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.team-mode-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
  transition: left 0.4s ease;
}

.team-mode-option:last-child {
  border-bottom: none;
  border-radius: 0;
}

.team-mode-option:hover {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(138, 43, 226, 0.4));
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
  transform: scale(1.02);
  border-bottom-color: rgba(168, 85, 247, 0.5);
}

.team-mode-option:hover::before {
  left: 100%;
}

.team-mode-option.selected {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.5), rgba(138, 43, 226, 0.6));
  color: #fff;
  text-shadow: 0 0 15px rgba(168, 85, 247, 1);
  border-left: 3px solid #a855f7;
  border-bottom-color: rgba(168, 85, 247, 0.5);
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.3);
}

.team-mode-option:active {
  transform: scale(0.98);
}

.play-button,
.play-button,
.map-button {
  width: 259px;
  height: 82px;
  border: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  font-size: 2rem;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-radius: 0;
  font-family: inherit;
}

.map-button {
  background: gold !important;
  color: #fff !important;
  text-shadow: none;
  border: 2px solid #FFD700;
  border-bottom: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px;
  background-image: none !important;
  width: auto;
  min-width: 168px;
  height: 78px;
  padding: 0 30px 0 50px;
  transform: skewX(-15deg) skewY(0deg) translateX(-18px) !important;
  margin-bottom: 0;
  align-self: flex-end;
}

.map-button > *,
.map-button span {
  transform: skewX(15deg) !important;
  display: inline-block;
}

.play-button {
  background: linear-gradient(135deg, #00d4ff 0%, #0080ff 50%, #0050cc 100%);
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(0, 212, 255, 0.8);
  border-right: none;
  border-bottom: none;
  transform: none !important;
  margin-left: -20px;
  clip-path: polygon(25px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 30px;
}

.play-button > *,
.play-button div,
.play-button span {
  transform: none !important;
}

/* Premium glow effect */
.play-button::before,
.map-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.map-button::before {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
}

/* Animated shine effect */
.play-button::after,
.map-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.map-button::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}



/* Enhanced hover effects */
.play-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 12px 35px rgba(0, 212, 255, 0.6),
    0 0 40px rgba(0, 212, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(0, 212, 255, 1);
}

.map-button:hover {
  transform: skewX(-15deg) translateY(-4px) scale(1.05);
  box-shadow:
    0 12px 35px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 215, 0, 1);
}

.play-button:hover::before,
.map-button:hover::before {
  opacity: 1;
}

.play-button:hover::after,
.map-button:hover::after {
  left: 100%;
}

/* Active/Click effects */
.play-button:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(0, 212, 255, 0.5),
    0 0 25px rgba(0, 212, 255, 0.3);
}

.map-button:active {
  transform: skewX(-15deg) translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(255, 215, 0, 0.5),
    0 0 25px rgba(255, 215, 0, 0.3);
}

/* Pulsing animation for Play button */
@keyframes playButtonPulse {

  0%,
  100% {
    box-shadow:
      0 8px 25px rgba(0, 212, 255, 0.4),
      0 0 20px rgba(0, 212, 255, 0.2);
  }

  50% {
    box-shadow:
      0 10px 30px rgba(0, 212, 255, 0.6),
      0 0 30px rgba(0, 212, 255, 0.4);
  }
}

.play-button {
  animation: playButtonPulse 2s ease-in-out infinite;
}

/* Glowing animation for Battle Royal button */
@keyframes mapButtonGlow {

  0%,
  100% {
    box-shadow:
      0 8px 25px rgba(255, 140, 0, 0.4),
      0 0 20px rgba(255, 215, 0, 0.2);
  }

  50% {
    box-shadow:
      0 10px 30px rgba(255, 140, 0, 0.6),
      0 0 30px rgba(255, 215, 0, 0.4);
  }
}

.map-button {
  animation: mapButtonGlow 2s ease-in-out infinite;
}




/* Respawn Screen */
#respawnScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 0%, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  backdrop-filter: blur(5px);
}

#respawnContent {
  background: linear-gradient(145deg, hsl(220, 15%, 12%), hsla(0, 0%, 5%, 0.95));
  border: 2px solid hsl(186, 100%, 50%);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 50px hsla(186, 100%, 50%, 0.3);
  animation: fadeIn 0.5s ease;
}

#respawnContent h2 {
  color: hsl(4, 90%, 58%);
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 20px hsla(4, 90%, 58%, 0.8);
}

#respawnContent p {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

#respawnBtn {
  padding: 15px 40px;
  font-size: 1.4rem;
  font-weight: bold;
  border: 2px solid hsla(186, 100%, 50%, 0.8);
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, hsl(186, 100%, 50%), hsl(213, 72%, 52%));
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:
    0 6px 20px hsla(186, 100%, 50%, 0.4),
    0 3px 10px hsla(0, 0%, 0%, 0.3),
    inset 0 1px 0 hsla(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

#respawnBtn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow:
    0 10px 30px hsla(186, 100%, 50%, 0.6),
    0 5px 15px hsla(0, 0%, 0%, 0.4),
    inset 0 2px 0 hsla(255, 255, 255, 0.3);
  border-color: hsla(186, 100%, 50%, 1);
}

#respawnBtn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, hsla(255, 255, 255, 0.4), transparent);
  transform: skewX(-30deg);
  transition: left 0.6s ease;
}

#respawnBtn:hover::after {
  left: 100%;
}

#lobbyBtn {
  /* Transparent - no background */
  margin-left: 50px;
  display: none;
}

#lobbyBtn.active {
  display: block;
}

#lobbyBtn:hover {
  /* Transparent - no background on hover */
}

/* Notification System */
.notification {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, hsl(264, 83%, 70%), hsl(264, 83%, 80%));
  color: white;
  padding: 20px 30px;
  border-radius: 15px;
  font-size: 18px;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 8px 25px hsla(0, 0%, 0%, 0.3);
  border: 2px solid hsla(0, 0%, 100%, 0.2);
  animation: autoShootNotification 2.5s ease-out forwards;
}

/* Vehicle Selection Notification */
.vehicle-notification {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.95), rgba(255, 140, 0, 0.95));
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  z-index: 10001;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: vehicleNotificationShow 5s ease-out forwards;
  backdrop-filter: blur(10px);
}

@keyframes vehicleNotificationShow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px) scale(0.8);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1.05);
  }
  15% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  85% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px) scale(0.8);
  }
}

/* Responsive Design */
/* Lobby Background Logo */
.lobby-logo-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
}

.lobby-logo-image {
  height: 528px;
  width: 528px;
  /* Remove filters that cause pixelation */
  background: transparent;
  animation: logoGlow 3s ease-in-out infinite alternate;
  /* High quality rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  image-rendering: auto;
  object-fit: contain;
  object-position: center;
}

/* Lobby Decorative Boxes - Enhanced Hexagon Style */
.lobby-box {
  position: absolute;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(0, 247, 255, 0.4)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: all 0.3s ease;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.lobby-box:hover {
  filter: drop-shadow(0 12px 30px rgba(0, 247, 255, 0.6)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
  transform: translateY(-5px); /* Removed scale */
}

/* Enhanced ground shadow */
.lobby-box::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 130%;
  height: 50px;
  background: radial-gradient(ellipse at center,
      rgba(0, 247, 255, 0.25) 0%,
      rgba(0, 0, 0, 0.7) 35%,
      transparent 65%);
  filter: blur(25px);
  z-index: -1;
  transition: all 0.3s ease;
}

.lobby-box:hover::before {
  background: radial-gradient(ellipse at center,
      rgba(0, 247, 255, 0.35) 0%,
      rgba(0, 0, 0, 0.8) 35%,
      transparent 65%);
  filter: blur(28px);
  bottom: -55px;
}

/* Blue line on bottom edge of hexagon */
.hex-edge-line {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(0, 247, 255, 0.6) 15%, 
      rgba(0, 247, 255, 1) 50%, 
      rgba(0, 247, 255, 0.6) 85%, 
      transparent 100%);
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.6), 0 0 20px rgba(0, 247, 255, 0.4);
  z-index: 15;
  pointer-events: none;
}

/* Hide diagonal lines */
.hex-edge-left,
.hex-edge-right {
  display: none;
}

/* Bottom horizontal edge _ */
.hex-edge-bottom {
  width: 50%;
  bottom: 0%;
  left: 25%;
  transform: none;
}

.lobby-box:hover .hex-edge-line {
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.8), 0 0 30px rgba(0, 247, 255, 0.6);
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(0, 247, 255, 0.7) 15%, 
      rgba(0, 247, 255, 1) 50%, 
      rgba(0, 247, 255, 0.7) 85%, 
      transparent 100%);
}

.lobby-box-back-left {
  width: 480px;
  height: 480px;
  bottom: 12%;
  left: 6%;
  z-index: 1;
  animation: floatLeft 6s ease-in-out infinite;
}

.lobby-box-back-right {
  width: 480px;
  height: 480px;
  bottom: 12%;
  right: 6%;
  z-index: 1;
  animation: floatRight 6s ease-in-out infinite;
}

.lobby-box-front-center {
  width: 550px;
  height: 550px;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: floatCenter 5s ease-in-out infinite;
}

@keyframes floatLeft {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-12px) translateX(-5px);
  }
}

@keyframes floatRight {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-12px) translateX(5px);
  }
}

@keyframes floatCenter {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-15px);
  }
}

.lobby-box canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#partyTank1Canvas,
#partyTank2Canvas {
  width: 300px;
  height: 300px;
}

#playerTankCanvas {
  width: 400px;
  height: 400px;
}

.party-invite-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: none;
  background: linear-gradient(135deg, rgb(0, 170, 255, 0.2), rgba(0, 180, 255, 0.15));
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: rgba(0, 247, 255, 0.9);
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 247, 255, 0.3);
  border: 3px solid rgb(0, 157, 255, 0.6);
}

.party-invite-btn::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: transparent;
  clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  box-shadow: inset 0 0 15px rgba(0, 247, 255, 0.3);
  transition: all 0.3s ease;
  z-index: -1;
}

.party-invite-btn:hover {
  color: rgba(0, 247, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 180, 255, 0.2));
  box-shadow: 0 8px 30px rgba(0, 247, 255, 0.5);
  border-color: rgba(0, 247, 255, 0.9);
}

.party-invite-btn:hover::before {
  box-shadow: inset 0 0 20px rgba(0, 247, 255, 0.5);
}

.party-invite-btn.hidden {
  display: none;
}

.party-member-info {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.party-member-info.hidden {
  display: none;
}

.party-member-name {
  font-size: 1rem;
  font-weight: bold;
  color: rgba(0, 247, 255, 0.9);
}

.party-member-level {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.player-tank-info {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(0, 247, 255, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

.player-tank-label {
  font-size: 1.1rem;
  font-weight: bold;
  color: rgba(0, 247, 255, 1);
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .logo {
    font-size: 1.5rem;
    left: 15px;
  }

  .logo-image {
    height: 35px;
    width: 35px;
  }

  .lobby-logo-image {
    height: 200px;
    width: 200px;
  }

  .top-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  .top-buttons button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .profile-btn {
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .bottom-right-container {
    bottom: 0;
    right: 0;
  }

  .play-button {
    width: 216px;
    height: 72px;
    font-size: 1.5rem;
  }

  .map-button {
    min-width: 132px;
    height: 72px;
    font-size: 1.5rem;
  }

  #instructions {
    left: 15px;
    max-width: 250px;
    padding: 15px;
  }

  #lobbyContent h1 {
    font-size: 2.5rem;
  }
}

/* Game Mode Modal Styles */

/* Game Mode Modal Styles */
.game-mode-modal {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 1067px;
  max-height: 760px;
  background: linear-gradient(135deg, rgba(26, 42, 65, 0.98), rgba(40, 40, 60, 0.98));
  border: 3px solid rgba(0, 247, 255, 0.6);
  border-radius: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 247, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
  animation: modalSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.game-mode-modal.hidden {
  display: none;
}

.game-mode-header {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.4), rgba(0, 150, 255, 0.3));
  padding: 25px 40px;
  border-bottom: 3px solid rgba(0, 247, 255, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 247, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.game-mode-header .container {
  position: relative;
  background: linear-gradient(135deg, rgb(179, 208, 253) 0%, rgb(164, 202, 248) 100%);
  border-radius: 1000px;
  padding: 10px;
  display: grid;
  place-content: center;
  z-index: 0;
  max-width: 720px;
  margin: 0 auto;
}

.game-mode-header .search-container {
  position: relative;
  width: 100%;
  border-radius: 50px;
  background: linear-gradient(135deg, rgb(235, 242, 255) 0%, rgb(220, 235, 255) 100%);
  padding: 6px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 247, 255, 0.2);
}

.game-mode-header .search-container::after,
.game-mode-header .search-container::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: inherit;
  position: absolute;
}

.game-mode-header .search-container::before {
  top: -1px;
  left: -1px;
  background: linear-gradient(0deg, rgb(218, 232, 247) 0%, rgb(255, 255, 255) 100%);
  z-index: -1;
}

.game-mode-header .search-container::after {
  bottom: -1px;
  right: -1px;
  background: linear-gradient(0deg, rgb(163, 206, 255) 0%, rgb(211, 232, 255) 100%);
  box-shadow: rgba(79, 156, 232, 0.7019607843) 3px 3px 5px 0px, rgba(79, 156, 232, 0.7019607843) 5px 5px 20px 0px;
  z-index: -2;
}

.game-mode-header .input {
  padding: 12px 16px;
  width: 100%;
  background: linear-gradient(135deg, rgb(235, 242, 255) 0%, rgb(220, 235, 255) 100%);
  border: none;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 500;
  border-radius: 45px;
  transition: all 0.3s ease;
}

.game-mode-header .input:focus {
  outline: none;
  background: linear-gradient(135deg, rgb(250, 252, 255) 0%, rgb(235, 245, 255) 100%);
  box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
  color: #1a252f;
}

.game-mode-header .search__icon {
  width: 50px;
  aspect-ratio: 1;
  border-left: 2px solid white;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 50%;
  padding-left: 12px;
  margin-right: 10px;
}

.game-mode-header .search__icon:hover {
  border-left: 3px solid white;
}

.game-mode-header .search__icon path {
  fill: white;
}

.game-mode-header h2 {
  color: #00f7ff;
  font-size: 3.6rem;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(0, 247, 255, 0.8);
  margin: 0;
  letter-spacing: 4px;
}

.game-mode-close {
  background: radial-gradient(circle, rgba(220, 53, 69, 0.95) 0%, rgba(200, 35, 51, 0.9) 50%, rgba(180, 25, 40, 0.85) 100%);
  border: 3px solid rgba(255, 80, 80, 0.9);
  color: rgba(255, 255, 255, 0.95);
  font-size: 2.4rem;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  font-weight: bold;
}

.game-mode-list {
  padding: 40px 40px 80px 40px;
  max-height: 660px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  gap: 30px;
  flex-wrap: nowrap;
}

.game-mode-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 280px;
  height: 250px;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}

.game-mode-item:hover {
  transform: translateX(-5px);
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow: 0 5px 20px rgba(0, 247, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.15), rgba(0, 247, 255, 0.1));
}

.game-mode-item.selected {
  border-color: rgba(0, 247, 255, 0.9);
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.25), rgba(0, 247, 255, 0.15));
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
}

.game-mode-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.game-mode-item:hover .game-mode-image {
  transform: scale(1.05);
}

.game-mode-info {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  padding: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.game-mode-abbr {
  color: #00a8ff;
  text-shadow: 0 0 8px rgba(0, 168, 255, 0.6);
}

.game-mode-count {
  color: #00ff00;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

.game-mode-creator {
  color: #ff8800;
  text-shadow: 0 0 8px rgba(255, 136, 0, 0.6);
}

.game-mode-list::-webkit-scrollbar {
  width: 8px;
}

.game-mode-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.game-mode-list::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.4);
  border-radius: 4px;
}

.game-mode-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.6);
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 180, 255, 0.2));
  border: 3px solid rgba(0, 247, 255, 0.7);
  color: #00f7ff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.4);
}

.scroll-button:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.5), rgba(0, 180, 255, 0.4));
  border-color: rgba(0, 247, 255, 1);
  box-shadow: 0 6px 20px rgba(0, 247, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.scroll-button:active {
  transform: translateY(-50%) scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 247, 255, 0.5);
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

.auth-buttons-container {
  position: absolute;
  left: 30px;
  top: 21%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.auth-btn {
  cursor: pointer;
  border: solid 4px #161616;
  border-top: none;
  border-radius: 20px;
  position: relative;
  box-shadow: 0px 4px 10px #00000062, 0px 10px 40px -10px #000000a6,
    0px 12px 45px -15px #00000071;
  transition: all 0.3s ease;
  background: transparent;
}

.auth-btn .inner {
  padding: 12px 30px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: solid 3px #374e72;
  border-radius: 16px;
  background: linear-gradient(180deg, #5771a5, #000);
  color: #fff;
  text-shadow: 1px 1px #000, 0 0 9px #fff;
}

.auth-btn .svgs {
  position: relative;
  margin-top: 9px;
  z-index: 10;
}

.auth-btn .svgs>* {
  filter: drop-shadow(0 0 6px #fff) drop-shadow(1px 1px 0px #000);
}

.auth-btn .svgs .svg-s {
  position: absolute;
  font-size: 0.8rem;
  left: 20px;
  top: -4px;
}

.auth-btn:active {
  box-shadow: none;
}

.login-btn .inner {
  background: linear-gradient(180deg, #00d4ff, #000);
  border-bottom-color: #00a8cc;
}

.signup-btn .inner {
  background: linear-gradient(180deg, #a855f7, #000);
  border-bottom-color: #7c3aad;
}

.user-info-container {
  cursor: pointer;
  position: absolute;
  left: -20px;
  top: 80px;
  z-index: 10;
}

.level-progress-container {
  position: relative;
  width: 370px;
  height: 106px;
}

.level-progress-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vehicle-hexagon {
  position: absolute;
  left: 66px;
  top: 20px;
  width: 60px;
  height: 60px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.vehicle-hexagon canvas {
  width: 100%;
  height: 100%;
}

.level-username {
  position: absolute;
  left: 145px;
  top: 12px;
  width: 120px;
  height: 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
  text-transform: uppercase;
}

.user-avatar {
  font-size: 3.5rem;
  color: white;
  position: relative;
  z-index: 1;
  transition: inherit;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.user-name {
  font-size: 1.4rem;
  font-weight: 550;
  color: white;
  text-align: center;
  word-wrap: break-word;
  max-width: 140px;
  position: relative;
  z-index: 1;
  transition: inherit;
}

/* Stats Box Styles */
.stats-box {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.15), rgba(0, 180, 255, 0.1));
  backdrop-filter: blur(20px);
  border: 3px solid rgba(0, 247, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 247, 255, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.stats-box:hover {
  border-color: rgba(0, 247, 255, 1);
  box-shadow: 0 8px 30px rgba(0, 247, 255, 0.6),
    0 3px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.02);
}

.stats-box-header {
  background: rgba(0, 247, 255, 0.2);
  padding: 15px 20px;
  border-bottom: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 9px 9px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-box-header h3 {
  margin: 0;
  color: #00f7ff;
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
  letter-spacing: 1px;
}

.stats-close-btn {
  background: rgba(255, 100, 100, 0.3);
  border: 2px solid rgba(255, 100, 100, 0.7);
  color: #ff6464;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
}

.stats-close-btn:hover {
  background: rgba(255, 100, 100, 0.5);
  border-color: #ff6464;
  transform: scale(1.1);
}

.stats-box-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  justify-content: center;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(0, 247, 255, 0.2);
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: rgba(0, 247, 255, 0.1);
  border-color: rgba(0, 247, 255, 0.4);
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

.stat-value {
  color: #00f7ff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 247, 255, 0.5);
}

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.auth-modal-content {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.95), rgba(10, 10, 20, 0.95));
  border: 3px solid rgba(0, 247, 255, 0.6);
  border-radius: 20px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 247, 255, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal-header {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 247, 255, 0.1));
  border-bottom: 2px solid rgba(0, 247, 255, 0.4);
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 17px 17px 0 0;
}

.auth-modal-header h2 {
  margin: 0;
  font-size: 2rem;
  color: #00f7ff;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-modal-close {
  background: none;
  border: none;
  color: #00f7ff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-close:hover {
  transform: rotate(90deg) scale(1.2);
  color: #ff4444;
}

.auth-modal-body {
  padding: 30px;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #00f7ff;
  font-weight: bold;
}

.auth-form-group input {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.4rem;
  background: rgba(0, 247, 255, 0.05);
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  transition: all 0.3s ease;
}

.auth-form-group input:focus {
  outline: none;
  border-color: rgba(0, 247, 255, 0.8);
  background: rgba(0, 247, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
}

.auth-error {
  background: rgba(255, 0, 0, 0.2);
  border: 2px solid rgba(255, 0, 0, 0.5);
  color: #ff4444;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.auth-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.4), rgba(0, 247, 255, 0.3));
  border: 2px solid rgba(0, 247, 255, 0.7);
  border-radius: 12px;
  color: #00f7ff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.5), rgba(0, 247, 255, 0.4));
  box-shadow: 0 6px 20px rgba(0, 247, 255, 0.4);
  transform: translateY(-2px);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
}

.auth-switch a {
  color: #00f7ff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.auth-switch a:hover {
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.friends-search {
  margin-bottom: 20px;
  position: relative;
}

.friends-search input {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.4rem;
  background: rgba(0, 247, 255, 0.05);
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 10px;
  color: #fff;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 20, 0.98);
  border: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 10px;
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-item:hover {
  background: rgba(0, 247, 255, 0.1);
}

.search-result-name {
  font-size: 1.4rem;
  color: #00f7ff;
}

.search-result-level {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.add-friend-btn {
  background: rgba(0, 247, 255, 0.3);
  border: 2px solid rgba(0, 247, 255, 0.7);
  color: #00f7ff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.add-friend-btn:hover {
  background: rgba(0, 247, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
}

.friends-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(0, 247, 255, 0.2);
}

.friends-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.friends-tab.active {
  color: #00f7ff;
  border-bottom-color: #00f7ff;
}

.friends-tab-content {
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.friend-item,
.request-item {
  background: rgba(0, 247, 255, 0.05);
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.friend-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.friend-name {
  font-size: 1.5rem;
  color: #00f7ff;
  font-weight: bold;
}

.friend-level {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.friend-actions {
  display: flex;
  gap: 10px;
}

.accept-btn {
  background: rgba(0, 255, 0, 0.3);
  border: 2px solid rgba(0, 255, 0, 0.7);
  color: #4ade80;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.accept-btn:hover {
  background: rgba(0, 255, 0, 0.4);
  box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.reject-btn,
.remove-btn {
  background: rgba(255, 0, 0, 0.3);
  border: 2px solid rgba(255, 0, 0, 0.7);
  color: #ff4444;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.reject-btn:hover,
.remove-btn:hover {
  background: rgba(255, 0, 0, 0.4);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.party-invite-action-btn {
  background: rgba(0, 247, 255, 0.3);
  border: 2px solid rgba(0, 247, 255, 0.7);
  color: #00f7ff;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.party-invite-action-btn:hover {
  background: rgba(0, 247, 255, 0.4);
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
}

/* Leave Party Button */
.leave-party-btn {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 2px solid rgba(255, 100, 100, 0.6);
  color: #ff6464;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.leave-party-btn:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: #ff6464;
  color: #fff;
  transform: translateX(-50%) scale(1.1);
}

/* Kick Party Button */
.kick-party-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 0, 0, 0.4);
  border: 2px solid rgba(255, 0, 0, 0.7);
  color: #ff4444;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 12;
}

.kick-party-btn:hover {
  background: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  transform: scale(1.1);
}

/* Chat Indicator */
.chat-indicator {
  position: absolute;
  left: 30px;
  bottom: 30px;
  background: rgba(0, 247, 255, 0.2);
  border: 2px solid rgba(0, 247, 255, 0.5);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #00f7ff;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.chat-key {
  background: rgba(0, 247, 255, 0.3);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  margin: 0 5px;
}

.chat-emoji {
  margin-left: 10px;
  font-size: 1.4rem;
}

/* Chat Modal */
.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.chat-input-container {
  background: rgba(20, 30, 50, 0.95);
  border: 3px solid rgba(0, 247, 255, 0.6);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 40px rgba(0, 247, 255, 0.3);
}

.chat-send-hint {
  text-align: center;
  color: #00f7ff;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#chatInput {
  width: 400px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 247, 255, 0.5);
  border-radius: 8px;
  color: white;
  font-size: 1.3rem;
  outline: none;
  transition: all 0.3s ease;
}

#chatInput:focus {
  border-color: rgba(0, 247, 255, 1);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

/* Party Chat Messages */
.party-chat-message {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(0, 247, 255, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 1.1rem;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 15;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes chatFadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Party Member Join Animation */
@keyframes partyMemberJoin {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }

  60% {
    transform: scale(1.05) translateY(-5px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.party-member-joining {
  animation: partyMemberJoin 0.6s ease-out;
}

/* Close button on the map */
.map-close-button {
  position: absolute;
  top: 120px;
  /* Aligned with other close buttons */
  right: 30px;
  /* Standard right padding */
  width: 40px;
  /* 20% smaller than the original 50px */
  height: 40px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.95) 0%, rgba(200, 35, 51, 0.9) 50%, rgba(180, 25, 40, 0.85) 100%);
  border-radius: 12px;
  /* Slightly rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Smooth transitions for hover effects */
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.6),
    /* Primary shadow */
    0 2px 8px rgba(0, 0, 0, 0.3),
    /* Secondary shadow for depth */
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  /* Inner highlight */
  border: 3px solid rgba(255, 80, 80, 0.9);
  /* Outer border */
}

.map-close-button:hover {
  transform: scale(1.1);
  /* Enlarge slightly on hover */
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.8),
    /* Stronger shadow on hover */
    0 3px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  /* Inner highlight */
  border-color: rgba(255, 80, 80, 1);
  /* Brighter border on hover */
}

.map-close-button::before {
  content: '\00D7';
  /* HTML entity for 'x' */
  font-size: 28px;
  /* Size of the 'x' */
  font-weight: bold;
  color: rgba(255, 255, 255, 0.95);
  /* White 'x' */
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
  /* Subtle glow */
}


/* Feature Screens - Universal styling for all features */
.feature-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 247, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a15 0%, #050510 100%);
  z-index: 100;
  overflow-y: auto;
  padding: 60px 40px;
  animation: fadeIn 0.3s ease;
}

/* Locker screen fullscreen */
#lockerScreen.feature-screen {
  padding: 0;
  overflow: hidden;
}

#lockerScreen .feature-header {
  display: none;
}

.new-locker-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 50px;
}

.locker-title {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.locker-title::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00f7ff, transparent);
  border-radius: 2px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.feature-screen.hidden {
  display: none;
}

.feature-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 100, 100, 0.3);
  border: 2px solid rgba(255, 100, 100, 0.7);
  color: #ff6464;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  z-index: 110;
  font-weight: 300;
}

.feature-close-btn:hover {
  background: rgba(255, 100, 100, 0.5);
  border-color: #ff6464;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 100, 100, 0.4);
}

/* Slightly lower close button specifically for the Create Map screen */
#createMapCloseBtn {
  top: 30px; /* restored original vertical position */
  right: 4px; /* attached to right edge */
  left: auto;
}

/* Simplified dark-red button style (no skew) */
.button {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: #6b0000; /* dark red */
  color: #ffffff;
  cursor: pointer;
  position: relative;
  padding: 8px;
  margin-bottom: 20px;
  text-transform: none;
  font-weight: bold;
  font-size: 14px;
  transition: transform .12s ease, background .12s ease;
  border-radius: 0;
}

/* Keep inner content untransformed */
.button > * { transform: none; display: inline-block; }

/* Focus/active states */
.button:active, .button:focus { outline: none; transform: translateY(1px); }

#createMapCloseBtn.button {
  /* revert to base .feature-close-btn positioning and look */
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.3);
  border: 2px solid rgba(255, 100, 100, 0.7);
  color: #ff6464;
  font-size: 2rem;
  padding: 0;
  transform: none;
  z-index: 110;
}

#createMapCloseBtn.button::before { display: none; }
#createMapCloseBtn.button > * { transform: none; position: relative; z-index: 1; display: inline-block; }

/* Champions close button: match base close button style */
#championsCloseBtn.button {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: rgba(255, 100, 100, 0.3) !important;
  border: 2px solid rgba(255, 100, 100, 0.7) !important;
  color: #ff6464 !important;
  font-size: 2rem;
  padding: 0;
  transform: none !important;
  z-index: 110 !important;
}

#championsCloseBtn.button::before { display: none; }
#championsCloseBtn.button > * { transform: none; position: relative; z-index: 1; display: inline-block; }

/* Make create map screen corners square */
#createMapScreen {
  border-radius: 0 !important;
}

.button.button-inline { margin-bottom: 0; }

.feature-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.feature-header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00f7ff, transparent);
  border-radius: 2px;
}

.feature-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #00f7ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 247, 255, 0.3);
  margin: 0;
  letter-spacing: 2px;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}

.feature-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 15px 0 0 0;
  letter-spacing: 1px;
}

/* Tabs */
.feature-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(30, 58, 135, 0.7), rgba(30, 41, 59, 0.9));
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  border-radius: 0;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  position: relative;
}

.feature-tabs::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.3), transparent);
}

/* Make only the Created Maps tab 20% bigger (not the boxes) */
.feature-tab[onclick*="created-map"] {
  transform: none !important;
  font-size: 1.2rem; /* ~20% larger than baseline 1rem */
  padding: 1.2rem 1.92rem; /* 20% larger than 1rem 1.6rem */
}

.feature-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem; /* 20% smaller */
  padding: 0.8rem 1.28rem; /* 20% smaller */
  background: rgba(51, 65, 85, 0.5);
  border: none;
  color: #9ca3af;
  font-size: 0.8rem; /* 20% smaller */
  font-weight: bold;
  font-family: 'Luckiest Guy', cursive;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-tab:hover::before {
  left: 100%;
}

.feature-tab:hover {
  background: rgba(51, 65, 85, 0.8);
  color: white;
  transform: none;
  box-shadow: none;
}

.feature-tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: none;
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  transform: none;
}

.feature-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #3b82f6;
  border-radius: 2px;
  box-shadow: 0 0 10px #3b82f6;
}

/* Tab Content */
.tab-content {
  text-align: center;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.hidden {
  display: none;
}

.tab-content h2 {
  font-size: 32px;
  color: #00f7ff;
  margin-bottom: 12px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
}

.tab-content .subtitle {
  font-size: 17px;
  color: rgba(0, 247, 255, 0.7);
  margin-bottom: 50px;
  letter-spacing: 0.5px;
}

/* Maps Grid */
.maps-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 40px;
  padding: 20px 40px;
  scroll-behavior: smooth;
  height: 400px; /* Match map card height */
  border: 2px solid rgba(0, 247, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 247, 255, 0.05));
  backdrop-filter: blur(10px);
  position: relative;
}

/* Add scroll indicators */
.maps-grid::before {
  content: '← Scroll to see more maps →';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 247, 255, 0.7);
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  pointer-events: none;
  opacity: 0.8;
}

/* Enhanced scrollbar styling */
.maps-grid::-webkit-scrollbar {
  height: 12px;
}

.maps-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid rgba(0, 247, 255, 0.2);
}

.maps-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0, 247, 255, 0.6), rgba(0, 200, 220, 0.8));
  border-radius: 6px;
  border: 1px solid rgba(0, 247, 255, 0.3);
  transition: all 0.3s ease;
}

.maps-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(0, 247, 255, 0.8), rgba(0, 200, 220, 1));
  border-color: rgba(0, 247, 255, 0.5);
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.4);
}

/* Map Cards - Fixed width for horizontal scrolling */
.map-card {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.08), rgba(0, 180, 255, 0.04));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 0; /* user requested radius 0 */
  padding: 12px; /* reduce padding to keep visual balance when larger */
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 247, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-width: 384px !important; /* 20% larger */
  width: 384px !important;
  height: 384px !important;
  flex-shrink: 0 !important; /* Prevent shrinking */
  flex-grow: 0 !important; /* Prevent growing */
  transform: none; /* removed skew per user request */
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.map-card:hover::before {
  left: 100%;
}

.map-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow:
    0 12px 35px rgba(0, 247, 255, 0.25),
    0 0 30px rgba(0, 247, 255, 0.15);
}

.map-card.selected {
  border-color: rgba(0, 247, 255, 0.8);
  box-shadow:
    0 12px 35px rgba(0, 247, 255, 0.4),
    0 0 30px rgba(0, 247, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.05), rgba(0, 180, 255, 0.03));
}

.map-card-thumbnail {
  width: 100%;
  height: 288px; /* 240 * 1.2 */
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.8), rgba(5, 10, 25, 0.9));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  transform: none; /* no skew */
}

.map-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  transform: none; /* no skew */
}

.map-card:hover .map-card-thumbnail img {
  transform: scale(1.1);
}

.map-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.map-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #00f7ff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
  text-align: center;
}

.map-card-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: auto;
}

.map-card-btn {
  flex: 1;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 180, 255, 0.2));
  border: 2px solid rgba(0, 247, 255, 0.5);
  border-radius: 6px;
  color: #00f7ff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 0;
}

.map-card-btn:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.4), rgba(0, 180, 255, 0.3));
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.3);
}

.map-card-btn.delete-btn {
  background: linear-gradient(135deg, rgba(255, 60, 60, 0.3), rgba(200, 40, 40, 0.2));
  border-color: rgba(255, 80, 80, 0.5);
  color: #ff6666;
}

.map-card-btn.delete-btn:hover {
  background: linear-gradient(135deg, rgba(255, 60, 60, 0.4), rgba(200, 40, 40, 0.3));
  box-shadow: 0 4px 15px rgba(255, 60, 60, 0.3);
}

/* Compact visual badge inside the card (no text/buttons inside box) */
/* badge removed from inside card - keep text out of box per user request */

/* Meta area below the visual card */
.map-card-meta {
  width: 384px !important; /* match new card width */
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.map-card-meta .map-card-title {
  margin: 0;
  font-size: 16px;
  color: #cfefff;
}
.map-card-meta .map-card-actions {
  width: 100%;
  display: flex;
  gap: 8px;
}

/* Modal overlay for actions */
.map-actions-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}
.map-actions-card {
  background: linear-gradient(135deg, rgba(10,20,30,0.95), rgba(20,30,50,0.98));
  border: 2px solid rgba(0,247,255,0.12);
  padding: 18px;
  border-radius: 8px;
  min-width: 320px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.map-actions-card h3 {
  margin: 0 0 12px 0;
  color: #00f7ff;
}
.map-actions-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.map-actions-buttons .map-card-btn {
  min-width: 100px;
}
.map-actions-buttons .close-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.06);
  color: #fff;
}

/* Create New Map Button - Fixed width for horizontal scrolling */
.create-new-map-btn {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.15), rgba(0, 200, 220, 0.1));
  border: 3px dashed rgba(0, 247, 255, 0.6);
  border-radius: 16px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-width: 320px !important;
  width: 320px !important;
  height: 320px !important;
  flex-shrink: 0 !important; /* Prevent shrinking */
  flex-grow: 0 !important; /* Prevent growing */
  text-align: center;
}

.create-new-map-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.create-new-map-btn:hover::before {
  left: 100%;
}

.create-new-map-btn:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.25), rgba(0, 200, 220, 0.15));
  border-color: rgba(0, 247, 255, 0.8);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 247, 255, 0.3);
}

.create-new-icon {
  font-size: 48px;
  color: rgba(0, 247, 255, 0.8);
  margin-bottom: 15px;
  font-weight: bold;
}

.create-new-text {
  font-size: 20px;
  font-weight: bold;
  color: #00f7ff;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.create-new-subtitle {
  font-size: 14px;
  color: rgba(0, 247, 255, 0.7);
}er {
  background: rgba(0, 247, 255, 0.7);
}

/* Create New Map Button */
.create-new-map-btn {
  min-width: 320px;
  width: 320px;
  height: 320px;
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.15), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0, 200, 100, 0.1), transparent 60%),
    linear-gradient(135deg, rgba(20, 40, 60, 0.6), rgba(15, 30, 50, 0.8));
  border: 3px dashed rgba(0, 255, 136, 0.6);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 30px rgba(0, 255, 136, 0.2),
    0 0 0 1px rgba(0, 255, 136, 0.1) inset;
  animation: createNewFloat 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.create-new-map-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(0, 255, 136, 0.1) 50%,
      transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.create-new-map-btn:hover {
  transform: translateY(-8px) scale(1.03);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 255, 136, 0.3), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(0, 200, 100, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(20, 50, 70, 0.8), rgba(15, 40, 60, 0.9));
  border-color: #00ff88;
  border-style: solid;
  box-shadow:
    0 15px 50px rgba(0, 255, 136, 0.5),
    0 0 0 1px rgba(0, 255, 136, 0.3) inset,
    0 0 30px rgba(0, 255, 136, 0.3);
}

.create-new-icon {
  font-size: 80px;
  font-weight: 900;
  color: rgba(0, 255, 136, 0.9);
  text-shadow:
    0 0 30px rgba(0, 255, 136, 0.6),
    0 0 60px rgba(0, 255, 136, 0.3);
  animation: createNewPulse 2.5s ease-in-out infinite;
  transition: all 0.4s ease;
}

.create-new-map-btn:hover .create-new-icon {
  color: #00ff88;
  transform: rotate(90deg) scale(1.1);
  text-shadow:
    0 0 40px rgba(0, 255, 136, 0.8),
    0 0 80px rgba(0, 255, 136, 0.4);
}

.create-new-text {
  font-size: 26px;
  font-weight: 900;
  color: #00ff88;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.create-new-map-btn:hover .create-new-text {
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.create-new-subtitle {
  font-size: 15px;
  color: rgba(200, 220, 240, 0.7);
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.create-new-map-btn:hover .create-new-subtitle {
  color: rgba(200, 220, 240, 0.9);
}

@keyframes createNewFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Map Card - Shop Style */
.map-card {
  min-width: 320px;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.1), rgba(0, 180, 255, 0.05));
  border: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 25px rgba(0, 247, 255, 0.15),
    0 0 0 1px rgba(0, 247, 255, 0.1) inset;
  overflow: hidden;
  position: relative;
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 247, 255, 0.1),
      transparent);
  transition: left 0.6s ease;
}

.map-card:hover::before {
  left: 100%;
}

.map-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 247, 255, 0.7);
  box-shadow:
    0 15px 40px rgba(0, 247, 255, 0.3),
    0 0 0 1px rgba(0, 247, 255, 0.3) inset,
    0 0 30px rgba(0, 247, 255, 0.2);
}

.map-card-thumbnail {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.9), rgba(5, 10, 25, 0.9));
  border-bottom: 2px solid rgba(0, 247, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.map-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.map-card:hover .map-card-thumbnail img {
  transform: scale(1.1);
}

.map-card-info {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.map-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #00f7ff;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.map-card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-card-stat-icon {
  color: #00f7ff;
  font-size: 14px;
}

.map-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.map-card-btn {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 180, 255, 0.2));
  border: 1px solid rgba(0, 247, 255, 0.4);
  border-radius: 8px;
  color: #00f7ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 0;
}

.map-card-btn:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 180, 255, 0.3));
  border-color: #00f7ff;
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
  transform: translateY(-2px);
}

.map-card-btn.delete-btn {
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 80, 80, 0.2));
  border-color: rgba(255, 100, 100, 0.4);
  color: #ff6464;
}

.map-card-btn.delete-btn:hover {
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.3), rgba(255, 80, 80, 0.3));
  border-color: #ff6464;
  box-shadow: 0 0 15px rgba(255, 100, 100, 0.3);
}


@keyframes createNewPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* Stats Grid */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}

.stat-card {
  width: 240px;
  height: 160px;
  background:
    linear-gradient(135deg, rgba(25, 35, 55, 0.8), rgba(15, 25, 40, 0.9));
  border: 2px solid rgba(80, 100, 130, 0.3);
  border-radius: 18px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.stat-card:hover::before {
  transform: translateX(100%);
}

.stat-card:hover {
  border-color: #00f7ff;
  box-shadow:
    0 12px 35px rgba(0, 247, 255, 0.4),
    0 0 0 1px rgba(0, 247, 255, 0.2) inset;
  transform: translateY(-8px) scale(1.02);
  background:
    linear-gradient(135deg, rgba(25, 35, 55, 0.95), rgba(15, 25, 40, 0.95));
}

.stat-icon {
  font-size: 42px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.3));
  transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(0, 247, 255, 0.5));
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.stat-card:hover .stat-value {
  color: #00f7ff;
  text-shadow: 0 0 25px rgba(0, 247, 255, 0.6);
}

.stat-label {
  font-size: 15px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.stat-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

/* Blank Map Creator */
.blank-creator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0a0a15;
  z-index: 9999;
}

.blank-creator.hidden {
  display: none;
}

.blank-creator-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.blank-creator-content h1 {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.blank-creator-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
}

/* Back Button for Map Creator */
.back-from-creator-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: left center;
  width: 100px;
  height: 60px;
  background: linear-gradient(180deg, rgba(200, 40, 40, 0.9), rgba(120, 20, 20, 0.9));
  border: 2px solid rgba(120, 20, 20, 0.8);
  border-left: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 102;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.back-from-creator-btn:hover {
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.4), rgba(200, 60, 60, 0.4));
  border-color: #ff6666;
  color: #ff6666;
  box-shadow:
    0 8px 25px rgba(255, 100, 100, 0.6),
    0 0 0 1px rgba(255, 100, 100, 0.2) inset;
  transform: translateY(-50%) rotate(90deg) scale(1.05);
}

.back-from-creator-btn:active {
  transform: translateY(-50%) rotate(90deg) scale(0.95);
  box-shadow:
    0 4px 15px rgba(255, 100, 100, 0.4),
    0 0 0 1px rgba(255, 100, 100, 0.2) inset;
}

/* Publish Map Button - Normal orientation positioned at bottom center */
.publish-map-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center bottom;
  width: 120px;
  height: 60px;
  background: linear-gradient(180deg, rgba(40, 200, 180, 0.9), rgba(20, 120, 100, 0.9));
  border: 2px solid rgba(20, 120, 100, 0.8);
  border-right: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 102;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.publish-map-btn:hover {
  background: linear-gradient(180deg, rgba(60, 255, 220, 0.9), rgba(30, 180, 150, 0.9));
  border-color: #3cffdc;
  color: #3cffdc;
  box-shadow:
    0 8px 25px rgba(60, 255, 220, 0.6),
    0 0 0 1px rgba(60, 255, 220, 0.2) inset;
  transform: translateX(-50%) scale(1.05);
}

.publish-map-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow:
    0 4px 15px rgba(60, 255, 220, 0.4),
    0 0 0 1px rgba(60, 255, 220, 0.2) inset;
}

/* Test Map Button - Normal orientation positioned at bottom center */
.test-map-btn {
  position: fixed;
  bottom: 20px;
  left: calc(50% + 140px);
  transform: translateX(-50%);
  transform-origin: center bottom;
  width: 120px;
  height: 60px;
  background: linear-gradient(180deg, rgba(255, 180, 40, 0.9), rgba(200, 120, 20, 0.9));
  border: 2px solid rgba(200, 120, 20, 0.8);
  border-right: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 102;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.test-map-btn:hover {
  background: linear-gradient(180deg, rgba(255, 220, 60, 0.9), rgba(255, 180, 30, 0.9));
  border-color: #ffdc3c;
  color: #ffdc3c;
  box-shadow:
    0 8px 25px rgba(255, 220, 60, 0.6),
    0 0 0 1px rgba(255, 220, 60, 0.2) inset;
  transform: translateX(-50%) scale(1.05);
}

.test-map-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow:
    0 4px 15px rgba(255, 220, 60, 0.4),
    0 0 0 1px rgba(255, 220, 60, 0.2) inset;
}

/* Map Creator Canvas */
.map-creator-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

/* Players Panel */
.players-panel {
  padding: 5px 0;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  animation: panelFadeIn 0.3s ease-out;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sectionPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 247, 255, 0); }
  50% { box-shadow: 0 0 20px rgba(0, 247, 255, 0.15); }
}

@keyframes botItemSlide {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes buttonPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.players-panel::-webkit-scrollbar {
  width: 5px;
}

.players-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.players-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 247, 255, 0.5), rgba(0, 150, 200, 0.5));
  border-radius: 5px;
}

.players-panel::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 247, 255, 0.7), rgba(0, 150, 200, 0.7));
}

.players-section {
  background: linear-gradient(135deg, rgba(15, 25, 45, 0.95), rgba(8, 12, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.players-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.players-section:hover::before {
  opacity: 1;
}

.players-section:hover {
  border-color: rgba(0, 247, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 247, 255, 0.08);
}

.players-section.ai-section {
  border-color: rgba(255, 80, 80, 0.2);
}

.players-section.ai-section::before {
  background: linear-gradient(90deg, transparent, rgba(255, 80, 80, 0.5), transparent);
}

.players-section.ai-section:hover {
  border-color: rgba(255, 80, 80, 0.4);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 80, 80, 0.1);
}

.players-section.auto-fill-section {
  border-color: rgba(255, 180, 40, 0.2);
  background: linear-gradient(135deg, rgba(35, 28, 15, 0.95), rgba(18, 14, 8, 0.98));
}

.players-section.auto-fill-section::before {
  background: linear-gradient(90deg, transparent, rgba(255, 180, 40, 0.5), transparent);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title h4 {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 3px currentColor);
}

.section-desc {
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  margin: -5px 0 12px 0;
  letter-spacing: 0.3px;
}

.players-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  transition: background 0.2s;
  border-radius: 6px;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
}

.players-setting-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.players-setting-row label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.setting-icon {
  font-style: normal;
  font-size: 12px;
}

.players-input {
  width: 58px;
  padding: 7px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 8px;
  color: #00f7ff;
  font-size: 12px;
  text-align: center;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.players-input:hover {
  border-color: rgba(0, 247, 255, 0.4);
}

.players-input:focus {
  outline: none;
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(0, 247, 255, 0.25);
  transform: scale(1.02);
}

.players-select {
  padding: 7px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.players-select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 20, 0.6));
}

.players-select:focus {
  outline: none;
  border-color: rgba(0, 247, 255, 0.5);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch.small {
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(80, 80, 80, 0.6);
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: linear-gradient(180deg, #fff, #ddd);
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.small .toggle-slider:before {
  height: 14px;
  width: 14px;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(180deg, rgba(0, 247, 255, 0.7), rgba(0, 180, 200, 0.7));
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-switch.small input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.add-spawn-btn,
.add-ai-btn {
  padding: 4px 10px;
  background: linear-gradient(180deg, rgba(0, 247, 255, 0.25), rgba(0, 150, 200, 0.25));
  border: 1px solid rgba(0, 247, 255, 0.5);
  border-radius: 15px;
  color: #00f7ff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.add-spawn-btn:hover,
.add-ai-btn:hover {
  background: rgba(0, 247, 255, 0.4);
  transform: scale(1.05);
}

.ai-section .add-ai-btn {
  background: linear-gradient(180deg, rgba(255, 100, 100, 0.25), rgba(200, 50, 50, 0.25));
  border-color: rgba(255, 100, 100, 0.5);
  color: #ff6464;
}

.ai-section .add-ai-btn:hover {
  background: rgba(255, 100, 100, 0.4);
}

.spawn-points-list,
.ai-bots-list {
  max-height: 120px;
  overflow-y: auto;
  margin: 8px 0;
}

.empty-list-msg {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-align: center;
  padding: 15px 10px;
  font-style: italic;
}

.ai-bot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin: 5px 0;
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.12), rgba(200, 40, 40, 0.08));
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-left: 3px solid rgba(255, 80, 80, 0.5);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: botItemSlide 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.ai-bot-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.ai-bot-item:hover::before {
  left: 100%;
}

.ai-bot-item:hover {
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.2), rgba(200, 40, 40, 0.12));
  border-color: rgba(255, 80, 80, 0.4);
  border-left-color: rgba(255, 80, 80, 0.8);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 80, 80, 0.15);
}

.ai-bot-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ai-bot-name {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.ai-bot-difficulty {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.ai-bot-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ai-bot-team {
  font-size: 8px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-presets {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-presets label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preset-buttons {
  display: flex;
  gap: 8px;
}

.preset-btn {
  flex: 1;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.15), rgba(200, 40, 40, 0.1));
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.preset-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.preset-btn:hover::after {
  width: 150%;
  height: 150%;
}

.preset-btn:hover {
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.3), rgba(200, 40, 40, 0.2));
  border-color: rgba(255, 80, 80, 0.5);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 80, 80, 0.2);
}

.preset-btn:active {
  transform: translateY(0);
  animation: buttonPop 0.2s ease;
}

.powerup-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.powerup-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  cursor: pointer;
}

.powerup-checkbox input {
  width: 14px;
  height: 14px;
  accent-color: #00f7ff;
}

.teams-options {
  padding-top: 8px;
}

.ai-bot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  margin: 5px 0;
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-bot-item:hover {
  background: rgba(255, 100, 100, 0.25);
  border-color: rgba(255, 100, 100, 0.5);
}

.ai-bot-name {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.ai-bot-team {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
}

.auto-fill-ai-section {
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 180, 40, 0.1);
  border: 1px solid rgba(255, 180, 40, 0.3);
  border-radius: 8px;
}

.auto-fill-ai-section h4 {
  color: #ffb428;
  margin: 0 0 5px 0;
  font-size: 13px;
}

.auto-fill-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  margin: 0 0 10px 0;
}

/* AI Config Modal */
.ai-config-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.ai-config-modal.hidden {
  display: none;
}

.ai-config-content {
  width: 400px;
  max-height: 80vh;
  background: linear-gradient(180deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 0.98));
  border: 2px solid rgba(255, 100, 100, 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.ai-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 100, 100, 0.2);
  border-bottom: 1px solid rgba(255, 100, 100, 0.3);
}

.ai-config-header h3 {
  color: #ff6464;
  margin: 0;
  font-size: 16px;
}

.ai-config-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ai-config-close:hover {
  opacity: 1;
}

.ai-config-body {
  padding: 20px;
  max-height: 50vh;
  overflow-y: auto;
}

.ai-config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ai-config-row label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.ai-config-input,
.ai-config-select {
  width: 150px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
}

.ai-config-select {
  cursor: pointer;
}

.ai-stats-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-stats-section h4 {
  color: #00f7ff;
  margin: 0 0 10px 0;
  font-size: 14px;
}

.ai-stat-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.ai-stat-row label {
  width: 80px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.ai-stat-slider {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
}

.ai-stat-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #00f7ff;
  border-radius: 50%;
  cursor: pointer;
}

.ai-stat-row span {
  width: 45px;
  text-align: right;
  color: #00f7ff;
  font-size: 12px;
  font-weight: bold;
}

.ai-config-footer {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-config-save-btn {
  flex: 1;
  padding: 10px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 150, 200, 0.3));
  border: 2px solid rgba(0, 247, 255, 0.6);
  border-radius: 6px;
  color: #00f7ff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.ai-config-save-btn:hover {
  background: rgba(0, 247, 255, 0.5);
}

.ai-config-delete-btn {
  padding: 10px 20px;
  background: rgba(255, 50, 50, 0.3);
  border: 2px solid rgba(255, 50, 50, 0.6);
  border-radius: 6px;
  color: #ff5050;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.ai-config-delete-btn:hover {
  background: rgba(255, 50, 50, 0.5);
}

/* Assets Panel */
.assets-panel {
  position: absolute;
  right: 9px;
  top: 10px;
  width: 500px;
  min-width: 500px;
  max-height: calc(100vh - 140px);
  background:
    linear-gradient(180deg, rgba(15, 25, 40, 0.98) 0%, rgba(10, 20, 35, 0.98) 100%);
  border: 3px solid rgba(0, 247, 255, 0.4);
  border-radius: 0;
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 247, 255, 0.15) inset,
    0 0 30px rgba(0, 247, 255, 0.2);
  backdrop-filter: blur(20px);
  overflow: visible;
  transition: max-height 0.3s ease;
  z-index: 103;
}

.assets-panel.minimized {
  max-height: 80px;
  overflow: hidden;
}

.assets-panel.minimized .assets-panel-header {
  display: flex;
}

.assets-panel.minimized .assets-panel-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

.assets-panel-content {
  opacity: 1;
  max-height: calc(100vh - 220px);
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.assets-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(0, 247, 255, 0.08) 0%, rgba(0, 247, 255, 0.15) 50%, rgba(0, 247, 255, 0.08) 100%);
  border-bottom: 2px solid rgba(0, 247, 255, 0.3);
  position: relative;
}

.assets-panel-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f7ff, transparent);
  opacity: 0.5;
}

.assets-panel-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #00f7ff;
  text-shadow:
    0 0 15px rgba(0, 247, 255, 0.6),
    0 0 30px rgba(0, 247, 255, 0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.minimize-btn {
  width: 36px;
  height: 36px;
  background: rgba(0, 247, 255, 0.08);
  border: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 0;
  color: #00f7ff;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minimize-btn:hover {
  background: rgba(0, 247, 255, 0.2);
  border-color: #00f7ff;
  box-shadow:
    0 0 20px rgba(0, 247, 255, 0.4),
    inset 0 0 10px rgba(0, 247, 255, 0.1);
  transform: scale(1.1) rotate(90deg);
}

.minimize-btn:active {
  transform: scale(0.95) rotate(90deg);
}

.assets-panel-content {
  padding: 20px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

/* Custom Scrollbar */
.assets-panel-content::-webkit-scrollbar {
  width: 8px;
}

.assets-panel-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.assets-panel-content::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.3);
  border-radius: 4px;
}

.assets-panel-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.5);
}

/* View Mode Buttons */
.view-mode-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 25px;
}

.view-mode-btn {
  padding: 12px 8px;
  background: rgba(20, 30, 50, 0.7);
  border: 2px solid rgba(80, 100, 130, 0.4);
  border-radius: 0;
  color: rgba(200, 220, 240, 0.8);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-mode-btn:hover {
  background: rgba(40, 60, 90, 0.9);
  border-color: rgba(100, 150, 200, 0.6);
  transform: translateY(-2px);
}

.view-mode-btn.active {
  background:
    linear-gradient(180deg, rgba(0, 247, 255, 0.2) 0%, rgba(0, 200, 220, 0.15) 100%);
  border-color: #00f7ff;
  color: #00f7ff;
  box-shadow:
    0 0 20px rgba(0, 247, 255, 0.4),
    inset 0 0 15px rgba(0, 247, 255, 0.1);
  transform: translateY(-2px);
}

/* Asset Categories */
.asset-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.asset-category-btn {
  padding: 12px;
  background: rgba(20, 30, 50, 0.6);
  border: 1px solid rgba(80, 100, 130, 0.3);
  border-radius: 10px;
  color: rgba(200, 220, 240, 0.8);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.asset-category-btn:hover {
  background: rgba(40, 60, 90, 0.8);
  border-color: rgba(100, 150, 200, 0.5);
  transform: translateY(-2px);
}

.asset-category-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 200, 100, 0.15));
  border-color: #00ff88;
  color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Assets Grid */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Ground assets - 2 columns */
.assets-grid.ground-assets {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.asset-item {
  aspect-ratio: 1;
  background: rgba(15, 25, 40, 0.7);
  border: 2px solid rgba(80, 100, 130, 0.4);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.asset-item:hover {
  background: rgba(30, 50, 80, 0.9);
  border-color: #00f7ff;
  transform: scale(1.08);
  box-shadow:
    0 0 25px rgba(0, 247, 255, 0.5),
    inset 0 0 20px rgba(0, 247, 255, 0.1);
}

.asset-item.selected {
  border-color: #00ff88;
  box-shadow:
    0 0 30px rgba(0, 255, 136, 0.6),
    inset 0 0 20px rgba(0, 255, 136, 0.15);
  background: rgba(0, 255, 136, 0.15);
}

.asset-item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.asset-item-label {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Map Creator Styles */
#mapCreatorCanvas {
  background: #2a4a2a;
  cursor: crosshair;
}

/* Plus cursor removed - now using FontAwesome icon */

#mapCreatorSidebar::-webkit-scrollbar {
  width: 6px;
}

#mapCreatorSidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

#mapCreatorSidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

#mapCreatorSidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.asset-item-list {
  background: transparent;
  border: 1px solid transparent;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
}

.asset-item-list:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.view-mode-btn {
  transition: all 0.3s ease;
}

.view-mode-btn:hover {
  background: rgba(100, 150, 255, 0.2) !important;
  border-color: rgba(100, 150, 255, 0.5) !important;
  color: #6496ff !important;
  transform: translateY(-1px);
}

.view-mode-btn.active {
  background: rgba(100, 150, 255, 0.15) !important;
  border-color: rgba(100, 150, 255, 0.4) !important;
  color: #6496ff !important;
}

#mapCreatorSidebar button:hover {
  transform: translateY(-1px);
}

#mapCreatorSidebar button:active {
  transform: translateY(0);
}

/* Zoom controls hover effects */
#blankMapCreator button:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}


/* Map Creator Zoom Buttons Hover Effects */
.map-creator-zoom-btn:hover {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.4), rgba(80, 120, 220, 0.4)) !important;
  border-color: rgba(100, 150, 255, 0.8) !important;
  color: #ffffff !important;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(100, 150, 255, 0.5) !important;
}

.map-creator-zoom-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}


/* Hide any drawn map view in map creator */
#blankMapCreator canvas {
  position: relative;
}

/* Hide the game minimap when in map creator */
#minimap {
  display: none !important;
}

#blankMapCreator #minimap {
  display: none !important;
}

/* Shop Screen Styles */
.shop-category-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 40px;
}

.shop-category-tab {
  padding: 18px 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.shop-category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.shop-category-tab:hover::before {
  left: 100%;
}

.shop-category-tab:hover {
  border-color: rgba(0, 247, 255, 0.4);
  color: rgba(0, 247, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 247, 255, 0.2);
}

.shop-category-tab.active {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 180, 255, 0.15));
  border-color: rgba(0, 247, 255, 0.7);
  color: #00f7ff;
  box-shadow:
    0 10px 30px rgba(0, 247, 255, 0.3),
    0 0 0 1px rgba(0, 247, 255, 0.2) inset;
}

.shop-tab-content {
  padding: 0 40px;
  animation: fadeIn 0.4s ease;
}

.shop-tab-content.hidden {
  display: none;
}

.shop-items-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  max-height: 600px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 20px;
  scroll-behavior: smooth;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.shop-items-grid::-webkit-scrollbar {
  width: 10px;
}

.shop-items-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.shop-items-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.5);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.shop-items-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.7);
}

.shop-item-card {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.08), rgba(0, 180, 255, 0.04));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 247, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.shop-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.shop-item-card:hover::before {
  left: 100%;
}

.shop-item-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow:
    0 12px 35px rgba(0, 247, 255, 0.25),
    0 0 30px rgba(0, 247, 255, 0.15);
}

.shop-item-card.owned {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 200, 100, 0.04));
  border-color: rgba(0, 255, 136, 0.4);
}

.shop-item-card.owned:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow:
    0 12px 35px rgba(0, 255, 136, 0.25),
    0 0 30px rgba(0, 255, 136, 0.15);
}

.shop-item-preview {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.8), rgba(5, 10, 25, 0.9));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.shop-item-preview img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.shop-item-card:hover .shop-item-preview img {
  transform: scale(1.15) rotate(5deg);
}

.shop-item-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.6));
}

.shop-item-info {
  text-align: center;
  width: 100%;
}

.shop-item-name {
  font-size: 18px;
  font-weight: bold;
  color: #00f7ff;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.shop-item-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  line-height: 1.5;
}

.shop-item-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.shop-item-price img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.shop-item-buy-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: 2px solid rgba(76, 175, 80, 0.6);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-item-buy-btn:hover {
  background: linear-gradient(135deg, #5CBF60, #4CAF50);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.shop-item-buy-btn:disabled {
  background: linear-gradient(135deg, #666, #555);
  border-color: rgba(120, 120, 120, 0.6);
  cursor: not-allowed;
  opacity: 0.7;
}

.shop-item-buy-btn.owned-btn {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 200, 100, 0.3));
  border-color: rgba(0, 255, 136, 0.6);
  color: #00ff88;
  cursor: default;
}

.shop-item-buy-btn.owned-btn:hover {
  transform: none;
  box-shadow: none;
}

/* Shop Screen Styles */
.shop-category-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 40px;
}

.shop-category-tab {
  padding: 18px 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.shop-category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.shop-category-tab:hover::before {
  left: 100%;
}

.shop-category-tab:hover {
  border-color: rgba(0, 247, 255, 0.4);
  color: rgba(0, 247, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 247, 255, 0.2);
}

.shop-category-tab.active {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 180, 255, 0.15));
  border-color: rgba(0, 247, 255, 0.7);
  color: #00f7ff;
  box-shadow:
    0 10px 30px rgba(0, 247, 255, 0.3),
    0 0 0 1px rgba(0, 247, 255, 0.2) inset;
}

.shop-tab-content {
  padding: 0 40px;
  animation: fadeIn 0.4s ease;
}

.shop-tab-content.hidden {
  display: none;
}

.shop-items-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  max-height: 600px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 20px;
  scroll-behavior: smooth;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.shop-items-grid::-webkit-scrollbar {
  width: 10px;
}

.shop-items-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.shop-items-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.5);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.shop-items-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.7);
}

.shop-item-card {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.08), rgba(0, 180, 255, 0.04));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 247, 255, 0.1);
  position: relative;
  overflow: hidden;
  min-width: 280px;
  width: 280px;
  flex-shrink: 0;
}

.shop-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.shop-item-card:hover::before {
  left: 100%;
}

.shop-item-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow:
    0 12px 35px rgba(0, 247, 255, 0.25),
    0 0 30px rgba(0, 247, 255, 0.15);
}

.shop-item-card.owned {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.08), rgba(0, 200, 100, 0.04));
  border-color: rgba(0, 255, 136, 0.4);
}

.shop-item-card.owned:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow:
    0 12px 35px rgba(0, 255, 136, 0.25),
    0 0 30px rgba(0, 255, 136, 0.15);
}

.shop-item-preview {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.8), rgba(5, 10, 25, 0.9));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}

.shop-item-preview img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.shop-item-card:hover .shop-item-preview img {
  transform: scale(1.15) rotate(5deg);
}

.shop-item-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 247, 255, 0.6));
}

.shop-item-info {
  text-align: center;
  width: 100%;
}

.shop-item-name {
  font-size: 18px;
  font-weight: bold;
  color: #00f7ff;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.shop-item-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  line-height: 1.5;
}

.shop-item-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.shop-item-price img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

.shop-item-buy-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border: 2px solid rgba(76, 175, 80, 0.6);
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-item-buy-btn:hover {
  background: linear-gradient(135deg, #5CBF60, #4CAF50);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.shop-item-buy-btn:disabled {
  background: linear-gradient(135deg, #666, #555);
  border-color: rgba(120, 120, 120, 0.6);
  cursor: not-allowed;
  opacity: 0.7;
}

.shop-item-buy-btn.owned-btn {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 200, 100, 0.3));
  border-color: rgba(0, 255, 136, 0.6);
  color: #00ff88;
  cursor: default;
}

.shop-item-buy-btn.owned-btn:hover {
  transform: none;
  box-shadow: none;
}

/* Enhanced Shop Styling */
.shop-item-preview canvas {
  background: radial-gradient(circle at center, rgba(0, 247, 255, 0.1), transparent);
  transition: all 0.4s ease;
}

.shop-item-card:hover .shop-item-preview {
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow:
    0 0 20px rgba(0, 247, 255, 0.3),
    inset 0 0 20px rgba(0, 247, 255, 0.1);
}

.shop-item-card.owned .shop-item-preview {
  border-color: rgba(0, 255, 136, 0.4);
}

.shop-item-card.owned:hover .shop-item-preview {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow:
    0 0 20px rgba(0, 255, 136, 0.3),
    inset 0 0 20px rgba(0, 255, 136, 0.1);
}

/* Better grid layout */
.shop-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  padding: 30px;
}

/* Improved card sizing */
.shop-item-card {
  min-height: 420px;
  padding: 25px;
}

.shop-item-preview {
  width: 140px;
  height: 140px;
  margin-bottom: 25px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.shop-item-name {
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.shop-item-description {
  font-size: 14px;
  margin-bottom: 18px;
  min-height: 40px;
}

.shop-item-price {
  font-size: 22px;
  margin-bottom: 20px;
}

/* Animated glow for owned items */
@keyframes ownedGlow {

  0%,
  100% {
    box-shadow:
      0 12px 35px rgba(0, 255, 136, 0.2),
      0 0 30px rgba(0, 255, 136, 0.1);
  }

  50% {
    box-shadow:
      0 12px 35px rgba(0, 255, 136, 0.35),
      0 0 40px rgba(0, 255, 136, 0.2);
  }
}

.shop-item-card.owned {
  animation: ownedGlow 3s ease-in-out infinite;
}

/* Better button styling */
.shop-item-buy-btn {
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.shop-item-buy-btn:hover {
  box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.shop-item-buy-btn:disabled {
  font-size: 13px;
}


/* Locker Screen Styles */
.locker-category-tabs {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 40px;
}

.locker-category-tab {
  padding: 16px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.locker-category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.locker-category-tab:hover::before {
  left: 100%;
}

.locker-category-tab:hover {
  border-color: rgba(255, 215, 0, 0.4);
  color: rgba(255, 215, 0, 0.9);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.locker-category-tab.active {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.15));
  border-color: rgba(255, 215, 0, 0.7);
  color: #FFD700;
  box-shadow:
    0 10px 30px rgba(255, 215, 0, 0.3),
    0 0 0 1px rgba(255, 215, 0, 0.2) inset;
}

.current-loadout {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.04));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 30px;
  margin: 0 40px 40px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.current-loadout h3 {
  position: absolute;
  top: -15px;
  left: 30px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.95), rgba(5, 10, 25, 0.95));
  padding: 8px 20px;
  border-radius: 8px;
  color: #FFD700;
  font-size: 18px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.current-loadout {
  position: relative;
}

.loadout-preview {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.9), rgba(5, 10, 25, 0.9));
  border: 3px solid rgba(255, 215, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.3),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  animation: loadoutRotate 20s linear infinite;
}

@keyframes loadoutRotate {
  0% {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.3),
      inset 0 0 20px rgba(255, 215, 0, 0.1);
  }

  50% {
    box-shadow:
      0 0 40px rgba(255, 215, 0, 0.5),
      inset 0 0 30px rgba(255, 215, 0, 0.2);
  }

  100% {
    box-shadow:
      0 0 30px rgba(255, 215, 0, 0.3),
      inset 0 0 20px rgba(255, 215, 0, 0.1);
  }
}

.loadout-preview canvas {
  width: 100%;
  height: 100%;
}

.loadout-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.loadout-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.loadout-item:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateX(5px);
}

.loadout-label {
  font-size: 16px;
  color: rgba(255, 215, 0, 0.8);
  font-weight: 600;
  min-width: 80px;
}

.loadout-value {
  font-size: 18px;
  color: #FFD700;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.locker-tab-content {
  padding: 0 40px;
  animation: fadeIn 0.4s ease;
}

.locker-tab-content.hidden {
  display: none;
}

.locker-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  scroll-behavior: smooth;
}

.locker-items-grid::-webkit-scrollbar {
  width: 10px;
}

.locker-items-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.locker-items-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.5);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.locker-items-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.7);
}

.locker-item-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 180, 0, 0.04));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.locker-item-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.15), transparent);
  transition: left 0.6s ease;
}

.locker-item-card:hover::before {
  left: 100%;
}

.locker-item-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow:
    0 12px 35px rgba(255, 215, 0, 0.25),
    0 0 30px rgba(255, 215, 0, 0.15);
}

.locker-item-card.equipped {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 200, 100, 0.08));
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow:
    0 8px 25px rgba(0, 255, 136, 0.3),
    0 0 20px rgba(0, 255, 136, 0.2);
}

.locker-item-card.equipped:hover {
  border-color: rgba(0, 255, 136, 0.7);
  box-shadow:
    0 12px 35px rgba(0, 255, 136, 0.4),
    0 0 30px rgba(0, 255, 136, 0.25);
}

.locker-item-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.7);
}

.locker-item-preview {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.8), rgba(5, 10, 25, 0.9));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.locker-item-card.equipped .locker-item-preview {
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow:
    0 0 25px rgba(0, 255, 136, 0.4),
    inset 0 0 20px rgba(0, 255, 136, 0.15);
}

.locker-item-preview canvas {
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent);
}

.locker-item-info {
  text-align: center;
  width: 100%;
}

.locker-item-name {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.locker-item-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.locker-item-card.equipped .locker-item-status {
  color: #00ff88;
  font-weight: bold;
}

.locker-equip-btn {
  width: 100%;
  padding: 14px 28px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.locker-equip-btn:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.locker-item-card.equipped .locker-equip-btn {
  background: linear-gradient(135deg, #00ff88, #00cc66);
  border-color: rgba(0, 255, 136, 0.6);
  color: #fff;
  cursor: default;
}

.locker-item-card.equipped .locker-equip-btn:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.locker-item-card.locked .locker-equip-btn {
  background: linear-gradient(135deg, #666, #555);
  border-color: rgba(120, 120, 120, 0.6);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

/* Friends Panel Styles */
.friends-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: 85%;
  max-height: 700px;
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.98), rgba(30, 35, 55, 0.98));
  border: 2px solid rgba(255, 20, 147, 0.5);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 20, 147, 0.3);
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  animation: slideInFriends 0.4s ease-out;
}

@keyframes slideInFriends {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.friends-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid rgba(255, 20, 147, 0.3);
  background: linear-gradient(90deg, rgba(255, 20, 147, 0.1), transparent);
}

.friends-title {
  font-size: 36px;
  font-weight: bold;
  color: #FF1493;
  text-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
  margin: 0;
}

.friends-close-btn {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  border: 2px solid rgba(255, 68, 68, 0.6);
  border-radius: 50%;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.friends-close-btn:hover {
  background: linear-gradient(135deg, #ff6666, #ff0000);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 68, 68, 0.6);
}

.friends-search-bar {
  display: flex;
  gap: 15px;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-search-input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 20, 147, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
}

.friends-search-input:focus {
  border-color: rgba(255, 20, 147, 0.7);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.3);
}

.friends-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.friends-add-btn {
  padding: 14px 30px;
  background: linear-gradient(135deg, #FF1493, #C71585);
  border: 2px solid rgba(255, 20, 147, 0.6);
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
}

.friends-add-btn:hover {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 20, 147, 0.5);
}

.friends-tabs {
  display: flex;
  gap: 10px;
  padding: 15px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-tab {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.friends-tab:hover {
  background: rgba(255, 20, 147, 0.2);
  border-color: rgba(255, 20, 147, 0.4);
  color: white;
}

.friends-tab.active {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.3), rgba(199, 21, 133, 0.3));
  border-color: rgba(255, 20, 147, 0.6);
  color: #FF1493;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.2);
}

.friends-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
}

.friends-list::-webkit-scrollbar {
  width: 10px;
}

.friends-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.friends-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FF1493, #C71585);
  border-radius: 10px;
}

.friends-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FF69B4, #FF1493);
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(30, 30, 50, 0.4));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.friend-card:hover {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(199, 21, 133, 0.15));
  border-color: rgba(255, 20, 147, 0.5);
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(255, 20, 147, 0.2);
}

.friend-avatar-container {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.friend-profile-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.friend-vehicle-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
}

.friend-info {
  flex: 1;
  min-width: 0;
}

.friend-name {
  font-size: 20px;
  font-weight: bold;
  color: white;
  margin-bottom: 4px;
}

.friend-level {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.friend-status {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-online {
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: #00ff88;
}

.status-offline {
  background: rgba(128, 128, 128, 0.2);
  border: 1px solid rgba(128, 128, 128, 0.5);
  color: #999;
}

.status-ingame {
  background: rgba(255, 165, 0, 0.2);
  border: 1px solid rgba(255, 165, 0, 0.5);
  color: #ffa500;
}

.friend-actions {
  display: flex;
  gap: 10px;
}

.friend-action-btn {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-action-btn:hover {
  transform: scale(1.15);
}

.invite-btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 204, 102, 0.3));
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.message-btn:hover {
  background: linear-gradient(135deg, rgba(0, 186, 255, 0.3), rgba(0, 150, 255, 0.3));
  border-color: rgba(0, 186, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 186, 255, 0.3);
}

.remove-btn:hover {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(204, 0, 0, 0.3));
  border-color: rgba(255, 68, 68, 0.6);
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.friends-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
}

/* Scroll Navigation Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.2), rgba(0, 180, 255, 0.15));
  border: 2px solid rgba(0, 247, 255, 0.4);
  border-radius: 50%;
  color: #00f7ff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-btn:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 180, 255, 0.25));
  border-color: rgba(0, 247, 255, 0.7);
  box-shadow: 0 8px 25px rgba(0, 247, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-btn-left {
  left: 10px;
}

.scroll-btn-right {
  right: 10px;
}

.scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Shop tab content positioning for scroll buttons */
.shop-tab-content {
  position: relative;
}

/* Custom checkbox styling for created maps filter */
.checkbox-container {
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid rgba(0, 247, 255, 0.6);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked {
    background: #00f7ff;
    border-color: #00f7ff;
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.checkbox-container input[type="checkbox"]:hover {
    border-color: #00f7ff;
    box-shadow: 0 0 5px rgba(0, 247, 255, 0.3);
}

.checkbox-container span {
    font-weight: 500;
    transition: color 0.3s ease;
}

.checkbox-container:hover span {
    color: #ffffff;
}

/* Game mode item selected state enhancement */
.game-mode-item.selected {
    border: 3px solid #00f7ff !important;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5) !important;
    transform: scale(1.02);
}

.game-mode-item.selected .game-mode-info {
    color: #00f7ff !important;
}

/* ============================================
   NEW SHOP GRID LAYOUT - Blue/Red/Yellow Theme
   ============================================ */

/* Override shop grid to use vertical layout - FULL SCREEN with overflow-auto */
#tanksItemsGrid.shop-items-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
  height: calc(100vh - 200px) !important;
  max-height: none !important;
  overflow: auto !important;
  padding: 30px !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  background: linear-gradient(180deg, rgba(15, 25, 50, 0.95), rgba(10, 15, 35, 0.98));
  scroll-behavior: smooth;
}

#tanksItemsGrid.shop-items-grid::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

#tanksItemsGrid.shop-items-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
}

#tanksItemsGrid.shop-items-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3498db, #f1c40f, #e74c3c);
  border-radius: 6px;
}

#tanksItemsGrid.shop-items-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5dade2, #f4d03f, #ec7063);
}

/* Color row container - overflow-x-auto */
.shop-color-row {
  display: flex;
  align-items: stretch;
  gap: 25px;
  padding: 20px 25px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.12), rgba(231, 76, 60, 0.12));
  border-radius: 16px;
  border: 2px solid rgba(241, 196, 15, 0.3);
  transition: all 0.3s ease;
  min-height: 350px;
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.shop-color-row:hover {
  border-color: rgba(241, 196, 15, 0.6);
  box-shadow: 0 8px 30px rgba(241, 196, 15, 0.15);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.18), rgba(231, 76, 60, 0.18));
}

/* Row label (color name) */
.shop-row-label {
  width: 80px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 15px currentColor;
  flex-shrink: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tank boxes container - overflow-x-auto */
.shop-boxes-container {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: flex-start;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 5px;
  scroll-behavior: smooth;
  min-width: 0;
}

.shop-boxes-container::-webkit-scrollbar {
  height: 8px;
}

.shop-boxes-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.shop-boxes-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #3498db, #e74c3c);
  border-radius: 4px;
}

/* Individual tank box */
.shop-tank-box {
  width: 200px;
  min-width: 200px;
  height: 300px;
  min-height: 300px;
  background: linear-gradient(145deg, rgba(25, 35, 55, 0.95), rgba(15, 25, 45, 0.98));
  border: 2px solid rgba(231, 76, 60, 0.4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 20px 15px;
  position: relative;
  flex-shrink: 0;
}

.shop-tank-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #f1c40f, #e74c3c);
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shop-tank-box:hover::before {
  opacity: 1;
}

.shop-tank-box:hover {
  transform: translateY(-5px);
  border-color: #f1c40f;
  box-shadow: 0 8px 25px rgba(241, 196, 15, 0.4);
}

.shop-tank-box.owned {
  border-color: rgba(52, 152, 219, 0.8);
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(10, 20, 40, 0.95));
}

.shop-tank-box.equipped {
  border-color: #f1c40f !important;
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(20, 30, 50, 0.95));
}

.shop-tank-box.equipped::after {
  content: '★';
  position: absolute;
  top: 5px;
  right: 5px;
  color: #f1c40f;
  font-size: 14px;
  text-shadow: 0 0 5px #f1c40f;
}

.shop-tank-box canvas {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
}

.shop-weapon-label {
  font-size: 24px;
  font-weight: bold;
  color: #ecf0f1;
  margin-top: 20px;
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

.shop-price-label {
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

/* Shop screen - FULL SCREEN layout */
#shopScreen {
  padding: 20px !important;
  display: flex;
  flex-direction: column;
}

#shopScreen .feature-header {
  padding: 10px 0 15px 0;
  margin-bottom: 10px;
}

#shopScreen .feature-header h1 {
  background: linear-gradient(135deg, #3498db, #f1c40f, #e74c3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  font-size: 36px;
  margin: 0;
}

#shopScreen .feature-header p {
  margin: 5px 0 0 0;
  font-size: 14px;
}

#shopScreen .shop-category-tabs {
  margin-bottom: 15px;
}

#shopScreen .shop-tab-content {
  flex: 1;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Category tabs with new colors */
#shopScreen .shop-category-tab {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
  border: 2px solid rgba(241, 196, 15, 0.3);
}

#shopScreen .shop-category-tab:hover {
  border-color: rgba(241, 196, 15, 0.6);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.2);
}

#shopScreen .shop-category-tab.active {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(231, 76, 60, 0.15));
  border-color: #f1c40f;
  color: #f1c40f;
}

/* Scrollbar styling */
#tanksItemsGrid::-webkit-scrollbar {
  width: 8px;
}

#tanksItemsGrid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#tanksItemsGrid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3498db, #e74c3c);
  border-radius: 4px;
}

#tanksItemsGrid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f1c40f, #e74c3c);
}


/* ============================================
   NEW FIGMA-STYLE SHOP LAYOUT
   ============================================ */

.new-shop-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 250px);
  padding: 0 80px;
}

.new-scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 36px;
  color: white;
  font-weight: bold;
}

.new-scroll-button:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.4);
}

.new-scroll-button-left {
  left: 10px;
}

.new-scroll-button-right {
  right: 10px;
}

.new-shop-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #1e293b;
}

.new-shop-scroll-container::-webkit-scrollbar {
  height: 10px;
}

.new-shop-scroll-container::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 5px;
}

.new-shop-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 5px;
}

.new-shop-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #8b5cf6, #f472b6);
}

.new-shop-grid {
  display: flex;
  gap: 30px;
  padding: 30px 20px;
  height: calc(100% - 20px);
}

.new-shop-item {
  min-width: 320px;
  max-width: 320px;
  height: 100%;
  background: #1e293b;
  border-radius: 20px;
  border: 3px solid;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.new-shop-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Rarity colors */
.new-shop-item.rarity-common {
  border-color: #6b7280;
}

.new-shop-item.rarity-rare {
  border-color: #3b82f6;
}

.new-shop-item.rarity-epic {
  border-color: #a855f7;
}

.new-shop-item.rarity-legendary {
  border-color: #eab308;
}

.new-shop-item.equipped {
  border-color: #10b981 !important;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.new-shop-item.owned:not(.equipped) {
  border-color: #06b6d4;
}

/* Rarity badge */
.new-rarity-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 18px;
  color: white;
}

.rarity-common .new-rarity-badge {
  background: linear-gradient(135deg, #4b5563, #374151);
}

.rarity-rare .new-rarity-badge {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.rarity-epic .new-rarity-badge {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
}

.rarity-legendary .new-rarity-badge {
  background: linear-gradient(135deg, #eab308, #ea580c);
}

/* Item image area */
.new-item-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 250px;
}

.rarity-common .new-item-image {
  background: linear-gradient(135deg, #4b5563, #374151);
}

.rarity-rare .new-item-image {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.rarity-epic .new-item-image {
  background: linear-gradient(135deg, #7e22ce, #581c87);
}

.rarity-legendary .new-item-image {
  background: linear-gradient(135deg, #b45309, #92400e);
}

.new-item-image canvas,
.new-item-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

/* Item info */
.new-item-info {
  padding: 20px;
  background: #1e293b;
}

.new-item-name {
  color: white;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.new-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.new-item-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.new-item-price .coin-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.new-item-price .price-text {
  color: #fbbf24;
  font-size: 24px;
  font-weight: bold;
}

.new-item-price .equipped-text {
  color: #10b981;
  font-size: 18px;
  font-weight: bold;
}

.new-item-price .owned-text {
  color: #06b6d4;
  font-size: 18px;
  font-weight: bold;
}

.new-item-price .free-text {
  color: #22c55e;
  font-size: 20px;
  font-weight: bold;
}

.new-buy-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 24px;
}

.new-buy-button:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.5);
}

.new-buy-button:active {
  background: linear-gradient(135deg, #10b981, #059669);
  transform: scale(1.2);
}

.new-shop-item.equipped .new-buy-button {
  background: linear-gradient(135deg, #10b981, #059669);
}

.new-shop-item.owned:not(.equipped) .new-buy-button {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* ============================================
   VEHICLE STAT ICONS - Damage, Health, Fire Rate
   ============================================ */

.vehicle-stats {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 0;
  justify-content: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
}

.stat-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.stat-value {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

/* Vertical stats - positioned left of vehicle image */
.vehicle-stats-vertical {
  position: absolute;
  left: 12px;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.stat-item-vertical {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  padding: 0;
}

.stat-icon-vertical {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.stat-value-vertical {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Locker stats styling */
.locker-vehicle-stats {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.locker-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.locker-stat-item > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.locker-stat-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.locker-stat-value {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.locker-stat-label {
  color: #aaa;
  font-size: 9px;
  text-transform: uppercase;
  line-height: 1;
}

/* Hide old shop elements when new shop is active */
#tanksTab .scroll-btn {
  display: none !important;
}


/* ============================================
   ENHANCED SHOP STYLES - Polished Version
   ============================================ */

.new-shop-item.purchased {
  opacity: 0.7;
  filter: grayscale(0.5);
}

.new-shop-item.purchased:hover {
  transform: translateY(-5px) scale(1);
}

.new-rarity-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  font-size: 18px;
  color: white;
}

.rarity-common .new-rarity-badge {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.95), rgba(55, 65, 81, 0.95));
}

.rarity-rare .new-rarity-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
}

.rarity-epic .new-rarity-badge {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.95), rgba(126, 34, 206, 0.95));
}

.rarity-legendary .new-rarity-badge {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.95), rgba(234, 88, 12, 0.95));
  animation: legendaryPulse 2s ease-in-out infinite;
}

@keyframes legendaryPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(234, 179, 8, 0.4); }
  50% { box-shadow: 0 4px 25px rgba(234, 179, 8, 0.8); }
}

.new-item-level {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
}

.new-item-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.new-purchased-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.new-purchased-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.new-item-info {
  padding: 25px;
  position: relative;
  z-index: 2;
  background: #1e293b;
}

.new-item-name {
  color: white;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.new-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.new-item-price {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  border-radius: 12px;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.new-item-price .coin-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

.new-item-price .price-text {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

.new-item-price .equipped-text {
  color: #10b981;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.new-item-price .owned-text {
  color: #06b6d4;
  font-size: 18px;
  font-weight: bold;
}

.new-item-price .free-text {
  color: #22c55e;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.new-buy-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 3px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  font-size: 24px;
}

.new-buy-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.new-buy-button:hover::before {
  width: 100%;
  height: 100%;
}

.new-buy-button:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.8), 0 8px 25px rgba(0, 0, 0, 0.4);
}

.new-buy-button:active {
  transform: scale(1.1) rotate(0deg);
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.8), 0 4px 15px rgba(0, 0, 0, 0.5);
}

.new-shop-item.equipped .new-buy-button {
  background: linear-gradient(135deg, #10b981, #059669);
  cursor: default;
}

.new-shop-item.equipped .new-buy-button:hover {
  transform: scale(1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), 0 4px 15px rgba(0, 0, 0, 0.3);
}

.new-shop-item.owned:not(.equipped) .new-buy-button {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* Sparkle effects for legendary items */
.new-shop-item.rarity-legendary::after {
  content: '✨';
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 30px;
  opacity: 0;
  pointer-events: none;
  animation: sparkleFloat 3s ease-in-out infinite;
}

@keyframes sparkleFloat {
  0%, 100% { 
    opacity: 0; 
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% { 
    opacity: 1; 
    transform: translate(-50%, -80%) scale(1);
  }
}

/* Enhanced hover glow for different rarities */
.new-shop-item.rarity-common:hover {
  box-shadow: 0 25px 50px rgba(107, 114, 128, 0.4);
}

.new-shop-item.rarity-rare:hover {
  box-shadow: 0 25px 50px rgba(59, 130, 246, 0.4);
}

.new-shop-item.rarity-epic:hover {
  box-shadow: 0 25px 50px rgba(168, 85, 247, 0.4);
}

.new-shop-item.rarity-legendary:hover {
  box-shadow: 0 25px 50px rgba(234, 179, 8, 0.5);
}


/* ============================================
   PERFORMANCE OPTIMIZATIONS FOR SHOP
   ============================================ */

/* Use GPU acceleration for smooth scrolling */
.new-shop-scroll-container {
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

.new-shop-grid {
  will-change: transform;
}

.new-shop-item {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduce animation complexity during scroll */
.new-shop-scroll-container:active .new-shop-item,
.new-shop-scroll-container:focus .new-shop-item {
  transition: none !important;
}

/* Optimize canvas rendering */
.new-item-image canvas {
  image-rendering: optimizeSpeed;
  will-change: contents;
}

/* Disable heavy effects on lower-end devices */
@media (prefers-reduced-motion: reduce) {
  .new-shop-item,
  .new-buy-button,
  .new-rarity-badge {
    transition: none !important;
    animation: none !important;
  }
  
  .new-shop-item:hover {
    transform: none !important;
  }
}

/* Simplify hover effects for better performance */
.new-shop-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-buy-button {
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Remove backdrop-filter on scroll for performance */
.new-shop-scroll-container.scrolling .new-rarity-badge {
  backdrop-filter: none;
}

.new-shop-scroll-container.scrolling .new-item-image canvas {
  filter: none;
}

/* ============================================
   VEHICLE TYPE SELECTION BUTTONS
   ============================================ */

.vehicle-type-buttons {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  z-index: 100;
  align-items: flex-end;
}

.vehicle-btn {
  padding: 18px 40px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 2px solid rgba(52, 152, 219, 0.5);
  border-bottom: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow: visible;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
}

.vehicle-btn:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(30, 41, 59, 0.95));
  border-color: rgba(52, 152, 219, 0.8);
  color: #ffffff;
  box-shadow: 0 -4px 30px rgba(52, 152, 219, 0.4);
}

.vehicle-btn.active {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-color: #3498db;
  color: #ffffff;
  box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
}

.vehicle-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f1c40f, #e74c3c, #f1c40f);
  animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* JET button - Left side skewed, right side straight */
.vehicle-btn-left {
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 0;
  padding-left: 50px;
}

.vehicle-btn-left:hover {
  transform: translateY(-5px);
}

/* TANK button - Center rectangle, no radius */
.vehicle-btn-middle {
  border-radius: 0;
  position: relative;
  z-index: 2;
}

.vehicle-btn-middle:hover {
  transform: translateY(-5px);
}

/* RACE button - Right side skewed, left side straight */
.vehicle-btn-right {
  clip-path: polygon(0% 0%, 80% 0%, 100% 100%, 0% 100%);
  border-radius: 0;
  padding-right: 50px;
}

.vehicle-btn-right:hover {
  transform: translateY(-5px);
}

.vehicle-btn-text {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vehicle-btn {
    padding: 14px 25px;
    font-size: 12px;
  }
}

/* ============================================
   CUSTOM GAME FONT STYLE - FIGMA DESIGN
   ============================================ */

.game-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 8rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    -3px -3px 0px #000,
    3px -3px 0px #000,
    -3px 3px 0px #000,
    3px 3px 0px #000,
    5px 5px 0px #FF6B00,
    7px 7px 0px #0055AA,
    9px 9px 0px #CC0000,
    10px 10px 0px #000;
  letter-spacing: 0.05em;
  transform: skewY(-2deg);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
  margin: 0;
  line-height: 1;
}

/* Smaller version for medium titles */
.game-title-medium {
  font-family: 'Luckiest Guy', cursive;
  font-size: 4rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    -2px -2px 0px #000,
    2px -2px 0px #000,
    -2px 2px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #FF6B00,
    4px 4px 0px #0055AA,
    5px 5px 0px #CC0000,
    6px 6px 0px #000;
  letter-spacing: 0.05em;
  transform: skewY(-2deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  margin: 0;
  line-height: 1;
}

/* Small version for UI elements */
.game-title-small {
  font-family: 'Luckiest Guy', cursive;
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000,
    2px 2px 0px #FF6B00,
    3px 3px 0px #0055AA,
    4px 4px 0px #CC0000;
  letter-spacing: 0.05em;
  transform: skewY(-2deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6));
  margin: 0;
  line-height: 1;
}

/* Apply to main game title */
.game-logo,
.game-title-main {
  font-family: 'Luckiest Guy', cursive;
  font-size: 4rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    -3px -3px 0px #000,
    3px -3px 0px #000,
    -3px 3px 0px #000,
    3px 3px 0px #000,
    5px 5px 0px #FF6B00,
    7px 7px 0px #0055AA,
    9px 9px 0px #CC0000,
    10px 10px 0px #000;
  letter-spacing: 0.05em;
  transform: skewY(-2deg);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  margin: 0;
  line-height: 1;
}

/* Apply to existing game elements */
#shopScreen .feature-header h1,
#lockerScreen .feature-header h1,
#settingsScreen .feature-header h1,
#passScreen .feature-header h1,
#friendsScreen .feature-header h1,
#createMapScreen .feature-header h1 {
  font-family: 'Luckiest Guy', cursive;
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    -2px -2px 0px #000,
    2px -2px 0px #000,
    -2px 2px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #FF6B00,
    4px 4px 0px #0055AA,
    5px 5px 0px #CC0000,
    6px 6px 0px #000;
  letter-spacing: 0.05em;
  transform: skewY(-2deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  margin: 0;
  line-height: 1;
}

/* Apply to lobby buttons */
.lobby-btn,
.btn,
button {
  border-radius: 12px;
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: skewY(-1deg);
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000;
}

/* Main game title in top left */
h1, .main-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 
    -2px -2px 0px #000,
    2px -2px 0px #000,
    -2px 2px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #FF6B00,
    4px 4px 0px #0055AA,
    5px 5px 0px #CC0000,
    6px 6px 0px #000;
  letter-spacing: 0.05em;
  transform: skewY(-2deg);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  margin: 0;
  line-height: 1;
}

/* Apply to vehicle buttons */
.vehicle-btn-text {
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000;
}

/* Apply to shop category tabs */
.shop-category-tab {
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000;
}

/* Apply to top navigation buttons */
.top-nav button,
.nav-btn,
.feature-btn {
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000;
}

/* Apply to main play button */
.play-btn,
#playButton,
.join-game-btn {
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000;
}

/* Apply to login/signup buttons */
.login-btn,
.signup-btn,
#loginBtn,
#signupBtn {
  font-family: 'Luckiest Guy', cursive;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000;
}

/* Apply to all buttons globally (with higher specificity) */
button:not(.no-game-font),
.btn:not(.no-game-font),
input[type="button"]:not(.no-game-font),
input[type="submit"]:not(.no-game-font) {
  font-family: 'Luckiest Guy', cursive !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Apply to feature buttons specifically */
.feature-btn,
.create-new-map-btn,
.feature-tab {
  border-radius: 12px;
}
.party-invite-btn,
.kick-party-btn,
.leave-party-btn {
  font-family: 'Luckiest Guy', cursive !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-shadow: 
    -1px -1px 0px #000,
    1px -1px 0px #000,
    -1px 1px 0px #000,
    1px 1px 0px #000 !important;
}

/* Apply to any text that might be rendered on canvas or dynamically */
.game-text,
.lobby-text,
.ui-text {
  font-family: 'Luckiest Guy', cursive !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  text-shadow: 
    -2px -2px 0px #000,
    2px -2px 0px #000,
    -2px 2px 0px #000,
    2px 2px 0px #000,
    3px 3px 0px #FF6B00,
    4px 4px 0px #0055AA,
    5px 5px 0px #CC0000,
    6px 6px 0px #000 !important;
  transform: skewY(-2deg) !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6)) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .game-title {
    font-size: 4rem;
  }
  
  .game-title-medium {
    font-size: 2.5rem;
  }
  
  .game-title-small {
    font-size: 1.5rem;
  }
  
  #shopScreen .feature-header h1,
  #lockerScreen .feature-header h1,
  #settingsScreen .feature-header h1,
  #passScreen .feature-header h1,
  #friendsScreen .feature-header h1,
  #createMapScreen .feature-header h1 {
    font-size: 2rem;
  }
}/* =======
=====================================
   NEW LOCKER DESIGN - FIGMA STYLE
   ============================================ */

.new-locker-container {
  height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  box-sizing: border-box;
}

/* Top Vehicle Selection Buttons */
.locker-vehicle-selection {
  position: relative;
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  margin-bottom: 3rem;
}

.locker-vehicle-btn {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Dynamic positioning based on data-position attribute */
.locker-vehicle-btn[data-position="center"] {
  left: 50%;
  transform: translateX(-50%) scale(1.1);
  z-index: 20;
  opacity: 1;
}

.locker-vehicle-btn[data-position="left"] {
  left: 15%;
  transform: scale(0.75);
  opacity: 0.6;
  z-index: 10;
}

.locker-vehicle-btn[data-position="right"] {
  left: 70%;
  transform: scale(0.75);
  opacity: 0.6;
  z-index: 10;
}

.locker-vehicle-text {
  font-size: 4rem !important;
  transition: opacity 0.3s ease;
}

.locker-vehicle-btn:not(.active) .locker-vehicle-text {
  opacity: 0.7;
}

/* Main Content Layout */
.locker-main-content {
  display: flex;
  gap: 2rem;
  flex: 1;
}

/* Main Preview Box */
.locker-preview-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.locker-scroll-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
  border: 3px solid #a855f7;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.locker-scroll-btn:hover {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.7);
}

.locker-preview-box {
  background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
  border-radius: 1rem;
  padding: 2rem;
  border: 4px solid #a855f7;
  box-shadow: 0 25px 50px rgba(168, 85, 247, 0.5);
  height: 28rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.locker-item-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.locker-item-status.selected {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: 2px solid #10b981;
}

.locker-item-status.owned {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: 2px solid #3b82f6;
}

.locker-item-status.locked {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
  border: 2px solid #6b7280;
}

#lockerVehiclePreview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.locker-preview-label {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.locker-preview-label .fortnite-text {
  font-size: 3rem !important;
}

/* Right Sidebar */
.locker-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 16rem;
}

/* Customization Options */
.locker-customization-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.locker-option-btn {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  border: 2px solid #a855f7;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.5);
}

.locker-option-btn:hover {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.7);
}

.locker-option-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
}

.locker-option-text {
  font-size: 1.5rem !important;
}

/* Select Button */
.locker-select-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 3px solid #10b981;
  border-radius: 0.5rem;
  padding: 1.2rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
  margin-top: auto;
}

.locker-select-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7);
}

.locker-select-btn .fortnite-text {
  font-size: 1.8rem !important;
}

.locker-select-btn.selected {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  border-color: #6b7280;
  cursor: default;
}

.locker-select-btn.selected:hover {
  transform: none;
}

/* Upgrade System */
.locker-upgrade-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.locker-upgrade-btn {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border: 2px solid #10b981;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.locker-upgrade-btn:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.7);
}

.locker-upgrade-text {
  font-size: 1.5rem !important;
}

/* Upgrade Bars */
.locker-upgrade-bars {
  display: flex;
  gap: 0.25rem;
}

.locker-upgrade-bar {
  flex: 1;
  height: 2rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.locker-upgrade-bar.filled {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.locker-upgrade-bar.empty {
  background: #374151;
  border: 2px solid #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
  .new-locker-container {
    padding: 1rem;
    gap: 1.5rem;
    height: 100vh;
    overflow-y: auto;
  }
  
  .locker-main-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .locker-sidebar {
    width: 100%;
    flex-direction: row;
    gap: 1rem;
  }
  
  .locker-customization-options,
  .locker-upgrade-section {
    flex: 1;
  }
  
  .locker-vehicle-text {
    font-size: 2.5rem !important;
  }
  
  .locker-preview-label .fortnite-text {
    font-size: 2rem !important;
  }
  
  .locker-preview-box {
    height: 20rem;
  }
  
  .locker-vehicle-selection {
    height: 6rem;
    margin-bottom: 1rem;
  }
}/* Vehicle
 Selection Buttons in Lobby */
/* Vehicle buttons edge positioning - see main definition above */
.vehicle-btn-text {
  font-size: 14px;
  font-weight: bold;
}

/* ============================================
   FRIENDS SCREEN STYLES - DARK BLUE THEME
   ============================================ */

#friendsScreen {
  background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0d1f3c 100%);
}

/* Search Box */
.friends-search-box {
  max-width: 400px;
  margin: 0 auto 25px;
}

.friends-search-input {
  width: 100%;
  padding: 12px 20px;
  background: rgba(10, 30, 60, 0.8);
  border: 2px solid rgba(74, 158, 255, 0.3);
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
}

.friends-search-input:focus {
  border-color: #4a9eff;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.friends-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Navigation Tabs */
.friends-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.friends-tab {
  padding: 12px 30px;
  background: rgba(10, 30, 60, 0.6);
  border: 2px solid rgba(74, 158, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.friends-tab:hover {
  background: rgba(74, 158, 255, 0.2);
  border-color: rgba(74, 158, 255, 0.6);
  color: #fff;
}

.friends-tab.active {
  background: linear-gradient(135deg, #4a9eff, #2563eb);
  border-color: #4a9eff;
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
}

/* Friends Content */
.friends-content {
  max-width: 700px;
  margin: 0 auto;
  max-height: 450px;
  overflow-y: auto;
  padding: 0 20px;
}

.friends-content::-webkit-scrollbar {
  width: 6px;
}

.friends-content::-webkit-scrollbar-track {
  background: rgba(10, 30, 60, 0.5);
  border-radius: 3px;
}

.friends-content::-webkit-scrollbar-thumb {
  background: rgba(74, 158, 255, 0.5);
  border-radius: 3px;
}

.friends-tab-content {
  animation: fadeIn 0.3s ease;
}

.friends-tab-content.hidden {
  display: none;
}

/* Friends List */
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Friend Card */
.friend-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  background: rgba(15, 35, 70, 0.8);
  border: 1px solid rgba(74, 158, 255, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.friend-card:hover {
  background: rgba(74, 158, 255, 0.15);
  border-color: rgba(74, 158, 255, 0.5);
  transform: translateY(-2px);
}

.friend-card.request {
  border-color: rgba(255, 193, 7, 0.4);
}

/* Avatar */
.friend-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4a9eff, #2563eb);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

/* Friend Info */
.friend-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.friend-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.friend-status {
  font-size: 12px;
  color: #6b7c93;
}

.friend-status.online {
  color: #22c55e;
}

.friend-status.in-game {
  color: #f59e0b;
}

.friend-status.offline {
  color: #6b7c93;
}

/* Friend Actions */
.friend-actions {
  display: flex;
  gap: 8px;
}

.friend-action-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.friend-action-btn.invite {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.friend-action-btn.invite:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.friend-action-btn.message {
  background: rgba(74, 158, 255, 0.2);
  border: 1px solid rgba(74, 158, 255, 0.5);
  color: #4a9eff;
}

.friend-action-btn.message:hover {
  background: rgba(74, 158, 255, 0.35);
  transform: scale(1.05);
}

.friend-action-btn.spectate {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

.friend-action-btn.spectate:hover {
  background: rgba(245, 158, 11, 0.35);
  transform: scale(1.05);
}

.friend-action-btn.accept {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.friend-action-btn.accept:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.friend-action-btn.decline {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.friend-action-btn.decline:hover {
  background: rgba(239, 68, 68, 0.35);
  transform: scale(1.05);
}

/* Empty State */
.friends-empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7c93;
}

.friend-action-btn.profile {
  background: rgba(147, 112, 219, 0.15);
  border: 1px solid rgba(147, 112, 219, 0.4);
  color: #9370db;
}

.friend-action-btn.profile:hover {
  background: rgba(147, 112, 219, 0.25);
}

.friend-action-btn.remove {
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ff6464;
}

.friend-action-btn.remove:hover {
  background: rgba(255, 100, 100, 0.25);
}

.friend-action-btn.accept {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: #fff;
}

.friend-action-btn.accept:hover {
  transform: scale(1.05);
}

.friend-action-btn.decline {
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ff6464;
}

.friend-action-btn.decline:hover {
  background: rgba(255, 100, 100, 0.25);
}

.friend-action-btn.block {
  background: rgba(100, 100, 100, 0.15);
  border: 1px solid rgba(100, 100, 100, 0.4);
  color: #888;
}

.friend-action-btn.block:hover {
  background: rgba(100, 100, 100, 0.25);
}

/* Empty State */
.friends-empty-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Add Friend Tab */
.add-friend-container {
  text-align: center;
  padding: 50px 30px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 2px solid rgba(255, 105, 180, 0.15);
}

.add-friend-container h3 {
  font-size: 24px;
  color: #ff69b4;
  margin-bottom: 10px;
}

.add-friend-container p {
  color: #888;
  margin-bottom: 25px;
  font-size: 14px;
}

.add-friend-input-group {
  display: flex;
  gap: 12px;
  max-width: 450px;
  margin: 0 auto;
}

.add-friend-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.add-friend-input:focus {
  border-color: #ff69b4;
}

.add-friend-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.add-friend-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

/* ============================================
   PASS SCREEN STYLES
   ============================================ */

#passScreen .feature-header h1 {
  background: linear-gradient(135deg, #ffa500 0%, #ff6600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pass-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 40px;
}

.coming-soon-icon {
  font-size: 120px;
  margin-bottom: 30px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.coming-soon-title {
  font-size: 72px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffa500 0%, #ff6600 50%, #ffa500 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 5px;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.coming-soon-text {
  font-size: 24px;
  color: #ffa500;
  margin-bottom: 15px;
}

.coming-soon-subtext {
  font-size: 16px;
  color: #888;
  max-width: 400px;
}

/* Notification animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Shop item improvements */
.shop-item-card {
    min-width: 200px;
    margin-right: 20px;
}

.fortz-icon-small {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

/* Ensure shop is visible when opened */
#shopScreen.feature-screen {
    display: flex;
    flex-direction: column;
}

#shopScreen.feature-screen.hidden {
    display: none;
}/* Sh
op category switching fixes */
#shopScreen .shop-tab-content {
    display: none;
}

#shopScreen .shop-tab-content:not(.hidden) {
    display: block !important;
    visibility: visible !important;
}

/* Ensure shop tabs are properly positioned */
#tanksTab, #jetsTab, #raceTab, #musicTab {
    width: 100%;
    min-height: 300px;
}

/* Debug styles for shop tabs */
.shop-tab-content[style*="display: block"] {
    display: block !important;
}

/* Ensure Figma shop items are visible */
.figma-items-container {
    min-height: 400px;
    background: rgba(255, 255, 255, 0.05); /* Slight background to see the area */
}

.figma-items-scroll {
    min-height: 350px;
    padding: 20px 0;
}

/* Force visibility for shop items */
.figma-shop-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1;
    transition: all 0.5s ease;
}

/* Shop item price styling */
.figma-shop-item-price.owned {
    color: #22c55e !important;
    font-weight: bold;
}

.figma-shop-item-price.free {
    color: #4ade80 !important;
    font-weight: bold;
}

.figma-shop-item-price.paid {
    color: #fbbf24 !important;
    font-weight: bold;
}

/* Fallback item styling */
.shop-item-fallback {
    transition: opacity 0.3s ease;
}

/* Ensure proper spacing between items */
.figma-shop-item:not(:last-child) {
    margin-right: 48px;
}/* I
mport Google Font */
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

/* Figma Shop Styles */
.figma-shop-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #581c87 0%, #312e81 50%, #1e3a8a 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1000;
    font-family: 'Luckiest Guy', cursive !important;
    letter-spacing: 2px;
}

.figma-shop-screen.hidden {
    display: none;
}

.figma-shop-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(239, 68, 68, 0.8);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
}

.figma-shop-close:hover {
    background: rgba(239, 68, 68, 1);
    transform: scale(1.1);
}

.figma-shop-container {
    width: 100%;
    height: 100%;
    max-width: 1800px;
    display: flex;
    flex-direction: column;
}

/* Header with Category Buttons */
.figma-shop-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

/* Category Button Base Styles */
.figma-category-btn {
    padding: 32px 80px;
    font-size: 48px;
    font-family: 'Luckiest Guy', cursive !important;
    letter-spacing: 2px;
    border: 10px solid;
    cursor: pointer;
    transition: all 0.5s ease;
    color: white;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.figma-category-btn:hover {
    transform: scale(1.25);
}

/* Music Button - Skewed */
.music-wrapper {
    position: relative;
    border: 10px solid #facc15;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 0 50px rgba(251, 146, 60, 0.8);
    transition: all 0.5s ease;
}

.music-wrapper:hover {
    transform: scale(1.25) rotate(-2deg);
}

.music-wrapper.active {
    border-color: #84cc16;
    box-shadow: 0 0 50px rgba(132, 204, 22, 0.8);
    animation: glow 2s infinite;
}

.music-btn {
    background: linear-gradient(135deg, #facc15 0%, #f97316 50%, #ea580c 100%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    border: none;
    width: 100%;
    height: 100%;
}

.music-btn.active {
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 50%, #15803d 100%);
    animation: pulse 2s infinite;
}

.figma-category-content {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 32px;
}

/* Tanks Button - No Skew */
.tanks-btn {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #1d4ed8 100%);
    border-color: #22d3ee;
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.8);
}

.tanks-btn:hover {
    transform: scale(1.25) rotate(3deg);
}

.tanks-btn.active {
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 50%, #15803d 100%);
    border-color: #84cc16;
    box-shadow: 0 0 50px rgba(132, 204, 22, 0.8);
    animation: glow 2s infinite, pulse 2s infinite;
}

/* Jets Button - No Skew */
.jets-btn {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #1d4ed8 100%);
    border-color: #22d3ee;
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.8);
}

.jets-btn:hover {
    transform: scale(1.25) rotate(3deg);
}

.jets-btn.active {
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 50%, #15803d 100%);
    border-color: #84cc16;
    box-shadow: 0 0 50px rgba(132, 204, 22, 0.8);
    animation: glow 2s infinite, pulse 2s infinite;
}

/* Cars Button - Skewed */
.cars-wrapper {
    position: relative;
    border: 10px solid #22d3ee;
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.8);
    transition: all 0.5s ease;
}

.cars-wrapper:hover {
    transform: scale(1.25) rotate(2deg);
}

.cars-wrapper.active {
    border-color: #84cc16;
    box-shadow: 0 0 50px rgba(132, 204, 22, 0.8);
    animation: glow 2s infinite;
}

.cars-btn {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #1d4ed8 100%);
    clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 0% 100%);
    border: none;
    width: 100%;
    height: 100%;
}

.cars-btn.active {
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 50%, #15803d 100%);
    animation: pulse 2s infinite;
}

/* Shop Main Container */
.figma-shop-main {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #312e81 100%);
    padding: 48px;
    border: 12px solid #facc15;
    box-shadow: 0 0 80px rgba(250, 204, 21, 0.6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.figma-shop-title {
    font-size: 32px;
    text-align: center;
    color: #fde047;
    margin-bottom: 32px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.9);
    animation: float 3s ease-in-out infinite;
    font-family: 'Luckiest Guy', cursive !important;
    letter-spacing: 2px;
}

/* Scroll Buttons */
.figma-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #be185d 100%);
    padding: 32px;
    border: 10px solid #f9a8d4;
    box-shadow: 0 0 50px rgba(244, 114, 182, 0.8);
    color: white;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.7s ease;
}

.figma-scroll-left {
    left: 24px;
}

.figma-scroll-right {
    right: 24px;
}

.figma-scroll-btn:hover {
    transform: translateY(-50%) scale(1.5) rotate(360deg);
}

/* Items Container */
.figma-items-container {
    overflow: hidden;
    padding: 0 96px;
    flex: 1;
    display: flex;
    align-items: center;
}

.figma-items-scroll {
    display: flex;
    gap: 48px;
    transition: transform 0.7s ease-out;
    transform: translateX(0px);
}

/* Shop Items */
.figma-shop-item {
    background: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #ec4899 100%);
    border: 10px solid #c084fc;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.8);
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.figma-shop-item:hover {
    box-shadow: 0 0 100px rgba(232, 121, 249, 1);
    transform: scale(1.25) rotate(6deg);
}

.figma-shop-item-image {
    width: 200px;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.figma-shop-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.figma-shop-item-info {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-family: 'Luckiest Guy', cursive !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.figma-shop-item-name {
    font-size: 16px;
    margin-bottom: 5px;
}

.figma-shop-item-price {
    font-size: 14px;
    color: #fde047;
}

/* Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px currentColor; 
    }
    50% { 
        box-shadow: 0 0 40px currentColor, 0 0 60px currentColor; 
    }
}

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

/* Float animation for items */
.figma-shop-item:nth-child(1) { animation: float 3s ease-in-out infinite; }
.figma-shop-item:nth-child(2) { animation: float 4s ease-in-out infinite 0.2s; }
.figma-shop-item:nth-child(3) { animation: float 5s ease-in-out infinite 0.4s; }
.figma-shop-item:nth-child(4) { animation: float 3s ease-in-out infinite 0.6s; }
.figma-shop-item:nth-child(5) { animation: float 4s ease-in-out infinite 0.8s; }
.figma-shop-item:nth-child(6) { animation: float 5s ease-in-out infinite 1s; }
.figma-shop-item:nth-child(7) { animation: float 3s ease-in-out infinite 1.2s; }
.figma-shop-item:nth-child(8) { animation: float 4s ease-in-out infinite 1.4s; }
.figma-shop-item:nth-child(9) { animation: float 5s ease-in-out infinite 1.6s; }
.figma-shop-item:nth-child(10) { animation: float 3s ease-in-out infinite 1.8s; }/* E
dit Mode Button */
.edit-mode-btn {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center top;
  width: 120px;
  height: 60px;
  background: linear-gradient(180deg, rgba(100, 150, 255, 0.9), rgba(60, 100, 200, 0.9));
  border: 2px solid rgba(60, 100, 200, 0.8);
  border-top: none;
  border-radius: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding-top: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: 102;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

.edit-mode-btn:hover {
  background: linear-gradient(180deg, rgba(120, 180, 255, 0.9), rgba(80, 140, 220, 0.9));
  border-color: #78b4ff;
  color: #78b4ff;
  box-shadow:
    0 8px 25px rgba(120, 180, 255, 0.6),
    0 0 0 1px rgba(120, 180, 255, 0.2) inset;
  transform: translateX(-50%) scale(1.05);
}

.edit-mode-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow:
    0 4px 15px rgba(120, 180, 255, 0.4),
    0 0 0 1px rgba(120, 180, 255, 0.2) inset;
}

/* Edit mode active state */
.edit-mode-btn.active {
  background: linear-gradient(180deg, rgba(255, 140, 60, 0.9), rgba(220, 100, 40, 0.9));
  border-color: rgba(220, 100, 40, 0.8);
  color: #ffaa44;
}

.edit-mode-btn.active:hover {
  background: linear-gradient(180deg, rgba(255, 160, 80, 0.9), rgba(240, 120, 60, 0.9));
  border-color: #ffaa44;
  color: #ffcc66;
  box-shadow:
    0 8px 25px rgba(255, 140, 60, 0.6),
    0 0 0 1px rgba(255, 140, 60, 0.2) inset;
}/* Ed
it Mode Button - Always looks like hover state */
.edit-mode-btn {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: center top;
  width: 120px;
  height: 60px;
  background: linear-gradient(180deg, rgba(120, 180, 255, 0.9), rgba(80, 140, 220, 0.9));
  border: 2px solid #78b4ff;
  border-top: none;
  border-radius: 0;
  color: #78b4ff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding-top: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 25px rgba(120, 180, 255, 0.6),
    0 0 0 1px rgba(120, 180, 255, 0.2) inset;
  z-index: 102;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
}

.edit-mode-btn:hover {
  background: linear-gradient(180deg, rgba(140, 200, 255, 0.95), rgba(100, 160, 240, 0.95));
  border-color: #8cc4ff;
  color: #8cc4ff;
  box-shadow:
    0 10px 30px rgba(140, 200, 255, 0.7),
    0 0 0 1px rgba(140, 200, 255, 0.3) inset;
  transform: translateX(-50%) scale(1.05);
}

.edit-mode-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow:
    0 4px 15px rgba(120, 180, 255, 0.4),
    0 0 0 1px rgba(120, 180, 255, 0.2) inset;
}

/* Edit mode active state - orange when editing */
.edit-mode-btn.active {
  background: linear-gradient(180deg, rgba(255, 160, 80, 0.9), rgba(240, 120, 60, 0.9));
  border-color: #ffaa44;
  color: #ffcc66;
  box-shadow:
    0 8px 25px rgba(255, 140, 60, 0.6),
    0 0 0 1px rgba(255, 140, 60, 0.2) inset;
}

.edit-mode-btn.active:hover {
  background: linear-gradient(180deg, rgba(255, 180, 100, 0.95), rgba(255, 140, 80, 0.95));
  border-color: #ffcc66;
  color: #ffdd88;
  box-shadow:
    0 10px 30px rgba(255, 160, 80, 0.7),
    0 0 0 1px rgba(255, 160, 80, 0.3) inset;
  transform: translateX(-50%) scale(1.05);
}
/* Edit
 Mode Button - Positioned horizontally at top-left center */
.edit-mode-btn {
  position: fixed;
  top: 20px;
  left: 40%;
  transform: translateX(-50%);
  transform-origin: center center;
  width: 120px;
  height: 50px;
  background: linear-gradient(180deg, rgba(120, 180, 255, 0.9), rgba(80, 140, 220, 0.9));
  border: 2px solid #78b4ff;
  border-radius: 0;
  color: #78b4ff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 25px rgba(120, 180, 255, 0.6),
    0 0 0 1px rgba(120, 180, 255, 0.2) inset;
  z-index: 102;
  backdrop-filter: blur(10px);
  letter-spacing: 1px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.edit-mode-btn:hover {
  background: linear-gradient(180deg, rgba(140, 200, 255, 0.95), rgba(100, 160, 240, 0.95));
  border-color: #8cc4ff;
  color: #8cc4ff;
  box-shadow:
    0 10px 30px rgba(140, 200, 255, 0.7),
    0 0 0 1px rgba(140, 200, 255, 0.3) inset;
  transform: translateX(-50%) scale(1.05);
}

.edit-mode-btn:active {
  transform: translateX(-50%) scale(0.95);
  box-shadow:
    0 4px 15px rgba(120, 180, 255, 0.4),
    0 0 0 1px rgba(120, 180, 255, 0.2) inset;
}

/* Edit mode active state - orange when editing */
.edit-mode-btn.active {
  background: linear-gradient(180deg, rgba(255, 160, 80, 0.9), rgba(240, 120, 60, 0.9));
  border-color: #ffaa44;
  color: #ffcc66;
  box-shadow:
    0 8px 25px rgba(255, 140, 60, 0.6),
    0 0 0 1px rgba(255, 140, 60, 0.2) inset;
}

.edit-mode-btn.active:hover {
  background: linear-gradient(180deg, rgba(255, 180, 100, 0.95), rgba(255, 140, 80, 0.95));
  border-color: #ffcc66;
  color: #ffdd88;
  box-shadow:
    0 10px 30px rgba(255, 160, 80, 0.7),
    0 0 0 1px rgba(255, 160, 80, 0.3) inset;
  transform: translateX(-50%) scale(1.05);
}
/* Coming Soon Screen Styles */
.coming-soon-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: comingSoonFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coming-soon-container {
    text-align: center;
    padding: 60px 80px;
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.15), rgba(0, 200, 220, 0.08));
    border: 3px solid rgba(0, 247, 255, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 247, 255, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.8);
    animation: comingSoonScale 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards;
}

.coming-soon-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 5rem;
    color: #00f7ff;
    text-shadow: 0 0 30px rgba(0, 247, 255, 0.8),
                 0 0 60px rgba(0, 247, 255, 0.4),
                 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    animation: comingSoonGlow 2s ease-in-out infinite alternate;
    letter-spacing: 3px;
}

.coming-soon-subtitle {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    letter-spacing: 1px;
}

/* Disabled Vehicle Buttons - Clean fixes */
.vehicle-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(50%);
    transition: all 0.3s ease;
    /* pointer-events: none; <- removed so tooltips/hover info still works */
}

.vehicle-btn.disabled:hover {
    opacity: 0.8;
    filter: grayscale(30%);
    transform: translateY(-2px);
}

.vehicle-btn.disabled .vehicle-btn-text {
    color: rgba(255, 255, 255, 0.5);
}

/* Basic fixes: responsive canvas container */
#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Coming Soon Notification */
.coming-soon-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.25), rgba(0, 200, 220, 0.15));
    border: 3px solid rgba(0, 247, 255, 0.7);
    border-radius: 20px;
    padding: 40px 60px;
    text-align: center;
    z-index: 2000;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 247, 255, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: notificationBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.coming-soon-notification h2 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3rem;
    color: #00f7ff;
    text-shadow: 0 0 25px rgba(0, 247, 255, 0.8),
                 0 0 50px rgba(0, 247, 255, 0.4),
                 0 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: comingSoonGlow 2s ease-in-out infinite alternate;
    letter-spacing: 2px;
}

.coming-soon-notification p {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}
/* Hover Tooltip Styles */
.hover-tooltip {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 247, 255, 0.9), rgba(0, 200, 220, 0.8));
    color: #000;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Luckiest Guy', cursive;
    font-size: 14px;
    letter-spacing: 1px;
    z-index: 3000;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 247, 255, 0.4);
    animation: tooltipFadeIn 0.2s ease-out;
    transform: translateY(-10px);
}

.hover-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: rgba(0, 247, 255, 0.9);
}

/* Enhanced Animations */
@keyframes comingSoonFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

@keyframes comingSoonScale {
    from {
        transform: scale(0.8);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes comingSoonGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 247, 255, 0.6),
                     0 0 40px rgba(0, 247, 255, 0.3),
                     0 4px 8px rgba(0, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 40px rgba(0, 247, 255, 1),
                     0 0 80px rgba(0, 247, 255, 0.6),
                     0 4px 8px rgba(0, 0, 0, 0.5);
    }
}

@keyframes notificationBounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-10px);
    }
}

@keyframes notificationFadeOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

/* ===== CHAMPIONS SCREEN STYLES ===== */
.champions-container {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.98), rgba(30, 35, 55, 0.98));
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 60px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  background-size: 400% 400%;
  animation: championsBgMove 20s ease infinite;
  padding: 2rem;
  font-family: 'Luckiest Guy', cursive;
  display: flex;
  flex-direction: column;
}

@keyframes championsBgMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.champions-header {
  text-align: center;
  margin-bottom: 3rem;
}

.champions-divider {
  width: 8rem;
  margin: 0 auto 1.5rem;
  border: none;
  height: 4px;
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.champions-title {
  font-size: 4.5rem;
  background: linear-gradient(90deg, #fbbf24, #f97316, #dc2626);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
  letter-spacing: 0.1em;
}

.champions-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(88, 28, 135, 0.7), rgba(30, 41, 59, 0.9));
  padding: 0.75rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
  border-radius: 0;
  width: 80%; /* 20% smaller */
  margin-left: auto;
  margin-right: auto;
}

.champions-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem;
  background: rgba(51, 65, 85, 0.5);
  border: none;
  color: #9ca3af;
  font-size: 1rem;
  font-weight: bold;
  font-family: 'Luckiest Guy', cursive;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.champions-tab:hover {
  background: rgba(51, 65, 85, 0.8);
  color: white;
  transform: none;
}

.champions-tab.active {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
  transform: none;
}

.champions-tab i {
  font-size: 1rem;
}

.champions-content {
  background: rgba(30, 41, 59, 0.7);
  padding: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  flex: 1;
  overflow-y: auto;
  border-radius: 0;
  width: 80%; /* 20% smaller */
  margin-left: auto;
  margin-right: auto;
}

.champions-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(75, 85, 99, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.3s ease forwards;
  border-radius: 0;
}

.leaderboard-entry:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.leaderboard-entry.rank-1 {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.leaderboard-entry.rank-2 {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.4), rgba(107, 114, 128, 0.4));
  border-color: rgba(156, 163, 175, 0.7);
  box-shadow: 0 0 20px rgba(156, 163, 175, 0.3);
}

.leaderboard-entry.rank-3 {
  background: linear-gradient(135deg, rgba(194, 120, 3, 0.2), rgba(146, 64, 14, 0.2));
  border-color: rgba(194, 120, 3, 0.5);
  box-shadow: 0 0 20px rgba(194, 120, 3, 0.3);
}

.entry-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 0;
}

.entry-rank.rank-1 i {
  color: #fbbf24;
  font-size: 1.6rem;
}

.entry-rank:not(.rank-1) {
  font-size: 1.5rem;
  color: #9ca3af;
  font-weight: bold;
}

.entry-name {
  flex: 1;
}

.entry-name h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Luckiest Guy', cursive;
}

.entry-name.top-3 h3 {
  font-size: 1.875rem;
}

.entry-award {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-top: 0.5rem;
}

.entry-score {
  text-align: right;
}

.score-value {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.score-label {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Player Profile Modal */
.player-profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-profile-modal.hidden {
  display: none;
}

.profile-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.profile-container {
  position: relative;
  width: 56rem;
  max-width: 90vw;
  background: rgba(30, 41, 59, 0.95);
  border: 2px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 25px 50px rgba(168, 85, 247, 0.3);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  animation: scaleIn 0.3s ease;
  border-radius: 0;
}

.profile-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(51, 65, 85, 1);
  color: #9ca3af;
  border: none;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.profile-close-btn:hover {
  color: white;
  background: rgba(75, 85, 99, 1);
  transform: scale(1.1);
}

.profile-content {
  display: flex;
  gap: 1.5rem;
}

.profile-left {
  width: 20rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 1.5rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 0;
}

.profile-avatar {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: 2px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.avatar-rank i {
  font-size: 3rem;
  color: #fbbf24;
}

.profile-name {
  font-size: 1.875rem;
  color: white;
  text-align: center;
  font-family: 'Luckiest Guy', cursive;
}

.profile-score {
  text-align: center;
}

.profile-score .score-value {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

.profile-score .score-label {
  font-size: 0.875rem;
  color: #9ca3af;
}

.add-friend-btn {
  width: 100%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
  border-radius: 0;
}

.add-friend-btn:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(5, 150, 105, 0.4);
}

.profile-right {
  flex: 1;
}

.stats-categories {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stats-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(51, 65, 85, 0.5);
  border: none;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  border-radius: 0;
}

.stats-category:hover {
  background: rgba(51, 65, 85, 0.8);
  color: white;
}

.stats-category.active {
  color: white;
}

.stats-category[data-category="eliminations"].active {
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.stats-category[data-category="battletime"].active {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.stats-category[data-category="glory"].active {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
}

.stats-display {
  background: rgba(15, 23, 42, 0.5);
  padding: 1.5rem;
  border: 1px solid rgba(75, 85, 99, 0.5);
  border-radius: 0;
}

.stat-item {
  background: rgba(30, 41, 59, 0.6);
  padding: 1rem;
  border-left: 4px solid #7c3aed;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}

.stat-item:last-child {
  margin-bottom: 0;
}

.stat-title {
  color: #9ca3af;
  font-size: 1.125rem;
  font-weight: 600;
}

.stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Custom Scrollbar for Champions */
.champions-content::-webkit-scrollbar {
  width: 12px;
}

.champions-content::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-left: 2px solid rgba(168, 85, 247, 0.2);
}

.champions-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #ec4899 100%);
  border-radius: 0;
}

.champions-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #f472b6 100%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .champions-container {
    padding: 1rem;
  }
  
  .champions-title {
    font-size: 3rem;
  }
  
  .champions-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .champions-tab {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .profile-content {
    flex-direction: column;
  }
  
  .profile-left {
    width: 100%;
  }
  
  .stats-categories {
    flex-direction: column;
  }
  
  .leaderboard-entry {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .entry-score {
    text-align: center;
  }
}

/* Tank Canvas Rotation and Animation - Updated */
#vehiclePreviewCanvas {
  transform-origin: 50% 50%;
  transform: rotate(180deg);
  animation: tankSway 3s ease-in-out infinite;
}

@keyframes tankSway {
  0%, 100% {
    transform: rotate(140deg); /* 180 - 40 = 140 degrees */
  }
  50% {
    transform: rotate(220deg); /* 180 + 40 = 220 degrees */
  }
}

@keyframes tankSway {
  0%, 100% {
    transform: rotate(140deg); /* 180 - 40 = 140 degrees */
  }
  50% {
    transform: rotate(220deg); /* 180 + 40 = 220 degrees */
  }
}
  0%, 100% {
    transform: rotate(140deg); /* 180 - 40 = 140 degrees */
  }
  50% {
    transform: rotate(220deg); /* 180 + 40 = 220 degrees */
  }
}/* Lobby Box Styles for Tank Positioning */
.lobby-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-box canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Override for tank canvases to include rotation */
#playerTankCanvas,
#partyTank1Canvas,
#partyTank2Canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
  transform-origin: center center;
  animation: tankSway 12s ease-in-out infinite;
}

/* Update animation to work with the new transform */
@keyframes tankSway {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1.1) rotate(140deg); /* 180 - 40 = 140 degrees */
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1) rotate(220deg); /* 180 + 40 = 220 degrees */
  }
}
/* F
eature Screens - Universal styling for all features */
.feature-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 247, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a15 0%, #050510 100%);
  z-index: 100;
  overflow: hidden; /* Prevent scrolling */
  padding: 60px 0; /* Remove horizontal padding */
  animation: fadeIn 0.3s ease;
}

.feature-screen.hidden {
  display: none;
}

.feature-close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 100, 100, 0.3);
  border: 2px solid rgba(255, 100, 100, 0.7);
  color: #ff6464;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 0;
  z-index: 110;
  font-weight: 300;
}

.feature-close-btn:hover {
  background: rgba(255, 100, 100, 0.5);
  border-color: #ff6464;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 100, 100, 0.4);
}

.feature-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding: 0 40px;
}

.feature-header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00f7ff, transparent);
  border-radius: 2px;
}

.feature-header h1 {
  font-size: 56px;
  font-weight: 900;
  background: linear-gradient(135deg, #00f7ff 0%, #00ff88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 247, 255, 0.3);
  margin: 0;
  letter-spacing: 2px;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.feature-header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 15px 0 0 0;
  letter-spacing: 1px;
}

/* Tabs */
.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 60px;
  position: relative;
  padding: 0 40px;
}

.feature-tabs::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 247, 255, 0.3), transparent);
}

.feature-tab {
  padding: 14px 36px; /* ~20% smaller */
  background: rgba(20, 30, 50, 0.5);
  border: 2px solid rgba(80, 100, 130, 0.3);
  border-radius: 1px;
  color: rgba(200, 220, 240, 0.8);
  font-size: 15px; /* ~20% smaller */
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.feature-tab:hover::before {
  left: 100%;
}

.feature-tab:hover {
  background: rgba(40, 60, 90, 0.8);
  border-color: rgba(100, 150, 200, 0.6);
  transform: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-tab.active {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.25), rgba(0, 200, 220, 0.15));
  border-color: #00f7ff;
  color: #00f7ff;
  box-shadow:
    0 0 30px rgba(0, 247, 255, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: none;
}

.feature-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #00f7ff;
  border-radius: 2px;
  box-shadow: 0 0 10px #00f7ff;
}

/* Tab Content */
.tab-content {
  text-align: center;
  animation: slideIn 0.4s ease;
  overflow: hidden; /* Prevent scrolling */
  height: calc(100vh - 300px); /* Fixed height to prevent overflow */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.hidden {
  display: none;
}

.tab-content h2 {
  font-size: 32px;
  color: #00f7ff;
  margin-bottom: 12px;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
  padding: 0 40px;
}

.tab-content .subtitle {
  font-size: 17px;
  color: rgba(0, 247, 255, 0.7);
  margin-bottom: 50px;
  letter-spacing: 0.5px;
  padding: 0 40px;
}

/* Maps Grid - Full Width Scrollable */
.maps-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 36px; /* 20% bigger gap (30px * 1.2) */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  margin-top: 40px;
  padding: 20px 80px; /* Increased padding for scroll buttons */
  scroll-behavior: smooth;
  height: 400px; /* Match map card height */
  /* Remove visible container styling */
  border: none;
  background: transparent;
  backdrop-filter: none;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  /* Ensure horizontal scrolling works */
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 247, 255, 0.6) rgba(0, 0, 0, 0.3);
}

/* Scroll Buttons for Maps Grid */
.maps-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.3), rgba(0, 180, 255, 0.2));
  border: 2px solid rgba(0, 247, 255, 0.5);
  border-radius: 50%;
  color: #00f7ff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 247, 255, 0.2);
}

.maps-scroll-btn:hover {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.5), rgba(0, 180, 255, 0.4));
  border-color: rgba(0, 247, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 247, 255, 0.4);
}

.maps-scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.maps-scroll-btn.left {
  left: 10px;
}

.maps-scroll-btn.right {
  right: 10px;
}

.maps-scroll-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Maps Grid - Simple Horizontal Scrolling */
.maps-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 20px 80px !important; /* Extra padding for scroll buttons */
  scroll-behavior: smooth !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 400px !important; /* Match map card height */
  position: relative !important;
  box-sizing: border-box !important;
  /* Force horizontal scrolling */
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* Enhanced scrollbar styling */
.maps-grid::-webkit-scrollbar {
  height: 8px;
}

.maps-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.maps-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 247, 255, 0.4);
  border-radius: 4px;
}

.maps-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 247, 255, 0.6);
}

/* Stats Grid for Analytics Tab */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0 40px;
  flex-wrap: wrap;
}

.stat-card {
  background: linear-gradient(135deg, rgba(0, 247, 255, 0.08), rgba(0, 180, 255, 0.04));
  border: 2px solid rgba(0, 247, 255, 0.3);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 200px;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 247, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 247, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 247, 255, 0.2);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: rgba(0, 247, 255, 0.8);
}

.stat-value {
  font-size: 36px;
  font-weight: bold;
  color: #00f7ff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.stat-label {
  font-size: 18px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
}

.stat-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}