/* Poker Tracker 2 — app.css: this service's own rules on top of the kit's
 * theme.css (go/rogr-kit/web/theme.css, the fleet rule „Bootstrap everywhere",
 * 15. 10. 2026; Bootstrap 6.0.0-alpha.1 since the same evening). Poker keeps
 * its own variable names below, aliased to the kit's tokens (the Bootstrap 5
 * names it reads are the kit's compat aliases) so both colour modes come from
 * one place; the kit's theme.js sets data-bs-theme (dark by default).
 * Breakpoints follow Bootstrap 6: lg = 1024 px (was 992), xl = 1280 (was 1200). */

/* ========== Theme Variables (aliases of the kit's tokens) ========== */

:root, [data-bs-theme="dark"], [data-bs-theme="light"] {
    --bg-body: var(--bs-body-bg);
    --bg-darkest: var(--rogr-field);
    --bg-darker: var(--rogr-surface-2);
    --bg-dark: var(--rogr-surface);
    --text-primary: var(--bs-body-color);
    --text-secondary: var(--bs-secondary-text-emphasis);
    --text-muted: var(--bs-secondary-color);
    --accent: var(--rogr-blue);
    /* the accent as text: the kit's primary-fg (5.5:1 light, 5.1:1 dark); the brand blue itself
       reads 3.4–3.7:1 as text (audit F6, 20. 10. 2026) — --accent stays for marks and lines */
    --accent-text: var(--bs-primary-fg);
    --accent-hover: var(--bs-link-hover-color);
    --border-color: var(--bs-border-color);
    --card-bg: var(--rogr-surface);
    --input-bg: var(--rogr-field);
    --input-border: var(--rogr-ctrl-line);
    --shadow: rgba(0, 0, 0, 0.5);
    --table-hover: var(--rogr-hover);
}

[data-bs-theme="light"] {
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Links: Bootstrap 6 keeps its components in cascade layers, so an unlayered
 * element rule would beat .btn-solid / .menu-item / .nav-link on an <a>. The
 * link rule therefore joins Bootstrap's reboot layer, where the components
 * still win and plain links take Poker's accent without underline. */
@layer reboot {
    a {
        color: var(--accent-text);
        text-decoration: none;
        transition: color 0.2s;
    }

    a:hover {
        color: var(--accent-hover);
    }
}

/* Bootstrap 6 declares the drawer's tokens outside its cascade layers (on .drawer and its responsive
   variants), so a layered rule cannot set them: the menu's surface and width stay unlayered here. */
.drawer {
    --bs-drawer-bg: var(--bg-darkest);
    --bs-drawer-width: 280px;
}

/* ========== The app's rules: Bootstrap 6's `custom` cascade layer (audit F17, 20. 10. 2026) ==========
 * Everything from here to the end of the file sits in `@layer custom` (not indented). The kit's own
 * component rules (theme.css) are in the same layer, so a rule here wins over a kit rule of the same
 * specificity as before; Bootstrap's components lose to both, and its helpers and utilities (d-none,
 * mb-*, fg-*, …) win over both — before, this file was unlayered and beat every utility class on its
 * elements. Tokens stay unlayered above, the link rule in `reboot`. A new rule goes ABOVE the closing
 * brace at the end. */
@layer custom {

/* Font Awesome's own stylesheet is unlayered, so its `.fas { display: var(--fa-display, inline-block) }`
 * beats any rule in this layer: an icon that is laid out differently sets `--fa-display` too (20. 10. 2026,
 * the landing's online list lost its centring when this file moved into the layer). */

/* ========== Accessibility ========== */

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}
.skip-to-content:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    background: var(--bs-primary-bg);
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ========== Base ========== */

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ========== Medal colours (the paid places, his order of 19. 10. 2026) ==========
 * 1st gold (the kit's warning colour), 2nd bronze, 3rd silver — the game page's prizes and its
 * eliminated on a paid place, the table display's prizes. .medal-N sets --medal on an element. */
:root {
    --medal-2-dark: oklch(0.72 0.12 55);
    --medal-3-dark: oklch(0.80 0.025 250);
    --medal-1: var(--bs-warning-fg);
    --medal-2: var(--medal-2-dark);
    --medal-3: var(--medal-3-dark);
}
[data-bs-theme="light"] {
    --medal-2: oklch(0.55 0.13 55);
    --medal-3: oklch(0.50 0.03 250);
}
.medal-1 { --medal: var(--medal-1); }
.medal-2 { --medal: var(--medal-2); }
.medal-3 { --medal: var(--medal-3); }

/* ========== Navbar ========== */

.navbar {
    background-color: var(--bg-darkest);
    box-shadow: 0 2px 10px var(--shadow);
    padding: 0.4rem 0.8rem;
    transition: background-color 0.3s;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.navbar-brand i {
    color: var(--accent-text);
}

/* The ROGR mark in the compact navbar (the kit's .brand-mark is 26 px) */
#main-navbar .brand-mark, #public-navbar .brand-mark { height: 22px; }
#main-navbar .brand-sub, #public-navbar .brand-sub { font-weight: 800; letter-spacing: 0.5px; }

/* Icon links in navbar */
.nav-icon-link {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
}

.nav-icon-link:hover {
    color: var(--accent-text);
    background-color: var(--rogr-active);
}

.nav-icon-link.active {
    color: var(--accent-text);
}

/* Drawer menu (Bootstrap 6: a native <dialog class="drawer">, the hamburger at every size) */
.drawer {
    color: var(--text-primary); /* its bg and width: the unlayered rule above the layer */
}

.drawer-header {
    border-bottom: 1px solid var(--border-color);
}

.drawer-body {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.drawer-title {
    color: var(--text-primary);
    font-weight: 700;
}

.drawer .nav-link {
    color: var(--text-secondary);
    font-weight: 400;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.drawer .nav-link:hover,
.drawer .nav-link.active {
    color: var(--accent-text);
}

.drawer .nav-link.active {
    font-weight: 600;
}

/* .nav-link also dresses the desktop menu triggers (button.nav-link[data-bs-toggle=menu]) */
.nav-link {
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.2s;
    padding: 0.5rem 0.8rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-text);
}

.nav-link.active {
    font-weight: 600;
}

/* ========== Cards ========== */

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow);
}

/* ========== Buttons ========== */
/* Buttons are the kit's: btn-solid / btn-outline + theme-* (Bootstrap 6); no Poker skins any more. */

/* ========== Forms ========== */

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 6px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 183, 226, 0.25);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9rem;
}

/* ========== Badges ========== */

.badge {
    border-radius: 6px;
    font-weight: 600;
    padding: 0.4em 0.7em;
}

/* ========== Tables ========== */

.table {
    color: var(--text-primary);
}

.table {
    --bs-table-bg: var(--card-bg);
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: var(--table-hover);
    --bs-table-hover-color: var(--text-primary);
    color: var(--text-primary);
}

.table thead th {
    background-color: var(--bg-darker);
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
    color: var(--accent-text);
}

.table td,
.table th {
    color: var(--text-primary);
}

/* ========== Menus (Bootstrap 6, were dropdowns) ========== */

.menu {
    --bs-menu-bg: var(--bg-darker);
    --bs-menu-border-color: var(--border-color);
    --bs-menu-item-color: var(--text-secondary);
    --bs-menu-item-hover-bg: var(--table-hover);
    --bs-menu-item-hover-color: var(--accent-text);
    --bs-menu-item-active-bg: var(--accent);
    --bs-menu-item-active-color: var(--bg-darkest);
}

.menu-item.fg-danger:hover {
    background-color: var(--bs-danger-bg-subtle);
}

/* the language row inside the account menu (not an item) */
.menu-lang {
    padding: 0.35rem 1rem;
    color: var(--text-secondary);
}

/* Alerts are the kit's (alert theme-*). */

/* ========== Landing Page ========== */

/* --- Hero --- */

.landing-hero {
    background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-darker) 50%, var(--bg-darkest) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.landing-hero h1 {
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}

.landing-hero h1 span {
    color: var(--accent-text);
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 183, 226, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* the hero's words (audit W5, 20. 10. 2026): the brand small above, the promise as the H1 */
.lp-hero-brand {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary-fg);
}

.lp-hero-h1 {
    max-width: 18ch;
    margin: 0 auto 1rem;
    font-size: clamp(1.9rem, 6.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
}

.lp-hero-lead {
    max-width: 34rem;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--bs-fg-1);
}

.lp-hero-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 34rem;
    margin: 1.5rem auto 0;
}

.lp-hero-tool {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 56px;
    padding: 0.8rem 0.9rem;
    text-align: left;
    color: var(--bs-fg-body);
    text-decoration: none;
    background: var(--bs-bg-1);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
}

.lp-hero-tool:hover {
    color: var(--bs-fg-body);
    border-color: var(--bs-primary-border);
}

.lp-hero-tool i {
    font-size: 1.3rem;
    color: var(--bs-primary-fg);
}

.lp-hero-tool small {
    display: block;
    font-size: 0.78rem;
    color: var(--bs-fg-2);
}

.lp-hero-login {
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    color: var(--bs-fg-2);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Floating poker suit decorations */

.poker-suits {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.poker-suit {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.06;
    animation: suitFloat 18s ease-in-out infinite;
}

.poker-suit:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.poker-suit:nth-child(2) { top: 20%; right: 8%; animation-delay: -4s; font-size: 3rem; }
.poker-suit:nth-child(3) { bottom: 15%; left: 12%; animation-delay: -8s; font-size: 2rem; }
.poker-suit:nth-child(4) { bottom: 25%; right: 15%; animation-delay: -12s; font-size: 3.5rem; }
.poker-suit:nth-child(5) { top: 50%; left: 3%; animation-delay: -6s; font-size: 1.8rem; }
.poker-suit:nth-child(6) { top: 40%; right: 4%; animation-delay: -10s; font-size: 2.2rem; }
.poker-suit:nth-child(7) { bottom: 40%; left: 25%; animation-delay: -14s; }
.poker-suit:nth-child(8) { top: 8%; right: 25%; animation-delay: -2s; font-size: 2rem; }

@keyframes suitFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-15px) rotate(5deg); }
    50%      { transform: translateY(0) rotate(0deg); }
    75%      { transform: translateY(15px) rotate(-5deg); }
}

/* --- Stats section (social proof) --- */

.landing-stats {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-darkest) 100%);
    position: relative;
}

.landing-stat-box {
    text-align: center;
    padding: 1.5rem 1rem;
}

.landing-stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.landing-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.3rem;
}

