body {
      margin: 0;
      overflow: hidden;
      font-family: "Fira Sans", sans-serif !important;
      background: #000;
      color: #eee;
    }
    
    /* Landing Page Styles */
    #landingPage {
      position: fixed;
      inset: 0;
      background: linear-gradient(160deg, #050505 0%, #320e3b 50%, #0e3b2f 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      text-align: center;
    }
    
    .landing-content {
      max-width: 800px;
      padding: 2rem;
      background: rgba(0, 0, 0, 0.7);
      border-radius: 20px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .landing-content h1 {
      font-size: 3rem;
      font-family: "DynaPuff", cursive;;
      margin-bottom: 1rem;
      color: rgb(160, 63, 164);
      /* color: #4cbb17; */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .landing-content h2 {
      font-size: 1.5rem;
      font-family: "DynaPuff", cursive;
      font-weight: lighter;
      color: #8686ac;
      margin: 2rem 0 1rem;
    }

    .control-box p {
      font-size: 1rem;
      font-family: "Fira Sans", sans-serif;
      line-height: 1.6;
      margin-bottom: 1.5rem;
    }
    
    .controls-section {
      display: flex;
      justify-content: space-around;
      gap: 2rem;
      margin: 2rem 0;
      flex-wrap: wrap;
    }
    
    .control-box {
      background: rgba(255, 255, 255, 0.1);
      padding: 1.5rem;
      border-radius: 10px;
      min-width: 250px;
    }
    
    .control-box h3 {
      /* color: #4cbb17; */
      color: rgb(160, 63, 164);
      margin-top: 0;
      font-family: "DynaPuff", cursive;
    }
    
    .control-box p {
      margin: 0.5rem 0;
      line-height: 1.5;
    }
    
    #startBtn {
      font-size: 1.5rem;
      padding: 1rem 2rem;
      background: rgb(160, 63, 164);
      /* background: #4cbb17; */
      color: #000;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      margin-top: 2rem;
      transition: transform 0.2s;
      font-family: "DynaPuff", cursive;
    }
    
    #startBtn:hover {
      transform: scale(1.1);
      background: #692475;
      color: #eee;
    }
    
    /* Game Styles */
    canvas {
      display: block;
    }
    
    #mobileControls {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: none;
      z-index: 10;
    }
    
    .mobile-control-group {
      display: flex;
      gap: 15px;
      align-items: center;
    }
    
    .control-btn {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
      border-radius: 50%;
      border: 2px solid white;
      background: rgba(255, 255, 255, 0.2);
      color: white;
      cursor: pointer;
      touch-action: none;
    }
    
    .control-btn:active {
      background: rgba(255, 255, 255, 0.4);
    }
    
    /* Overlay */
    #overlay {
      position: fixed;
      inset: 0;
      background: linear-gradient(160deg, #050505 0%, #320e3b 50%, #0e3b2f 100%);
      color: white;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      transition: opacity 1s;
    }
    
    .hidden {
      display: none !important;
    }
    
    #dialog {
      max-width: 90%;
      padding: 2rem;
      background-color: rgba(0, 0, 0, 0.8);
      border-radius: 12px;
    }
    
    #dialog h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #4cbb17;
      font-family: "DynaPuff", cursive;
    }
    
    #dialog p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }
    
    #continueBtn {
      font-size: 1rem;
      padding: 0.5rem 1.5rem;
      border-radius: 10px;
      cursor: pointer;
      background: #4682B4;
      font-family: "DynaPuff", cursive;
      color: white;
      border: none;
    }
    
    #continueBtn:hover {
      background: #13476f;
    }
    
    /* HUD */
    #hud {
      position: fixed;
      top: 10px;
      left: 10px;
      background: linear-gradient(160deg, #050505 0%, #320e3b 50%, #0e3b2f 100%);
      color: white;
      padding: 1rem;
      font-size: 0.9rem;
      border-radius: 10px;
      z-index: 20;
    }
    
    #hud ul {
      list-style: none;
      padding: 0;
      margin: 0.5rem 0;
    }
    
    #hud li {
      margin: 0.3rem 0;
    }

    #hud div strong{
      font-family: "DynaPuff", cursive;
      color: #4cbb17;
    }
  

    /* Pause Menu */
    #pauseMenu {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      color: white;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 998;
    }
    
    .pause-content {
      background: rgba(0, 0, 0, 0.9);
      padding: 2rem;
      border-radius: 10px;
      text-align: center;
    }
    
    .pause-content h2 {
      color: #4cbb17;
      margin-bottom: 1rem;
    }
    
    .pause-btn {
      padding: 0.5rem 1rem;
      margin: 0.5rem;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      background: #4682B4;
      color: white;
    }

    #resumeBtn {
      background: #5A9FD4;
    }

    #resumeBtn:hover {
      background:#6a89a7;
    }

    #restartBtn {
      background: #ED2100;
    }

    #restartBtn:hover {
      background: #960016;
    }

    /* Camp Muir */
    #campMuirOverlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      color: white;
      z-index: 999;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      transition: opacity 1s;
    }

    .camp-muir-content {
      max-width: 600px;
      padding: 2rem;
      background-color: rgba(0, 0, 0, 0.8);
      border-radius: 12px;
    }

    .camp-muir-content h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #4cbb17;
      font-family: "DynaPuff", cursive;
    }

    .camp-muir-content p {
      font-size: 1.2rem;
      margin-bottom: 1.5rem;
    }

    #startLevel2Btn {
      font-size: 1rem;
      padding: 0.75rem 1.5rem;
      border-radius: 10px;
      cursor: pointer;
      background: #4cbb17;
      color: #212121;
      border: none;
      font-family: "DynaPuff", cursive;
    }

    #startLevel2Btn:hover {
      background: #337a13;
    }
    
    /* Camp Muir Blackout */
    #campMuirScreen {
      position: fixed;
      inset: 0;
      background: #000;
      color: white;
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1001;
      text-align: center;
      opacity: 1;
      transition: opacity 0.5s ease-in-out;
      background-color: rgba(0, 0, 0, 0.85);
    }
    
    .camp-content {
      max-width: 600px;
      padding: 2rem;
    }
    
    .camp-content h2 {
      font-size: 2.5rem;
      color: #FFD700;
      margin-bottom: 1rem;
    }
    
    .camp-content p {
      font-size: 1.2rem;
      line-height: 1.6;
      margin: 1rem 0;
    }
    
    #startNightClimbBtn {
      font-size: 1.2rem;
      padding: 1rem 2rem;
      background: #FFD700;
      color: #000;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      margin-top: 2rem;
    }

    #toolsList img {
      border-radius: 4px;
      transition: transform 0.2s ease;
    }

    #toolsList img:hover {
      transform: scale(1.1);
    }

    .floatingMessage {
      position: absolute;
      left: 50%;
      top: 10%;
      transform: translate(-50%, 0);
      background: rgba(0,0,0,0.6);
      color: white;
      padding: 12px 20px;
      border-radius: 8px;
      font-size: 1.2em;
      text-align: center;
      transition: opacity 1s;
      z-index: 999;
    }

    #credit p {
      font-size: 0.8rem;
      margin: 0.5rem 0;
      padding-top: 0.5rem;
    }

    /* #circleFadeOverlay {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 200vw;
      height: 200vh;
      background: radial-gradient(circle, black 0%, black 30%, transparent 60%);
      transform: scale(5);
      transform-origin: center;
      opacity: 1;
      z-index: 1002;
      display: none;
      pointer-events: none;
      transition: transform 2.5s ease-in-out;
    } */

    #nightOverlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: black;
      opacity: 0;
      transition: opacity 3s ease-in-out;
      pointer-events: none;
      z-index: 888; 
    }

    .rope-distance-label {
      position: absolute;
      padding: 4px 8px;
      background: rgba(0,0,0,0.55);
      color: #fff;
      font-size: 0.75rem;
      border-radius: 6px;
      font-family: "Fira Sans", sans-serif;
      pointer-events: none;
      transform: translate(-50%, -120%);
      backdrop-filter: blur(2px);
      z-index: 600;
    }

    .too-close-hint {
      position: absolute;
      padding: 3px 8px;
      background: rgba(180,40,40,0.85);
      color: #fff;
      font-size: 0.65rem;
      border-radius: 4px;
      font-family: "Fira Sans", sans-serif;
      pointer-events: none;
      transform: translate(-50%, -170%);
      animation: fadeSlide 1.2s ease-out forwards;
      z-index: 610;
      text-shadow: 0 0 4px #000;
    }

    @keyframes fadeSlide {
      0% { opacity: 0; transform: translate(-50%, -140%) scale(0.9); }
      15% { opacity: 1; }
      85% { opacity: 1; }
      100% { opacity: 0; transform: translate(-50%, -210%) scale(0.8); }
    }

    #gameOverScreen {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      display: flex;
      /* flex-direction: column; */
      align-items: center;
      justify-content: center;
    }

    #playAgainBtn {
      padding: 0.5rem 1rem;
      margin: 0.5rem;
      font-size: 1.2rem;
      width: 150px;
      background: #FFD700;
      color: #000;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    #exitBtn {
      padding: 0.5rem 1rem;
      margin: 0.5rem;
      font-size: 1.2rem;
      width: 150px;
      background: #FF4500;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .maya-portfolio-link {
      text-decoration: none;
      color: #FFFFFF;
      font-size: 0.9rem;
      text-transform: uppercase;
    }

    .maya-portfolio-link:hover {
      color: #9BC13B;
    }
