/* Paměťolam: stezka slov a řetěz. Barvy z brand kitu (--lv-*, rodina games), jen stavy správně/jinde/chybí mají vlastní odstín.
   Pohyb jen přes --lv-dur-*. Všechny obrazovky mají stejnou šířku karty (jedna šířka stránek). */
:root {
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --pm-warn: #f59e0b; --pm-width: 520px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--lv-font-rounded, ui-rounded, system-ui, sans-serif); color: var(--lv-text); -webkit-tap-highlight-color: transparent;
  background: radial-gradient(1200px 600px at 50% -10%, var(--lv-accent-soft), transparent 70%), var(--lv-bg); background-attachment: fixed; }
#pm-root { min-height: 100dvh; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--sat) + 12px) calc(var(--sar) + 16px) calc(var(--sab) + 24px) calc(var(--sal) + 16px); }
.pm-card { width: 100%; max-width: var(--pm-width); display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-radius: var(--lv-radius-lg, 20px);
  background: var(--lv-surface); box-shadow: var(--lv-shadow-md); border: 1px solid var(--lv-line); }
.pm-card h2 { margin: 2px 0; font-size: 22px; line-height: 1.2; }
.pm-card h3 { margin: 6px 0 0; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--lv-text-2); }
.pm-center { text-align: center; margin: auto; align-items: stretch; }
.pm-mid { text-align: center; }
.pm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 40px; }
.pm-tools { display: inline-flex; gap: 6px; align-items: center; }
.pm-brand { display: inline-flex; }
.pm-brand img { height: 22px; width: auto; }
.lv-logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lv-logo-light { display: none; } :root:not([data-theme="light"]) .lv-logo-dark { display: block; } }
:root[data-theme="dark"] .lv-logo-light { display: none; }
:root[data-theme="dark"] .lv-logo-dark { display: block; }

.pm-round { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; font-size: 17px; color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; }
.pm-langs { display: flex; justify-content: center; gap: 4px; }
.pm-flag { width: 44px; height: 34px; padding: 3px; border-radius: 10px; border: 2px solid transparent; background: transparent; cursor: pointer; opacity: .55; }
.pm-flag .flag, .pm-flag svg { display: block; width: 100%; height: 100%; border-radius: 4px; }
.pm-flag.on { opacity: 1; border-color: var(--lv-accent); background: var(--lv-accent-soft); }

.pm-logo { display: flex; justify-content: center; gap: 1px; margin: 2px 0 0; font-size: clamp(34px, 11vw, 48px); font-weight: 900; letter-spacing: .01em; color: var(--lv-accent-text); }
.pm-logo span { display: inline-block; animation: pm-bob 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * 110ms); }
@keyframes pm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pm-tag { margin: 0; text-align: center; font-size: 15px; color: var(--lv-text-2); }
.pm-note { margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--lv-info-soft); font-size: 14px; line-height: 1.35; }
.pm-note.ok { background: var(--lv-ok-soft); }
.pm-off { margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--lv-bad-soft); font-size: 14px; line-height: 1.35; }
.pm-off[hidden] { display: none; }
.pm-fine { margin: 0; font-size: 13px; line-height: 1.4; color: var(--lv-text-2); }
.pm-fine a { color: var(--lv-accent-text); }
.pm-big { margin: 0; font-size: 24px; font-weight: 900; text-align: center; color: var(--lv-accent-text); }
.pm-err { color: var(--lv-bad); font-weight: 700; }

