body {
    margin: 0;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #f7f7f7;
  }
  
  .scoreboard {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    background-color: #eee;
  }
  
  .game {
    width: 100%;
    height: 200px;
    border-bottom: 2px solid #555;
    position: relative;
    overflow: hidden;
  }
  
  .dino {
    width: 50px;
    height: 45px;
    object-fit: contain;
    position: absolute;
    bottom: 0;
    left: 50px;
  }
  
  .obstacle {
    /* height: 50px; */
    object-fit: contain;
    width: 40px;
    position: absolute;
    bottom: 0;
    left: 100%;
    display: none; /* hidden until game starts */
  }
  
  .jump {
    animation: jump 0.5s ease-out;
  }
  
  @keyframes jump {
    0% { bottom: 0; }
    50% { bottom: 80px; }
    100% { bottom: 0; }
  }
  
  @keyframes moveObstacle {
    0% { left: 100%; }
    100% { left: -40px; }
  }
  
  button.start,
  button.retry {
    margin: 20px auto;
    padding: 10px 30px;
    font-size: 18px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .retry {
    display: none;
  }
  
  .start {
    top: 50%;
  }
  
  body.day {
    background-color: #fff;
    transition: background-color 1s;
  }
  
  body.night {
    background-color: #1e1e1e;
    transition: background-color 1s;
  }
  
  h1, #score, #highscore {
    color: #333;
  }
  
  body.night h1, body.night #score, body.night #highscore {
    color: #fff;
  }
  
  #mobile-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  #mobile-controls button {
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    background-color: #444;
    color: white;
    cursor: pointer;
  }
  
  body.night #mobile-controls button {
    background-color: #eee;
    color: #111;
  }


  