.hm-body, .hm-tema {
    --hx-hneda-0: #0b1f33;
    --hx-hneda: #13324f;
    --hx-hneda-2: #1d4a72;
    --hx-hneda-3: #3a6890;
    --hx-med-lem-h: #5d93c2;
    --hx-text: #10283f;
    --hx-tlumene: #557591;
    --hx-tlumene-2: #a9c8e2;
    --hx-krem: #f1f7fc;
    --hx-svetly: #eaf4fc;
    --hx-linka: rgba(29, 74, 114, .22);
    --hx-oranz: #0ea5e9;
    --hx-oranz-2: #0284c7;
    --hx-oranz-3: #0369a1;
    --hx-tmavy: linear-gradient(180deg, #1d4a72, #13324f);
    --hx-tmavy-stin: 0 3px 0 #0b1f33, 0 10px 20px rgba(19, 50, 79, .28), inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -3px 8px rgba(0, 0, 0, .2);
    --hx-sklo: linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(240, 247, 253, .68) 55%, rgba(222, 236, 248, .64) 100%);
    --hx-sklo-stin: 0 14px 34px rgba(19, 50, 79, .15), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(29, 74, 114, .12);
    --hrac-akcent: #0ea5e9;
    --hrac-akcent-2: #1d4a72;
}

