@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Farby webu ako premenné. Tmavý režim (html[data-theme="dark"], nastavuje assets/js/tema-start.js
   a prepínač v hlavičke) mení len ich hodnoty – nové pravidlá používajte cez premenné, nie pevné farby. */
:root {
    --page-bg: #ffffff;
    --page-ink: #1a1a1a;
    --page-muted: #5b6475;
    --page-line: #e3e7ef;
    --page-card: #ffffff;
    --page-soft: #f4f6fb;
    --link: #1e40af;
    --link-hover: #e30613;
    --grad: linear-gradient(135deg, #e30613, #1e40af);
    --error: #e30613;
    --hdr-bg: #ffffff;
    --hdr-line: transparent;
    --hdr-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --nav-ink: #333333;
    --nav-accent: #e30613;
    --nav-accent-line: #1e40af;
    --stream-bg: #e30613;      /* tlačidlo „Stream“ v menu (rovnaké v tmavom režime) */
    --stream-hover: #b8050f;
    --stream-ink: #ffffff;
    --stream-shadow: 0 2px 8px rgba(227, 6, 19, .35);
    --menu-bg: #ffffff;
    --menu-shadow: 0 4px 12px rgba(0,0,0,0.15);
    --menu-line: #e0e0e0;
    --menu-hover-bg: #f8f9fa;
    --menu-nested-bg: #f8f9fa;
    --menu-nested2-bg: #e8e9ea;
    --menu-nested2-hover: #d8d9da;
    --ftr-bg: #1a1a1a;
    --ftr-ink: #ffffff;
    --ftr-link: #cccccc;
    --ftr-link-hover: #1e40af;
    --ftr-line: #333333;
    --ftr-muted: #999999;
    --logo-pad: transparent;
    --heading: #164595;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* rýchly štart, mäkký dobeh – pre UI prechody */
}
html[data-theme="dark"] {
    color-scheme: dark;
    --page-bg: #0b0d10;
    --page-ink: #e8eaed;
    --page-muted: #aab0ba;
    --page-line: #2c313a;
    --page-card: #16191e;
    --page-soft: #1d2128;
    --link: #7ea2ff;
    --link-hover: #ff5a64;
    --grad: linear-gradient(135deg, #ff5a64, #7ea2ff);
    --error: #ff5a64;
    --hdr-bg: #13161b;
    --hdr-line: #22262d;
    --hdr-shadow: 0 2px 10px rgba(0,0,0,0.6);
    --nav-ink: #d9dce1;
    --nav-accent: #ff5a64;
    --nav-accent-line: #7ea2ff;
    --menu-bg: #1a1d23;
    --menu-shadow: 0 4px 14px rgba(0,0,0,0.6);
    --menu-line: #2a2e36;
    --menu-hover-bg: #252a32;
    --menu-nested-bg: #20242b;
    --menu-nested2-bg: #272b33;
    --menu-nested2-hover: #2f343d;
    --ftr-bg: #07080a;
    --ftr-ink: #e8eaed;
    --ftr-link: #c3c8d0;
    --ftr-link-hover: #7ea2ff;
    --ftr-line: #1d2026;
    --ftr-muted: #8b919b;
    --logo-pad: #f3f4f6;
    --heading: #9db7ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    color: var(--page-ink);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
header {
    background: var(--hdr-bg);
    padding: .5rem 4%;   /* kompaktná hlavička ako na mobile (13. 11. 2026, predtým logo nad textom a ~140 – 190 px) */
    box-shadow: var(--hdr-shadow);
    border-bottom: 1px solid var(--hdr-line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex: none;
}

.logo-section a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-section img {
    height: 46px;
    display: block;
}

.logo-text {
    font-size: .86rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-align: left;
    letter-spacing: .3px;
    line-height: 1.15;
    max-width: 9.6rem;   /* text v troch riadkoch vedľa loga */
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav {
    display: flex;
    gap: .25rem;
    align-items: center;
}

.mobile-nav {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--nav-ink);
    display: block;
}

nav a,
.desktop-nav a,
.mobile-nav > a {
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
    border-bottom: 3px solid transparent;
}

nav a.active,
.desktop-nav a.active,
.mobile-nav > a.active {
    color: var(--nav-accent);
    border-bottom-color: var(--nav-accent-line);
}

/* hover len pre myš – na dotyku by po ťuknutí ostal „zaseknutý“ */
@media (hover: hover) and (pointer: fine) {
    nav a:hover,
    .desktop-nav a:hover,
    .mobile-nav > a:hover {
        color: var(--nav-accent);
        border-bottom-color: var(--nav-accent-line);
    }
}

/* položky menu na počítači: menšie medzery, text sa nezalamuje */
.desktop-nav > a,
.desktop-nav .live-link,
.desktop-nav .dropdown-toggle {
    padding: .45rem .85rem;
    white-space: nowrap;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 200ms var(--ease-out);
}

.dropdown:hover .dropdown-toggle::after,
.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-toggle:hover,
.dropdown:hover .dropdown-toggle,
.dropdown.active .dropdown-toggle {
    color: var(--nav-accent);
    border-bottom-color: var(--nav-accent-line);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--menu-bg);
    min-width: 200px;
    box-shadow: var(--menu-shadow);
    border-radius: 5px;
    margin-top: 0.5rem;
    z-index: 1000;
    transform-origin: top left;   /* menu vyrastie spod tlačidla */
}

.dropdown.show-menu .dropdown-menu {
    display: block;
    opacity: 1;
    transform: none;
    transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}

/* nástup pri otvorení (zatvorenie je okamžité); prehliadač bez @starting-style ukáže menu hneď */
@starting-style {
    .dropdown.show-menu .dropdown-menu { opacity: 0; transform: translateY(-4px) scale(0.97); }
}

@media (prefers-reduced-motion: reduce) {
    @starting-style {
        .dropdown.show-menu .dropdown-menu { transform: none; }   /* len jemné zosvetlenie, bez pohybu */
    }
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
    border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--menu-hover-bg);
    color: var(--nav-accent);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 5%;
}

/* Footer */
footer {
    background: var(--ftr-bg);
    color: var(--ftr-ink);
    padding: 2rem 5%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section a {
    display: block;
    color: var(--ftr-link);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .footer-section a:hover {
        color: var(--ftr-link-hover);
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ftr-line);
    color: var(--ftr-muted);
}

.loading, .error {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
}

.error {
    color: var(--error);
}

/* Responsive */
@media (max-width: 968px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: none;
        position: absolute;   /* pod hlavičkou bez ohľadu na jej výšku (header je sticky = obsahujúci blok) */
        top: 100%;
        left: 0;
        right: 0;
        background: var(--menu-bg);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--menu-shadow);
        z-index: 999;
        max-height: calc(100vh - 100%);
        max-height: calc(100dvh - 100%);   /* 100% = výška hlavičky; dvh = viditeľná výška aj s lištou prehliadača */
        overflow-y: auto;
        overscroll-behavior: contain;      /* posúvanie menu nehýbe stránkou pod ním */
    }

    .mobile-nav.active {
        display: flex;
        transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
    }

    /* menu sa krátko vysunie spod hlavičky (zatvorenie okamžité) */
    @starting-style {
        .mobile-nav.active { opacity: 0; transform: translateY(-8px); }
    }

    .mobile-nav > a {
        padding: 1rem 2rem 1rem 2rem;
        border-bottom: 1px solid var(--menu-line);
        display: block;
        text-align: left;
        border-left: none;
        width: 100%;
    }

    .mobile-dropdown {
        border-bottom: 1px solid var(--menu-line);
        width: 100%;
    }

    .mobile-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        cursor: pointer;
        color: var(--nav-ink);
        font-weight: 600;
        text-align: left;
        width: 100%;
    }

    .mobile-dropdown-toggle span:first-child {
        flex: 1;
        text-align: left;
    }

    .mobile-plus {
        font-size: 0.7rem;
        transition: transform 200ms var(--ease-out);
        flex-shrink: 0;
    }

    .mobile-plus::before {
        content: '▼';
    }

    .mobile-dropdown.active .mobile-plus {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        display: none;
        background: var(--menu-nested-bg);
    }

    .mobile-dropdown.active .mobile-dropdown-menu {
        display: block;
    }

    .mobile-dropdown-menu a {
        display: block;
        padding: 0.75rem 2rem 0.75rem 3rem;
        color: var(--nav-ink);
        text-decoration: none;
        font-weight: 600;
        border-bottom: none;
        text-align: left;
        border-left: none;
        width: 100%;
    }

    @media (hover: hover) and (pointer: fine) {
        .mobile-dropdown-menu a:hover {
            color: var(--nav-accent);
            background: var(--menu-nested2-bg);
        }
    }
}
/* Submenu styles */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.submenu-toggle:hover {
    background: var(--menu-hover-bg);
    color: var(--nav-accent);
}

.submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--menu-bg);
    min-width: 180px;
    box-shadow: var(--menu-shadow);
    border-radius: 5px;
    z-index: 1001;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
}

.submenu-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
    transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.submenu-content a:hover {
    background: var(--menu-hover-bg);
    color: var(--nav-accent);
}

/* Mobile nested dropdown */
.mobile-dropdown-nested {
    background: var(--menu-nested-bg);
}

.mobile-nested-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem 0.75rem 3rem;
    cursor: pointer;
    color: var(--nav-ink);
    font-weight: 600;
}

.mobile-plus-nested::before {
    content: '▼';
    font-size: 0.7rem;
}

.mobile-plus-nested {
    transition: transform 200ms var(--ease-out);
}

.mobile-dropdown-nested.active .mobile-plus-nested {
    transform: rotate(180deg);
}

.mobile-nested-menu {
    display: none;
    background: var(--menu-nested2-bg);
}

.mobile-dropdown-nested.active .mobile-nested-menu {
    display: block;
}

.mobile-nested-menu a {
    display: block;
    padding: 0.75rem 2rem 0.75rem 4rem;
    color: var(--nav-ink);
    text-decoration: none;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .mobile-nested-menu a:hover {
        color: var(--nav-accent);
        background: var(--menu-nested2-hover);
    }
}
.empty-state { text-align: center; padding: 3rem; color: var(--page-muted); font-style: italic; }
.empty-state span { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
/* ── competition page styles ── */
/* Extracted from tournament HTML files  */

/* container override for competition pages */
.container:has(#nadpis) {
    width: 90%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .container:has(#nadpis) {
        width: 95%;
        padding: 1rem 0;
    }
}

/* h1, h2 styles for competition pages */
h1#nadpis {
    color: var(--heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 2rem 0 1rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #E3000F;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

h2#sucet_nadpis,
h2#cancelled_nadpis {
    color: var(--heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E3000F;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;}

@media (max-width: 768px) {
    h1#nadpis { font-size: 1.8rem; }
    h2#sucet_nadpis, h2#cancelled_nadpis { font-size: 1.4rem; }
}

#bg-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 2s ease;
    z-index: -1;
}
#bg-overlay.show {
    opacity: 0.10;
}

