/* =============================================================================
   kviz-style.css – statické styly stránky kviz/index.php
   Dynamické CSS proměnné (--bg, --fg, body background) jsou v inline <style>
   v PHP souboru, protože závisí na barvách kvízu z databáze.
   ============================================================================= */

section.main { background: transparent !important; }

/* ── Layout s reklamním sidebarem (skrytý pro VIP) ─────────────────────────── */
section.main.kv-has-ad {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.kv-main-wrap { flex: 1; min-width: 0; max-width: 860px; }
section.main:not(.kv-has-ad) .kv-main-wrap { margin: 0 auto; }
.kv-right-sidebar {
    width: 300px;
    flex-shrink: 0;
    padding-left: 20px;
    padding-top: 85px;
}
.kv-sidebar-sticky {
    position: sticky;
    top: 90px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.kv-sidebar-banner2 {
    display: flex;
    justify-content: center;
    width: 300px;
}
@media(max-width: 860px) {
    section.main.kv-has-ad { display: block; }
    .kv-right-sidebar { display: none; }
}

/* ── Centrální bílý list ────────────────────────────────────────────────────── */
.kv-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 85px 16px 56px 16px;
}
.kv-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 60px rgba(0,0,0,.45);
}

/* ── Mobil – bílý list na celou šířku ──────────────────────────────────────── */
@media(max-width: 576px) {
    .kv-page { padding: 60px 0px 40px 0px; }
    .kv-card { border-radius: 0; box-shadow: none; }
    .kv-card-head { padding: 18px 14px 10px; }
    .kv-card-body { padding: 0 10px 24px; }
}

/* ── Obrázek — nahoře, přirozený poměr 16:9 ────────────────────────────────── */
.kv-card-img-wrap { position: relative; }
.kv-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}
.kv-img-credit {
    position: absolute; bottom: 10px; right: 12px;
    background: rgba(0,0,0,.50); color: #fffc;
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
}