.pm-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; border-radius: 16px; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; text-align: center; transition: transform var(--lv-dur-fast) var(--lv-ease-standard); }
.pm-btn:active { transform: scale(.97); }
.pm-btn:disabled { opacity: .45; cursor: not-allowed; }
.pm-btn small { font-size: 13px; font-weight: 600; color: var(--lv-text-2); line-height: 1.3; }
.pm-btn b { font-size: 17px; }
.pm-primary { color: var(--lv-on-accent); background: var(--lv-grad-accent); box-shadow: var(--lv-shadow-md); }
.pm-primary small { color: inherit; opacity: .9; }
.pm-go { min-height: 68px; font-size: 19px; }
.pm-go b { font-size: 21px; }
.pm-link { padding: 8px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--lv-accent-text); cursor: pointer; align-self: center; }
.pm-link:disabled { opacity: .45; }
.pm-seg { display: flex; gap: 6px; }
.pm-seg button { flex: 1; min-height: 46px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; }
.pm-seg button.on { background: var(--lv-accent-soft); box-shadow: inset 0 0 0 2px var(--lv-accent); color: var(--lv-accent-text); }
.pm-how { font-size: 14px; line-height: 1.4; }
.pm-how summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.pm-how ul { margin: 6px 0; padding-left: 20px; }
.pm-flame { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 13px; background: var(--pm-warn); color: #3b2300; }
.pm-flame.wait { opacity: .7; }
.pm-flame-line, .pm-rank { margin: 0; font-weight: 800; text-align: center; }
.pm-cap b::before { content: ""; }

/* ── fáze kola ── */
.pm-play { gap: 14px; }
.pm-top { display: flex; align-items: center; gap: 8px; }
.pm-top header { flex: 1; }
.pm-phase { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pm-badge { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; color: var(--lv-on-accent); background: var(--lv-grad-accent); }
.pm-left { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; color: var(--lv-text-2); }
.pm-bar { height: 8px; border-radius: 999px; background: var(--lv-surface-2); box-shadow: inset 0 0 0 1px var(--lv-line); overflow: hidden; }
.pm-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--lv-grad-accent); transition: width .2s linear; }
.pm-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--lv-text-2); background: var(--lv-surface-2); }
.pm-count { font-size: 96px; font-weight: 900; line-height: 1; color: var(--lv-accent-text); animation: pm-pop 1s ease-in-out infinite; }
@keyframes pm-pop { 0% { transform: scale(.7); opacity: .3; } 40% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.pm-now { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 170px; padding: 12px; border-radius: 20px; background: var(--lv-accent-soft); text-align: center; }
.pm-emoji { font-size: 64px; line-height: 1.1; animation: pm-drop var(--lv-dur-slow) var(--lv-ease-spring) both; }
.pm-now b { font-size: clamp(30px, 9vw, 40px); line-height: 1.1; letter-spacing: .01em; word-break: break-word; }
.pm-now small { font-size: 15px; font-weight: 700; color: var(--lv-text-2); }
@keyframes pm-drop { 0% { transform: translateY(-14px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pm-hint { text-align: center; }
.pm-story { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 16px; }
.pm-story small { font-weight: 600; color: var(--lv-text-2); font-size: 14px; }
.pm-story textarea, .pm-field input, .pm-codeform input, .pm-nickrow input { width: 100%; padding: 12px 14px; border: 2px solid var(--lv-line-2); border-radius: 14px; font: inherit; font-size: 17px; color: var(--lv-text); background: var(--lv-bg); }
.pm-story textarea { resize: vertical; min-height: 76px; font-size: 16px; }
.pm-story textarea:focus, .pm-field input:focus, .pm-codeform input:focus, .pm-nickrow input:focus { outline: 0; border-color: var(--lv-accent); box-shadow: 0 0 0 3px var(--lv-accent-soft); }

/* stezka slov */
.pm-trail { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pm-bead { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 76px; padding: 7px 9px 6px; border-radius: 16px; font-size: 16px; background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); animation: pm-drop var(--lv-dur-base) var(--lv-ease-standard) both; }
.pm-bead::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; border-top: 3px dotted var(--lv-line-2); }
.pm-bead:last-child::after { display: none; }
.pm-bead .pm-e { font-size: 28px; line-height: 1.15; }
.pm-bead b { font-size: 17px; font-weight: 800; word-break: break-word; text-align: center; }
.pm-bead .pm-n { position: absolute; top: -6px; left: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; color: var(--lv-on-accent); background: var(--lv-accent); }
.pm-bead.now { box-shadow: inset 0 0 0 3px var(--lv-accent); background: var(--lv-accent-soft); }
.pm-bead.ghost { min-width: 28px; opacity: .35; animation: none; }
.pm-bead.ok { background: var(--lv-ok-soft); box-shadow: inset 0 0 0 2px var(--lv-ok); }
.pm-bead.moved { background: color-mix(in srgb, var(--pm-warn) 24%, var(--lv-surface)); box-shadow: inset 0 0 0 2px var(--pm-warn); }
.pm-bead.missing { background: var(--lv-bad-soft); box-shadow: inset 0 0 0 2px var(--lv-bad); }
.pm-bead.typo::before { content: "✎"; position: absolute; top: -6px; right: -4px; font-size: 12px; padding: 1px 4px; border-radius: 8px; background: var(--lv-surface); box-shadow: inset 0 0 0 1px var(--lv-line-2); }
.pm-legend { text-align: center; }

/* rozptýlení a vybavování */
.pm-sum { text-align: center; font-size: clamp(40px, 13vw, 56px); font-weight: 900; font-variant-numeric: tabular-nums; padding: 8px 0; }
.pm-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pm-opt { min-height: 64px; border: 0; border-radius: 16px; font: inherit; font-size: 26px; font-weight: 900; color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; }
.pm-opt:active { background: var(--lv-accent-soft); }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pm-chips.wrap { justify-content: flex-start; }
.pm-chip { min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 19px; font: inherit; font-size: 16px; font-weight: 800; color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; }
.pm-chip.on { background: var(--lv-accent-soft); box-shadow: inset 0 0 0 2px var(--lv-accent); }
.pm-chip.cur { background: var(--lv-accent); color: var(--lv-on-accent); box-shadow: none; }
.pm-row { display: flex; justify-content: space-between; gap: 8px; }
.pm-best { text-align: center; font-weight: 700; }
.pm-field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 16px; }
.pm-field input { font-size: 22px; text-align: center; font-weight: 800; }
.pm-check { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; }
.pm-check input { width: 22px; height: 22px; }
.pm-fieldset { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 13px; color: var(--lv-text-2); }

/* výsledek */
.pm-title { text-align: center; font-size: 24px; }
.pm-title.full { color: var(--lv-ok); }
.pm-title.broke { color: var(--lv-accent-text); }
.pm-score { margin: 0; text-align: center; font-size: 18px; }
.pm-score b { font-size: 26px; }
.pm-robik { display: flex; gap: 10px; align-items: flex-start; }
.pm-bot { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font-size: 26px; background: var(--lv-accent-soft); }
.pm-bubble { margin: 0; padding: 10px 12px; border-radius: 4px 16px 16px 16px; background: var(--lv-accent-soft); font-size: 16px; line-height: 1.4; }
.pm-bubble p { margin: 2px 0 0; }
.pm-bubble mark, .pm-story-box mark { padding: 0 3px; border-radius: 5px; font-weight: 800; color: inherit; background: color-mix(in srgb, var(--lv-accent) 28%, transparent); }
.pm-story-box { padding: 10px 12px; border-radius: 14px; background: var(--lv-surface-2); box-shadow: inset 0 0 0 1px var(--lv-line); }
.pm-story-box ol { margin: 6px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.45; }
.pm-report { font-size: 14px; }
.pm-report summary { cursor: pointer; font-weight: 700; padding: 4px 0; color: var(--lv-text-2); }
.pm-rep.sent { opacity: .45; }
.pm-nick { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--lv-surface-2); }
.pm-nickrow { display: flex; gap: 8px; }
.pm-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-board li { display: grid; grid-template-columns: 34px 1fr; gap: 0 6px; padding: 8px 10px; border-radius: 12px; background: var(--lv-surface-2); }
.pm-board li.me { box-shadow: inset 0 0 0 2px var(--lv-accent); background: var(--lv-accent-soft); }
.pm-board small { grid-column: 2; color: var(--lv-text-2); font-weight: 600; }
.pm-board em, .pm-players em { font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--lv-accent); color: var(--lv-on-accent); }
.pm-lesson { align-items: flex-start; text-align: left; }
.pm-lesson em { font-style: normal; color: var(--lv-ok); font-size: 13px; }
.pm-lesson.done { box-shadow: inset 0 0 0 2px var(--lv-ok); }
.pm-chart { padding: 8px; border-radius: 14px; background: var(--lv-surface-2); }

