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

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

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

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

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

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

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

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

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




/* wynik nad planszą: miny, życia, gwiazdki, czas */
.mk-score { display: flex; gap: 8px; }
.mk-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); }
.mk-sc b { font-size: 22px; color: var(--gm-gold3); font-variant-numeric: tabular-nums; line-height: 1.15; }
.mk-sc span { font-size: 14px; color: var(--gm-mute); text-align: center; }
.mk-scStars b, .mk-scLives b { letter-spacing: 2px; }
.mk-scStars i, .mk-bigPts i, .mk-scLives i { font-style: normal; color: rgba(255,255,255,.18); }
.mk-scStars i.on { color: #FFD84D; text-shadow: 0 0 10px rgba(255,216,77,.6); }
.mk-scLives i.on { color: #FF5A6E; text-shadow: 0 0 10px rgba(255,90,110,.55); }
.mk-scLives b.drop i:not(.on) { animation: msStarOut .6s ease-out; }
@keyframes msStarOut { 0% { color: #FF5A6E; transform: scale(1.5); } 100% { color: rgba(255,255,255,.18); transform: none; } }
.mk-bigPts { display: flex; justify-content: center; gap: 10px; font-size: 58px; line-height: 1; margin: 0 0 6px; }
.mk-bigPts i { display: inline-block; }
.mk-bigPts i.on { color: #FFD84D; text-shadow: 0 0 22px rgba(255,216,77,.75); }
.mk-bigPts i.pop { animation: msStarPop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes msStarPop { from { transform: scale(.2) rotate(-40deg); } to { transform: none; } }

/* poziomy u góry gry (HP1/WC2) */
.mk-lvBar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mk-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; }
.mk-lvBar button small { font-weight: 500; color: var(--gm-mute); font-size: 15px; }
.mk-lvBar button svg { width: 20px; height: 20px; }
.mk-lvBar button:hover { border-color: var(--gm-gold); }
.mk-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)); }
.mk-lvBar button[aria-pressed="true"] small { color: #3A2E0A; }
.mk-lvBar button:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }

.mk-mini { width: 54px; height: 54px; }
.mk-lvlArt { height: 58px; }
.mk-lvlPts { font-size: 16px; color: #FFD84D; font-weight: 700; }
.mk-chArt .mk-mini { width: 40px; height: 40px; }
.mk-tool:disabled { opacity: .45; cursor: default; }
.mk-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); }
/* „Twoja zaczęta gra”: złoty kwadrat z ikoną */
.mk-cont .mk-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; }
.mk-cont .mk-contArt svg { width: 32px; height: 32px; }