.landing-stat-icon {
    font-size: 1.4rem;
    color: var(--accent-text);
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

/* --- Landing sections --- */

.landing-section {
    background-color: var(--card-bg);
}

.landing-section-alt {
    background-color: var(--bg-body);
}

/* --- Feature cards --- */

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feature-icon i {
    font-size: 1.5rem;
    transition: color 0.3s;
}

.feature-card {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Feature card color variants */

.feature-card--timer .feature-icon {
    background: rgba(234, 179, 8, 0.12);
    border: 2px solid rgba(234, 179, 8, 0.4);
}
.feature-card--timer .feature-icon i { color: #eab308; }
.feature-card--timer:hover { border-color: rgba(234, 179, 8, 0.5); }

.feature-card--stats .feature-icon {
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid rgba(34, 197, 94, 0.4);
}
.feature-card--stats .feature-icon i { color: #22c55e; }
.feature-card--stats:hover { border-color: rgba(34, 197, 94, 0.5); }

.feature-card--groups .feature-icon {
    background: rgba(168, 85, 247, 0.12);
    border: 2px solid rgba(168, 85, 247, 0.4);
}
.feature-card--groups .feature-icon i { color: #a855f7; }
.feature-card--groups:hover { border-color: rgba(168, 85, 247, 0.5); }

.feature-card--seasons .feature-icon {
    background: rgba(249, 115, 22, 0.12);
    border: 2px solid rgba(249, 115, 22, 0.4);
}
.feature-card--seasons .feature-icon i { color: #f97316; }
.feature-card--seasons:hover { border-color: rgba(249, 115, 22, 0.5); }

.feature-card--export .feature-icon {
    background: rgba(148, 163, 184, 0.12);
    border: 2px solid rgba(148, 163, 184, 0.4);
}
.feature-card--export .feature-icon i { color: #94a3b8; }
.feature-card--export:hover { border-color: rgba(148, 163, 184, 0.5); }

.feature-card--notifications .feature-icon {
    background: rgba(239, 68, 68, 0.12);
    border: 2px solid rgba(239, 68, 68, 0.4);
}
.feature-card--notifications .feature-icon i { color: #ef4444; }
.feature-card--notifications:hover { border-color: rgba(239, 68, 68, 0.5); }

.feature-card--i18n .feature-icon {
    background: rgba(14, 165, 233, 0.12);
    border: 2px solid rgba(14, 165, 233, 0.4);
}
.feature-card--i18n .feature-icon i { color: #0ea5e9; }
.feature-card--i18n:hover { border-color: rgba(14, 165, 233, 0.5); }

.feature-card--rules .feature-icon {
    background: rgba(244, 114, 182, 0.12);
    border: 2px solid rgba(244, 114, 182, 0.4);
}
.feature-card--rules .feature-icon i { color: #f472b6; }
.feature-card--rules:hover { border-color: rgba(244, 114, 182, 0.5); }

/* --- Landing page polish: smooth scroll --- */

.landing-page {
    scroll-behavior: smooth;
}

/* --- Feature cards staggered entrance animation --- */

.landing-section-alt .feature-card {
    animation: contentFadeIn 0.4s ease-out both;
}

.landing-section-alt .row > :nth-child(1) .feature-card { animation-delay: 0ms; }
.landing-section-alt .row > :nth-child(2) .feature-card { animation-delay: 80ms; }
.landing-section-alt .row > :nth-child(3) .feature-card { animation-delay: 160ms; }
.landing-section-alt .row > :nth-child(4) .feature-card { animation-delay: 240ms; }
.landing-section-alt .row > :nth-child(5) .feature-card { animation-delay: 320ms; }
.landing-section-alt .row > :nth-child(6) .feature-card { animation-delay: 400ms; }
.landing-section-alt .row > :nth-child(7) .feature-card { animation-delay: 480ms; }
.landing-section-alt .row > :nth-child(8) .feature-card { animation-delay: 560ms; }

/* --- Stat boxes hover lift (desktop) --- */

@media (hover: hover) {
    .landing-stat-box {
        transition: transform 0.2s, box-shadow 0.2s;
        border-radius: 8px;
    }

    .landing-stat-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px var(--shadow);
    }
}

/* --- Hero CTA button glow & hover scale --- */

.hero-buttons .btn-solid {
    box-shadow: 0 0 20px rgba(102, 183, 226, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}

.hero-buttons .btn-solid:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(102, 183, 226, 0.45);
}

/* --- Help page --- */
.help-hero {
    background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-darker) 100%);
    padding: 3rem 0 2rem;
    text-align: center;
}
.help-page .accordion-item {
    background-color: var(--bg-darker);
    border-color: var(--border-color);
}
.help-page .accordion-header {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-weight: 600;
}
.help-page details[open] > .accordion-header {
    background-color: var(--card-bg);
    color: var(--accent-text);
}
.help-page .accordion-body {
    background-color: var(--bg-card);
    color: var(--text-secondary);
}

/* --- Contact form --- */

.contact-form .form-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.contact-form .form-control,
.contact-form .input-group-text {
    background-color: var(--bg-darker);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.contact-form .input-group-text {
    color: var(--text-muted);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.contact-form .form-control:focus {
    background-color: var(--bg-darker);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.15rem rgba(102, 183, 226, 0.2);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* the honeypot field (audit S2, 20. 10. 2026): off the screen and out of the tab order, so a
   person never fills it — not display:none, which some bots skip */
.contact-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- CTA section --- */

.landing-cta {
    background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-darker) 50%, var(--bg-darkest) 100%);
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(102, 183, 226, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* --- Footer landing --- */

.footer-landing-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.footer-landing-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-landing-links a:hover {
    color: var(--accent-text);
}

/* the legal note under the landing's footer links (19. 10. 2026): the app records, it handles no money */
.footer-legal {
    max-width: 38rem;
    line-height: 1.5;
    text-wrap: pretty;
}

.footer-pwa-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ========== Footer ========== */

/* the side gutter keeps the footer's lines off the edges on a phone (20. 10. 2026, his „text o
 * zákonu moc namačkaný na kraji") */
.footer {
    background-color: var(--bg-darkest);
    color: var(--text-secondary);
    padding-inline: 1.5rem;
}

.footer a {
    color: var(--text-secondary);
}

.footer a:hover {
    color: var(--accent-text);
}

/* ========== Auth Pages ========== */

.auth-container {
    max-width: 420px;
    margin: 8vh auto 0;
}

.auth-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.auth-icon {
    color: var(--accent-text);
}

/* ========== Scrollbar ========== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--input-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ========== Theme-aware text and components ========== */

/* Text colours are the kit's fg-* utilities (fg-secondary for muted text). */

.form-text {
    color: var(--text-secondary);
}

.input-group-text {
    background-color: var(--bg-darker);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
}

/* ========== Transitions & Micro-interactions ========== */

/* Page content fade-in */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card/content-box hover lift — desktop only */
@media (hover: hover) {
    .content-box,
    .stat-card {
        transition: background-color 0.3s, border-color 0.3s, transform 0.2s, box-shadow 0.2s;
    }

    .content-box:hover,
    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px var(--shadow);
    }
}

/* Button press feedback */
.btn-solid:active, .btn-outline:active, .btn-text:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* ========== Content Areas ========== */

.content-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: background-color 0.3s, border-color 0.3s;
    animation: contentFadeIn 0.3s ease-out both;
}

/* ========== Stats/Numbers ========== */

.stat-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: contentFadeIn 0.3s ease-out both;
}

/* ========== Dialog (Bootstrap 6: a native <dialog class="dialog">, was the modal) ========== */

.dialog {
    --bs-dialog-bg: var(--card-bg);
    --bs-dialog-border-color: var(--border-color);
    color: var(--text-primary);
}

.dialog-header {
    border-bottom: 1px solid var(--border-color);
}

.dialog-footer {
    border-top: 1px solid var(--border-color);
}

/* the close icon follows currentcolor in v6 (no btn-close-white) */

/* The navbar toggler icon follows Bootstrap's own colour mode (no navbar-dark). */

/* ========== Toast ========== */

.toast {
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow);
}

.toast .toast-icon {
    font-size: 1.1rem;
}

/* ========== Timer Display ========== */

.timer-bar-wrapper {
    text-align: center;
}

.timer-display {
    font-size: 8rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

.timer-progress-track {
    margin-top: 0.75rem;
    width: 100%;
    height: 8px;
    background: var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 4px;
    overflow: hidden;
}

.timer-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 1s linear, background-color 0.5s ease;
}

/* Pulsing glow animation for last 60 seconds — applied to #timer-container (content-box) */
.timer-pulse .timer-display {
    animation: timer-text-pulse 1.5s ease-in-out infinite;
}

.timer-pulse .timer-progress-bar {
    animation: timer-bar-pulse 1.5s ease-in-out infinite;
}

.timer-pulse {
    animation: timer-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes timer-text-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes timer-bar-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(220, 53, 69, 0.4); }
    50% { box-shadow: 0 0 18px rgba(220, 53, 69, 0.8); }
}

@keyframes timer-glow-pulse {
    0%, 100% { box-shadow: inset 0 0 8px rgba(220, 53, 69, 0.2); }
    50% { box-shadow: inset 0 0 20px rgba(220, 53, 69, 0.5), inset 0 0 40px rgba(220, 53, 69, 0.15); }
}

/* ========== Desktop navbar extras ========== */

#nav-desktop-extras .nav-link {
    color: var(--text-secondary);
    white-space: nowrap;
}

#nav-desktop-extras .nav-link:hover {
    color: var(--accent-text);
}

/* the menu triggers are buttons dressed as nav links */
.nav-menu-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: 0;
    font-size: 0.9rem;
    padding-top: 0;
    padding-bottom: 0;
}

/* the kit's navbar-tools row (menus, the theme switch, the hamburger) sits at the right */
#main-navbar .navbar-tools, #public-navbar .navbar-tools { margin-left: auto; }

/* ========== Responsive ========== */

@media (max-width: 1023.98px) {
    .timer-display {
        font-size: 6rem;
    }
}

@media (max-width: 767.98px) {
    .timer-display {
        font-size: 5rem;
    }

    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .content-box {
        padding: 1rem;
    }

    .landing-hero h1 {
        font-size: 2.2rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .landing-stat-value {
        font-size: 2rem;
    }

    .landing-stat-label {
        font-size: 0.75rem;
    }

    /* Tables on mobile */
    .table-sm th, .table-sm td {
        padding: 0.3rem 0.4rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .timer-display {
        font-size: 4rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Hero buttons stack vertically on small screens */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ========== Tablet & Desktop: larger game amounts ========== */

@media (min-width: 768px) {
    .stat-card h4 {
        font-size: 1.8rem;
    }

    .stat-card h5 {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .stat-card h4 {
        font-size: 2.2rem;
    }

    .stat-card h5 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1280px) {
    .stat-card h4 {
        font-size: 2.5rem;
    }

    .stat-card h5 {
        font-size: 2rem;
    }
}

/* ========== Language Switcher Dropdown ========== */

.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
}

.lang-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.lang-chevron {
    font-size: 0.55rem;
    transition: transform 0.2s;
    opacity: 0.7;
}

.lang-dropdown.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    background: var(--bg-darker, #222222);
    border: 1px solid var(--border-color, #444444);
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 1060;
    padding: 0.3rem 0;
    overflow: hidden;
}

.lang-dropdown.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    text-align: left;
}

.lang-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-dropdown-item.active {
    background: rgba(102, 183, 226, 0.15);
    color: var(--accent-text);
}

.lang-dropdown-item .lang-flag {
    font-size: 1.25rem;
}

/* ========== Skeleton Loading ========== */

@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.skeleton-line {
    height: 14px;
    background: var(--border-color);
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line.wide { width: 70%; }
.skeleton-line.narrow { width: 45%; }
.skeleton-line.full { width: 100%; }

.skeleton-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.skeleton-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.skeleton-card .skeleton-line.wide {
    height: 22px;
    width: 60%;
}

.skeleton-card .skeleton-line.narrow {
    height: 12px;
    width: 50%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-table {
    display: flex;
    flex-direction: column;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-row:last-child {
    border-bottom: none;
}

.skeleton-podium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-podium-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-podium-card .skeleton-circle {
    width: 40px;
    height: 40px;
}

/* Light theme compatibility */
[data-bs-theme="light"] .skeleton-line,
[data-bs-theme="light"] .skeleton-circle {
    background: var(--border-color);
}

[data-bs-theme="light"] .skeleton-card,
[data-bs-theme="light"] .skeleton-podium-card {
    background: var(--bg-darker);
    border-color: var(--border-color);
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.empty-state i.fa-3x {
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.empty-state:hover i.fa-3x {
    opacity: 0.8;
    transform: scale(1.1);
}
.empty-state h5 {
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Error states */
.error-state {
    text-align: center;
    padding: 3rem 1rem;
}
.error-state i.fa-3x {
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.error-state:hover i.fa-3x {
    opacity: 1;
    transform: scale(1.1);
}
.error-state h5 {
    margin-bottom: 0.5rem;
}

/* --- Interactive Tour --- */

#tour-overlay {
    transition: clip-path 0.3s ease;
}

#tour-tooltip {
    display: none;
    max-width: 320px;
    animation: tourFadeIn 0.25s ease-out;
}

#tour-tooltip .tour-tooltip-content {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#tour-tooltip .tour-tooltip-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

#tour-tooltip .tour-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#tour-tooltip .tour-tooltip-buttons {
    display: flex;
    gap: 0.5rem;
}

@keyframes tourFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    #tour-tooltip {
        max-width: calc(100vw - 16px);
        left: 8px !important; /* over tour.js's inline left */
        right: 8px;
    }
}

/* ========== The four sections (Hra / Žebříček / Statistiky / Skupina) ==========
 * Icons in the navbar on desktop. Below lg (19. 10. 2026, his pick „B · Nahoře pod lištou")
 * a strip of tabs, icon + name, across the full width under the sticky navbar: the bottom bar
 * it replaced took a tap only within 48 px of an icon (half of its width), its names were
 * 10 px and it sat on the iPhone's home indicator. Swiping between game, leaderboard and
 * stats stays the thumb's way (swipe-nav.js). */

#nav-icons { display: flex; align-items: center; gap: 0.5rem; }
.nav-tab-label { display: none; }

/* the horizontal padding of a .container-fluid: 0.75rem, 10px below md (the Responsive rules) */
:root { --app-gutter: 0.75rem; }
@media (max-width: 767.98px) { :root { --app-gutter: 10px; } }

/* the safe areas of a notched phone (viewport-fit=cover in layout.html): the navbar under the
 * status bar, the content clear of the sides and of the home indicator */
#main-navbar {
    padding-top: max(0.4rem, env(safe-area-inset-top));
    padding-left: max(0.8rem, env(safe-area-inset-left));
    padding-right: max(0.8rem, env(safe-area-inset-right));
}
#main-content {
    padding-left: max(var(--app-gutter), env(safe-area-inset-left));
    padding-right: max(var(--app-gutter), env(safe-area-inset-right));
    padding-bottom: env(safe-area-inset-bottom);
}
#toast-container { margin-bottom: env(safe-area-inset-bottom); margin-right: env(safe-area-inset-right); }
#offcanvasMenu { padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); }

@media (max-width: 1023.98px) {
    #main-navbar { padding-bottom: 0; }

    /* the strip: its own row under the brand and the tools, edge to edge (the navbar's 0.8rem
     * and the container's gutter pulled back) */
    #main-navbar #nav-icons {
        order: 3;
        flex: 0 0 calc(100% + 2 * (0.8rem + var(--app-gutter)));
        margin: 0.4rem calc(-0.8rem - var(--app-gutter)) 0;
        gap: 0;
        border-top: 1px solid var(--border-color);
    }

    /* a tab is a quarter of the width, all of it tappable */
    #main-navbar #nav-icons .nav-icon-link {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 46px;
        padding: 0 0.25rem;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        color: var(--text-muted);
        font-size: 0.95rem;
        -webkit-tap-highlight-color: transparent;
    }
    #main-navbar #nav-icons .nav-icon-link:hover { background: none; color: var(--text-secondary); }
    #main-navbar #nav-icons .nav-icon-link.active { color: var(--accent-text); border-bottom-color: var(--accent); }
    .nav-tab-label { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; font-weight: 600; }
    /* a name that does not fit next to its icon (English „Leaderboard", a 320 px phone): names only (app.js fitSectionTabs) */
    #main-navbar #nav-icons.is-tight .nav-icon-link > i { display: none; --fa-display: none; }

    /* anchors land under the taller sticky header */
    .pf-rule, .ss-anchor { scroll-margin-top: calc(7.5rem + env(safe-area-inset-top)); }
}

/* ========== Strict CSP (16. 10. 2026) ==========
 * script-src 'self'; style-src 'self' — no inline handlers, scripts or style= attributes
 * anywhere (actions.js dispatches data-action/-submit/-change/-input). The classes below
 * replaced the style attributes the templates and the JS strings used to carry; dynamic
 * values (the timer colour, chart bar widths) are set through the CSSOM instead. */

.pre-wrap { white-space: pre-wrap; }
.footer-logo { height: 30px; }

.skeleton-qr { width: 150px; height: 150px; border-radius: 8px; }
.qr-img { max-width: 220px; background: #fff; padding: 8px; border-radius: 12px !important; } /* over the markup's `rounded` utility */

/* Skeletons: the sizes and the stagger that used to be inline */
.skeleton-title { height: 18px; width: 35%; margin-bottom: 1rem; }
.skeleton-grid-2 { grid-template-columns: repeat(2, 1fr); }
.skeleton-row .skeleton-circle { width: 24px; height: 24px; }
.skeleton-row .skeleton-line { flex: 1; }
.skeleton-row:nth-child(2) { animation-delay: 0.1s; }
.skeleton-row:nth-child(3) { animation-delay: 0.2s; }
.skeleton-row:nth-child(4) { animation-delay: 0.3s; }
.skeleton-row:nth-child(5) { animation-delay: 0.4s; }
.skeleton-row:nth-child(n+6) { animation-delay: 0.5s; }
.skeleton-podium-card:nth-child(2) { animation-delay: 0.15s; }
.skeleton-podium-card:nth-child(3) { animation-delay: 0.3s; }

/* Swipe indicator label (swipe-nav.js) */
.swipe-label { font-size: 9px; position: absolute; top: 36px; white-space: nowrap; }

/* ========== Table display (layout-display.html → body.display-mode; was game-display.html's <style>) ========== */

body.display-mode { overflow: hidden; touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* PIN overlay: a modal <dialog> (game-display.js showModal; the dialog box in the dialogs section) */
.pin-overlay {
    background: rgba(0, 0, 0, 0.95);
    align-items: center; justify-content: center; flex-direction: column;
}
.pin-box { max-width: 320px; }
.pin-error { min-height: 1.5em; }
.pin-dot {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5); background: transparent;
    transition: background 0.15s, border-color 0.15s;
}
.pin-dot.filled { background: #fff; border-color: #fff; }
.pin-dot.error { border-color: #dc3545; background: #dc3545; }
.pin-key {
    width: 72px; height: 72px; font-size: 1.6rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.pin-shake { animation: pinShake 0.4s ease-in-out; }

/* ---- game page „Jeden pult" (redesign A, 18. 10. 2026) ---- */
/* the clock card, the strip, the players in the game and the eliminated; game.js renders it,
   timer.js fills #timer-container (display: contents, so its time / bar / buttons sit in the card's grid) */
.live { max-width: 1180px; margin-inline: auto; }
.live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.live-title { font-size: var(--bs-font-size-xl); font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.live-meta { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.live-head-tools { display: flex; align-items: center; gap: 0.25rem; flex: none; }
/* phone: clock, players, movements; desktop: the clock with the movements under it on the left, the players on the right */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.5rem; }
@media (min-width: 1024px) {
    .live-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; grid-template-areas: "side main" "tx main"; align-items: start; }
    .live-side { grid-area: side; }
    .live-main { grid-area: main; }
    .live-tx { grid-area: tx; }
}

.live-clock {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.5rem 1rem;
    grid-template-areas: "top top" "time blinds" "bar bar" "foot foot" "ctl ctl";
    padding: 0.9rem 1rem; margin-bottom: 0.75rem;
    border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); background-color: var(--bs-bg-2);
}
.live-clock #timer-container { display: contents; }
.lc-top { grid-area: top; display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.lc-level { font-weight: 700; color: var(--bs-fg-body); letter-spacing: 0.03em; }
.lc-state.is-expired { color: var(--bs-danger-fg); font-weight: 600; }
.lc-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-right: 0.35rem; background-color: var(--bs-success-fg); }
.lc-time { grid-area: time; font-size: clamp(2.75rem, 13vw, 3.4rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; transition: color 0.5s ease; }
.lc-blinds { grid-area: blinds; display: flex; flex-direction: column; align-items: flex-end; text-align: end; min-width: 0; }
.lc-blinds b { font-size: clamp(1.1rem, 5.4vw, 1.45rem); font-variant-numeric: tabular-nums; line-height: 1.2; }
.lc-blinds small { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.lc-bar { grid-area: bar; height: 6px; border-radius: 3px; background-color: var(--bs-bg-3); overflow: hidden; }
.lc-bar-fill { height: 100%; border-radius: 3px; transition: width 1s linear, background-color 0.5s ease; }
.lc-foot { grid-area: foot; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.lc-foot:empty { display: none; }
.lc-ctl { grid-area: ctl; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
/* a stopped clock (audit U6): dimmed like the display's „ZASTAVENO", the badge after the level,
   a run-out phase's one big „Pokračovat" */
.live-clock.is-stopped .lc-top { justify-content: flex-start; align-items: center; }
.live-clock.is-stopped .lc-time, .live-clock.is-stopped .lc-bar { opacity: 0.42; }
.lc-stop-badge { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: light-dark(#fff, #1f2324); background-color: var(--bs-warning-fg); }
.lc-ctl:has(.lc-continue) { flex-direction: column; align-items: stretch; }
.lc-ctl:has(.lc-continue) .btn-text { align-self: flex-start; }
.lc-continue { justify-content: center; padding: 0.7rem 1rem; font-size: 1.05rem; }
.live-clock:has(#timer-container.timer-pulse) { animation: timer-glow-pulse 1.5s ease-in-out infinite; }
.live-clock:has(#timer-container.timer-pulse) .lc-time { animation: timer-text-pulse 1.5s ease-in-out infinite; }
@media (min-width: 1024px) {
    .lc-time { font-size: 4.5rem; }
    .lc-blinds b { font-size: 1.75rem; }
}

.live-strip {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 0.5rem 1.25rem; padding: 0.7rem 1rem; margin-bottom: 1.25rem;
    border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); background-color: var(--bs-bg-2);
}
.live-strip .s-l { display: block; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-fg-1); }
.live-strip .s-v { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-strip .s-v small { font-weight: 400; color: var(--bs-fg-2); }
.live-strip .s-v.sm { font-size: 0.95rem; }
.live-strip .s-n { display: block; font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }
.live-strip .s-prizes { justify-self: end; text-align: end; min-width: 0; }
.live-strip .s-prizes .s-v { white-space: normal; }

/* in play and the pool (19. 10. 2026, his „a ještě ve hře a pool"): two tiles with large figures,
 * the pool in the ROGR blue */
.live-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.live-strip .s-tile {
    display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0.45rem 0.75rem;
    border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-4); background-color: var(--bs-bg-1);
}
.live-strip .s-tile .s-v { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.live-strip .s-tile .s-v small { font-size: 0.6em; font-weight: 600; }
.live-strip .s-pool { border-color: var(--rogr-blue); background-color: color-mix(in oklch, var(--rogr-blue) 12%, transparent); }
.live-strip .s-pool .s-v { color: var(--accent-text); }
.live-strip .s-prizes { grid-column: 1 / -1; justify-self: stretch; text-align: start; }

/* the paid places (19. 10. 2026): a row of tiles under in play and the pool, the first three in
 * his medal colours — the same as the display's prizes */
.live-strip .s-paid { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.live-strip .s-pay {
    flex: 1 1 0; min-width: max-content; display: flex; align-items: baseline; justify-content: center; gap: 0.35rem;
    padding: 0.35rem 0.6rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-4);
    font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.live-strip .s-pay b { font-size: 0.85rem; color: var(--bs-fg-2); }
.live-strip .s-pay span { font-size: 1.05rem; }
.live-strip .s-pay.medal-1 span { font-size: 1.2rem; }
.live-strip .s-pay[class*="medal-"] { border-color: var(--medal); background-color: color-mix(in oklch, var(--medal) 12%, transparent); }
.live-strip .s-pay[class*="medal-"] b,
.live-strip .s-pay[class*="medal-"] span { color: var(--medal); }

.live-sec { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin: 0 0 0.5rem; }
.live-sec-title { font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); margin: 0; }
.live-sec-note { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.live-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 1rem; margin-bottom: 0.5rem; font-size: var(--bs-font-size-sm); border-radius: var(--bs-radius-5); background-color: color-mix(in oklch, var(--bs-warning-fg) 10%, transparent); }
.live-empty { padding: 1.25rem 1rem; margin-bottom: 1.5rem; text-align: center; color: var(--bs-fg-2); }
.live-start { padding: 2rem 1rem; text-align: center; align-items: center; }
.live-start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2rem; }

.p-row { min-height: 0; padding: 0.6rem 1rem; }
.p-hit { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; cursor: pointer; border-radius: var(--bs-radius-3); }
.p-hit:focus-visible { outline: 2px solid var(--rogr-blue); outline-offset: 2px; }
.p-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.p-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.p-ava { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-weight: 700; color: var(--bs-fg-1); background-color: var(--bs-bg-3); }
.p-row.is-me .p-ava { box-shadow: 0 0 0 2px var(--rogr-blue); }
.p-row.out .p-main { opacity: 0.8; }
.p-row.out.is-me { background-color: color-mix(in oklch, var(--rogr-blue) 10%, transparent); }
.p-place { flex: none; width: 2.1rem; text-align: center; font-weight: 700; color: var(--bs-fg-2); font-variant-numeric: tabular-nums; }
.p-prize { flex: none; font-weight: 600; color: var(--bs-success-fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* an eliminated player on a paid place: the place and the prize in its medal colour, a stripe */
.p-row.out.paid .p-main { opacity: 1; }
.p-row.out[class*="medal-"] { box-shadow: inset 3px 0 0 var(--medal); background-color: color-mix(in oklch, var(--medal) 8%, transparent); }
.p-row.out[class*="medal-"] .p-place,
.p-row.out[class*="medal-"] .p-prize { color: var(--medal); font-weight: 800; }
.r-act { display: flex; gap: 0.35rem; flex: none; }
.r-act .btn-sm { padding-inline: 0.5rem; }

.live-tx { margin-bottom: 1.5rem; }
.live-tx-sum { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; cursor: pointer; font-weight: 600; list-style: none; }
.live-tx-sum::-webkit-details-marker { display: none; }
.live-tx-sum::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.75rem; color: var(--bs-fg-2); align-self: center; }
.live-tx[open] .live-tx-sum::after { content: "\f077"; }
.live-tx-sum > span:first-child { margin-right: auto; }
.live-tx .list-rows { border-top: 1px solid var(--bs-border-color); }
.tx-row { min-height: 0; padding: 0.5rem 1rem; }
.tx-amt { flex: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- table display (redesign A, 18. 10. 2026) ---- */
/* Variant A „Časovač a strana": the clock on the left, the side panel on the right
 * (game-display.js). layout-display.html is always dark. One unit, --dsp-u, scales the
 * screen: the height's share on 16:9 and wider (u = 12.8 px at 1280×720, 19.2 at
 * 1920×1080), the width's on a squarer tablet (11.8 px at 1024×768, where the side column
 * also gets a little wider than 28 % so the names keep their room).
 * 19. 10. 2026, his pick „B · Výhry nahoře v boku": a larger time and blinds, the prizes as
 * the first box of the side panel (the first place in gold), in play and the pool in one box. */
body.display-mode {
    --dsp-u: min(1.15vw, 1.778vh);
    --dsp-gap: calc(var(--dsp-u) * 1.4);
    --dsp-pad: calc(var(--dsp-u) * 1.9);
    --dsp-side: calc(var(--dsp-u) * 28);
    --dsp-clock-w: calc(100vw - var(--dsp-side) - 3 * var(--dsp-gap) - 2 * var(--dsp-pad));
    /* the prizes' places after the gold first (his order, 19. 10. 2026): the second bronze, the third silver */
    --dsp-bronze: var(--medal-2-dark);
    --dsp-silver: var(--medal-3-dark);
    background: var(--bs-bg-body);
    color: var(--bs-fg-body);
}
body.display-mode .dsp-root { height: 100vh; height: 100dvh; overflow: hidden; }
body.display-mode .dsp {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--dsp-side); gap: var(--dsp-gap);
    height: 100%; padding: var(--dsp-gap); box-sizing: border-box;
}
body.display-mode .dsp-clock,
body.display-mode .dsp-box,
body.display-mode .dsp-empty-box {
    min-height: 0; overflow: hidden; background: var(--bs-bg-1);
    border: 1px solid var(--bs-border-subtle); border-radius: calc(var(--dsp-u) * 1.3);
}

/* Clock: level, time, blinds, the next level / break / rebuy lines, the progress bar */
body.display-mode .dsp-clock {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: var(--dsp-pad); text-align: center; font-variant-numeric: tabular-nums;
}
/* timer.js renders the time and the bar into #timer-container: display: contents makes
 * them items of the clock column, and order puts the bar under the text lines */
body.display-mode .dsp-timer,
body.display-mode .dsp-timer .timer-bar-wrapper { display: contents; }
body.display-mode .dsp-game {
    position: absolute; top: var(--dsp-pad); left: var(--dsp-pad); right: var(--dsp-pad);
    font-size: calc(var(--dsp-u) * 1.3); font-weight: 600; color: var(--bs-fg-3); text-align: start;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* the app's address at the bottom left, the game's caption's counterpart: everyone at the table
 * sees where the clock comes from (20. 10. 2026, „jak zviditelnit") */
body.display-mode .dsp-brand {
    position: absolute; bottom: var(--dsp-pad); left: var(--dsp-pad);
    font-size: calc(var(--dsp-u) * 1.1); font-weight: 600; letter-spacing: .02em; color: var(--bs-fg-3);
}
body.display-mode .dsp-level {
    order: 1; font-size: calc(var(--dsp-u) * 2.2); font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--bs-fg-2);
}
/* --dsp-chars on the clock (game-display.js): the level's full time, 5 characters, 6 from 100 minutes */
body.display-mode .dsp-clock .timer-display {
    order: 2; font-size: min(calc(var(--dsp-u) * 23), calc(var(--dsp-clock-w) / (var(--dsp-chars, 5) * .54)));
    font-weight: 800; line-height: .95; letter-spacing: 0;
}
/* --dsp-chars (set by game-display.js) narrows long blinds so they stay on one line */
body.display-mode .dsp-blinds {
    order: 3; font-size: min(calc(var(--dsp-u) * 10.5), calc(var(--dsp-clock-w) / (var(--dsp-chars, 13) * .62)));
    font-weight: 800; line-height: 1.15; white-space: nowrap;
}
/* a break (19. 10. 2026): „PAUZA" in the ROGR blue, the time blue from timer.js */
body.display-mode .dsp-clock.is-break .dsp-level { color: var(--rogr-blue); }
/* a clock the dealer stopped mid-phase: „· ZASTAVENO" by the level, the time dimmed */
body.display-mode .dsp-clock.is-stopped .timer-display { opacity: .45; }
body.display-mode .dsp-next {
    order: 4; margin-top: calc(var(--dsp-u) * .4); font-size: calc(var(--dsp-u) * 2);
    line-height: 1.35; color: var(--bs-fg-2);
}
body.display-mode .dsp-clock .timer-progress-track {
    order: 5; flex-shrink: 0; width: 80%; height: calc(var(--dsp-u) * .8);
    margin-top: calc(var(--dsp-u) * 1.7); border-radius: 999px; background: var(--bs-bg-3);
}
body.display-mode .dsp-clock .timer-progress-bar { border-radius: inherit; }
/* the last minute: timer.js puts .timer-pulse on #timer-container, which has no box here */
body.display-mode .dsp-clock:has(.timer-pulse) { animation: timer-glow-pulse 1.5s ease-in-out infinite; }

/* Side panel: the prizes, in play + the pool, the players filling the rest */
body.display-mode .dsp-side { display: flex; flex-direction: column; gap: calc(var(--dsp-u) * 1.1); min-height: 0; }
body.display-mode .dsp-box {
    display: flex; flex-direction: column; flex-shrink: 0;
    padding: calc(var(--dsp-u) * 1.1) calc(var(--dsp-u) * 1.4);
}
body.display-mode .dsp-box.dsp-grow { flex: 1 1 0; }
/* an empty part is hidden with d-none (updateIfChanged); the box rule must not show it */
body.display-mode .dsp .d-none { display: none; }
body.display-mode .dsp-label {
    display: block; margin-bottom: calc(var(--dsp-u) * .25); font-size: calc(var(--dsp-u) * 1.2);
    font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--bs-fg-2);
}
body.display-mode .dsp-big {
    font-size: calc(var(--dsp-u) * 3.6); font-weight: 800; line-height: 1.15;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.display-mode .dsp-big small { font-size: .56em; color: var(--bs-fg-2); }
body.display-mode .dsp-note { font-size: calc(var(--dsp-u) * 1.3); color: var(--bs-fg-3); }
/* the prizes: place and amount per row, the first in gold and largest, the 4th and later
 * smaller; --dsp-chars (the longest amount, game-display.js) shrinks the amounts so they keep
 * one line in the column (the place and the box padding take 6.2 units of it) */
body.display-mode .dsp-prizes {
    display: flex; flex-direction: column; gap: calc(var(--dsp-u) * .35);
    --dsp-amt: min(calc(var(--dsp-u) * 3.4), calc((var(--dsp-side) - var(--dsp-u) * 6.2) / (var(--dsp-chars, 8) * .52)));
}
body.display-mode .dsp-prize {
    display: flex; align-items: baseline; gap: calc(var(--dsp-u) * .9);
    font-weight: 800; line-height: 1.12; font-variant-numeric: tabular-nums; white-space: nowrap;
}
body.display-mode .dsp-place { flex: none; width: calc(var(--dsp-u) * 2.4); font-size: calc(var(--dsp-u) * 2.2); color: var(--bs-fg-2); }
body.display-mode .dsp-amt { font-size: var(--dsp-amt); }
body.display-mode .dsp-prize.is-first .dsp-amt { font-size: calc(var(--dsp-amt) * 1.24); }
body.display-mode .dsp-prize.is-first .dsp-place,
body.display-mode .dsp-prize.is-first .dsp-amt { color: var(--bs-warning-fg); }
body.display-mode .dsp-prize-2 .dsp-place,
body.display-mode .dsp-prize-2 .dsp-amt { color: var(--dsp-bronze); }
body.display-mode .dsp-prize-3 .dsp-place,
body.display-mode .dsp-prize-3 .dsp-amt { color: var(--dsp-silver); }
body.display-mode .dsp-prize:nth-child(n+4) .dsp-amt { font-size: calc(var(--dsp-amt) * .75); }
body.display-mode .dsp-prize:nth-child(n+4) .dsp-place { font-size: calc(var(--dsp-u) * 1.7); }

/* in play and the pool side by side; --dsp-chars (the pool's length) keeps a long pool on its line */
body.display-mode .dsp-box.dsp-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: calc(var(--dsp-u) * 2); }
body.display-mode .dsp-meta > div { display: flex; flex-direction: column; min-width: 0; }
body.display-mode .dsp-meta .dsp-big { font-size: min(calc(var(--dsp-u) * 3), calc((var(--dsp-side) - var(--dsp-u) * 11) / (var(--dsp-chars, 9) * .56))); }
body.display-mode .dsp-names {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--dsp-u) * .3) calc(var(--dsp-u) * .9);
    margin-top: calc(var(--dsp-u) * .45); font-size: calc(var(--dsp-u) * 1.5); line-height: 1.3;
}
body.display-mode .dsp-names > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.display-mode .dsp-out { margin-top: var(--dsp-u); }
body.display-mode .dsp-out .dsp-names { font-size: calc(var(--dsp-u) * 1.25); color: var(--bs-fg-2); }
body.display-mode .dsp-out small { font-size: .85em; color: var(--bs-fg-3); }
/* fitPlayers(): the steps it adds while the players box overflows */
body.display-mode .dsp-fit-1 .dsp-out .dsp-names { font-size: calc(var(--dsp-u) * 1.05); }
body.display-mode .dsp-fit-2 .dsp-out { display: none; }
body.display-mode .dsp-fit-3 .dsp-names { font-size: calc(var(--dsp-u) * 1.25); }
body.display-mode .dsp-fit-4 .dsp-names { font-size: calc(var(--dsp-u) * 1.05); row-gap: 0; }

/* The PIN unlock button in the top-right corner */
body.display-mode .dsp-lock {
    position: fixed; top: calc(var(--dsp-gap) + var(--dsp-u) * .5); right: calc(var(--dsp-gap) + var(--dsp-u) * .7);
    z-index: 9000; padding: .5rem .75rem; border: 0; background: none;
    font-size: 1.2rem; color: var(--bs-fg-body); opacity: .25; transition: opacity .2s;
}
body.display-mode .dsp-lock:hover,
body.display-mode .dsp-lock:focus-visible { opacity: .7; }

/* No season / no game / an error */
body.display-mode .dsp-empty { display: flex; align-items: center; justify-content: center; height: 100%; padding: var(--dsp-gap); }
body.display-mode .dsp-empty-box { padding: 3rem 4rem; text-align: center; }

/* A screen on its side: the clock on top, the boxes under it */
@media (orientation: portrait) {
    body.display-mode {
        --dsp-u: min(1.7vw, 1vh);
        --dsp-clock-w: calc(100vw - 2 * var(--dsp-gap) - 2 * var(--dsp-pad));
    }
    body.display-mode .dsp { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    body.display-mode .dsp-clock { padding-top: calc(var(--dsp-pad) * 2.5); padding-bottom: calc(var(--dsp-pad) * 2.5); } /* the address under the bar */
    body.display-mode .dsp-side {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr);
    }
    /* the prizes across the full width in one row, in play + the pool under them */
    body.display-mode #dsp-prizes { grid-column: 1 / -1; grid-row: 1; }
    body.display-mode .dsp-prizes { flex-direction: row; flex-wrap: wrap; column-gap: calc(var(--dsp-u) * 3); --dsp-amt: calc(var(--dsp-u) * 3.4); }
    body.display-mode #dsp-meta { grid-column: 1 / -1; grid-row: 2; }
    body.display-mode .dsp-box.dsp-grow { grid-column: 1 / -1; grid-row: 3; }
}

/* ---- leaderboard (redesign A, 18. 10. 2026) ---- */
/* „Pódium a řádky": one meta line, the podium of the top 3, rows from rank 4 with the
 * final cut line, the money in a disclosure, the comparison and the season's games.
 * Kit tokens only; both colour modes come from their light-dark() pairs. */

.lb-page { max-width: 880px; margin-inline: auto; }

.lb-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.lb-title { font-size: var(--bs-font-size-2xl); font-weight: 700; margin: 0; min-width: 0; }
.lb-tools { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.lb-season { width: auto; max-width: 11rem; text-overflow: ellipsis; }
.lb-share-btn { --bs-btn-padding-x: .6rem; }
.lb-meta { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); margin-bottom: 1.25rem; }

/* the podium: 2nd, 1st, 3rd */
.lb-podium { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: .5rem; align-items: end; }
.lb-pod {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0;
    padding: .8rem .4rem; text-align: center; cursor: pointer;
    background: var(--bs-bg-2); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5);
    transition: border-color .15s, background-color .15s;
}
/* the podium in his medal colours, as on the game page and the display (20. 10. 2026, „sjednoť
 * barvy prvních 3 míst"): 1st gold, 2nd bronze, 3rd silver */
.lb-pod-1 { grid-column: 2; grid-row: 1; padding-block: 1.25rem; --medal: var(--medal-1); }
.lb-pod-2 { grid-column: 1; grid-row: 1; --medal: var(--medal-2); }
.lb-pod-3 { grid-column: 3; grid-row: 1; --medal: var(--medal-3); }
.lb-pod-1, .lb-pod-2, .lb-pod-3 { border-color: var(--medal); }
.lb-pod.is-me { background: color-mix(in oklch, var(--rogr-blue) 14%, var(--bs-bg-2)); }
.lb-pod:focus-visible { outline: var(--bs-focus-ring); outline-offset: 2px; }
.lb-medal {
    display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: .2rem;
    border-radius: 50%; background: var(--bs-bg-3); color: var(--bs-fg-body); font-weight: 800;
}
.lb-pod-1 .lb-medal, .lb-pod-2 .lb-medal, .lb-pod-3 .lb-medal { background: color-mix(in oklch, var(--medal) 18%, transparent); color: light-dark(color-mix(in oklch, var(--medal) 70%, #000), color-mix(in oklch, var(--medal) 85%, #fff)); }
.lb-pod-name { max-width: 100%; font-size: .92rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.lb-pod-pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-pod-prize { font-size: .72rem; color: var(--bs-fg-1); }
.lb-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.lb-badges .badge, .lb-name .badge { font-size: .65rem; }

/* cards and rows */
.lb-card { background: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.lb-list { overflow: hidden; }
.lb-card > .skeleton-table { padding-inline: 1rem; }
.lb-card .list-row { min-height: 0; padding: .65rem 1rem; gap: .75rem; }
.lb-row, .lb-game-row { cursor: pointer; }
.lb-row:focus-visible, .lb-game-row:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
@media (hover: hover) {
    .lb-row:hover, .lb-game:hover, .lb-pod:hover { background-color: var(--bs-bg-3); }
    .lb-row.is-me:hover { background-color: color-mix(in oklch, var(--rogr-blue) 22%, transparent); }
    .lb-pod.is-me:hover { background-color: color-mix(in oklch, var(--rogr-blue) 22%, var(--bs-bg-2)); }
}
.lb-row.is-me { background: color-mix(in oklch, var(--rogr-blue) 14%, transparent); }
.lb-rank { flex: none; width: 2rem; text-align: end; font-weight: 700; color: var(--bs-fg-2); font-variant-numeric: tabular-nums; }
.lb-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lb-name { display: flex; align-items: center; gap: .35rem; min-width: 0; font-weight: 600; }
.lb-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name .badge { flex: none; }
.lb-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* what broke a tie of points (the audit's U5): it wraps, never cut — it is the row's reason */
.lb-tie { margin-top: .1rem; font-size: var(--bs-font-size-xs); line-height: 1.35; color: var(--bs-fg-2); }
.lb-tie-notes { margin: .6rem 0 0; padding: 0; list-style: none; font-size: var(--bs-font-size-xs); line-height: 1.4; color: var(--bs-fg-2); text-align: center; }
.lb-tie-notes li + li { margin-top: .2rem; }
.lb-tie-name { font-weight: 600; color: var(--bs-fg-body); }
.lb-pts { flex: none; font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-pts small { margin-left: .15rem; font-size: .75rem; font-weight: 400; color: var(--bs-fg-2); }
.lb-list .list-rows > li.lb-cut {
    padding: .3rem 1rem; border-top: 2px dashed var(--bs-warning-fg);
    font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--bs-warning-fg);
}
.lb-more {
    display: block; width: 100%; padding: .75rem 1rem; border: 0; border-top: 1px solid var(--bs-border-color);
    background: transparent; color: var(--bs-primary-fg); font-size: var(--bs-font-size-sm); text-decoration: underline; text-underline-offset: .2em;
}
.lb-more:hover { background: var(--bs-bg-3); }

/* section heads */
.lb-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .6rem; }
.lb-sec-title { margin: 0; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-fg-2); }
.lb-link { padding: 0; border: 0; background: none; color: var(--bs-primary-fg); font-size: var(--bs-font-size-sm); text-decoration: underline; text-underline-offset: .2em; }
.lb-sub-title { margin: 1.25rem 0 .5rem; font-size: var(--bs-font-size-sm); font-weight: 700; }

/* the money disclosure */
.lb-details { background: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.lb-details > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 1rem;
    list-style: none; cursor: pointer; font-size: var(--bs-font-size-sm); font-weight: 600; color: var(--bs-fg-1);
}
.lb-details > summary::-webkit-details-marker { display: none; }
.lb-details > summary i { font-size: .75rem; color: var(--bs-fg-2); transition: transform .15s; }
.lb-details[open] > summary i { transform: rotate(180deg); }
.lb-details > summary:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; border-radius: var(--bs-radius-5); }
.lb-figures { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem 1rem; margin: 0; padding: .35rem 1rem 1rem; border-top: 1px solid var(--bs-border-color); font-size: var(--bs-font-size-sm); }
.lb-figures dt { font-weight: 400; color: var(--bs-fg-2); }
.lb-figures dd { margin: 0; text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-figures dd small { display: block; font-weight: 400; color: var(--bs-fg-2); }

/* the season's games */
.lb-game { display: flex; align-items: center; min-width: 0; }
/* Bootstrap 6's utilities sit in a cascade layer: an unlayered display rule beats .d-none */
.lb-game.d-none { display: none; }
.lb-game:first-child { border-start-start-radius: calc(var(--bs-radius-5) - 1px); border-start-end-radius: calc(var(--bs-radius-5) - 1px); }
.lb-game:last-child { border-end-start-radius: calc(var(--bs-radius-5) - 1px); border-end-end-radius: calc(var(--bs-radius-5) - 1px); }
.lb-game > .lb-game-row { flex: 1; min-width: 0; }
.lb-game-win { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--bs-font-size-sm); font-weight: 600; color: var(--bs-fg-2); }
.lb-game-win i { margin-right: .35rem; color: var(--bs-warning-fg); }
.lb-game-menu { flex: none; margin-inline: -.5rem .35rem; }

/* the comparison */
.lb-compare { padding: 1rem; }
.lb-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .75rem; align-items: end; }
.lb-vs-sep { padding-bottom: .4rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.lb-cmp { font-size: var(--bs-font-size-sm); }
.lb-cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--bs-border-color); align-items: center; }
.lb-cmp-row:last-child { border-bottom: 0; }
.lb-cmp-v { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lb-cmp-v:first-child { text-align: end; }
.lb-cmp-label { text-align: center; color: var(--bs-fg-2); }
.lb-cmp-head .lb-cmp-v { font-weight: 600; color: var(--bs-fg-1); }

/* the loading placeholder of the template */
.lb-skel { min-height: 7rem; justify-content: center; cursor: default; animation: skeleton-pulse 1.5s ease-in-out infinite; }
.lb-pod.lb-skel { border-color: var(--bs-border-color); }
.lb-pod-1.lb-skel { min-height: 8.5rem; }
.lb-skel .skeleton-line, .lb-skel-meta { display: block; }
.lb-skel-name { width: 70%; }
.lb-skel-meta { width: min(28rem, 85%); height: .9rem; }

@media (min-width: 768px) {
    .lb-podium { gap: .9rem; }
    .lb-pod { padding: 1rem .75rem; }
    .lb-pod-1 { padding-block: 1.6rem; }
    .lb-pod-name { font-size: 1.05rem; }
    .lb-pod-pts { font-size: 1.15rem; }
    .lb-pod-prize { font-size: .8rem; }
    .lb-medal { width: 2.25rem; height: 2.25rem; }
}

/* ---- group hub + members (redesign A, 18. 10. 2026) ---- */
/* /group (group.js) and /group-members (group-members.js): one narrow column of rounded
 * cards holding kit list rows (icon or initial, title + sub line, value, chevron or ⋯ menu),
 * an uppercase section label, Bootstrap 6 chips as the member filter. Kit tokens only, so
 * both colour modes come from theme.css. The ⋯ menus float out of the cards, so the cards
 * do not clip (overflow stays visible) and round their first and last row instead. */
.gh-page { max-width: 880px; margin-inline: auto; }
.gh-head { margin-bottom: 0.5rem; }
.gh-head h1 { overflow-wrap: anywhere; }
.gh-meta { margin-bottom: 1rem; overflow-wrap: anywhere; }
.gh-back { margin-bottom: 0.4rem; font-size: var(--bs-font-size-sm); }
.gh-back a { text-decoration: none; }
.gh-sec { margin: 0 0 0.6rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); }
.gh-card { background-color: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.gh-card .list-rows > li:first-child,
.gh-card .list-rows > li:first-child > .list-row { border-top-left-radius: calc(var(--bs-radius-5) - 1px); border-top-right-radius: calc(var(--bs-radius-5) - 1px); }
.gh-card .list-rows > li:last-child,
.gh-card .list-rows > li:last-child > .list-row { border-bottom-left-radius: calc(var(--bs-radius-5) - 1px); border-bottom-right-radius: calc(var(--bs-radius-5) - 1px); }
.gh-row { min-height: 0; padding: 0.65rem 1rem; gap: 0.75rem; }
.gh-ic { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background-color: var(--bs-bg-3); color: var(--bs-fg-2); }
.gh-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gh-main .skeleton-line + .skeleton-line { margin-top: 0.4rem; }
.gh-title { font-weight: 600; color: var(--bs-fg-body); }
.gh-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }
.gh-val { flex: none; font-weight: 700; color: var(--bs-fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gh-ch { flex: none; font-size: 0.8rem; color: var(--bs-fg-3); }
.gh-warn { color: var(--bs-warning-fg); font-weight: 600; }
/* the display row: the title is a stretched link, its two buttons sit above it */
.gh-row-split { position: relative; }
.gh-link, .gh-link:hover { color: var(--bs-fg-body); text-decoration: none; }
.gh-over { position: relative; z-index: 2; flex: none; }
.gh-pin { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; color: var(--bs-fg-body); }
.gh-leave { margin-bottom: 1.5rem; }

/* members: search, chips, rows */
.gh-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gh-chip { --bs-chip-height: 2rem; --bs-chip-padding-x: 0.8rem; --bs-chip-color: var(--bs-fg-body); --bs-chip-bg: var(--bs-bg-2); --bs-chip-border-color: var(--bs-border-color); font-weight: 600; }
.gh-chip:hover { --bs-chip-bg: var(--bs-bg-3); }
.gh-chip.active, .gh-chip.active:hover { --bs-chip-color: var(--bs-fg-body); --bs-chip-bg: color-mix(in oklch, var(--rogr-blue) 16%, transparent); --bs-chip-border-color: var(--rogr-blue); opacity: 1; }
.gh-chip-warn:not(.active) { --bs-chip-border-color: var(--bs-warning-fg); }
.gh-ava { --bs-avatar-size: 2.1rem; --bs-avatar-bg: var(--bs-bg-3); --bs-avatar-color: var(--bs-fg-2); flex: none; font-weight: 700; }
.gh-mrow.is-me .gh-ava { box-shadow: 0 0 0 2px var(--rogr-blue); }
.gh-mrow.is-banned .gh-ava, .gh-mrow.is-banned .gh-name { opacity: 0.7; }
.gh-name-line { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.gh-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-badge { flex: none; font-size: 0.7rem; }
.gh-more-wrap { flex: none; }
.gh-more { color: var(--bs-fg-2); }
.gh-empty { justify-content: center; color: var(--bs-fg-2); }
.gh-code { flex: 1; padding: 0.5rem 0.75rem; border-radius: var(--bs-radius-3); background-color: var(--bs-bg-2); color: var(--bs-fg-body); font-size: 1.1rem; letter-spacing: 0.05em; }
/* an input group's field joins its addon / button (app.css rounds every .form-control above
   Bootstrap's input-group reset, which sits in a layer) */
.gh-join > .input-group-text:not(:last-child), .gh-join > .form-control:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.gh-join > .form-control:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }

/* ---- stats (redesign A, 18. 10. 2026) ---- */
/* „Hráč": the player and the share menu in the head, the season on the meta line, the profit
 * hero, four numbers, the form chips, the profit curve, the placement bar, the games as rows.
 * Kit tokens only; both colour modes come from their light-dark() pairs. Tones: win = gold
 * (warning), paid = success, table = up to a full table (blue), the rest neutral. */
.st-page { max-width: 880px; margin-inline: auto; }
.st-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .75rem; margin-bottom: .35rem; }
.st-title { font-size: var(--bs-font-size-2xl); font-weight: 700; margin: 0; }
.st-tools { display: flex; align-items: center; gap: .5rem; min-width: 0; margin-inline-start: auto; }
.st-pick { width: auto; max-width: 11.5rem; text-overflow: ellipsis; }
.st-share-btn { --bs-btn-padding-x: .6rem; }
.st-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; min-height: 1.6rem; margin-bottom: 1rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.st-season { width: auto; max-width: 12rem; text-overflow: ellipsis; }
.st-dot-sep { color: var(--bs-fg-3); }
.st-hero-v.st-pos { color: var(--bs-success-fg); }
.st-hero-v.st-neg { color: var(--bs-danger-fg); }

/* the hero and the numbers */
.st-hero { display: flex; flex-direction: column; gap: .1rem; padding: .9rem 1rem; margin-bottom: .75rem; background: var(--bs-bg-2); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.st-hero-l { font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--bs-fg-2); }
.st-hero-v { font-size: 2.2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-hero-s { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.st-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 1.25rem; background: var(--bs-bg-2); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.st-nums > div { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: .6rem .25rem; text-align: center; }
.st-nums > div + div { border-inline-start: 1px solid var(--bs-border-color); }
.st-nums b { font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-nums span { font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); overflow-wrap: anywhere; }

/* section heads and cards */
.st-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-bottom: .6rem; }
.st-sec-title { margin: 0; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-fg-2); }
.st-sec-aside { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.st-link { padding: 0; border: 0; background: none; color: var(--bs-primary-fg); font-size: var(--bs-font-size-sm); text-decoration: underline; text-underline-offset: .2em; }
.st-card { padding: .9rem 1rem; background: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }

/* the form: ten place chips */
.st-form { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .3rem; }
.st-chip { display: grid; place-items: center; height: 2rem; border-radius: var(--bs-radius-3); background: var(--bs-bg-3); color: var(--bs-fg-1); font-size: var(--bs-font-size-sm); font-weight: 700; font-variant-numeric: tabular-nums; cursor: default; }
.st-chip.st-table { color: var(--bs-fg-body); }
.st-chip.st-paid { background: color-mix(in oklch, var(--bs-success-fg) 14%, transparent); color: light-dark(color-mix(in oklch, var(--bs-success-fg) 80%, #000), var(--bs-success-fg)); }
.st-chip.st-win { background: color-mix(in oklch, var(--bs-warning-fg) 18%, transparent); color: light-dark(color-mix(in oklch, var(--bs-warning-fg) 75%, #000), var(--bs-warning-fg)); }

/* the profit curve: the SVG stretches, the dots are HTML placed in percent (stats.js) */
.st-plot { position: relative; height: 110px; }
.st-curve { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.st-zero { stroke: var(--bs-border-color); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.st-line { fill: none; stroke: var(--rogr-blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.st-area-up { fill: color-mix(in oklch, var(--bs-success-fg) 16%, transparent); }
.st-area-down { fill: color-mix(in oklch, var(--bs-danger-fg) 14%, transparent); }
.st-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bs-success-fg); box-shadow: 0 0 0 2px var(--bs-bg-1); }
.st-dot.st-win { background: var(--bs-warning-fg); }
.st-axis { display: flex; justify-content: space-between; gap: .5rem; margin-top: .35rem; font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }

/* the placement bar: flex-grow = the count (stats.js) */
.st-dist { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--bs-bg-3); }
.st-seg { flex: 1 1 0; min-width: 4px; background: var(--bs-bg-4); }
.st-seg.st-win, .st-key.st-win { background: var(--bs-warning-fg); }
.st-seg.st-paid, .st-key.st-paid { background: var(--bs-success-fg); }
.st-seg.st-table, .st-key.st-table { background: color-mix(in oklch, var(--rogr-blue) 55%, transparent); }
.st-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .6rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.st-legend b { color: var(--bs-fg-body); }
.st-key { display: inline-block; width: .65rem; height: .65rem; margin-inline-end: .35rem; border-radius: 2px; background: var(--bs-bg-4); }

/* the games */
.st-list { padding: 0; overflow: hidden; }
.st-hrow { min-height: 0; padding: .55rem 1rem; gap: .75rem; cursor: pointer; }
.st-hrow:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
@media (hover: hover) { .st-hrow:hover { background-color: var(--bs-bg-3); } }
.st-place { flex: none; width: 3.4rem; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-place small { font-size: var(--bs-font-size-xs); font-weight: 400; color: var(--bs-fg-2); }
.st-place.st-win { color: var(--bs-warning-fg); }
.st-place.st-paid { color: var(--bs-success-fg); }
.st-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.st-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-amt { flex: none; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--bs-fg-2); }
.st-amt.st-pos { color: var(--bs-success-fg); }

/* the loading placeholder of the template */
.st-skel { animation: skeleton-pulse 1.5s ease-in-out infinite; }
.st-skel .skeleton-line, .st-skel-meta { display: block; }
.st-skel-meta { width: min(20rem, 70%); height: .9rem; }
.st-skel-label { width: 9rem; height: .7rem; }
.st-skel-value { width: 12rem; height: 2.2rem; margin-block: .35rem; }
.st-nums.st-skel { min-height: 3.6rem; }

@media (min-width: 768px) {
    .st-plot { height: 170px; }
    .st-chip { height: 2.4rem; font-size: var(--bs-font-size-md); }
    .st-hero-v { font-size: 2.6rem; }
}

/* ---- group logo (18. 10. 2026) ---- */
/* A group's logo is often a dark shape on transparency: it always sits on a small white
 * tile (both colour modes), padded, the image contained. Markup for every surface:
 *   <img class="gl-tile gl-sm|gl-md|gl-lg" src="{logo_url}" alt="">  (20 / 26 / 48 px)
 * .gl-row lines a tile (or a .gl-spacer of the same size) up with a .gl-name. */
.gl-sm { --gl-size: 20px; --gl-pad: 2px; --gl-radius: 5px; }
.gl-md { --gl-size: 26px; --gl-pad: 3px; --gl-radius: 6px; }
.gl-lg { --gl-size: 48px; --gl-pad: 5px; --gl-radius: 10px; }
.gl-tile {
    display: inline-block; flex: none; box-sizing: border-box; vertical-align: middle;
    width: var(--gl-size, 26px); height: var(--gl-size, 26px); padding: var(--gl-pad, 3px);
    border-radius: var(--gl-radius, 6px); background-color: var(--bs-white);
    box-shadow: 0 0 0 1px var(--bs-border-subtle); object-fit: contain;
}
.gl-spacer { display: inline-block; flex: none; width: var(--gl-size, 26px); height: var(--gl-size, 26px); }
/* Bootstrap's utilities sit in a cascade layer: these display rules would beat .d-none */
.gl-tile.d-none, .gl-spacer.d-none { display: none; }
.gl-row { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 100%; vertical-align: middle; }
.gl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the navbar brand: the ROGR mark, the logo, the group's name (a flex item, so it can end in …) */
#main-navbar .navbar-brand { min-width: 0; }
#main-navbar .brand-home, #main-navbar .brand-group { display: flex; align-items: center; gap: 0.75rem; min-width: 0; color: inherit; text-decoration: none; }
#main-navbar .brand-home { flex: none; }
#main-navbar .brand-sub.gl-brand-name { min-width: 0; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the table display's caption top-left: the logo, then the game */
body.display-mode .gl-dsp { --gl-size: calc(var(--dsp-u) * 2.6); --gl-pad: calc(var(--dsp-u) * .25); --gl-radius: calc(var(--dsp-u) * .6); box-shadow: none; }
body.display-mode .dsp-game:has(.gl-tile) { display: flex; align-items: center; gap: calc(var(--dsp-u) * .8); }
body.display-mode .dsp-game:has(.gl-tile).d-none { display: none; }
body.display-mode .gl-dsp-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---- profile, groups, rules (redesign A, 18. 10. 2026) ---- */
/* /profile (profile.js), /groups (groups.js) and /rules (rules.js): one narrow column of
 * rounded cards holding kit list rows (icon, initial or logo, title + sub line, value,
 * chevron or ⋯ menu) under uppercase section labels; the account fields in a sheet with one
 * field (a bottom sheet on a phone, a dialog from md up); the rules' summary tiles, chapter
 * chips and collapsible chapters. Kit tokens only, so both colour modes come from theme.css.
 * The ⋯ menus float out of the cards, so the cards round their first and last row instead
 * of clipping. */
.pf-page { max-width: 880px; margin-inline: auto; }
.pf-page-head { margin-bottom: 1rem; }
.pf-page-head h1 { overflow-wrap: anywhere; }
.pf-back { margin-bottom: 0.4rem; font-size: var(--bs-font-size-sm); }
.pf-back a { text-decoration: none; }
.pf-sec { margin: 0 0 0.6rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); }
.pf-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pf-sec-link { font-size: var(--bs-font-size-sm); }

/* the profile's head */
.pf-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.pf-ava-lg { flex: none; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; font-size: 1.6rem; font-weight: 800; background-color: color-mix(in oklch, var(--rogr-blue) 22%, transparent); color: var(--accent-text); }
.pf-head-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pf-head-main .skeleton-line + .skeleton-line { margin-top: 0.5rem; }
.pf-name { margin: 0; font-size: var(--bs-font-size-xl); font-weight: 700; overflow-wrap: anywhere; }
.pf-handle { margin: 0; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }

/* cards and rows */
.pf-card { background-color: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.pf-card .list-rows > li:first-child,
.pf-card .list-rows > li:first-child > .list-row { border-top-left-radius: calc(var(--bs-radius-5) - 1px); border-top-right-radius: calc(var(--bs-radius-5) - 1px); }
.pf-card .list-rows > li:last-child,
.pf-card .list-rows > li:last-child > .list-row { border-bottom-left-radius: calc(var(--bs-radius-5) - 1px); border-bottom-right-radius: calc(var(--bs-radius-5) - 1px); }
.pf-row { width: 100%; min-height: 0; padding: 0.65rem 1rem; gap: 0.75rem; border: 0; background-color: transparent; font: inherit; text-align: start; }
button.pf-row { cursor: pointer; }
.pf-row:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
.pf-static:hover, li.pf-static:hover, .pf-row:disabled:hover { background-color: transparent; }
.pf-row:disabled { cursor: default; opacity: 0.6; }
.pf-ic { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background-color: var(--bs-bg-3); color: var(--bs-fg-2); }
.pf-ic-add { background-color: color-mix(in oklch, var(--rogr-blue) 16%, transparent); color: var(--accent-text); }
.pf-ic-grp { background-color: color-mix(in oklch, var(--rogr-blue) 22%, transparent); color: var(--accent-text); font-weight: 800; }
/* a group's logo (.gl-tile, the group logo section) centred in the initial's slot */
.pf-mark { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; }
.pf-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pf-main .skeleton-line + .skeleton-line { margin-top: 0.4rem; }
.pf-title { font-weight: 600; color: var(--bs-fg-body); overflow-wrap: anywhere; }
.pf-title-add { color: var(--bs-primary-fg); }
.pf-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }
.pf-val { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.pf-val-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-ch { flex: none; font-size: 0.8rem; color: var(--bs-fg-3); }
.pf-badge { flex: none; }
.pf-act { flex: none; }
.pf-more-wrap { flex: none; }
.pf-more { color: var(--bs-fg-2); }
.pf-empty { margin: 0; padding: 0.9rem 1rem; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
.pf-empty-card { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem; text-align: center; }
.pf-quiet { margin: 0 0 1.5rem; text-align: center; }
/* a group row: its name is a stretched button, the QR button sits above it */
.pf-split { position: relative; }
.pf-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; min-width: 0; }
.pf-link { padding: 0; border: 0; background: none; color: var(--bs-fg-body); font: inherit; font-weight: 600; text-align: start; overflow-wrap: anywhere; }
.pf-link:focus-visible { outline: none; }
.pf-split:has(.pf-link:focus-visible) { outline: var(--bs-focus-ring); outline-offset: -2px; }
.pf-split.is-current { background-color: color-mix(in oklch, var(--rogr-blue) 8%, transparent); }
.pf-over { position: relative; z-index: 2; flex: none; }
/* a search result: its state and buttons wrap under the name on a phone */
.pf-result { flex-wrap: wrap; }
.pf-result-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.4rem; margin-left: auto; }

/* groups: the two buttons, the search, the code field, the QR */
.pf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.pf-two > .btn-outline { white-space: normal; }
.pf-search > .input-group-text:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.pf-search > .form-control:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.pf-code { text-align: center; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.3em; }
.pf-code::placeholder { letter-spacing: 0.2em; }
.pf-qr { width: min(240px, 100%); }
.pf-invite-code { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }

/* dialogs: the title, two equal buttons; .pf-sheet is a bottom sheet below md */
.pf-dialog-title { font-size: var(--bs-font-size-lg); font-weight: 700; }
.pf-dialog > form, .pf-sheet > form { display: contents; }
.pf-dialog > .dialog-header, .pf-dialog > form > .dialog-header, .pf-sheet > .dialog-header, .pf-sheet > form > .dialog-header { border-bottom: 0; }
.pf-dialog > .dialog-footer, .pf-dialog > form > .dialog-footer, .pf-sheet > .dialog-footer, .pf-sheet > form > .dialog-footer { border-top: 0; }
.pf-act2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.pf-act2 > .btn-solid, .pf-act2 > .btn-outline { white-space: normal; }
.pf-act2 > .d-none { display: none; }
.pf-act2:has(> .d-none) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 767.98px) {
    .pf-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-bottom: 0; border-radius: var(--bs-radius-7) var(--bs-radius-7) 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .pf-sheet::before { content: ""; flex: none; display: block; width: 2.6rem; height: 4px; margin: 0.6rem auto 0; border-radius: 2px; background-color: var(--bs-border-color); }
    .pf-sheet.dialog-slide-up.hiding { transform: translateY(100%); }
    .pf-sheet.dialog-slide-up[open]:not(.hiding) { transform: none; }
    /* closed dialogs are display: none (the dialogs section at the end): the slide starts here */
    @starting-style { .pf-sheet.dialog-slide-up[open]:not(.hiding) { transform: translateY(100%); } }
}

/* rules: the summary tiles, the chapter chips, the chapters */
.pf-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 768px) { .pf-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-tile { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; padding: 0.65rem 0.8rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); background-color: var(--bs-bg-2); }
.pf-tile-l { font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-fg-2); }
.pf-tile-v { font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-tile-s { font-size: var(--bs-font-size-xs); line-height: 1.3; color: var(--bs-fg-2); }
.pf-toc { display: flex; flex-wrap: nowrap; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.pf-toc::-webkit-scrollbar { display: none; }
.pf-toc.d-none { display: none; }
@media (min-width: 1024px) { .pf-toc { flex-wrap: wrap; overflow-x: visible; } }
.pf-chip { --bs-chip-height: 2rem; --bs-chip-padding-x: 0.8rem; --bs-chip-color: var(--bs-fg-body); --bs-chip-bg: var(--bs-bg-2); --bs-chip-border-color: var(--bs-border-color); flex: none; font-weight: 600; }
.pf-chip:hover { --bs-chip-bg: var(--bs-bg-3); }
.pf-chip.active, .pf-chip.active:hover { --bs-chip-bg: color-mix(in oklch, var(--rogr-blue) 16%, transparent); --bs-chip-border-color: var(--rogr-blue); }
.pf-chip:focus-visible { outline: var(--bs-focus-ring); outline-offset: 2px; }
.pf-rule { border-top: 1px solid var(--bs-border-color); scroll-margin-top: 5rem; }
.pf-rule:first-child { border-top: 0; }
.pf-rule > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; cursor: pointer; font-weight: 600; list-style: none; border-radius: var(--bs-radius-5); }
.pf-rule > summary::-webkit-details-marker { display: none; }
.pf-rule > summary::after { content: "\f078"; flex: none; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.75rem; color: var(--bs-fg-3); }
.pf-rule[open] > summary::after { content: "\f077"; }
.pf-rule > summary:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
@media (hover: hover) { .pf-rule > summary:hover { background-color: var(--bs-bg-3); } }
.pf-rule-body { padding: 0 1rem 1rem; font-size: var(--bs-font-size-sm); overflow-wrap: anywhere; }
.pf-rule-body > :first-child { margin-top: 0; }
.pf-rule-body > :last-child { margin-bottom: 0; }
.pf-rule-body h2, .pf-rule-body h3, .pf-rule-body h4, .pf-rule-body h5, .pf-rule-body h6 { margin: 0.9rem 0 0.35rem; font-size: var(--bs-font-size-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bs-fg-2); }
.pf-rule-body p { margin: 0 0 0.5rem; }
.pf-rule-body ul, .pf-rule-body ol { margin: 0 0 0.6rem; padding-left: 1.1rem; }
.pf-rule-body blockquote { margin: 0 0 0.6rem; padding: 0.5rem 0.7rem; border-radius: var(--bs-radius-3); background-color: color-mix(in oklch, var(--bs-warning-fg) 12%, transparent); }
.pf-rule-body blockquote > :last-child { margin-bottom: 0; }
.pf-table { margin: 0 0 0.6rem; }
.pf-table > .table { margin-bottom: 0; }
.pf-rule-body.pf-intro { padding: 0; }
.pf-rules-plain { padding: 1rem; }
.pf-rule-skel { padding: 0.9rem 1rem; border-top: 1px solid var(--bs-border-color); }
.pf-rule-skel:first-child { border-top: 0; }
.pf-editor { min-height: 24rem; }

/* ---- owner pages + audit (redesign A, 18. 10. 2026) ---- */
/* /owner/users, /owner/admin, /owner/debug, /owner/debug/logs, /owner/groups and /logs
 * („Historie změn"): one narrow column of rounded cards holding kit list rows (an icon,
 * initial or status dot, title + sub line, value, chevron or ⋯ menu), uppercase section
 * labels, Bootstrap 6 chips as filters, <details> rows that unfold. Kit tokens only, so
 * both colour modes come from theme.css. The ⋯ menus float out of the cards: the cards
 * do not clip (overflow stays visible) and round their first and last row instead. */
.ow-page { max-width: 880px; margin-inline: auto; }
.ow-page-wide { max-width: 1180px; }
.ow-head { margin-bottom: 0.5rem; }
.ow-head h1 { min-width: 0; overflow-wrap: anywhere; }
.ow-meta { margin-bottom: 1rem; overflow-wrap: anywhere; }
.ow-back { margin-bottom: 0.4rem; font-size: var(--bs-font-size-sm); }
.ow-back a { text-decoration: none; }
.ow-sec { margin: 0 0 0.6rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); }
.ow-sec-warn { color: var(--bs-warning-fg); }
.ow-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 1rem; margin-bottom: 0.6rem; }
.ow-sec-head .ow-sec { margin: 0; }

.ow-card { background-color: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.ow-card .list-rows > li:first-child,
.ow-card .list-rows > li:first-child > .list-row,
.ow-card .list-rows > li:first-child > details > summary { border-top-left-radius: calc(var(--bs-radius-5) - 1px); border-top-right-radius: calc(var(--bs-radius-5) - 1px); }
.ow-card .list-rows > li:last-child,
.ow-card .list-rows > li:last-child > .list-row,
.ow-card .list-rows > li:last-child > details:not([open]) > summary { border-bottom-left-radius: calc(var(--bs-radius-5) - 1px); border-bottom-right-radius: calc(var(--bs-radius-5) - 1px); }
.ow-row { min-height: 0; padding: 0.65rem 1rem; gap: 0.75rem; }
.ow-ic { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background-color: var(--bs-bg-3); color: var(--bs-fg-2); }
.ow-ic-group { font-weight: 800; background-color: color-mix(in oklch, var(--rogr-blue) 22%, transparent); color: var(--bs-primary-fg); }
.ow-ava { --bs-avatar-size: 2.1rem; --bs-avatar-bg: var(--bs-bg-3); --bs-avatar-color: var(--bs-fg-2); flex: none; font-weight: 700; }
.ow-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ow-main .skeleton-line + .skeleton-line { margin-top: 0.4rem; }
.ow-title { font-weight: 600; color: var(--bs-fg-body); }
.ow-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }
.ow-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-val { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--bs-fg-2); font-variant-numeric: tabular-nums; }
.ow-ch { flex: none; font-size: 0.8rem; color: var(--bs-fg-3); }
.ow-name-line { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.ow-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-badge { flex: none; font-size: 0.7rem; }
.ow-row.is-banned .ow-ava, .ow-row.is-banned .ow-name { opacity: 0.7; }
.ow-more-wrap { flex: none; }
.ow-more { color: var(--bs-fg-2); }
.ow-empty-row { justify-content: center; color: var(--bs-fg-2); }
.ow-empty { display: flex; flex-direction: column; align-items: center; padding: 2rem 1rem; text-align: center; }
.ow-more-btn { color: var(--bs-primary-fg); font-weight: 600; }
.ow-inline-actions { display: flex; flex: none; gap: 0.35rem; }
.ow-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; }

/* a row that is one button (Všechny zálohy, the other devices) */
.ow-toggle-row, .ow-hit { width: 100%; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.ow-toggle-row { color: var(--bs-primary-fg); font-weight: 600; }
.ow-toggle-row:hover { background-color: var(--bs-bg-3); }
.ow-toggle-row:focus-visible, .ow-hit:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
.ow-split { flex-wrap: nowrap; }
.ow-hit { display: flex; align-items: center; gap: 0.75rem; flex: 1 1 auto; min-width: 0; padding: 0; border-radius: var(--bs-radius-3); }
.ow-over { flex: none; }
.ow-row-sub { padding-inline-start: 4rem; background-color: var(--bs-bg-2); }

/* filters: chips (users, history, log levels) and the search field */
.ow-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ow-chip { --bs-chip-height: 2rem; --bs-chip-padding-x: 0.8rem; --bs-chip-color: var(--bs-fg-body); --bs-chip-bg: var(--bs-bg-2); --bs-chip-border-color: var(--bs-border-color); font-weight: 600; }
.ow-chip:hover { --bs-chip-bg: var(--bs-bg-3); }
.ow-chip.active, .ow-chip.active:hover { --bs-chip-color: var(--bs-fg-body); --bs-chip-bg: color-mix(in oklch, var(--rogr-blue) 16%, transparent); --bs-chip-border-color: var(--rogr-blue); opacity: 1; }
.ow-chip-error:not(.active) { --bs-chip-border-color: var(--bs-danger-fg); }
.ow-chip-warning:not(.active) { --bs-chip-border-color: var(--bs-warning-fg); }
/* an input group's field joins its addon (app.css rounds every .form-control above
   Bootstrap's input-group reset, which sits in a layer) */
.ow-join > .input-group-text:not(:last-child), .ow-join > .form-control:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.ow-join > .form-control:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }

/* dialogs */
.ow-form { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { }
.ow-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.ow-secret-code { flex: 1 1 10rem; padding: 0.5rem 0.75rem; border-radius: var(--bs-radius-3); background-color: var(--bs-bg-2); color: var(--bs-fg-body); font-size: 1.1rem; letter-spacing: 0.05em; overflow-wrap: anywhere; }

/* <details> rows: the danger zone, the debug statuses, the raw data */
.ow-card > summary, .ow-fold > summary { list-style: none; cursor: pointer; }
.ow-card > summary::-webkit-details-marker, .ow-fold > summary::-webkit-details-marker { display: none; }
.ow-card > summary:focus-visible, .ow-fold > summary:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
.ow-danger > summary, .ow-fold-sum { display: flex; align-items: center; padding: 0.8rem 1rem; font-weight: 600; border-radius: calc(var(--bs-radius-5) - 1px); }
.ow-danger > summary { color: var(--bs-danger-fg); }
.ow-danger[open] > summary, .ow-fold-card[open] > .ow-fold-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ow-danger-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0 1rem 1rem; }
.ow-fold-li { list-style: none; }
.ow-fold > summary.list-row:hover { background-color: var(--bs-bg-3); }
.ow-fold-ch { transition: transform 0.15s; }
.ow-fold[open] .ow-fold-ch { transform: rotate(180deg); }
.ow-fold-body { padding: 0.25rem 1rem 1rem; border-top: 1px solid var(--bs-border-color); background-color: var(--bs-bg-2); }
.ow-fold-li:last-child .ow-fold-body { border-bottom-left-radius: calc(var(--bs-radius-5) - 1px); border-bottom-right-radius: calc(var(--bs-radius-5) - 1px); }
.ow-dl-head { margin: 0.9rem 0 0.4rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-fg-2); }
.ow-dl { display: grid; grid-template-columns: minmax(7rem, 2fr) minmax(0, 3fr); gap: 0.35rem 1rem; margin: 0.75rem 0; font-size: var(--bs-font-size-sm); }
.ow-dl-head + .ow-dl { margin-top: 0; }
.ow-dl dt { font-weight: 400; color: var(--bs-fg-2); }
.ow-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ow-fold-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.25rem; }
.ow-dot { flex: none; width: 0.7rem; height: 0.7rem; margin-inline: 0.3rem 0.55rem; border-radius: 50%; background-color: var(--bs-fg-3); }
.ow-dot.is-ok { background-color: var(--bs-success-fg); }
.ow-dot.is-warn { background-color: var(--bs-warning-fg); }
.ow-dot.is-bad { background-color: var(--bs-danger-fg); }
.ow-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.ow-actions > .btn-outline { min-width: 0; white-space: normal; }
@media (min-width: 768px) { .ow-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ow-raw { max-height: 400px; overflow: auto; padding: 1rem; border-top: 1px solid var(--bs-border-color); font-family: var(--bs-font-mono); font-size: 0.8rem; color: var(--bs-fg-1); white-space: pre-wrap; overflow-wrap: anywhere; }

/* the change history: a block per game or evening, one sentence per change */
.ow-day { display: flex; flex-direction: column; margin: 0 0 0.5rem; overflow-wrap: anywhere; }
.ow-day span { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.ow-ev { min-height: 0; align-items: center; gap: 0.65rem; padding: 0.55rem 1rem; }
.ow-ev-t { flex: none; width: 2.8rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); font-variant-numeric: tabular-nums; }
.ow-ev-i { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background-color: var(--bs-bg-3); color: var(--bs-fg-2); font-size: 0.8rem; }
.ow-ev-i.is-out { background-color: color-mix(in oklch, var(--bs-danger-fg) 18%, transparent); color: var(--bs-danger-fg); }
.ow-ev-i.is-level { background-color: color-mix(in oklch, var(--rogr-blue) 18%, transparent); color: var(--bs-primary-fg); }
.ow-ev-i.is-money { background-color: color-mix(in oklch, var(--bs-warning-fg) 20%, transparent); color: var(--bs-warning-fg); }
.ow-ev-i.is-game { background-color: color-mix(in oklch, var(--bs-success-fg) 18%, transparent); color: var(--bs-success-fg); }
.ow-ev-text { font-size: var(--bs-font-size-sm); overflow-wrap: anywhere; }
.ow-ev-text b { font-weight: 700; }

/* the server log */
.ow-log-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.75rem; }
.ow-log-search { flex: 1 1 16rem; width: auto; }
.ow-log-auto { align-items: center; }
.ow-log-auto > label { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); white-space: nowrap; }
.ow-log-card { overflow: hidden; }
.ow-log-empty { padding: 2.5rem 1rem; text-align: center; color: var(--bs-fg-2); }
.ow-log-viewer { max-height: 70vh; overflow: auto; padding: 0.25rem 0; font-family: var(--bs-font-mono); font-size: 0.78rem; line-height: 1.5; }
.ow-log-line { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.1rem 0.75rem; color: var(--bs-fg-1); }
.ow-log-line:nth-child(even) { background-color: var(--bs-bg-2); }
.ow-log-line:hover { background-color: var(--bs-bg-3); }
.ow-log-raw { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.ow-log-line.is-error { color: var(--bs-danger-fg); }
.ow-log-line.is-warning { color: var(--bs-warning-fg); }
.ow-log-line.is-debug { color: var(--bs-fg-2); }
.ow-log-time { flex: none; min-width: 4rem; font-size: 0.72rem; color: var(--bs-fg-3); }
.ow-log-badge { flex: none; min-width: 2.2rem; padding: 0 0.3rem; border-radius: 3px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-align: center; background-color: var(--bs-bg-3); color: var(--bs-fg-2); }
.ow-log-badge.is-info { background-color: color-mix(in oklch, var(--bs-info-fg) 18%, transparent); color: var(--bs-info-fg); }
.ow-log-badge.is-warning { background-color: color-mix(in oklch, var(--bs-warning-fg) 20%, transparent); color: var(--bs-warning-fg); }
.ow-log-badge.is-error, .ow-log-badge.is-fatal { background-color: color-mix(in oklch, var(--bs-danger-fg) 20%, transparent); color: var(--bs-danger-fg); }
.ow-log-badge.is-fatal { font-weight: 900; }
.ow-log-msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ow-log-method, .ow-log-key { color: var(--bs-primary-fg); }
.ow-log-method { font-weight: 600; }
.ow-log-val { color: var(--bs-fg-body); }
.ow-log-s2 { color: var(--bs-success-fg); }
.ow-log-s3 { color: var(--bs-info-fg); }
.ow-log-s4 { color: var(--bs-warning-fg); }
.ow-log-s5 { color: var(--bs-danger-fg); }

/* ---- season page (redesign A, 18. 10. 2026) ---- */
/* /seasons (seasons.js), his pick „Sezóna jako stránka": the head with the season select and
 * the ⋯ menu, the facts line, the ledger of the final's pool, the final as a step card
 * (Kvalifikace → Založit finále → Hraje se → Výsledky), the expenses by month and the earlier
 * seasons. Kit tokens only, so both colour modes come from theme.css. The ⋯ menus float out
 * of the cards, so the cards do not clip (overflow stays visible) and round their first and
 * last row instead. */
.ss-page { max-width: 880px; margin-inline: auto; }
.ss-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; margin-bottom: 0.35rem; }
.ss-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; min-width: 0; margin: 0; font-size: var(--bs-font-size-2xl); font-weight: 700; }
.ss-title-text { overflow-wrap: anywhere; }
.ss-badge { font-size: var(--bs-font-size-xs); }
.ss-tools { display: flex; align-items: center; gap: 0.5rem; min-width: 0; margin-inline-start: auto; }
.ss-select { width: auto; max-width: 13rem; text-overflow: ellipsis; }
.ss-meta { margin-bottom: 1.25rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }
.ss-skel-meta { display: block; width: min(26rem, 85%); height: 0.9rem; }
.ss-anchor { scroll-margin-top: 5rem; }
/* a dialog's form wraps its header, body and footer: they stay the dialog's flex rows */
.ss-form { display: contents; }
.ss-join > .form-control:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.ss-join > .input-group-text:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }

.ss-card { background-color: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.ss-card > .list-rows > li:first-child,
.ss-card > .list-rows > li:first-child > .list-row { border-start-start-radius: calc(var(--bs-radius-5) - 1px); border-start-end-radius: calc(var(--bs-radius-5) - 1px); }
.ss-card > .list-rows > li:last-child,
.ss-card > .list-rows > li:last-child > .list-row { border-end-start-radius: calc(var(--bs-radius-5) - 1px); border-end-end-radius: calc(var(--bs-radius-5) - 1px); }
.ss-card > .skeleton-table { padding-inline: 1rem; }

/* the ledger: fees less expenses less leaderboard prizes = the final's pool */
.ss-ledger { padding: 0.9rem 1rem; }
.ss-ledger > .skeleton-line { display: block; margin-bottom: 0.7rem; }
.ss-skel-wide { width: 60%; }
.ss-skel-narrow { width: 35%; }
.ss-lh { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.ss-lh span { font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-fg-2); }
.ss-lh b { font-size: 1.5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-lines { list-style: none; margin: 0; padding: 0; }
.ss-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.4rem 0; font-variant-numeric: tabular-nums; }
.ss-lines li + li { border-top: 1px dashed var(--bs-border-color); }
.ss-lines li.ss-total { border-top: 1px solid var(--bs-border-color); font-weight: 700; }
.ss-lines small { display: block; font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }
.ss-lines li > span:last-child { white-space: nowrap; }

/* the final: a head, four steps, the step's rows and actions */
.ss-final { padding: 0.9rem 0 1rem; }
.ss-fh { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; padding: 0 1rem 0.75rem; }
.ss-fh:has(> .ss-menu) { padding-inline-end: 3rem; }
.ss-final-title { margin: 0; font-size: 1rem; font-weight: 700; }
.ss-fsub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.ss-fh > .ss-menu { position: absolute; top: -0.4rem; right: 0.5rem; }
.ss-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; margin: 0 0 1rem; padding: 0 1rem; list-style: none; }
.ss-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }
.ss-steps li + li::before { content: ""; position: absolute; top: 0.75rem; right: 50%; width: 100%; height: 2px; background-color: var(--bs-border-color); }
.ss-steps li.done + li::before { background-color: var(--bs-primary-bg); }
.ss-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background-color: var(--bs-bg-3); font-weight: 700; color: var(--bs-fg-1); }
.ss-steps .done .ss-dot { background-color: var(--bs-primary-bg-subtle); color: var(--bs-primary-fg); }
.ss-steps .cur .ss-dot { background-color: var(--bs-primary-bg); color: var(--bs-primary-contrast); }
.ss-steps .cur { font-weight: 600; color: var(--bs-fg-body); }
.ss-qlist { border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); }
.ss-q { min-height: 0; padding: 0.5rem 1rem; gap: 0.75rem; }
.ss-q.dim .ss-main, .ss-q.dim .ss-pts { opacity: 0.65; }
.ss-q.is-me { background-color: color-mix(in oklch, var(--rogr-blue) 12%, transparent); }
/* a roll call: the name and its note on one line */
.ss-q .ss-main { flex-direction: row; align-items: baseline; gap: 0.5rem; }
.ss-q .ss-sub { flex: none; font-size: var(--bs-font-size-xs); white-space: nowrap; }
.ss-place { flex: none; width: 2rem; text-align: end; font-weight: 700; color: var(--bs-fg-1); font-variant-numeric: tabular-nums; }
.ss-pts { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-pts small { font-weight: 400; color: var(--bs-fg-1); }
.ss-prize { flex: none; font-weight: 600; color: var(--bs-success-fg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-in { font-size: 0.5rem; vertical-align: middle; color: var(--bs-success-fg); }
.ss-cup { color: var(--bs-warning-fg); }
.ss-ban { font-size: 0.65rem; vertical-align: middle; }
.ss-cut {
    display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.3rem 1rem;
    border-top: 2px dashed var(--bs-warning-fg);
    font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-warning-fg);
}
.ss-qlist + .ss-cut { margin-top: -1px; }
.ss-cut + .ss-qlist { border-top: 0; }
.ss-cut span:last-child { color: var(--bs-fg-2); }
.ss-note { margin: 0.75rem 1rem 0; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.ss-note.ss-warn { color: var(--bs-warning-fg); }
.ss-steps + .ss-note { margin-top: 0; margin-bottom: 0.75rem; }
.ss-act { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.9rem 1rem 0; }

/* rows shared by the parts: a name with its sub line, an icon, an amount, a ⋯ */
.ss-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ss-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ss-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-1); overflow-wrap: anywhere; }
.ss-row { min-height: 0; padding: 0.65rem 1rem; gap: 0.75rem; }
/* an expense or a season keeps its whole name (it wraps); the roll-call rows ellipsize */
.ss-row .ss-name { white-space: normal; overflow-wrap: anywhere; }
.ss-ic { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background-color: var(--bs-bg-3); font-size: 0.85rem; color: var(--bs-fg-2); }
.ss-amt { flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-menu { position: relative; flex: none; }
.ss-row .ss-menu { margin-inline-end: -0.5rem; }
.ss-more { color: var(--bs-fg-2); }
.ss-ch { flex: none; font-size: 0.8rem; color: var(--bs-fg-3); }
.ss-row .badge { flex: none; }

/* sections: an uppercase label, a link, month labels */
.ss-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.6rem; }
.ss-sec-title { margin: 0; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); }
.ss-link { padding: 0; border: 0; background: none; font-size: var(--bs-font-size-sm); color: var(--bs-primary-fg); text-decoration: underline; text-underline-offset: 0.2em; }
.ss-month { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0.25rem 0.35rem; font-size: var(--bs-font-size-sm); font-weight: 600; text-transform: capitalize; color: var(--bs-fg-2); font-variant-numeric: tabular-nums; }
.ss-empty { padding: 1rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.ss-empty-state { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2rem 1rem; text-align: center; color: var(--bs-fg-2); }
.ss-empty-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--bs-fg-body); }
.ss-empty-text { margin: 0 0 0.5rem; }
/* a final card that ends with its rows (a plain member's view) ends at the last row */
.ss-final:has(> .ss-qlist:last-child) { padding-bottom: 0; }
.ss-final > .ss-qlist:last-child { border-bottom: 0; }
.ss-final > .ss-qlist:last-child > li:last-child > .list-row { border-end-start-radius: calc(var(--bs-radius-5) - 1px); border-end-end-radius: calc(var(--bs-radius-5) - 1px); }

/* ---- settings parts (redesign A, 18. 10. 2026) ---- */
/* /settings/season, /final, /classic, /blinds (settings-parts.js) and /group-settings
 * (group-settings.js): the hub's narrow column (gh-page, gh-sec, gh-card rows) with form
 * cards, the places editors (a prize per place), the evening's timeline on the blinds page,
 * the logo / invite / PIN rows and the save bar that sticks above the bottom nav. Kit
 * tokens only; unlayered rules that set display get their own .d-none (Bootstrap's
 * utilities sit in a layer below them). */
.sp-card { padding: 1rem; background-color: var(--bs-bg-1); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.sp-card .form-field + .form-field { margin-top: 0.75rem; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.sp-grid > .form-field + .form-field { margin-top: 0; }
.sp-card .sp-grid { margin-top: 0; }
.sp-card .form-field + .sp-grid { margin-top: 0.75rem; }
.sp-wide { grid-column: 1 / -1; }
.sp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 479.98px) {
    .sp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sp-grid-3 > .sp-start { grid-column: 1 / -1; }
}
.sp-preview { margin: 0; padding: 0.5rem 0.75rem; border-radius: var(--bs-radius-3); background-color: var(--bs-bg-2); color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }

/* the places editors: "1. [50] %  2. [30] %  3. [20] %  − +" and the line under them */
.sp-places { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; }
.sp-pl { display: inline-flex; align-items: center; gap: 0.25rem; margin: 0; font-weight: 600; color: var(--bs-fg-2); }
.sp-pl .form-control { width: 2.8rem; padding-inline: 0.2rem; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.sp-pl .form-control::-webkit-inner-spin-button, .sp-pl .form-control::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sp-places.is-kc .sp-pl .form-control { width: 5.6rem; }
.sp-pl-btns { display: inline-flex; gap: 0.125rem; }
.sp-pl-btns .btn-icon { --bs-btn-padding-y: 0; width: 1.9rem; height: 1.9rem; }
.sp-pl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-top: 0.75rem; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
.sp-pl-foot:empty { display: none; }
.sp-sum.is-ok { color: var(--bs-success-fg); }
.sp-sum.is-bad { color: var(--bs-danger-fg); font-weight: 600; }

/* the save bar: in the flow at the end of the part, stuck to the bottom while the part scrolls */
.sp-savebar { position: sticky; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; padding: 0.6rem 0.75rem 0.6rem 1rem; background-color: var(--bs-bg-2); border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); box-shadow: 0 6px 18px rgb(0 0 0 / 0.25); }
.sp-savebar.d-none { display: none; }
.sp-savebar.is-dirty { border-color: var(--rogr-blue); }
.sp-savebar-status { min-width: 0; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
.sp-savebar .btn-solid { flex: none; }
[data-bs-theme="light"] .sp-savebar { box-shadow: 0 6px 18px rgb(0 0 0 / 0.1); }

/* the blinds page: the evening's timeline (levels, breaks, the long break with the last rebuys) */
.sp-list-card { padding: 0; overflow: hidden; }
.sp-evening { list-style: none; margin: 0; padding: 0; }
.sp-evening > li + li { border-top: 1px solid var(--bs-border-color); }
.sp-ev { display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 2.75rem; padding: 0.5rem 1rem; color: var(--bs-fg-body); font-variant-numeric: tabular-nums; text-align: left; background: none; border: 0; }
button.sp-ev { cursor: pointer; }
button.sp-ev:hover { background-color: var(--bs-bg-3); }
button.sp-ev:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: -2px; }
.sp-ev-t { flex: none; width: 2.9rem; color: var(--bs-fg-3); font-size: var(--bs-font-size-sm); }
.sp-ev-n { flex: none; width: 1.9rem; color: var(--bs-fg-2); font-weight: 700; }
.sp-ev-b { flex: 1; min-width: 0; }
.sp-ev-tag { flex: none; padding: 0.1rem 0.5rem; border-radius: var(--bs-radius-pill); color: var(--bs-success-fg); background-color: color-mix(in oklch, var(--bs-success-fg) 15%, transparent); font-size: var(--bs-font-size-xs); font-weight: 700; }
.sp-ev-edit { flex: none; color: var(--bs-fg-3); font-size: 0.8rem; }
.sp-ev-ic { flex: none; width: 1.9rem; text-align: center; }
.sp-ev-break { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); background-color: color-mix(in oklch, var(--rogr-blue) 7%, transparent); }
.sp-ev-break.is-long { color: var(--bs-warning-fg); font-weight: 600; background-color: color-mix(in oklch, var(--bs-warning-fg) 10%, transparent); }
.sp-ev-more, .sp-ev-empty { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }

/* the group part: the logo, invite and PIN rows, the secrets in their dialogs, the danger zone */
.sp-logo-slot { flex: none; display: flex; }
.sp-row-actions { flex: none; display: flex; align-items: center; gap: 0.4rem; }
.sp-file-btn { margin: 0; cursor: pointer; }
.sp-file-btn:focus-within { outline: 2px solid var(--bs-primary-base); outline-offset: 2px; }
.sp-row-btn { width: 100%; color: var(--bs-fg-body); text-align: left; background: none; border: 0; }
.sp-row-btn:hover { background-color: var(--bs-bg-3); }
.sp-row-btn:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: -2px; }
.gh-card .list-rows > li:first-child > .sp-row-btn { border-top-left-radius: calc(var(--bs-radius-5) - 1px); border-top-right-radius: calc(var(--bs-radius-5) - 1px); }
.gh-card .list-rows > li:last-child > .sp-row-btn { border-bottom-left-radius: calc(var(--bs-radius-5) - 1px); border-bottom-right-radius: calc(var(--bs-radius-5) - 1px); }
.sp-secret { display: flex; align-items: center; gap: 0.5rem; }
.sp-secret .gh-code { min-width: 0; font-variant-numeric: tabular-nums; }
.sp-qr { display: grid; place-items: center; margin: 1rem 0; }
.sp-qr:empty { display: none; }
.sp-qr img { width: 200px; max-width: 100%; padding: 8px; border-radius: var(--bs-radius-5); background-color: var(--bs-white); }
.sp-pin { letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.sp-danger > summary { padding: 0.6rem 0; color: var(--bs-danger-fg); font-weight: 600; cursor: pointer; }
.sp-danger-body { padding: 1rem; border: 1px solid color-mix(in oklch, var(--bs-danger-fg) 40%, transparent); border-radius: var(--bs-radius-5); }

/* a phone: the logo row's buttons go under its text */
@media (max-width: 479.98px) {
    .sp-logo-row { flex-wrap: wrap; }
    .sp-logo-row > .gh-main { flex-basis: calc(100% - 3rem - 0.75rem); }
    .sp-logo-row > .sp-row-actions { margin-inline-start: calc(3rem + 0.75rem); }
}

/* the hub's head: the group's logo in front of its name, the name wraps beside it */
.gh-head:has(> .gl-tile) { flex-wrap: nowrap; justify-content: flex-start; }
.gh-head:has(> .gl-tile) > h1 { min-width: 0; }

/* ---- dialogs (audit 18. 10. 2026) ---- */
/* Every native <dialog class="dialog">: the closed state, the scrolling body, the phone layout
   and the field rules; then the shared sheet (ui.js showBottomSheet), the game and player
   detail rows, the comparison's common games and the display's PIN dialog. The global rules
   are :where() (no specificity) wherever a page may refine them; Bootstrap sits in a layer,
   so they still beat it. */

/* A closed v6 dialog keeps the kit's display: flex (it is only hidden), so every closed dialog
   took layout under <main> and lengthened the page (the layout's confirm and prompt on every
   page). Closed, it now takes none; the fade-in starts from @starting-style, as no transition
   runs from display: none. The fade-out runs while the dialog is still [open] (.hiding). */
dialog.dialog:not([open]) { display: none; }
@starting-style {
    :where(dialog.dialog:not(.dialog-instant)[open]) { opacity: 0; }
    :where(dialog.dialog.dialog-slide-up:not(.dialog-instant)[open]) { transform: translateY(3rem); }
}

/* the body scrolls when the dialog is taller than the screen (a plain .dialog let tall content
   overflow unscrollable); the header and the footer stay in view */
:where(dialog.dialog[open]) .dialog-body { overflow-y: auto; overscroll-behavior: contain; }
.dl-title { font-size: var(--bs-font-size-lg); font-weight: 700; overflow-wrap: anywhere; }

/* a phone: nearly the full width; sized to the visual viewport (--dl-vvh from ui.js), so the
   keyboard does not hide the footer; a dialog with a field sits at the top, above the keys.
   The footer's buttons share the row in equal parts while their labels fit on one line; a
   longer label („Ukončit „Sezóna 1“") puts each button on its own full-width row, the action
   above „Zrušit" (wrap-reverse), and only a label wider than the dialog wraps its text. */
@media (max-width: 575.98px) {
    :where(dialog.dialog) { --bs-dialog-margin: 0.75rem; }
    /* the installed app covers the whole screen (viewport-fit=cover, 19. 10. 2026): a dialog
       centres between the notch and the home indicator and is at most their gap tall — a tall
       one (a game's or a player's detail) used to start under the clock, its header hidden.
       The bottom sheets stay at the bottom edge with their own padding. */
    :where(dialog.dialog[open]:not(.dl-sheet, .pf-sheet)) { inset-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px); }
    :where(dialog.dialog[open]) { max-height: calc(var(--dl-vvh, 100dvh) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2 * var(--bs-dialog-margin)); }
    :where(dialog.dialog:has(.form-control)) { margin-block-start: var(--bs-dialog-margin); }
    :where(dialog.dialog) .dialog-footer { flex-wrap: wrap-reverse; }
    :where(dialog.dialog) .dialog-footer > :is(.btn-solid, .btn-outline) { flex: 1 1 0; min-width: fit-content; padding-inline: 1rem; white-space: normal; }
}

/* An invalid field shows its red border on every page (inputs, selects and textareas are all
   .form-control in v6): app.css's Forms rule paints the border and the kit's theme.css sets
   --bs-control-border-color, both unlayered, so Bootstrap's layered is-invalid lost (the ga-
   and ao- sections had partial fixes; this is the one rule). Focused, the ring is red too; the
   field's unit takes the colour. .check / .radio / .switch keep Bootstrap's own (nothing
   unlayered overrides them). The contact form's own border and focus rules come earlier with
   the same specificity, so this wins there as well. */
.form-control.is-invalid, [data-bs-validate] .form-control:user-invalid { --bs-control-border-color: var(--bs-danger-border); border-color: var(--bs-danger-border); }
.form-control.is-invalid:focus, [data-bs-validate] .form-control:user-invalid:focus { border-color: var(--bs-danger-border); box-shadow: 0 0 0 0.2rem var(--bs-danger-focus-ring); }
.input-group:has(> .form-control.is-invalid) > .input-group-text { border-color: var(--bs-danger-border); }

/* fields: 16 px at least, so iOS does not zoom into a focused field (in every dialog and in the
   play pages' pickers) */
@media (max-width: 1023.98px) {
    :where(dialog.dialog) .form-control,
    .lb-season, .st-pick, .st-season, .dl-cmp-pick { font-size: max(1rem, 16px); }
}

/* an input group's invalid field shows its .invalid-feedback (a sibling of the group, not of the
   field); the joined corners of a field and its unit (app.css rounds every .form-control) */
.form-field > .input-group:has(> .is-invalid) ~ .invalid-feedback { display: block; }
.dl-join > .form-control:has(+ .input-group-text:not(.d-none)) { border-start-end-radius: 0; border-end-end-radius: 0; }
.dl-join > .input-group-text:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.dl-form { display: flex; flex-direction: column; gap: 1.25rem; }
/* a dialog's form around its header, body and footer: they stay the dialog's flex rows */
.dl-contents { display: contents; }
.dl-form > .form-field > .invalid-feedback:empty { display: none; }

/* the sheet of choices: a small dialog from md up, a bottom sheet with a grip on a phone */
.dl-sheet { --bs-dialog-width: 420px; }
.dl-sheet-head { gap: 0.75rem; border-bottom: 1px solid var(--bs-border-color); }
.dl-sheet-title { margin: 0; font-size: var(--bs-font-size-lg); font-weight: 700; overflow-wrap: anywhere; }
.dialog-body.dl-sheet-body { padding: 0; }
.dl-sheet-item { display: flex; align-items: center; gap: 0.85rem; width: 100%; min-height: 52px; padding: 0.7rem 1rem; color: var(--bs-fg-body); font: inherit; text-align: start; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.dl-sheet-item:hover:not(:disabled), .dl-sheet-item:active:not(:disabled) { background-color: var(--bs-bg-3); }
.dl-sheet-item:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: -2px; }
.dl-sheet-item:disabled { cursor: default; color: var(--bs-fg-3); }
.dl-sheet-item.is-danger:not(:disabled) { color: var(--bs-danger-fg); }
.dl-sheet-icon { flex: none; width: 1.25rem; text-align: center; color: var(--bs-fg-2); }
.dl-sheet-item.is-danger:not(:disabled) .dl-sheet-icon { color: inherit; }
.dl-sheet-text { display: flex; flex-direction: column; min-width: 0; }
.dl-sheet-label { font-weight: 600; overflow-wrap: anywhere; }
.dl-sheet-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
    .dl-sheet { width: 100%; max-width: 100%; max-height: min(85dvh, calc(var(--dl-vvh, 100dvh) - 2rem)); margin: auto 0 0; border-bottom: 0; border-radius: var(--bs-radius-7) var(--bs-radius-7) 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .dl-sheet::before { content: ""; flex: none; display: block; width: 2.6rem; height: 4px; margin: 0.6rem auto 0; border-radius: 2px; background-color: var(--bs-border-color); }
    .dl-sheet-head { padding-top: 0.5rem; }
    .dl-sheet.hiding { transform: translateY(100%); }
    @starting-style { .dl-sheet[open]:not(.hiding) { transform: translateY(100%); } }
}

/* the game and player details: the figures as definition tiles, the players and games as rows */
.dl-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.25rem; }
@media (min-width: 768px) { .dl-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dl-figs > div { min-width: 0; padding: 0.55rem 0.8rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); background-color: var(--bs-bg-2); }
.dl-figs dt { font-size: var(--bs-font-size-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bs-fg-2); }
.dl-figs dd { margin: 0; font-size: var(--bs-font-size-lg); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dl-meta { margin: -0.5rem 0 1rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.dl-sec { margin: 0 0 0.5rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); }
.dl-card { border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); background-color: var(--bs-bg-1); }
.dl-card .list-row.dl-row { min-height: 0; padding: 0.6rem 0.9rem; gap: 0.75rem; }
.dl-row[role="button"] { cursor: pointer; }
.dl-row[role="button"]:hover { background-color: var(--bs-bg-3); }
.dl-row[role="button"]:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: -2px; }
.dl-card .list-rows > li:first-child > .dl-row { border-start-start-radius: calc(var(--bs-radius-5) - 1px); border-start-end-radius: calc(var(--bs-radius-5) - 1px); }
.dl-card .list-rows > li:last-child > .dl-row { border-end-start-radius: calc(var(--bs-radius-5) - 1px); border-end-end-radius: calc(var(--bs-radius-5) - 1px); }
.dl-place { flex: none; width: 2rem; text-align: center; font-weight: 700; color: var(--bs-fg-2); font-variant-numeric: tabular-nums; }
.dl-place.is-medal { color: var(--medal); font-weight: 800; }
.dl-place.is-paid { color: var(--bs-success-fg); }
.dl-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dl-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; }
.dl-amt { flex: none; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--bs-fg-2); }
.dl-amt.is-pos { color: var(--bs-success-fg); }
.dl-amt.is-neg { color: var(--bs-danger-fg); }

/* the comparison's common games: a row per game, the two players' places and winnings */
.dl-cmp-head { display: flex; gap: 0.75rem; padding: 0 0.9rem 0.35rem; font-size: var(--bs-font-size-xs); font-weight: 700; color: var(--bs-fg-2); }
.dl-cmp-head > :first-child { flex: 1; }
.dl-cmp-p { flex: none; width: 5.5rem; text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-cmp-v { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.dl-cmp-v b { font-weight: 700; }
.dl-cmp-v small { color: var(--bs-fg-2); font-size: var(--bs-font-size-xs); }
.dl-cmp-v.is-pos b { color: var(--bs-success-fg); }

/* the display's PIN: a native modal <dialog class="pin-overlay"> over the whole screen */
dialog.pin-overlay { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--bs-fg-body); }
dialog.pin-overlay[open] { display: flex; }
dialog.pin-overlay::backdrop { background: transparent; }
.pin-key:focus-visible { outline: 3px solid var(--bs-primary-base); outline-offset: 2px; }

/* ---- group admin dialogs (audit 18. 10. 2026) ---- */
/* The members, group settings, settings parts and seasons pages (.ga-page) and their dialogs
   (.ga-dialog); ga-forms.js marks the fields and shows what the server refused. */

/* a form around a dialog's header, body and footer leaves them the dialog's flex items
   (the body keeps scrolling inside .dialog-scrollable) */
.ga-form { display: contents; }

/* (an invalid field's red border: the global rule in the dialogs section) */

/* a field's error replaces its hint (they would say the same twice) */
.ga-dialog .form-control.is-invalid ~ .form-text { display: none; }

/* the server's refusal at the top of a dialog's body or of the group form */
.ga-alert { display: block; margin-bottom: 1rem; }

/* a footer's buttons wrap rather than squeeze on a phone („Ukončit „Sezóna 1“…") */

/* „Přidat člena": the global owner's search, one row per account, members greyed out */
.ga-results { max-height: 15rem; overflow-y: auto; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); }
.ga-results:empty { display: none; }
.ga-result { width: 100%; min-height: 48px; padding: 0.5rem 0.75rem; text-align: left; background: none; border: 0; }
button.ga-result { cursor: pointer; }
button.ga-result:hover { background-color: var(--bs-bg-3); }
button.ga-result:focus-visible { outline: 2px solid var(--bs-primary-base); outline-offset: -2px; }
.ga-result.is-in { opacity: 0.65; }

/* the invite dialog: the QR's download under it, the new code's question inline */
.ga-qr-actions { display: flex; justify-content: center; margin-bottom: 1rem; }
.ga-qr-actions:has(> .d-none:only-child) { display: none; }
.ga-inline-confirm { padding: 0.85rem 1rem; border: 1px solid color-mix(in oklch, var(--bs-warning-fg) 55%, transparent); border-radius: var(--bs-radius-5); background-color: color-mix(in oklch, var(--bs-warning-fg) 10%, transparent); }
.ga-inline-confirm.d-none { display: none; }
.ga-inline-q { margin: 0 0 0.25rem; font-weight: 600; }
.ga-inline-body { margin: 0 0 0.75rem; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
.ga-inline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }

/* the PIN dialog's „Vygenerovat náhodný PIN" under the field */
.ga-pin-gen { padding-inline: 0; }

/* the level dialog: both blinds start at the top when one shows its error */
.ga-level-grid { align-items: start; }

/* the save bar's status carries why a save did not happen */
.sp-savebar-status.ga-bar-error { color: var(--bs-danger-fg); }

/* the season select stays at 16 px (a smaller field makes iOS zoom the page on focus) */
.ga-select { font-size: 16px; }

/* „+ Nová sezóna" with a season running: its final's state under the explanation */
.ga-state { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }

/* the season page's head on a phone: „+ Nová sezóna" is its icon (the label stays for
   screen readers in the button's aria-label) */
@media (max-width: 479.98px) {
    .ga-new-label { display: none; }
}

/* ---- account, owner, public dialogs (audit 18. 10. 2026) ---- */
/* a password field with its show / hide toggle at the control's end (form-fields.js) */
.ao-pass { position: relative; }
.ao-pass > .form-control { padding-inline-end: 3rem; }
.ao-pass-toggle { position: absolute; inset-block: 2px; inset-inline-end: 2px; width: 2.75rem; height: auto; min-height: 0; border-radius: calc(var(--bs-radius-5) - 2px); color: var(--bs-fg-2); }
.ao-pass-toggle:hover, .ao-pass-toggle[aria-pressed="true"] { color: var(--bs-fg-body); }
/* Bootstrap shows a feedback after a sibling .is-invalid only: the toggle's wrapper sits between */
.form-field:has(.ao-pass > .is-invalid) > .invalid-feedback { display: block; }
/* the rules editor in monospace at 16 px (a smaller font zooms an iPhone onto the field) */
.ao-editor { font-size: 1rem; }
.ao-form-actions { justify-content: flex-end; }
/* a member row with a role select (owner dialogs): inline from 576 px, under the name on a phone */
.ao-role { flex: none; width: auto; min-width: 8.5rem; }
@media (max-width: 575.98px) {
    .ao-member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 0.75rem; }
    .ao-member > .ao-role { grid-row: 2; grid-column: 2 / -1; width: 100%; max-width: 14rem; }
    .ao-member:not(:has(> .ow-ava)) { grid-template-columns: minmax(0, 1fr) auto; }
    .ao-member:not(:has(> .ow-ava)) > .ao-role { grid-column: 1 / -1; }
}
/* the generated password: one tap selects all of it */
.ao-secret { user-select: all; font-family: var(--bs-font-mono); }
/* (an invalid control's red border, the contact form's too: the global rule in the dialogs section) */
/* the notice of an owner page opened by someone else (form-fields.js aoOwnerGate) */
.ao-gate { padding: 1.5rem 1rem; margin-bottom: 1.5rem; }