.pdf-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pdf_link {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.pdf_link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #164595, #E3000F);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (hover: hover) and (pointer: fine) {
    .pdf_link a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
}
.pdf_link a:active { transform: scale(0.97); }

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    background: var(--page-card);
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: var(--page-card);
    font-size: 0.93rem;
}

.table-wrap thead {
    background: linear-gradient(135deg, #E3000F, #164595);
    color: white;
}

.table-wrap th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.9rem;
    user-select: none;
}

.table-wrap td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--page-line);
    white-space: nowrap;
    font-size: 0.9rem;
}

.table-wrap tbody tr {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (hover: hover) and (pointer: fine) {
    .table-wrap tbody tr:hover {
        background: var(--page-soft);
    }
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap tbody tr.show {
    opacity: 1;
    transform: translateY(0);
}

#sucet_container {
    width: 60%;
    max-width: 600px;
    margin: 0 auto;
}

#sucet td:nth-child(2),
#sucet th:nth-child(2) {
    text-align: center;
}

@media (max-width: 768px) {
    .pdf-links {
        flex-direction: column;
        align-items: center;
    }
    #sucet_container {
        width: 95%;
    }
}

#poster-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    z-index: 99999;
    cursor: pointer;
    overflow: hidden;
    align-items: center;
    justify-content: center;
}
#poster-overlay.active {
    display: flex;
    transition: opacity 200ms var(--ease-out);
}
#poster-overlay.active img {
    transition: transform 200ms var(--ease-out);
}
/* plagát v okne: pozadie sa zosvetlí a plagát dorastie z 96 % (zatvorenie okamžité) */
@starting-style {
    #poster-overlay.active { opacity: 0; }
    #poster-overlay.active img { transform: scale(0.96); }
}
#poster-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
    cursor: default;
    display: block;
}
#poster-overlay-close {
    position: fixed;
    top: 16px;
    right: 24px;
    color: #fff;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
    user-select: none;
    z-index: 100000;
}
#poster-overlay-close:hover {
    opacity: 1;
}

