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

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

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

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

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

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

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

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

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




/* wynik nad planszą: miny, życia, gwiazdki, czas */
.th-score { display: flex; gap: 8px; }
.th-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); }
.th-sc b { font-size: 22px; color: var(--gm-gold3); font-variant-numeric: tabular-nums; line-height: 1.15; }
.th-sc span { font-size: 14px; color: var(--gm-mute); text-align: center; }
.th-scStars b, .th-scLives b { letter-spacing: 2px; }
.th-scStars i, .th-bigPts i, .th-scLives i { font-style: normal; color: rgba(255,255,255,.18); }
.th-scStars i.on { color: #FFD84D; text-shadow: 0 0 10px rgba(255,216,77,.6); }
.th-scLives i.on { color: #FF5A6E; text-shadow: 0 0 10px rgba(255,90,110,.55); }
.th-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; } }
.th-bigPts { display: flex; justify-content: center; gap: 10px; font-size: 58px; line-height: 1; margin: 0 0 6px; }
.th-bigPts i { display: inline-block; }
.th-bigPts i.on { color: #FFD84D; text-shadow: 0 0 22px rgba(255,216,77,.75); }
.th-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) */
.th-lvBar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.th-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; }
.th-lvBar button small { font-weight: 500; color: var(--gm-mute); font-size: 15px; }
.th-lvBar button svg { width: 20px; height: 20px; }
.th-lvBar button:hover { border-color: var(--gm-gold); }
.th-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)); }
.th-lvBar button[aria-pressed="true"] small { color: #3A2E0A; }
.th-lvBar button:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }

.th-mini { width: 54px; height: 54px; }
.th-lvlArt { height: 58px; }
.th-lvlPts { font-size: 16px; color: #FFD84D; font-weight: 700; }
.th-chArt .th-mini { width: 40px; height: 40px; }
.th-tool:disabled { opacity: .45; cursor: default; }
.th-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ą */
.th-cont .th-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; }
.th-cont .th-contArt svg { width: 32px; height: 32px; }