.hx-body.hm-body {
    background:
        radial-gradient(ellipse 70% 60% at 50% 38%, rgba(244, 249, 254, .97) 0%, rgba(244, 249, 254, .7) 38%, rgba(244, 249, 254, 0) 75%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0L56 16V48L28 64L0 48V16ZM28 64V96' fill='none' stroke='%231d4a72' stroke-opacity='.2' stroke-width='1.2'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 38%, #f3f9fe 0%, #cfe4f5 65%, #a9cbe8 100%) !important;
    background-attachment: fixed !important;
}

.hm-body .hrac-gate { --hrac-panel: #1d4a72; --hrac-panel-2: #0f2a44; --hrac-pole: rgba(234, 244, 252, .1); --hrac-line: rgba(234, 244, 252, .2); --hrac-text: #eaf4fc; --hrac-dim: #a9c8e2; box-shadow: 0 16px 40px rgba(19, 50, 79, .35); }
.hm-body .hrac-btn, .hm-body .hx-t-prim, .hm-tema .hx-t-prim, .hm-body .hxv-prepinac a.akt { background: var(--hx-lesk), linear-gradient(180deg, #38bdf8, #0284c7); box-shadow: 0 4px 0 #0369a1, 0 10px 18px rgba(3, 105, 161, .3), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 0 rgba(7, 89, 133, .45); }
.hm-body .hxv-prepinac a.akt { box-shadow: none; }
.hm-body .hx-t-prim:active, .hm-tema .hx-t-prim:active { box-shadow: 0 2px 0 #0369a1, 0 5px 10px rgba(3, 105, 161, .3); }
.hm-body .hx-patka .hx-maly, .hm-body .hx-patka .hx-zvuk, .hm-body .hrac-compact .hx-maly, .hm-body .hrac-compact .hx-zvuk { background: rgba(244, 249, 254, .75); }
.hm-body .hx-hex { --lem: #8fb8dc; --vypln: linear-gradient(165deg, #fbfdff 0%, #dcebf7 100%); }
.hm-body .hx-hex::after { background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 46%, rgba(29, 74, 114, 0) 70%, rgba(29, 74, 114, .12) 100%); }
.hm-body .hx-p0 { --lem: #0b1f33; --vypln: linear-gradient(165deg, #2b5f8f 0%, #0f2a44 100%); color: #fcd34d; }
.hm-body .hx-p0::after { background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .18) 100%); }
.hm-body .hx-plastev { filter: drop-shadow(0 7px 8px rgba(19, 50, 79, .38)) drop-shadow(0 1px 1px rgba(11, 31, 51, .35)); }
.hm-body .hx-pismeno { border-color: #8fb8dc; background: linear-gradient(180deg, #fbfdff, #dcebf7); }
.hm-body .hx-pismeno.hx-zlute { border-color: #0b1f33; background: var(--hx-lesk), var(--hx-tmavy); color: #fcd34d; }
.hm-body .hx-karta { text-shadow: 0 2px 0 #fff, 0 6px 18px rgba(19, 50, 79, .25); }
.hm-body .hxv-wrap {
    border-color: rgba(29, 74, 114, .28);
    background: radial-gradient(120% 55% at 50% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(180deg, #dceaf6 0%, #c3d9ec 100%);
    box-shadow: 0 20px 50px rgba(19, 50, 79, .2), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 10px rgba(29, 74, 114, .15);
}
.hm-body .hxv-ramecek {
    border-color: rgba(29, 74, 114, .3);
    background: linear-gradient(180deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 40%), linear-gradient(180deg, #cfe2f2 0%, #b9d2e8 100%);
    box-shadow: 0 10px 26px rgba(19, 50, 79, .18), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 8px rgba(29, 74, 114, .15);
}
.hm-body .hxv-razeni { background: rgba(29, 74, 114, .14); box-shadow: inset 0 1px 3px rgba(19, 50, 79, .18); }
.hm-body .hxv-radek { border-color: rgba(29, 74, 114, .2); background: #e4eef8; }
.hm-body .hxv-radek:not(.hxv-hlavicka):hover { background: #f2f7fc; border-color: rgba(29, 74, 114, .35); }
.hm-body .hxv-radek.hxv-hlavicka { background: transparent; border-bottom-color: rgba(29, 74, 114, .35); }
.hm-body .hxv-radek.highlight-row, .hm-body .hxv-radek.vip-me, .hm-body .hxv-radek.highlight-row:hover, .hm-body .hxv-radek.vip-me:hover { background: #dcfce7; border-color: #16a34a; }
.hm-body .hxv-pozn { border-top-color: rgba(29, 74, 114, .25); }
.hm-body .hmv-sloupec { background: rgba(29, 74, 114, .14); }
.hm-body .hmv-sloupec i { background: linear-gradient(90deg, #0369a1, #38bdf8); }

.ht-tema {
    --hx-hneda-0: #2f1b0e;
    --hx-hneda: #4a2c17;
    --hx-hneda-2: #6b4226;
    --hx-svetly: #fff1df;
    --hx-tmavy: linear-gradient(180deg, #6b4226, #4a2c17);
}
.hm-body .ht-tema.hx-t-sek { box-shadow: 0 4px 0 #2f1b0e, 0 10px 18px rgba(74, 44, 23, .25), inset 0 1px 0 rgba(255, 255, 255, .2); }

.hm-pozadi {
    --hm-vlajka: none;
    position: fixed;
    inset: 0 0 -25vh 0;
    z-index: -1;
    will-change: transform;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transition: opacity .45s ease;
}

.hm-pozadi::before,
.hm-pozadi::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hm-pozadi::before {
    background: var(--hm-vlajka) center / cover no-repeat;
    opacity: .22;
    filter: blur(50px) saturate(.9);
    transform: scale(1.2);
}

.hm-pozadi::after {
    background: radial-gradient(ellipse 70% 60% at 50% 38%, rgba(244, 249, 254, .9) 0%, rgba(244, 249, 254, .55) 40%, rgba(244, 249, 254, 0) 80%);
}

@supports (animation-timeline: scroll()) {
    .hm-pozadi { animation: hm-paralaxa linear both; animation-timeline: scroll(root); }
}

@keyframes hm-paralaxa { to { transform: translate3d(0, -18vh, 0); } }

@media (prefers-reduced-motion: reduce) {
    .hm-pozadi { animation: none; }
}

.hm-pozadi.hm-foto::before { display: none; }
.hm-pozadi.hm-foto::after {
    background: radial-gradient(ellipse 50% 55% at 50% 45%, rgba(244, 249, 254, .3) 0%, rgba(244, 249, 254, .14) 55%, rgba(244, 249, 254, 0) 90%);
}

.hm-s-fotkou .hx-nadpis a { text-shadow: 0 0 18px rgba(244, 249, 254, .95), 0 0 6px rgba(244, 249, 254, .9), 0 2px 0 rgba(255, 255, 255, .7); }
.hm-s-fotkou .hx-hlaska:not(:empty) { justify-self: center; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; padding: 0 14px; border-radius: 999px; background: rgba(244, 249, 254, .9); }
.hm-s-fotkou .hx-nalezena-obal { background: linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(225, 237, 248, .94)); backdrop-filter: blur(8px); box-shadow: 0 10px 28px rgba(11, 31, 51, .28), inset 0 1px 0 #fff; }
.hm-s-fotkou .hx-karta { inset: 6% 2%; border-radius: 26px; background: rgba(244, 249, 254, .9); box-shadow: 0 14px 40px rgba(11, 31, 51, .3); backdrop-filter: blur(6px); }
.hm-s-fotkou .hx-text, .hm-s-fotkou .hx-panel { background: linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(225, 237, 248, .95)); }
.hm-s-fotkou .hx-t:disabled { opacity: 1; filter: saturate(.45) brightness(.92); }
.hm-s-fotkou .hx-patka .hx-maly, .hm-s-fotkou .hx-patka .hx-zvuk { background: rgba(244, 249, 254, .92); box-shadow: 0 3px 10px rgba(11, 31, 51, .18); }
.hm-s-fotkou .hx-plastev { filter: drop-shadow(0 8px 12px rgba(30, 17, 8, .45)) drop-shadow(0 1px 1px rgba(11, 31, 51, .4)); }

.hm-body .hx-nadpis a { letter-spacing: .1em; }

.hm-body .hx-pismeno { box-shadow: 0 4px 10px rgba(11, 31, 51, .35), inset 0 1px 0 #fff; }
.hm-body span.hx-pismeno { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: default; }
.hm-body .hx-postup i { background: rgba(30, 17, 8, .62); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35), 0 0 0 1px rgba(244, 249, 254, .35); }
.hm-body .hx-postup i.hx-hotovo { background: linear-gradient(180deg, #4ade80, #16a34a); box-shadow: 0 0 6px rgba(22, 163, 74, .6), 0 0 0 1px rgba(244, 249, 254, .5); }
.hm-body .hx-pismeno.hx-zlute { box-shadow: 0 4px 10px rgba(11, 31, 51, .4), inset 0 1px 0 rgba(255, 255, 255, .2); }
.hm-body .hx-slovo.hx-platne .hx-pismeno,
.hm-body .hx-slovo.hx-platne .hx-pismeno.hx-zlute { border-color: #15803d; background: var(--hx-lesk), linear-gradient(180deg, #4ade80, #16a34a); color: #fff; text-shadow: 0 1px 0 rgba(20, 83, 45, .45); box-shadow: 0 4px 12px rgba(22, 101, 52, .45), inset 0 1px 0 rgba(255, 255, 255, .45); }

.hm-udaj-stat strong { display: flex; align-items: center; justify-content: center; gap: 7px; height: 1.4em; padding: 0 6px; }
.hm-stat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

.hm-vlajka {
    display: block;
    flex: 0 0 auto;
    height: 22px;
    width: auto;
    max-width: 36px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 241, 223, .35), 0 2px 5px rgba(0, 0, 0, .3);
}

.hm-vlajka[hidden] { display: none; }
.hm-nalezena { gap: 4px; min-height: 0; }
.hm-nalezena .hx-chip { padding: 2px 8px; font-size: .7rem; font-weight: 400; letter-spacing: .04em; }
.hm-lista { grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 6px; }
.hm-lista .hx-udaj { min-width: 0; padding-left: 2px; padding-right: 2px; }
.hm-nalezena-hlava { justify-content: center; }
.hm-nalezena { justify-content: center; }
.hx-nalezena-obal[hidden], .hm-body .hx-postup[hidden] { display: none; }
.hm-body .hx-hlaska { height: 26px; min-height: 0; line-height: 26px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9rem; }

.hx-karta.hm-karta-etapa { gap: 6px; }
.hm-karta-etapa strong { font-size: 2.1rem; letter-spacing: .14em; }
.hm-karta-mala { font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--hx-hneda-3); text-shadow: 0 1px 0 #fff; }
.hm-karta-vlajka { display: block; height: 76px; width: auto; max-width: 130px; margin-bottom: 6px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(74, 44, 23, .2), 0 8px 22px rgba(11, 31, 51, .35); animation: hx-nove .6s cubic-bezier(.3, 1.5, .5, 1); }
.hm-autor { position: fixed; right: 8px; bottom: 6px; z-index: 5; margin: 0; padding: 2px 9px; border-radius: 999px; background: rgba(244, 249, 254, .4); font-size: .68rem; color: var(--hx-hneda); text-shadow: 0 0 4px rgba(255, 255, 255, .9); }
.hm-autor, .hm-autor[hidden] { display: none; }
.hm-autor a { color: var(--hx-hneda-2); text-decoration: underline; }

#hx-odeslat:not(:disabled) { opacity: 1; }

.hr-volby {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 760px;
    margin: 18px auto 0;
}

.hr-volba {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 18px 20px;
    border-radius: 22px;
    background: var(--hx-sklo);
    border: 1px solid var(--hx-linka);
    box-shadow: var(--hx-sklo-stin);
    backdrop-filter: blur(6px);
    text-align: center;
    color: var(--hx-text);
    transition: transform .2s, box-shadow .2s;
}

.hr-volba:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(74, 44, 23, .2), inset 0 1px 0 rgba(255, 255, 255, .95); }
.hr-volba h2 { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: .1em; color: var(--hx-hneda); }
.hr-volba h2 span { color: var(--hx-oranz-2); }
.hr-volba img { display: block; width: min(260px, 100%); height: auto; filter: drop-shadow(0 4px 6px rgba(74, 44, 23, .18)); }
.hr-stitek { padding: 3px 12px; border-radius: 999px; background: var(--hx-lesk), var(--hx-tmavy); color: var(--hx-med); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hr-volba p { margin: 0; font-size: .93rem; line-height: 1.5; }
.hr-volba .hx-t { width: 100%; max-width: 240px; margin-top: 6px; }
.hr-volba .hx-t:hover { color: #fff; }
.hr-vysledky { font-size: .85rem; font-weight: 600; color: var(--hx-oranz-3); }
.hr-vysledky:hover { color: var(--hx-oranz-2); }

@media (max-width: 599px) {
    .hm-stat { display: none; }
    .hm-vlajka { height: 26px; max-width: 44px; }
    .hr-volby { grid-template-columns: 1fr; }
}

.hmv-tab .hxv-radek { grid-template-columns: 28px minmax(0, 1fr) 48px minmax(0, 110px) 40px 44px; }
.hmv-tab .hxv-radek .skore { font-size: 1.05rem; }
.hmv-tab .hxv-radek.hxv-hlavicka .skore { font-size: inherit; }
.hmv-tab .hxv-radek .hmv-body { font-weight: 800; color: var(--hx-hneda-2); }

.hmv-pod { display: flex; justify-content: center; align-items: center; gap: 5px; margin-top: 2px; overflow: hidden; font-size: .68rem; font-style: normal; font-weight: 600; color: var(--hx-tlumene-2); white-space: nowrap; text-overflow: ellipsis; }
.hmv-pod img { flex: none; height: 11px; width: auto; max-width: 18px; border-radius: 2px; }

.hmv-etapy { display: grid; gap: 6px; max-width: 520px; margin: 0 auto; }
.hmv-etapa { display: grid; grid-template-columns: 150px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: .86rem; }
.hmv-nazev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--hx-hneda); }
.hmv-sipka { display: inline-block; width: 0; height: 0; margin-right: 6px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #16a34a; vertical-align: -1px; visibility: hidden; }
.hmv-etapa.hmv-ja .hmv-sipka { visibility: visible; }
.hmv-etapa.hmv-ja .hmv-nazev { color: #15803d; }
.hmv-vlajka { height: 14px; width: auto; max-width: 24px; margin: 0 6px -2px 0; border-radius: 2px; box-shadow: 0 0 0 1px rgba(74, 44, 23, .2); }
.hmv-sloupec { height: 14px; border-radius: 7px; background: rgba(107, 66, 38, .14); box-shadow: inset 0 1px 2px rgba(74, 44, 23, .2); overflow: hidden; }
.hmv-sloupec i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--hx-oranz-3), var(--hx-med-2)); box-shadow: inset 0 0 0 1px rgba(74, 44, 23, .25); }
.hmv-pocet { text-align: right; font-weight: 800; color: var(--hx-hneda-2); font-variant-numeric: tabular-nums; }

@media (max-width: 599px) {
    .hmv-etapa { grid-template-columns: 112px minmax(0, 1fr) 32px; gap: 8px; font-size: .8rem; }
    .hmv-tab .hxv-radek .skore[data-km]::after { content: " km"; font-size: .72rem; font-weight: 600; }
    .hmv-tab .hxv-radek .slov::before { content: "Slov: "; color: var(--hx-tlumene); }
    .hmv-tab .hxv-radek .hmv-body::before { content: "Body: "; font-weight: 400; color: var(--hx-tlumene); }
}

.hmv-trasa { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto 6px; }
.hmv-cesta { fill: none; stroke: rgba(19, 50, 79, .35); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.hmv-cesta-carky { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; stroke-linejoin: round; }
.hmv-obrys { fill: none; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 4px rgba(11, 31, 51, .35)); }
.hmv-podklad { fill: #eaf4fc; }
.hmv-hex.hmv-cil .hmv-podklad { fill: url(#hmv-sachovnice); }
.hmv-vlajka-hex { filter: drop-shadow(0 1px 1.5px rgba(11, 31, 51, .35)); }
.hmv-hex { transform-box: fill-box; transform-origin: center; transition: transform .2s ease; cursor: default; }
.hmv-hex:hover { transform: scale(1.15); }
.hmv-pocet-kruh { fill: rgba(11, 31, 51, .82); stroke: rgba(255, 255, 255, .9); stroke-width: 1.5; }
.hmv-pocet-text { fill: #fff; font-family: 'Noto Sans', sans-serif; font-weight: 800; text-anchor: middle; }
.hmv-poz { transition: transform .35s ease; }
.hmv-hex.hmv-zeme { cursor: pointer; }
.hmv-hex.hmv-zeme.hmv-otevrena .hmv-obrys { stroke: #38bdf8; stroke-width: 5; }
.hmv-hex.hmv-km { cursor: default; }
.hmv-km .hmv-podklad { fill: #d3e8f8; }
.hmv-km .hmv-obrys { stroke-width: 2.5; }
.hmv-km-cislo { fill: #13324f; font: 800 16px 'Noto Sans', sans-serif; text-anchor: middle; }
.hmv-hex.hmv-ja .hmv-obrys, .hmv-hex.hmv-zeme.hmv-ja.hmv-otevrena .hmv-obrys { stroke: #22c55e; stroke-width: 5; }
.hmv-hex.hmv-km.hmv-ja .hmv-podklad { fill: #dcfce7; }
.hmv-hex.hmv-novy { animation: hmv-vyskoc .32s cubic-bezier(.3, 1.4, .5, 1) backwards; }
@keyframes hmv-vyskoc { from { transform: scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .hmv-poz { transition: none; }
    .hmv-hex.hmv-novy { animation: none; }
}

.hm-let { position: fixed; z-index: 60; transform: translate(-50%, -50%); font: 800 2.6rem/1 'Noto Sans', sans-serif; color: #fcd34d; text-shadow: 0 2px 0 #0b1f33, 0 0 14px rgba(11, 31, 51, .55), 0 0 2px #0b1f33; pointer-events: none; animation: hm-let-in .45s cubic-bezier(.3, 1.6, .5, 1); transition: transform .65s cubic-bezier(.5, 0, .7, .4), opacity .65s ease-in; }
.hm-let.hm-let-pryc { opacity: .35; }
.hx-udaj.hm-zasah { animation: hm-zasah .5s ease-out; }
.hx-udaj.hm-zasah strong { animation: hm-zasah-cislo .5s ease-out; }
@keyframes hm-let-in { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes hm-zasah { 40% { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(252, 211, 77, .7), 0 0 22px rgba(252, 211, 77, .6); } }
@keyframes hm-zasah-cislo { 40% { color: #fcd34d; } }
.hm-body .hx-slovo .hx-pismeno { transition: opacity .25s ease, transform .25s ease; }
.hm-body .hx-slovo.hm-slovo-mizi .hx-pismeno { opacity: 0; transform: scale(.75); }

.hx-karta.hm-karta-km { animation: hm-jemne .4s ease; }
.hx-karta.hm-karta-km.hx-karta-ven { transform: none; }
.hm-km-stitek { padding: 8px 26px; border-radius: 999px; background: rgba(244, 249, 254, .92); box-shadow: 0 4px 14px rgba(11, 31, 51, .2); font-size: 1.7rem; font-weight: 800; letter-spacing: .1em; color: var(--hx-hneda-2); text-shadow: none; }
.hm-s-fotkou .hx-karta.hm-karta-km { background: none; box-shadow: none; backdrop-filter: none; }
.hx-plastev.hm-objev-jemne { animation: hm-jemne .45s ease; }
@keyframes hm-jemne { from { opacity: 0; } to { opacity: 1; } }


.hm-body .hx-hex.hm-roztoc { animation: hm-otoc .85s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i) * 70ms); will-change: transform, opacity; }
.hm-body .hx-hex.hx-p0.hm-roztoc { animation: hm-jemne .45s ease both; animation-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
    .hm-body .hx-hex.hm-roztoc { animation: none; }
}
@keyframes hm-otoc { 0% { transform: scale(.45) rotate(150deg); opacity: 0; } 35% { opacity: 1; } 70% { transform: scale(1) rotate(-8deg); } 100% { transform: none; } }

.hmv-trasa-obal { position: relative; max-width: 480px; margin: 0 auto; }
.hmv-tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 6px)); padding: 4px 10px; border-radius: 8px; background: var(--hx-hneda-0); color: #fff; width: max-content; max-width: 240px; font-size: .8rem; font-weight: 700; line-height: 1.35; text-align: center; white-space: pre-line; pointer-events: none; box-shadow: 0 4px 12px rgba(11, 31, 51, .3); }
.hmv-tip[hidden] { display: none; }

.hmv-vyskoc { display: inline-block; animation: hmv-vyskoc .8s cubic-bezier(.3, 1.6, .5, 1); }
.hmv-pocet-text.hmv-vyskoc { transform-box: fill-box; transform-origin: center; }
.hxv-radek.hmv-nove { animation: hmv-nove .8s ease-out both; }
.hm-body .hxv-radek.hmv-tmavne:not(.highlight-row):not(.vip-me) { animation: hmv-tmavne 3.2s ease-in-out; }
@keyframes hmv-tmavne { 0% { background-color: #e4eef8; } 15%, 65% { background-color: #c3d9ee; border-color: rgba(29, 74, 114, .45); } 100% { background-color: #e4eef8; } }
@keyframes hmv-vyskoc { 0% { transform: none; } 40% { transform: scale(1.45); } 100% { transform: none; } }
@keyframes hmv-nove { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
    .hmv-vyskoc, .hxv-radek.hmv-nove { animation: none; }
}



@media (min-width: 760px) and (orientation: landscape) {
    body.hm-body.hx-hraje .hx-wrap { max-width: 780px; }
    .hm-body .hx-hra:not([hidden]) { display: grid; grid-template-columns: 180px minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 28px; align-items: start; }
    .hm-body .hx-hra > .hm-lista { grid-column: 1; grid-row: 1 / span 5; grid-template-columns: 1fr; gap: 10px; position: sticky; top: 76px; margin-top: 8px; }
    .hm-body .hx-hra > .hm-lista .hx-udaj { padding: 10px 8px; }
    .hm-body .hx-hra > .hm-lista .hx-udaj strong { font-size: 1.55rem; }
    .hm-body .hm-udaj-stat strong { flex-direction: column; gap: 6px; height: auto; padding: 4px 6px 0; }
    .hm-body .hm-udaj-stat .hm-stat { max-width: 100%; white-space: normal; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
    .hm-body .hx-hra > .hx-postup { grid-column: 2; grid-row: 1; }
    .hm-body .hx-hra > #hx-plocha { grid-column: 2; grid-row: 2; }
    .hm-body .hx-hra > #hx-konec { grid-column: 2; grid-row: 3; }
    .hm-body .hx-hra > .hx-patka { grid-column: 2; grid-row: 4; }
    .hm-body .hx-hra > .hx-napoveda { grid-column: 2; grid-row: 5; width: 100%; }
    .hm-body .hx-plastev { --w: min(112px, 16vh); }
}

.hm-reklama { display: none; }

@media (min-width: 1100px) and (orientation: landscape) {
    body.hm-body.hx-hraje .hx-wrap { max-width: 1010px; }
    .hm-body .hx-hra.hm-s-reklamou:not([hidden]) { grid-template-columns: 180px minmax(0, 1fr) 160px; }
    .hm-body .hx-hra > .hm-reklama { display: block; grid-column: 3; grid-row: 1 / span 5; align-self: stretch; margin-top: 8px; }
    .hm-reklama-box { position: sticky; top: 76px; width: 160px; min-height: 600px; }
    .hm-reklama-box ins, .hm-reklama-box iframe { width: 160px !important; max-width: 160px !important; }
}

.hm-okoli { display: none; }

@media (min-width: 1100px) and (orientation: landscape) {
    .hm-body .hx-hra.hm-s-okolim:not([hidden]) { grid-template-columns: 180px minmax(0, 1fr) 160px; }
    body.hm-body.hx-hraje .hx-wrap:has(.hm-s-okolim.hm-s-reklamou) { max-width: 1110px; }
    .hm-body .hx-hra.hm-s-okolim.hm-s-reklamou:not([hidden]) { grid-template-columns: 180px minmax(0, 1fr) 72px 160px; column-gap: 24px; }
    .hm-body .hx-hra.hm-s-okolim.hm-s-reklamou > .hm-reklama { grid-column: 4; }
    .hm-body .hx-hra > .hm-okoli { display: block; grid-column: 3; grid-row: 1 / span 5; align-self: stretch; margin-top: 8px; }
}

.hm-okoli-box { position: sticky; top: 76px; }
.hm-okoli-obal { --g: 3px; --w: 51px; --h: 44px; --t: 1px; --tvar: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); --tvar-v: polygon(calc(25% + .577 * var(--t)) var(--t), calc(75% - .577 * var(--t)) var(--t), calc(100% - 1.155 * var(--t)) 50%, calc(75% - .577 * var(--t)) calc(100% - var(--t)), calc(25% + .577 * var(--t)) calc(100% - var(--t)), calc(1.155 * var(--t)) 50%); position: relative; width: fit-content; margin: 0 auto; color: var(--hx-svetly); }
.hm-okoli-vodorovne { --w: 46px; --h: 53px; --tvar: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); --tvar-v: polygon(50% calc(1.155 * var(--t)), calc(100% - var(--t)) calc(25% + .577 * var(--t)), calc(100% - var(--t)) calc(75% - .577 * var(--t)), 50% calc(100% - 1.155 * var(--t)), var(--t) calc(75% - .577 * var(--t)), var(--t) calc(25% + .577 * var(--t))); }
.hm-okoli-okno { position: relative; overflow: hidden; box-sizing: content-box; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.hm-okoli-vodorovne .hm-okoli-okno { touch-action: pan-y; }
.hm-okoli-svisle .hm-okoli-okno { padding: 0 6px 4px; }
.hm-okoli-vodorovne .hm-okoli-okno { padding: 4px 0 6px; }
.hm-okoli-svisle .hm-okoli-okno { width: var(--w); height: calc(var(--n) * (var(--h) + var(--g)) - var(--g)); }
.hm-okoli-vodorovne .hm-okoli-okno { width: calc(var(--n) * (var(--w) + var(--g)) - var(--g)); height: var(--h); }
.hm-okoli-svisle { --n: 11; }
.hm-okoli-vodorovne { --n: 6; }
.hm-okoli-stopa, .hm-okoli-figurka { position: absolute; filter: drop-shadow(0 3px 3px rgba(11, 31, 51, .45)); transition: transform .7s cubic-bezier(.25, .8, .3, 1); }
.hm-okoli-svisle .hm-okoli-stopa { left: 6px; bottom: 4px; display: flex; flex-direction: column-reverse; gap: var(--g); }
.hm-okoli-vodorovne .hm-okoli-stopa { left: 0; top: 4px; display: flex; gap: var(--g); }
.hm-okoli-svisle .hm-okoli-figurka { left: 6px; bottom: 4px; }
.hm-okoli-vodorovne .hm-okoli-figurka { left: 0; top: 4px; }
.hm-okoli-km, .hm-okoli-figurka { flex: none; width: var(--w); height: var(--h); }
.hm-okoli-km { position: relative; }
.hm-okoli-figurka { z-index: 2; }
.hm-okoli-km .hm-okoli-pocet { z-index: 3; }
.hm-okoli-hex { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; isolation: isolate; clip-path: var(--tvar); background: rgba(255, 255, 255, .92); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--hx-tlumene-2); }
.hm-okoli-hex::before { content: ""; position: absolute; inset: 0; z-index: -1; clip-path: var(--tvar-v); background: var(--hx-lesk), var(--hx-tmavy); }
.hm-okoli-vodorovne .hm-okoli-hex { font-size: .72rem; }
.hm-okoli-obsazeno .hm-okoli-hex { color: #fff7e6; }
.hm-okoli-obsazeno .hm-okoli-hex::before { background: linear-gradient(180deg, #f59e0b, #b45309); }
.hm-okoli-ja .hm-okoli-hex { color: rgba(240, 253, 244, .35); }
.hm-okoli-ja .hm-okoli-hex::before { background: linear-gradient(180deg, #4ade80, #15803d); }
.hm-okoli-figurka { pointer-events: none; filter: none; }
.hm-okoli-figurka .hm-okoli-hex::before { display: none; }
.hm-okoli-figurka .hm-okoli-hex { background: none; color: #f0fdf4; font-weight: 800; letter-spacing: .04em; clip-path: none; }
.hm-okoli-figurka img { display: block; width: 66%; height: auto; max-height: 72%; object-fit: contain; }
.hm-okoli-pocet { position: absolute; top: 0; right: 0; z-index: 1; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #0b0f14; color: #fff; font-size: .64rem; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.hm-okoli-pocet:empty { display: none; }
.hm-okoli-tip { position: absolute; z-index: 5; max-width: 200px; padding: 7px 10px; border-radius: 10px; background: rgba(11, 15, 20, .92); color: #fff; font-size: .78rem; line-height: 1.35; text-align: left; white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; }
.hm-okoli-svisle .hm-okoli-tip { right: calc(100% - 2px); transform: translateY(-50%); }
.hm-okoli-vodorovne .hm-okoli-tip { bottom: calc(100% - 4px); transform: translateX(-50%); }
.hm-okoli-tip[hidden] { display: none; }
.hm-okoli-tip div { overflow: hidden; text-overflow: ellipsis; }
.hm-okoli-tip-ja { font-weight: 800; color: #86efac; }
.hm-okoli-tip-dalsi { margin-top: 2px; color: #cbd5e1; font-style: italic; }
.hm-pas { display: flex; justify-content: center; margin-top: 10px; }
@media (min-width: 1100px) and (orientation: landscape) {
    .hm-body .hx-hra.hm-s-okolim .hm-pas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-okoli-stopa, .hm-okoli-figurka { transition: none; }
}
.hm-autori { margin: 18px 20px 6px; font-size: .72rem; line-height: 1.5; color: var(--hx-tlumene); }