/* ================================================================= MK1: stół do Makao */
.mk-stage { padding: 0; display: block; background: none; border: 0; min-height: 0; }
.mk-table { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 14px 12px 10px; border-radius: 22px; border: 2px solid rgba(227,196,106,.5);
  background: radial-gradient(120% 85% at 50% 40%, #1C7A5B 0%, #11573F 55%, #0B3B2C 100%); box-shadow: inset 0 0 60px rgba(0,0,0,.45), 0 12px 30px rgba(0,0,0,.35); overflow: hidden; min-height: 420px; }
.mk-table.myTurn { border-color: #FFD84D; box-shadow: inset 0 0 60px rgba(0,0,0,.45), 0 0 0 3px rgba(255,216,77,.25), 0 12px 30px rgba(0,0,0,.35); }
/* karty */
.mk-card { --w: 86px; position: relative; width: var(--w); height: calc(var(--w) * 1.42); flex: 0 0 auto; border-radius: 10px; background: linear-gradient(160deg, #FFFFFF, #F1ECE0); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.12); color: #1C2340; font-family: system-ui, sans-serif; user-select: none; -webkit-user-select: none; box-sizing: border-box; }
.mk-card.s1, .mk-card.s2 { color: #D7263D; }
.mk-ix { position: absolute; top: 5px; left: 6px; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.mk-ix b { font-size: calc(var(--w) * .26); font-weight: 800; } .mk-ix i { font-style: normal; font-size: calc(var(--w) * .22); }
.mk-ix.br { top: auto; left: auto; bottom: 5px; right: 6px; transform: rotate(180deg); }
.mk-pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .56); }
.mk-face { position: absolute; inset: 18% 16%; display: grid; place-items: center; border-radius: 8px; font-size: calc(var(--w) * .5); font-weight: 900; background: linear-gradient(160deg, rgba(227,196,106,.35), rgba(227,196,106,.12)); border: 2px solid rgba(160,120,40,.45); }
.mk-faceS { position: absolute; right: 22%; bottom: 22%; font-size: calc(var(--w) * .2); }
.mk-card.battle::after { content: ''; position: absolute; inset: 3px; border-radius: 8px; border: 2px dashed rgba(215,38,61,.35); pointer-events: none; }
.mk-card.back { background: repeating-linear-gradient(45deg, #2A3B8F 0 8px, #22317A 8px 16px); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 3px #fff, inset 0 0 0 5px #2A3B8F; }
/* rywale */
.mk-opps { display: flex; justify-content: space-around; gap: 8px; flex-wrap: wrap; min-height: 74px; }
.mk-opp { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 16px; background: rgba(0,0,0,.22); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.mk-opp.on { border-color: #FFD84D; transform: translateY(-2px); box-shadow: 0 0 16px rgba(255,216,77,.4); }
.mk-opp.one .mk-cnt { background: #D7263D; color: #fff; animation: mkBlink 1s ease-in-out infinite; }
@keyframes mkBlink { 50% { opacity: .55; } }
.mk-ava { font-size: 30px; line-height: 1; }
.mk-oN { display: flex; flex-direction: column; } .mk-oN b { font-size: 15px; color: #F4EFE2; white-space: nowrap; }
.mk-cnt { align-self: flex-start; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.85); color: #1C2340; font-weight: 800; font-size: 15px; }
.mk-fan { position: relative; width: 70px; height: 44px; }
.mk-mini { position: absolute; left: 26px; top: 4px; width: 22px; height: 32px; border-radius: 4px; background: repeating-linear-gradient(45deg, #2A3B8F 0 4px, #22317A 4px 8px); box-shadow: 0 1px 3px rgba(0,0,0,.4), inset 0 0 0 1.5px #fff; transform: translateX(calc(var(--i) * 7px)) rotate(calc(var(--i) * 8deg)); transform-origin: 50% 120%; }
.mk-bub { position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%); padding: 5px 12px; border-radius: 14px; background: #fff; color: #1C2340; font-weight: 900; font-size: 17px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.4); animation: mkBub .35s cubic-bezier(.2,1.6,.4,1); z-index: 5; }
.mk-bub.mk { background: linear-gradient(180deg, #FFE27A, #F2B01E); } .mk-bub.pen { background: #D7263D; color: #fff; } .mk-bub.wait { background: #3B7BF6; color: #fff; }
@keyframes mkBub { from { transform: translate(-50%, -80%) scale(.4); opacity: 0; } }
/* środek: talia, stos, znaczniki */
.mk-mid { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; min-height: 140px; }
.mk-deck { position: relative; width: 86px; height: 122px; border: 0; padding: 0; background: none; cursor: pointer; }
.mk-deck .mk-back { position: absolute; inset: 0; border-radius: 10px; background: repeating-linear-gradient(45deg, #2A3B8F 0 8px, #22317A 8px 16px); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 3px #fff, inset 0 0 0 5px #2A3B8F; }
.mk-deck .mk-back:nth-child(1) { transform: translate(-4px, 4px); } .mk-deck .mk-back:nth-child(2) { transform: translate(-2px, 2px); }
.mk-deck b { position: absolute; right: -10px; bottom: -10px; min-width: 28px; padding: 2px 7px; border-radius: 12px; background: #FFFDF6; color: #1C2340; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.mk-deck:disabled { cursor: default; } .mk-deck:not(:disabled):hover .mk-back:nth-child(3) { transform: translateY(-4px); }
.mk-deck.empty .mk-back { opacity: .25; }
.mk-deck.guide .mk-back:nth-child(3), .mk-card.guide { box-shadow: 0 0 0 4px #2BD98C, 0 0 22px rgba(43,217,140,.85) !important; }
.mk-pile { position: relative; width: 86px; height: 122px; }
.mk-pile .mk-card { position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); }
.mk-pile .mk-card:last-child { box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.12); }
.mk-chips { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mk-chip { padding: 4px 12px; border-radius: 14px; font-weight: 800; font-size: 15px; background: #FFFDF6; color: #1C2340; box-shadow: 0 3px 8px rgba(0,0,0,.35); white-space: nowrap; animation: mkBub .35s cubic-bezier(.2,1.6,.4,1); }
.mk-chip.att { background: #D7263D; color: #fff; } .mk-chip.wait { background: #3B7BF6; color: #fff; } .mk-chip.dem { background: #F2B01E; color: #1C2340; } .mk-chip.suit.s1, .mk-chip.suit.s2 { color: #D7263D; }
/* ręka */
.mk-handWrap { padding: 18px 4px 6px; }
.mk-hand { display: flex; justify-content: center; align-items: flex-end; min-height: 128px; --ov: -20px; }
.mk-hand .mk-card + .mk-card { margin-left: var(--ov); }
.mk-hand .mk-card { transition: transform .15s, filter .2s; cursor: default; }
.mk-hand .mk-card.ok { cursor: pointer; transform: translateY(-14px); box-shadow: 0 0 0 3px #FFD84D, 0 8px 16px rgba(0,0,0,.45); }
.mk-hand .mk-card.ok:hover, .mk-hand .mk-card.ok:focus-visible { transform: translateY(-22px); outline: none; }
.mk-hand .mk-card.dim { filter: brightness(.72) saturate(.7); }
.mk-hand .mk-card.new { animation: mkNew .6s ease-out; }
@keyframes mkNew { from { transform: translateY(-40px) scale(1.1); } }
.mk-hand .mk-card.guide { transform: translateY(-22px); animation: mkGuide 1s ease-in-out infinite; }
@keyframes mkGuide { 50% { transform: translateY(-28px); } }
.mk-card.shake { animation: mkShake .35s; }
@keyframes mkShake { 25%, 75% { margin-top: 0; transform: translateX(-5px); } 50% { transform: translateX(5px); } }
/* lot karty */
.mk-card.fly { position: absolute; z-index: 30; margin: 0 !important; translate: -50% -50%; transition: transform var(--dur, 360ms) cubic-bezier(.3,.7,.3,1); pointer-events: none; }
/* strzałka podpowiedzi */
.mk-arrowSvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; overflow: visible; }
.mk-arrow { fill: none; stroke: #2BD98C; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(43,217,140,.8)); stroke-dasharray: 14 9; animation: mkDash .8s linear infinite; }
@keyframes mkDash { to { stroke-dashoffset: -23; } }
/* wybór koloru / wartości */
.mk-pick { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 25; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 20px; background: rgba(6,12,36,.94); border: 2px solid var(--gm-gold); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.mk-pick > b { font-size: 19px; color: var(--gm-gold3); }
.mk-pickRow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mk-suitBtn, .mk-demBtn { min-width: 64px; min-height: 64px; border-radius: 14px; border: 0; background: #FFFDF6; color: #1C2340; font: inherit; font-size: 34px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.mk-demBtn { font-size: 26px; } .mk-suitBtn.s1, .mk-suitBtn.s2 { color: #D7263D; }
.mk-suitBtn.guide, .mk-demBtn.guide, .mk-demNone.guide { box-shadow: 0 0 0 4px #2BD98C, 0 0 22px rgba(43,217,140,.85); }
.mk-suitBtn:focus-visible, .mk-demBtn:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
/* przyciski pod stołem */
.mk-dock { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.mk-act { min-height: 60px; padding: 8px 22px; border-radius: 18px; border: 2px solid rgba(227,196,106,.5); background: rgba(6,12,36,.7); color: var(--gm-ink); font: inherit; font-size: 19px; font-weight: 800; cursor: pointer; }
.mk-act:disabled { opacity: .45; cursor: default; }
.mk-act.guide { box-shadow: 0 0 0 4px #2BD98C, 0 0 22px rgba(43,217,140,.85); }
.mk-makao { color: #15120A; background: linear-gradient(180deg, #FFE27A, var(--gm-gold) 60%, var(--gm-gold2)); border-color: transparent; font-size: 21px; letter-spacing: .02em; }
.mk-makao.hot:not(:disabled) { animation: mkHot .8s ease-in-out infinite; }
@keyframes mkHot { 50% { transform: scale(1.07); box-shadow: 0 0 26px rgba(255,216,77,.8); } }
.mk-makao.pop { animation: mkPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes mkPop { 40% { transform: scale(1.25) rotate(-3deg); } }
.mk-turbo { display: inline-flex; align-items: center; gap: 6px; min-height: 60px; padding: 6px 16px; border-radius: 18px; border: 2px solid rgba(227,196,106,.45); background: rgba(6,12,36,.7); color: var(--gm-ink); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.mk-turbo span:first-child { font-size: 22px; filter: grayscale(1); opacity: .7; }
.mk-turbo[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); border-color: transparent; }
.mk-turbo[aria-pressed="true"] span:first-child { filter: none; opacity: 1; }
.mk-hintM { display: none !important; }
.mk-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.mk-confetti i { position: absolute; top: -12px; width: 10px; height: 16px; border-radius: 3px; animation: mkConf 2.2s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes mkConf { to { transform: translateY(110vh) rotate(var(--r)); opacity: .3; } }
.mk-bigPts i.on { color: #FFD84D; }
.mk-mini2 { width: 54px; height: 54px; } .mk-lvlArt { height: 58px; }
.mk-cont .mk-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; } .mk-cont .mk-contArt svg { width: 32px; height: 32px; }
.mk-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); }

/* telefon: stół, ręka i przyciski razem na ekranie */
@media (max-width: 999px) {
  .mk-hintM { display: inline-flex !important; } .mk-side .mk-hintBtn:not(.mk-hintM) { display: none; }
  .mk-pane .mk-nowM { padding: 8px 12px; font-size: 16px; line-height: 1.35; border-width: 1.5px; }
  #mkGame .mk-nowM:not(.on) { display: none !important; }
  .mk-table { padding: 10px 6px 6px; gap: 8px; min-height: 0; border-radius: 16px; }
  .mk-card { --w: 62px; border-radius: 8px; } .mk-deck, .mk-pile { width: 62px; height: 88px; } .mk-mid { min-height: 104px; gap: 20px; }
  .mk-hand { min-height: 96px; } .mk-handWrap { padding-top: 14px; }
  .mk-opp { padding: 4px 8px 4px 6px; gap: 5px; } .mk-ava { font-size: 24px; } .mk-oN b { font-size: 13px; } .mk-fan { width: 48px; height: 36px; } .mk-mini { left: 16px; width: 16px; height: 24px; transform: translateX(calc(var(--i) * 4px)) rotate(calc(var(--i) * 8deg)); }
  .mk-act { min-height: 54px; padding: 6px 14px; font-size: 17px; } .mk-makao { font-size: 19px; } .mk-turbo { min-height: 54px; padding: 4px 10px; font-size: 14px; }
  .mk-tools .mk-hintBtn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .mk-lvBar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 4px; margin-bottom: 10px; }
  .mk-lvBar::-webkit-scrollbar { display: none; }
  .mk-lvBar button { flex: 0 0 auto; min-height: 42px; font-size: 15px; padding: 6px 12px; white-space: nowrap; }
  .mk-dock { gap: 6px; } .mk-dock .mk-act { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .mk-card, .mk-card.fly, .mk-makao.hot, .mk-arrow, .mk-hand .mk-card.guide, .mk-opp.one .mk-cnt { animation: none !important; transition: none !important; } }
/* PNP_PISACZEK_GAMES_MAKAO_MK2 (17.11.2026): licznik talii nad kartami, „Wygrane: x z 1000” w jednym kawałku, dymki ruchów rywali, większe karty na komputerze */
.mk-deck b { z-index: 3; }
.mk-metaSeg { white-space: nowrap; }
.mk-bub.play { background: #FFFDF6; color: #1C2340; }
.mk-bub.draw { background: #E8EEFF; color: #22317A; }
@media (min-width: 1000px) {
  .mk-card { --w: 104px; }
  .mk-deck, .mk-pile { width: 104px; height: 148px; }
  .mk-hand { min-height: 156px; }
}
.mk-bub.play.s1, .mk-bub.play.s2 { color: #C8102E; }
/* PNP_PISACZEK_GAMES_MAKAO_MK3 (17.11.2026): „nic nie pasuje — dobierz” wyraźnie; okienko koloru/wartości u góry stołu, ręka widoczna */
.mk-drawTip { margin: 0 auto 8px; max-width: 520px; padding: 8px 14px; border-radius: 14px; background: #FFE27A; color: #1C2340; font-weight: 800; font-size: 16px; line-height: 1.3; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.mk-drawTip[hidden] { display: none; }
.mustDraw .mk-deck:not(:disabled) { border-radius: 12px; box-shadow: 0 0 0 4px #FFD84D, 0 0 22px rgba(255,216,77,.9); animation: mkMust 1.2s ease-in-out infinite; }
.mk-drawBtn.mustOn:not(:disabled) { background: linear-gradient(180deg, #FFE27A, #F2B01E); color: #1C2340; border-color: #FFD84D; box-shadow: 0 0 0 3px #FFD84D, 0 0 18px rgba(255,216,77,.8); }
@keyframes mkMust { 50% { box-shadow: 0 0 0 7px #FFD84D, 0 0 30px rgba(255,216,77,1); } }
.mk-pick { top: 8px; transform: translateX(-50%); }
.picking .mk-hand .mk-card { filter: none; }
@media (max-width: 999px) {
  .mk-pick { width: calc(100% - 16px); max-width: 420px; padding: 10px 10px 12px; gap: 6px; border-radius: 16px; }
  .mk-pick > b { font-size: 16px; }
  .mk-pickRow { gap: 6px; flex-wrap: nowrap; width: 100%; }
  .mk-suitBtn { min-width: 0; flex: 1 1 0; min-height: 52px; font-size: 28px; }
  .mk-demBtn { min-width: 0; flex: 1 1 0; min-height: 48px; font-size: 21px; padding: 0; }
  .mk-pick .mk-demNone { min-height: 40px; padding: 6px 14px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .mustDraw .mk-deck { animation: none !important; } }
