@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
    
    * {
      box-sizing: border-box;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }
    
    body {
      margin: 0;
      padding: 0;
      background: #232323;
      display: flex;
      flex-direction: column;
      align-items: center;
      font-family: 'Press Start 2P', Arial, sans-serif;
      overflow: hidden;
      height: 100vh;
      width: 100vw;
      justify-content: center;
    }

    #gameContainer {
      position: relative;
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 0 40px rgba(0,0,0,0.4);
      width: 100%;
      height: 100%;
      max-width: 450px;
      max-height: 800px;
      touch-action: none;
    }

    #gameCanvas {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    #startScreen, #gameOverScreen {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.8);
      color: white;
      text-align: center;
      opacity: 0;
      transition: opacity 0.5s ease;
      pointer-events: none;
      padding: 20px;
    }

    #startScreen.visible, #gameOverScreen.visible {
      opacity: 1;
      pointer-events: auto;
      z-index: 10;
    }

    .title {
      font-size: 28px;
      margin-bottom: 20px;
      text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    }

    .subtitle {
      font-size: 12px;
      margin: 20px 0;
      line-height: 1.6;
    }

    button {
      font-family: 'Press Start 2P', Arial, sans-serif;
      font-size: 16px;
      padding: 15px 30px;
      margin: 10px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(to bottom, #4CAF50, #388E3C);
      color: white;
      cursor: pointer;
      box-shadow: 0 5px 0 #2E7D32;
      transition: all 0.1s ease;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    button:hover {
      transform: translateY(-2px);
      box-shadow: 0 7px 0 #2E7D32;
    }

    button:active {
      transform: translateY(3px);
      box-shadow: 0 2px 0 #2E7D32;
    }

    .score-display {
      font-size: 24px;
      margin: 10px 0;
    }

    .high-score {
      font-size: 14px;
      color: #ffd700;
    }

    @media (max-width: 768px) {
      .title { font-size: 24px; }
      button { font-size: 14px; padding: 12px 24px; }
      .score-display { font-size: 20px; }
    }
    
    @media (max-height: 600px) {
      .title { font-size: 20px; margin-bottom: 10px; }
      .subtitle { font-size: 10px; margin: 10px 0; }
      button { font-size: 12px; padding: 8px 16px; }
    }
    
    /* Prevent text selection */
    html, body {
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
    }
    
    /* Fullscreen mode styling */
    body.fullscreen {
      background: #000;
    }
    
    body.fullscreen #gameContainer {
      max-width: 100%;
      max-height: 100%;
      border-radius: 0;
    }