:root {
    --db-akcent: #7c6cf0;
    --db-akcent-2: #4b2fb8;
    --db-text: #f4f1ff;
    --db-dim: #a99fd4;
    --db-ok: #3ddc84;
    --db-chyba: #ff5d5d;
}

body {
    background: radial-gradient(ellipse at center, #a88fff, #7a55ff 50%, #3d0281 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

.main { padding-top: 92px; min-height: 100vh; box-sizing: border-box; }
.doc { padding-top: 0; }

.db-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    text-align: center;
    color: var(--db-text);
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.db-logo { width: 340px; max-width: 82%; height: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .45)); }
.db-logo-male { width: 190px; }
h1.db-nadpis { margin: 0 0 10px; line-height: 1; }

.db-uvod { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.db-btn {
    border: none;
    border-radius: 13px;
    padding: 15px 42px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .07em;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, var(--db-akcent) 0%, var(--db-akcent-2) 100%);
    box-shadow: 0 8px 22px rgba(76, 48, 184, .5);
    transition: transform .15s, filter .2s;
    margin-top: 14px;
}
.db-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }

.db-maly {
    background: rgba(24, 10, 64, .26);
    border: 1px solid rgba(255, 255, 255, .26);
    color: rgba(255, 255, 255, .92);
    border-radius: 10px;
    padding: 9px 18px;
    font-size: .86rem;
    font-weight: 400;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.db-maly:hover {
    background: rgba(24, 10, 64, .45);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}
.db-akce { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 16px; }

.db-zvuk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(24, 10, 64, .26);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 10px;
    color: rgba(255, 255, 255, .92);
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.db-zvuk svg { stroke-width: 1.7; }
.db-zvuk:hover { background: rgba(24, 10, 64, .45); border-color: rgba(255, 255, 255, .45); }
.db-zvuk .db-skrt { display: none; }
.db-zvuk.db-ticho { color: var(--db-dim); }
.db-zvuk.db-ticho .db-vlny { display: none; }
.db-zvuk.db-ticho .db-skrt { display: inline; }

.db-hlava {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}
.db-hlava.db-bezi { display: flex; }

.db-cas {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    min-width: 3.4ch;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.db-cas.db-dochazi { color: #ffd166; animation: dbTep .6s ease-in-out infinite; }
@keyframes dbTep { 50% { transform: scale(1.13); } }

.db-postup {
    width: 170px;
    max-width: 62vw;
    height: 9px;
    border-radius: 99px;
    background: rgba(12, 4, 38, .55);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .12);
    overflow: hidden;
}
.db-postup span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #2fc973 0%, #3ddc84 45%, #9dffc9 100%);
    box-shadow: 0 0 10px rgba(61, 220, 132, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: width .25s ease;
}

.db-stul {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 18px;
    perspective: 1200px;
}
.db-stul.db-bezi { display: flex; }

.db-karta {
    position: relative;
    flex: 0 0 auto;
    width: min(92vw, 400px);
    width: min(92vw, 400px, calc((100svh - 174px) / 2));
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 36%, #fff 0%, #f4f1ea 72%, #e7e1d3 100%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(0, 0, 0, .06);
    overflow: hidden;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    will-change: transform;
}

.db-karta img {
    position: absolute;
    left: 0; top: 0;
    transform-origin: 50% 50%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .22));
}

.db-karta.db-ok { animation: dbOk .45s ease; }
.db-karta.db-spatne { animation: dbSpatne .45s ease; }
@keyframes dbOk { 50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 0 0 7px var(--db-ok); } }
@keyframes dbSpatne { 50% { box-shadow: 0 14px 34px rgba(0, 0, 0, .34), inset 0 0 0 7px var(--db-chyba); } }

.db-karta.db-otoc { animation: dbOtoc .5s ease-in-out; }
@keyframes dbOtoc {
    0% { transform: rotateY(0) translateZ(0); }
    49.9% { transform: rotateY(90deg) translateZ(0); }
    50% { transform: rotateY(-90deg) translateZ(0); }
    100% { transform: rotateY(0) translateZ(0); }
}

.db-nalez {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 4px var(--db-ok), 0 0 22px 6px rgba(61, 220, 132, .65);
    animation: dbPulz .45s ease-out forwards;
}
@keyframes dbPulz { from { opacity: 1; transform: scale(.75); } to { opacity: 0; transform: scale(1.35); } }

