/* Pisaczek Rozrywka — Słowo dnia (R16) SD1. Marker: PNP_PISACZEK_GAMES_WORDDAY_CSS_V1. Wzór: Wykreślanka WS1 (układ, panel, lekcje, znajomi); kafelki prób, klawiatura, kolory zielony / żółty / szary. */
/* Pisaczek Rozrywka — Stereogramy i złudzenia (wzór: Spostrzegawczość SP1.1). Marker: PNP_PISACZEK_GAMES_WORDDAY_CSS_V1, wersja 1 (2.11.2026). Seniorzy: tekst ≥ 18 px, przyciski ≥ 54 px, duże obrazki. Nic nie miga. */
.gm-sd .gm-back { color: var(--gm-gold); text-decoration: none; font-size: 18px; }
.gm-sd .gm-ghost { background: rgba(255,255,255,.04); color: var(--gm-ink); border: 1px solid rgba(227,196,106,.45); }
.gm-sd .gm-btn, .gm-sd .gm-btn:hover { transform: none; } .gm-sd .gm-btn { min-height: 54px; font-size: 18px; gap: 8px; }
.gm-sd .gm-btn svg { width: 22px; height: 22px; } .gm-sd .gm-btn:disabled { opacity: .5; cursor: default; }
.sd-tabs { align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(6,12,36,.55); border: 1px solid rgba(227,196,106,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.4); } /* klasa cw-tabs tylko po to, by napis „O co chodzi w tej grze?” stanął w tej linii */
.sd-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; }
.sd-tabs button svg { width: 22px; height: 22px; } .sd-tabs button:hover { background: rgba(227,196,106,.12); color: var(--gm-gold3); }
.sd-tabs button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.sd-tabs button:focus-visible, .sd-tool:focus-visible, .sd-lvl:focus-visible, .sd-lItem:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.sd-pane[hidden], .sd-pane [hidden], .gm-sd [hidden] { display: none !important; }
.sd-muted { color: var(--gm-mute); font-size: 17px; } .sd-lead { color: var(--gm-mute); font-size: 19px; line-height: 1.5; margin: 0; }
.sd-h2 { font-size: 26px; margin: 0 0 12px; color: var(--gm-gold3); }
.sd-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .sd-rowL { justify-content: flex-start; flex-wrap: nowrap; }
.sd-say { margin: 0; padding: 14px 16px; border-radius: 14px; font-size: 19px; line-height: 1.45; color: #0B1430; background: #EAF7F5; border-inline-start: 6px solid #1C9C8E; }
.sd-say.ok { background: #E3F6E8; border-color: #2BA05A; } .sd-say.bad { background: #FDECEA; border-color: #D0453A; } .sd-say.hint { background: #FFF6D8; border-color: #C7A23E; }
.sd-say:empty { display: none; }
.sd-now { padding: 16px 18px; border-radius: 16px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.sd-now b { display: block; font-size: 18px; color: var(--gm-gold3); margin-bottom: 4px; } .sd-now p { margin: 0; font-size: 20px; line-height: 1.45; }
.sd-nowM { display: none; margin: 0; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.75); font-size: 19px; line-height: 1.4; }
.sd-nowM:empty { display: none !important; }

/* układ: stół po lewej, panel po prawej (telefon: jedno pod drugim) */
.sd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.sd-work { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sd-side { display: flex; flex-direction: column; gap: 14px; }
.sd-topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; }
.sd-topbar b { font-size: 21px; color: var(--gm-gold3); } .sd-stat { display: flex; gap: 16px; font-size: 18px; color: var(--gm-mute); } .sd-stat b { color: var(--gm-ink); font-size: 18px; }

/* stół i karty */
/* plansza (zamiast stołu): ciemne tło, w środku obrazy / siatka; uchwyt rozmiaru w rogu */
.sd-stage { direction: ltr; position: relative; width: 100%; min-height: 200px; border-radius: 18px; border: 2px solid rgba(227,196,106,.5); user-select: none; -webkit-user-select: none; box-sizing: border-box;
  background: radial-gradient(120% 90% at 50% 0%, #17265A, #0A1336 78%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.sd-box0 { box-sizing: border-box; height: 100%; display: flex; justify-content: center; align-items: flex-start; }
.sd-stageOn .sd-grip { z-index: 50; }
.sd-prog { font-size: 19px; color: var(--gm-gold3); font-weight: 700; min-height: 24px; }
/* obrazy (różnice, ukryty przedmiot) */
.sd-glowCell { box-shadow: 0 0 0 4px #F1C64A, 0 0 18px 6px rgba(241,198,74,.85) !important; animation: wsPulse 1.3s ease-in-out infinite; }
@keyframes wsPulse { 50% { box-shadow: 0 0 0 6px #FFE08A, 0 0 28px 10px rgba(241,198,74,.95) !important; } }
/* Graj — wybór zabawy */
.sd-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sd-act { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; min-height: 190px; border-radius: 18px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.62); color: var(--gm-ink); font: inherit; text-align: start; cursor: pointer; }
.sd-act:hover { border-color: var(--gm-gold); background: rgba(227,196,106,.1); } .sd-act[aria-pressed="true"] { border: 2px solid var(--gm-gold); }
.sd-actName { font-size: 21px; color: var(--gm-gold3); } .sd-actD { font-size: 17px; color: var(--gm-mute); line-height: 1.35; } .sd-actDone { font-size: 17px; font-weight: 700; color: #8FE3D8; margin-top: auto; }
.sd-actArt { display: block; height: 60px; margin-bottom: 4px; } .sd-actArt svg { width: 52px; height: 52px; }
.sd-backActs { margin-bottom: 14px; }
.sd-lvlArt { display: flex; gap: 5px; height: 40px; margin-bottom: 4px; } .sd-lvlArt i { width: 22px; height: 30px; border-radius: 5px; background: #FFFDF6; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.sd-contArt { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(227,196,106,.16); color: var(--gm-gold3); } .sd-contArt svg { width: 34px; height: 34px; }
.sd-chArt { flex: none; } .sd-chArt .sd-aa2 i, .sd-chArt .sd-aa4 i, .sd-chArt .sd-aa5 i { width: 34px; height: 38px; } .sd-chArt svg { width: 30px; height: 30px; } .sd-chArt .sd-aa3 { grid-template-columns: repeat(3, 11px); } .sd-chArt .sd-aa3 i { width: 11px; height: 11px; }
/* narzędzia pod stołem */
.sd-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.sd-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.5); background: rgba(6,12,36,.65); color: var(--gm-ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; flex: 1 1 auto; }
.sd-tool svg { width: 24px; height: 24px; } .sd-tool:hover { background: rgba(227,196,106,.14); }
/* PNP_PISACZEK_GAMES_WORDDAY_UNDO_V1 (COF1 8.11): „Cofnij” wyłączony, gdy nie ma czego cofać — widoczny, ale przygaszony */
.sd-tool:disabled { opacity: .45; cursor: default; } .sd-tool:disabled:hover { background: rgba(6,12,36,.65); }
.sd-glow { animation: wsGlow 1.2s ease-in-out infinite; } @keyframes wsGlow { 50% { box-shadow: 0 0 0 4px #2BC26A, 0 0 24px 6px rgba(43,194,106,.8); } }

/* okno wygranej */
.sd-dlg { position: absolute; left: 50%; top: 90px; transform: translateX(-50%); z-index: 4000; width: min(520px, calc(100% - 24px)); box-sizing: border-box; padding: 24px 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(14,24,64,.97), rgba(6,12,36,.97)); border: 2px solid var(--gm-gold); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.sd-dlg h2 { margin: 0 0 8px; font-size: 28px; color: var(--gm-gold3); } .sd-dlg p { font-size: 20px; margin: 0 0 14px; } .sd-dlg .gm-autoNote { margin-top: 12px; }
.sd-chRes { color: var(--gm-gold3); font-weight: 700; }

/* panel boczny */
.sd-lvlPick { display: flex; align-items: center; gap: 10px; font-size: 18px; } .sd-lvlPick select { flex: 1; min-height: 50px; font: inherit; font-size: 18px; border-radius: 12px; padding: 6px 10px; background: #0B1430; color: var(--gm-ink); border: 1.5px solid rgba(227,196,106,.5); }
.sd-how { border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); padding: 12px 16px; font-size: 18px; line-height: 1.5; }
.sd-how summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); min-height: 32px; } .sd-how p { margin: 10px 0 0; }
.sd-opt { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 18px; cursor: pointer; } .sd-opt input { width: 24px; height: 24px; accent-color: var(--gm-gold); flex: none; }
.sd-optSet { border: 0; padding: 0; margin: 14px 0 0; } .sd-optSet legend { font-weight: 700; color: var(--gm-mute); }

/* Graj — wybór poziomu */
.sd-cont { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 22px; border-radius: 18px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.sd-cont b { font-size: 21px; color: var(--gm-gold3); } .sd-cont p { margin: 4px 0 0; font-size: 18px; } .sd-cont > div { flex: 1; } .sd-contArt { width: 46px; height: 62px; flex: none; border-radius: 6px; background: linear-gradient(160deg, #FFFEF8, #E6DAB8); border: 1px solid #B9A97F; box-shadow: -4px 4px 0 #CDBB8C, -7px 7px 0 #8F7A45; position: relative; }
.sd-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sd-lvl { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; min-height: 170px; border-radius: 18px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.62); color: var(--gm-ink); font: inherit; text-align: start; cursor: pointer; }
.sd-lvl:hover { border-color: var(--gm-gold); background: rgba(227,196,106,.1); } .sd-lvl[aria-pressed="true"] { border: 2px solid var(--gm-gold); }
.sd-lvlName { font-size: 21px; color: var(--gm-gold3); } .sd-lvlD { font-size: 17px; color: var(--gm-mute); line-height: 1.35; } .sd-lvlDone { font-size: 17px; font-weight: 700; color: #8FE3D8; margin-top: auto; }
.sd-lvlArt { display: flex; height: 54px; margin-bottom: 4px; } .sd-lvlArt i { width: 38px; height: 50px; border-radius: 6px; background: linear-gradient(160deg, #FFFEF8, #E6DAB8); border: 1px solid #B9A97F; box-shadow: -3px 3px 0 #CDBB8C, -5px 5px 0 #8F7A45; margin-inline-end: -10px; margin-top: calc(var(--k, 0) * 1px); position: relative; }
.sd-lvlArt-pro i { box-shadow: 0 0 0 2px var(--gm-gold), 0 2px 5px rgba(0,0,0,.4); }
.sd-note { margin: 14px 0 0; }
.sd-daily { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border-radius: 18px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.62); }
.sd-daily > div { flex: 1; display: flex; flex-direction: column; gap: 4px; } .sd-daily b { font-size: 19px; } .sd-dailyArt svg { width: 46px; height: 46px; color: var(--gm-gold); }

/* Naucz się */
.sd-lesson h2 { margin: 6px 0 4px; font-size: 26px; color: var(--gm-gold3); } .sd-lnSteps { margin: 0 0 12px; color: var(--gm-mute); font-size: 18px; }
.sd-lesson { display: flex; flex-direction: column; gap: 14px; } .sd-lesson > * { margin-top: 0; margin-bottom: 0; }
.sd-desc { border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); padding: 12px 16px; font-size: 18px; line-height: 1.5; } .sd-desc summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); }
.sd-keep { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(227,196,106,.12); }
.sd-lnAll { align-self: flex-start; }
.sd-lessons { display: flex; flex-direction: column; gap: 10px; }
.sd-lItem { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.35); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 18px; text-align: start; cursor: pointer; }
.sd-lItem span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .sd-lItem b { font-size: 15px; color: var(--gm-mute); font-weight: 600; } .sd-lItem i { font-style: normal; color: #8FE3D8; font-size: 22px; }
.sd-lNo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(227,196,106,.18); color: var(--gm-gold3); flex: none; } .sd-lItem.done .sd-lNo { background: #2BA05A; color: #fff; }

/* Ze znajomymi i okna */
.sd-frHead { margin-bottom: 18px; } .sd-frH { font-size: 22px; margin: 26px 0 12px; color: var(--gm-gold3); }
.sd-card0, .sd-chCard { padding: 18px 20px; border-radius: 18px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.62); font-size: 18px; }
.sd-card0 h3 { margin: 0 0 8px; font-size: 21px; color: var(--gm-gold3); } .sd-card0 p { margin: 0 0 14px; line-height: 1.5; }
.sd-chCard { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; } .sd-chCard > div { flex: 1; display: flex; flex-direction: column; gap: 6px; } .sd-chCard p { margin: 0; }
.sd-chCard .sd-row { justify-content: flex-start; margin-top: 6px; } .sd-chHot { border-color: var(--gm-gold); box-shadow: 0 0 0 2px var(--gm-gold); }
.sd-chHead { padding: 12px 16px; border-radius: 14px; background: rgba(227,196,106,.14); border: 1.5px solid var(--gm-gold); font-size: 19px; margin-bottom: 12px; }
.sd-big { position: fixed; inset: 0; z-index: 2147483200; display: grid; place-items: center; padding: 16px; background: rgba(2,4,14,.72); }
.sd-box { width: min(560px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #0E1840, #060C24); border: 2px solid var(--gm-gold); font-size: 19px; }
.sd-box h2 { margin: 0; color: var(--gm-gold3); font-size: 25px; } .sd-box p { margin: 0; line-height: 1.5; } .sd-box input { flex: 1; min-width: 0; min-height: 52px; font: inherit; font-size: 18px; border-radius: 12px; padding: 8px 12px; border: 1.5px solid rgba(227,196,106,.5); background: #0B1430; color: var(--gm-ink); }
.sd-lbl { font-weight: 700; } .sd-or { text-align: center; color: var(--gm-mute); }

@media (max-width: 1100px) { .sd-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sd-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 999px) { .sd-layout { grid-template-columns: minmax(0, 1fr); } .sd-nowM { display: block; } #wsGame .sd-side > .sd-now { display: none; } }
@media (max-width: 560px) {
  .sd-tabs { align-self: stretch; } .sd-tabs button { padding: 10px 14px; flex: 1 1 auto; justify-content: center; }
  .sd-stage { margin-inline: -12px; width: calc(100% + 24px); border-radius: 12px; border-width: 1.5px; }
  .sd-tool { padding: 8px 10px; font-size: 17px; flex: 1 1 40%; } .sd-dlg { top: 40px; padding: 20px 14px; } .sd-dlg h2 { font-size: 24px; }
  .sd-levels, .sd-acts { grid-template-columns: minmax(0, 1fr); } .sd-lvl, .sd-act { min-height: 0; } .sd-cont, .sd-daily { flex-wrap: wrap; } .sd-cont .gm-btn, .sd-daily .gm-btn { width: 100%; }
  .sd-rowL { flex-wrap: wrap; } .sd-topbar { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .sd-glow, .sd-glowCell, .sd-k.guideK, .sd-txtIn.sd-guideIn { animation: none !important; } .sd-ans { transition: none !important; } }

/* S1.2 (30.10, prośba właściciela): Podpowiedź — duży złoty przycisk pod „Co dalej” (telefon: pod zdaniem nad stołem) */
.gm-sd .sd-hintBtn { width: 100%; min-height: 60px; font-size: 20px; border-radius: 16px; gap: 10px; box-shadow: 0 10px 26px rgba(227,196,106,.35), inset 0 1px 0 rgba(255,255,255,.6); }
.gm-sd .sd-hintBtn svg { width: 28px; height: 28px; } .gm-sd .sd-hintBtn:hover { box-shadow: 0 12px 32px rgba(227,196,106,.55), inset 0 1px 0 rgba(255,255,255,.6); }
.sd-hintM { display: none !important; } .sd-side .sd-hintBtn { margin-top: -4px; }
/* S1.2: rozmiar stołu — suwaki pod stołem i uchwyt w rogu */
.sd-size { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); font-size: 18px; }
.sd-size > b { color: var(--gm-gold3); font-size: 18px; } .sd-sz { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; } .sd-sz span { white-space: nowrap; }
.sd-sz input { flex: 1; min-width: 110px; height: 32px; accent-color: var(--gm-gold); } .sd-szReset { flex: 0 0 auto; min-height: 48px; font-size: 17px; }
.sd-grip { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; z-index: 3100; cursor: nwse-resize; touch-action: none; border-radius: 0 0 14px 0;
  background: linear-gradient(135deg, transparent 50%, rgba(227,196,106,.85) 50%, rgba(227,196,106,.85) 56%, transparent 56%, transparent 66%, rgba(227,196,106,.85) 66%, rgba(227,196,106,.85) 72%, transparent 72%, transparent 82%, rgba(227,196,106,.85) 82%, rgba(227,196,106,.85) 88%, transparent 88%); }
.sd-grip:hover { background-color: rgba(227,196,106,.12); }
.sd-layout.sd-stack { grid-template-columns: minmax(0, 1fr); } .sd-layout.sd-stack .sd-side { max-width: 760px; }
@media (max-width: 999px) { .sd-hintM { display: inline-flex !important; } .sd-side .sd-hintBtn:not(.sd-hintM) { display: none; } .gm-sd .sd-hintBtn.sd-hintM { min-height: 56px; } }
@media (max-width: 560px) { .sd-size { padding: 10px 12px; } .sd-sz { flex-basis: 100%; } .sd-szReset { width: 100%; } }
/* S1.4: „Jak to działa?” w Ze znajomymi */
.sd-howList { margin: 0 0 16px; padding-inline-start: 26px; font-size: 18px; line-height: 1.5; } .sd-howList li { margin-bottom: 8px; } .sd-howList li::marker { color: var(--gm-gold); font-weight: 800; }
.sd-frLogin { margin-top: 14px; }
/* S1.5: rozmiar stołu — układ może wyjść poza środkową kolumnę strony (przesunięcie left), uchwyt po stronie, która się rusza */
.sd-layout { position: relative; } .sd-resizing, .sd-resizing * { cursor: nwse-resize !important; } 
[dir="rtl"] .sd-grip { right: auto; left: 2px; transform: scaleX(-1); cursor: nesw-resize; }

/* WS1: pytanie — obraz, odpowiedzi, „Dlaczego?” */
.sd-chArt svg { width: 34px; height: 34px; } .sd-chArt .sd-aa4 svg, .sd-chArt .sd-aa5 svg { width: 48px; height: 34px; } .sd-chArt .sd-aa1 { width: 44px; height: 36px; } .sd-chArt .sd-aa1 svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- SD1: kafelki prób i klawiatura */
.sd-play { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; position: relative; }
/* SD1.1: zielona strzałka następnego ruchu (standard gier, jak Sudoku) */
.sd-arrow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; opacity: .92; overflow: visible; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.sd-txtIn.sd-guideIn { box-shadow: 0 0 0 3px #E3C46A; animation: sdGlow 1.4s ease-in-out infinite; }
.sd-grid { display: grid; gap: 6px; }
.sd-rowT { display: grid; grid-template-columns: repeat(var(--n), var(--s, 56px)); gap: 6px; }
.sd-rowT.sd-shake { animation: sdShake .32s ease-in-out; } @keyframes sdShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.sd-t { width: var(--s, 56px); height: var(--s, 56px); display: grid; place-items: center; box-sizing: border-box; border-radius: 10px; border: 2px solid rgba(227,196,106,.35); background: rgba(255,255,255,.04);
  font-family: system-ui, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif; font-weight: 800; font-size: max(20px, calc(var(--s, 56px) * .52)); line-height: 1; color: #FFFDF6; user-select: none; }
.sd-t.sd-tw { font-size: max(13px, calc(var(--s, 56px) * .34)); letter-spacing: -.02em; }
.sd-t.typed { border-color: #FFFDF6; background: rgba(255,255,255,.1); animation: sdPop .12s ease-out; } @keyframes sdPop { 50% { transform: scale(1.08); } }
.sd-t.hintT { border-color: #E3C46A; color: #E3C46A; background: rgba(227,196,106,.14); border-style: dashed; }
.sd-t.guideT { box-shadow: 0 0 0 3px #E3C46A; }
.sd-t.s2, .sd-legend .s2, .sd-used .s2, .sd-k.s2, .sd-mini .s2 { background: #3E9E5A; border-color: #3E9E5A; color: #fff; }
.sd-t.s1, .sd-legend .s1, .sd-used .s1, .sd-k.s1, .sd-mini .s1 { background: #C9A227; border-color: #C9A227; color: #1d1a3a; }
.sd-t.s0, .sd-legend .s0, .sd-used .s0, .sd-k.s0 { background: #4A4F63; border-color: #4A4F63; color: #E6E6EE; }
.sd-t.sd-flip { animation: sdFlip .42s ease-in-out both; } @keyframes sdFlip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.sd-kb { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 760px; }
.sd-kbRow { display: flex; justify-content: center; gap: 5px; }
.sd-k { flex: 1 1 0; min-width: 0; max-width: 64px; min-height: 56px; padding: 0 2px; border-radius: 10px; border: 1px solid rgba(227,196,106,.4); background: rgba(255,255,255,.1); color: #FFFDF6;
  font: inherit; font-size: 21px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.sd-k:hover { border-color: var(--gm-gold, #E3C46A); } .sd-k:active { transform: translateY(1px); }
.sd-k.sd-kWide { flex: 1.6 1 0; max-width: 104px; font-size: 16px; }
.sd-k.guideK { box-shadow: 0 0 0 3px #E3C46A; animation: sdGlow 1.4s ease-in-out infinite; } @keyframes sdGlow { 50% { box-shadow: 0 0 0 6px rgba(227,196,106,.35); } }
.sd-txt { display: flex; gap: 8px; width: 100%; max-width: 520px; margin: 0 auto; }
.sd-txtIn { flex: 1; min-width: 0; min-height: 56px; font-size: 26px; padding: 6px 14px; border-radius: 12px; border: 2px solid rgba(227,196,106,.6); background: rgba(255,255,255,.08); color: #FFFDF6; }
.sd-used { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 10px; } .sd-used i { font-style: normal; font-weight: 800; font-size: 20px; padding: 4px 10px; border-radius: 8px; }
.sd-legend i { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: -3px; margin-inline-end: 6px; }
.sd-mini { display: inline-flex; gap: 3px; } .sd-mini i { width: 14px; height: 14px; border-radius: 3px; border: 2px solid rgba(227,196,106,.5); }
.sd-lvlArt { display: block; height: 22px; margin-bottom: 6px; } .sd-chArt .sd-mini i { width: 8px; height: 8px; }
.sd-word { font-size: 22px; } .sd-word b { color: var(--gm-gold, #E3C46A); letter-spacing: 2px; }
.sd-also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(227,196,106,.5); }
.sd-also > div { flex: 1 1 200px; } .sd-also .gm-kicker { flex-basis: 100%; }
.gm-sd[data-rtl] .sd-t, .gm-sd[data-rtl] .sd-k { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }
@media (prefers-reduced-motion: reduce) { .sd-t, .sd-rowT, .sd-k { animation: none !important; } }
@media (max-width: 520px) { .sd-k { min-height: 52px; font-size: 18px; border-radius: 8px; } .sd-kbRow { gap: 3px; } .sd-k.sd-kWide { font-size: 13px; } }
/* LK1 (2.11.2026): koniec lekcji na telefonie — „Następna lekcja” i „Jeszcze raz” pod „Co dalej” nad planszą; Podpowiedź znika po ukończeniu lekcji */
.sd-finM { display: none !important; }
@media (max-width: 999px) { .sd-finM:not([hidden]) { display: flex !important; } }
.gm-sd .sd-hintBtn[hidden] { display: none !important; }
/* PNP_PISACZEK_GAMES_WORDDAY_SD5 (18.11.2026): telefon — plansza i klawiatura na jednym ekranie (JS S.fitH), bez uchwytu rozmiaru (zakrywał ⌫; suwaki w „Opcje”), niskie karty poziomów; ar/uk Sprawdź i ⌫ w osobnym rzędzie */
.sd-kbOwn .sd-k.sd-kWide { flex: 0 1 150px; max-width: 150px; }
#sdOpts .sd-size { margin-top: 10px; padding: 10px 12px; }
@media (max-width: 999px) {
  .sd-grip { display: none !important; }
  #sdGame .sd-nowM { min-height: 5.6em; padding: 8px 12px; font-size: 16px; line-height: 1.35; }
  .gm-sd #sdGame .sd-hintBtn.sd-hintM { min-height: 44px; padding-block: 6px; font-size: 18px; }
  #sdGame .sd-work { gap: 8px; }
}
@media (max-width: 520px) { #sdGame .sd-k { min-height: 46px; } #sdGame .sd-kb { gap: 6px; } }
@media (max-width: 560px) {
  .sd-lvl { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 12px 14px; min-height: 0; }
  .sd-lvl .sd-lvlArt { grid-row: 1 / 3; margin: 0; height: auto; }
  .sd-lvl .sd-lvlName { font-size: 19px; }
  .sd-lvl .sd-lvlD, .sd-lvl .sd-lvlDone { grid-column: 2; font-size: 15px; margin: 0; }
  .sd-lvl .sd-lvlD { display: inline; } .sd-lvl .sd-lvlDone { margin-top: 0; }
}
/* PNP_PISACZEK_GAMES_WORDDAY_SD5B (18.11.2026): telefon — komunikat po „Sprawdź” (nieznane słowo, za mało liter, tryb trudny) w „Co dalej” u góry, na czerwono, 4 s */
#sdGame .sd-nowM.sd-nowBad { border-color: #F07178; background: rgba(80,12,24,.88); color: #FFE3E3; font-weight: 700; }
