/* Pisaczek Rozrywka — Grupy dnia (R19). Marker: PNP_PISACZEK_GAMES_GROUPS_CSS_V1. GQ1 (5.11.2026). Układ strony jak w Kulkach (lines-v1.css), plansza słów niżej. */
.gm-gq .gm-back { color: var(--gm-gold); text-decoration: none; font-size: 18px; }
.gm-gq .gm-ghost { background: rgba(255,255,255,.04); color: var(--gm-ink); border: 1px solid rgba(227,196,106,.45); }
.gm-gq .gm-btn, .gm-gq .gm-btn:hover { transform: none; } .gm-gq .gm-btn { min-height: 54px; font-size: 18px; gap: 8px; }
.gm-gq .gm-btn svg { width: 22px; height: 22px; } .gm-gq .gm-btn:disabled { opacity: .5; cursor: default; }
.gq-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 */
.gq-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; }
.gq-tabs button svg { width: 22px; height: 22px; } .gq-tabs button:hover { background: rgba(227,196,106,.12); color: var(--gm-gold3); }
.gq-tabs button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.gq-tabs button:focus-visible, .gq-tool:focus-visible, .gq-lvl:focus-visible, .gq-lItem:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.gq-pane[hidden], .gq-pane [hidden], .gm-gq [hidden] { display: none !important; }
.gq-muted { color: var(--gm-mute); font-size: 17px; } .gq-lead { color: var(--gm-mute); font-size: 19px; line-height: 1.5; margin: 0; }
.gq-h2 { font-size: 26px; margin: 0 0 12px; color: var(--gm-gold3); }
.gq-row2 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .gq-rowL { justify-content: flex-start; flex-wrap: nowrap; }
.gq-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; }
.gq-say.ok { background: #E3F6E8; border-color: #2BA05A; } .gq-say.bad { background: #FDECEA; border-color: #D0453A; } .gq-say.hint { background: #FFF6D8; border-color: #C7A23E; }
.gq-say:empty { display: none; }
/* GQ2: komunikat w grze jako dymek — plansza i „Sprawdź” zostają na miejscu */
#gqGame .gq-work { position: relative; } #gqGame #gqSay { position: absolute; z-index: 30; inset-inline: 0; top: -6px; box-shadow: 0 10px 28px rgba(0,0,0,.45); pointer-events: none; }
@media (max-width: 999px) { #gqGame #gqSay { position: fixed; top: 70px; inset-inline: 12px; z-index: 3900; } }
.gq-now { padding: 16px 18px; border-radius: 16px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.gq-now b { display: block; font-size: 18px; color: var(--gm-gold3); margin-bottom: 4px; } .gq-now p { margin: 0; font-size: 20px; line-height: 1.45; }
.gq-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; }
.gq-nowM:empty { display: none !important; }

/* układ: stół po lewej, panel po prawej (telefon: jedno pod drugim) */
.gq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.gq-work { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gq-side { display: flex; flex-direction: column; gap: 14px; }
.gq-topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; }
.gq-topbar b { font-size: 21px; color: var(--gm-gold3); } .gq-stat { display: flex; gap: 16px; font-size: 18px; color: var(--gm-mute); } .gq-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 */
.gq-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; }
.gq-box0 { box-sizing: border-box; height: 100%; display: flex; justify-content: center; align-items: flex-start; }
.gq-stageOn .gq-grip { z-index: 50; }
.gq-prog { font-size: 19px; color: var(--gm-gold3); font-weight: 700; min-height: 24px; }
/* obrazy (różnice, ukryty przedmiot) */
.gq-glowCell { box-shadow: 0 0 0 4px #F1C64A, 0 0 18px 6px rgba(241,198,74,.85) !important; animation: gqPulse 1.3s ease-in-out infinite; }
@keyframes gqPulse { 50% { box-shadow: 0 0 0 6px #FFE08A, 0 0 28px 10px rgba(241,198,74,.95) !important; } }
/* Graj — wybór zabawy */
.gq-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gq-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; }
.gq-act:hover { border-color: var(--gm-gold); background: rgba(227,196,106,.1); } .gq-act[aria-pressed="true"] { border: 2px solid var(--gm-gold); }
.gq-actName { font-size: 21px; color: var(--gm-gold3); } .gq-actD { font-size: 17px; color: var(--gm-mute); line-height: 1.35; } .gq-actDone { font-size: 17px; font-weight: 700; color: #8FE3D8; margin-top: auto; }
.gq-actArt { display: block; height: 60px; margin-bottom: 4px; } .gq-actArt svg { width: 52px; height: 52px; }
.gq-backActs { margin-bottom: 14px; }
.gq-lvlArt { display: flex; gap: 5px; height: 40px; margin-bottom: 4px; } .gq-lvlArt i { width: 22px; height: 30px; border-radius: 5px; background: #FFFDF6; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.gq-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); } .gq-contArt svg { width: 34px; height: 34px; }
.gq-chArt { flex: none; } .gq-chArt .gq-aa2 i, .gq-chArt .gq-aa4 i, .gq-chArt .gq-aa5 i { width: 34px; height: 38px; } .gq-chArt svg { width: 30px; height: 30px; } .gq-chArt .gq-aa3 { grid-template-columns: repeat(3, 11px); } .gq-chArt .gq-aa3 i { width: 11px; height: 11px; }
/* narzędzia pod stołem */
.gq-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.gq-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; }
.gq-tool svg { width: 24px; height: 24px; } .gq-tool:hover { background: rgba(227,196,106,.14); }
.gq-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 */
.gq-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, #0E1840, #060C24); border: 2px solid var(--gm-gold); box-shadow: 0 0 0 100vmax rgba(3,6,18,.45), 0 24px 60px rgba(0,0,0,.6); } /* GQ2: pełne tło + przyciemnienie wokół */
.gq-dlg h2 { margin: 0 0 8px; font-size: 28px; color: var(--gm-gold3); } .gq-dlg p { font-size: 20px; margin: 0 0 14px; } .gq-dlg .gm-autoNote { margin-top: 12px; }
.gq-chRes { color: var(--gm-gold3); font-weight: 700; }

/* panel boczny */
.gq-lvlPick { display: flex; align-items: center; gap: 10px; font-size: 18px; } .gq-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); }
.gq-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; }
.gq-how summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); min-height: 32px; } .gq-how p { margin: 10px 0 0; }
.gq-opt { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 18px; cursor: pointer; } .gq-opt input { width: 24px; height: 24px; accent-color: var(--gm-gold); flex: none; }
.gq-optSet { border: 0; padding: 0; margin: 14px 0 0; } .gq-optSet legend { font-weight: 700; color: var(--gm-mute); }