/* ── Hlavička (pod obrázkem) ────────────────────────────────────────────────── */
.kv-card-head {
    padding: 24px 28px 14px;
    background: #fff;
}
.kv-card-head .kv-kat-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px; gap: 8px;
}
.kv-card-head .kv-kat {
    display: inline-block; font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: #888;
}
.kv-card-head .kv-kat a { color: #888; text-decoration: none; }
.kv-card-head .kv-kat a:hover { color: #555; text-decoration: underline; }
.kv-card-head .kv-kat-sep { margin: 0 5px; color: #bbb; }
.kv-kat-badges { display: flex; gap: 5px; flex-shrink: 0; }
.kv-kat-badge {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: #999;
    background: #f4f4f4; border: 1px solid #ddd; border-radius: 5px;
    padding: 2px 8px; white-space: nowrap; pointer-events: none;
}
.kv-card-head h1 {
    font-size: clamp(1.4rem, 4vw, 2.1rem);
    font-weight: 800; color: #111; line-height: 1.2; margin: 0 0 10px;
}
.kv-card-head .kv-popis { font-size: 1rem; color: #555; margin: 0; }

/* ── Tělo karty ─────────────────────────────────────────────────────────────── */
.kv-card-body { padding: 0 24px 32px; }

/* ── Popis (perex) ──────────────────────────────────────────────────────────── */
.kv-popis       { font-size: 1rem;   color: #555; margin: 0; }
.kv-popis-perex { font-size: 1.1rem; color: #333; font-weight: 600; margin: 0; line-height: 1.55; }

/* ── Úvodní text ────────────────────────────────────────────────────────────── */
.kv-intro {
    border-radius: 10px;
    margin: 20px 0 22px;
    font-size: 1.05rem; line-height: 1.75; color: #333;
}
.kv-intro h2, .kv-intro h3 { color: #1a1a2e; margin: 14px 0 6px; }

/* ══════════════════════════════════════════════════════════════════════════════
   KVÍZ SHELL
══════════════════════════════════════════════════════════════════════════════ */
.kv-shell {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
    background: linear-gradient(to bottom,
        color-mix(in srgb, var(--bg) 80%, #000) 0%,
        color-mix(in srgb, var(--bg) 100%, #fff) 50%,
        color-mix(in srgb, var(--bg) 60%, #000) 100%
    );
    color: var(--fg);
    margin-bottom: 8px;
}

/* ── Overlay / START ────────────────────────────────────────────────────────── */
.kv-overlay {
    position: absolute; inset: 0; z-index: 20;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    transition: opacity .4s ease, visibility .4s ease;
}
.kv-overlay.kv-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.kv-overlay-box   { text-align: center; padding: 20px; }
.kv-overlay-title { font-size: 1.05rem; color: #ddd; margin-bottom: 6px; font-weight: 600; }
.kv-overlay-meta  { font-size: .88rem; color: #bbb; margin-bottom: 28px; }

.kv-start-btn {
    font-size: 1.3rem; font-weight: 700; letter-spacing: 2px;
    padding: 14px 42px; border: none; border-radius: 30px; cursor: pointer;
    background: linear-gradient(135deg, #f5a623, #e8552d); color: #fff;
    box-shadow: 0 10px 36px rgba(0,0,0,.52);
    transform: translateY(-3px);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: startPulse 2s ease-in-out infinite;
}
.kv-start-btn:hover {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    animation: none;
}
@keyframes startPulse {
    0%,100% { box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 0 rgba(245,166,35,.4); }
    50%     { box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 16px rgba(245,166,35,0); }
}

/* ── Core ───────────────────────────────────────────────────────────────────── */
.kv-core {
    position: relative;
    padding: 20px 20px 100px;
    transition: filter .4s ease;
    min-height: 460px;
    display: flex;
    flex-direction: column;
}
.kv-blurred { filter: blur(7px); pointer-events: none; user-select: none; }

/* ── Timer ──────────────────────────────────────────────────────────────────── */
#kv-timer-wrap { display: none; align-items: center; gap: 10px; margin-bottom: 16px; }
.kv-timer-track { flex: 1; height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 3px rgb(0 0 0 / 30%); }
#kv-timer-bar {
    height: 70%; width: 100%;
    background: linear-gradient(90deg, #f8215e, #73dc19);
    border-radius: 3px; margin-top: 1px; margin-bottom: 1px;
}
#kv-timer-secs { font-size: .85rem; font-weight: 700; min-width: 26px; text-align: right; }
.kv-timer-warn { background: linear-gradient(90deg,#f8215e,#f83521) !important;
    animation: timerPulse .35s infinite alternate; }
@keyframes timerPulse { from{opacity:1} to{opacity:.45} }

/* ── Question ───────────────────────────────────────────────────────────────── */
#kv-question {
    font-size: clamp(1rem, 3vw, 1.4rem); font-weight: 700; line-height: 1.5;
    margin-bottom: 18px; color: var(--fg); min-height: 3em;
    text-align: center;
}
#kv-question strong { font-weight: 900; font-size: 110%; opacity: 0.85; }
.kv-fadein { animation: kvFade .3s ease both; }
@keyframes kvFade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ── Options ────────────────────────────────────────────────────────────────── */
#kv-options { list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width:540px) { #kv-options { grid-template-columns: 1fr; } }

.kv-opt {
    width: 100%; padding: 12px 16px; text-align: left;
    font-size: clamp(.85rem,2vw,1rem); font-weight: 500;
    color: var(--fg); cursor: pointer;
    background: color-mix(in srgb, var(--bg) 58%, oklch(from var(--fg) calc(1 - l) c h) 42%);
    border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); border-radius: 10px;
    box-shadow: inset 0px 1px 0px rgba(255,255,255,0.56), 0 3px 8px rgba(0,0,0,.32), 0 2px 15px rgba(0,0,0,.18);
    transform: translateY(-2px);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.kv-opt:not(:disabled):hover {
    background: color-mix(in srgb, var(--bg) 44%, oklch(from var(--fg) calc(1 - l) c h) 56%);
    transform: translateY(0);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.2);
}
.kv-opt:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 5px rgba(0,0,0,.22);
}
.kv-opt.kv-correct {
    background: #a8e424 !important; color: #111 !important;
    border-color: #a8e424; font-weight: 700; transform: none;
    box-shadow: 0 0 18px rgba(168,228,36,.55); animation: optPop .25s ease;
}
.kv-opt.kv-wrong {
    background: #ff5e91 !important; color: #fff !important;
    border-color: #ff5e91; transform: none; animation: optShake .3s ease;
}
@keyframes optPop   { 0%,100%{transform:scale(1)} 50%{transform:scale(1.03)} }
@keyframes optShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* ── Note ───────────────────────────────────────────────────────────────────── */
#kv-note {
    display: none; margin-top: 10px; padding: 12px 5px;
    font-size: .95rem; line-height: 1.65; color: var(--fg);
    text-align: center;
    animation: kvFade .4s ease;
}
#kv-note strong { font-weight: 900; }

/* ── Spacer ─────────────────────────────────────────────────────────────────── */
.kv-spacer { display: none; }

/* ── Controls – absolutní, neovlivňují výšku kvízu ─────────────────────────── */
.kv-controls {
    position: absolute;
    bottom: 52px; left: 20px; right: 20px;
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.kv-btn {
    display: none; align-items: center; padding: 11px 28px; border: none;
    border-radius: 50px; font-size: .95rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.38);
    transform: translateY(-2px);
    transition: transform .18s, box-shadow .18s;
}
.kv-btn:hover { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.kv-btn:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
#kv-next        { background: linear-gradient(135deg,#667eea,#764ba2); color:#fff; }
#kv-show-result { background: linear-gradient(135deg,#f5a623,#e8552d); color:#fff; }

/* ── Progress – absolutní, vždy dole ────────────────────────────────────────── */
.kv-progress-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 20px 12px;
}
.kv-progress-track { flex: 1; height: 5px; background: rgba(255,255,255,.2); border-radius: 3px; overflow: hidden; box-shadow: inset 0 1px 3px rgb(0 0 0 / 30%); }
#kv-progress { height: 100%; width: 0%; background: linear-gradient(90deg,#a8e424,#00d4aa);
    border-radius: 3px; transition: width .4s ease; }
#kv-counter { font-size: .8rem; opacity: .7; white-space: nowrap; }

/* ── Result shell – fialový gradient ────────────────────────────────────────── */
.kv-shell.kv-result-mode {
    background: radial-gradient(ellipse at center,
        rgba(156,39,176,.65) 0%, #6a0dad 50%, #1a0040 100%) !important;
}

/* ── Result ─────────────────────────────────────────────────────────────────── */
#kv-result { display:none; text-align:center; padding:0 8px 8px; animation:kvFade .5s ease; }

.kv-res-main-label {
    font-size:.82rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
    color:rgba(255,255,255,.55); margin-bottom:10px;
}
.kv-res-main-val {
    font-size: clamp(4rem,18vw,7rem); font-weight:900; line-height:1;
    color:#ffd700;
    text-shadow: 0 0 50px rgba(255,215,0,.55), 0 2px 16px rgba(0,0,0,.6);
    margin-bottom:28px;
}
.kv-res-main-text { font-size:clamp(1.6rem,6vw,3rem); line-height:1.2; }

.kv-res-stats { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.kv-res-box { background:rgba(255,255,255,.10); border-radius:14px; padding:14px 18px; min-width:88px;
    box-shadow:inset 0 1px 1px rgba(255,255,255,.12),0 4px 14px rgba(0,0,0,.2); }
.kv-res-val { font-size:1.7rem; font-weight:900; color:#fff; line-height:1.1; }
.kv-res-val small { font-size:.9rem; }
.kv-res-lbl { font-size:.72rem; opacity:.6; margin-top:4px; color:#fff; }

.kv-res-trophy { text-align:center; margin-bottom:6px; }
.kv-res-trophy img {
    width:200px; height:200px;
    animation: trophyIn .7s cubic-bezier(.34,1.56,.64,1) both;
    filter: drop-shadow(0 0 24px rgba(255,233,114,0.53));
}
@keyframes trophyIn {
    from { opacity:0; transform:scale(.4) rotate(-12deg); }
    to   { opacity:1; transform:scale(1)  rotate(0deg);   }
}

.kv-res-global { margin-bottom:24px; padding:0 4px; }
.kv-res-loading { color:rgba(255,255,255,.35); font-size:.85rem; }
.kv-stat-divider { height:1px; background:rgba(255,255,255,.15); margin:4px 0 20px; }
.kv-stat-title {
    font-size:.78rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
    color:rgba(255,255,255,.45); margin-bottom:6px; text-align:center;
}
.kv-stat-hrano { font-size:.92rem; color:rgba(255,255,255,.7); margin-bottom:14px; text-align:center; }
.kv-stat-hrano strong { color:#fff; }
.kv-stat-rows {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px 10px;
    align-items: center;
    max-width: 380px; margin: 0 auto;
}
.kv-stat-name {
    max-width: 140px;
    font-size:.83rem; color:rgba(255,255,255,.72);
    text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.kv-stat-name.kv-stat-mine { color:#ffd700 !important; font-weight:700; }
.kv-stat-bar-outer { min-width: 40px; }
.kv-stat-bar {
    display:block; height:11px; border-radius:6px;
    min-width: 3px; max-width:100%;
    transition:width .8s cubic-bezier(.22,.61,.36,1);
}
.kv-stat-count { font-size:.78rem; color:rgba(255,255,255,.55); white-space:nowrap; text-align:right; }
.kv-stat-count.kv-stat-mine { color:#ffd700; font-weight:700; }

.kv-res-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:8px; }
.kv-btn-restart, .kv-btn-more {
    padding:11px 24px; border-radius:50px; font-size:.9rem; font-weight:600;
    cursor:pointer; transition:transform .18s, box-shadow .18s;
    box-shadow: 0 6px 18px rgba(0,0,0,.32);
    transform: translateY(-2px);
}
.kv-btn-restart { border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.13); color:#fff; }
.kv-btn-more    { border:none; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; }
.kv-btn-restart:hover, .kv-btn-more:hover { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.kv-btn-restart:active, .kv-btn-more:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(0,0,0,.18); }

#kv-res-msg { margin: 4px 0 0; }
.kv-res-dup {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0 auto 4px; padding: 13px 22px;
    background: linear-gradient(135deg, rgba(255,180,0,.18), rgba(255,120,0,.14));
    border: 1px solid rgba(255,180,0,.35); border-radius: 12px;
    font-size: .97rem; font-weight: 600; color: #ffd97d;
    animation: kvFade .4s ease;
}

/* ── Žebříček výsledků (pod bílou kartou, na gradientu) ─────────────────────── */
.kv-zeb-section {
    max-width: 860px; margin: 0 auto; padding: 6px 16px 48px;
    text-align: center;
}
.kv-zeb-trigger {
    display: inline-block; padding: 11px 36px;
    background: linear-gradient(135deg, #522CA9 0%, #8659EE 100%);
    border: 2px solid #7b2db5; border-radius: 10px;
    color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .08em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.kv-zeb-trigger:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    box-shadow: 0 10px 30px rgba(107,70,193,.6), 0 0 20px rgba(139,92,246,.4),
                inset 0 1px 0 rgba(255,255,255,.3);
    transform: translateY(-3px) scale(1.03);
}
.kv-zeb-trigger.kv-zeb-open { background: #6e23a8; border-color: #9b3dd5; }
.kv-zeb-panel { display: none; }
.kv-zeb-note {
    margin: 22px auto 14px; max-width: 520px;
    font-size: .80rem; color: var(--fg, rgba(255,255,255,.45));
    opacity: .65; line-height: 1.6; text-align: center;
}
.kv-zeb-top-btn {
    display: inline-block; padding: 11px 36px;
    background: linear-gradient(135deg, #522CA9 0%, #8659EE 100%);
    border: 2px solid #7b2db5; border-radius: 10px;
    color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .08em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 6px;
}
.kv-zeb-top-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    box-shadow: 0 10px 30px rgba(107,70,193,.6), 0 0 20px rgba(139,92,246,.4),
                inset 0 1px 0 rgba(255,255,255,.3);
    transform: translateY(-3px) scale(1.03);
    color: #fff; text-decoration: none;
}
.kv-zeb-toggle-wrap {
    display: flex; justify-content: center; gap: 0;
    padding: 16px 0 0;
}
.kv-zeb-tab {
    flex: 1; max-width: 240px; padding: 9px 12px;
    background: #3a1060; color: #ccc;
    border: 1px solid #6a3090; border-right: none;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .2s, color .2s;
}
.kv-zeb-tab:first-child { border-radius: 20px 0 0 20px; }
.kv-zeb-tab:last-child  { border-right: 1px solid #6a3090; border-radius: 0 20px 20px 0; }
.kv-zeb-tab.active      { background: #f0c840; border-color: #f0c840; color: #000; font-weight: 700; }
.kv-zeb-tab:hover:not(.active) { background: #4e1a80; color: #fff; }
.kv-zeb-content { padding: 14px 0 4px; }
.kv-zeb-view        { display: none; }
.kv-zeb-view.active { display: block; }
.kv-zeb-loading { text-align: center; padding: 28px; color: #ccc; font-size: .9rem; }
.kv-zeb-tbl {
    width: 85%; margin: 0 auto;
    border-collapse: collapse; font-size: 15px; color: #fff;
    box-shadow: 2px 2px 10px rgba(0,0,0,.6);
}
.kv-zeb-tbl th, .kv-zeb-tbl td { padding: 6px 5px; text-align: center; }
.kv-zeb-tbl th  { background-color: #4a2162; color: #f0c840; font-weight: 700; }
.kv-zeb-tbl td:nth-child(2) { text-align: left; padding-left: 8px; }
.kv-zeb-pct { font-weight: 700; color: #ffcb00; }
.kv-zeb-tbl tbody tr { background-color: #0d0520; }
.kv-zeb-tbl tbody tr:hover { background-color: #2a0850; }
.kv-zeb-tbl tbody tr.kv-zeb-me td { background-color: rgba(151,255,0,.88) !important; color: #000 !important; font-weight: 700; }
.kv-zeb-vip { color: #ffcb00; }
.kv-zeb-vip-icon { font-size: .75rem; vertical-align: middle; margin-left: 2px; }
.kv-zeb-empty { text-align: center; padding: 24px; color: #ccc; font-size: .9rem; }
@media(max-width: 599px) {
    .kv-zeb-tbl { width: 100%; font-size: .8em; }
    .kv-zeb-tbl th, .kv-zeb-tbl td { padding: .28em .2em; }
    .kv-zeb-tbl .kv-zeb-hide-sm { display: none; }
    .kv-zeb-tab { font-size: 13px; padding: 8px 5px; max-width: none; }
}
@media(min-width: 600px) and (max-width: 992px) {
    .kv-zeb-tbl { width: 100%; font-size: .9em; }
}

/* ── Registrační formulář v overlay ─────────────────────────────────────────── */
.kv-reg-title { font-size:1.15rem; font-weight:700; color:#fff; margin-bottom:4px; }
.kv-reg-sub   { font-size:.8rem; color:rgba(255,255,255,.58); margin-bottom:18px; }
.kv-reg-fields { display:flex; flex-direction:column; gap:9px; margin-bottom:14px; align-items:center; }
.kv-reg-input {
    padding:10px 16px; border-radius:10px;
    font-size:.95rem; background:rgba(255,255,255,.14); color:#fff;
    width:220px; max-width:90vw;
    border:1px solid rgba(255,255,255,.22); outline:none;
    transition:background .2s, border-color .2s;
}
.kv-reg-input::placeholder { color:rgba(255,255,255,.45); }
.kv-reg-input:focus { background:rgba(255,255,255,.22); border-color:rgba(255,255,255,.55); }
.kv-reg-random-label { font-size:.72rem; letter-spacing:.08em; text-transform:uppercase;
    color:rgba(255,255,255,.5); margin-bottom:7px; }
.kv-reg-random { display:flex; gap:10px; justify-content:center; margin-bottom:16px; }
.kv-reg-sex-btn {
    padding:5px 18px; border-radius:8px; border:none; cursor:pointer;
    font-size:1.15rem; font-weight:700; transition:transform .15s, box-shadow .15s;
    box-shadow:0 4px 12px rgba(0,0,0,.3);
}
.kv-reg-sex-btn:hover  { transform:scale(1.1); box-shadow:0 6px 18px rgba(0,0,0,.35); }
.kv-reg-sex-btn:active { transform:scale(.96); }
.kv-reg-sex-m { background:#43a047; color:#fff; }
.kv-reg-sex-f { background:#e91e8c; color:#fff; }
.kv-reg-submit {
    padding:11px 36px; border-radius:50px; border:none; cursor:pointer;
    font-size:1rem; font-weight:700; letter-spacing:.06em;
    background:linear-gradient(135deg,#f5a623,#e8552d); color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.45);
    transform:translateY(-2px);
    transition:transform .18s, box-shadow .18s, opacity .2s;
}
.kv-reg-submit:disabled {
    opacity:.38; cursor:not-allowed; transform:none; box-shadow:none;
    filter:grayscale(.4);
}
.kv-reg-submit:not(:disabled):hover  { transform:translateY(0); box-shadow:0 3px 10px rgba(0,0,0,.32); }
.kv-reg-submit:not(:disabled):active { transform:translateY(1px); box-shadow:0 1px 5px rgba(0,0,0,.25); }

/* ── VIP brána ──────────────────────────────────────────────────────────────── */
.kv-vip-gate { text-align: center; padding: 10px 0 4px; }
.kv-vip-gate-icon { font-size: 2.6rem; margin-bottom: 10px; }
.kv-vip-gate-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.kv-vip-gate-sub { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 22px; line-height: 1.45; }
.kv-vip-gate-btn {
    display: inline-block; text-decoration: none;
    padding: 12px 32px; border-radius: 50px;
    font-size: 1rem; font-weight: 700; letter-spacing: .05em;
    background: linear-gradient(135deg, #f0c840, #e8a000);
    color: #000; box-shadow: 0 8px 24px rgba(0,0,0,.45);
    transition: transform .18s, box-shadow .18s;
}
.kv-vip-gate-btn:hover {
    transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.5);
    text-decoration: none; color: #000;
}

/* ── Další kvízy z kategorie ────────────────────────────────────────────────── */
.kv-related { padding: 0 0 40px; }
.kv-related-title {
    font-size: 1.05rem; font-weight: 700; color: var(--fg, rgba(255,255,255,.80));
    margin-bottom: 16px; text-align: center;
}
.kv-related-title a {
    color: var(--fg, rgba(255,255,255,.75)); text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
    transition: color .15s, border-color .15s;
}
.kv-related-title a:hover { color: #fff; border-color: #fff; text-decoration: none; }
.kv-related-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media(max-width: 640px) { .kv-related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media(max-width: 380px) { .kv-related-grid { grid-template-columns: 1fr; } }
.kv-rel-card {
    display: flex; flex-direction: column;
    text-decoration: none; border-radius: 12px; overflow: hidden;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 18px rgba(0,0,0,.40);
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.kv-rel-card:hover {
    transform: translateY(-4px); text-decoration: none;
    box-shadow: 0 10px 32px rgba(0,0,0,.55);
    border-color: rgba(255,255,255,.28);
}
.kv-rel-img {
    width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative;
    flex-shrink: 0;
}
.kv-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kv-rel-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 1.8rem; font-weight: 800; color: rgba(255,255,255,.35);
}
.kv-rel-body {
    flex: 1;                        /* roztáhne se na celou zbývající výšku karty */
    padding: 9px 11px 11px;
    background: rgba(0,0,0,.55);    /* ztmavení pro čitelnost na světlém pozadí */
}
.kv-rel-nazev {
    font-size: .87rem; font-weight: 700; color: #fff; margin: 0;
    line-height: 1.35; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
