/* Slovolov proti ostatním: čekárna, lišta soupeře, tabule, výsledky. Tokeny --lv-* a barvy rybníka ze slovolov.css. Třídy sm-*. */
html[data-screen="match"] #sl-root { align-items: flex-start; }
.sm-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: 14px; font-weight: 700; padding: 2px 4px; }
.sm-check input { width: 20px; height: 20px; accent-color: var(--lv-accent); flex: none; }
.sm-name { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 800; }
.sm-name input, .sm-codeform input { min-width: 0; height: 46px; padding: 0 12px; border: 2px solid var(--lv-line); border-radius: 12px; font: inherit; font-size: 16px; 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 .sl-btn { width: auto; min-height: 46px; 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(--sl-pad-edge), 0 8px 14px rgba(0, 50, 60, .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: sl-bob 1.4s ease-in-out infinite; }
.sm-radar { position: relative; width: 150px; height: 150px; margin: 4px auto; display: grid; place-items: center; font-size: 44px; }
.sm-radar i { position: absolute; inset: 0; border: 3px solid var(--sl-deep); border-radius: 50%; opacity: 0; animation: sm-ring 2.4s ease-out infinite; }
.sm-radar i:nth-child(2) { animation-delay: .8s; } .sm-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes sm-ring { from { transform: scale(.25); opacity: .8; } to { transform: scale(1); opacity: 0; } }
.sm-count { text-align: center; font-size: clamp(64px, 22vmin, 150px); font-weight: 900; line-height: 1.1; color: var(--sl-pad-edge); }
.sm-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.sm-vs em { font-style: normal; font-weight: 900; font-size: 20px; color: var(--lv-text-2); }
.sm-vsp, .sm-rc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 16px; background: var(--sl-chip); text-align: center; min-width: 0; }
.sm-vsp b, .sm-rc b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-vsp small, .sm-rc small { font-size: 12.5px; color: var(--lv-text-2); }
.sm-vsp.bot, .sm-rc.bot { box-shadow: inset 0 0 0 2px var(--sl-deep); }
.sm-avatar { font-size: 40px; line-height: 1.15; }
.sm-rc.win { background: var(--sl-gold); color: var(--sl-gold-ink); }
.sm-rc.win small { color: var(--sl-gold-ink); }
.sm-rc > i { position: absolute; top: -14px; font-style: normal; font-size: 24px; }
.sm-big { font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sm-quote { margin: 0; padding: 8px 12px; border-radius: 14px; background: var(--lv-info-soft); font-weight: 700; text-align: center; }
.sm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.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: 34px; 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: 12px; color: var(--lv-text-2); }
.sm-kick { width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--lv-text); background: var(--lv-bad-soft); font-size: 13px; cursor: pointer; }

.sm-btop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sm-chipcode { padding: 2px 12px; border-radius: 12px; font-size: clamp(18px, 4vmin, 40px); font-weight: 900; letter-spacing: .12em; color: var(--sl-pad-ink); background: var(--sl-pad); }
.sm-clock { font-size: clamp(26px, 6vmin, 60px); font-weight: 900; font-variant-numeric: tabular-nums; }
.sm-letters { display: grid; grid-template-columns: repeat(8, minmax(0, 92px)); justify-content: center; gap: clamp(3px, 1vmin, 12px); }
.sm-letters span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: clamp(16px, 5.4vmin, 54px); font-weight: 900; color: var(--sl-pad-ink); background: var(--sl-pad); box-shadow: 0 3px 0 var(--sl-pad-edge); }
.sm-board li { display: grid; grid-template-columns: 26px 28px minmax(0, 1.1fr) minmax(0, 1fr) auto 50px; align-items: center; gap: 6px; min-height: 36px; padding: 3px 8px; border-radius: 10px; background: var(--sl-chip); font-size: clamp(14px, 2.2vmin, 22px); }
.sm-board.final li { grid-template-columns: 26px 28px minmax(0, 1fr) auto auto 50px; }
.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: .78em; 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-bar { height: 9px; border-radius: 9px; background: rgba(0, 60, 70, .14); overflow: hidden; }
.sm-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--sl-deep), var(--sl-gold)); transition: width var(--lv-dur-base) var(--lv-ease-standard); }
.sm-bonus { font-size: .85em; font-weight: 900; padding: 1px 7px; border-radius: 9px; color: var(--sl-gold-ink); background: var(--sl-gold); }
.sm-bjoin { display: flex; flex-direction: column; gap: 6px; }

