/* Games: County of the Day (/game/) and Daily Quiz (/quiz/) - wspólne klocki pl-*, gra gm-*, quiz qz-* */
.pl { max-width: 1120px; margin: 0 auto; padding: 34px 24px 48px; }
.pl-head { max-width: 46em; margin-bottom: 22px; }
.pl-k { margin: 0 0 4px; font-stretch: 85%; font-weight: 650; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.pl-k a { color: var(--signal); text-decoration: none; }
.pl-h { margin: 0; font-stretch: 118%; font-weight: 820; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -0.015em; }
.pl-meta { margin: 8px 0 12px; font-stretch: 85%; font-weight: 600; font-size: 15px; color: var(--line); }
.pl-lead { margin: 0; font-size: 17px; line-height: 1.55; }
.pl-sh { margin: 0 0 10px; font-stretch: 85%; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--line); }
.pl-load { margin: 0; padding: 40px 0; text-align: center; color: var(--line); font-family: var(--note); font-style: italic; }
.pl-load-err p { margin: 0 0 10px; }
.pl-err { color: var(--line); }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--bone); border-radius: 6px;
  background: none; color: var(--bone); font-weight: 680; font-size: 16px; text-decoration: none; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.pl-btn:hover { border-color: var(--signal); color: var(--signal); }