/* parta */
.pm-code { display: flex; justify-content: center; gap: 8px; }
.pm-code span { width: 54px; height: 68px; display: grid; place-items: center; border-radius: 14px; font-size: 38px; font-weight: 900; color: var(--lv-accent-text); background: var(--lv-accent-soft); box-shadow: inset 0 0 0 2px var(--lv-accent); }
.pm-qr { margin: 0; display: grid; place-items: center; }
.pm-qr img { width: 180px; height: 180px; border-radius: 12px; }
.pm-players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-players li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--lv-surface-2); font-weight: 700; }
.pm-players li.ok { background: var(--lv-ok-soft); }
.pm-players i { font-style: normal; display: inline-flex; gap: 6px; align-items: center; color: var(--lv-text-2); font-size: 13px; }
.pm-codeform { display: flex; gap: 8px; }
.pm-codeform input { text-transform: uppercase; text-align: center; letter-spacing: .3em; font-weight: 900; }
.pm-codeform .pm-btn { width: auto; min-width: 120px; }
.pm-wait { margin: 0; text-align: center; color: var(--lv-text-2); font-weight: 700; }
.pm-dots::after { content: "…"; animation: pm-pop 1.2s ease-in-out infinite; display: inline-block; }
.pm-storycard { padding: 12px; border-radius: 14px; background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); display: flex; flex-direction: column; gap: 6px; }
.pm-storycard.voted { box-shadow: inset 0 0 0 3px var(--lv-accent); background: var(--lv-accent-soft); }
.pm-storycard p { margin: 0; line-height: 1.45; word-break: break-word; }
.pm-storycard h3 { margin: 0; }
.pm-rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-rank-list li { display: grid; grid-template-columns: 36px 1fr; gap: 0 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--lv-surface-2); }
.pm-rank-list li.me { box-shadow: inset 0 0 0 2px var(--lv-accent); background: var(--lv-accent-soft); }
.pm-rank-list b { font-size: 20px; text-align: center; }
.pm-rank-list small { grid-column: 2; color: var(--lv-text-2); font-weight: 600; }
.pm-rank-list i { font-style: normal; color: var(--lv-ok); font-weight: 800; }

