    body { 
      margin: 0; 
      padding: 0;
      overflow-x: hidden;
      overflow-y: auto;
      touch-action: none;
      background: #050510;
      width: 100vw;
      height: 100vh;
      height: 100dvh; /* Dynamic viewport height for mobile */
      display: flex;
      align-items: center;
      justify-content: center;
    }
    canvas {
      display: block;
      width: 100%;
      height: auto;
      max-width: 100vw;
      max-height: 100vh;
      max-height: 100dvh; /* Dynamic viewport height for mobile */
      margin: 0 auto;
      object-fit: contain;
      /* The background will be painted in code (sky color) */
      background: #000;
      image-rendering: pixelated;
      image-rendering: -moz-crisp-edges;
      image-rendering: crisp-edges;
      image-rendering: -o-crisp-edges;
    }
    .mobile-controls {
      position: fixed;
      bottom: 20px;
      left: 0;
      right: 0;
      display: none;
      z-index: 1000;
      pointer-events: none;
    }
    .control-btn {
      position: absolute;
      width: 60px;
      height: 60px;
      background: rgba(255, 255, 255, 0.3);
      border: 2px solid rgba(255, 255, 255, 0.6);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      color: white;
      user-select: none;
      pointer-events: auto;
      touch-action: none;
    }
    .control-btn:active {
      background: rgba(255, 255, 255, 0.5);
    }
    .control-btn img {
      width: 70%;
      height: 70%;
      image-rendering: pixelated;
    }
    #btn-left { bottom: 80px; left: 20px; }
    #btn-right { bottom: 80px; left: 100px; }
    #btn-jump { bottom: 20px; right: 100px; }
    #btn-throw { bottom: 20px; right: 20px; }
    #btn-meteor { bottom: 90px; right: 20px; }
    @media (max-width: 768px), (hover: none) and (pointer: coarse) {
      .mobile-controls { display: block; }
    }
    
    /* Start Screen */
    #startScreen {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #050510 0%, #1a0a3e 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 20px;
      box-sizing: border-box;
      z-index: 2000;
      font-family: 'Courier New', monospace;
      color: white;
      text-align: center;
      overflow-y: auto;
    }
    #startScreen.hidden {
      display: none;
    }
    .hero-sprite {
      margin-bottom: 5px;
      background: transparent !important;
      image-rendering: pixelated;
      image-rendering: -moz-crisp-edges;
      image-rendering: crisp-edges;
      -ms-interpolation-mode: nearest-neighbor;
      filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6));
      animation: float 3s ease-in-out infinite;
      width: 12%;
      height: auto;
      min-width: 80px;
      max-width: 120px;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-20px); }
    }
    .game-title {
      font-size: clamp(32px, 5vw, 48px);
      font-weight: bold;
      margin-bottom: 10px;
      text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
      animation: pulse 2s infinite;
    }
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }
    .game-subtitle {
      font-size: clamp(16px, 2.5vw, 20px);
      margin-bottom: 15px;
      color: #aaa;
    }
    .start-button {
      padding: 15px 40px;
      font-size: 24px;
      font-family: 'Courier New', monospace;
      background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
      border: 3px solid white;
      color: white;
      cursor: pointer;
      text-transform: uppercase;
      font-weight: bold;
      box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
      transition: all 0.3s;
      border-radius: 10px;
    }
    .start-button:hover {
      transform: scale(1.1);
      box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    }
    .start-button:active {
      transform: scale(0.95);
    }
    .instructions {
      margin-top: 15px;
      font-size: clamp(12px, 1.5vw, 14px);
      color: #888;
      max-width: 600px;
      padding: 0 20px;
    }
    .instructions p {
      margin: 10px 0;
    }
    .instructions a {
      color: #00ffff;
      text-decoration: none;
      transition: color 0.3s;
    }
    .instructions a:hover {
      color: #ff00ff;
      text-decoration: underline;
    }
    
    /* Hero Purchase Section */
    .hero-purchase-section {
      margin-top: 15px;
      text-align: center;
    }
    .hero-purchase-title {
      font-size: clamp(18px, 3vw, 24px);
      margin-bottom: 10px;
      color: #aaa;
      text-shadow: 0 0 5px #ff00ff;
    }
    .hero-cards {
      display: flex;
      justify-content: center;
      gap: clamp(10px, 2vw, 20px);
      margin-bottom: 10px;
    }
    .hero-card {
      width: 120px;
      height: 160px;
      background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
      border: 3px solid white;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }
    .hero-card:hover {
      transform: scale(1.1);
      box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    }
    .hero-card:active {
      transform: scale(0.95);
    }
    .card-back {
      font-size: 48px;
      font-weight: bold;
      color: white;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }
    .card-price {
      position: absolute;
      bottom: 10px;
      font-size: 16px;
      font-weight: bold;
      color: white;
      text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    }
    .hero-card.shuffling {
      animation: shuffle 0.3s infinite;
    }
    @keyframes shuffle {
      0%, 100% { transform: translateX(0px) rotate(0deg); }
      25% { transform: translateX(-5px) rotate(-2deg); }
      50% { transform: translateX(5px) rotate(2deg); }
      75% { transform: translateX(-5px) rotate(-2deg); }
    }
    
    /* Payment Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 3000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
    }
    .modal-content {
      background: linear-gradient(135deg, #050510 0%, #1a0a3e 100%);
      margin: 15% auto;
      padding: 20px;
      border: 3px solid white;
      border-radius: 10px;
      width: 80%;
      max-width: 400px;
      text-align: center;
      color: white;
      font-family: 'Courier New', monospace;
    }
    .close-modal {
      color: #aaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
      cursor: pointer;
    }
    .close-modal:hover {
      color: white;
    }
    .payment-options {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 20px;
    }
    .payment-btn {
      padding: 12px 20px;
      font-size: 18px;
      font-family: 'Courier New', monospace;
      background: linear-gradient(135deg, #ff00ff 0%, #00ffff 100%);
      border: 2px solid white;
      color: white;
      cursor: pointer;
      border-radius: 5px;
      transition: all 0.3s;
    }
    .payment-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    }
    
    /* Mute Button */
    #muteBtn {
      position: fixed;
      top: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      background: rgba(0, 0, 0, 0.6);
      border: 2px solid rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1500;
      font-size: 24px;
      color: white;
      user-select: none;
      transition: all 0.3s;
    }
    #muteBtn.visible {
      display: flex;
    }
    #muteBtn:hover {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.1);
    }
    #muteBtn:active {
      transform: scale(0.9);
    }
    #muteBtn.muted {
      background: rgba(255, 0, 0, 0.6);
    }
    #muteAllBtn {
      position: fixed;
      top: 80px;
      right: 20px;
      width: 50px;
      height: 50px;
      background: rgba(0, 0, 0, 0.6);
      border: 2px solid rgba(255, 255, 255, 0.8);
      border-radius: 50%;
      display: none;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1500;
      font-size: 24px;
      color: white;
      user-select: none;
      transition: all 0.3s;
    }
    #muteAllBtn.visible {
      display: flex;
    }
    #muteAllBtn:hover {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.1);
    }
    #muteAllBtn:active {
      transform: scale(0.9);
    }
    #muteAllBtn.muted {
      background: rgba(255, 0, 0, 0.6);
    }
    @media (max-width: 768px) {
      .hero-sprite { 
        margin-bottom: 3px;
        width: 20%;
        min-width: 60px;
        max-width: 100px;
      }
      @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
      }
      .game-title { font-size: 28px; margin-bottom: 8px; }
      .game-subtitle { font-size: 14px; margin-bottom: 10px; }
      .start-button { font-size: 18px; padding: 10px 25px; }
      .instructions { font-size: 11px; margin-top: 10px; }
      .hero-purchase-title { font-size: 16px; margin-bottom: 8px; }
      .hero-cards { gap: 8px; margin-bottom: 8px; }
      .hero-card { width: 70px; height: 95px; }
      .card-back { font-size: 24px; }
      .card-price { font-size: 11px; bottom: 3px; }
      .modal-content { margin: 20% auto; width: 90%; }
      .payment-btn { font-size: 16px; padding: 10px 15px; }
      #muteBtn { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 20px; }
      #muteAllBtn { top: 60px; right: 10px; width: 40px; height: 40px; font-size: 20px; }
      
      #startScreen.purchase-hidden .hero-sprite {
        width: 30%;
        max-width: 150px;
      }
      #startScreen.purchase-hidden .game-title {
        font-size: 44px;
      }
      #startScreen.purchase-hidden .game-subtitle {
        font-size: 18px;
      }
      #startScreen.purchase-hidden .start-button {
        font-size: 22px;
        padding: 14px 35px;
      }
      #startScreen.purchase-hidden .instructions {
        font-size: 13px;
        margin-top: 18px;
      }
    }
    
    /* Large screen adjustments for resolutions like 1920x1200 */
    @media (min-width: 1400px) {
      .hero-sprite { width: 10%; max-width: 100px; }
      .game-title { font-size: 42px; }
      .hero-purchase-title { font-size: 22px; }
      .hero-cards { gap: 25px; }
      .hero-card { width: 130px; height: 170px; }
      .card-back { font-size: 50px; }
      .card-price { font-size: 17px; }
      
      #startScreen.purchase-hidden .hero-sprite {
        width: 15%;
        max-width: 140px;
      }
      #startScreen.purchase-hidden .game-title {
        font-size: 60px;
      }
    }
    
    #startScreen.purchase-hidden .hero-sprite {
      width: 18%;
      max-width: 180px;
    }
    #startScreen.purchase-hidden .game-title {
      font-size: clamp(48px, 7vw, 72px);
    }
    #startScreen.purchase-hidden .game-subtitle {
      font-size: clamp(24px, 3.5vw, 28px);
    }
    #startScreen.purchase-hidden .start-button {
      font-size: 32px;
      padding: 20px 60px;
    }
    #startScreen.purchase-hidden .instructions {
      font-size: clamp(16px, 2vw, 18px);
      margin-top: 30px;
    }
    
    #startScreen.purchase-hidden {
      justify-content: center;
    }