.viperra-quiz {
    --vq-pink: #ff2f7d;
    --vq-pink-2: #ff005c;
    --vq-dark: #08080a;
    --vq-card: #141419;
    --vq-card-2: #1b1b22;
    --vq-border: rgba(255, 255, 255, .10);
    --vq-text: #ffffff;
    --vq-muted: rgba(255, 255, 255, .72);
    color: var(--vq-text);
    margin: 28px 0;
    font-family: inherit;
}
.viperra-quiz * {
    box-sizing: border-box;
}
.vq-shell,
.vq-launch-shell {
    background: radial-gradient(circle at top left, rgba(255, 47, 125, .22), transparent 34%), linear-gradient(135deg, #08080a, #121217 55%, #050506);
    border: 1px solid var(--vq-border);
    border-radius: 22px;
    box-shadow: 0 22px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,47,125,.08);
    overflow: hidden;
    padding: clamp(20px, 4vw, 34px);
    position: relative;
}
.vq-shell:before,
.vq-launch-shell:before {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    bottom: 26px;
    width: 5px;
    border-radius: 0 8px 8px 0;
    background: var(--vq-pink);
    box-shadow: 0 0 18px rgba(255,47,125,.85);
}

.vq-launch-text {
    color: var(--vq-muted);
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 20px;
    max-width: 780px;
}
.vq-modal-lock {
    overflow: hidden !important;
}
.vq-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 30px);
}
.vq-modal.is-open {
    display: flex;
}
.vq-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(9px);
}
.vq-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    max-height: calc(100vh - 34px);
    overflow: auto;
    border-radius: 24px;
    box-shadow: 0 30px 120px rgba(0, 0, 0, .72);
}
.vq-modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(0,0,0,.48);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.vq-modal-close:hover {
    background: var(--vq-pink);
}
.vq-player-line {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin: -4px 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(255,47,125,.32);
    border-radius: 999px;
    background: rgba(255,47,125,.11);
    color: #fff;
    font-weight: 900;
}
.vq-player-card {
    display: grid;
    gap: 6px;
    width: fit-content;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,47,125,.34);
    background: rgba(255,47,125,.12);
}
.vq-player-card span {
    color: var(--vq-muted);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.vq-player-card strong {
    color: #fff;
    font-size: 22px;
}
.vq-nick-form {
    display: grid;
    gap: 12px;
    max-width: 520px;
}
.vq-nick-label {
    display: grid;
    gap: 8px;
    color: #fff;
    font-weight: 900;
}
.vq-nick-input {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.38);
    color: #fff;
    font: inherit;
    font-weight: 850;
    padding: 12px 14px;
    outline: none;
}
.vq-nick-input:focus {
    border-color: rgba(255,47,125,.92);
    box-shadow: 0 0 0 4px rgba(255,47,125,.16);
}
.vq-nick-help {
    color: var(--vq-muted);
    font-weight: 700;
}
.vq-nick-error {
    color: #fff;
    font-weight: 900;
    min-height: 24px;
}
.vq-nick-error:not(:empty) {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,47,125,.18);
    border: 1px solid rgba(255,47,125,.36);
}
.vq-button:disabled {
    opacity: .62;
    cursor: wait;
    transform: none;
}
.vq-save-status {
    color: var(--vq-muted);
    font-weight: 850;
    min-height: 26px;
}
.vq-leaderboard .vq-title {
    margin-bottom: 20px;
}
.vq-top-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    background: rgba(0,0,0,.22);
}
.vq-top-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    min-width: 560px;
}
.vq-top-table th,
.vq-top-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    text-align: left;
    font-weight: 850;
}
.vq-top-table th {
    color: var(--vq-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: rgba(255,255,255,.04);
}
.vq-top-table tbody tr:first-child td {
    background: rgba(255,47,125,.13);
}
.vq-top-table tbody tr:last-child td {
    border-bottom: 0;
}

.vq-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.vq-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--vq-pink), #c90049);
    box-shadow: 0 0 24px rgba(255,47,125,.38);
}
.vq-progress {
    color: var(--vq-muted);
    font-weight: 800;
}
.vq-title {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: -.04em;
}
.vq-intro {
    display: grid;
    gap: 18px;
}
.vq-intro p {
    color: var(--vq-muted);
    font-size: 18px;
    margin: 0;
}
.vq-button,
.vq-answer-button,
.vq-media-play,
.vq-next-button,
.vq-restart-button {
    border: 0;
    cursor: pointer;
    border-radius: 16px;
    font: inherit;
    font-weight: 900;
    line-height: 1;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.vq-button,
.vq-media-play,
.vq-next-button,
.vq-restart-button {
    color: #fff;
    background: linear-gradient(135deg, var(--vq-pink), #d3004e);
    padding: 12px 22px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-shadow: 0 14px 34px rgba(255,47,125,.28);
    width: fit-content;
}
.vq-button:hover,
.vq-media-play:hover,
.vq-next-button:hover,
.vq-restart-button:hover,
.vq-answer-button:hover {
    transform: translateY(-2px);
}
.vq-question-layout {
    display: grid;
    gap: 20px;
}
.vq-question-headline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
}
.vq-question-text {
    margin: 0;
    color: #fff;
    font-weight: 950;
    font-size: clamp(23px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.vq-timer {
    position: relative;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--vq-pink) var(--vq-angle, 360deg), rgba(255,255,255,.10) 0deg);
    filter: drop-shadow(0 0 18px rgba(255,47,125,.38));
}
.vq-timer:before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #101015;
    border: 1px solid rgba(255,255,255,.08);
}
.vq-timer span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    line-height: 1;
}
.vq-timer strong {
    font-size: 32px;
    font-weight: 1000;
}
.vq-timer small {
    color: var(--vq-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 900;
}
.vq-timer.is-warn {
    animation: vqPulse .72s ease-in-out infinite alternate;
}
.vq-timer.is-hidden {
    visibility: hidden;
}
@keyframes vqPulse {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
.vq-media-box {
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(0,0,0,.38);
    border-radius: 18px;
    overflow: hidden;
    min-height: 104px;
    display: grid;
    place-items: center;
    position: relative;
}
.vq-media-box video,
.vq-media-box audio,
.vq-media-box img {
    width: 100%;
    max-height: 430px;
    display: block;
}
.vq-image-wrap {
    width: 100%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(255,47,125,.10), transparent 58%), #07070a;
}
.vq-image-wrap img {
    height: auto;
    object-fit: contain;
}

.vq-audio-hidden,
.vq-video-hidden {
    width: 1px !important;
    height: 1px !important;
    opacity: .01;
    pointer-events: none;
    position: absolute;
}
.vq-media-cover {
    width: 100%;
    min-height: 132px;
    display: grid;
    place-items: center;
    padding: 22px;
    background: radial-gradient(circle at center, rgba(255,47,125,.20), transparent 55%), #07070a;
}
.vq-media-note {
    color: var(--vq-muted);
    text-align: center;
    margin-top: 10px;
    font-weight: 700;
}
.vq-youtube-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 240px;
}
.vq-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
    min-height: 148px;
}
.vq-answer-button {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px;
    color: #fff;
    text-align: left;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,47,125,.035);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    pointer-events: none;
}
.vq-answer-button.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.vq-answer-button.is-locked {
    pointer-events: none;
}
.vq-answer-letter {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--vq-pink);
    color: #fff;
    font-weight: 1000;
    box-shadow: 0 0 18px rgba(255,47,125,.45);
}
.vq-answer-text {
    font-size: 17px;
    font-weight: 850;
    line-height: 1.18;
}
.vq-answer-button.is-correct {
    border-color: rgba(37, 211, 102, .75);
    background: linear-gradient(135deg, rgba(37, 211, 102, .24), rgba(255,255,255,.04));
}
.vq-answer-button.is-wrong {
    border-color: rgba(255, 47, 125, .95);
    background: linear-gradient(135deg, rgba(255, 47, 125, .22), rgba(255,255,255,.04));
}
.vq-feedback {
    min-height: 28px;
    color: var(--vq-muted);
    font-weight: 850;
}
.vq-feedback strong {
    color: #fff;
}
.vq-result {
    display: grid;
    gap: 14px;
}
.vq-score {
    display: inline-flex;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,47,125,.14);
    border: 1px solid rgba(255,47,125,.35);
    color: #fff;
    font-weight: 950;
}
.vq-result h3 {
    margin: 0;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1;
    color: #fff;
    letter-spacing: -.05em;
    text-transform: uppercase;
}
.vq-result p {
    margin: 0;
    color: var(--vq-muted);
    font-size: 18px;
    font-weight: 700;
}
.viperra-quiz-error {
    background: #1b1b22;
    border-left: 4px solid #ff2f7d;
    color: #fff;
    padding: 14px 16px;
    border-radius: 10px;
}
@media (max-width: 720px) {
    .vq-question-headline {
        grid-template-columns: 1fr;
    }
    .vq-timer {
        width: 82px;
        height: 82px;
    }
    .vq-answers {
        grid-template-columns: 1fr;
    }
}


