.hx-body {
    --hx-hneda-0: #2f1b0e;
    --hx-hneda: #4a2c17;
    --hx-hneda-2: #6b4226;
    --hx-hneda-3: #8a5a36;
    --hx-med-lem-h: #c07a3e;
    --hx-text: #3a2414;
    --hx-tlumene: #8a6a52;
    --hx-tlumene-2: #e0c2a2;
    --hx-krem: #fff6ea;
    --hx-svetly: #fff1df;
    --hx-linka: rgba(107, 66, 38, .22);
    --hx-oranz: #f97316;
    --hx-oranz-2: #ea580c;
    --hx-oranz-3: #c2410c;
    --hx-med: #fcd34d;
    --hx-med-2: #f59e0b;
    --hx-med-lem: #b45309;
    --hx-chyba: #c2261e;
    --hx-ok: #15803d;
    --hx-lesk: linear-gradient(180deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, .07) 46%, rgba(255, 255, 255, 0) 52%, rgba(0, 0, 0, .1) 100%);
    --hx-tmavy: linear-gradient(180deg, var(--hx-hneda-2), var(--hx-hneda));
    --hx-tmavy-stin: 0 3px 0 var(--hx-hneda-0), 0 10px 20px rgba(74, 44, 23, .25), inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -3px 8px rgba(0, 0, 0, .18);
    --hx-sklo: linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(255, 249, 240, .62) 55%, rgba(250, 236, 216, .6) 100%);
    --hx-sklo-stin: 0 14px 34px rgba(74, 44, 23, .14), inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(138, 90, 54, .12);
    --hrac-akcent: #f97316;
    --hrac-akcent-2: #6b4226;
    background:
        radial-gradient(ellipse 70% 60% at 50% 38%, rgba(255, 251, 245, .97) 0%, rgba(255, 251, 245, .7) 38%, rgba(255, 251, 245, 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='%238a5a36' stroke-opacity='.22' stroke-width='1.2'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 50% 38%, #fff7ec 0%, #f6d9b2 65%, #ecc08c 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

.hx-body .main { min-height: 100vh; box-sizing: border-box; padding-top: 66px; }
body.hx-body { display: flex; flex-direction: column; }
body.hx-body > .main { flex: 1 0 auto; }
body.hx-body > .footer { order: 2; box-shadow: 0 300px 0 300px #07080d; }
.hx-body .doc { padding-top: 0; }
body.hx-hraje .hx-podnadpis { display: none; }
.hx-body:not(.hx-hraje) .hx-wrap:not(.hxv-wrap) { padding-top: clamp(24px, 8vh, 70px); }
body.hx-hraje .hx-nadpis { margin-bottom: 10px; font-size: 2rem; }

.hx-wrap {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 14px 10px;
    font-family: 'Noto Sans', system-ui, sans-serif;
    color: var(--hx-text);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hx-nadpis {
    margin: 4px 0 0;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.1;
}

.hx-nadpis a, .hx-nadpis a:hover { color: var(--hx-hneda); text-decoration: none; text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.hx-nadpis span { color: var(--hx-oranz-2); }
.hx-logo { display: block; width: min(340px, 82vw); height: auto; margin: 0 auto; filter: drop-shadow(0 4px 6px rgba(74, 44, 23, .18)); }
body.hx-hraje .hx-logo { width: min(230px, 60vw); }
.hxv-wrap .hx-logo { width: min(260px, 66vw); }

.hx-podnadpis {
    margin: 2px 0 16px;
    text-align: center;
    color: var(--hx-tlumene);
    font-size: .9rem;
    letter-spacing: .05em;
}

.hx-uvod { padding: 4px 0 6px; }

.hx-body .hrac-gate {
    --hrac-panel: #5a3620;
    --hrac-panel-2: #3a2212;
    --hrac-pole: rgba(255, 241, 223, .1);
    --hrac-line: rgba(255, 241, 223, .2);
    --hrac-text: #fff1df;
    --hrac-dim: #e0c2a2;
    box-shadow: 0 16px 40px rgba(74, 44, 23, .35);
}

.hx-body .hrac-gate.hrac-compact { box-shadow: none; }
.hx-body .hrac-btn { background: var(--hx-lesk), linear-gradient(180deg, #fb923c, var(--hx-oranz-2)); color: #fff; border: 0; box-shadow: 0 4px 0 var(--hx-oranz-3), 0 10px 18px rgba(194, 65, 12, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }

.hx-akce, .hx-patka {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hx-patka { margin-top: 18px; }

.hx-maly {
    padding: 7px 15px;
    border: 1px solid rgba(255, 241, 223, .3);
    border-radius: 999px;
    background: rgba(255, 241, 223, .08);
    color: var(--hx-svetly);
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

.hx-maly:hover { border-color: var(--hx-oranz); color: #fff; text-decoration: none; }
.hx-patka .hx-maly, .hrac-compact .hx-maly { border-color: var(--hx-linka); background: rgba(255, 251, 245, .6); color: var(--hx-hneda); }
.hx-patka .hx-maly:hover { border-color: var(--hx-oranz); color: var(--hx-oranz-3); }

.hx-zvuk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 241, 223, .3);
    border-radius: 10px;
    background: rgba(255, 241, 223, .08);
    color: var(--hx-svetly);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.hx-patka .hx-zvuk, .hrac-compact .hx-zvuk { border-color: var(--hx-linka); background: rgba(255, 251, 245, .6); color: var(--hx-hneda); }
.hx-zvuk:hover { border-color: var(--hx-oranz); }
.hx-zvuk .hx-skrt { display: none; }
.hx-zvuk.hx-ticho { opacity: .6; }
.hx-zvuk.hx-ticho .hx-vlny { display: none; }
.hx-zvuk.hx-ticho .hx-skrt { display: inline; }

.hx-lista {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 8px;
}

.hx-udaj {
    position: relative;
    padding: 7px 4px;
    border-radius: 14px;
    background: var(--hx-lesk), var(--hx-tmavy);
    color: var(--hx-svetly);
    text-align: center;
    box-shadow: var(--hx-tmavy-stin);
}

.hx-popis {
    display: block;
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--hx-tlumene-2);
}

.hx-udaj strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.hx-udaj-cas strong { color: var(--hx-med); transition: color .3s; }
.hx-udaj-cas strong.hx-varovani { color: #ff8a7a; animation: hx-tep 1s ease-in-out infinite; }

.hx-casbar-obal {
    height: 6px;
    margin: 12px 2px 2px;
    border-radius: 3px;
    background: rgba(107, 66, 38, .16);
    overflow: hidden;
}

.hx-casbar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--hx-oranz-3), var(--hx-oranz), var(--hx-med-2));
    transform-origin: left center;
    transition: transform .12s linear;
}

.hx-let {
    position: absolute;
    left: 50%;
    top: -6px;
    font-weight: 800;
    font-size: .95rem;
    color: var(--hx-ok);
    text-shadow: 0 1px 0 #fff;
    pointer-events: none;
    animation: hx-let 1.1s ease-out forwards;
}

.hx-hlaska {
    min-height: 1.5em;
    margin: 10px 0 0;
    text-align: center;
    font-size: .94rem;
    font-weight: 700;
    color: var(--hx-tlumene);
}

.hx-hlaska.hx-chyba { color: var(--hx-chyba); }
.hx-hlaska.hx-ok { color: var(--hx-ok); letter-spacing: .06em; }
.hx-hlaska.hx-pangram { color: var(--hx-oranz-2); letter-spacing: .1em; }

.hx-slovo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 54px;
    margin: 4px 0 4px;
}

.hx-pismeno {
    min-width: 34px;
    height: 42px;
    padding: 0 6px;
    border: 1px solid var(--hx-med-lem-h);
    border-radius: 9px;
    background: linear-gradient(180deg, #fffdf8, #f6e3c8);
    color: var(--hx-hneda);
    font: 800 1.35rem/40px 'Noto Sans', sans-serif;
    box-shadow: 0 3px 0 #d9a066, inset 0 1px 0 #fff;
    cursor: pointer;
    animation: hx-vloz .16s ease-out;
    transition: transform .15s;
}

.hx-pismeno.hx-zlute { background: var(--hx-lesk), var(--hx-tmavy); border-color: var(--hx-hneda-0); color: #ffcf8a; box-shadow: 0 3px 0 var(--hx-hneda-0), inset 0 1px 0 rgba(255, 255, 255, .2); }
.hx-pismeno:hover { transform: translateY(-2px); }
.hx-slovo.hx-platne .hx-pismeno { 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 3px 0 #166534, 0 6px 14px rgba(22, 163, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .45); }
.hx-slovo.hx-platne .hx-pismeno.hx-zlute { border-color: #14532d; background: var(--hx-lesk), linear-gradient(180deg, #16a34a, #14532d); color: #dcfce7; box-shadow: 0 3px 0 #0f3d22, 0 6px 14px rgba(22, 163, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hx-slovo.hx-platne { animation: hx-platne .3s ease-out; }
.hx-hlaska.hx-info { color: var(--hx-hneda-3); }
#hx-odeslat.hx-pripraveno {
    background: var(--hx-lesk), linear-gradient(180deg, #34d399, #16a34a 55%, #15803d);
    color: #fff;
    opacity: 1;
    text-shadow: 0 1px 0 rgba(20, 83, 45, .5);
    box-shadow: 0 4px 0 #166534, 0 0 0 3px rgba(34, 197, 94, .25), 0 10px 22px rgba(22, 163, 74, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
    animation: hx-pripraveno 1.4s ease-in-out infinite;
}

.hx-slovo.hx-tres { animation: hx-tres .38s ease; }

.hx-plastev-obal {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 8px 0 16px;
}

.hx-plastev {
    --w: min(106px, 25vw, 14vh);
    --h: calc(var(--w) * .866);
    --g: 1.06;
    position: relative;
    width: calc(var(--w) * (1 + 1.5 * var(--g)));
    height: calc(var(--h) * (1 + 2 * var(--g)));
    filter: drop-shadow(0 7px 8px rgba(74, 44, 23, .38)) drop-shadow(0 1px 1px rgba(47, 27, 14, .35));
}

.hx-plastev.hx-puls { animation: hx-puls .45s ease-out; }

.hx-hex {
    --x: 0;
    --y: 0;
    --lem: #d9a066;
    --vypln: linear-gradient(165deg, #fffbf4 0%, #f5e0c3 100%);
    position: absolute;
    left: calc(50% - var(--w) / 2 + var(--x) * var(--w) * .75 * var(--g));
    top: calc(50% - var(--h) / 2 + var(--y) * var(--h) * .5 * var(--g));
    width: var(--w);
    height: var(--h);
    padding: 0;
    border: 0;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    background: var(--lem);
    color: var(--hx-hneda);
    font: 800 calc(var(--w) * .34) / 1 'Noto Sans', sans-serif;
    cursor: pointer;
    transition: transform .17s ease, opacity .17s ease;
}

.hx-hex::before,
.hx-hex::after {
    content: "";
    position: absolute;
    inset: 2px;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    pointer-events: none;
}

.hx-hex::before { background: var(--vypln); transition: filter .2s; }
.hx-hex::after { background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 46%, rgba(138, 90, 54, 0) 70%, rgba(138, 90, 54, .12) 100%); }

.hx-hex span { position: relative; z-index: 1; pointer-events: none; text-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.hx-hex:hover { --lem: var(--hx-oranz); }
.hx-hex:hover::before { filter: brightness(1.04); }
.hx-hex:focus { outline: none; }
.hx-hex:focus-visible { --lem: var(--hx-oranz); }

.hx-p0 {
    --lem: var(--hx-hneda-0);
    --vypln: linear-gradient(165deg, #7c4b2a 0%, #3f2413 100%);
    color: #ffcf8a;
    z-index: 1;
}

.hx-p0 span { text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.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%); }
.hx-p0:hover { --lem: var(--hx-oranz-3); }
.hx-p0:hover::before { filter: brightness(1.12); }
.hx-p1 { --y: -2; }
.hx-p2 { --x: 1; --y: -1; }
.hx-p3 { --x: 1; --y: 1; }
.hx-p4 { --y: 2; }
.hx-p5 { --x: -1; --y: 1; }
.hx-p6 { --x: -1; --y: -1; }

.hx-hex.hx-stisk { animation: hx-stisk .18s ease; }
.hx-hex.hx-mizi { transform: scale(.45) rotate(-70deg); opacity: 0; transition: transform .3s ease-in, opacity .3s ease-in; }
.hx-hex.hx-nove { animation: hx-otoc .9s cubic-bezier(.2, .8, .3, 1); }
.hx-plastev.hx-puls .hx-p0 { animation: hx-zare .5s ease-out; }

.hx-karta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--hx-hneda);
    text-shadow: 0 2px 0 #fff, 0 6px 18px rgba(74, 44, 23, .25);
    letter-spacing: .18em;
    z-index: 3;
    animation: hx-karta .45s cubic-bezier(.3, 1.4, .5, 1);
    transition: opacity .3s, transform .3s;
}

.hx-karta { flex-direction: column; gap: 4px; }
.hx-karta strong { font-weight: 800; }
.hx-karta .hx-karta-cas { font-size: 1.1rem; letter-spacing: .08em; color: var(--hx-ok); text-shadow: 0 1px 0 #fff; }
.hx-postup { display: flex; justify-content: center; gap: 6px; margin: 8px 0 0; }
.hx-postup i { width: 26px; height: 6px; border-radius: 3px; background: rgba(107, 66, 38, .18); box-shadow: inset 0 1px 2px rgba(74, 44, 23, .2); transition: background .25s, transform .25s; }
.hx-postup i.hx-hotovo { background: linear-gradient(180deg, #4ade80, #16a34a); box-shadow: 0 0 6px rgba(22, 163, 74, .45); transform: scaleY(1.2); }
.hx-k-kolo { margin: 0 0 6px; text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--hx-hneda-2); }
.hx-karta.hx-karta-ven { opacity: 0; transform: scale(1.15); }
.hx-plastev.hx-skryta { visibility: hidden; }
.hx-plastev.hx-mizi-vse { opacity: 0; transform: scale(.9); transition: opacity .3s ease, transform .3s ease; }
.hx-plastev.hx-objev { animation: hx-objev .45s cubic-bezier(.3, 1.4, .5, 1); }

.hx-tlacitka {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hx-t {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    font: 800 1rem 'Noto Sans', sans-serif;
    letter-spacing: .12em;
    cursor: pointer;
    transition: transform .12s, filter .2s, opacity .2s, box-shadow .12s;
}

.hx-t:active { transform: translateY(2px); }
.hx-t:disabled { opacity: .5; cursor: default; }
.hx-t:hover { text-decoration: none; }

.hx-t-prim {
    background: var(--hx-lesk), linear-gradient(180deg, #fb923c, var(--hx-oranz-2));
    color: #fff;
    text-shadow: 0 1px 0 rgba(124, 45, 18, .4);
    box-shadow: 0 4px 0 var(--hx-oranz-3), 0 10px 18px rgba(194, 65, 12, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.hx-t-prim:hover { color: #fff; filter: brightness(1.06); }
.hx-t-prim:active { box-shadow: 0 2px 0 var(--hx-oranz-3), 0 5px 10px rgba(194, 65, 12, .3); }

.hx-t-sek {
    background: var(--hx-lesk), var(--hx-tmavy);
    color: var(--hx-svetly);
    box-shadow: 0 4px 0 var(--hx-hneda-0), 0 10px 18px rgba(74, 44, 23, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.hx-t-sek:hover { color: #fff; filter: brightness(1.1); }
.hx-t-sek:active { box-shadow: 0 2px 0 var(--hx-hneda-0), 0 5px 10px rgba(74, 44, 23, .25); }

.hx-preskocit {
    display: block;
    margin: 14px auto 0;
    padding: 4px 14px;
    border: 0;
    background: transparent;
    color: var(--hx-hneda-3);
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.hx-preskocit:hover { color: var(--hx-oranz-3); }
.hx-preskocit:disabled { opacity: .4; cursor: default; }

.hx-nalezena-obal {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--hx-sklo);
    border: 1px solid var(--hx-linka);
    box-shadow: var(--hx-sklo-stin);
}

.hx-nalezena-hlava {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hx-tlumene);
}

.hx-nalezena, .hx-chipy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    min-height: 26px;
}

.hx-chip {
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--hx-lesk), var(--hx-tmavy);
    color: var(--hx-svetly);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: .85rem;
    font-weight: 600;
    animation: hx-vloz .25s ease-out;
}

.hx-chip-tip { background: rgba(255, 251, 245, .7); border: 1px dashed var(--hx-oranz-2); color: var(--hx-oranz-3); }
.hx-prazdno { color: var(--hx-tlumene); font-size: .85rem; }

.hx-panel .hx-chipy { justify-content: center; }
.hx-panel {
    margin-top: 16px;
    text-align: center;
    padding: 20px 18px;
    border-radius: 20px;
    background: var(--hx-sklo);
    border: 1px solid var(--hx-linka);
    box-shadow: var(--hx-sklo-stin);
    backdrop-filter: blur(6px);
    animation: hx-panel .35s ease-out;
}

.hx-panel h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--hx-hneda);
}

.hx-pravidla { margin: 0 0 14px; padding-left: 18px; font-size: .92rem; line-height: 1.5; }
.hx-pravidla li { margin-bottom: 5px; }
.hx-pravidla strong { color: var(--hx-oranz-3); }


.hx-cisla {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hx-cisla div {
    flex: 1;
    max-width: 120px;
    padding: 8px 4px;
    border-radius: 14px;
    background: var(--hx-lesk), var(--hx-tmavy);
    color: var(--hx-svetly);
    text-align: center;
    box-shadow: var(--hx-tmavy-stin);
}

.hx-cisla strong { display: block; font-size: 1.4rem; font-weight: 800; }
.hx-cisla span { font-size: .66rem; color: var(--hx-tlumene-2); text-transform: uppercase; letter-spacing: .08em; }

.hx-velke-skore { margin-bottom: 12px; text-align: center; }
.hx-velke-skore strong { display: block; font-size: 3.8rem; font-weight: 800; line-height: 1; color: var(--hx-oranz-2); text-shadow: 0 3px 0 rgba(194, 65, 12, .18); animation: hx-nove .6s cubic-bezier(.3, 1.5, .5, 1); }
.hx-velke-skore span { color: var(--hx-tlumene); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }

.hx-stav { min-height: 1.3em; margin: 0 0 6px; text-align: center; font-weight: 700; color: var(--hx-ok); }

.hx-mezititulek { margin: 14px 0 0; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-tlumene); }
.hx-prenos { margin: 14px 0 0; text-align: center; font-weight: 700; color: var(--hx-ok); }

.hx-tlacitka-modal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.hx-tlacitka-modal .hx-t { flex: 1 1 130px; padding: 0 12px; letter-spacing: .07em; white-space: nowrap; }

.hx-text {
    max-width: 760px;
    margin: 22px auto;
    padding: 0;
    background: var(--hx-sklo);
    border: 1px solid var(--hx-linka);
    border-radius: 18px;
    color: var(--hx-text);
    box-shadow: var(--hx-sklo-stin);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.hx-napoveda { max-width: 500px; margin: 14px auto 4px; text-align: left; animation: hx-panel .3s ease-out; scroll-margin-top: 80px; }
.hx-napoveda[hidden] { display: none; }
.hx-napoveda h2 { margin: 16px 20px 0; font-size: 1.15rem; }
.hx-text ul.hx-pravidla { margin: 14px 20px 14px; }
.hx-text ul.hx-pravidla:last-child { margin-bottom: 18px; }
.hx-text em { color: var(--hx-hneda-3); }

.hx-text summary {
    padding: 14px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 800;
    color: var(--hx-hneda);
    list-style: none;
}

.hx-text summary::-webkit-details-marker { display: none; }
.hx-text summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 800; color: var(--hx-oranz-2); }
.hx-text[open] summary::before { content: "–"; }
.hx-text[open] summary { border-bottom: 1px solid var(--hx-linka); }
.hx-text > :not(summary) { margin-left: 20px; margin-right: 20px; }
.hx-text h2 { margin-top: 16px; font-size: 1.2rem; font-weight: 800; color: var(--hx-hneda); }
.hx-text h3 { margin-top: 14px; font-size: 1rem; font-weight: 700; color: var(--hx-oranz-3); }
.hx-text p { line-height: 1.6; }
.hx-text p:last-child { margin-bottom: 18px; }
.hx-text a { color: var(--hx-oranz-3); }
.hx-text .hx-zavrit-obal { margin: 4px 20px 16px; text-align: center; }
.hx-text .hx-zavrit { padding: 5px 16px; border-color: var(--hx-linka); background: rgba(255, 255, 255, .6); color: var(--hx-hneda); font-size: .8rem; }
.hx-text .hx-zavrit:hover { border-color: var(--hx-oranz); color: var(--hx-oranz-3); }

@keyframes hx-vloz { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hx-tres { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes hx-stisk { 50% { transform: scale(.92); } }
@keyframes hx-otoc { 0% { transform: scale(.45) rotate(150deg); opacity: 0; } 35% { opacity: 1; } 55% { transform: scale(1.08) rotate(-18deg); } 80% { transform: scale(.98) rotate(6deg); } 100% { transform: none; } }
@keyframes hx-nove { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.07); opacity: 1; } 100% { transform: none; } }
@keyframes hx-puls { 40% { transform: scale(1.03); } }
@keyframes hx-zare { 0% { filter: brightness(1); } 35% { filter: brightness(1.25) drop-shadow(0 0 14px rgba(249, 115, 22, .85)); } 100% { filter: brightness(1); } }
@keyframes hx-let { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -26px); opacity: 0; } }
@keyframes hx-tep { 50% { opacity: .55; } }
@keyframes hx-karta { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hx-platne { 40% { transform: scale(1.05); } }
@keyframes hx-pripraveno { 50% { box-shadow: 0 4px 0 #166534, 0 0 0 7px rgba(34, 197, 94, .16), 0 10px 26px rgba(22, 163, 74, .5), inset 0 1px 0 rgba(255, 255, 255, .4); } }
@keyframes hx-objev { from { transform: scale(.82); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hx-panel { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .hx-hex, .hx-pismeno, .hx-chip, .hx-plastev, .hx-karta, .hx-panel, .hx-slovo, #hx-odeslat { animation: none !important; transition: none !important; }
}

@media (max-height: 760px) {
    .hx-hlaska { margin-top: 4px; }
    .hx-slovo { min-height: 46px; margin: 2px 0; }
    .hx-casbar-obal { margin-top: 8px; }
    .hx-plastev-obal { margin: 4px 0 10px; }
    .hx-preskocit { margin-top: 8px; }
    body.hx-hraje .hx-nadpis { margin-bottom: 6px; font-size: 1.7rem; }
    body.hx-hraje .hx-logo { width: min(190px, 50vw); }
}

@media (max-width: 380px) {
    .hx-nadpis { font-size: 2rem; }
    .hx-t { min-height: 48px; }
}

.hxv-wrap {
    max-width: 720px;
    margin-top: 6px;
    padding: 20px 16px 22px;
    border-radius: 26px;
    border: 1px solid rgba(138, 90, 54, .28);
    background:
        radial-gradient(120% 55% at 50% 0%, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(180deg, #efd9bb 0%, #e3c49d 100%);
    box-shadow: 0 20px 50px rgba(74, 44, 23, .2), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 10px rgba(138, 90, 54, .15);
}

.hxv-prepinac {
    display: flex;
    gap: 6px;
    max-width: 420px;
    margin: 0 auto 10px;
    padding: 5px;
    background: var(--hx-lesk), var(--hx-tmavy);
    border-radius: 14px;
    box-shadow: var(--hx-tmavy-stin);
}

.hxv-prepinac a {
    flex: 1 1 0;
    padding: 9px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: .86rem;
    font-weight: 700;
    color: var(--hx-tlumene-2);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.hxv-prepinac a:hover { color: #fff; text-decoration: none; }
.hxv-prepinac a.akt { background: linear-gradient(180deg, #fb923c, var(--hx-oranz-2)); color: #fff; }

.hxv-datum { margin: 0 0 18px; text-align: center; font-size: .86rem; letter-spacing: .06em; color: var(--hx-tlumene); }

.hxv-sekce { margin: 24px 0 14px; text-align: center; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; color: var(--hx-hneda); }
.hxv-sekce::after { content: ""; display: block; width: 68px; height: 3px; margin: 8px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--hx-oranz), transparent); }

.hxv-staty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.hxv-staty div { min-width: 0; padding: 9px 6px; border-radius: 12px; background: var(--hx-lesk), var(--hx-tmavy); text-align: center; box-shadow: var(--hx-tmavy-stin); }
.hxv-staty span { display: block; font-size: .58rem; letter-spacing: .08em; color: var(--hx-tlumene-2); }
.hxv-staty strong { display: block; overflow: hidden; font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--hx-svetly); text-overflow: ellipsis; white-space: nowrap; }
.hxv-staty strong.hxv-akc { color: var(--hx-med); }
.hxv-staty strong.hxv-slovo-box { font-size: .95rem; line-height: 1.6; letter-spacing: .04em; }

.hxv-h1 { margin: 2px 0 6px; text-align: center; font-size: 1.15rem; font-weight: 800; letter-spacing: .03em; color: var(--hx-hneda-2); }
.hxv-uvod { max-width: 520px; margin: 0 auto 16px; text-align: center; font-size: .86rem; line-height: 1.5; color: var(--hx-tlumene); }
.hxv-uvod a { color: var(--hx-oranz-3); font-weight: 700; }

.hxv-razeni {
    display: flex;
    gap: 4px;
    max-width: 420px;
    margin: 0 auto 12px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(107, 66, 38, .14);
    box-shadow: inset 0 1px 3px rgba(74, 44, 23, .18);
}

.hxv-razeni button {
    flex: 1 1 0;
    padding: 7px 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--hx-hneda-3);
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.hxv-razeni button:hover { color: var(--hx-hneda); }
.hxv-razeni button.akt { background: var(--hx-lesk), var(--hx-tmavy); color: var(--hx-svetly); box-shadow: 0 2px 0 var(--hx-hneda-0), inset 0 1px 0 rgba(255, 255, 255, .2); }

.hxv-ramecek {
    padding: 10px 10px 4px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #e6c9a2 0%, #d9b78a 100%);
    border: 1px solid rgba(107, 66, 38, .3);
    box-shadow: 0 10px 26px rgba(74, 44, 23, .18), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 8px rgba(107, 66, 38, .15);
}

.hxv-ramecek[hidden] { display: none; }

.hxv-tab { display: grid; gap: 5px; grid-template-columns: minmax(0, 1fr); }

.hxv-radek {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 42px 48px 40px 46px minmax(0, 104px);
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid rgba(107, 66, 38, .2);
    border-radius: 999px;
    background: rgba(255, 250, 243, .55);
    font-size: .88rem;
    color: var(--hx-text);
    transition: background .15s, border-color .15s;
}

.hxv-radek:not(.hxv-hlavicka):hover { background: rgba(255, 250, 243, .85); border-color: rgba(107, 66, 38, .35); }
.hxv-nejnovejsi .hxv-radek { grid-template-columns: minmax(0, 1fr) 42px 48px 40px 46px 44px; }
.hxv-aktivni .hxv-radek { grid-template-columns: 28px minmax(0, 1fr) 40px 42px 48px 46px; }
.hxv-radek .kolo { text-align: right; font-weight: 800; color: var(--hx-hneda); font-variant-numeric: tabular-nums; }

.hxv-radek .poradi { color: var(--hx-hneda-3); font-weight: 800; font-variant-numeric: tabular-nums; }
.hxv-radek .hrac { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.hxv-radek .jm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hxv-radek .vip { flex: 0 0 auto; color: var(--hx-med-lem); }
.hxv-radek .skore { text-align: right; font-weight: 800; font-size: .95rem; color: var(--hx-oranz-2); font-variant-numeric: tabular-nums; }
.hxv-radek .slov, .hxv-radek .her, .hxv-radek .hodina, .hxv-radek .cas { text-align: right; font-size: .8rem; color: var(--hx-hneda-3); font-variant-numeric: tabular-nums; }
.hxv-radek .her { color: var(--hx-text); font-weight: 700; }
.hxv-radek .cas { color: var(--hx-hneda-2); }
.hxv-radek .nejdelsi { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: .74rem; letter-spacing: .04em; color: var(--hx-hneda-2); }

.hxv-radek.m1, .hxv-radek.m2, .hxv-radek.m3 { font-weight: 600; }
.hxv-radek.m1 { box-shadow: inset 5px 0 0 #e0a800; }
.hxv-radek.m2 { box-shadow: inset 5px 0 0 #9aa3b0; }
.hxv-radek.m3 { box-shadow: inset 5px 0 0 #c27a3a; }
.hxv-radek.m1 .poradi { color: #c99400; }
.hxv-radek.m2 .poradi { color: #7d8794; }
.hxv-radek.m3 .poradi { color: #b0662a; }

.hxv-radek.highlight-row, .hxv-radek.vip-me {
    border: 2px solid var(--hx-hneda-2);
    background: rgba(255, 250, 243, .92);
    padding: 8px 11px;
}

.hxv-radek.highlight-row .hrac::after, .hxv-radek.vip-me .hrac::after {
    content: "VY";
    flex: 0 0 auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--hx-lesk), var(--hx-tmavy);
    color: var(--hx-svetly);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.6;
}

.hxv-radek.hxv-hlavicka {
    padding: 4px 12px 8px;
    border: 0;
    border-bottom: 2px solid rgba(107, 66, 38, .35);
    background: transparent;
    border-radius: 0;
    margin-bottom: 4px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hx-hneda-3);
}

.hxv-hlavicka span { position: relative; text-align: right; cursor: help; }
.hxv-hlavicka .poradi, .hxv-hlavicka .hrac { text-align: left; }
.hxv-radek.hxv-hlavicka span { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.hxv-hlavicka span::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 200px;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--hx-hneda-0);
    color: var(--hx-svetly);
    font-size: .7rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-align: center;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 5;
}
.hxv-hlavicka span:hover::after { opacity: 1; }

.hxv-zlom { display: none; }
.hxv-prazdno { padding: 18px 0 10px; text-align: center; font-size: .88rem; color: var(--hx-tlumene); }
.hxv-pozn { margin: 10px 4px 8px; padding-top: 10px; border-top: 1px solid rgba(107, 66, 38, .25); font-size: .82rem; line-height: 1.5; color: var(--hx-hneda-2); }
.hxv-pozn strong { color: var(--hx-oranz-3); }
.hxv-nulovani { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--hx-tlumene); }

@media (max-width: 599px) {
    .hxv-staty { grid-template-columns: repeat(2, 1fr); }
    .hxv-ramecek { padding: 6px 6px 2px; }
    .hxv-radek, .hxv-nejnovejsi .hxv-radek, .hxv-aktivni .hxv-radek {
        border-radius: 18px;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 10px;
        padding: 8px 10px;
    }
    .hxv-radek .poradi { flex: 0 0 auto; width: 22px; }
    .hxv-radek .hrac { flex: 1 1 0; }
    .hxv-radek .skore { flex: 0 0 auto; margin-left: auto; }
    .hxv-zlom { display: block; flex: 0 0 100%; height: 0; }
    .hxv-radek .slov, .hxv-radek .her, .hxv-radek .hodina, .hxv-radek .nejdelsi, .hxv-radek .cas { text-align: left; font-size: .72rem; }
    .hxv-radek .kolo { flex: 0 0 auto; font-size: .8rem; }
    .hxv-radek .kolo::after { content: " kolo"; font-size: .68rem; font-weight: 400; color: var(--hx-tlumene); }
    .hxv-radek span[data-popis]::after { content: " " attr(data-popis); font-size: .68rem; font-weight: 400; color: var(--hx-tlumene); }
    .hxv-radek.hxv-hlavicka { display: none; }
}
.hx-na-limitu .hx-lista, .hx-na-limitu .hx-casbar-obal, .hx-na-limitu #hx-postup { display: none; }
body:not(.hm-body) #hx-plocha { position: relative; }
body:not(.hm-body) .hx-hlaska { position: absolute; left: 50%; top: -28px; z-index: 6; min-height: 0; margin: 0; padding: 3px 14px; border-radius: 999px; background: rgba(255, 250, 243, .96); box-shadow: 0 3px 10px rgba(74, 44, 23, .25); width: max-content; max-width: calc(100% - 12px); font-size: .86rem; line-height: 1.3; text-align: center; transform: translateX(-50%); pointer-events: none; }
body:not(.hm-body) .hx-hlaska:empty { display: none; }
body:not(.hm-body) .hx-slovo { margin-top: 10px; }
body:not(.hm-body) .hx-plastev { --w: min(114px, 26vw, 15vh); }

.ht-reklama { display: none; }

@media (min-width: 800px) and (orientation: landscape) {
    body.hx-hraje .hx-wrap:has(.ht-s-reklamou) { max-width: 690px; }
    body.hx-hraje .hx-wrap:has(.ht-s-reklamou) > .hx-nadpis { margin-right: 184px; }
    .hx-hra.ht-s-reklamou:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 160px; grid-template-rows: repeat(9, auto) 1fr; column-gap: 24px; align-items: start; }
    .hx-hra.ht-s-reklamou > * { grid-column: 1; }
    .hx-hra.ht-s-reklamou > .ht-reklama { display: block; grid-column: 2; grid-row: 1 / -1; align-self: stretch; }
    .ht-reklama-box { position: sticky; top: 76px; width: 160px; min-height: 600px; }
    .ht-reklama-box ins, .ht-reklama-box iframe { width: 160px !important; max-width: 160px !important; }
}
