/* ============================================
   RESET — izolacja od globalnych styl
   ============================================ */

   .cp-crosswords-wrapper figure,
   .cp-crosswords-wrapper figcaption {
       margin: 0;
       padding: 0;
   }
   
   .cp-crosswords-wrapper div {
       margin: 0;
       padding: 0;
   }

   .cp-crosswords-wrapper .cp-crosswords-input {
    all: unset !important;

    /* odbudowa po nuklearnym resecie */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;

    font-size: 18px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-align: center !important;

    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    }

   
   /* ============================================
      WRAPPER
      ============================================ */

      .cp-crosswords-wrapper-bg {
        width: 100%;
        margin: 2rem 0;
        padding: 2rem;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
   
   .cp-crosswords-wrapper {
       width: 100%;
       /* display: flex; */
       flex-direction: column;
       align-items: center;
       background-repeat: no-repeat;
       background-position: center;
       background-size: cover;
   }
   
   /* ============================================
      WYJAŚNIENIE HASŁA GŁÓWNEGO
      ============================================ */
   
   .cp-crosswords-explanation {
       margin-top: 1rem;
       padding: 2rem 1rem;
       background: #e7e7e7;
       border-left: 4px solid #c2c2c2;
       font-size: 15px;
       line-height: 1.5;
       color: #444;
       text-align: center;
       border-radius: 6px;
   }
   
   /* ============================================
      GRID — kontener
      ============================================ */
   
   .cp-crosswords-grid {
       display: inline-block;
       border-radius: 10px;
       width: auto;
       margin: 0 auto;
       /* background-color: #fff;
       border: 5px solid #fff; */
   }
   
   /* ============================================
      RZĘDY
      ============================================ */
   
   .cp-crosswords-row {
       display: flex;
       align-items: center;
       gap: 2px; /* 🔥 minimalne światło między kratkami */
       margin: 2px auto !important; 
       padding: 0;
       height: 32px;
   }
   
   /* Feedback OK / ERROR */
   
/*    .cp-crosswords-row.row-ok {
       background: #e6ffe6;
   }
   
   .cp-crosswords-row.row-error {
       background: #ffe6e6;
   } */
   
   /* Numeracja rzędów */
   
   .cp-crosswords-row-number {
       width: 24px;
       font-weight: bold;
       color: #e7e7e7;
       text-align: right;
       padding-right: 10px !important;
   }
   
   /* ============================================
      KRATKI — FIGURE
      ============================================ */
   
   .cp-crosswords-cell,
   .cp-crosswords-empty {
       width: 32px;
       height: 32px;
       margin: 1px; /* 🔥 minimalne światło */
       border: 1px solid #333;
       display: flex;
       justify-content: center;
       align-items: center;
       box-sizing: border-box;
       background: #fff;
       position: relative;
   }

   /* Główna kolumna */
   
   .cp-crosswords-cell.main-col {
       background: #5ec3f1;
       border: 1px solid #0043d4;
   }
   
   /* Puste kratki */
   
   .cp-crosswords-empty {
       /* background: #e5e5e5; */
       /* border-color: #e7e7e7; */
       background-color: transparent;
       border: 0 none;
   }
   
   /* ============================================
      INPUT W KRATCE
      ============================================ */
   
    .cp-crosswords-input {
        width: 100%;
        height: 100%;
        border: none;
        background: transparent;
        text-align: center;
        font-size: 18px;
        font-weight: bold;
        text-transform: uppercase;
        outline: none;
        padding: 0;
        margin: 0;
    
        /* NOWE — usuwa przesunięcie */
        display: flex;
        align-items: center;
        justify-content: center;
    }
       
   
   /* Prefilled */
   
   .cp-crosswords-input.prefilled {
       border-color: #00aaff;
   }
   
   /* ============================================
      FIGCAPTION — na przyszłość
      ============================================ */
   
   .cp-crosswords-cell figcaption,
   .cp-crosswords-empty figcaption {
       position: absolute;
       bottom: 2px;
       right: 4px;
       font-size: 10px;
       opacity: 0.6;
       pointer-events: none;
   }
   
   /* ============================================
      PRZYCISK
      ============================================ */
   
   .cp-crosswords-check {
       display: block;
       margin: 2rem auto;
       padding: .5rem 2rem;
       font-size: 16px;
       border-radius: 10px;
       background: brown;
       cursor: pointer;
       border: 0 none;
       color: #fff;
   }
   
   .cp-crosswords-check:hover {
       background: #f7f7f7;
       color: #333;
   }
   
   /* ============================================
      WYNIK
      ============================================ */
   
   .cp-crosswords-result {
       font-weight: bold;
       margin-top: 10px;
       text-align: center;
       padding: 1rem;
       white-space: pre-line;
       background-color: #fff;
       border-radius: 10px;
   }
   
   .cp-crosswords-result span {
       display: block;
       text-align: center;
   }
   
   .cross-wait {
       color: #b1b1b1;
       text-align: center;
   }
   