   /* RESET Y BASE */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, sans-serif;
      padding: 15px;
      background: #fafafa;
    }

    /* CONTENEDOR PRINCIPAL */
    .main-container {
      max-width: 800px;
      margin: auto;
      background: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px #aaa;
      display: flex;
      flex-direction: column;
      gap: 20px;
      min-height: 100vh;
    }

    /* TÍTULO */
    h1.titulo {
      text-align: center;
      font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
      font-size: 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
    }

    h1.titulo img {
      width: 30px;
      height: 30px;
    }

    /* MENSAJES */
    #msg-final {
      text-align: center;
      color: crimson;
      font-weight: bold;
      font-size: 1.5rem;
      min-height: 0.5px;
    }

    #acierto {
      text-align: center;
      min-height: 0.5px;
      font-weight: bold;
      font-size: 1.2rem;
      transition: color 0.3s ease;
    }

    .acierto.verde {
      color: green;
    }

    .acierto.rojo {
      color: red;
    }

    /* ZONA DE JUEGO (PALABRA + IMAGEN) */
    .zona-juego {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }

    h2.palabra {
      font-size: 2rem;
      color: royalblue;
      letter-spacing: 8px;
      text-transform: uppercase;
      user-select: none;
    }

    .imagen-container {
      width: 200px;
      margin: 0 auto;
    }

    picture img {
      display: none;
      width: 100%;
      height: auto;
      transition: opacity 0.3s ease;
    }

    picture img.fade-in {
      display: block;
      opacity: 1;
    }

    /* INTENTOS */
    #intentos {
      font-weight: bold;
      color: orangered;
      font-size: 1.2rem;
    }

    .intentos-container {
      text-align: center;
    }

    /* BOTONES LETRAS (ABECEDARIO) */
    #abcdario {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
    }

    #abcdario button.letra {
      width: 40px;
      height: 40px;
      font-size: 1rem;
      font-weight: bold;
      cursor: pointer;
      border-radius: 5px;
      border: 2px solid #581845;
      background: white;
      color: #581845;
      transition: all 0.2s ease-in-out;
      user-select: none;
    }

    #abcdario button.letra:hover:not(:disabled) {
      background: #581845;
      color: white;
      box-shadow: 0 0 10px #b6630b inset;
    }

    #abcdario button.letra:disabled {
      color: rgba(255, 0, 0, 0.5);
      border-color: #b6630b;
      cursor: not-allowed;
      background: #f5f5f5;
      box-shadow: none;
    }

    /* BOTONES DE CONTROL ABAJO */
    .btn-container {
      display: flex;
      flex-direction: column;
      gap: 15px;
      align-items: center;
      margin-top: auto;
      padding-top: 20px;
      border-top: 1px solid #ddd;
    }

    .btn-container button {
      cursor: pointer;
      border: 2px solid #581845;
      background: transparent;
      color: #fff;
      font-size: 1.2rem;
      font-weight: bold;
      padding: 12px 30px;
      border-radius: 8px;
      box-shadow: 0 0 40px 40px #a60808 inset;
      transition: all 0.15s ease-in-out;
      width: 100%;
      max-width: 250px;
    }

    .btn-container button:hover {
      box-shadow: 0 0 10px 100px #b6630b inset, 0 0 10px 4px #b6630b;
      background: #581845;
    }

    /* PISTA */
    #hueco-pista {
      text-align: center;
      font-size: 1rem;
      color: #333;
      min-height: 20px;
    }

    /* RESPONSIVE */
    @media (max-width: 600px) {
      h2.palabra {
        font-size: 1.4rem;
        letter-spacing: 4px;
      }

      .imagen-container {
        width: 140px;
        height: auto;
      }

      #abcdario button.letra {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
      }

      .btn-container button {
        max-width: 100%;
        font-size: 1rem;
        padding: 10px 15px;
      }
    }