/* Pisaczek Rozrywka — Strzałki (R20). Marker: PNP_PISACZEK_GAMES_ARROWS_CSS_V1. AW1 (13.11.2026). Układ strony jak w Grupach dnia (groups-v1.css), plansza strzałek niżej. */
.gm-aw .gm-back { color: var(--gm-gold); text-decoration: none; font-size: 18px; }
.gm-aw .gm-ghost { background: rgba(255,255,255,.04); color: var(--gm-ink); border: 1px solid rgba(227,196,106,.45); }
.gm-aw .gm-btn, .gm-aw .gm-btn:hover { transform: none; } .gm-aw .gm-btn { min-height: 54px; font-size: 18px; gap: 8px; }
.gm-aw .gm-btn svg { width: 22px; height: 22px; } .gm-aw .gm-btn:disabled { opacity: .5; cursor: default; }
.aw-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 */
.aw-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; }
.aw-tabs button svg { width: 22px; height: 22px; } .aw-tabs button:hover { background: rgba(227,196,106,.12); color: var(--gm-gold3); }
.aw-tabs button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.aw-tabs button:focus-visible, .aw-tool:focus-visible, .aw-lvl:focus-visible, .aw-lItem:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.aw-pane[hidden], .aw-pane [hidden], .gm-aw [hidden] { display: none !important; }
.aw-muted { color: var(--gm-mute); font-size: 17px; } .aw-lead { color: var(--gm-mute); font-size: 19px; line-height: 1.5; margin: 0; }
.aw-h2 { font-size: 26px; margin: 0 0 12px; color: var(--gm-gold3); }
.aw-row2 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; } .aw-rowL { justify-content: flex-start; flex-wrap: nowrap; }
.aw-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; }
.aw-say.ok { background: #E3F6E8; border-color: #2BA05A; } .aw-say.bad { background: #FDECEA; border-color: #D0453A; } .aw-say.hint { background: #FFF6D8; border-color: #C7A23E; }
.aw-say:empty { display: none; }
.aw-now { padding: 16px 18px; border-radius: 16px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.aw-now b { display: block; font-size: 18px; color: var(--gm-gold3); margin-bottom: 4px; } .aw-now p { margin: 0; font-size: 20px; line-height: 1.45; }
.aw-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; }
.aw-nowM:empty { display: none !important; }

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

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

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

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

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

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

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

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



/* ================================================================= AW1: plansza strzałek */
.aw-stage { padding: 6px; display: flex; justify-content: center; background: radial-gradient(120% 90% at 50% 0%, #1A2A63, #0A1336 78%); }
.aw-play { position: relative; width: 100%; display: flex; justify-content: center; }
.aw-svg { display: block; width: 100%; max-width: min(100%, calc(100vh - 150px), 820px); height: auto; aspect-ratio: 1; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none; overflow: visible; }
.aw-svg:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 4px; border-radius: 18px; }
.aw-bg { fill: rgba(9, 16, 46, .55); stroke: rgba(227,196,106,.28); stroke-width: 3; }
.aw-dots circle { fill: rgba(190, 205, 255, .16); }
.aw-svg.won .aw-bg { animation: awBoardWin 1.2s ease-out; }
@keyframes awBoardWin { 25% { stroke: #FFE08A; stroke-width: 10; fill: rgba(60, 80, 160, .55); } }

/* strzałka: cień, korpus, połysk, grot */
.aw-a { cursor: pointer; transform-box: fill-box; transform-origin: center; }
.aw-a polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.aw-sh { stroke: rgba(0,0,0,.42); stroke-width: 26; }
.aw-hs { fill: rgba(0,0,0,.42); stroke: rgba(0,0,0,.42); stroke-width: 6; stroke-linejoin: round; }
.aw-bd { stroke: var(--c); stroke-width: 26; transition: filter .15s; }
.aw-hd { fill: var(--c); stroke: var(--c); stroke-width: 6; stroke-linejoin: round; transition: filter .15s; }
.aw-hl { stroke: #fff; stroke-opacity: .32; stroke-width: 7; }
.aw-a.hov .aw-bd, .aw-a.hov .aw-hd { filter: brightness(1.18) saturate(1.1); }
.aw-a.foc .aw-bd { stroke-width: 30; filter: drop-shadow(0 0 6px #8FE3D8); }
.aw-a.pop { animation: awPop .42s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes awPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.aw-a.go { pointer-events: none; }
.aw-a.go .aw-bd, .aw-a.go .aw-hd { filter: brightness(1.25); }
.aw-a.bad .aw-bd { stroke: #FF5A52; } .aw-a.bad .aw-hd { fill: #FF5A52; stroke: #FF5A52; }
.aw-a.hit { animation: awShake .32s ease-in-out; }
.aw-a.hit .aw-bd { stroke: #FF8A7A; } .aw-a.hit .aw-hd { fill: #FF8A7A; stroke: #FF8A7A; }
@keyframes awShake { 20% { transform: translate(-7px, 3px) rotate(-1.2deg); } 40% { transform: translate(6px, -3px) rotate(1deg); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }

/* poświata prowadząca (lekcje i „Podpowiedź”) */
.aw-arrow { pointer-events: none; }
.aw-gGlow { fill: none; stroke: #2ECC71; stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; opacity: .75; animation: awGlowP 1.2s ease-in-out infinite; }
.aw-gLine { fill: none; stroke: #7DFFB0; stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.aw-gPath { stroke: #2ECC71; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 2 22; animation: awMarch .7s linear infinite; }
.aw-gTip { fill: #2ECC71; }
@keyframes awGlowP { 50% { opacity: .35; } }
@keyframes awMarch { to { stroke-dashoffset: -24; } }
.aw-parts { pointer-events: none; }

/* wynik nad planszą: strzałki, pomyłki, gwiazdki, czas */
.aw-score { display: flex; gap: 8px; }
.aw-sc { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 6px; border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.6); }
.aw-sc b { font-size: 22px; color: var(--gm-gold3); font-variant-numeric: tabular-nums; line-height: 1.15; }
.aw-sc span { font-size: 14px; color: var(--gm-mute); text-align: center; }
.aw-scStars b { letter-spacing: 2px; }
.aw-scStars i, .aw-bigStars i { font-style: normal; color: rgba(255,255,255,.18); }
.aw-scStars i.on { color: #FFD84D; text-shadow: 0 0 10px rgba(255,216,77,.6); }
.aw-scStars b.drop i:not(.on):nth-last-child(1), .aw-scStars b.drop i:not(.on) { animation: awStarOut .5s ease-out; }
@keyframes awStarOut { 0% { color: #FFD84D; transform: scale(1.3); } 100% { color: rgba(255,255,255,.18); transform: none; } }
.aw-bigStars { display: flex; justify-content: center; gap: 10px; font-size: 58px; line-height: 1; margin: 0 0 6px; }
.aw-bigStars i { display: inline-block; }
.aw-bigStars i.on { color: #FFD84D; text-shadow: 0 0 22px rgba(255,216,77,.75); }
.aw-bigStars i.pop { animation: awStarPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes awStarPop { from { transform: scale(.2) rotate(-40deg); } to { transform: none; } }

/* poziomy u góry gry (HP1/WC2) */
.aw-lvBar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.aw-lvBar button { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 6px 14px; border-radius: 13px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.62); color: var(--gm-ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.aw-lvBar button small { font-weight: 500; color: var(--gm-mute); font-size: 15px; }
.aw-lvBar button svg { width: 20px; height: 20px; }
.aw-lvBar button:hover { border-color: var(--gm-gold); }
.aw-lvBar button[aria-pressed="true"] { color: #15120A; border-color: var(--gm-gold3); background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.aw-lvBar button[aria-pressed="true"] small { color: #3A2E0A; }
.aw-lvBar button:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }

.aw-mini { width: 54px; height: 54px; }
.aw-lvlArt { height: 58px; }
.aw-lvlStars { font-size: 16px; color: #FFD84D; font-weight: 700; }
.aw-chArt .aw-mini { width: 40px; height: 40px; }
.aw-tool:disabled { opacity: .45; cursor: default; }
.aw-also { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(227,196,106,.25); }

@media (max-width: 999px) { .aw-svg { max-width: min(100%, 640px); } }
@media (max-width: 560px) {
  .aw-stage { padding: 2px; }
  .aw-sc { padding: 6px 4px; } .aw-sc b { font-size: 19px; } .aw-sc span { font-size: 13px; }
  .aw-lvBar { gap: 6px; } .aw-lvBar button { flex: 1 1 40%; justify-content: center; min-height: 44px; font-size: 16px; padding: 6px 8px; }
  .aw-bigStars { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) { .aw-a.pop, .aw-a.hit, .aw-gGlow, .aw-gPath, .aw-bigStars i.pop, .aw-svg.won .aw-bg { animation: none !important; } }
/* telefon: plansza od razu na ekranie — poziomy w jednym przesuwanym rzędzie, w Graj bez stałego zdania nad planszą (podpowiedź zostaje) */
@media (max-width: 999px) {
  #awGame .aw-nowM { display: none !important; }
  #awGame .aw-topbar { font-size: 16px; } #awGame .aw-topbar b { font-size: 18px; }
  .gm-aw .aw-hintBtn.aw-hintM { min-height: 50px; font-size: 18px; }
  #awGame .aw-work { gap: 10px; }
}
@media (max-width: 560px) {
  .aw-lvBar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 4px; margin-bottom: 10px; }
  .aw-lvBar::-webkit-scrollbar { display: none; }
  .aw-lvBar button { flex: 0 0 auto; min-height: 42px; font-size: 15px; padding: 6px 12px; white-space: nowrap; }
  .aw-lvBar button small { font-size: 13px; }
  .aw-score { gap: 6px; } .aw-sc { padding: 5px 4px; border-radius: 12px; } .aw-sc b { font-size: 18px; } .aw-sc span { font-size: 12px; }
}
/* „Twoja zaczęta gra”: złoty kwadrat z ikoną (nie karta jak w grach karcianych) */
.aw-cont .aw-contArt { width: 50px; height: 50px; border-radius: 12px; border: 0; box-shadow: none; background: rgba(227,196,106,.16); color: var(--gm-gold3); display: grid; place-items: center; }
.aw-cont .aw-contArt svg { width: 32px; height: 32px; }
/* pomyłka: wyraźniej — biało-czerwony błysk */
.aw-a.bad .aw-bd, .aw-a.bad .aw-hd { filter: drop-shadow(0 0 10px rgba(255,90,82,.9)) brightness(1.1); }
/* AW2 (17.11.2026): na komputerze cała plansza i przyciski pod nią mieszczą się na ekranie (bez przewijania w trakcie gry);
 * na telefonie karty poziomów niskie (obrazek z lewej), przyciski pod planszą bez łamania napisów. */
@media (min-width: 1000px) { .aw-svg { max-width: min(100%, max(380px, calc(100vh - 330px)), 820px); } }
@media (max-width: 560px) {
  .aw-lvl { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; }
  .aw-lvl > .aw-lvlArt { grid-row: 1 / span 4; height: auto; margin: 0; transform: scale(.8); transform-origin: left center; }
  .aw-lvl > :not(.aw-lvlArt) { grid-column: 2; } .aw-lvlName { font-size: 19px; } .aw-lvlD, .aw-lvlDone, .aw-lvlStars { font-size: 15px; margin-top: 0; }
  .aw-tool { flex: 1 1 auto; white-space: nowrap; font-size: 16px; padding: 8px 12px; }
}