/* Graj — wybór poziomu */
.gq-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); }
.gq-cont b { font-size: 21px; color: var(--gm-gold3); } .gq-cont p { margin: 4px 0 0; font-size: 18px; } .gq-cont > div { flex: 1; } .gq-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; }
.gq-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gq-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; }
.gq-lvl:hover { border-color: var(--gm-gold); background: rgba(227,196,106,.1); } .gq-lvl[aria-pressed="true"] { border: 2px solid var(--gm-gold); }
.gq-lvlName { font-size: 21px; color: var(--gm-gold3); } .gq-lvlD { font-size: 17px; color: var(--gm-mute); line-height: 1.35; } .gq-lvlDone { font-size: 17px; font-weight: 700; color: #8FE3D8; margin-top: auto; }
.gq-lvlArt { display: flex; height: 54px; margin-bottom: 4px; } .gq-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; }
.gq-lvlArt-pro i { box-shadow: 0 0 0 2px var(--gm-gold), 0 2px 5px rgba(0,0,0,.4); }
.gq-note { margin: 14px 0 0; }
.gq-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); }
.gq-daily > div { flex: 1; display: flex; flex-direction: column; gap: 4px; } .gq-daily b { font-size: 19px; } .gq-dailyArt svg { width: 46px; height: 46px; color: var(--gm-gold); }

