    body {
      background: #161616;
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100vh;
      font-family: "ARGENTPIXEL";
    }

     #outcome img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

    #instruction {
      font-size: 16px;
      margin-bottom: 15px;
      opacity: 0.8;
      font-weight: bold;
    }

    #door-container {
      position: relative;
      width: 160px;
      height: 260px;
      perspective: 1200px;
      margin-bottom: 20px;
    }

    #frame {
      position: absolute;
      width: 100%;
      height: 100%;
      background: #111;
      border: 6px solid #331f1f;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 0;
      overflow: hidden;
      transition: background 0.5s ease;

      
    }

    #frame.opened {
      background: #000000;
    }

    #outcome {
      font-size: 18px;
      opacity: 0;
      transition: opacity 0.6s ease, text-shadow 0.6s ease;
      text-align: center;
      padding: 10px;
      text-shadow: 0 0 4px rgba(255,255,255,0.3);
      font-weight: bold;
    }

    #outcome.visible {
      opacity: 1;

    }

    #door {
      width: 100%;
      height: 100%;
      background: rgb(0, 0, 0);
      border: 6px solid #4b2e2e;
      position: absolute;
      transform-origin: left;
      transition: transform 0.8s ease;
      box-shadow: 0 0 15px rgba(0,0,0,0.8);
      cursor: pointer;
      z-index: 1;
      background: linear-gradient(to bottom, #4b1f1f, #2a0f0f);
      border: 6px solid #4b2e2e;
      box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 0 15px rgba(0,0,0,0.8);
    }

    #door.open {
      transform: rotateY(-100deg);
    }

    #knob {
      width: 15px;
      height: 15px;
      background: rgb(163, 113, 3);
      border-radius: 50%;
      position: absolute;
      right: 15px;
      bottom: 100px;
    }

    #closeBtn {
      margin-top: 20px;
      background: rgb(58, 58, 58);
      color: white;
      padding: 8px 14px;
      font-size: 16px;
      cursor: pointer;
      display: none;
      font-family: "ARGENTPIXEL";
    }

    #closeBtn:hover {
      background: rgb(155, 151, 151);
    }

      @font-face {
    font-family: "ARGENTPIXEL";
    src: url("/images/ArgentPixelCF-Regular.woff") format("woff");
  }


    #inventory-panel {
      position: fixed;
      top: 10px;
      right: 10px;
      color: #fff;
      padding: 10px;
      font-family: ARGENTPIXEL;
      max-height: 80vh;
      overflow-y: auto;
      z-index: 999;
    }

    

    #inventory-panel h2 {
      font-size: 1.2rem;
      margin-top: 0;
    }

    #inventory-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    #inventory-list li {
      margin: 4px 0;
    }

    #reset-progress{
      background: rgb(58, 58, 58);
      color: white;
      padding: 8px 14px;
      font-size: 16px;
      cursor: pointer;
      font-family: "ARGENTPIXEL";
      margin-top: 10px;
      margin-left: 0px
    }

      #reset-progress:hover {
      background: rgb(155, 151, 151);
    }

        .modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.75);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 999;
    }

    .modal.hidden {
      display: none;
    }

    .modal-content {
      color: white;
      padding: 20px 30px;
      text-align: center;
      font-family: ARGENTPIXEL;
      max-width: 90%;
    }

    .modal-buttons {
      margin-top: 20px;
      display: flex;
      gap: 20px;
      justify-content: center;
    }

    .modal-buttons button {
      background: #3a0000;
      color: white;
      border: none;
      padding: 10px 20px;
      font-family: ARGENTPIXEL-ITAL;
      font-size: 1rem;
      cursor: pointer;
      border-radius: 5px;
    }

    .modal-buttons button:hover {
       background: #240000;
    }

    #submit-score-btn{
      background: rgb(58, 58, 58);
      color: white;
      padding: 8px 14px;
      font-size: 16px;
      cursor: pointer;
      font-family: "ARGENTPIXEL";
      margin-top: 10px;
      margin-left: 0px
    }


    #submit-score-btn:hover {
      background: rgb(155, 151, 151);
    }

    #leaderboard-container {
  position: fixed;
  top: 10px;
  left: 10px;
  color: white;
  font-family: "ARGENTPIXEL";
  z-index: 999;
  padding: 10px;
  max-width: 200px;
}

#leaderboard-container h2 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 6px;
}

#leaderboard-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#leaderboard-list li {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