/* ---- the clock's break on the game page (19. 10. 2026) ---- */
.live-clock.is-break .lc-level { color: var(--accent-text); }

/* ---- the online poker tables (19. 10. 2026, his pick „C · Karty v centru") ---- */
/* /poker lists the group's tables; /poker/{id} is the table: the app's navbar steps aside, the
 * page has its own header (back, the name, the clock), the opponents in a strip, the board and
 * the pot on the felt, one's own cards above the actions at the bottom (the thumb's reach). */
.pkl-page { max-width: 760px; margin-inline: auto; }
.pkl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.pkl-head h1 { margin: 0; }
.pkl-meta { color: var(--bs-fg-2); }
.pkl-empty { padding: 2rem 1rem; text-align: center; color: var(--bs-fg-2); }
.pkl-row { gap: 0.85rem; }
.pkl-ic { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--bs-bg-3); color: var(--bs-fg-2); }
.pkl-ic.is-live { background: color-mix(in oklch, var(--bs-success-fg) 18%, transparent); color: var(--bs-success-fg); }
.pkl-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pkl-name { font-weight: 700; }
.pkl-name .badge { font-size: 0.65rem; vertical-align: 2px; }
.pkl-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); overflow-wrap: anywhere; } /* wraps: its counts and places are never cut (U19) */
.pkl-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.pkl-kind { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.6rem 0.7rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-4); cursor: pointer; }
.pkl-kind:has(input:checked) { border-color: var(--rogr-blue); background: color-mix(in oklch, var(--rogr-blue) 10%, transparent); }
.pkl-kind span { display: flex; flex-direction: column; }
.pkl-kind small { color: var(--bs-fg-2); font-size: var(--bs-font-size-xs); }
.pkl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