/* ================================================================= TH1: stół do Tysiąca */
.th-stage { padding: 0; display: block; background: none; border: 0; min-height: 0; }
.th-table { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 8px; 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: 440px; }
.th-table.myTurn { border-color: #FFD84D; }
.th-table.meldFx { animation: thMeld .9s ease-out; }
@keyframes thMeld { 30% { box-shadow: inset 0 0 80px rgba(255,216,77,.55), 0 0 30px rgba(255,216,77,.6); } }
/* karty */
.th-card { --w: 82px; 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; }
.th-card.s2, .th-card.s3 { color: #D7263D; }
.th-ix { position: absolute; top: 5px; left: 6px; display: flex; flex-direction: column; align-items: center; line-height: .95; }
.th-ix b { font-size: calc(var(--w) * .27); font-weight: 800; } .th-ix i { font-style: normal; font-size: calc(var(--w) * .22); }
.th-pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--w) * .56); }
.th-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); }
.th-faceS { position: absolute; right: 22%; bottom: 22%; font-size: calc(var(--w) * .2); }
.th-val { position: absolute; right: 5px; bottom: 4px; min-width: 18px; padding: 0 4px; border-radius: 8px; background: rgba(28,35,64,.1); color: #1C2340; font-size: calc(var(--w) * .16); font-weight: 800; text-align: center; }
.th-val:empty { display: none; }
.th-card.back { background: repeating-linear-gradient(45deg, #7A2E2E 0 8px, #6A2424 8px 16px); box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 0 0 3px #fff, inset 0 0 0 5px #7A2E2E; }
/* rywale i ja */
.th-opps { display: flex; justify-content: space-between; gap: 8px; }
.th-opp, .th-me { 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; }
.th-opp.on, .th-me.on { border-color: #FFD84D; box-shadow: 0 0 16px rgba(255,216,77,.4); }
.th-opp.decl, .th-me.decl { background: rgba(227,196,106,.18); }
.th-me { align-self: center; } .th-me b { color: #F4EFE2; font-size: 15px; }
.th-ava { font-size: 28px; line-height: 1; }
.th-oN { display: flex; flex-direction: column; } .th-oN b { font-size: 14px; color: #F4EFE2; white-space: nowrap; }
.th-sc { align-self: flex-start; min-width: 34px; text-align: center; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.88); color: #1C2340; font-weight: 800; font-size: 14px; }
.th-tag { font-style: normal; padding: 2px 8px; border-radius: 10px; background: linear-gradient(180deg, #FFE27A, #F2B01E); color: #15120A; font-weight: 800; font-size: 13px; white-space: nowrap; }
.th-tag.off { background: rgba(255,255,255,.18); color: #F4EFE2; } .th-tag.bid { background: #fff; }
.th-fan { position: relative; width: 66px; height: 40px; }
.th-mini { position: absolute; left: 24px; top: 4px; width: 20px; height: 30px; border-radius: 4px; background: repeating-linear-gradient(45deg, #7A2E2E 0 4px, #6A2424 4px 8px); box-shadow: 0 1px 3px rgba(0,0,0,.4), inset 0 0 0 1.5px #fff; transform: translateX(calc(var(--i) * 5px)) rotate(calc(var(--i) * 7deg)); transform-origin: 50% 120%; }
.th-bub { position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%); padding: 5px 12px; border-radius: 14px; background: #fff; color: #1C2340; font-weight: 900; font-size: 16px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.4); animation: thBub .35s cubic-bezier(.2,1.6,.4,1); z-index: 6; }
.th-bub.meld { background: linear-gradient(180deg, #FFE27A, #F2B01E); font-size: 18px; } .th-bub.pass { background: rgba(255,255,255,.9); color: #555; } .th-bub.pts { background: #2BD98C; color: #062; }
.th-me .th-bub { top: auto; bottom: 100%; }
@keyframes thBub { from { transform: translate(-50%, -80%) scale(.4); opacity: 0; } }
/* środek: lewa, musik, znaczniki */
.th-mid { position: relative; min-height: 170px; display: grid; place-items: center; }
.th-trick { position: relative; width: 250px; height: 160px; }
.th-slot { position: absolute; width: 82px; height: 116px; }
.th-slot.p1 { left: 0; top: 4px; transform: rotate(-8deg); } .th-slot.p2 { right: 0; top: 4px; transform: rotate(8deg); } .th-slot.p0 { left: 50%; bottom: -6px; margin-left: -41px; }
.th-slot .th-card { position: absolute; inset: 0; }
.th-musik { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; gap: 8px; z-index: 3; }
.th-musik .th-card { animation: thFlip .45s ease-out; }
@keyframes thFlip { from { transform: rotateY(90deg); } }
.th-chips { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; z-index: 4; }
.th-chip { padding: 4px 12px; border-radius: 14px; font-weight: 800; font-size: 14px; background: #FFFDF6; color: #1C2340; box-shadow: 0 3px 8px rgba(0,0,0,.35); white-space: nowrap; }
.th-chip.tr.s2, .th-chip.tr.s3 { color: #D7263D; } .th-chip.ct { background: linear-gradient(180deg, #FFE27A, #F2B01E); } .th-chip.meld { background: #2A3B8F; color: #fff; }
/* ręka */
.th-handWrap { padding: 16px 4px 4px; }
.th-hand { display: flex; justify-content: center; align-items: flex-end; min-height: 122px; --ov: -20px; }
.th-hand .th-card + .th-card { margin-left: var(--ov); }
.th-hand .th-card { transition: transform .15s, filter .2s; }
.th-hand .th-card.ok { cursor: pointer; transform: translateY(-12px); box-shadow: 0 0 0 3px #FFD84D, 0 8px 16px rgba(0,0,0,.45); }
.th-hand .th-card.ok:hover, .th-hand .th-card.ok:focus-visible { transform: translateY(-20px); outline: none; }
.th-hand .th-card.dim { filter: brightness(.72) saturate(.7); }
.th-hand .th-card.sel { transform: translateY(-26px); box-shadow: 0 0 0 4px #3B7BF6, 0 10px 18px rgba(0,0,0,.45); }
.th-hand .th-card.guide, .th-card.guide { box-shadow: 0 0 0 4px #2BD98C, 0 0 22px rgba(43,217,140,.85) !important; transform: translateY(-22px); }
.th-card.shake { animation: thShake .35s; }
@keyframes thShake { 25%, 75% { transform: translateX(-5px); } 50% { transform: translateX(5px); } }
.th-card.fly { position: absolute; z-index: 30; margin: 0 !important; translate: -50% -50%; transition: transform var(--dur, 340ms) cubic-bezier(.3,.7,.3,1); pointer-events: none; }
.th-arrowSvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; overflow: visible; }
.th-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: thDash .8s linear infinite; }
@keyframes thDash { to { stroke-dashoffset: -23; } }
/* panel na stole */
.th-panel { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 25; width: min(560px, calc(100% - 20px)); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 14px; 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); box-sizing: border-box; }
.th-ph { font-size: 18px; color: var(--gm-gold3); text-align: center; }
.th-pr { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.th-pb { min-height: 52px; min-width: 64px; padding: 6px 16px; border-radius: 14px; border: 0; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); color: #15120A; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.th-pb.ghost { background: rgba(255,255,255,.08); color: var(--gm-ink); border: 1px solid rgba(227,196,106,.5); }
.th-pb.guide { box-shadow: 0 0 0 4px #2BD98C, 0 0 22px rgba(43,217,140,.85); }
.th-pb:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.th-sum { border-collapse: collapse; font-size: 15px; color: var(--gm-ink); }
.th-sum th, .th-sum td { padding: 4px 8px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.12); } .th-sum tbody th { text-align: start; font-weight: 700; white-space: nowrap; }
.th-sum tr.decl th { color: var(--gm-gold3); } .th-sum .pos { color: #7BD88F; } .th-sum .neg { color: #FF8A80; }
/* wynik nad stołem */
.th-score { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.th-scP { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 12px; background: rgba(6,12,36,.6); border: 1px solid rgba(255,255,255,.12); }
.th-scP.decl { border-color: var(--gm-gold); } .th-scP i { font-style: normal; font-size: 20px; } .th-scP b { font-size: 17px; min-width: 34px; }
.th-bar { width: 70px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; } .th-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gm-gold2), var(--gm-gold3)); }
.th-target { color: var(--gm-mute); font-size: 15px; }
/* dock, turbo, tryby */
.th-dock { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.th-turbo { display: inline-flex; align-items: center; gap: 6px; min-height: 56px; 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; }
.th-turbo span:first-child { font-size: 22px; filter: grayscale(1); opacity: .7; }
.th-turbo[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); border-color: transparent; } .th-turbo[aria-pressed="true"] span:first-child { filter: none; opacity: 1; }
.th-hintM { display: none !important; }
.th-modeSw { display: inline-flex; gap: 6px; padding: 5px; margin: 4px 0 14px; border-radius: 18px; background: rgba(6,12,36,.55); border: 1px solid rgba(227,196,106,.35); }
.th-modeSw button { display: flex; flex-direction: column; align-items: center; min-height: 56px; padding: 6px 22px; border-radius: 14px; border: 0; background: transparent; color: var(--gm-ink); font: inherit; cursor: pointer; }
.th-modeSw button b { font-size: 18px; } .th-modeSw button small { font-size: 14px; color: var(--gm-mute); }
.th-modeSw button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); } .th-modeSw button[aria-pressed="true"] small { color: #3D3216; }
.th-modeBox { position: relative; max-width: 560px; text-align: center; } .th-modeBox h2 { margin: 0 0 8px; font-size: 24px; color: var(--gm-gold3); } .th-modeBox p { margin: 0 0 16px; font-size: 18px; line-height: 1.45; }
.th-modeX { position: absolute; top: 8px; inset-inline-end: 10px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--gm-ink); font-size: 30px; cursor: pointer; }
.th-modeRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.th-modeBtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; border-radius: 18px; border: 2px solid rgba(227,196,106,.5); background: rgba(6,12,36,.7); color: var(--gm-ink); font: inherit; cursor: pointer; }
.th-modeBtn b { font-size: 21px; } .th-modeT { font-size: 24px; font-weight: 800; color: var(--gm-gold3); } .th-modeBtn small { font-size: 15px; color: var(--gm-mute); line-height: 1.35; }
.th-modeBtn.q { background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); color: #15120A; border-color: transparent; } .th-modeBtn.q .th-modeT { color: #15120A; } .th-modeBtn.q small { color: #3D3216; }
.th-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 40; }
.th-confetti i { position: absolute; top: -12px; width: 10px; height: 16px; border-radius: 3px; animation: thConf 2.2s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes thConf { to { transform: translateY(110vh) rotate(var(--r)); opacity: .3; } }
.th-bigPts i.on { color: #FFD84D; }
.th-mini2 { width: 54px; height: 54px; } .th-lvlArt { height: 58px; }
.th-cont .th-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; } .th-cont .th-contArt svg { width: 32px; height: 32px; }
.th-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) {
  .th-hintM { display: inline-flex !important; } .th-side .th-hintBtn:not(.th-hintM) { display: none; }
  .th-pane .th-nowM { padding: 8px 12px; font-size: 16px; line-height: 1.35; border-width: 1.5px; }
  #thGame .th-nowM:not(.on) { display: none !important; }
  .th-table { padding: 8px 6px 6px; gap: 6px; min-height: 0; border-radius: 16px; }
  .th-card { --w: 58px; border-radius: 8px; } .th-slot { width: 58px; height: 82px; } .th-slot.p0 { margin-left: -29px; } .th-trick { width: 190px; height: 118px; } .th-mid { min-height: 130px; }
  .th-hand { min-height: 90px; } .th-handWrap { padding-top: 12px; }
  .th-opp, .th-me { padding: 4px 8px 4px 6px; gap: 5px; } .th-ava { font-size: 22px; } .th-oN b { font-size: 12px; } .th-fan { width: 44px; height: 34px; } .th-mini { left: 14px; width: 15px; height: 22px; transform: translateX(calc(var(--i) * 3px)) rotate(calc(var(--i) * 7deg)); }
  .th-panel { top: 44%; padding: 10px; } .th-pb { min-height: 48px; padding: 6px 12px; font-size: 16px; } .th-sum { font-size: 13px; } .th-sum th, .th-sum td { padding: 3px 4px; }
  .th-dock .th-hintBtn.th-hintM { flex: 1 1 auto; }
  .th-bar { width: 44px; }
}
@media (max-width: 560px) {
  .th-lvBar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding: 2px 12px 4px; margin-bottom: 10px; }
  .th-lvBar::-webkit-scrollbar { display: none; }
  .th-lvBar button { flex: 0 0 auto; min-height: 42px; font-size: 15px; padding: 6px 12px; white-space: nowrap; }
  .th-modeSw { display: flex; } .th-modeSw button { flex: 1; padding: 6px 8px; }
  .th-modeRow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .th-card, .th-card.fly, .th-arrow, .th-table.meldFx, .th-musik .th-card { animation: none !important; transition: none !important; } }
/* TH2 (17.11.2026): znaczniki nad środkiem stołu (nie na kartach lewy), panel licytacji/kontraktu/oddawania nad Twoją ręką, imiona rywali, kto położył kartę, tabela wyniku mieści się na telefonie, ciasna ręka — punkty po lewej */
.th-chips { position: static; left: auto; top: auto; transform: none; align-self: center; z-index: 4; }
.th-chips:empty { display: none; }
.th-opp { min-width: 0; flex: 0 1 auto; } .th-oN { min-width: 0; }
.th-oRow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.th-who { position: absolute; top: -10px; right: -10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; line-height: 1; background: #FFFDF6; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.th-panel.inl { position: relative; left: auto; top: auto; transform: none; width: 100%; max-width: 560px; align-self: center; margin: 0; padding: 10px; gap: 8px; z-index: 5; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.th-ph.sm { font-size: 16px; font-weight: 700; line-height: 1.35; }
.th-pb { white-space: nowrap; }
.th-table.quiet .th-mid { min-height: 0; }
.th-table.quiet .th-musik { position: relative; top: auto; left: auto; transform: none; }
.th-sumW { max-width: 100%; overflow-x: auto; }
.th-sum { width: 100%; }
.th-dt { display: block; font-size: 12px; font-weight: 800; color: var(--gm-gold3); }
.th-hand.tight .th-val { right: auto; left: 3px; }
.th-metaSeg { white-space: nowrap; }
@media (max-width: 999px) {
  .th-dock { flex-wrap: nowrap; } .th-dock .th-turbo { flex: 0 0 auto; }
  .th-who { width: 22px; height: 22px; font-size: 13px; top: -8px; right: -8px; }
  .th-panel.inl { padding: 8px; }
  .th-panel:not(.inl) { width: calc(100% - 8px); padding: 10px 6px; }
  .th-sum th, .th-sum td { padding: 3px 3px; } .th-sum thead th { font-size: 11px; }
  .th-tag { font-size: 11px; padding: 1px 6px; }
}