/* Celá stránka (pôvodne pri rankingu, platí pre všetky stránky) */
html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  color: var(--page-ink);
}

/* Namiesto inline štýlov v HTML */
.pdf-ikona { position: relative; top: 1px; }
.footer-telefon { margin-top: 1rem; }
.plagat-ikona { vertical-align: middle; margin-right: 5px; }

/* Logo SZTŠ je tmavé – v tmavom režime na svetlom podklade */
html[data-theme="dark"] .logo-section img { background: var(--logo-pad); border-radius: 10px; padding: 4px 10px; }

/* ── prepínač svetlý / tmavý režim v hlavičke (inc/layout.php, obsluha v assets/js/common.js) ──
   Podľa „Day/Night toggle“ z Uiverse.io (autor mobinkakei, uvádza, že nie je pôvodný autor), zmenšené na 60 × 34 px.
   Svetlý režim = slnko, tmavý = mesiac. Vzhľad podľa html[data-theme] (nastavený pred vykreslením), nie podľa :checked – inak by sa prepínač pri každom načítaní animoval. Na počítači vpravo za menu, na mobile vľavo od tlačidla menu. */
.desktop-nav { margin-left: auto; }
.tema { display: inline-flex; align-items: center; margin-left: 1rem; flex: none; }
@media (min-width: 969px) and (max-width: 1150px) {   /* užší počítač: menšie medzery a písmo; čo sa nezmestí (v deň súťaže Stream a Výsledky LIVE), zalomí sa do druhého riadku */
    .desktop-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
    .desktop-nav > a, .desktop-nav .live-link, .desktop-nav .dropdown-toggle { padding: .45rem .5rem; font-size: .95rem; }
    .tema { margin-left: .6rem; }
}
.tema-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; white-space: nowrap; }   /* skrytý, ale ovládateľný klávesnicou */
.tema-toggle {
    cursor: pointer; display: inline-block; position: relative; width: 60px; height: 34px; background-color: #83d8ff;
    border-radius: 56px; transition: background-color 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95);
}
.tema-input:focus-visible + .tema-toggle { outline: 2px solid var(--nav-accent-line); outline-offset: 3px; }
.tema-handler {
    display: inline-block; position: relative; z-index: 1; top: 2px; left: 2px; width: 30px; height: 30px;
    background-color: #ffcf96; border-radius: 50%; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    transition: all 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55); transform: rotate(-45deg);
}
.tema-crater { position: absolute; background-color: #e8cda5; opacity: 0; transition: opacity 200ms ease-in-out; border-radius: 100%; }
.tema-crater--1 { top: 12px; left: 7px; width: 3px; height: 3px; }
.tema-crater--2 { top: 19px; left: 15px; width: 4px; height: 4px; }
.tema-crater--3 { top: 7px; left: 17px; width: 5px; height: 5px; }
.tema-star { position: absolute; background-color: #fff; transition: all 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95); border-radius: 50%; }
.tema-star--1 { top: 7px; left: 23px; z-index: 0; width: 20px; height: 2px; }
.tema-star--2 { top: 12px; left: 19px; z-index: 1; width: 20px; height: 2px; }
.tema-star--3 { top: 18px; left: 27px; z-index: 0; width: 20px; height: 2px; }
.tema-star--4, .tema-star--5, .tema-star--6 { opacity: 0; transition: all 300ms 0ms cubic-bezier(0.445, 0.05, 0.55, 0.95); }
.tema-star--4 { top: 11px; left: 7px; z-index: 0; width: 2px; height: 2px; transform: translate3d(2px, 0, 0); }
.tema-star--5 { top: 21px; left: 11px; z-index: 0; width: 2px; height: 2px; transform: translate3d(2px, 0, 0); }
.tema-star--6 { top: 24px; left: 19px; z-index: 0; width: 2px; height: 2px; transform: translate3d(2px, 0, 0); }
html[data-theme="dark"] .tema-toggle { background-color: #749dd6; }
html[data-theme="dark"] .tema-toggle .tema-handler { background-color: #ffe5b5; transform: translate3d(26px, 0, 0) rotate(0); }
html[data-theme="dark"] .tema-toggle .tema-crater { opacity: 1; }
html[data-theme="dark"] .tema-toggle .tema-star--1 { width: 2px; height: 2px; }
html[data-theme="dark"] .tema-toggle .tema-star--2 { width: 3px; height: 3px; transform: translate3d(-3px, 0, 0); }
html[data-theme="dark"] .tema-toggle .tema-star--3 { width: 2px; height: 2px; transform: translate3d(-5px, 0, 0); }
html[data-theme="dark"] .tema-toggle .tema-star--4,
html[data-theme="dark"] .tema-toggle .tema-star--5,
html[data-theme="dark"] .tema-toggle .tema-star--6 { opacity: 1; transform: translate3d(0, 0, 0); }
html[data-theme="dark"] .tema-toggle .tema-star--4 { transition: all 300ms 200ms cubic-bezier(0.445, 0.05, 0.55, 0.95); }
html[data-theme="dark"] .tema-toggle .tema-star--5 { transition: all 300ms 300ms cubic-bezier(0.445, 0.05, 0.55, 0.95); }
html[data-theme="dark"] .tema-toggle .tema-star--6 { transition: all 300ms 400ms cubic-bezier(0.445, 0.05, 0.55, 0.95); }
@media (max-width: 968px) {
    .logo-section { order: 0; }
    .tema { order: 1; margin-left: auto; margin-right: .5rem; }
    .mobile-menu-toggle { order: 2; }
    /* mobil: logo a text o niečo menšie ako na počítači */
    .logo-section { gap: .6rem; }
    .logo-section img { height: 40px; }
    .logo-text { font-size: .74rem; max-width: 8.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    body, .tema-toggle, .tema-handler, .tema-crater, .tema-star,
    .dropdown-toggle::after, .mobile-plus, .mobile-plus-nested { transition: none !important; }
}

/* „Stream“ pred „Výsledky LIVE“ v menu v deň súťaže (inc/layout.php → live_link, stĺpec stream v data/calendar.csv).
   Na počítači červené tlačidlo v riadku menu (od 13. 11. 2026, predtým viselo pod LIVE); na mobile je to ďalší riadok menu. */
.live-group { display: flex; align-items: center; gap: .35rem; }
.desktop-nav .stream-link {
    display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .75rem;
    border: 0; border-radius: 999px; background: var(--stream-bg); color: var(--stream-ink);
    font-size: .82rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
    box-shadow: var(--stream-shadow);
}
.desktop-nav .stream-link:hover { background: var(--stream-hover); color: var(--stream-ink); }
.desktop-nav .stream-link svg { flex: none; animation: stream-pulz 1.4s ease-in-out infinite; }
@keyframes stream-pulz { 50% { opacity: .35; } }
.mobile-nav > .stream-link { color: var(--nav-accent); font-weight: 700; }
.mobile-nav > .stream-link svg { vertical-align: -1px; margin-right: .4rem; }
@media (prefers-reduced-motion: reduce) { .desktop-nav .stream-link svg { animation: none; } }

/* ── mobil a dotyk (platí pre celý web) ──
   Bez sivého/modrého záblesku po ťuknutí, okamžitá reakcia, ovládacie prvky sa pri dlhom podržaní neoznačujú. */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;   /* bez zväčšovania písma na šírku */
}
a, button, label, summary, select, [role="button"],
.mobile-dropdown-toggle, .mobile-nested-toggle, .logo-text[data-href] {
    touch-action: manipulation;       /* bez čakania na dvojité ťuknutie */
}
.mobile-menu-toggle, .mobile-dropdown-toggle, .mobile-nested-toggle, .tema-toggle, .logo-text[data-href] {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.mobile-menu-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
/* odozva pri stlačení (namiesto hoveru) */
.mobile-menu-toggle:active { opacity: .55; }
.mobile-nav > a:active,
.mobile-dropdown-toggle:active,
.mobile-nested-toggle:active,
.mobile-dropdown-menu a:active,
.mobile-nested-menu a:active { background: var(--menu-hover-bg); }
.footer-section a:active { color: var(--ftr-link-hover); }

/* obmedzený pohyb: plagát v okne a mobilné menu sa len zosvetlia, bez posunu a zväčšenia */
@media (prefers-reduced-motion: reduce) {
    @starting-style {
        #poster-overlay.active img, .mobile-nav.active { transform: none; }
    }
}