body:has(.pk-page) #main-navbar { display: none; }
body:has(.pk-page) #main-content { margin-top: 0 !important; margin-bottom: 0 !important; padding-bottom: 0; } /* over <main>'s mt-5 mb-7 utilities */
.pk-page {
    --pk-felt-1: #2f7a55; --pk-felt-2: #17402d; /* the felt and the bot badge: the table's own colours */
    --pk-bot: #6c5ce7;
    display: flex; flex-direction: column; max-width: 560px; margin-inline: auto;
    min-height: 100dvh; padding-top: env(safe-area-inset-top);
}
.pk-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--bs-border-color); }
.pk-title { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.pk-title b, .pk-title .pk-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-title .pk-name { margin: 0; font-size: inherit; font-weight: 700; line-height: inherit; } /* the page's heading, styled as the table's name (F14) */
.pk-sub { font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }
.pk-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pk-ct { font-weight: 800; font-size: 1.05rem; color: var(--bs-success-fg); }
.pk-ct.is-next { font-size: 0.85rem; font-weight: 700; color: var(--bs-warning-fg); } /* the level is over: its blinds come with the next hand */
.pk-cl { font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); white-space: nowrap; }

/* the opponents */
.pk-strip { display: flex; gap: 0.25rem; overflow-x: auto; padding: 0.75rem 0.25rem 0.4rem; scrollbar-width: none; }
.pk-strip::-webkit-scrollbar { display: none; }
.pk-seat { position: relative; flex: 1 0 4.2rem; max-width: 5.2rem; display: flex; flex-direction: column; align-items: center; text-align: center; font-variant-numeric: tabular-nums; }
.pk-ava { position: relative; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--bs-bg-3); color: var(--bs-fg-1); font-weight: 800; }
.pk-seat.is-turn .pk-ava { box-shadow: 0 0 0 3px var(--bs-warning-fg); }
.pk-seat.is-win .pk-ava { box-shadow: 0 0 0 3px var(--medal-1); }
.pk-seat.is-out { opacity: 0.42; }
.pk-seat.is-empty .pk-ava { background: transparent; border: 2px dashed var(--bs-border-color); color: var(--bs-fg-3); }
.pk-bot { position: absolute; right: -4px; bottom: -3px; width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 50%; background: var(--pk-bot); color: #fff; font-size: 0.6rem; border: 2px solid var(--bs-bg-body); }
.pk-pos { position: absolute; left: -6px; top: -5px; min-width: 1.15rem; height: 1.15rem; padding: 0 0.2rem; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #111; font-size: 0.55rem; font-weight: 800; }
.pk-sn { margin-top: 0.3rem; max-width: 100%; font-size: 0.7rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-st { font-size: 0.7rem; color: var(--bs-fg-2); }
.pk-line { font-size: 0.68rem; color: var(--bs-fg-3); min-height: 1rem; }
.pk-chip { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.15rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: rgb(0 0 0 / .45); color: #ffd36b; font-weight: 700; font-size: 0.68rem; white-space: nowrap; }
.pk-chip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #e0a400 26% 100%); }
.pk-shown { display: flex; gap: 2px; margin-top: 0.25rem; }
.pk-acts { display: flex; gap: 0.25rem; margin-top: 0.3rem; }
.pk-acts .btn-sm { --bs-btn-padding-x: 0.45rem; font-size: 0.7rem; }
.pk-unbot { position: absolute; top: -6px; right: 0; }

/* the felt */
.pk-felt {
    margin: 0.35rem 0.5rem 0; padding: 1.1rem 0.6rem 1rem; border-radius: 1.4rem; text-align: center;
    background: radial-gradient(ellipse at 50% 30%, var(--pk-felt-1), var(--pk-felt-2) 80%);
    box-shadow: inset 0 0 24px rgb(0 0 0 / .5); color: #fff;
}
.pk-phase { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / .62); }
.pk-board { display: inline-flex; gap: 0.35rem; margin-top: 0.5rem; }
.pk-pot { margin-top: 0.7rem; font-weight: 800; color: #ffd36b; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pk-pot small { display: block; font-size: 0.72rem; font-weight: 600; color: rgb(255 255 255 / .7); }
.pk-info { min-height: 1.2rem; margin-top: 0.25rem; font-size: 0.78rem; color: rgb(255 255 255 / .78); }
.pk-results { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; font-size: 1rem; }
.pk-results li[class*="medal-"] { color: var(--medal); font-weight: 800; }

/* a card, drawn in CSS (a size up since 19. 10. 2026, his „karty můžou být trochu větší"; a
 * 320 px phone gets them a little smaller, the hand dialog's board too — the end of the file) */
.pk-c { width: 3.15rem; height: 4.45rem; border-radius: 0.45rem; background: #fbfbf8; color: #15191a; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 2px 6px rgb(0 0 0 / .45); font-weight: 800; flex: none; }
.pk-c .r { font-size: 1.5rem; } .pk-c .s { font-size: 1.38rem; margin-top: 0.1rem; }
.pk-c.red { color: #d7263d; }
.pk-c.back { background: repeating-linear-gradient(45deg, #0b80bf 0 4px, #075e8c 4px 8px); border: 2px solid #e8eef2; }
.pk-c.pk-slot { background: transparent; border: 2px dashed rgb(255 255 255 / .2); box-shadow: none; }
.pk-c.lg { width: 4.7rem; height: 6.65rem; border-radius: 0.6rem; } .pk-c.lg .r { font-size: 2.15rem; } .pk-c.lg .s { font-size: 2rem; }
.pk-c.xs { width: 1.4rem; height: 1.95rem; border-radius: 0.24rem; box-shadow: 0 1px 2px rgb(0 0 0 / .45); } .pk-c.xs .r { font-size: 0.72rem; } .pk-c.xs .s { font-size: 0.66rem; margin: 0; }
.pk-c.back.xs { border-width: 1px; }

/* one's own cards and the actions */
.pk-me { display: flex; flex-direction: column; align-items: center; margin-top: 0.9rem; }
.pk-hole { display: flex; min-height: 6.65rem; }
.pk-hole .pk-c + .pk-c { margin-left: -0.85rem; transform: rotate(7deg); }
.pk-hole.is-folded { opacity: 0.4; }
.pk-mine { margin-top: 0.4rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.35rem; text-align: center; }
.pk-hand { flex-basis: 100%; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.pk-panel { margin-top: auto; padding: 0.75rem 0.75rem calc(0.9rem + env(safe-area-inset-bottom)); }
.pk-timer { height: 4px; border-radius: 2px; background: var(--bs-bg-3); overflow: hidden; margin-bottom: 0.65rem; }
.pk-timer i { display: block; height: 100%; width: 0; background: var(--bs-warning-fg); transition: width .25s linear; }
.pk-timer i.is-low { background: var(--bs-danger-fg); }
.pk-pre { display: flex; gap: 0.35rem; }
.pk-pre button { flex: 1; padding: 0.35rem 0; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-4); background: transparent; color: var(--bs-fg-2); font-size: 0.75rem; font-weight: 600; }
.pk-range { width: 100%; margin: 0.75rem 0 0.25rem; accent-color: var(--rogr-blue); }
.pk-actions { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 0.5rem; margin-top: 0.6rem; }
.pk-actions.two { grid-template-columns: 1fr 1.3fr; }
.pk-actions button, .pk-big { min-height: 3rem; font-weight: 700; }
.pk-note { margin: 0.25rem 0 0; text-align: center; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
.pk-left { font-weight: 600; opacity: 0.8; }
@media (min-width: 576px) {
    .pk-c { width: 3.6rem; height: 5.1rem; } .pk-c .r { font-size: 1.7rem; } .pk-c .s { font-size: 1.55rem; }
    .pk-felt { padding: 1.5rem 1rem 1.3rem; }
}

/* ---- the online poker's hand end and history (19. 10. 2026, his „u showdownu je to moc
 * rychle" and „statistiky, žebříček, historie") ---- */
/* the showdown: the winners' five ringed in gold, the board's other cards dimmed; a shown hand
 * a size up and named under its tile; a tick on who asked for the next hand */
.pk-c.is-best { box-shadow: 0 0 0 2px var(--medal-1), 0 2px 8px rgb(0 0 0 / .5); }
.pk-c.is-dim { opacity: 0.42; }
.pk-c.sm { width: 1.95rem; height: 2.75rem; border-radius: 0.32rem; } .pk-c.sm .r { font-size: 1.02rem; } .pk-c.sm .s { font-size: 0.92rem; margin: 0; }
.pk-shown.is-up { gap: 3px; }
.pk-hn { max-width: 100%; margin-top: 0.15rem; font-size: 0.62rem; line-height: 1.15; color: var(--bs-fg-2); }
.pk-hn.is-win { color: var(--medal-1); font-weight: 700; }
.pk-rdy { position: absolute; left: -4px; bottom: -3px; width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 50%; background: var(--bs-success-fg); color: #fff; font-size: 0.55rem; border: 2px solid var(--bs-bg-body); }
.pk-last { margin-top: 0.5rem; padding: 0.15rem 0.6rem; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; background: transparent; color: rgb(255 255 255 / .85); font-size: 0.72rem; }
@media (hover: hover) { .pk-last:hover { background: rgb(255 255 255 / .1); } }

/* /poker: the tabs, the season, the standings, the style, the records, the history */
.pkl-tabs { display: flex; gap: 0.25rem; margin: 0.75rem 0 1rem; padding: 0.25rem; border-radius: var(--bs-radius-5); background: var(--bs-bg-2); overflow-x: auto; scrollbar-width: none; }
.pkl-tab { flex: 1 1 0; min-width: 0; padding: 0.45rem 0.35rem; border: 0; border-radius: var(--bs-radius-4); background: transparent; color: var(--bs-fg-2); font-weight: 600; font-size: var(--bs-font-size-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkl-tab[aria-selected="true"] { background: var(--bs-bg-1); color: var(--bs-fg-1); box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.pkl-filter { margin-bottom: 1rem; }
.pkl-filter select { max-width: 18rem; }
.pkl-foot { font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }
.lb-list .list-row.is-me { background: color-mix(in oklch, var(--rogr-blue) 14%, transparent); }
.lb-pts.fg-success, .lb-pts.fg-danger { font-size: 1rem; }
.pkl-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.6rem; }
.pkl-rec { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.8rem 0.9rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-5); background: var(--bs-bg-1); color: inherit; text-align: start; }
button.pkl-rec { cursor: pointer; }
@media (hover: hover) { button.pkl-rec:hover { background: var(--bs-bg-3); } }
.pkl-rec-ic { color: var(--medal-1); }
.pkl-rec-l { font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bs-fg-2); }
.pkl-rec-v { font-size: 1.15rem; line-height: 1.25; }
.pkl-rec-w { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.pkl-style-row { padding: 0.7rem 1rem; }
.pkl-style-head { display: flex; justify-content: space-between; gap: 0.5rem; }
.pkl-style-head span { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.pkl-style { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.9rem, 1fr)); gap: 0.35rem 0.5rem; margin: 0.45rem 0 0; }
.pkl-style dt { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bs-fg-2); }
.pkl-style dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pkl-legend { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.75rem; margin: 0.6rem 0 0; font-size: var(--bs-font-size-sm); }
.pkl-legend dt { font-weight: 700; }
.pkl-legend dd { margin: 0; color: var(--bs-fg-2); }
.pkl-switch { display: flex; align-items: center; gap: 0.5rem; }
.pkl-switch label { font-size: var(--bs-font-size-sm); }
.pkl-hfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.pkl-chip { border: 0; cursor: pointer; }
.pkl-hrow { gap: 0.85rem; cursor: pointer; }
@media (hover: hover) { .pkl-hrow:hover { background-color: var(--bs-bg-3); } }
.pkl-hrow:focus-visible { outline: var(--bs-focus-ring); outline-offset: -2px; }
.pkl-net { flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }

/* the hand replayed (poker-hand.js) */
.pkh-sub { font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.pkh-empty { margin: 0; color: var(--bs-fg-2); }
.pkh-felt {
    --pk-felt-1: #2f7a55; --pk-felt-2: #17402d;
    padding: 0.9rem 0.5rem 0.7rem; border-radius: 1rem; text-align: center; color: #fff;
    background: radial-gradient(ellipse at 50% 30%, var(--pk-felt-1), var(--pk-felt-2) 80%); box-shadow: inset 0 0 20px rgb(0 0 0 / .5);
}
.pkh-felt .pk-board { margin-top: 0; }
.pkh-felt .pk-c { width: 2.6rem; height: 3.7rem; } .pkh-felt .pk-c .r { font-size: 1.25rem; } .pkh-felt .pk-c .s { font-size: 1.15rem; }
/* the narrowest phones (320 px): the board's five a little smaller, the tabs' text too */
@media (max-width: 359.98px) {
    .pk-c { width: 2.85rem; height: 4.05rem; } .pk-c .r { font-size: 1.35rem; } .pk-c .s { font-size: 1.25rem; }
    .pk-board { gap: 0.25rem; }
    .pkh-felt .pk-c { width: 2.35rem; height: 3.35rem; } .pkh-felt .pk-c .r { font-size: 1.1rem; } .pkh-felt .pk-c .s { font-size: 1rem; }
    .pkl-tab { font-size: var(--bs-font-size-xs); }
}
.pkh-pot { margin-top: 0.45rem; font-weight: 800; color: #ffd36b; font-variant-numeric: tabular-nums; }
.pkh-seats { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.pkh-seat { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--bs-border-color); }
.pkh-seat.is-win .pkh-who b { color: var(--medal-1); }
.pkh-cards { display: flex; gap: 2px; flex: none; }
.pkh-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem; flex: 1; min-width: 0; }
.pkh-who .badge { font-size: 0.6rem; }
.pk-bot-tag { color: var(--pk-bot, #6c5ce7); font-size: 0.75rem; }
.pkh-hand { flex-basis: 100%; font-size: var(--bs-font-size-xs); color: var(--bs-fg-2); }
.pkh-hand.is-win { color: var(--medal-1); font-weight: 700; }
.pkh-num { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-variant-numeric: tabular-nums; }
.pkh-num small { font-size: var(--bs-font-size-xs); font-weight: 700; }
.pkh-history { margin-top: 0.75rem; }
.pkh-street { display: flex; align-items: center; gap: 0.4rem; margin: 0.75rem 0 0.25rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-fg-2); }
.pkh-scards { display: inline-flex; gap: 2px; }
.pkh-log { list-style: none; margin: 0; padding: 0; }
.pkh-line { display: block; width: 100%; padding: 0.25rem 0.5rem; border: 0; border-radius: var(--bs-radius-3); background: transparent; color: var(--bs-fg-1); font-size: var(--bs-font-size-sm); text-align: start; }
.pkh-line.is-cur { background: color-mix(in oklch, var(--rogr-blue) 16%, transparent); font-weight: 700; }
.pkh-line.is-future { color: var(--bs-fg-3); }
.pkh-line.is-win { color: var(--medal-1); font-weight: 700; }
.pkh-line.is-win.is-future { color: var(--bs-fg-3); font-weight: 400; }
.pkh-foot { display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.pkh-pos { min-width: 4rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }

/* the table's social side and the run-out's chance (19. 10. 2026, „udělej vše") */
.pk-eq { margin-top: 0.2rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: rgb(0 0 0 / .55); color: #9fe6b8; font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pk-eq.is-me { margin: 0; font-size: 0.85rem; background: color-mix(in oklch, var(--bs-success-fg) 18%, transparent); color: var(--bs-success-fg); }
.pk-hole { position: relative; }
.pk-bubble {
    position: absolute; top: -0.4rem; left: 50%; z-index: 2; transform: translateX(-50%);
    max-width: 8rem; padding: 0.2rem 0.55rem; border-radius: 1rem; background: var(--bs-bg-1); color: var(--bs-fg-1);
    box-shadow: 0 2px 10px rgb(0 0 0 / .35); font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    animation: pk-pop .25s ease-out;
}
.pk-bubble.is-emoji { padding: 0.1rem 0.35rem; font-size: 1.5rem; line-height: 1.2; background: transparent; box-shadow: none; }
.pk-hole .pk-bubble { top: -1.1rem; }
@keyframes pk-pop { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pk-bubble { animation: none; } }
.pk-rx-menu { min-width: 13rem; }
.pk-rx-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.15rem; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--bs-border-color); }
.pk-rx { padding: 0.2rem 0; border: 0; border-radius: var(--bs-radius-3); background: transparent; font-size: 1.35rem; line-height: 1.2; }
@media (hover: hover) { .pk-rx:hover { background: var(--bs-bg-3); } }
.pkl-invs { display: flex; flex-direction: column; gap: 0.15rem; max-height: 14rem; overflow-y: auto; padding: 0.25rem 0; }
.pkl-inv { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.25rem; border-radius: var(--bs-radius-3); cursor: pointer; }
@media (hover: hover) { .pkl-inv:hover { background: var(--bs-bg-3); } }
.pkl-inv-none { margin: 0; color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
/* the stats page's online poker card (19. 10. 2026) */
/* two figures a row on a phone (a cash balance and „75 % · 38 %" are wide), all in one from md */
.st-online { margin-bottom: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-online > div:nth-child(odd) { border-inline-start: 0; }
.st-online > div:nth-child(n+3) { border-top: 1px solid var(--bs-border-color); }
.st-online.st-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
    .st-online.st-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .st-online.st-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .st-online > div:nth-child(odd) { border-inline-start: 1px solid var(--bs-border-color); }
    .st-online > div:first-child { border-inline-start: 0; }
    .st-online > div:nth-child(n+3) { border-top: 0; }
}
.st-online-link { font-size: var(--bs-font-size-sm); font-weight: 600; }
/* the rules page's online part */
.pkr-rules { padding: 1rem 1.1rem; }
.pkr-rules ul, .pkr-rules ol { margin: 0 0 0.75rem; padding-inline-start: 1.2rem; }
.pkr-rules li + li { margin-top: 0.35rem; }
/* the game page's way to the online tables (19. 10. 2026), its open tables in rows (20. 10. 2026,
 * his pick „Řádky v kartě"): the head (icon, title, „Založit online stůl"), then at most three
 * tables with their button and „Všechny stoly (N)" */
.live-online { padding: 0.9rem 1rem; text-align: start; }
.live-online-head { display: flex; align-items: center; gap: 0.85rem; }
.live-online-list { margin: 0.75rem -1rem 0; border-top: 1px solid var(--bs-border-color); }
.live-online-row { min-height: 0; padding: 0.7rem 1rem; }
.live-online-row .pkl-ic { flex: none; }
.live-online-row .btn-sm { flex: none; white-space: nowrap; }
.live-online-all { align-self: flex-start; display: inline-flex; align-items: center; margin-top: 0.6rem; font-size: var(--bs-font-size-sm); font-weight: 600; }
.live-online-ic { flex: none; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: color-mix(in oklch, var(--rogr-blue) 14%, transparent); color: var(--rogr-blue); }
.live-online-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.live-online .btn-outline { flex: none; }
@media (max-width: 479.98px) {
    .live-online-head { flex-wrap: wrap; }
    .live-online-head .btn-outline { width: 100%; }
}

/* the UX pass (19. 10. 2026, „nafoť si nové stránky a dolaď grafiku a UX") */
/* the winners' rings in a gold that shines on the felt in both colour modes (the medal tokens
 * are text colours: in light mode a dark amber) */
.pk-page, .pkh-dialog { --pk-gold: #ffc531; }
.pk-c.is-best { box-shadow: 0 0 0 2px var(--pk-gold), 0 2px 8px rgb(0 0 0 / .5); }
.pk-seat.is-win .pk-ava { box-shadow: 0 0 0 3px var(--pk-gold); }
/* the chance: a success pill that reads in both modes */
.pk-eq { background: color-mix(in oklch, var(--bs-success-fg) 18%, transparent); color: var(--bs-success-fg); }
/* a reaction stays inside its tile (the strip scrolls sideways and would cut it off) */
.pk-seat .pk-bubble { max-width: 100%; white-space: normal; line-height: 1.15; text-align: center; }
.pk-seat .pk-bubble.is-emoji { max-width: none; }
/* the replay: compact steps, the board kept in sight */
.pkh-foot > .btn-icon { flex: 0 0 auto; width: 2.75rem; }
.pkh-felt { position: sticky; top: -1px; z-index: 1; }
/* the list: one's place in a finished tournament */
.pkl-place { background: var(--bs-bg-3); color: var(--bs-fg-1); }
.pkl-place[class*="medal-"] { background: color-mix(in oklch, var(--medal) 22%, transparent); color: var(--medal); }
/* the invitations: „Vybrat všechny" */
.pkl-inv-all { align-self: flex-end; padding: 0.15rem 0.25rem; border: 0; background: transparent; color: var(--rogr-blue); font-size: var(--bs-font-size-sm); font-weight: 600; }
/* the game page's card: the icon and the text in a row, the button below on a phone */
.live-online-head { flex-direction: row; text-align: start; }
@media (max-width: 479.98px) {
    .live-online-main { flex: 1 1 calc(100% - 3.5rem); }
}
/* the felt is dark in both colour modes: its places in bright medals (gold, bronze, silver —
 * his order: the 2nd bronze, the 3rd silver) */
.pk-felt .medal-1 { --medal: #ffc531; } .pk-felt .medal-2 { --medal: #e8a06a; } .pk-felt .medal-3 { --medal: #dfe6eb; }

/* ---- the table on a big screen (from 1024 px, his pick „B · Stůl a panel", 19. 10. 2026):
 * the seats round an oval felt with a wooden rim, one's cards and the actions beneath, a side
 * panel with the clock, the chip counts and the running hand. Below 1024 px the wrappers step
 * aside (display: contents) and the phone's layout is as it was. */
.pk-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pk-table { display: contents; }
.pk-side { display: none; }
@media (min-width: 1024px) {
    /* the whole table in the window: the oval takes what the head and the bottom row leave */
    .pk-page { max-width: 1480px; height: 100dvh; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); }
    .pk-head { grid-column: 1 / -1; padding-inline: 1rem; }
    .pk-head .pk-clock { display: none; }
    .pk-main { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 1.5rem; min-height: 0; padding: 0.5rem 1.5rem 0; }
    .pk-table { grid-column: 1 / -1; display: block; position: relative; min-height: 340px; margin: 2.75rem 4.75rem 2.5rem; }
    .pk-table .pk-felt {
        position: absolute; inset: 9% 6%; margin: 0; border-radius: 50%;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        box-shadow: inset 0 0 40px rgb(0 0 0 / .55), 0 0 0 14px #3a2a1e, 0 0 0 16px #24180f, 0 10px 40px rgb(0 0 0 / .4);
    }
    .pk-table .pk-c:not(.xs):not(.sm):not(.lg) { width: 4rem; height: 5.65rem; } .pk-table .pk-board .pk-c .r { font-size: 1.9rem; } .pk-table .pk-board .pk-c .s { font-size: 1.75rem; }
    .pk-table .pk-pot { font-size: 1.8rem; }
    .pk-table .pk-strip { position: absolute; inset: 0; z-index: 2; display: block; overflow: visible; padding: 0; pointer-events: none; }
    /* the seats sit on the table, not on the page: dark in both modes like the felt and the rim
       (the audit's U11 — in light mode white tiles over the wood looked milky); color-scheme
       makes the kit's light-dark() tokens inside them take their dark values */
    .pk-table .pk-seat {
        color-scheme: dark; color: var(--bs-fg-body);
        position: absolute; transform: translate(-50%, -50%); pointer-events: auto; width: 8.75rem; max-width: none;
        padding: 0.55rem 0.5rem 0.5rem; border: 1px solid var(--bs-border-color); border-radius: 1.1rem;
        background: color-mix(in oklch, var(--bs-bg-1) 94%, transparent); box-shadow: 0 6px 18px rgb(0 0 0 / .35);
    }
    .pk-table .pk-seat.is-empty { background: color-mix(in oklch, var(--bs-bg-1) 70%, transparent); box-shadow: none; }
    .pk-table .pk-seat.is-out { opacity: 0.55; }
    .pk-table .pk-sn { font-size: 0.85rem; } .pk-table .pk-st, .pk-table .pk-line, .pk-table .pk-hn { font-size: 0.78rem; }
    .pk-me { grid-column: 1; grid-row: 2; margin: 0; align-self: end; padding-bottom: 1rem; }
    .pk-panel { grid-column: 2; grid-row: 2; width: 100%; max-width: 720px; margin: 0; align-self: end; }
    .pk-side {
        display: flex; flex-direction: column; gap: 1.5rem; min-height: 0; overflow-y: auto; padding: 1.25rem 1.4rem;
        border-inline-start: 1px solid var(--bs-border-color); background: var(--bs-bg-1);
    }
    .pks-sec { margin-bottom: 0.4rem; font-size: var(--bs-font-size-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bs-fg-2); }
    .pks-time { font-size: 4rem; font-weight: 800; line-height: 1; color: var(--bs-success-fg); font-variant-numeric: tabular-nums; }
    .pks-time.is-next { font-size: 1.6rem; line-height: 1.2; color: var(--bs-warning-fg); }
    .pks-blinds { margin-top: 0.3rem; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
    .pks-blinds.is-big { font-size: 2.6rem; font-weight: 800; }
    .pks-next { color: var(--bs-fg-2); }
    .pks-chips, .pks-log { list-style: none; margin: 0; padding: 0; }
    .pks-chips li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0.35rem; border-bottom: 1px solid var(--bs-border-color); font-variant-numeric: tabular-nums; }
    .pks-chips li.is-me { background: color-mix(in oklch, var(--rogr-blue) 14%, transparent); border-radius: var(--bs-radius-3); }
    .pks-chips li.is-turn span::after { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-start: 0.4rem; border-radius: 50%; background: var(--bs-warning-fg); vertical-align: 1px; }
    .pks-chips li.is-out { color: var(--bs-fg-3); }
    .pks-bot { color: var(--pk-bot); font-size: 0.75rem; }
    .pks-log li { padding: 0.15rem 0; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
    .pks-log li.is-last { color: var(--bs-fg-1); font-weight: 700; }
}

/* the strip is the seats' offset parent: pkFollow centres the one to act by offsetLeft */
.pk-strip { position: relative; scroll-behavior: auto; }

/* ---- the landing page's screenshots (19. 10. 2026, his „doplň online hru a přidej pěkné
 * screeny, i světlý režim") — the shots come in both colour modes, the page's mode shows one ---- */
.lp-shot { display: block; width: 100%; height: auto; }
.lp-shot-light { display: none; }
[data-bs-theme="light"] .lp-shot-light { display: block; }
[data-bs-theme="light"] .lp-shot-dark { display: none; }

/* a phone: a dark bezel with rounded corners round the shot */
.lp-phone {
    position: relative; margin: 0; padding: 7px; border-radius: 2.1rem; background: #0b0d0e;
    box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 60px rgb(0 0 0 / .45);
}
.lp-phone .lp-shot { border-radius: 1.65rem; }
[data-bs-theme="light"] .lp-phone { box-shadow: 0 0 0 1px rgb(0 0 0 / .15), 0 24px 60px rgb(0 0 0 / .22); }

/* the hero's three phones: the middle one in front, the others tilted behind */
.lp-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; margin: 3.5rem auto 0; max-width: 760px; height: 470px; }
.lp-phones .lp-phone { position: absolute; bottom: 0; width: 210px; }
.lp-phones .lp-phone--main { z-index: 2; width: 230px; }
.lp-phones .lp-phone--left { transform: translateX(-62%) rotate(-7deg) scale(.88); transform-origin: bottom center; opacity: .92; }
.lp-phones .lp-phone--right { transform: translateX(62%) rotate(7deg) scale(.88); transform-origin: bottom center; opacity: .92; }
@media (max-width: 575.98px) {
    .lp-phones { height: 380px; margin-top: 2.5rem; }
    .lp-phones .lp-phone { width: 160px; }
    .lp-phones .lp-phone--main { width: 180px; }
    .lp-phones .lp-phone--left { transform: translateX(-52%) rotate(-7deg) scale(.86); }
    .lp-phones .lp-phone--right { transform: translateX(52%) rotate(7deg) scale(.86); }
}

/* the online card in the grid and its „Nové" badge */
.feature-card { position: relative; }
.feature-card--online .feature-icon { background: color-mix(in oklch, #22c55e 15%, transparent); }
.feature-card--online .feature-icon i { color: #22c55e; }
.feature-card--online { border-color: rgba(34, 197, 94, 0.45); }
.feature-card--online:hover { border-color: rgba(34, 197, 94, 0.8); }
.lp-new { position: absolute; top: 0.85rem; right: 0.85rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--bs-success-bg); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

/* the online section: the text and two phones side by side, the big screen beneath */
.lp-split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .lp-split { grid-template-columns: 1fr 1fr; } }
.lp-lead { font-size: 1.15rem; color: var(--bs-fg-2); }
.lp-points { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.lp-points li { display: flex; gap: 0.85rem; align-items: flex-start; }
.lp-points i { flex: none; width: 2.2rem; height: 2.2rem; display: grid; --fa-display: grid; place-items: center; border-radius: 0.7rem; background: color-mix(in oklch, var(--rogr-blue) 14%, transparent); color: var(--rogr-blue); }
.lp-points span { padding-top: 0.2rem; }
/* align-items: flex-start — a stretched flex item grew the first phone by the second one's offset
 * into an empty bezel under its shot (his iPhone, 19. 10. 2026) */
.lp-duo { display: flex; justify-content: center; align-items: flex-start; gap: 1.5rem; }
.lp-duo .lp-phone { width: min(44%, 250px); }
.lp-duo .lp-phone--low { margin-top: 3.5rem; }
/* a phone: the two shots large enough to read, side by side to swipe through */
@media (max-width: 575.98px) {
    .lp-duo { justify-content: flex-start; gap: 1rem; margin-inline: -1rem; padding: 0.5rem 1rem 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .lp-duo::-webkit-scrollbar { display: none; }
    .lp-duo .lp-phone { flex: 0 0 74%; width: auto; scroll-snap-align: center; }
    .lp-duo .lp-phone--low { margin-top: 0; }
}

/* a screen (a computer, a TV): a window bar over the shot */
.lp-screen { margin: 4rem auto 0; max-width: 1040px; border-radius: 0.9rem; overflow: hidden; background: #0b0d0e; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 80px rgb(0 0 0 / .45); }
[data-bs-theme="light"] .lp-screen { box-shadow: 0 0 0 1px rgb(0 0 0 / .12), 0 30px 80px rgb(0 0 0 / .2); }
.lp-screen-bar { display: flex; gap: 0.45rem; padding: 0.65rem 0.9rem; background: #1b1f21; }
.lp-screen-bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #3a4044; }
.lp-screen-bar i:first-child { background: #ff5f57; } .lp-screen-bar i:nth-child(2) { background: #febc2e; } .lp-screen-bar i:nth-child(3) { background: #28c840; }
.lp-screen figcaption { padding: 0.9rem 1.2rem; background: var(--bs-bg-1); color: var(--bs-fg-2); text-align: center; font-size: var(--bs-font-size-sm); }
.lp-screen--tv { margin: 0; padding: 10px; border-radius: 1rem; }
.lp-screen--tv .lp-shot { border-radius: 0.4rem; }

/* the tour: a shot and its words in a row, every other row the other way round */
.lp-row { display: grid; gap: 2rem; align-items: center; margin: 0 auto 4.5rem; max-width: 980px; }
.lp-row:last-child { margin-bottom: 0; }
.lp-row .lp-phone { width: min(70%, 270px); margin-inline: auto; }
.lp-row-text h3 { font-weight: 800; margin-bottom: 0.75rem; }
.lp-row-text p { font-size: 1.1rem; color: var(--bs-fg-2); margin: 0; }
@media (min-width: 768px) {
    .lp-row { grid-template-columns: 300px 1fr; gap: 4rem; }
    .lp-row--flip { grid-template-columns: 1fr 300px; }
    .lp-row--flip > figure { order: 2; }
    .lp-row--wide { grid-template-columns: 1.5fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
    .lp-phone, .lp-screen { transition: transform .4s ease; }
    .lp-row:hover .lp-phone { transform: translateY(-6px); }
}

/* ---- the public tools (/timer, /vyhry; 20. 10. 2026): a blind clock and a payout calculator
 * for anyone, no account; the landing's „Nástroje zdarma" cards ---- */
.tl-page { max-width: 64rem; padding-block: 1.5rem 2.5rem; }
.tl-head { margin-bottom: 1.25rem; }
.tl-kicker { margin: 0 0 .35rem; font-size: var(--bs-font-size-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rogr-blue); }
.tl-head h1 { font-weight: 800; margin-bottom: .5rem; }
.tl-lead { color: var(--bs-fg-2); font-size: 1.05rem; max-width: 42rem; margin: 0; text-wrap: pretty; }
.tl-clock { padding: 1.25rem; text-align: center; margin-bottom: 1.25rem; }
.tl-clock-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-weight: 700; }
.tl-level { color: var(--rogr-blue); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.tl-state { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); }
.tl-time { margin: .5rem 0 .75rem; font-size: clamp(4.5rem, 22vw, 9rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--bs-fg-body); }
.tl-bar { height: .4rem; border-radius: 999px; background: var(--bs-bg-3); overflow: hidden; }
.tl-bar span { display: block; height: 100%; width: 100%; background: var(--rogr-blue); }
.tl-blinds { margin-top: .9rem; font-size: clamp(2.2rem, 10vw, 3.5rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tl-next { margin-top: .3rem; min-height: 1.5em; color: var(--bs-fg-2); }
.tl-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.tl-main-btn { min-width: 9.5rem; }
.tl-clock.is-break .tl-time, .tl-clock.is-break .tl-level { color: var(--rogr-blue); }
.tl-clock.is-low .tl-time { color: var(--bs-warning-fg); }
.tl-clock.is-low .tl-bar span { background: var(--bs-warning-fg); }
.tl-clock.is-stopped .tl-time { opacity: .55; }
.tl-clock:fullscreen { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 4vh 5vw; border: 0; border-radius: 0; background: var(--bs-bg-body); }
.tl-clock:fullscreen .tl-time { font-size: min(32vh, 24vw); }
.tl-clock:fullscreen .tl-blinds { font-size: min(13vh, 10vw); }
.tl-clock:fullscreen .tl-next, .tl-clock:fullscreen .tl-level, .tl-clock:fullscreen .tl-state { font-size: 4vh; }
.tl-clock:fullscreen .tl-bar { height: 1.2vh; }
.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 768px) { .tl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.tl-card { padding: 1.1rem 1.25rem; }
.tl-sec { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .9rem; font-size: 1.05rem; font-weight: 800; }
.tl-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: .9rem 1rem; }
.tl-form .form-field { margin: 0; }
@media (max-width: 400px) { .tl-form { grid-template-columns: minmax(0, 1fr); } }
.tl-locked { margin: .9rem 0 0; color: var(--bs-warning-fg); font-size: var(--bs-font-size-sm); }
.tl-table { margin: 0; }
.tl-table th, .tl-table td { padding: .45rem .5rem; }
.tl-table tr.is-now td { background: color-mix(in oklch, var(--rogr-blue) 16%, transparent); font-weight: 700; }
.tl-table tr.tl-brk td { color: var(--rogr-blue); font-style: italic; }
.tl-table tr.tl-end td { padding-top: .6rem; border-top: 2px dashed var(--bs-border-color); color: var(--bs-fg-2); font-size: var(--bs-font-size-xs); letter-spacing: .05em; text-transform: uppercase; }
.tl-cta { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.25rem; background: color-mix(in oklch, var(--rogr-blue) 10%, var(--bs-bg-1)); }
.tl-cta > div { flex: 1 1 22rem; min-width: 0; } /* a .card is a column flexbox: the row keeps the basis a width */
.tl-cta-title { margin-bottom: .35rem; font-size: 1.15rem; font-weight: 800; }
.tl-other { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.25rem; font-weight: 600; }
.tl-note, .tl-muted { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); text-wrap: pretty; }
.tl-note { margin-top: 1rem; }
.tl-warn { color: var(--bs-danger-fg); font-weight: 600; }
.tp-pool { color: var(--rogr-blue); font-variant-numeric: tabular-nums; }
.tp-pct-wrap { display: inline-flex; align-items: center; gap: .35rem; }
.tp-pct { width: 5.5rem; font-size: 16px; } /* 16 px: a smaller field zooms the iPhone's page on focus */
.tp-place { font-weight: 700; white-space: nowrap; }
.tp-place[class*="medal-"] { color: var(--medal); }
.tp-amount { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.lp-tools-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 52rem; margin-inline: auto; }
@media (min-width: 768px) { .lp-tools-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lp-tool { display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; }
.lp-tool:hover { border-color: var(--rogr-blue); color: inherit; }
.lp-tool-ic { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: color-mix(in oklch, var(--rogr-blue) 14%, transparent); color: var(--rogr-blue); font-size: 1.25rem; }
.lp-tool-main { display: flex; flex-direction: column; gap: .2rem; flex: 1; min-width: 0; }
.lp-tool-main b { font-size: 1.05rem; }
.lp-tool-main span { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); text-wrap: pretty; }
.lp-tool-ch { flex: none; color: var(--bs-fg-2); }
.footer-tools { margin-top: -.25rem; }

/* the members page's edit dialog on an account the player manages himself (20. 10. 2026): the role
 * only, with the reason */
.ga-note { color: var(--bs-fg-2); font-size: var(--bs-font-size-sm); text-wrap: pretty; }
/* the live username check's „volné" line (ui.js watchUsername) */
.username-status:empty { display: none; }

/* ---- the invitation after founding a group (invite-dialog.js, audit U3, 20. 10. 2026) ---- */
.inv-link { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.inv-link .form-control { flex: 1; min-width: 0; }
.inv-or { margin: 0.9rem 0 0.5rem; text-align: center; font-size: 0.85rem; color: var(--bs-fg-2); }
.inv-qr { display: flex; justify-content: center; }
.inv-qr img, .inv-qr .skeleton-qr { width: 168px; height: 168px; padding: 8px; background: #fff; border-radius: 10px; }

/* ---- the legal pages and links (audit W1, 20. 10. 2026) ---- */
.legal-body { max-width: 46rem; }
.legal-body h2 { margin: 2rem 0 0.6rem; font-size: 1.2rem; font-weight: 700; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { line-height: 1.6; color: var(--bs-fg-1); }
.legal-body ul { padding-left: 1.25rem; }
.legal-body li + li { margin-top: 0.35rem; }
.legal-operator { margin-top: 2.5rem; padding: 1rem 1.25rem; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--bs-bg-1); }
.legal-operator h2 { margin-top: 0; font-size: 1rem; }
.public-legal-footer, .footer-company { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.25rem; }
.public-legal-footer { margin-top: 2.5rem; padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--bs-border-color); font-size: 0.875rem; color: var(--bs-fg-2); }
.register-consent { text-align: center; line-height: 1.5; }

/* ---- deleting one's own account (profile.js, 20. 10. 2026) ---- */
.pf-ic-danger { background-color: var(--bs-danger-bg-subtle); color: var(--bs-danger-fg); }
.pf-delete-list { padding-left: 1.25rem; color: var(--bs-fg-1); }
.pf-delete-list li + li { margin-top: 0.3rem; }
.lp-deleted-note { max-width: 34rem; margin: 0 auto 1.25rem; }

/* ======== The audit's P2 UX round (20. 10. 2026) — one block, kept apart from the rest ======== */

/* U4 / F21 — every control is at least 44 × 44 px to tap on a touch screen without growing:
 * a pseudo-element widens the hit box of a small button, a chip and the dialogs' ✕ to 44 px
 * on each axis where it is smaller (top/bottom against the height, left/right against the
 * width; min() never shrinks a larger one). The online table keeps its own (agent B). */
@media (pointer: coarse) {
    .btn-sm, .btn-close, .chip, .toast-undo { position: relative; }
    .btn-sm::after, .btn-close::after, .chip::after, .toast-undo::after {
        content: "";
        position: absolute;
        top: min(0px, calc(50% - 22px));
        bottom: min(0px, calc(50% - 22px));
        left: min(0px, calc(50% - 22px));
        right: min(0px, calc(50% - 22px));
    }
    .pk-page .btn-sm::after, .pk-page .chip::after { content: none; }
}
/* the game page's „+ Dokup" / „Vyřadit" pair: 12 px apart, so one finger never meets both */
.r-act { gap: 0.75rem; }

/* U8 — the undo in the toast after „Vyřadit" */
.toast-undo { flex: none; margin-inline-start: auto; font-weight: 700; color: inherit; text-decoration: underline; }

/* U13 — the current group's name in the navbar on every page, phones included (app.js
 * renderGroupBrand): the ROGR mark home, then the group's logo (if any) and its name */
#main-navbar .brand-sub.gl-brand-name { display: inline; }
@media (max-width: 575.98px) {
    #main-navbar .brand-sub.gl-brand-name { max-width: 42vw; padding-left: 0.6rem; font-size: 0.9rem; }
}
/* a desktop names the group in its group menu already: the brand repeats it only with a logo */
@media (min-width: 1024px) {
    #main-navbar .brand-group:not(:has(img)) .brand-sub.gl-brand-name { display: none; }
}

/* U18 — the four sections with their names next to the icons on a desktop (from lg), as long
 * as the bar has room (app.js fitSectionTabs sets .is-iconic when it has not) */
@media (min-width: 1024px) {
    #nav-icons .nav-icon-link { display: inline-flex; align-items: center; gap: 0.45rem; }
    #nav-icons .nav-tab-label { display: inline; font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
    #nav-icons.is-iconic .nav-tab-label { display: none; }
}

/* U17 — the settings' save bar floats over the page only while something is unsaved (or its
 * save failed); unchanged, it rests at the end of the form */
.sp-savebar:not(.is-dirty):not(.has-error) { position: static; box-shadow: none; }

/* U19 — a number is never cut: a line of figures wraps instead of ending in „…" (the names
 * keep their ellipsis), a value column takes the room it needs */
.lb-sub, .st-sub { white-space: normal; overflow: visible; text-overflow: clip; }
.dl-cmp-p.dl-cmp-v, .ow-val, .pf-val.pf-val-num { max-width: none; overflow: visible; text-overflow: clip; }
.lb-game-win { max-width: 60%; }
/* a game's title carries its date: it wraps rather than losing the date to „…" */
.lb-game-row .lb-name-text { white-space: normal; overflow: visible; text-overflow: clip; }

/* U22 — a field showing its error hides its hint (the error says what to fix); the live
 * username check keeps its line */
.form-field:has(.is-invalid) > .form-text:not(.username-status) { display: none; }

/* U23 — the form chips speak the placement bar's colours: a place in the table (not paid)
 * gets the bar's blue; the axis keeps its dates whole and lets the middle label give way */
.st-chip.st-table { background: color-mix(in oklch, var(--rogr-blue) 22%, transparent); color: var(--bs-fg-body); }
.st-axis > span:first-child, .st-axis > span:last-child { white-space: nowrap; }
.st-axis > span:nth-child(2) { min-width: 0; text-align: center; }

/* ---- the public guides, the tools' texts, the 404 page and the public footer (audit W6, W7,
   W10, W18, 20. 10. 2026; web_seo.go indexedPages) ---- */
.gd-page { max-width: 46rem; padding-block: 2rem 3rem; }
.gd-head { margin-bottom: 1.5rem; }
.gd-kicker { margin: 0 0 .35rem; font-size: var(--bs-font-size-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-primary-fg); }
.gd-head h1 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; text-wrap: balance; }
.gd-lead { font-size: 1.1rem; color: var(--bs-fg-1); margin: 0; text-wrap: pretty; }
.gd-sec { margin-top: 2rem; }
.gd-sec h2, .tl-text h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .6rem; }
.tl-text h2 + p, .tl-text ol + h2 { margin-top: 1.5rem; }
.gd-sec p, .gd-sec li, .tl-text p, .tl-text li, .tl-faq dd, .gd-steps li { line-height: 1.6; color: var(--bs-fg-1); text-wrap: pretty; }
.gd-sec ul, .gd-sec ol, .tl-text ol, .gd-steps { padding-left: 1.4rem; margin-bottom: 1rem; }
.gd-sec li + li, .tl-text li + li, .gd-steps li + li { margin-top: .4rem; }
.gd-link { margin: .75rem 0 0; }
.gd-link a, .gd-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--bs-primary-fg); }
.gd-link a:hover, .gd-more a:hover { text-decoration: underline; }
.gd-table-wrap { overflow-x: auto; margin-bottom: .5rem; }
.gd-table { max-width: 30rem; margin-bottom: 0; }
.gd-table .gd-brk td { color: var(--bs-fg-2); font-style: italic; }
/* a .card is a column flexbox: the call to action is a row that wraps */
.gd-cta { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 2.5rem; padding: 1.25rem; }
.gd-cta > div { flex: 1 1 18rem; min-width: 0; }
.gd-cta-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; }
.gd-more { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-top: 2rem; }
.gd-more-title { width: 100%; margin: 0 0 .25rem; font-size: 1rem; font-weight: 700; }
.gd-more--center { justify-content: center; }
.gd-more--center .gd-more-title { text-align: center; }
.gd-note { margin-top: 2rem; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); line-height: 1.5; text-wrap: pretty; }
.gd-narrow { max-width: 46rem; }
.gd-404 .btn-solid { min-height: 44px; }
.tl-text { max-width: 46rem; margin-top: 2.5rem; }
.tl-faq { margin: 0; }
.tl-faq dt { margin-top: 1.1rem; font-weight: 700; }
.tl-faq dt:first-child { margin-top: 0; }
.tl-faq dd { margin: .25rem 0 0; }
.tl-presets { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.25rem; }
.tl-presets-label { width: 100%; font-size: var(--bs-font-size-sm); color: var(--bs-fg-2); }
.tl-preset { min-height: 44px; }
@media (min-width: 1024px) { .lp-guides-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 64rem; } }
/* the language switcher's items are links now (W10) and read in both modes (U11) */
a.lang-dropdown-item { text-decoration: none; color: var(--bs-fg-body); }
.lang-dropdown-item:hover { color: var(--bs-fg-body); background: var(--bs-bg-3); }
.lang-dropdown-item.active { color: var(--accent-text); background: var(--bs-primary-bg-subtle); }
/* the public footer: the guides and tools above the legal links */
.public-legal-footer { flex-direction: column; align-items: center; }
.public-guides, .public-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.25rem; }
.public-guides a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- reduced motion (audit F18, 20. 10. 2026) ----
   Whoever asked the system for less motion gets no pulses, fades, sliding sheets or smooth
   scrolling: every animation ends at once and every transition is instant. The universal selector
   needs the important flag to beat the components' own animations — the one place where that is
   the point (the page scripts ask prefersReducedMotion() in ui.js for their own motion). */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

} /* end of @layer custom — new rules go above this line */