.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-session .sm-board.final li { grid-template-columns: 26px 28px minmax(0, 1fr) auto auto 50px; }
.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: sl-in 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: 14px; }
.sm-step > i { position: absolute; top: -22px; font-style: normal; font-size: 24px; }
.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-rain { position: fixed; z-index: 12; inset: 0; overflow: hidden; pointer-events: none; }
.sm-rain i { position: absolute; top: -40px; font-style: normal; font-size: 26px; animation: sm-fall 2.2s ease-in forwards; }
@keyframes sm-fall { to { transform: translateY(112vh) rotate(260deg); } }

/* lišta soupeře ve hře: řádek nad rybníkem, bublina Robíka jde dolů přes úlovek, nikdy přes písmena */
html[data-mode="match"] .sl-pond-host { max-height: calc(100dvh - 240px); }
.sm-hud { position: relative; grid-area: who; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px; border-radius: 12px; background: var(--sl-chip); box-shadow: inset 0 0 0 2px var(--lv-line); z-index: 4; }
.sm-hud.bot { box-shadow: inset 0 0 0 2px var(--sl-deep); }
.sm-hud .sm-av { font-size: 22px; }
.sm-who { min-width: 0; max-width: 42%; display: flex; flex-direction: column; line-height: 1.1; }
.sm-who b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-who small { font-size: 11px; color: var(--lv-text-2); white-space: nowrap; }
.sm-lane { position: relative; flex: 1; min-width: 20px; height: 100%; overflow: hidden; }
.sm-swim { position: absolute; top: 50%; left: 0; font-style: normal; font-size: 15px; transform: translate(-30px, -50%) scaleX(-1); animation: sm-swim 1.5s ease-in-out forwards; }
.sm-swim.f-carp { font-size: 19px; } .sm-swim.f-zander { font-size: 23px; } .sm-swim.f-pike { font-size: 26px; } .sm-swim.f-gold { font-size: 30px; }
@keyframes sm-swim { to { left: 100%; } }
.sm-gap { font-size: 12.5px; font-weight: 800; white-space: nowrap; color: var(--lv-text-2); }
.sm-gap.up { color: var(--lv-ok); } .sm-gap.down { color: var(--lv-bad); }
.sm-rscore { min-width: 34px; text-align: right; font-size: 19px; font-variant-numeric: tabular-nums; }
.sm-rscore.pop { animation: sl-pop var(--lv-dur-base) var(--lv-ease-spring); }
.sm-bubble { position: absolute; left: 8px; right: 8px; top: calc(100% + 5px); margin: 0; padding: 4px 11px; border-radius: 12px; font-size: 13px; line-height: 1.25; font-weight: 800; color: var(--sl-pad-ink); background: var(--sl-pad); box-shadow: var(--lv-shadow-md); pointer-events: none; animation: sl-in var(--lv-dur-base) var(--lv-ease-spring); }
.sm-bubble[hidden] { display: none; }
.sl-game:has(.sl-toast.on) .sm-bubble { visibility: hidden; }   /* hláška o pravidlech má přednost, bublina se na chvíli schová */
.sm-bubble::before { content: ""; position: absolute; top: -6px; left: 14px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--sl-pad); }
.sm-hud-group { justify-content: space-between; }
.sm-pos { font-size: 18px; font-weight: 900; white-space: nowrap; }
.sm-lead-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 800; }

@media (orientation: landscape) {
  html[data-mode="match"] .sl-pond-host { max-height: none; }
  .sm-bubble { top: calc(100% + 58px); }   /* na šířku je pod lištou řádek se skládaným slovem, bublina jde až pod něj */
  .sm-bubble::before { display: none; }
  .sm-count { font-size: clamp(48px, 18vmin, 170px); }
}
@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 (orientation: landscape) and (max-height: 460px) {
  .sm-count { font-size: 52px; }
  .sm-radar { width: 96px; height: 96px; font-size: 30px; }
  .sm-avatar { font-size: 28px; }
  .sm-card:not(.sm-wide) { max-width: 620px; }
}
@media (prefers-reduced-motion: reduce) { .sm-radar i, .sm-swim, .sm-dots::after { animation: none; } .sm-swim { left: 50%; } }

/* čekárna: zvonek a upozornění, pozvánka za běhu kola, „chce hrát znovu“ (majitel 15. 11. 2026) */
.sm-alert { display: flex; flex-direction: column; gap: 6px; align-items: stretch; margin: 0; font-size: 13px; text-align: center; color: var(--lv-text-2); }
.sm-alert .sl-btn { font-size: 14px; }
.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); animation: sl-in var(--lv-dur-slow) var(--lv-ease-spring); }
.sm-again small { color: var(--lv-text-2); }
