/* Jikernačka Cup – úpravy pro větší obrazovky.
   Hlavní styl (style.css) je stavěný od mobilu, tady se jen přidává to, co se na širší obrazovce mění.
   Breakpointy od nejmenšího po největší, protože se tu rozšiřuje, ne zužuje. */

/* ---------- Malý mobil (do 400 px): úspora místa ---------- */
@media (max-width: 400px) {
    .lista-vnitrek { gap: .5rem; padding: .375rem .75rem; }
    .logo img { height: 2.75rem; }
    .burger-text { display: none; }
    .lista-akce { padding: .625rem .75rem; }
    h1 { font-size: 1.75rem; }
    .obsah { padding: .75rem; }
    .statistika strong { font-size: 1.25rem; }
}

/* ---------- Mobil (do 640 px): v pořadí jen to podstatné, aby tabulka nepřetékala ---------- */
@media (max-width: 640px) {
    .poradi th:nth-child(5),
    .poradi td:nth-child(5) { display: none; }
    .tabulka th,
    .tabulka td { padding: .625rem .5rem; }
}

/* ---------- Větší mobil (od 641 px) ---------- */
@media (min-width: 641px) {
    .statistika { grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); }
    .rekordy { grid-template-columns: repeat(2, 1fr); }
    .karty { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Tablet a počítač (od 1025 px): menu v liště místo burgeru ---------- */
@media (min-width: 1025px) {
    .burger { display: none; }

    .menu,
    .menu-otevrene .menu {
        display: block;
        position: static;
        margin-left: auto;
        background: none;
        border: 0;
        box-shadow: none;
    }
    .lista-akce { order: 2; margin-left: .5rem; }
    .menu ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
    .menu li { border: 0; }
    .menu a,
    .menu button.odkaz {
        width: auto;
        padding: .625rem .75rem;
        border-radius: var(--zaobleni);
    }

    .logo img { height: 4rem; }
    .obsah { padding: 1.5rem 1rem; }
    h1 { font-size: 2.5rem; }
    .karty { grid-template-columns: repeat(3, 1fr); }
}