/* Leaderboard inside Tabs: keep the Viperra dark/pink atmosphere, but do not render another card. */
.viperra-quiz.vq-leaderboard {
    margin: 0;
}
.vq-leaderboard .vq-launch-shell {
    background: radial-gradient(circle at top left, rgba(255, 47, 125, .22), transparent 34%), linear-gradient(135deg, #08080a, #121217 55%, #050506);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(18px, 3vw, 28px);
}
.vq-leaderboard .vq-launch-shell:before {
    display: none;
}
.vq-leaderboard .vq-topline {
    margin-bottom: 18px;
}
.vq-leaderboard .vq-badge {
    min-height: 26px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
}
.vq-leaderboard .vq-progress {
    font-size: 14px;
    font-weight: 500;
}
.vq-leaderboard .vq-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: -.03em;
    margin-bottom: 18px;
}
.vq-leaderboard .vq-top-table-wrap {
    border-radius: 14px;
}
.vq-leaderboard .vq-top-table {
    font-size: 14px;
}
.vq-leaderboard .vq-top-table th,
.vq-leaderboard .vq-top-table td {
    padding: 11px 12px;
    font-weight: 500;
}
.vq-leaderboard .vq-top-table th {
    font-size: 11px;
    font-weight: 600;
}
.vq-leaderboard .vq-top-table tbody tr:first-child td {
    background: rgba(255,47,125,.10);
}