.db-oddych {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(24, 10, 60, .9);
    backdrop-filter: blur(5px);
    color: #fff;
    cursor: pointer;
}
.db-o-nad {
    color: #fff;
    font-size: clamp(2rem, 10vw, 3.2rem);
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1;
    padding-left: .16em;
    text-shadow: 0 4px 24px rgba(124, 108, 240, .9), 0 2px 0 rgba(0, 0, 0, .25);
}
.db-o-cislo {
    color: #fff;
    font-size: clamp(6rem, 34vw, 10rem);
    font-weight: 900;
    line-height: .9;
    margin: 2px 0 10px;
    text-shadow: 0 0 42px rgba(143, 125, 255, .95), 0 8px 30px rgba(0, 0, 0, .45);
}
.db-o-bonus {
    font-style: normal;
    font-size: clamp(1.6rem, 8vw, 2.5rem);
    font-weight: 800;
    color: var(--db-ok);
    padding: 6px 22px;
    border-radius: 99px;
    background: rgba(61, 220, 132, .12);
    border: 1px solid rgba(61, 220, 132, .45);
    text-shadow: 0 0 22px rgba(61, 220, 132, .6);
}
.db-o-odmena { font-size: .92rem; font-weight: 700; color: #ffcb00; margin-top: 4px; }
.db-oddych > * { animation: dbVjezd .5s cubic-bezier(.2, 1.3, .4, 1) both; }
.db-oddych > *:nth-child(2) { animation-delay: .08s; }
.db-oddych > *:nth-child(3) { animation-delay: .22s; }
.db-oddych > *:nth-child(4) { animation-delay: .4s; }
@keyframes dbVjezd { from { opacity: 0; transform: translateY(18px) scale(.8); } }

.db-clona {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 10, 60, .96);
    backdrop-filter: blur(14px);
    color: #fff;
}
.db-clona[hidden] { display: none; }
.db-clona-n { font-size: clamp(3.4rem, 22vw, 7rem); font-weight: 900; line-height: 1; }

.db-oddych[hidden] { display: none; }

.db-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow: auto;
    background: rgba(0, 0, 0, .55);
}
.db-modal.db-vidno { display: block; }

