/* ========================================================================
   Program Builder — Frontend
   ======================================================================== */

.pb-front {
    padding: 40px 0 60px;
    background: #f7f8fa;
    min-height: 100vh;
}

.pb-front-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pb-front-no-video {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    background: #1a2637;
    color: #8295a6;
    font-size: 15px;
    border-radius: 12px;
}


/* ---- Hero ---- */
.pb-front-hero {
    display: flex;
    align-items: stretch;
    gap: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 36px;
}

.pb-front-hero-image {
    flex: 0 0 340px;
    max-width: 340px;
    overflow: hidden;
}

.pb-front-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.pb-front-hero-body {
    flex: 1;
    padding: 36px 36px 36px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pb-front-badge {
    display: inline-block;
    background: #1a73b5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    width: fit-content;
}

.pb-front-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2637;
    margin: 0 0 12px;
    line-height: 1.3;
}

.pb-front-short {
    font-size: 15px;
    color: #4a5a6d;
    line-height: 1.6;
    margin: 0 0 12px;
}

.pb-front-topic {
    font-size: 13px;
    color: #6b7d8f;
}

.pb-front-topic i {
    margin-right: 4px;
    color: #1a73b5;
}

/* ---- Main layout ---- */
.pb-front-main {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    margin-bottom: 36px;
}

/* ---- Video column ---- */
.pb-front-video-col {
    min-width: 0;
}

.pb-front-player-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.pb-front-player-wrap .video-player {
    width: 100%;
}

.pb-front-player-wrap video {
    width: 100%;
    display: block;
}

.pb-front-player-wrap audio {
    width: 100%;
    margin-top: 12px;
}

.pb-front-poster-fallback {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.pb-front-encode-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, .65);
    border-radius: 999px;
    pointer-events: none;
}

/* Above .vp-skeleton (z-index: 30) while video loads */
.video-player-skeleton .pb-front-encode-badge {
    z-index: 40;
}

.pb-front-encode-badge i {
    animation: pb-front-encode-spin 1.2s linear infinite;
}

.pb-front-encode-badge.is-done {
    background: rgba(0, 138, 32, .85);
}

.pb-front-encode-badge.is-done i {
    animation: none;
}

.pb-front-encode-badge.is-error {
    background: rgba(180, 35, 24, .85);
}

@keyframes pb-front-encode-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pb-front-now-playing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.pb-front-np-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8295a6;
    white-space: nowrap;
}

.pb-front-np-title {
    font-size: 15px;
    color: #1a2637;
}

.pb-front-event-toast {
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    animation: pbToastIn .35s ease;
}

.pb-front-event-toast[hidden] {
    display: none;
}

.pb-front-event-toast.pb-toast-quiz {
    background: #e8f0fe;
    color: #174ea6;
    border: 1px solid #aecbfa;
}

.pb-front-event-toast.pb-toast-game {
    background: #e6f4ea;
    color: #137333;
    border: 1px solid #a8dab5;
}

.pb-front-event-toast.pb-toast-info {
    background: #fef7e0;
    color: #7a5d00;
    border: 1px solid #fdd663;
}

.pb-front-event-toast.pb-toast-bewertung {
    background: #fce8e6;
    color: #a50e0e;
    border: 1px solid #f5a6a6;
}

@keyframes pbToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Chapters sidebar ---- */
.pb-front-chapters-col {
    min-width: 0;
}

.pb-front-chapters-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a2637;
    margin: 0 0 16px;
}

.pb-front-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pb-front-chapter {
    background: #fff;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 1px 6px rgba(0,0,0,.05);
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}

.pb-front-chapter:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.1);
}

.pb-front-chapter.is-active {
    /*border-color: #1a73b5;*/
    box-shadow: 0 2px 14px rgba(26,115,181,.18);
}

.pb-front-chapter.is-completed {
    background: #f1fbf4;
    border-color: #a9d9b8;
}

.pb-front-chapter.is-completed .pb-front-chapter-num {
    background: #3c9b5f;
    color: #fff;
}

.pb-front-chapter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px 10px 0 0;
}

.pb-front-chapter-num {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a73b5;
    font-weight: 700;
    font-size: 14px;
}

.pb-front-chapter.is-active .pb-front-chapter-num {
    background: #1a73b5;
    color: #fff;
}

.pb-front-chapter-info {
    flex: 1;
    min-width: 0;
}