/* Naucz się */
.gq-lesson h2 { margin: 6px 0 4px; font-size: 26px; color: var(--gm-gold3); } .gq-lnSteps { margin: 0 0 12px; color: var(--gm-mute); font-size: 18px; }
.gq-lesson { display: flex; flex-direction: column; gap: 14px; } .gq-lesson > * { margin-top: 0; margin-bottom: 0; }
.gq-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; } .gq-desc summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); }
.gq-keep { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(227,196,106,.12); }
.gq-lnAll { align-self: flex-start; }
.gq-lessons { display: flex; flex-direction: column; gap: 10px; }
.gq-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; }
.gq-lItem span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .gq-lItem b { font-size: 15px; color: var(--gm-mute); font-weight: 600; } .gq-lItem i { font-style: normal; color: #8FE3D8; font-size: 22px; }
.gq-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; } .gq-lItem.done .gq-lNo { background: #2BA05A; color: #fff; }

/* Ze znajomymi i okna */
.gq-frHead { margin-bottom: 18px; } .gq-frH { font-size: 22px; margin: 26px 0 12px; color: var(--gm-gold3); }
.gq-card0, .gq-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; }
.gq-card0 h3 { margin: 0 0 8px; font-size: 21px; color: var(--gm-gold3); } .gq-card0 p { margin: 0 0 14px; line-height: 1.5; }
.gq-chCard { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; } .gq-chCard > div { flex: 1; display: flex; flex-direction: column; gap: 6px; } .gq-chCard p { margin: 0; }
.gq-chCard .gq-row2 { justify-content: flex-start; margin-top: 6px; } .gq-chHot { border-color: var(--gm-gold); box-shadow: 0 0 0 2px var(--gm-gold); }
.gq-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; }
.gq-big { position: fixed; inset: 0; z-index: 2147483200; display: grid; place-items: center; padding: 16px; background: rgba(2,4,14,.72); }
.gq-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; }
.gq-box h2 { margin: 0; color: var(--gm-gold3); font-size: 25px; } .gq-box p { margin: 0; line-height: 1.5; } .gq-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); }
.gq-lbl { font-weight: 700; } .gq-or { text-align: center; color: var(--gm-mute); }

@media (max-width: 1100px) { .gq-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gq-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 999px) { .gq-layout { grid-template-columns: minmax(0, 1fr); } .gq-nowM { display: block; } #wsGame .gq-side > .gq-now { display: none; } }
@media (max-width: 560px) {
  .gq-tabs { align-self: stretch; } .gq-tabs button { padding: 10px 14px; flex: 1 1 auto; justify-content: center; }
  .gq-stage { margin-inline: -12px; width: calc(100% + 24px); border-radius: 12px; border-width: 1.5px; }
  .gq-tool { padding: 8px 10px; font-size: 17px; flex: 1 1 40%; } .gq-dlg { top: 40px; padding: 20px 14px; } .gq-dlg h2 { font-size: 24px; }
  .gq-levels, .gq-acts { grid-template-columns: minmax(0, 1fr); } .gq-lvl, .gq-act { min-height: 0; } .gq-cont, .gq-daily { flex-wrap: wrap; } .gq-cont .gm-btn, .gq-daily .gm-btn { width: 100%; }
  .gq-rowL { flex-wrap: wrap; } .gq-topbar { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .gq-glow, .gq-glowCell, .gq-k.guideK, .gq-txtIn.gq-guideIn { animation: none !important; } .gq-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-gq .gq-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-gq .gq-hintBtn svg { width: 28px; height: 28px; } .gm-gq .gq-hintBtn:hover { box-shadow: 0 12px 32px rgba(227,196,106,.55), inset 0 1px 0 rgba(255,255,255,.6); }
.gq-hintM { display: none !important; } .gq-side .gq-hintBtn { margin-top: -4px; }
/* S1.2: rozmiar stołu — suwaki pod stołem i uchwyt w rogu */
.gq-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; }
.gq-size > b { color: var(--gm-gold3); font-size: 18px; } .gq-sz { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; } .gq-sz span { white-space: nowrap; }
.gq-sz input { flex: 1; min-width: 110px; height: 32px; accent-color: var(--gm-gold); } .gq-szReset { flex: 0 0 auto; min-height: 48px; font-size: 17px; }
.gq-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%); }
.gq-grip:hover { background-color: rgba(227,196,106,.12); }
.gq-layout.gq-stack { grid-template-columns: minmax(0, 1fr); } .gq-layout.gq-stack .gq-side { max-width: 760px; }
@media (max-width: 999px) { .gq-hintM { display: inline-flex !important; } .gq-side .gq-hintBtn:not(.gq-hintM) { display: none; } .gm-gq .gq-hintBtn.gq-hintM { min-height: 56px; } }
@media (max-width: 560px) { .gq-size { padding: 10px 12px; } .gq-sz { flex-basis: 100%; } .gq-szReset { width: 100%; } }
/* S1.4: „Jak to działa?” w Ze znajomymi */
.gq-howList { margin: 0 0 16px; padding-inline-start: 26px; font-size: 18px; line-height: 1.5; } .gq-howList li { margin-bottom: 8px; } .gq-howList li::marker { color: var(--gm-gold); font-weight: 800; }
.gq-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 */
.gq-layout { position: relative; } .gq-resizing, .gq-resizing * { cursor: nwse-resize !important; } 
[dir="rtl"] .gq-grip { right: auto; left: 2px; transform: scaleX(-1); cursor: nesw-resize; }

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

