* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #000;
    overflow: hidden;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.game-hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50;
}
.game-hud > * {
  pointer-events: auto;
}

.game-wasd-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(230, 240, 255, 0.85);
  letter-spacing: 0.2em;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
  }

  .popup.active {
    display: block;
  }

  .popup .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
    display: none;
  }

  .popup .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: #0f172a;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 16px;
    width: 380px;
    min-height: 180px;
    z-index: 2;
    text-align: center;
    padding: 28px 24px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  }

  .popup .content h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #e6f0ff;
    font-weight: 700;
  }

  .popup .content p {
    margin: 0 0 18px;
    font-size: 0.95rem;
    color: rgba(230, 240, 255, 0.8);
  }

  .popup .close-btn {
    cursor: pointer;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.08);
    color: #e6f0ff;
    font-size: 22px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .popup .close-btn:hover {
    background: rgba(34, 211, 238, 0.2);
  }

  .popup-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 10px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
  }
  .popup-btn:hover {
    background: rgba(34, 211, 238, 0.3);
    color: #e6f0ff;
  }
  .popup-link {
    color: #22d3ee;
  }

  #game-admin-message {
    margin: 0 0 8px;
    color: #e6f0ff;
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .admin-gate-sub {
    margin: 0 0 12px;
    color: rgba(230, 240, 255, 0.65);
    font-size: 0.88rem;
  }

  .admin-gate-content input {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.3);
    color: #e6f0ff;
    font-size: 1rem;
    box-sizing: border-box;
  }
  .admin-gate-content .admin-error {
    margin-top: 8px;
    color: #fb7185;
    font-size: 0.9rem;
  }

  .popup.active .overlay {
    display: block;
  }

  .popup.active .content {
    transition: all 300ms ease-in-out;
    transform: translate(-50%, -50%) scale(1);
  }
  
  h1 {
    text-align: center;
    margin-top: 50px;
  }
  
  #products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 50px;
  }
  
  .product {
    width: 300px;
    margin: 20px;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5);
  }
  
  .product img {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  button {
    background-color: green;
    color: white;
    font-weight: bold;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  /* HEADER */  
  nav{
   width: 84%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-left: 10px;
  }
 
  nav ul li{
      display: inline-block;
      list-style: none;
      margin: 1px 25px; 
  }
  
  nav ul li a{
      text-decoration: none;
      color: #606163;
  }
  
  nav ul li a:hover{
      color: #ff4321;
  } 
 
  .d {
   display: flex;
   align-items: center;
 }
 
 
  .align-center {
   display: flex;
   align-items: center;
   justify-content: center;
 }
 
   footer {
    padding-top: 70px;
    margin-top: 70px;
    margin-left: 50px;
    margin-right: 50px;
    text-align: center;
    padding: 3px;
    background-color: grey;
    color: white;
  }

img.grow{
  transition: 1s ease;
  }
  
img.grow:hover{
  -webkit-transform: scale(1.2);
  -ms-transform: scale(1.2);
  transform: scale(1.2);
  transition: 1s ease;
  }

   /* new arrival */
   .h {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
  }
  
  .h h1 {
    font-weight: 400;
  }
  
  .h span {
    color:  #ff4321;
  }

  .rating {
    font-size: 25px;
    color: grey;
  }
  
  .rating .filled {
    color: gold;
  }
  
  .product h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .product p {
    margin-bottom: 10px;
  }
  
  .product-rating {
    display: flex;
    margin-bottom: 10px;
  }
  
  .product-rating label {
    margin-right: 10px;
  }
  
  .product-rating input[type="radio"] {
    display: none;
  }
  
  .product-rating input[type="radio"] + label:before {
    content: "\2605";
    color: #ccc;
  }
  
  .product-rating input[type="radio"]:checked + label:before {
    color: orange;
  }
  