/* Přepínací seznam kvízových žebříčků. */
.vq-leaderboard-list .vq-title {
    margin-bottom: 16px;
}
.vq-quiz-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
}
.vq-quiz-pill {
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.78);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 14px;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.vq-quiz-pill:hover {
    border-color: rgba(255,47,125,.45);
    color: #fff;
    transform: translateY(-1px);
}
.vq-quiz-pill.is-active {
    border-color: rgba(255,47,125,.72);
    background: linear-gradient(135deg, var(--vq-pink), #d3004e);
    color: #fff;
    box-shadow: 0 12px 28px rgba(255,47,125,.22);
}
.vq-top-panel {
    display: none;
}
.vq-top-panel.is-active {
    display: block;
}
.vq-top-panel-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}
@media (max-width: 720px) {
    .vq-quiz-pills {
        gap: 8px;
    }
    .vq-quiz-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 11px 14px;
    }
}

/* Závěrečný přehled odpovědí */
.vq-answer-button.is-selected {
    border-color: rgba(255,255,255,.24);
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
}
.vq-review {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
}
.vq-review-title {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.1;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.vq-review-list {
    display: grid;
    gap: 10px;
}
.vq-review-item {
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(0,0,0,.28);
    padding: 13px 14px;
    display: grid;
    gap: 9px;
}
.vq-review-item.is-wrong {
    border-color: rgba(255,47,125,.38);
    background: linear-gradient(135deg, rgba(255,47,125,.11), rgba(0,0,0,.26));
}
.vq-review-item.is-correct {
    border-color: rgba(37,211,102,.30);
    background: linear-gradient(135deg, rgba(37,211,102,.09), rgba(0,0,0,.25));
}
.vq-review-question {
    color: #fff;
    font-weight: 850;
    line-height: 1.25;
}
.vq-review-line {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--vq-muted);
    font-weight: 700;
    line-height: 1.25;
}
.vq-review-line span {
    color: rgba(255,255,255,.56);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.vq-review-line strong {
    color: #fff;
    font-weight: 850;
}
.vq-review-empty {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(37,211,102,.28);
    background: rgba(37,211,102,.08);
}
@media (max-width: 720px) {
    .vq-review-line {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Svislý adresář kvízových žebříčků s postupným načítáním názvů. */
.vq-leaderboard-directory .vq-title {
    margin-bottom: 12px;
}
.vq-directory-list {
    width: 100%;
    margin: 0 0 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.vq-directory-item {
    appearance: none;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,.82);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    transition: color .18s ease, background .18s ease, padding .18s ease;
}
.vq-directory-item:hover {
    padding-left: 10px;
    padding-right: 10px;
    background: rgba(255,255,255,.035);
    color: #fff;
}
.vq-directory-item.is-active {
    padding-left: 10px;
    padding-right: 10px;
    background: linear-gradient(90deg, rgba(255,47,125,.14), transparent 72%);
    color: #fff;
}
.vq-directory-item-all {
    font-weight: 800;
}
.vq-directory-item:focus-visible,
.vq-directory-more:focus-visible {
    outline: 2px solid var(--vq-pink);
    outline-offset: 3px;
}
.vq-directory-arrow {
    flex: 0 0 auto;
    color: rgba(255,255,255,.36);
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    transform: translateX(0);
    transition: color .18s ease, transform .18s ease;
}
.vq-directory-item:hover .vq-directory-arrow,
.vq-directory-item.is-active .vq-directory-arrow {
    color: var(--vq-pink);
    transform: translateX(3px);
}
.vq-directory-more {
    appearance: none;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 2px 0 28px;
    padding: 10px 17px;
    border: 1px solid rgba(255,47,125,.50);
    border-radius: 999px;
    background: rgba(255,47,125,.10);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.vq-directory-more:hover {
    border-color: var(--vq-pink);
    background: rgba(255,47,125,.20);
    transform: translateY(-1px);
}
.vq-directory-panels {
    margin-top: 6px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.vq-directory-item[hidden],
.vq-directory-more[hidden],
.vq-directory-panels .vq-top-panel[hidden] {
    display: none !important;
}
@media (max-width: 720px) {
    .vq-directory-item {
        min-height: 50px;
        padding-top: 13px;
        padding-bottom: 13px;
        font-size: 11px;
    }
    .vq-directory-more {
        width: 100%;
    }
}
