/* Pisaczek Rozrywka — Krzyżówki (PNP_PISACZEK_GAMES_CROSSWORD_CSS_V1, K2 19.10.2026). Wygląd jak inne gry: granat + złoto, duże pola, tekst ≥18 px. */
.gm-cw .cw-tabs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(6,12,36,.55); border: 1px solid rgba(227,196,106,.35); align-self: flex-start; }
.cw-tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 24px; border-radius: 15px; border: 1px solid transparent; background: transparent; color: var(--gm-ink); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.cw-tabs button svg { width: 24px; height: 24px; } .cw-tabs button:hover { background: rgba(227,196,106,.12); color: var(--gm-gold3); }
.cw-tabs button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.cw-tabs button:focus-visible, .cw-c:focus-visible, .cw-key:focus-visible, .cw-tool:focus-visible, .cw-li:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.cw-pane[hidden] { display: none; } .cw-soon { padding: 22px; border-radius: 16px; background: rgba(6,12,36,.6); border: 1px dashed rgba(227,196,106,.4); font-size: 20px; }
.cw-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 14px 0; }
.cw-levels { display: flex; flex-wrap: wrap; gap: 8px; } .cw-lvl { font: inherit; font-size: 19px; font-weight: 700; min-height: 52px; padding: 6px 20px; border-radius: 999px; cursor: pointer; color: var(--gm-ink); background: rgba(255,255,255,.05); border: 1px solid rgba(227,196,106,.45); } .cw-lvl[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold2)); } .cw-lvl:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.cw-topBtns { display: flex; flex-wrap: wrap; gap: 8px; } .cw-topBtns .gm-btn { min-height: 52px; font-size: 19px; display: inline-flex; align-items: center; gap: 8px; } .cw-topBtns svg { width: 22px; height: 22px; }
.cw-play { display: grid; grid-template-columns: minmax(0, 640px) minmax(320px, 1fr); gap: 28px; align-items: start; }
.cw-main { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cw-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #FFF6DA; color: #10204A; min-height: 72px; }
.cw-barBtn { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px; border: 0; background: rgba(16,32,74,.09); color: #10204A; font-size: 28px; font-weight: 800; cursor: pointer; }
.cw-barTxt { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; } .cw-barKick { font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7A5C08; } .cw-barClue { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.3; }
.cw-boardWrap { position: relative; }
.cw-board { --w: 9; display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); width: 100%; aspect-ratio: 1; border: 3px solid var(--gm-gold); border-radius: 10px; overflow: hidden; background: #0B1638; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.cw-c { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0; border: 0; border-radius: 0; background: #F4F6FA; color: #10204A; box-shadow: inset 0 0 0 1px #9AA8BF; font: inherit; font-weight: 800; cursor: pointer; }
.cw-board[data-level="mini"] .cw-c { font-size: clamp(30px, 6vw, 46px); } .cw-board[data-level="mala"] .cw-c { font-size: clamp(20px, 3.6vw, 32px); } .cw-board[data-level="duza"] .cw-c { font-size: clamp(15px, 2.6vw, 24px); }
.cw-x { background: #0B1638; box-shadow: none; cursor: default; }
.cw-n { position: absolute; left: 3px; top: 1px; font-size: max(11px, .38em); font-weight: 700; color: #33415F; line-height: 1; }
.cw-c.word { background: #FFE9A8; } .cw-c.cur { background: #DDF7E8; box-shadow: inset 0 0 0 4px #2ECC71; z-index: 1; }
.cw-c.pen .cw-v { color: #7D879A; font-weight: 600; } .cw-c.rev .cw-v { color: #1D6FD6; }
.cw-c.bad .cw-v { color: #C0392B; } .cw-c.bad::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; background: #C0392B; transform: rotate(-35deg); }
.cw-c.pw::before { content: ""; position: absolute; inset: 14%; border: 2px solid #C9A24A; border-radius: 50%; pointer-events: none; }
.cw-loading { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; background: rgba(5,11,34,.6); color: var(--gm-ink); font-size: 20px; border-radius: 10px; } .cw-loading[hidden] { display: none; }
.cw-arrow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; opacity: .92; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.cw-kb { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 16px; background: rgba(6,12,36,.7); border: 1px solid rgba(227,196,106,.3); }
.cw-kbRow { display: flex; justify-content: center; gap: 6px; } .cw-key { flex: 0 1 52px; min-width: 0; height: 54px; border-radius: 10px; border: 0; background: #F4F6FA; color: #10204A; font: inherit; font-size: 21px; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 #9AA8BF; }
.cw-kbRow.pl .cw-key { background: #FFE9A8; } .cw-key.bs { flex-basis: 90px; background: #C9D1DE; } .cw-key:active { transform: translateY(2px); box-shadow: 0 1px 0 #9AA8BF; }
.cw-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cw-now { padding: 16px 18px; border-radius: 16px; background: rgba(6,12,36,.94); border: 2px solid rgba(227,196,106,.55); font-size: 20px; line-height: 1.45; position: relative; z-index: 7; } .cw-now b { display: block; color: var(--gm-gold3); font-size: 18px; margin-bottom: 4px; } .cw-now p { margin: 0; }
.cw-say { margin: 0; padding: 12px 16px; border-radius: 14px; font-size: 19px; color: #0B1430; background: #EAF7F5; border-inline-start: 6px solid #1C9C8E; } .cw-say[hidden] { display: none; } .cw-say.ok { background: #E6F7EC; border-color: #2ECC71; } .cw-say.bad { background: #FDECEA; border-color: #C0392B; }
.cw-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .cw-tool:disabled { opacity: .45; cursor: default; } /* KZ1: + Cofnij */
.cw-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 74px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.45); background: rgba(6,12,36,.62); color: var(--gm-ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; } .cw-tool svg { width: 26px; height: 26px; color: var(--gm-gold3); }
.cw-tool[aria-pressed="true"] { background: rgba(227,196,106,.2); border-color: var(--gm-gold); }
.cw-menu { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: #0E1A45; border: 1.5px solid rgba(227,196,106,.55); } .cw-menu[hidden] { display: none; }
.cw-menuItem { min-height: 52px; padding: 10px 14px; border-radius: 10px; border: 0; background: rgba(255,255,255,.06); color: var(--gm-ink); font: inherit; font-size: 19px; font-weight: 700; text-align: start; cursor: pointer; } .cw-menuItem:hover, .cw-menuItem:focus-visible { background: rgba(227,196,106,.2); outline: none; } .cw-menuCancel { color: #C8D0E6; font-weight: 600; }
.cw-pw { padding: 14px 16px; border-radius: 16px; background: rgba(227,196,106,.1); } .cw-pw[hidden] { display: none; } .cw-pw b { color: var(--gm-gold3); font-size: 19px; } .cw-pwClue { display: block; margin: 2px 0 8px; color: #C8D0E6; font-size: 18px; }
.cw-pwBoxes { display: flex; flex-wrap: wrap; gap: 6px; } .cw-pwBox { width: 42px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: #F4F6FA; color: #10204A; font-weight: 800; font-size: 22px; box-shadow: inset 0 0 0 2px #C9A24A; }
.cw-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .cw-lists h2 { margin: 0 0 6px; font-family: var(--gm-head); font-weight: 400; font-size: 22px; color: var(--gm-gold); }
.cw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow: auto; }
.cw-li { width: 100%; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--gm-ink); font: inherit; font-size: 18px; line-height: 1.35; text-align: start; cursor: pointer; } .cw-li b { color: var(--gm-gold3); }
.cw-li:hover { background: rgba(227,196,106,.1); } .cw-li.on { background: #FFF6DA; color: #10204A; } .cw-li.on b { color: #7A5C08; } .cw-li.done { color: #8FA0C0; text-decoration: line-through; } .cw-li.on.done { color: #4A5670; }
.cw-how { padding: 12px 16px; border-radius: 14px; background: rgba(6,12,36,.5); border: 1px solid rgba(227,196,106,.25); font-size: 18px; } .cw-how summary { cursor: pointer; font-weight: 700; font-size: 20px; color: var(--gm-gold3); } .cw-how p { margin: 8px 0 0; }
.cw-stats { margin: 0; color: #C8D0E6; font-size: 18px; }
.cw-dlg { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(3,7,24,.78); } .cw-dlg[hidden] { display: none; }
.cw-dlgBox { max-width: 520px; width: 100%; padding: 26px; border-radius: 20px; background: linear-gradient(180deg, rgba(14,26,66,.98), rgba(6,12,36,.98)); border: 1.5px solid rgba(227,196,106,.55); text-align: center; font-size: 20px; }
.cw-dlgBox h2 { margin: 0 0 8px; font-family: var(--gm-head); font-weight: 400; font-size: 34px; color: var(--gm-gold3); } .cw-wonPw { font-size: 24px; font-weight: 800; color: #FFF1C2; letter-spacing: .08em; }
.cw-dlgBtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; } .cw-dlgBtns .gm-btn { min-height: 56px; min-width: 160px; font-size: 19px; }
@media (max-width: 960px) { .cw-play { grid-template-columns: 1fr; } .cw-lists { grid-template-columns: 1fr; } .cw-list { max-height: none; } }
@media (max-width: 560px) {
  .gm-cw .cw-tabs { display: flex; align-self: stretch; } .cw-tabs button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 4px; font-size: 17px; gap: 4px; flex-direction: column; line-height: 1.15; }
  .cw-top { margin: 10px 0; } .cw-levels { width: 100%; } .cw-lvl { flex: 1 1 0; padding-inline: 6px; } .cw-topBtns { width: 100%; } .cw-topBtns .gm-btn { flex: 1 1 0; justify-content: center; padding-inline: 8px; }
  .cw-bar { padding: 8px 10px; gap: 6px; min-height: 64px; } .cw-barBtn { width: 44px; height: 44px; } .cw-barClue { font-size: 19px; }
  .cw-kb { padding: 6px 4px; gap: 5px; margin-inline: -6px; } .cw-kbRow { gap: 4px; } .cw-key { height: 50px; font-size: 19px; flex-basis: 34px; } .cw-key.bs { flex-basis: 64px; }
}
@media (prefers-reduced-motion: reduce) { .cw-key:active { transform: none; } }
@media (min-width: 561px) { .cw-board[data-level="mini"] { max-width: 480px; margin-inline: auto; } }
/* K3 Naucz się (20.10.2026): karta lekcji w panelu bocznym, lista lekcji w okienku; w trybie lekcji bez poziomów i licznika */
.gm-cw[data-mode="learn"] .cw-top, .gm-cw[data-mode="learn"] .cw-stats { display: none; }
.gm-cw:not([data-mode="learn"]) .cw-lesson { display: none; }
.cw-lesson { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(10,20,56,.9), rgba(5,11,34,.94)); border: 1.5px solid rgba(227,196,106,.55); }
.cw-lKick { font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gm-gold); }
.cw-lTitle { margin: 0; font-family: var(--gm-head); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); color: var(--gm-gold3); }
.cw-lDesc { font-size: 19px; line-height: 1.55; } .cw-lDesc summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); min-height: 44px; display: flex; align-items: center; }
.cw-lDesc p { margin: 6px 0 0; }
.cw-lKeep { margin: 0; font-size: 19px; line-height: 1.45; } .cw-lKeep b { color: var(--gm-gold3); }
.cw-lBtns { display: flex; flex-wrap: wrap; gap: 8px; } .cw-lBtns .gm-btn { min-height: 52px; font-size: 19px; } .cw-lBtns [hidden] { display: none; }
.cw-lListBox { max-width: 640px; max-height: calc(100vh - 40px); overflow: auto; text-align: start; } .cw-lListBox > p { margin: 0 0 8px; font-size: 19px; }
.cw-lProg { color: var(--gm-gold3); font-weight: 700; }
.cw-lCards { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.cw-lCard { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 10px 14px; border-radius: 16px; text-align: start; cursor: pointer; color: var(--gm-ink); background: rgba(6,12,36,.62); border: 1.5px solid rgba(227,196,106,.32); font: inherit; }
.cw-lCard:hover, .cw-lCard.next { border-color: var(--gm-gold); } .cw-lCard.next { box-shadow: 0 0 0 2px rgba(227,196,106,.35); } .cw-lCard:focus-visible { outline: 3px solid var(--gm-teal); }
.cw-lNo { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(227,196,106,.4); }
.cw-lCard.done .cw-lNo { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold2)); }
.cw-lTxt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .cw-lTxt b { font-size: 20px; } .cw-lTxt span { font-size: 17px; color: var(--gm-mute); }
.cw-lSt { font-size: 16px; font-weight: 700; color: var(--gm-gold3); }
.cw-board[data-level="lesson"] { max-width: 420px; margin-inline: auto; } .cw-board[data-level="lesson"] .cw-c { font-size: clamp(30px, 6vw, 46px); }
.cw-dlg { z-index: 2147483200; } /* nad górnym paskiem Pisaczka (jak okienko „O co chodzi”) */
.cw-lListBox { max-height: calc(100dvh - 32px); }
.cw-lDesc summary::before { content: '›'; display: inline-block; width: 1em; font-size: 24px; transition: transform .15s; } .cw-lDesc[open] summary::before { transform: rotate(90deg); }
.cw-lMini { display: none; margin: 0; font-size: 18px; font-weight: 700; color: var(--gm-gold3); }
@media (max-width: 960px) { .gm-cw[data-mode="learn"] .cw-lMini { display: block; } }
/* Słowniczek krzyżówkowicza (20.10) */
.cw-dictPlay { align-self: flex-start; min-height: 52px; font-size: 19px; }
.cw-dictBox { max-width: 720px; max-height: calc(100dvh - 32px); overflow: auto; text-align: start; } .cw-dictBox > p { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.cw-dictLens { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.cw-dictHide { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 19px; cursor: pointer; } .cw-dictHide input { width: 26px; height: 26px; accent-color: var(--gm-gold); }
.cw-dictList { list-style: none; margin: 8px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-dictItem { display: grid; grid-template-columns: minmax(130px, auto) 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(6,12,36,.62); border: 1.5px solid rgba(227,196,106,.28); }
.cw-dictItem.known { border-color: rgba(46,204,113,.7); }
.cw-dictWord { font: inherit; font-size: 22px; font-weight: 800; letter-spacing: .12em; color: var(--gm-gold3); background: none; border: 0; text-align: start; cursor: default; padding: 4px 0; min-height: 44px; }
.cw-dictWord.hid { cursor: pointer; color: var(--gm-mute); letter-spacing: .05em; }
.cw-dictClue { font-size: 18px; line-height: 1.4; }
.cw-dictKnow { font: inherit; font-size: 17px; font-weight: 700; min-height: 44px; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--gm-ink); background: rgba(255,255,255,.05); border: 1px solid rgba(227,196,106,.45); }
.cw-dictKnow[aria-pressed="true"] { color: #08200F; background: #2ECC71; border-color: #2ECC71; }
.cw-dlgBtns [hidden] { display: none; }
@media (max-width: 560px) { .cw-dictItem { grid-template-columns: 1fr auto; } .cw-dictClue { grid-column: 1 / -1; grid-row: 2; } }
.cw-dictLen { font: inherit; font-size: 18px; font-weight: 700; min-height: 48px; padding: 6px 16px; border-radius: 999px; cursor: pointer; color: var(--gm-ink); background: rgba(255,255,255,.05); border: 1px solid rgba(227,196,106,.45); } .cw-dictLen[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold2)); } .cw-dictLen:focus-visible, .cw-dictKnow:focus-visible, .cw-dictWord:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
/* K5 Ze znajomymi (21.10) */
.cw-frBody { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 12px 0 40px; font-size: 19px; }
.cw-frCard, .cw-frSec { padding: 18px 20px; border-radius: 16px; background: linear-gradient(180deg, rgba(10,20,56,.9), rgba(5,11,34,.94)); border: 1.5px solid rgba(227,196,106,.4); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cw-frCard.hot, .cw-frCh.hot { border-color: var(--gm-gold); box-shadow: 0 0 0 2px rgba(227,196,106,.3); } .cw-frCard.ok { border-color: rgba(46,204,113,.8); }
.cw-frCard h3, .cw-frSec h2 { margin: 0; font-family: var(--gm-head); font-weight: 400; color: var(--gm-gold3); font-size: clamp(22px, 2.4vw, 28px); }
.cw-frCard p, .cw-frSec p { margin: 0; line-height: 1.5; } .cw-frMuted { color: var(--gm-mute); }
.cw-frCh { width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(6,12,36,.62); border: 1.5px solid rgba(227,196,106,.28); }
.cw-frRes { display: flex; flex-wrap: wrap; gap: 6px 18px; } .cw-frWin { font-weight: 800; color: #2ECC71; }
.cw-frRow, .cw-frLink { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .cw-frRow .gm-btn, .cw-frSec > .gm-btn, .cw-frCard > .gm-btn, .cw-frLink .gm-btn { min-height: 52px; font-size: 19px; }
.cw-frInput { font: inherit; font-size: 19px; width: 100%; max-width: 460px; box-sizing: border-box; min-height: 52px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid rgba(227,196,106,.55); background: #F6F3EA; color: #101425; }
.cw-frInput:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; } .cw-frLink .cw-frInput { flex: 1 1 260px; }
.cw-frErr { margin: 0; color: #FF8A80; font-weight: 700; }
.cw-frLvls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .cw-frLvls b { color: var(--gm-gold3); margin-inline-end: 4px; }
.cw-wonCh { font-weight: 700; color: var(--gm-gold3); } .cw-wonCh[hidden] { display: none; }
@media (max-width: 560px) { .cw-frCard, .cw-frSec { padding: 14px; } }
/* 21.10: 4 poziomy z licznikiem, Baza pytań i odpowiedzi, plansza 15×15 */
.cw-lvl { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.15; padding: 6px 18px; border-radius: 18px; }
.cw-lvl b { font-size: 19px; } .cw-lvl .cw-lvlCnt { font-size: 16px; font-weight: 600; opacity: .85; } .cw-lvl[hidden] { display: none; }
.cw-lvlInfo { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--gm-gold3); } .cw-lvlInfo:empty { display: none; }
.cw-lCount { font-size: 18px; font-weight: 700; color: var(--gm-ink); }
.cw-dictTools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0; } .cw-dictTools .cw-frInput { flex: 1 1 240px; } .cw-dictTools .gm-btn { min-height: 52px; font-size: 19px; }
.cw-dictFound { margin: 4px 0; color: var(--gm-mute); font-size: 18px; }
.cw-dictItem { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 16px; }
.cw-dictQ { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.35; color: var(--gm-ink); }
.cw-dictRow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cw-dictA { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 44px; }
.cw-dictA .cw-dictWord { font-size: 19px; letter-spacing: .1em; padding: 0; min-height: 0; }
.cw-dictLenTxt { font-size: 17px; color: var(--gm-mute); }
.cw-dictShow { font: inherit; font-size: 17px; font-weight: 700; min-height: 44px; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold2)); border: 0; }
.cw-dictShow:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.cw-board[data-level="mistrz"] .cw-c { font-size: clamp(13px, 2.2vw, 22px); } .cw-board[data-level="mistrz"] .cw-n { font-size: 10px; }
@media (max-width: 560px) { .cw-levels { display: grid; grid-template-columns: 1fr 1fr; } .cw-lvl { padding: 6px 8px; } .cw-lvl b { font-size: 17px; } .cw-dictQ { font-size: 20px; } }
/* 21.10: Sprawdź się, zegar mistrzów */
.cw-quiz { display: flex; flex-direction: column; gap: 10px; padding: 16px; margin: 10px 0 14px; border-radius: 16px; background: rgba(6,12,36,.62); border: 1.5px solid rgba(227,196,106,.4); } .cw-quiz[hidden] { display: none; }
.cw-quizScore { margin: 0; font-weight: 700; color: var(--gm-gold3); } .cw-quizQ { font-size: 24px; margin: 4px 0 0; } .cw-quiz .cw-dictLenTxt { margin: 0; }
.cw-quiz .cw-frInput { max-width: 360px; font-size: 22px; letter-spacing: .1em; text-transform: uppercase; } .cw-quiz .cw-frInput[hidden] { display: none; }
.cw-quizSay { margin: 0; min-height: 1.4em; font-size: 20px; font-weight: 700; } .cw-quizSay.ok { color: #2ECC71; } .cw-quizSay.bad { color: #FF8A80; }
.cw-quiz .cw-frRow [hidden], .cw-dictTools [hidden] { display: none; }
.cw-timer { margin: -4px 0 10px; font-size: 19px; font-weight: 700; color: var(--gm-ink); } .cw-timer[hidden] { display: none; }
/* 22.10: ranking mistrzów, zgłoszenie błędu */
.cw-rank { padding: 16px 18px; border-radius: 16px; background: rgba(6,12,36,.62); border: 1.5px solid rgba(227,196,106,.4); display: flex; flex-direction: column; gap: 8px; } .cw-rank[hidden] { display: none; }
.cw-rank h2 { margin: 0; font-family: var(--gm-head); font-weight: 400; font-size: 24px; color: var(--gm-gold3); }
.cw-rankList { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 18px; } .cw-rankList li.me { color: var(--gm-gold3); font-weight: 700; }
.cw-rankMe { margin: 0; font-weight: 700; } .cw-rankMe:empty { display: none; }
.cw-rankSet { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .cw-rankSet .cw-frInput { flex: 1 1 180px; min-height: 48px; } .cw-rankSet .gm-btn { min-height: 48px; }
.cw-repBox { text-align: start; } .cw-repNote { max-width: none; min-height: 90px; resize: vertical; } .cw-repBox [hidden] { display: none; }
.cw-langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; } .cw-langs[hidden] { display: none; }
/* 22.10: widok panoramiczny (zaawansowani, mistrzowie): definicje w ciemnych kratkach przed słowem */
.cw-panBtn[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold2)); } .cw-topBtns [hidden] { display: none; }
.cw-board.pan .cw-q { background: #12204A; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.cw-board.pan .cw-qt { flex: 1 1 0; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 1px 2px; border: 0; background: none; color: #EAF0FF; font: inherit; font-size: clamp(7px, .95vw, 11.5px); line-height: 1.08; font-weight: 600; text-align: center; cursor: pointer; overflow: hidden; }
.cw-board.pan .cw-q.two .cw-qt + .cw-qt { border-top: 1px solid rgba(227,196,106,.45); }
.cw-board.pan .cw-qx { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; hyphens: auto; }
.cw-board.pan .cw-q.two .cw-qx { -webkit-line-clamp: 2; }
.cw-board.pan .cw-qa { position: absolute; right: 1px; bottom: 0; font-size: 10px; color: var(--gm-gold3); }
.cw-board.pan .cw-qt.on { background: #F1D27A; color: #15120A; } .cw-board.pan .cw-qt.on .cw-qa { color: #15120A; } .cw-board.pan .cw-qt.done { opacity: .55; }
.cw-board.pan .cw-qt:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: -3px; }
.cw-board.pan .cw-qt { align-items: flex-start; padding: 2px 2px 8px; font-size: clamp(7px, .78vw, 10.5px); line-height: 1.12; }
.cw-board.pan .cw-qx { -webkit-line-clamp: 3; max-height: 100%; } .cw-board.pan .cw-q.two .cw-qx { -webkit-line-clamp: 1; }
@media (max-width: 560px) { .cw-board.pan .cw-qt { font-size: 7.5px; padding: 1px 1px 7px; } .cw-board.pan .cw-qx { -webkit-line-clamp: 2; } .cw-board.pan .cw-qa { font-size: 8px; } }
.cw-qbub { position: fixed; z-index: 2147483100; padding: 12px 16px; border-radius: 14px; background: #FFF8E1; color: #15120A; border: 2px solid var(--gm-gold); box-shadow: 0 8px 24px rgba(0,0,0,.5); font-size: 20px; font-weight: 700; line-height: 1.35; text-align: center; pointer-events: auto; } .cw-qbub[hidden] { display: none; }
/* 23.10: Drukuj (kartka A4, duże litery) */
.cw-print { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body.cw-printing > *:not(.cw-print) { display: none !important; }
  body.cw-printing { background: #fff !important; }
  body.cw-printing .cw-print { display: block; color: #000; font-family: Arial, sans-serif; }
  .cw-print h1 { font-size: 18pt; margin: 0 0 4mm; }
  .cw-print h2 { font-size: 16pt; margin: 4mm 0 2mm; }
  .cw-prT { border-collapse: collapse; margin: 0 auto 4mm; }
  .cw-prT td { width: calc(176mm / var(--n)); height: calc(176mm / var(--n)); max-width: 15mm; max-height: 15mm; border: 0.4mm solid #000; position: relative; padding: 0; vertical-align: middle; text-align: center; }
  .cw-prT td.blk { background: #000; }
  .cw-prT td.pw::after { content: ''; position: absolute; inset: 12%; border: 0.4mm solid #555; border-radius: 50%; }
  .cw-prT td .n { position: absolute; top: 0.4mm; left: 0.6mm; font-size: 8pt; line-height: 1; }
  .cw-prT.sol td b { font-size: 14pt; }
  .cw-prPw { font-size: 14pt; margin: 2mm 0; }
  .cw-prCols { columns: 2; column-gap: 8mm; font-size: 14pt; line-height: 1.35; }
  .cw-prCols ol { list-style: none; margin: 0; padding: 0; }
  .cw-prCols li { break-inside: avoid; margin: 0 0 1.5mm; }
  .cw-prSol { break-before: page; }
  .cw-prSol .cw-prT td { width: calc(120mm / var(--n)); height: calc(120mm / var(--n)); }
}
/* 24.10: krzyżówki tematyczne */
.cw-themesH { font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
/* 26.10: menu ⋮ Opcje */
.cw-optBar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 4px 0 6px; }
.cw-optBtn { gap: 10px; font-size: 19px; min-height: 52px; padding: 10px 22px; border: 2px solid var(--gm-gold, #E3C46A); background: rgba(227,196,106,.12); color: var(--gm-gold3, #FFF1C2); }
.cw-dots { font-size: 26px; line-height: 1; font-weight: 900; }
.cw-optSum { flex: 1 1 220px; margin: 0; font-size: 19px; font-weight: 700; color: var(--gm-ink, #F3EEE2); }
.cw-optsBack { position: fixed; inset: 0; z-index: 2147482000; background: rgba(2,4,16,.72); }
.cw-opts { position: fixed; z-index: 2147482001; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; padding: 22px 24px 26px; border-radius: 18px; background: #0A1434; border: 2px solid rgba(227,196,106,.55); color: var(--gm-ink, #F3EEE2); font-size: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.cw-opts[hidden], .cw-optsBack[hidden] { display: none; }
.cw-optsHead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cw-optsHead h2 { margin: 0; font-size: 24px; }
.cw-optsX { min-width: 52px; font-size: 22px; padding: 8px 14px; }
.cw-optsSec { margin-top: 14px; } .cw-optsSec[hidden] { display: none; }
.cw-optsH2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--gm-gold, #E3C46A); }
.cw-opts .cw-levels { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-opts .cw-themes { margin-top: 10px; }
.cw-opts .cw-topBtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
@media (max-width: 560px) { .cw-opts { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; padding: 18px 16px 24px; } .cw-opts .cw-levels .cw-lvl { flex: 1 1 calc(50% - 10px); } .cw-optBtn { flex: 0 0 auto; } .cw-optBar .gm-gold { flex: 1 1 100%; } }
.cw-optsBack { z-index: 2147483600; } .cw-opts { z-index: 2147483601; } .cw-optBar .gm-gold { white-space: nowrap; } /* 26.10: nad dolnym paskiem aplikacji */
@media (max-width: 560px) { .cw-opts { max-height: 92vh; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }

/* 29.10: telefon i tablet w przeglądarce — dolny pasek Pisaczka (.gm-mbar, 64 px, do 850 px) zasłaniał dół okienka Opcji (Drukuj, Krzyżówka dnia); okienko kończy się nad paskiem */
@media (max-width: 850px) { .cw-opts { top: calc(50% - 32px); max-height: calc(100vh - 40px - 64px - env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { .cw-opts { top: auto; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); max-height: calc(92vh - 64px - env(safe-area-inset-bottom, 0px)); padding-bottom: 24px; } }

/* PNP_PISACZEK_GAMES_CROSSWORD_LEVELS_KR1 — KR1 (10.11.2026): karty poziomów w „Graj” + pasek nad kratką */
#cwPlayPane[data-view="levels"] > :not(#cwLvls):not(.cw-optBar):not(#cwOpts):not(#cwOptsBack) { display: none !important; }
#cwPlayPane[data-view="levels"] #cwNew, #cwPlayPane[data-view="levels"] #cwOptSum { display: none !important; }
.cw-lvlsBox[hidden], .cw-lvlBar[hidden], .cw-optsSec[hidden], .cw-lvlsH3[hidden] { display: none !important; }
.gm-cw[data-mode="learn"] .cw-lvlBar { display: none !important; }
.cw-lvlInfo { display: none !important; }
.cw-lvlsBox { margin: 6px 0 20px; } .cw-lvlsH { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 28px); } .cw-lvlsH3 { margin: 20px 0 10px; font-size: 21px; }
.cw-lvlCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cw-lvlCard { display: grid; gap: 6px; align-content: start; text-align: start; min-height: 112px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(227,196,106,.38); background: rgba(8,14,38,.62); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.cw-lvlCard:hover, .cw-lvlCard:focus-visible { border-color: rgba(227,196,106,.9); transform: translateY(-1px); }
.cw-lvlCard[data-state="now"] { border-color: #E3C46A; box-shadow: 0 0 0 2px rgba(227,196,106,.35); }
.cw-lvlName { font-size: 21px; color: var(--gm-gold, #E3C46A); } .cw-lvlD { font-size: 16px; opacity: .88; } .cw-lvlDone { font-size: 15px; font-weight: 700; color: #56d6c8; }
.cw-lvlBar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 2px 0 10px; font-weight: 700; font-size: 18px; }
@media (max-width: 600px) { .cw-lvlCards { grid-template-columns: 1fr; } .cw-lvlCard { min-height: 92px; } }
/* PNP_PISACZEK_GAMES_CROSSWORD_KR2 (14.11.2026, przegląd gier): przycisk „Nowa krzyżówka” z małą ikoną, bez podwójnego opisu poziomu, pasek pod kratą (hasło na żywo + czas),
   okienko wygranej (rekord, Idealnie, Udostępnij), telefon: definicja + krata + klawiatura na jednym ekranie, duże kraty większe z przesuwaniem w bok */
.cw-optBar #cwNew { display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .cw-optBar #cwNew svg { width: 22px; height: 22px; flex: none; }
#cwPlayPane[data-view="board"] #cwOptSum { display: none !important; }
.cw-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 6px 12px; min-height: 36px; border-radius: 12px; background: rgba(6,12,36,.62); border: 1px solid rgba(227,196,106,.3); }
.cw-strip[hidden], .cw-stripPw[hidden], .cw-clock[hidden], .cw-share[hidden], .cw-wonRec[hidden] { display: none !important; }
.cw-stripPw { display: flex; align-items: center; gap: 8px; min-width: 0; } .cw-stripH { font-size: 15px; color: var(--gm-gold3); }
.cw-stripBoxes { display: flex; flex-wrap: wrap; gap: 3px; }
.cw-sBox { width: 25px; height: 29px; display: grid; place-items: center; border-radius: 6px; background: #F4F6FA; color: #10204A; font-weight: 800; font-size: 16px; box-shadow: inset 0 0 0 2px #C9A24A; }
.cw-sBox.pop { animation: cwPop .35s ease; } @keyframes cwPop { 50% { transform: scale(1.28); background: #FFE9A8; } } .cw-sBox.ok { background: #DDF7E8; }
.cw-clock { margin-inline-start: auto; font: 700 18px/1 var(--gm-body); font-variant-numeric: tabular-nums; color: var(--gm-gold3); white-space: nowrap; }
.cw-dlgBox p.cw-perfect { color: var(--gm-gold3); font-weight: 800; } .cw-dlgBox p.cw-wonRec { color: #8FE3D8; font-weight: 700; } .cw-dlgBox p.cw-wonRec.new { color: var(--gm-gold3); font-size: 1.1em; }
.cw-boardWrap.cw-zoom { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.cw-boardWrap.cw-zoom .cw-board { width: calc(var(--w) * var(--cell, 30px) + 6px); max-width: none; }
.cw-boardWrap.cw-zoom .cw-c { font-size: calc(var(--cell, 30px) * .56) !important; } .cw-boardWrap.cw-zoom .cw-n { font-size: 9px; }
@media (prefers-reduced-motion: reduce) { .cw-sBox.pop { animation: none; } }
@media (max-width: 560px) {
  .cw-optBar #cwNew { flex: 1 1 auto; min-height: 48px; }
  .cw-main { gap: 8px; } .cw-key { height: 46px; }
  .cw-strip { padding: 4px 10px; min-height: 34px; } .cw-sBox { width: 23px; height: 27px; font-size: 15px; }
  /* krata otwarta: „‹ Pisaczek” nie zasłania paska definicji, koło ratunkowe (prawy środek) = wąski pasek przy krawędzi, nie zasłania kraty */
  body:has(#cwPlayPane[data-view="board"]:not([hidden])) .gm-backTop { display: none !important; }
  body:has(#cwPlayPane[data-view="board"]:not([hidden])) .pnp-lb-btn { width: 9px !important; min-width: 0 !important; height: 64px !important; padding: 0 !important; overflow: hidden !important; border-radius: 8px 0 0 8px !important; opacity: .9; }
  body:has(#cwPlayPane[data-view="board"]:not([hidden])) .pnp-lb-btn > * { display: none !important; }
}
/* KR2: okienko wygranej przypięte od góry — po dotknięciu znika napis „Za 5 s przejdę dalej sam”, a wyśrodkowane okienko skakało w dół i palec trafiał obok przycisku (telefon: „Zamknij” nie działał za pierwszym razem) */
#cwWon.cw-dlg { place-items: start center; padding-top: max(16px, 10vh); overflow-y: auto; }
@media (max-width: 560px) { /* KR2: okienko wygranej mieści się nad dolnym paskiem */
  #cwWon.cw-dlg { padding-top: 12px; } #cwWon .cw-dlgBox { padding: 16px 14px; font-size: 17px; } #cwWon .cw-dlgBox p { margin: 0 0 8px; } #cwWon h2 { margin: 0 0 8px; }
  #cwWon .cw-dlgBtns { gap: 8px; margin-top: 10px; } #cwWon .cw-dlgBtns .gm-btn { min-height: 48px; min-width: 0; font-size: 17px; flex: 1 1 100%; } #cwWon .cw-dlgBtns #cwWonClose, #cwWon .cw-dlgBtns #cwWonShare { flex: 1 1 40%; }
  #cwWon .gm-autoNote { font-size: 14px !important; margin-top: 6px !important; }
}
/* PNP_PISACZEK_GAMES_CROSSWORD_TOPICS_KT1 (15.11.2026): temat krzyżówki + 🎲 Losuj nad poziomami */
.cw-topics { margin: 0 0 22px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(227,196,106,.38); background: rgba(13,24,60,.72); }
.cw-topics[hidden] { display: none !important; }
.cw-topicsH { margin: 0 0 12px; }
.cw-topicChips { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(227,196,106,.45); background: rgba(255,255,255,.04); color: #F3E7C2; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.cw-chip:hover { background: rgba(227,196,106,.14); }
.cw-chip[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); border-color: var(--gm-gold); }
.cw-chip:focus-visible { outline: 3px solid #8FE3D8; outline-offset: 2px; }
.cw-roll { border-style: dashed; border-color: #8FE3D8; color: #BFF3EC; }
.cw-chip.cw-spin { background: rgba(143,227,216,.28); transform: scale(1.06); }
.cw-chip.cw-landed { animation: cwLand .7s ease; }
@keyframes cwLand { 0% { transform: scale(1); } 35% { transform: scale(1.14); box-shadow: 0 0 0 6px rgba(255,216,77,.25); } 100% { transform: scale(1); } }
.cw-topicPv { display: grid; gap: 6px; margin-top: 14px; justify-items: start; }
.cw-topicPv.cw-pop { animation: cwPv .45s ease; }
@keyframes cwPv { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cw-topicName { font-size: 21px; color: var(--gm-gold3); }
.cw-topicD { margin: 0; font-size: 17px; line-height: 1.5; color: #E8E1CC; }
.cw-topicN { font-size: 15px; color: #8FE3D8; }
.cw-topicGo { margin-top: 6px; }
@media (max-width: 600px) { .cw-topics { padding: 14px 12px; } .cw-chip { font-size: 16px; padding: 8px 13px; } .cw-topicGo { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cw-chip, .cw-topicPv.cw-pop, .cw-chip.cw-landed { animation: none; transition: none; } }
/* PNP_PISACZEK_GAMES_CROSSWORD_TOPICS_KT2: wylosowany nowy temat jako dodatkowy przycisk */
.cw-chip.cw-chipX { border-color: #8FE3D8; }
/* PNP_PISACZEK_GAMES_CROSSWORD_TOPICS_KT3: „Wszystkie tematy” — lista w grupach */
.cw-allBtn { border-color: rgba(227,196,106,.7); }
.cw-topicAll { display: grid; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(227,196,106,.25); }
.cw-topicGrpH { display: block; margin-bottom: 8px; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: #8FE3D8; }
.cw-topicGrpL { display: flex; flex-wrap: wrap; gap: 8px; }
.cw-topicItem { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(227,196,106,.4); background: rgba(13,24,60,.6); color: #F3E7C2; font: inherit; font-size: 16px; cursor: pointer; }
.cw-topicItem:hover { background: rgba(227,196,106,.14); }
.cw-topicItem[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.cw-topicItem:focus-visible { outline: 3px solid #8FE3D8; outline-offset: 2px; }
@media (max-width: 600px) { .cw-topicAll { padding: 12px 10px; } .cw-topicItem { font-size: 15px; padding: 8px 11px; } }