/* ---------------------------------------------------------------- SD1: kafelki prób i klawiatura */


/* ================================================================= GQ1: plansza słów */
.gq-stage { padding: 14px; box-sizing: border-box; }
.gq-play { position: relative; display: flex; flex-direction: column; gap: 12px; --fs: 1; }
.gq-names { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: calc(18px * var(--fs)); color: var(--gm-mute); }
.gq-nm { padding: 4px 12px; border-radius: 999px; font-weight: 700; color: #0B1430; background: var(--gq-c); } .gq-nm.done { opacity: .45; text-decoration: line-through; }
.gq-c1, .gq-play .c1 { --gq-c: #F2C94C; } .gq-play .c2 { --gq-c: #7FD6A0; } .gq-play .c3 { --gq-c: #8EC5FF; } .gq-play .c4 { --gq-c: #D3A6FF; } .gq-play .c5 { --gq-c: #FFA98A; }
.gq-solved { display: flex; flex-direction: column; gap: 8px; } .gq-solved:empty { display: none; }
.gq-row { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 14px; text-align: center; color: #0B1430; background: var(--gq-c); animation: gqIn .35s ease-out; }
.gq-row b { font-size: calc(19px * var(--fs)); letter-spacing: .02em; } .gq-row span { font-size: calc(18px * var(--fs)); }
@keyframes gqIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.gq-grid { touch-action: pan-y !important; } /* GQ2b: palcem po planszy da się przewijać stronę */
.gq-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none; }
.gq-tile { position: relative; min-height: calc(74px * var(--fs)); padding: 8px 6px; border-radius: 14px; border: 2px solid rgba(227,196,106,.35); background: linear-gradient(180deg, #F4EFE2, #E3DAC4);
  color: #1A1A2E; font: 700 calc(20px * var(--fs))/1.15 var(--gm-body, system-ui), sans-serif; text-align: center; overflow-wrap: normal; word-break: keep-all; hyphens: none; overflow: hidden; cursor: pointer; box-shadow: 0 3px 0 #B9AD8E, 0 6px 14px rgba(0,0,0,.3); transition: transform .12s, background .12s; }
.gq-tile.long { font-size: calc(17px * var(--fs)); } .gq-tile.xlong { font-size: calc(15px * var(--fs)); }
.gq-tile:hover:not(:disabled) { transform: translateY(-2px); }
.gq-tile.sel { color: #fff; background: linear-gradient(180deg, #4C5C8F, #2F3B66); border-color: #E3C46A; box-shadow: 0 3px 0 #1C2442, 0 0 0 3px rgba(227,196,106,.55); }
.gq-tile.gd { outline: 4px solid #2ECC71; outline-offset: 2px; } .gq-tile.gx { outline: 4px dashed #E0563C; outline-offset: 2px; }
.gq-tile:disabled { cursor: default; } .gq-tile:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.gq-tile.ok { animation: gqHop .5s ease-out; } @keyframes gqHop { 30% { transform: translateY(-12px) scale(1.04); } 60% { transform: translateY(0); } 100% { transform: scale(.96); opacity: .4; } }
.gq-tile.bad { animation: gqShake .4s ease-in-out; } @keyframes gqShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.gq-grid.dragging .gq-tile { cursor: grabbing; }
.gq-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.gq-ctrl .gm-btn { min-width: 140px; } .gq-ctrl .gm-btn.gd { box-shadow: 0 0 0 4px #2ECC71, 0 0 20px rgba(46,204,113,.6); }
.gq-err { flex: 1 1 100%; text-align: center; font-size: 18px; color: var(--gm-mute); min-height: 22px; } .gq-err:empty { display: none; } /* GQ2 */
.gq-dlg .gq-rec { font-size: 19px; font-weight: 700; color: #8FE3D8; margin: -6px 0 14px; } .gq-dlg .gq-rec.hot { color: var(--gm-gold3); font-size: 22px; }
.gq-lvlSt { font-size: 15px; color: var(--gm-mute); } .gq-streak { font-size: 17px; font-weight: 700; color: var(--gm-gold3); }
@media (max-width: 560px) { .gq-dlg { top: 12px; } .gq-dlg #gqDoneHome, .gq-dlg #gqDoneShare { flex: 1 1 40%; padding-inline: 8px; } .gq-dlg #gqDoneUp { flex: 1 1 100%; } } /* GQ2: niższe okno końca na telefonie */ .gq-err b { color: #FFB4A8; }
.gq-err i { display: inline-block; width: 14px; height: 14px; margin: 0 3px; border-radius: 50%; background: rgba(255,255,255,.25); } .gq-err i.on { background: #E0563C; }
/* strzałka (standard gier): zielona, nad tym, co kliknąć; czerwona przy słowie do odznaczenia */
.gq-arrow { position: absolute; z-index: 8; width: 30px; height: 36px; margin-left: -15px; margin-top: 0; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); animation: gqBob 1s ease-in-out infinite; }
.gq-arrow svg { width: 100%; height: 100%; display: block; } .gq-arrow path { fill: #2ECC71; stroke: #0B3D1E; stroke-width: 2; } .gq-arrow.x path { fill: #E0563C; stroke: #5A120A; }
@keyframes gqBob { 50% { transform: translateY(-4px); } }
.gq-arrow.in { width: 22px; height: 26px; margin-left: -11px; } /* w kafelku: mała, nad słowem */
.gq-tile { padding-top: 22px; } @media (max-width: 560px) { .gq-tile { padding-top: 20px; } }
/* poziomy: mini-czwórki */
.gq-mini { display: flex; gap: 4px; } .gq-mini i { width: 16px; height: 34px; border-radius: 5px; background: var(--gq-c); }
.gq-mini .c1 { --gq-c: #F2C94C; } .gq-mini .c2 { --gq-c: #7FD6A0; } .gq-mini .c3 { --gq-c: #8EC5FF; } .gq-mini .c4 { --gq-c: #D3A6FF; } .gq-mini .c5 { --gq-c: #FFA98A; }
.gq-fs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; } .gq-fs b { flex: 1 1 100%; } .gq-fs .gq-tool { min-height: 48px; padding: 6px 14px; } #gqFsVal { min-width: 56px; text-align: center; font-weight: 700; }
@media (max-width: 560px) { .gq-stage { padding: 8px; } .gq-grid { gap: 6px; } .gq-tile { min-height: calc(64px * var(--fs)); font-size: calc(17px * var(--fs)); border-radius: 12px; padding: 6px 3px; } .gq-tile.long { font-size: calc(15px * var(--fs)); } .gq-tile.xlong { font-size: calc(13px * var(--fs)); } .gq-ctrl .gm-btn { min-width: 0; flex: 1 1 30%; padding-inline: 8px; } }
@media (prefers-reduced-motion: reduce) { .gq-arrow, .gq-row, .gq-tile.ok, .gq-tile.bad { animation: none !important; } }
/* PNP_PISACZEK_GAMES_GROUPS_UNDO_V1 (COF1 8.11): przycisk „Cofnij” w rzędzie planszy; telefon: 4 przyciski w dwóch rzędach po 2 */
.gq-ctrl .gq-undo > span[aria-hidden] { font-size: 22px; line-height: 1; }
@media (max-width: 560px) { .gq-ctrl:has(.gq-undo) .gm-btn { flex: 1 1 calc(50% - 10px); } }
/* GQ2: licznik zaznaczonych; telefon — jeden rząd przycisków */
.gq-check .gq-cnt { font-size: .8em; font-weight: 700; opacity: .85; }
@media (max-width: 560px) { .gq-ctrl { gap: 6px; flex-wrap: wrap; } .gq-ctrl .gm-btn, .gq-ctrl:has(.gq-undo) .gm-btn { flex: 1 1 0; min-width: 0; padding-inline: 4px; font-size: 16px; white-space: nowrap; }
  .gq-ctrl .gq-undo { flex: 0 0 50px !important; } .gq-ctrl .gq-undo > span:not([aria-hidden]) { display: none; } .gq-ctrl .gq-check { flex-grow: 1.25 !important; } }
