  body {
    font-family: 'Arial', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }
  #nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
  }
  #nav a {
    color: #fbbf24;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }
  #nav a:hover {
    color: #f59e0b;
  }
  #logo {
    font-size: 36px;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  #game-container {
    width: 100%;
    max-width: 480px;
    height: 640px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border: 4px solid #6366f1;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  #coin {
    width: 30px;
    height: 30px;
    position: absolute;
    left: 50px;
    top: 200px;
    transition: transform 0.1s;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
    z-index: 10;
  }
  .candle {
    width: 40px;
    position: absolute;
  }
  .candle-top {
    background-color: #ef4444;
    top: 0;
  }
  .candle-bottom {
    background-color: #22c55e;
    bottom: 0;
  }
  #score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: #fbbf24;
    z-index: 20;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  #crypto-balance {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 18px;
    color: #6366f1;
    z-index: 20;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  #start-button, #restart-button, #claim-button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 20;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  #start-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  #start-button:hover, #restart-button:hover, #claim-button:hover {
    background-color: #4f46e5;
  }
  #overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
  }
  #game-over {
    background-color: #2d3748;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  #game-over h2 {
    margin-top: 0;
    color: #fbbf24;
  }
  #final-score, #final-balance {
    font-size: 18px;
    margin: 10px 0;
  }
  #leaderboard {
    width: 100%;
    max-width: 480px;
    background-color: #2d3748;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
  }
  #leaderboard h2 {
    margin-top: 0;
    color: #fbbf24;
    text-align: center;
  }
  #leaderboard-list {
    list-style-type: none;
    padding: 0;
  }
  #leaderboard-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #1e293b;
    border-radius: 5px;
  }
  #leaderboard-list li span:first-child {
    font-weight: bold;
    color: #6366f1;
  }
  #wallet-form {
    width: 100%;
    max-width: 480px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #wallet-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #6366f1;
    background-color: #1e293b;
    color: #e2e8f0;
    border-radius: 5px;
    box-sizing: border-box;
  }
  #claim-button {
    width: 100%;
  }

  @media (max-width: 480px) {
    #game-container, #leaderboard, #wallet-form {
      width: 100%;
      max-width: none;
      border-radius: 0;
    }
    #game-container {
      height: 70vh;
    }
    #coin {
      width: 24px;
      height: 24px;
      font-size: 24px;
      line-height: 24px;
    }
    body {
      padding: 10px;
      box-sizing: border-box;
    }
  }