.pl-btn-p { background: var(--signal); border-color: var(--signal); color: var(--deep); }
.pl-btn-p:hover { background: var(--bone); border-color: var(--bone); color: var(--deep); }
.pl-btn:disabled { opacity: 0.45; cursor: default; }
.pl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 0; }
.pl-toast { font-stretch: 85%; font-size: 14px; color: var(--signal); white-space: pre-line; }
.pl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 0; max-width: 460px; }
.pl-stats div { padding: 10px 6px; border: 1px solid var(--rule); border-radius: 8px; text-align: center; }
.pl-stats b { display: block; font-stretch: 115%; font-weight: 820; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pl-stats span { font-stretch: 80%; font-size: 13px; color: var(--line); }
.pl-next { margin: 18px 0 0; color: var(--line); }
.pl-next b { color: var(--bone); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- gra ---------- */
.gm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gm-fig { position: sticky; top: calc(var(--top) + 16px); margin: 0; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; background: var(--deep); }
.gm-shape { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.gm-shape svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.gm-k { fill: rgba(255, 194, 26, 0.16); stroke: var(--signal); stroke-width: 6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gm-k.is-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: gm-draw 1.3s ease-out forwards; }
@keyframes gm-draw { to { stroke-dashoffset: 0; } }
.gm-fig.is-hit .gm-k { fill: rgba(93, 184, 90, 0.28); stroke: #5DB85A; }
.gm-fig.is-miss .gm-k { fill: rgba(224, 75, 53, 0.2); stroke: #E04B35; }
.gm-cap { margin: 10px 0 0; text-align: center; font-stretch: 90%; font-weight: 650; font-size: 16px; color: var(--line); }
.gm-fig.is-hit .gm-cap, .gm-fig.is-miss .gm-cap { color: var(--bone); font-size: 19px; font-weight: 760; }
.gm-scale { position: absolute; left: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 3px; font-stretch: 80%; font-size: 12.5px; color: var(--line); }
.gm-scale i { display: block; height: 6px; border: 2px solid var(--line); border-top: 0; }
.gm-hs { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.gm-h { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--rule); border-left: 4px solid var(--signal); border-radius: 8px; background: var(--deep); }
.gm-h.is-new { animation: gm-in 0.5s ease-out; }
@keyframes gm-in { from { opacity: 0; transform: translateY(6px); } }
.gm-h.is-lock { border-left-color: var(--rule); background: none; }
.gm-h-t { font-stretch: 85%; font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--line); }
.gm-h-x { font-size: 17px; line-height: 1.4; }
.gm-h.is-lock .gm-h-x { font-size: 14px; color: rgba(142, 169, 188, 0.6); font-style: italic; font-family: var(--note); }
.gm-h-s { font-stretch: 80%; font-size: 12.5px; color: var(--line); }
.gm-us { display: block; width: 100%; max-width: 360px; margin: 8px 0 2px; }
.gm-us path { fill: rgba(142, 169, 188, 0.2); stroke: rgba(11, 34, 54, 0.9); stroke-width: 1.2; stroke-linejoin: round; }
.gm-us path.on { fill: var(--signal); }
.gm-find { position: relative; }
.gm-find-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gm-find-l { font-weight: 700; font-size: 17px; }
.gm-tries { display: flex; align-items: center; gap: 5px; font-stretch: 80%; font-size: 13px; color: var(--line); }
.gm-tries i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--rule); background: var(--q, transparent); }
.gm-tries span { margin-left: 6px; white-space: nowrap; }
.gm-row { display: flex; gap: 8px; }
#gq { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--ocean); color: var(--bone); font: 560 18px/1.2 var(--sans); }
#gq:focus { outline: none; border-color: var(--signal); }
.gm-sugg { top: calc(100% + 2px); }
.gm-msg { min-height: 1.4em; margin: 8px 0 0; font-stretch: 88%; font-size: 15px; color: var(--signal); }
.gm-end { margin: 0 0 26px; padding: 18px 18px 20px; border: 1px solid var(--rule); border-radius: 12px; background: var(--deep); }
.gm-name { margin: 2px 0 6px; font-stretch: 115%; font-weight: 820; font-size: 32px; line-height: 1.05; }
.gm-endp { margin: 0 0 14px; color: var(--bone); }
.gm-gs { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.gm-gs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 6px; background: var(--deep); border-left: 6px solid var(--q); }
.gm-gs b { font-weight: 650; }
.gm-d { display: inline-flex; align-items: center; gap: 6px; font-stretch: 85%; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm-arr { width: 18px; height: 18px; fill: var(--q); }
.gm-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-stretch: 80%; font-size: 13px; color: var(--line); }
.gm-key span { display: inline-flex; align-items: center; gap: 5px; }
.gm-key i { width: 12px; height: 12px; border-radius: 2px; background: var(--q); }
.gm-how { margin: 0; font-stretch: 85%; font-size: 13.5px; color: var(--line); }

/* ---------- quiz ---------- */
.qz-box { max-width: 760px; padding: 22px 24px 26px; border: 1px solid var(--rule); border-radius: 12px; background: var(--deep); }
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qz-n { font-stretch: 85%; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--line); }
.qz-dots { display: flex; gap: 6px; }
.qz-dots i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--rule); }
.qz-dots i.is-cur { border-color: var(--signal); }
.qz-dots i.is-ok { background: #5DB85A; border-color: #5DB85A; }
.qz-dots i.is-bad { background: #E04B35; border-color: #E04B35; }
.qz-q { margin: 0 0 18px; font-stretch: 105%; font-weight: 760; font-size: clamp(22px, 3vw, 28px); line-height: 1.2; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz-opts.is-two { grid-template-columns: 1fr; }
.qz-o { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px solid var(--rule); border-radius: 8px; background: var(--ocean);
  text-align: left; font-size: 17px; line-height: 1.3; transition: border-color 0.15s, background-color 0.15s; }
.qz-o b { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(142, 169, 188, 0.18); font-weight: 760; font-size: 14px; }
.qz-o:hover:not(:disabled) { border-color: var(--signal); }
.qz-o:disabled { cursor: default; }
.qz-o.is-ok { border-color: #5DB85A; background: rgba(93, 184, 90, 0.16); }
.qz-o.is-ok b { background: #5DB85A; color: var(--deep); }
.qz-o.is-bad { border-color: #E04B35; background: rgba(224, 75, 53, 0.16); }
.qz-o.is-bad b { background: #E04B35; color: #fff; }
.qz-o.is-off { opacity: 0.55; }
.qz-why { margin-top: 18px; padding: 14px 16px 16px; border-radius: 8px; border-left: 5px solid #5DB85A; background: rgba(93, 184, 90, 0.08); }
.qz-why.is-bad { border-left-color: #E04B35; background: rgba(224, 75, 53, 0.08); }
.qz-why p { margin: 0 0 10px; line-height: 1.5; }
.qz-res { font-weight: 760; font-size: 18px; }
.qz-src { font-stretch: 85%; font-size: 13.5px; color: var(--line); }
.qz-score { margin: 6px 0 0; font-stretch: 120%; font-weight: 850; font-size: 72px; line-height: 1; color: var(--line); }
.qz-score b { color: var(--signal); }
.qz-word { margin: 6px 0 0; font-weight: 720; font-size: 22px; }
.qz-rev { margin-top: 22px; }
.qz-rev summary { cursor: pointer; font-weight: 650; }
.qz-rev ol { margin: 10px 0 0; padding-left: 22px; }
.qz-rev li { margin: 0 0 10px; }
.qz-rev li b { display: block; font-weight: 600; }
.qz-rev li span { font-stretch: 90%; color: var(--line); }
.qz-rev li.is-ok::marker { color: #5DB85A; }
.qz-rev li.is-bad::marker { color: #E04B35; }

@media (max-width: 900px) {
  .pl { padding: 24px 16px 36px; }
  .gm-grid { grid-template-columns: 1fr; gap: 18px; }
  .gm-fig { position: relative; top: 0; padding: 12px; }
  .gm-shape { max-height: 52vh; aspect-ratio: auto; height: min(78vw, 52vh); }
  .qz-box { padding: 18px 16px 20px; }
  .qz-opts { grid-template-columns: 1fr; }
  .pl-stats b { font-size: 22px; }
}