.pm-dialog { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: var(--lv-overlay); }
.pm-toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 24px); z-index: 95; max-width: 90vw; margin: 0; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--lv-on-accent); background: var(--lv-accent);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity var(--lv-dur-base), transform var(--lv-dur-base); }
.pm-toast.on { opacity: 1; transform: translate(-50%, 0); }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 700px) { #pm-root { padding-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .pm-logo span, .pm-count, .pm-dots::after, .pm-emoji, .pm-bead { animation: none; } }

/* ── na telefonu využít šířku (okraje 8 px) a nezmenšovat herní text ── */
html[data-screen="game"] #pm-root, html[data-screen="page"] #pm-root { padding-left: calc(var(--sal) + 8px); padding-right: calc(var(--sar) + 8px); }
.pm-play { padding-left: 10px; padding-right: 10px; }
.pm-trail { gap: 10px 12px; }
.pm-storycard p { font-size: 16px; }

/* ── odpočet před kolem: stejné moduly a styly jako Slovolov (../slovolov/js/countdown-logic.js, promo.js, count.css) ── */
:root { --sl-sky: var(--lv-bg-2); --sl-water: var(--lv-bg); --sl-deep: color-mix(in srgb, var(--lv-accent) 35%, var(--lv-bg)); --sl-pad: var(--lv-surface); --sl-pad-ink: var(--lv-accent-text);
  --sl-pad-edge: var(--lv-accent-text); --sl-chip: var(--lv-surface-2); --sl-gold: #ffc83d; --sl-gold-ink: #4a3200; }
.sl-round { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; font-size: 17px; color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; }
.sl-cdhint { text-align: center; padding: 0 16px; }
.sl-cdnum { max-width: 100vw; text-align: center; padding-top: 14px; }
.sl-cdhint { margin-bottom: 6px; }
html[data-promo] #pm-root { padding-top: max(calc(var(--sat) + 250px), var(--sl-promo-h, 0px)); }
@media (orientation: landscape) and (max-height: 500px) { html[data-promo] #pm-root { padding-top: max(calc(var(--sat) + 150px), var(--sl-promo-h, 0px)); } }
.sm-count { text-align: center; font-size: clamp(64px, 22vmin, 150px); font-weight: 900; line-height: 1.1; color: var(--lv-accent-text); max-width: 100%; }

/* ── parta pod kódem: stejné rozložení jako Slovolov (js/match.js → match-ui.js, match.css; třídy sm-*) ── */
.pm-card.sm-wide { max-width: min(1240px, 100%); }
.sm-mid { text-align: center; margin: 0; }
.sm-card h3 { margin: 6px 0 2px; }
.sm-check { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; padding: 2px 4px; }
.sm-check input { width: 22px; height: 22px; accent-color: var(--lv-accent); flex: none; }
.sm-name { display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 800; }
.sm-name input, .sm-codeform input { min-width: 0; height: 48px; padding: 0 12px; border: 2px solid var(--lv-line); border-radius: 12px; font: inherit; font-size: 17px; color: var(--lv-text); background: var(--lv-surface); }
.sm-codeform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.sm-codeform input { text-transform: uppercase; letter-spacing: .25em; text-align: center; font-weight: 900; }
.sm-codeform input::placeholder { letter-spacing: .1em; font-weight: 700; }
.sm-codeform .pm-btn { width: auto; min-height: 48px; padding: 6px 16px; }
.sm-code { display: flex; justify-content: center; gap: 6px; }
.sm-code span { display: grid; place-items: center; width: clamp(50px, 15vw, 76px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(30px, 9vw, 46px); font-weight: 900; color: var(--sl-pad-ink); background: var(--sl-pad);
  box-shadow: 0 4px 0 var(--lv-accent), 0 8px 14px rgba(60, 20, 120, .25); }
.sm-qr { margin: 2px auto; padding: 6px; border-radius: 14px; background: #fff; line-height: 0; }
.sm-qr img { display: block; width: 100%; max-width: 240px; height: auto; }
.sm-url { margin: 0; text-align: center; font-size: 14px; font-weight: 800; word-break: break-all; }
.sm-wait { margin: 0; text-align: center; font-weight: 800; }
.sm-dots::after { content: "🧠"; display: inline-block; animation: pm-bob 1.4s ease-in-out infinite; }
.sm-split { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.sm-join, .sm-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sm-roster, .sm-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sm-roster li { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 8px; border-radius: 10px; background: var(--sl-chip); }
.sm-roster li.off, .sm-board li.off { opacity: .55; }
.sm-roster li.me { box-shadow: inset 0 0 0 2px var(--lv-accent); }
.sm-roster b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-roster small { font-size: 13px; color: var(--lv-text-2); }
.sm-kick { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--lv-text); background: var(--lv-bad-soft); font-size: 13px; cursor: pointer; }
.sm-av { font-size: 22px; line-height: 1; }
.sm-board li { display: grid; grid-template-columns: 26px 28px minmax(0, 1fr) auto auto 50px; align-items: center; gap: 6px; min-height: 38px; padding: 3px 8px; border-radius: 10px; background: var(--sl-chip); }
.sm-board li.me { background: var(--sl-gold); color: var(--sl-gold-ink); }
.sm-board b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-board small { font-size: 13px; opacity: .85; white-space: nowrap; }
.sm-rk { font-weight: 900; text-align: center; }
.sm-sc { font-weight: 900; text-align: right; font-variant-numeric: tabular-nums; }
.sm-bonus { font-size: .85em; font-weight: 900; padding: 1px 7px; border-radius: 9px; color: var(--sl-gold-ink); background: var(--sl-gold); }
.sm-session { margin: 14px 0 4px; padding: 10px; border-radius: 14px; border: 2px solid var(--sl-gold); }
.sm-session h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sm-session h3 small { font-size: .7em; font-weight: 400; opacity: .8; }
.sm-wins { white-space: nowrap; font-weight: 700; }
.sm-facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sm-facts li { padding: 4px 10px; border-radius: 999px; background: var(--sl-chip); font-size: .9em; }
.sm-podium { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-top: 12px; }
.sm-step { position: relative; flex: 1; max-width: 170px; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; animation: pm-drop var(--lv-dur-slow) var(--lv-ease-spring) backwards; }
.sm-step b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-step small { font-weight: 800; font-size: 15px; }
.sm-step > i { position: absolute; top: -22px; font-style: normal; font-size: 24px; }
.sm-avatar { font-size: 40px; line-height: 1.15; }
.sm-plinth { display: grid; place-items: center; width: 100%; margin-top: 3px; border-radius: 10px 10px 0 0; font-size: 22px; font-weight: 900; color: var(--sl-gold-ink); background: var(--sl-gold); }
.sm-step.s1 .sm-plinth { height: 70px; } .sm-step.s2 .sm-plinth { height: 48px; background: #d6e4e8; } .sm-step.s3 .sm-plinth { height: 34px; background: #e9c39b; }
.sm-step.s1 { animation-delay: 500ms; } .sm-step.s2 { animation-delay: 250ms; }
.sm-alert { display: flex; flex-direction: column; gap: 6px; align-items: stretch; margin: 0; font-size: 14px; text-align: center; color: var(--lv-text-2); }
.sm-alert .pm-btn { font-size: 15px; min-height: 44px; }
.sm-running { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.sm-running b[data-mends] { font-variant-numeric: tabular-nums; }
.sm-running small { color: var(--lv-text-2); }
.sm-again { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 14px; background: color-mix(in srgb, var(--lv-ok) 16%, transparent); }
.sm-again small { color: var(--lv-text-2); }
.pm-kicker { margin: 0; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lv-text-2); }
@media (min-width: 760px) {
  .sm-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .sm-wide .sm-qr img { max-width: min(340px, 34vh); }
  .sm-wide .sm-code span { width: clamp(60px, 7vw, 100px); font-size: clamp(36px, 4.4vw, 62px); }
}
@media (min-width: 900px) { .pm-card:not(.sm-wide) { max-width: 620px; } }

/* ── žebříček: stejně jako Slovolov (js/exp.js renderBoards; třídy sl-rows, sl-row, sl-seg) ── */
.sl-boardcard h2 { margin-bottom: 4px; }
.sl-seg { display: flex; gap: 4px; }
.sl-seg button { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px; border: 0; border-radius: 12px; font: inherit; font-weight: 800; color: var(--lv-text); background: var(--lv-surface-2); box-shadow: inset 0 0 0 2px var(--lv-line); cursor: pointer; }
.sl-seg button.on { background: var(--lv-accent-soft); box-shadow: inset 0 0 0 2px var(--lv-accent); color: var(--lv-accent-text); }
.sl-seg small { font-size: 14px; font-weight: 800; }
.sl-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; max-height: 56vh; overflow-y: auto; }
.sl-mine { margin-top: 4px; }
.sl-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: var(--sl-chip); }
.sl-row.me { background: var(--sl-gold); color: var(--sl-gold-ink); }
.sl-pos { min-width: 26px; text-align: center; font-weight: 900; }
.sl-who2 { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.sl-who2 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-who2 em { font-style: normal; font-weight: 600; }
.sl-who2 small { font-size: 13px; opacity: .8; }
.sl-val { font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; }
.sl-report { border: 0; background: none; color: inherit; opacity: .5; font-size: 16px; cursor: pointer; min-width: 30px; min-height: 30px; }
.sl-empty { margin: 0; text-align: center; color: var(--lv-text-2); }

/* ── přepracování 23. 11. 2026: úvod, Robíkova věta, vybavování nad klávesnicí, psaní ── */
:root { --pm-vh: 100dvh; }
.pm-lead { margin: 0; text-align: center; font-size: 18px; line-height: 1.35; font-weight: 700; }
.pm-setrow { display: flex; flex-direction: column; gap: 6px; }
.pm-modenote { text-align: center; }
.pm-btn.pm-small { min-height: 46px; padding: 6px 12px; font-size: 15px; }
.pm-btn.pm-small b { font-size: 16px; }
.pm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-now .pm-emoji { font-size: 88px; }
.pm-now { min-height: 190px; }
.pm-sentence { margin: 6px 4px 0; font-size: 19px; line-height: 1.35; font-weight: 600; }
.pm-sentence mark { padding: 0 4px; border-radius: 6px; font-weight: 900; color: inherit; background: color-mix(in srgb, var(--lv-accent) 30%, transparent); }
.pm-bead .pm-e { font-size: 34px; }
.pm-bead.noe { padding-top: 12px; }
.pm-row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.pm-recall { gap: 8px; max-height: var(--pm-vh); }
.pm-recall .pm-field input { height: 54px; }
.pm-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; flex-wrap: nowrap; }
.pm-strip::-webkit-scrollbar { display: none; }
.pm-strip .pm-chip { flex: none; }
.pm-wstrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; position: sticky; top: 0; z-index: 2; background: var(--lv-surface); scrollbar-width: none; }
.pm-wchip { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 14px; font-size: 16px; background: var(--lv-accent-soft); }
.pm-wchip i { font-style: normal; font-size: 12px; opacity: .7; }
.pm-wtext { width: 100%; padding: 12px 14px; border: 2px solid var(--lv-line-2); border-radius: 14px; font: inherit; font-size: 17px; color: var(--lv-text); background: var(--lv-bg); resize: none; min-height: 96px; }
.pm-wtext:focus { outline: 0; border-color: var(--lv-accent); box-shadow: 0 0 0 3px var(--lv-accent-soft); }
.pm-sum { font-size: clamp(40px, 13vw, 56px); }
@media (max-height: 520px) { .pm-top { gap: 4px; } .pm-card.pm-recall h2 { display: none; } }

/* ── diktování a čtení nahlas ── */
.pm-mic { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 84px; border: 0; border-radius: 24px; font: inherit; font-size: 20px; font-weight: 900; color: var(--lv-on-accent); background: var(--lv-grad-accent); box-shadow: var(--lv-shadow-md); cursor: pointer; }
.pm-micicon { font-size: 40px; }
.pm-mic.on { animation: pm-pulse 1.1s ease-in-out infinite; }
@keyframes pm-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lv-accent) 55%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }
.pm-mstatus { margin: 0; min-height: 22px; text-align: center; font-weight: 700; color: var(--lv-text-2); }
.pm-winstory { padding: 14px; border-radius: 18px; background: var(--lv-accent-soft); box-shadow: inset 0 0 0 2px var(--lv-accent); display: flex; flex-direction: column; gap: 8px; }
.pm-winauthor { margin: 0; font-weight: 800; text-align: center; }
.pm-wintext { margin: 0; font-size: 22px; line-height: 1.4; font-weight: 700; text-align: center; word-break: break-word; }
@media (prefers-reduced-motion: reduce) { .pm-mic.on { animation: none; } }
@media (max-height: 520px) {
  .pm-mic { min-height: 52px; font-size: 17px; } .pm-micicon { font-size: 26px; } .pm-mstatus { min-height: 0; }
  .pm-wtext { min-height: 64px; } .pm-card { gap: 8px; padding-top: 10px; padding-bottom: 10px; } .pm-card h2 { font-size: 18px; margin: 0; }
  .pm-recall .pm-field input { height: 46px; } .pm-recall .pm-btn { min-height: 46px; }
}
@media (max-height: 520px) {
  .pm-wtext { height: 64px; min-height: 64px; } .pm-card .pm-fine { display: none; } .pm-wstrip { padding: 2px 0; } .pm-head h2 { font-size: 16px; }
}

/* ── ilustrace slov (img/<id>.webp, průhledné pozadí, tmavý obrys): podklad je v každém motivu světlý, ať je obrys vidět ── */
.pm-img { display: block; object-fit: contain; border-radius: 14px; background: #f6f3ff; flex: none; }
.pm-bead .pm-img { width: 52px; height: 52px; padding: 2px; border-radius: 12px; }
.pm-now .pm-img { width: 184px; height: 184px; padding: 6px; border-radius: 22px; margin-bottom: 4px; }
.pm-wchip .pm-img { width: 24px; height: 24px; padding: 0; border-radius: 6px; }
@media (max-width: 380px) { .pm-now .pm-img { width: 160px; height: 160px; } }
@media (max-height: 520px) { .pm-now .pm-img { width: 96px; height: 96px; } .pm-now { min-height: 0; } }