.pb-front-chapter-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2637;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-front-chapter-short {
    display: block;
    font-size: 12px;
    color: #6b7d8f;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-front-chapter-toggle {
    flex: 0 0 auto;
    font-size: 16px;
    color: #8295a6;
    transition: transform .25s;
}

.pb-front-chapter.is-active .pb-front-chapter-toggle {
    transform: rotate(180deg);
}

/* Items */
.pb-front-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    border-top: 1px solid #edf1f5;
}

.pb-front-chapter.is-active .pb-front-items {
    max-height: 600px;
}

.pb-front-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 58px;
    cursor: pointer;
    transition: background .15s;
    position: relative;
}

.pb-front-kind-accent {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: #c8d6e2;
}
.pb-front-item[data-kind="item"]      .pb-front-kind-accent { background: #fec72d; }
.pb-front-item[data-kind="video"]     .pb-front-kind-accent { background: #1d8dbe; }
.pb-front-item[data-kind="audio"]     .pb-front-kind-accent { background: #f08030; }
.pb-front-item[data-kind="quiz"]      .pb-front-kind-accent { background: #20b4a4; }
.pb-front-item[data-kind="game"]      .pb-front-kind-accent { background: #8b5cf6; }
.pb-front-item[data-kind="text"]      .pb-front-kind-accent { background: #16a34a; }
.pb-front-item[data-kind="pdf"]       .pb-front-kind-accent { background: #dc2626; }
.pb-front-item[data-kind="info"]      .pb-front-kind-accent { background: #5a9bcd; }
.pb-front-item[data-kind="bewertung"] .pb-front-kind-accent { background: #f59e0b; }

.pb-front-item:hover {
    background: #f4f7fa;
}

.pb-front-item.is-completed {
    background: #e8f7ec;
}

.pb-front-item.is-completed:hover {
    background: #ddf2e3;
}

.pb-front-item.is-completed .pb-front-kind-accent {
    background: #3c9b5f;
}

.pb-front-completion-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pb-front-chapter-completion-toggle {
    margin-right: -4px;
}

.pb-front-completion-toggle.is-locked {
    cursor: not-allowed;
}

.pb-front-completion-toggle.is-locked .pb-front-completion-control {
    border-style: dashed;
    border-color: #eab308;
}

.pb-front-chapter-completion-toggle[data-lock-tip] {
    position: relative;
    z-index: 1;
}

.pb-front-chapter-completion-toggle[data-lock-tip]:hover,
.pb-front-chapter-completion-toggle[data-lock-tip]:focus-within {
    z-index: 60;
}

.pb-front-chapter-completion-toggle[data-lock-tip]::after,
.pb-front-chapter-completion-toggle[data-lock-tip]::before {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    pointer-events: none;
    z-index: 9999;
}

.pb-front-chapter-completion-toggle[data-lock-tip]::after {
    content: attr(data-lock-tip);
    width: max-content;
    max-width: 240px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #eab308;
    box-shadow: 0 10px 24px rgba(66, 32, 6, 0.28);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.pb-front-chapter-completion-toggle[data-lock-tip]::before {
    bottom: calc(100% + 4px);
    width: 0;
    height: 0;
    border-top: 6px solid #eab308;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: "";
}

.pb-front-chapter-completion-toggle[data-lock-tip]:hover::after,
.pb-front-chapter-completion-toggle[data-lock-tip]:hover::before,
.pb-front-chapter-completion-toggle[data-lock-tip]:focus-within::after,
.pb-front-chapter-completion-toggle[data-lock-tip]:focus-within::before {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.pb-front-item-completion-toggle {
    margin-left: 2px;
}

.pb-front-completion-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.pb-front-completion-control {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #9dafbd;
    border-radius: 7px;
    background: #fff;
    color: transparent;
    box-shadow: 0 1px 3px rgba(26, 38, 55, .12);
    transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}

.pb-front-completion-toggle:hover .pb-front-completion-control {
    border-color: #3c9b5f;
    box-shadow: 0 0 0 3px rgba(60, 155, 95, .12);
}

.pb-front-completion-toggle input:focus-visible + .pb-front-completion-control {
    outline: 3px solid rgba(26, 115, 181, .25);
    outline-offset: 2px;
}

.pb-front-completion-toggle input:checked + .pb-front-completion-control {
    background: #3c9b5f;
    border-color: #3c9b5f;
    color: #fff;
    transform: scale(1.04);
}

.pb-front-completion-toggle input:disabled + .pb-front-completion-control {
    cursor: wait;
    opacity: .6;
}

.pb-front-event-toast.pb-toast-completed {
    background: #e8f7ec;
    color: #206b3b;
    border: 1px solid #a9d9b8;
}

.pb-front-event-toast.pb-toast-error {
    background: #fce8e6;
    color: #a50e0e;
    border: 1px solid #f5a6a6;
}

.pb-front-item-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.pb-front-kind-quiz .bi    { color: #174ea6; }
.pb-front-kind-game .bi    { color: #137333; }
.pb-front-kind-info .bi    { color: #e6a817; }
.pb-front-kind-bewertung .bi { color: #a50e0e; }
.pb-front-kind-item .bi    { color: #8295a6; }

.pb-front-item-title {
    flex: 1;
    font-size: 13px;
    color: #30485f;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pb-front-item-minute {
    font-size: 12px;
    font-family: monospace;
    color: #6b7d8f;
    background: #f0f3f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.pb-front-item-kind-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #1a73b5;
}

.pb-front-item[data-kind="item"]      .pb-front-item-kind-badge { background: #fff4d1; color: #9a6900; }
.pb-front-item[data-kind="video"]     .pb-front-item-kind-badge { background: #dceef7; color: #0d5b80; }
.pb-front-item[data-kind="audio"]     .pb-front-item-kind-badge { background: #fdecd8; color: #a04010; }
.pb-front-item[data-kind="quiz"]      .pb-front-item-kind-badge { background: #d3f5f0; color: #0e6b60; }
.pb-front-item[data-kind="game"]      .pb-front-item-kind-badge { background: #ede9fe; color: #5b21b6; }
.pb-front-item[data-kind="text"]      .pb-front-item-kind-badge { background: #dcfce7; color: #15803d; }
.pb-front-item[data-kind="pdf"]       .pb-front-item-kind-badge { background: #fee2e2; color: #991b1b; }
.pb-front-item[data-kind="info"]      .pb-front-item-kind-badge { background: #dbeafe; color: #1d4ed8; }
.pb-front-item[data-kind="bewertung"] .pb-front-item-kind-badge { background: #fef3c7; color: #92400e; }

/* ---- Timeline section ---- */
.pb-front-timeline-section {
    margin-bottom: 36px;
}

.pb-front-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2637;
    margin: 0 0 16px;
}

.pb-front-timeline-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b8d4ea #f0f4f8;
    padding-bottom: 4px;
}

.pb-front-timeline-scroll::-webkit-scrollbar {
    height: 6px;
}

.pb-front-timeline-scroll::-webkit-scrollbar-track {
    background: #f0f4f8;
    border-radius: 3px;
}

.pb-front-timeline-scroll::-webkit-scrollbar-thumb {
    background: #b8d4ea;
    border-radius: 3px;
}

.pb-front-timeline {
    position: relative;
    height: 180px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.pb-front-timeline-track {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: #d1dde8;
    border-radius: 999px;
}

.pb-front-timeline-points {
    position: absolute;
    inset: 0 24px;
}

.pb-front-tl-point {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    width: 120px;
}

.pb-front-tl-connector {
    display: block;
    width: 2px;
    margin: 0 auto;
}

.pb-front-tl-dot {
    width: 14px;
    height: 14px;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
    z-index: 2;
}

.pb-front-tl-label {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    margin: 0 auto;
}

/* chapters — above the track */
.pb-front-tl-chapter {
    bottom: 50%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.pb-front-tl-chapter .pb-front-tl-connector {
    height: 28px;
    background: #1a73b5;
}

.pb-front-tl-chapter .pb-front-tl-dot {
    background: #1a73b5;
    box-shadow: 0 0 0 3px rgba(26,115,181,.25);
}

.pb-front-tl-chapter .pb-front-tl-label {
    color: #1a2637;
    font-weight: 600;
    margin-bottom: 6px;
}

/* items — below the track */
.pb-front-tl-item {
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pb-front-tl-item .pb-front-tl-connector {
    height: 28px;
    background: #e6a817;
}

.pb-front-tl-item .pb-front-tl-dot {
    background: #e6a817;
    box-shadow: 0 0 0 3px rgba(230,168,23,.25);
}

.pb-front-tl-item .pb-front-tl-label {
    color: #7a5d00;
    font-weight: 500;
    margin-top: 6px;
}

/* ---- Description section ---- */
.pb-front-description-section {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 36px;
}

.pb-front-description-body {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.pb-front-description-body p {
    margin: 0 0 1em;
}

.pb-front-description-body p:last-child {
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .pb-front-main {
        grid-template-columns: 1fr;
    }
    .pb-front-chapters-col {
        order: 2;
    }
}

@media (max-width: 768px) {
    .pb-front-hero {
        flex-direction: column;
    }
    .pb-front-hero-image {
        flex: 0 0 auto;
        max-width: 100%;
        max-height: 220px;
    }
    .pb-front-hero-body {
        padding: 24px;
    }
    .pb-front-title {
        font-size: 22px;
    }
    .pb-front-description-section {
        padding: 20px;
    }
    .pb-front-item {
        padding-left: 44px;
    }
}

/* ---- Chapter detail (under player) ---- */
.pb-front-chapter-detail {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.pb-front-chapter-detail-image {
    margin-bottom: 0.75rem;
}

.pb-front-chapter-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.pb-front-chapter-detail-body {
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}

/* ---- Stage (no video) ---- */
.pb-front-stage {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    min-height: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.pb-front-stage-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.pb-front-pdf-frame {
    width: 100%;
    min-height: 360px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 0.75rem 0;
}

.pb-front-stage-slider {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr auto;
    gap: 0.5rem;
    align-items: start;
}

.pb-front-stage-slides {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 180px;
}

@media (min-width: 600px) {
    .pb-front-stage-slider .pb-front-stage-slides {
        grid-column: 2;
        grid-row: 1;
    }
    .pb-front-stage-slider .pb-front-stage-prev {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }
    .pb-front-stage-slider .pb-front-stage-next {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
    }
    .pb-front-stage-slider .pb-front-stage-dots {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.pb-front-stage-slide.is-hidden {
    display: none;
}

.pb-front-stage-nav {
    border: 1px solid #ccd0d4;
    background: #f6f7f7;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.pb-front-stage-nav:hover {
    background: #fff;
}

.pb-front-stage-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.pb-front-stage-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid #ccd0d4;
    background: #fff;
    cursor: pointer;
    font-size: 0.75rem;
}

.pb-front-stage-dot.is-active {
    background: #e6a817;
    border-color: #c4920f;
    color: #fff;
}

.pb-front-empty-stage {
    padding: 2rem;
    text-align: center;
    color: #666;
    background: #f6f7f7;
    border-radius: 12px;
}

/* In-player game cue overlay */
.wt-game-cue-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.wt-game-cue-overlay[hidden] {
    display: none !important;
}

.wt-game-cue-overlay__panel {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 24px;
    box-sizing: border-box;
    background: rgba(11, 33, 51, 0.87);
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(9.7px);
    -webkit-backdrop-filter: blur(9.7px);
    border: 1px solid rgba(11, 33, 51, 0.3);
    color: #fff;
    text-align: center;
}

.wt-game-cue-overlay__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-size: 1.25rem;
}

.wt-game-cue-overlay__close:hover {
    background: rgba(254, 199, 45, 0.9);
    color: #0b2133;
}

.wt-game-cue-overlay__body {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 0;
    overflow: hidden;
}

.wt-game-cue-overlay__loading,
.wt-game-cue-overlay__error {
    margin: 0;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.pb-front-game-attempts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f0f3f6;
    color: #30485f;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.pb-front-game-attempts i {
    font-size: 13px;
    transform: scaleX(-1);
}

.pb-front-game-attempts.is-empty {
    opacity: 0.55;
}

@property --p {
    syntax: "<integer>";
    inherits: true;
    initial-value: 0;
}

.pb-front-finish[hidden] {
    display: none !important;
}

.pb-front-finish {
    --p: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 12px 12px 14px;
    background: var(--wt-shop-white, #fff);
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.pb-front-finish-kicker {
    margin: 0;
    color: var(--wt-shop-gray, #737373);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pb-front-finish-ring {
    --n: 1;
    --f: 0;
    display: grid;
    place-self: center;
    color: var(--wt-shop-primary, #091057);
    transition: --p 0.6s steps(100);
}

.pb-front-finish-ring::before,
.pb-front-finish-ring::after {
    grid-row: 1;
    grid-column: 1;
    place-self: center;
}

.pb-front-finish-ring::before {
    box-sizing: border-box;
    width: 5.34em;
    height: 5.34em;
    border-radius: 50%;
    background: conic-gradient(currentcolor 0% calc(var(--p) * 1%), rgba(9, 16, 87, 0.14) 0%);
    mask: radial-gradient(closest-side, transparent 0 66%, #000 66.5%);
    content: "";
}

.pb-front-finish-ring::after {
    place-self: center;
    counter-reset: p var(--p);
    font: 1.25em consolas, monaco, ubuntu mono, monospace;
    color: var(--wt-shop-black, #111);
    content: counter(p) "%";
}

.pb-front-finish-pct-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.pb-front-finish-complete {
    color: var(--wt-shop-gray, #737373);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pb-front-finish-open {
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--wt-shop-primary, #091057);
    color: var(--wt-shop-white, #fff);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.pb-front-finish-open:hover {
    background: var(--wt-shop-primary-hover, #1326A1);
}

.pb-front-finish-stats {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid var(--wt-shop-primary, #091057);
    border-radius: 10px;
    background: transparent;
    color: var(--wt-shop-primary, #091057);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.pb-front-finish-stats:hover {
    background: var(--wt-shop-primary, #091057);
    color: var(--wt-shop-white, #fff);
}

.pb-front-finish-stats-note {
    margin: 0;
    color: var(--wt-shop-gray, #737373);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.pb-front-finish-modal[hidden] {
    display: none !important;
}

.pb-front-finish-modal {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pb-front-finish-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 33, 51, 0.62);
}

.pb-front-finish-modal__dialog {
    position: relative;
    width: min(480px, 96vw);
    max-height: 90vh;
    overflow: auto;
    padding: 28px 26px 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(11, 33, 51, 0.28);
}

.pb-front-finish-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f0f3f6;
    color: #0b2133;
    font-size: 24px;
    line-height: 34px;
    cursor: pointer;
}

.pb-front-finish-modal__eyebrow {
    margin: 0 0 6px;
    color: #1a73b5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pb-front-finish-modal__dialog h2 {
    margin: 0 0 8px;
    color: #0b2133;
    font-size: 1.55rem;
    line-height: 1.2;
}

.pb-front-finish-modal__lead,
.pb-front-finish-modal__course {
    margin: 0 0 8px;
    color: #4a5a6d;
    font-size: 14px;
    line-height: 1.5;
}

.pb-front-finish-modal__course {
    font-weight: 700;
    color: #0b2133;
}

.pb-front-finish-modal__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.pb-front-finish-modal__stats li {
    padding: 10px 8px;
    border-radius: 10px;
    background: #f7f9fc;
    text-align: center;
}

.pb-front-finish-modal__stats strong {
    display: block;
    color: #0b2133;
    font-size: 1.05rem;
}

.pb-front-finish-modal__stats span {
    display: block;
    margin-top: 2px;
    color: #8295a6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pb-front-finish-modal__cert {
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 12px;
    background: #f1fbf4;
    border: 1px solid #a9d9b8;
}

.pb-front-finish-modal__cert.is-pending {
    background: #fef7e0;
    border-color: #fdd663;
}

.pb-front-finish-modal__cert-k {
    display: block;
    color: #6b7d8f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pb-front-finish-modal__cert-label {
    display: block;
    margin-top: 4px;
    color: #0b2133;
    font-weight: 800;
}

.pb-front-finish-modal__cert-copy {
    margin: 8px 0 0;
    color: #4a5a6d;
    font-size: 13px;
}

.pb-front-finish-modal__download,
.pb-front-finish-modal__account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.pb-front-finish-modal__account:hover {
    color: #ffffff;
    background: #474747;
}

.pb-front-finish-modal__download[hidden] {
    display: none !important;
}

.pb-front-finish-modal__download {
    background: #fec72d;
    color: #0b2133;
}

.pb-front-finish-modal__account {
    background: #0b2133;
    color: #fff;
}

body.pb-front-finish-open {
    overflow: hidden;
}

.video-player.has-wt-game-cue .video-player-controls,
.video-player.has-wt-game-cue .video-player-play-overlay {
    pointer-events: none;
    opacity: 0.35;
}

.video-player-fullscreen .wt-game-cue-overlay,
.video-player:fullscreen .wt-game-cue-overlay,
.video-player:-webkit-full-screen .wt-game-cue-overlay {
    z-index: 100;
}
