* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html,
      body {
        background: linear-gradient(to bottom, #a1c4fd, #c2e9fb);
        font-family: "Hanna", cursive;
        height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-user-drag: none;
        -webkit-tap-highlight-color: transparent;
      }

      /* Desactivar selección fuera del área de juego */
      #gameWrapper,
      #gameWrapper * {
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        -webkit-user-drag: none;
        touch-action: none;
      }

      #gameWrapper {
        width: 95%;
        max-width: 420px;
        aspect-ratio: 420 / 620;
        margin: 2rem auto;
        background: #fefefe;
        border: 3px solid #1e3c72;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        position: relative;
        overflow: hidden;
      }

      header {
        background: #1e3c72;
        color: #fff;
        text-align: center;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      header h1 {
        font-size: 1.2rem;
        letter-spacing: 2px;
      }

      canvas {
        width: 100%;
        height: 100%;
        display: block;
        background: linear-gradient(to top, #81ecec, #74b9ff);
      }

      #scoreDisplay {
        position: absolute;
        top: 10px;
        left: 10px;
        background: rgba(0, 0, 0, 0.4);
        color: #fff;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        font-size: 0.7rem;
        z-index: 5;
      }

      #touchControls {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 2rem;
        z-index: 10;
      }

      #touchControls button {
        width: 60px;
        height: 60px;
        border: 3px solid #2d3436;
        border-radius: 50%;
        background: #00b894;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
      }

      #touchControls button:active {
        background: #00a180;
      }

      #gameOverOverlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        background: rgba(0, 0, 0, 0.75);
        color: #fff;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        font-size: 0.8rem;
        z-index: 15;
      }

      #gameOverOverlay > div {
        margin-bottom: 1rem;
      }

      #gameOverOverlay button {
        margin: 0 0.5rem;
        padding: 0.6rem 1.2rem;
        border: none;
        border-radius: 8px;
        background: #fdcb6e;
        color: #2d3436;
        font-family: "Press Start 2P", cursive;
        font-size: 0.75rem;
        cursor: pointer;
      }

      #gameOverOverlay button:hover {
        background: #e1b85d;
      }

      footer#otherGames {
        text-align: center;
        margin: 2rem 0;
      }

      footer#otherGames a {
        display: inline-block;
        background: #0984e3;
        color: #fff;
        padding: 1rem 2rem;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.9rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      }

      footer#otherGames a:hover {
        background: #087de1;
      }