.db-box {
    background: linear-gradient(160deg, #4a2d94 0%, #201040 100%);
    border-radius: 22px;
    padding: 30px 24px 26px;
    max-width: 420px;
    width: 88%;
    margin: 10vh auto;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    color: #fff;
}
.db-box h2 { font-size: 1.3rem; color: #ffd700; margin: 0 0 14px; font-weight: 800; }
.db-box h3 { font-size: 1rem; margin: 16px 0 5px; color: #fff; }
.db-box p { font-size: .9rem; opacity: .85; margin: 0 0 8px; line-height: 1.55; }

.db-ikona { line-height: 0; margin-bottom: 10px; }
.db-ikona img { width: 120px; height: 120px; filter: drop-shadow(0 6px 22px rgba(255, 203, 0, .55)); animation: dbPohar .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.db-ikona img.db-tvar { width: 150px; height: 150px; margin: -30px 0 -28px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); animation: dbPohar .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.db-ikona [hidden] { display: none; }
@keyframes dbPohar { from { opacity: 0; transform: scale(.4) rotate(-12deg); } }
.db-nadpis-vysl { font-size: 1.35rem; font-weight: 800; letter-spacing: .12em; color: #fff; margin-bottom: 4px; }
.db-skore {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    font-weight: 900;
    line-height: 1;
    margin: 6px 0 20px;
    color: #ffcb00;
    text-shadow: 0 0 24px rgba(255, 203, 0, .45), 0 3px 0 rgba(0, 0, 0, .25);
}

.db-staty { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.db-stat {
    flex: 1; min-width: 78px; max-width: 120px;
    background: rgba(255, 255, 255, .1);
    border-radius: 14px; padding: 13px 2px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .12);
}
.db-stat .db-cislo { display: block; font-size: 1.4rem; font-weight: 900; }
.db-stat .db-u-ok { color: var(--db-ok); }
.db-stat .db-u-bad { color: var(--db-chyba); }
.db-stat .db-popis { font-size: .67rem; opacity: .55; text-transform: uppercase; letter-spacing: .06em; }

.db-nizke {
    color: #ffdcdc; font-weight: 700; font-size: .84rem;
    padding: 10px; margin: 0 0 16px;
    border: 1px solid rgba(255, 68, 68, .5);
    border-radius: 8px; background: rgba(255, 68, 68, .15);
}

.db-tlacitka { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.db-t {
    display: inline-block; padding: 12px 24px; border-radius: 12px;
    font-size: .95rem; font-weight: 700; cursor: pointer; border: none;
    text-decoration: none; transition: transform .2s, background .2s;
}
.db-t-prim { background: var(--db-akcent); color: #fff; box-shadow: 0 4px 14px rgba(124, 108, 240, .5); }
.db-t-sek { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.db-t:hover { transform: translateY(-1px); color: #fff; }

.db-zebricek { margin: 36px auto 0; }
.db-zebricek img { max-width: 220px; height: auto; }
.db-zebricek h2 { color: #eee; font-size: 1.1rem; margin: 10px 0 14px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body.db-hraje .main { padding-top: 78px; min-height: 0; }
body.db-hraje #db-hlavicka,
body.db-hraje .db-text,
body.db-hraje .db-zebricek { display: none; }
body.db-hraje .doc { padding-bottom: 8px; }
body.db-hraje { overflow: hidden; }

@media (max-width: 859px), (orientation: portrait) and (pointer: coarse) {
    .db-stul { flex-direction: column; gap: 10px; }
    .db-karta {
        width: min(96vw, 720px);
        width: min(96vw, 720px, calc((100svh - 92px) / 1.4));
        height: min(96vw, 720px);
        height: min(96vw, 720px, calc((100svh - 92px) / 2));
        aspect-ratio: auto;
    }
    body.db-hraje nav.navbar { display: none; }
    body.db-hraje .main { padding-top: 10px; }
    body.db-hraje .db-wrap { padding: 0; }
}

@media (min-width: 860px) and (orientation: landscape), (min-width: 860px) and (pointer: fine) {
    .db-karta { width: min(46vw, 430px); }
    .db-karta { width: min(46vw, 430px, calc(100svh - 216px)); }
    .db-stul { gap: 26px; }
    .main { padding-top: 110px; }
    body.db-hraje .main { padding-top: 88px; }
}

@media (min-width: 860px) and (orientation: landscape) and (pointer: coarse) {
    .db-karta { width: min(46vw, 640px); }
    .db-karta { width: min(46vw, 640px, calc(100svh - 216px)); }
}

body.db-hraje .db-wrap { max-width: none; }

@media (prefers-reduced-motion: reduce) {
    .db-karta.db-otoc, .db-cas.db-dochazi, .db-oddych > * { animation: none; }
}

a.db-btn { display: inline-block; text-decoration: none; }
a.db-btn:hover { color: #fff; text-decoration: none; }
.db-nadpis a { display: inline-block; }

.db-v-wrap { max-width: 760px; }
.db-v-logo { width: 240px; }
.db-v-podtitul { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 18px; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }

.db-v-staty {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 0 16px;
}
.db-v-stat {
    background: rgba(28, 16, 69, .78);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    padding: 11px 6px 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.db-v-stat span { display: block; font-size: .6rem; letter-spacing: .09em; text-transform: uppercase; color: var(--db-dim); }
.db-v-stat b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.2; color: #fff; }
.db-v-stat b.zlata { color: #ffcb00; }
.db-v-stat b.zelena { color: var(--db-ok); }

.db-v-prepinac {
    display: flex;
    gap: 5px;
    background: rgba(28, 16, 69, .78);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
    padding: 5px;
    max-width: 440px;
    margin: 0 auto 14px;
}
.db-v-prepinac button {
    flex: 1 1 0;
    border: none;
    background: none;
    border-radius: 9px;
    padding: 9px 6px;
    font-size: .86rem;
    font-weight: 700;
    color: var(--db-dim);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.db-v-prepinac button:hover { color: #fff; }
.db-v-prepinac button.akt {
    background: linear-gradient(180deg, #8f7dff 0%, #5a37d6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(90, 55, 214, .5);
}

.db-v-tabulka {
    position: relative;
    display: grid;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
    padding: 14px 14px 12px;
    border-radius: 20px;
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(143, 125, 255, .28) 0%, rgba(143, 125, 255, 0) 60%),
        linear-gradient(165deg, rgba(46, 26, 118, .92) 0%, rgba(20, 9, 54, .95) 100%);
    border: 1px solid rgba(190, 176, 255, .28);
    box-shadow: 0 22px 50px rgba(12, 4, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .12);
    overflow: hidden;
}
.db-v-tabulka::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #3ddc84, #8f7dff 50%, #ffcb00);
    opacity: .85;
}
.db-v-radek {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 56px 58px 52px 50px 78px;
    min-width: 0;
    gap: 8px;
    align-items: center;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 11px;
    padding: 8px 12px;
    font-size: .88rem;
    color: #fff;
}
.db-v-aktivni .db-v-radek { grid-template-columns: 34px minmax(0, 1fr) 46px 56px 58px 52px 50px; }
.db-v-nejnovejsi .db-v-radek { grid-template-columns: minmax(0, 1fr) 56px 58px 52px 50px 78px; }
.db-v-radek .poradi b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 800;
    color: var(--db-dim);
}
.db-v-radek .hrac { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-weight: 600; }
.db-v-radek .hrac .jm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-v-radek .vip { color: #ffd700; flex: 0 0 auto; text-shadow: 0 0 6px rgba(255, 215, 0, .5); }
.db-v-radek .skore { color: #ffcb00; font-weight: 800; font-size: 1rem; text-align: right; }
.db-v-radek .spravne { color: var(--db-ok); font-weight: 700; text-align: right; }
.db-v-radek .chybne { color: #ff9a9a; text-align: right; }
.db-v-radek .her { color: #7fd8ff; font-weight: 700; text-align: right; }
.db-v-radek .cas,
.db-v-radek .datum { color: var(--db-dim); font-size: .8rem; text-align: right; font-variant-numeric: tabular-nums; }
.db-v-radek > span { font-variant-numeric: tabular-nums; }

.db-v-radek.db-v-medaile { border-color: rgba(143, 125, 255, .55); }
.db-v-radek.db-v-m1 { background: linear-gradient(90deg, rgba(143, 125, 255, .45), rgba(255, 255, 255, .06) 75%); }
.db-v-radek.db-v-m2 { background: linear-gradient(90deg, rgba(143, 125, 255, .3), rgba(255, 255, 255, .055) 75%); }
.db-v-radek.db-v-m3 { background: linear-gradient(90deg, rgba(143, 125, 255, .18), rgba(255, 255, 255, .055) 75%); }
.db-v-radek.db-v-m1 .poradi b { background: linear-gradient(180deg, #ffe27a, #e0a800); color: #3a2600; }
.db-v-radek.db-v-m2 .poradi b { background: linear-gradient(180deg, #f1f4f9, #aeb6c4); color: #2a2f38; }
.db-v-radek.db-v-m3 .poradi b { background: linear-gradient(180deg, #f1b784, #b8682c); color: #3a1c05; }

.db-v-radek.highlight-row,
.db-v-radek.vip-me {
    outline: 2px solid #ffcb00;
    outline-offset: -1px;
    background: rgba(255, 203, 0, .15);
}
.db-v-radek.highlight-row > span,
.db-v-radek.vip-me > span { color: #fff; }

.db-v-radek.db-v-hlavicka {
    background: transparent;
    border-color: transparent;
    padding: 0 12px 4px;
    font-size: .7rem;
    letter-spacing: .04em;
    color: var(--db-dim);
}
.db-v-radek.db-v-hlavicka > span { color: var(--db-dim); font-size: .7rem; font-weight: 600; text-align: right; }
.db-v-radek.db-v-hlavicka .poradi,
.db-v-radek.db-v-hlavicka .hrac { text-align: left; }
.db-v-radek.db-v-hlavicka span[title] { cursor: help; }

.db-v-zlom { display: none; }
.db-v-prazdno { color: #fff; text-align: center; padding: 26px 10px; }
.db-v-pozn { color: rgba(255, 255, 255, .78); font-size: .8rem; line-height: 1.5; text-align: center; margin: 12px auto 22px; max-width: 560px; }

@media (max-width: 599px) {
    .db-v-staty { grid-template-columns: repeat(2, 1fr); }
    .db-v-radek,
    .db-v-aktivni .db-v-radek {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 2px 10px;
        padding: 8px 10px;
    }
    .db-v-radek .poradi { flex: 0 0 auto; }
    .db-v-radek .hrac { flex: 1 1 0; min-width: 0; }
    .db-v-radek .skore { flex: 0 0 auto; margin-left: auto; }
    .db-v-zlom { display: block; flex: 0 0 100%; height: 0; }
    .db-v-radek .spravne,
    .db-v-radek .chybne,
    .db-v-radek .her,
    .db-v-radek .cas,
    .db-v-radek .datum { text-align: left; font-size: .74rem; font-weight: 600; }
    .db-v-radek .spravne { margin-left: 34px; }
    .db-v-nejnovejsi .db-v-radek .spravne { margin-left: 0; }
    .db-v-aktivni .db-v-radek .her {
        order: 0;
        margin-left: auto;
        font-size: 1.05rem;
        font-weight: 800;
        text-align: right;
    }
    .db-v-aktivni .db-v-radek .her::after { content: none; }
    .db-v-aktivni .db-v-radek .skore { order: 1; margin-left: 34px; font-size: .74rem; font-weight: 600; }
    .db-v-aktivni .db-v-radek .spravne { order: 2; margin-left: 0; }
    .db-v-aktivni .db-v-radek .chybne { order: 3; }
    .db-v-aktivni .db-v-radek .cas { order: 4; }
    .db-v-radek span[data-popis]::after { content: " " attr(data-popis); color: var(--db-dim); font-weight: 400; }
    .db-v-radek .datum { margin-left: auto; }
    .db-v-radek .datum::before { content: "v "; color: var(--db-dim); }
    .db-v-tabulka { padding: 10px 8px 9px; border-radius: 16px; }
    .db-v-radek.db-v-hlavicka { display: none; }
}

.db-nasirku {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(24, 10, 60, .97);
    color: #fff;
    text-align: center;
}
.db-nasirku[hidden] { display: none; }
.db-nasirku svg { width: 64px; height: 64px; margin-bottom: 6px; animation: dbOtocTel 1.8s ease-in-out infinite; }
.db-nasirku strong { font-size: 1.35rem; font-weight: 800; }
.db-nasirku span { color: var(--db-dim); font-size: .86rem; }
@keyframes dbOtocTel { 0%, 25% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }


#db-limit { z-index: 1050; }
.db-limit-ikona { width: 130px; height: 130px; margin: -26px auto -20px; display: block; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
#db-limit h2 { color: #fff; }
#db-limit strong { color: #ffcb00; }
#db-clona { z-index: 1045; }

#db-duo-info { z-index: 1050; }
.db-duo-ikona { width: 64px; height: 64px; margin: -6px auto 10px; display: block; fill: none; stroke: #ffcb00; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 4px 14px rgba(255, 203, 0, .35)); }
#db-duo-info p { margin-bottom: 10px; }
#db-duo-info .db-tlacitka { margin-top: 18px; }

#db-napoveda { z-index: 1050; }
.db-box-np { max-width: 520px; margin: 6vh auto; text-align: left; }
.db-box-np h2 { text-align: center; }
.db-prepinac {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    margin: 0 auto 18px;
    max-width: 320px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
}
.db-prepinac::before {
    content: '';
    position: absolute;
    top: 4px; bottom: 4px; left: 4px;
    width: calc(50% - 4px);
    border-radius: 9px;
    background: linear-gradient(180deg, #8f74ff 0%, #5a36d6 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .25s cubic-bezier(.3, 1.2, .5, 1);
}
.db-prepinac[data-aktivni="duo"]::before { transform: translateX(100%); }
.db-prepinac button {
    position: relative;
    z-index: 1;
    padding: 9px 6px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, .5);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color .2s;
}
.db-prepinac button[aria-selected="true"] { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.db-prepinac button:focus:not(:focus-visible) { outline: none; }
.db-np[hidden] { display: none; }
.db-np { animation: dbNp .25s ease; }
@keyframes dbNp { from { opacity: 0; transform: translateY(6px); } }
.db-box-np .db-np-uvod { text-align: center; opacity: 1; margin-bottom: 16px; }
.db-np-bod { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.db-np-bod svg { flex: 0 0 26px; height: 26px; margin-top: 1px; fill: none; stroke: #ffcb00; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.db-np-bod h3 { margin: 0 0 3px; font-size: .95rem; font-weight: 800; }
.db-np-bod p { margin: 0; font-size: .86rem; line-height: 1.5; }
.db-box-np .db-tlacitka { margin-top: 16px; }

@media (max-width: 520px) {
    .db-box-np { width: auto; margin: 12px; padding: 22px 14px 18px; border-radius: 18px; }
    .db-np-bod { padding: 10px; gap: 10px; }
}

.db-text {
    max-width: 680px;
    margin: 42px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(14, 5, 40, .78);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .42);
    text-align: left;
    color: var(--db-dim);
}
.db-text summary {
    cursor: pointer;
    text-align: center;
    color: #ffcb00;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    list-style: none;
}
.db-text summary::marker { content: ""; }
.db-text summary::-webkit-details-marker { display: none; }
.db-text summary::before { content: "\25B8  "; }
.db-text[open] summary::before { content: "\25BE  "; }
.db-text summary:hover { color: #fff; }
.db-text h2 { font-size: 1.1rem; color: #eee; margin: 16px 0 8px; font-weight: 600; }
.db-text h3 { font-size: 1rem; color: #eee; margin: 18px 0 8px; font-weight: 600; }
.db-text p { font-size: .88rem; line-height: 1.6; margin: 0 0 10px; }
.db-text a { color: #c9bcff; }
.db-text-t { display: inline-block; margin-top: 8px; color: #fff; }
.db-text-t:hover { color: #fff; }
