 /* ===== PALETA ORIGINAL (INTACTA) ===== */
      :root {
        --primary-color: rgba(1, 1, 1, 0.9);
        --secondary-color: #ff8c42;
        --accent-color: #ff6600;
        --light-color: #ffd8b5;
        --text-color: #333;
        --white: #ffffff;
        --black: #000000;
        --orange-gradient: linear-gradient(
          115deg,
          #ff6701,
          #ff9900,
          #fd640b,
          #ff8851,
          #ff9810,
          #ff7951
        );
        --success-color: #4caf50;
        --error-color: #f44336;
        --orange-bg: #b9b8b7;
        --present-color: #00bcd4;
        --past-color: #9c27b0;
      }

      * {
        font-family: "Poppins", sans-serif;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      body {
        min-height: 100vh;
        background-color: var(--orange-bg);
        color: var(--text-color);
        padding-top: 80px;
      }

      /* ----- HEADER (IDÉNTICO) ----- */
      .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(1, 1, 1, 0.9);
        padding: 0 10%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid var(--secondary-color);
        transition: all 0.3s ease;
      }

      .header:hover {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
      }

      .logo {
        font-size: 28px;
        font-weight: 700;
        color: var(--white);
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        letter-spacing: 1px;
      }

      .navigation ul {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      .header .navigation ul li {
        float: left;
        position: relative;
      }

      .header .navigation ul li a {
        font-size: 16px;
        font-weight: 500;
        color: var(--white);
        text-decoration: none;
        padding: 22px 20px;
        display: block;
        transition: all 0.3s ease;
      }

      .header .navigation ul li a:hover {
        background-color: var(--secondary-color);
        transform: translateY(-2px);
        color: var(--black);
      }

      #toggle,
      .header label {
        display: none;
        cursor: pointer;
      }

      .menu {
        width: 28px;
        height: 28px;
        filter: brightness(0) invert(1);
      }

      /* ----- MAIN CONTAINER ----- */
      .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
      }

      h1 {
        text-align: center;
        color: var(--black);
        margin-bottom: 30px;
        font-size: 2.5rem;
        font-weight: 700;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
        position: relative;
        padding-bottom: 15px;
      }

      h1::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 120px;
        height: 4px;
        background: var(--orange-gradient);
        border-radius: 4px;
      }

      /* ----- GAME HEADER (estadísticas) ----- */
      .game-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: var(--white);
        border-radius: 15px;
        padding: 20px 30px;
        margin-bottom: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        flex-wrap: wrap;
        gap: 20px;
      }

      .game-stats {
        display: flex;
        gap: 20px;
      }

      .stat-box {
        background: linear-gradient(
          135deg,
          var(--secondary-color),
          var(--accent-color)
        );
        color: white;
        padding: 15px 25px;
        border-radius: 10px;
        text-align: center;
        min-width: 140px;
        box-shadow: 0 4px 10px rgba(255, 140, 66, 0.3);
      }

      .stat-value {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 5px;
      }

      .stat-label {
        font-size: 0.9rem;
        opacity: 0.9;
      }

      /* ----- ÁREA PRINCIPAL (canvas + lista) ----- */
      .wordsearch-container {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
      }

      .canvas-wrapper {
        background: var(--white);
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-left: 6px solid var(--accent-color);
      }

      #wordsearch-canvas {
        display: block;
        width: 480px;
        height: 480px;
        border-radius: 10px;
        background: var(--white);
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
        cursor: crosshair;
      }

      /* ----- LISTA DE VERBOS ----- */
      .word-list {
        background-color: var(--white);
        border-radius: 20px;
        padding: 25px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-left: 6px solid var(--secondary-color);
        flex: 1;
        min-width: 260px;
      }

      .word-list h3 {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .word-list h3 i {
        color: var(--accent-color);
      }

      .verb-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
        margin-bottom: 30px;
      }

      .verb-card {
        background: linear-gradient(145deg, #f5f5f5, #e0e0e0);
        padding: 12px 8px;
        border-radius: 60px;
        text-align: center;
        font-weight: 600;
        color: var(--black);
        box-shadow: 0 6px 0 #b0b0b0;
        transition: all 0.2s;
        border: 2px solid transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .verb-card.found {
        background: linear-gradient(145deg, #d4edda, #a5d6a7);
        border: 2px solid #2e7d32;
        box-shadow: 0 4px 0 #1b5e20;
        text-decoration: line-through;
        color: #1b5e20;
      }

      .verb-card i {
        color: var(--secondary-color);
      }

      .verb-card.found i {
        color: #2e7d32;
      }

      /* ----- BOTONES ----- */
      .action-buttons {
        display: flex;
        gap: 15px;
        margin-top: 20px;
        flex-wrap: wrap;
      }

      .btn {
        padding: 14px 25px;
        border: none;
        border-radius: 60px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
        display: flex;
        align-items: center;
        gap: 10px;
        box-shadow: 0 8px 0 #b0b0b0;
      }

      .btn-primary {
        background: var(--orange-gradient);
        color: white;
        box-shadow: 0 8px 0 #b3470c;
      }

      .btn-primary:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 0 #b3470c;
      }

      .btn-secondary {
        background: linear-gradient(145deg, #2c3e50, #1a2632);
        color: white;
        box-shadow: 0 8px 0 #0f1217;
      }

      .btn-secondary:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 0 #0f1217;
      }

      /* ----- REGLAS ----- */
      .game-rules {
        background-color: var(--white);
        border-radius: 20px;
        padding: 30px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-left: 6px solid var(--secondary-color);
        margin-top: 30px;
      }

      .rules-title {
        font-size: 1.7rem;
        color: var(--primary-color);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .rules-title i {
        color: var(--accent-color);
      }

      .rules-list {
        list-style-type: none;
        margin-left: 5px;
      }

      .rules-list li {
        margin-bottom: 15px;
        padding-left: 25px;
        position: relative;
        line-height: 1.6;
        font-size: 1.1rem;
      }

      .rules-list li:before {
        content: "🔮";
        color: var(--accent-color);
        position: absolute;
        left: -5px;
      }

      /* ----- MODAL ----- */
      .game-over-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.85);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        animation: fadeIn 0.4s ease-out;
      }

      .modal-content {
        background: linear-gradient(145deg, var(--white), var(--light-color));
        padding: 40px;
        border-radius: 30px;
        text-align: center;
        max-width: 500px;
        width: 90%;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        transform: scale(0.9);
        animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
        border: 3px solid var(--secondary-color);
        position: relative;
      }

      .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
        transition: 0.2s;
        background: none;
        border: none;
      }

      .close-modal:hover {
        color: var(--accent-color);
        transform: scale(1.2);
      }

      .modal-title {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 20px;
      }

      .modal-message {
        font-size: 1.3rem;
        margin-bottom: 25px;
        color: var(--text-color);
      }

      .final-score {
        font-size: 3.5rem;
        color: var(--secondary-color);
        font-weight: 800;
        margin: 20px 0;
        text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
      }

      .modal-btn {
        padding: 14px 35px;
        background: linear-gradient(145deg, #2c3e50, #1a2632);
        color: white;
        border: none;
        border-radius: 60px;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 600;
        transition: 0.2s;
        box-shadow: 0 8px 0 #0f1217;
        margin: 0 10px;
      }

      .modal-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 0 #0f1217;
      }

      /* ----- CONFETI ----- */
      #confetti-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1999;
        display: none;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      @keyframes scaleUp {
        to {
          transform: scale(1);
        }
      }

      @media (max-width: 950px) {
        .header label {
          display: initial;
        }
        .header {
          padding: 15px 10%;
        }
        .header .navigation {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background: var(--primary-color);
          display: none;
          border-radius: 0 0 12px 12px;
        }
        .header .navigation ul li {
          width: 100%;
        }
        #toggle:checked ~ .navigation {
          display: block;
        }
        h1 {
          font-size: 2rem;
        }
        .wordsearch-container {
          flex-direction: column;
          align-items: center;
        }
        #wordsearch-canvas {
          width: 100%;
          height: auto;
          aspect-ratio: 1;
        }
      }