:root {
    --bpp-bg: #081225;
    --bpp-panel: #111d34;
    --bpp-panel-soft: #172641;
    --bpp-text: #f7f9fc;
    --bpp-muted: #b7c1d5;
    --bpp-accent: #ffd447;
    --bpp-accent-strong: #f7bd00;
    --bpp-danger: #ff6b6b;
    --bpp-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bpp-bg);
}

body.bpp-player-page {
    color: var(--bpp-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.bpp-app {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 12% 0%, rgba(47, 87, 148, .34), transparent 36rem),
        linear-gradient(145deg, #081225 0%, #0a1429 56%, #071020 100%);
}

.bpp-home {
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(22px, 3vw, 52px);
    transition: opacity .18s ease;
}

.bpp-home.is-hidden {
    display: none;
}

.bpp-home-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    max-width: 1700px;
    margin: 0 auto clamp(28px, 4vw, 58px);
}

.bpp-branding {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 46px);
    min-width: 0;
}

.bpp-event-logo {
    width: auto;
    max-width: min(260px, 22vw);
    max-height: 124px;
    object-fit: contain;
}

.bpp-eyebrow {
    margin: 0 0 8px;
    color: var(--bpp-accent);
    font-size: clamp(.72rem, 1vw, .96rem);
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.bpp-home h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 5rem);
    line-height: .98;
    letter-spacing: -.035em;
}

.bpp-welcome {
    max-width: 850px;
    margin: 16px 0 0;
    color: var(--bpp-muted);
    font-size: clamp(1rem, 1.4vw, 1.35rem);
}

.bpp-fullscreen-button,
.bpp-return-button,
.bpp-start-button,
.bpp-start-return {
    border: 0;
    cursor: pointer;
}

.bpp-fullscreen-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: var(--bpp-text);
    background: rgba(255, 255, 255, .06);
}

.bpp-fullscreen-button:hover,
.bpp-fullscreen-button:focus-visible {
    background: rgba(255, 255, 255, .13);
}

.bpp-poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: clamp(16px, 2vw, 30px);
    max-width: 1700px;
    margin: 0 auto;
}

.bpp-poster-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    color: inherit;
    text-align: left;
    background: linear-gradient(160deg, rgba(27, 43, 72, .96), rgba(16, 28, 49, .98));
    box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
    cursor: pointer;
    transform: translateY(0);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.bpp-poster-card:hover,
.bpp-poster-card:focus-visible {
    border-color: rgba(255, 212, 71, .8);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .32);
    transform: translateY(-4px);
    outline: none;
}

.bpp-poster-card.is-unavailable {
    cursor: not-allowed;
    opacity: .46;
}

.bpp-card-media {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.bpp-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bpp-card-placeholder {
    color: #32425e;
    font-size: 3.5rem;
}

.bpp-card-copy {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: 34px minmax(4.2em, auto) 1.45em 1fr auto;
    min-height: 226px;
    padding: 22px 22px 20px;
}

.bpp-card-number {
    align-self: start;
    width: max-content;
    margin: 0;
    padding: 5px 9px;
    border-radius: 7px;
    color: #101622;
    background: var(--bpp-accent);
    font-size: .78rem;
    font-weight: 900;
}

.bpp-card-title {
    display: -webkit-box;
    align-self: start;
    overflow: hidden;
    font-size: clamp(1.05rem, 1.35vw, 1.4rem);
    font-weight: 750;
    line-height: 1.18;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.bpp-card-presenter {
    align-self: start;
    margin: 0;
    overflow: hidden;
    color: var(--bpp-muted);
    font-size: .94rem;
}

.bpp-card-duration {
    grid-row: 5;
    align-self: end;
    margin: 0;
    padding-top: 16px;
    color: var(--bpp-accent);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

@media (max-width: 520px) {
    .bpp-card-copy {
        min-height: 214px;
        padding: 20px;
    }
}

.bpp-empty-state,
.bpp-not-found {
    width: min(760px, calc(100% - 40px));
    margin: 12vh auto 0;
    padding: clamp(28px, 5vw, 64px);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(17, 29, 52, .9);
    box-shadow: var(--bpp-shadow);
}

.bpp-empty-state h2,
.bpp-not-found h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.bpp-empty-state p,
.bpp-not-found p {
    color: var(--bpp-muted);
    font-size: 1.1rem;
}

.bpp-stage {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    grid-template-rows: auto 5px minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--bpp-text);
    background: #04070d;
}

.bpp-stage.is-active {
    display: grid;
}

.bpp-direct-player-page .bpp-stage {
    display: grid;
}

.bpp-stage-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 82px;
    padding: 14px clamp(16px, 2.4vw, 38px);
    background: linear-gradient(90deg, #111b2d, #0c1526);
}

.bpp-return-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    color: #101522;
    background: var(--bpp-accent);
    font-weight: 850;
}

.bpp-return-button:hover,
.bpp-return-button:focus-visible,
.bpp-start-button:hover,
.bpp-start-button:focus-visible {
    background: var(--bpp-accent-strong);
}

.bpp-stage-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.bpp-stage-number {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 7px;
    color: #101522;
    background: var(--bpp-accent);
    font-size: .78rem;
    font-weight: 900;
}

.bpp-stage-title {
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bpp-countdown {
    display: flex;
    align-items: center;
    gap: 13px;
}

.bpp-countdown-label {
    color: var(--bpp-muted);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bpp-countdown strong {
    min-width: 5.3ch;
    font-size: clamp(1.45rem, 2.6vw, 2.4rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.bpp-progress-track {
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
}

.bpp-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--bpp-accent);
    transition: width .2s linear;
}

.bpp-media-shell {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden;
    background: #000;
}

.bpp-poster-image,
.bpp-poster-video {
    display: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    background: #000;
}

.bpp-poster-image.is-visible,
.bpp-poster-video.is-visible {
    display: block;
}

.bpp-start-overlay {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(23, 42, 72, .8), rgba(2, 5, 10, .96));
}

.bpp-start-overlay.is-visible {
    display: grid;
}

.bpp-start-card {
    width: min(680px, 94vw);
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 24px;
    text-align: center;
    background: rgba(17, 29, 52, .95);
    box-shadow: var(--bpp-shadow);
}

.bpp-start-card h2 {
    margin: 0 0 14px;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.bpp-start-card p:not(.bpp-eyebrow) {
    color: var(--bpp-muted);
    font-size: 1.06rem;
}

.bpp-start-button {
    display: block;
    width: 100%;
    margin-top: 26px;
    padding: 16px 22px;
    border-radius: 12px;
    color: #101522;
    background: var(--bpp-accent);
    font-size: 1.08rem;
    font-weight: 900;
}

.bpp-start-return {
    margin-top: 16px;
    color: var(--bpp-muted);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bpp-player-message {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: none;
    width: min(700px, calc(100% - 40px));
    padding: 16px 20px;
    border: 1px solid rgba(255, 107, 107, .55);
    border-radius: 12px;
    color: #fff;
    text-align: center;
    background: rgba(119, 25, 25, .92);
    transform: translateX(-50%);
}

.bpp-player-message.is-visible {
    display: block;
}

.bpp-stage-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    min-height: 48px;
    padding: 13px clamp(16px, 2.4vw, 38px);
    color: var(--bpp-muted);
    background: #0c1423;
    font-size: .88rem;
}

@media (max-width: 780px) {
    .bpp-home-header,
    .bpp-branding {
        align-items: flex-start;
    }

    .bpp-home-header {
        flex-direction: column;
    }

    .bpp-branding {
        flex-direction: column;
    }

    .bpp-event-logo {
        max-width: 220px;
        max-height: 92px;
    }

    .bpp-stage-toolbar {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
    }

    .bpp-countdown {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .bpp-countdown-label {
        display: block;
    }

    .bpp-stage-footer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Offline event package controls. */
.bpp-home-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
}

.bpp-offline-control {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    max-width: 360px;
}

.bpp-offline-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 212, 71, .45);
    border-radius: 999px;
    color: #111827;
    background: var(--bpp-accent);
    font-weight: 800;
    cursor: pointer;
}

.bpp-offline-button:hover,
.bpp-offline-button:focus-visible {
    background: var(--bpp-accent-strong);
}

.bpp-offline-button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.bpp-offline-button.is-working span:first-child {
    animation: bpp-offline-pulse .8s ease-in-out infinite alternate;
}

.bpp-offline-status {
    max-width: 360px;
    color: var(--bpp-muted);
    font-size: .76rem;
    line-height: 1.35;
    text-align: right;
}

.bpp-offline-status[data-state="ready"] {
    color: #9ee6b4;
}

.bpp-offline-status[data-state="working"] {
    color: var(--bpp-accent);
}

.bpp-offline-status[data-state="error"] {
    color: #ff9b9b;
}

@keyframes bpp-offline-pulse {
    from { transform: translateY(0); }
    to { transform: translateY(3px); }
}

@media (max-width: 900px) {
    .bpp-home-header,
    .bpp-home-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bpp-home-actions {
        width: 100%;
    }

    .bpp-offline-control {
        align-items: stretch;
        max-width: none;
    }

    .bpp-offline-button,
    .bpp-fullscreen-button {
        justify-content: center;
        width: 100%;
    }

    .bpp-offline-status {
        max-width: none;
        text-align: center;
    }
}


/* v0.2 multi-screen poster walls */
.bpp-wall-app,
.bpp-screen-home,
.bpp-wall-page {
    background: #f7f7f5;
    color: #111;
}

.bpp-screen-home {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(8px, 1.2vw, 20px) clamp(16px, 3vw, 54px) 0;
    position: relative;
}

.bpp-wall-header {
    min-height: clamp(82px, 11vh, 132px);
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: start;
    gap: 20px;
}

.bpp-wall-header h1 {
    margin: 0;
    align-self: start;
    text-align: center;
    font-size: clamp(2.1rem, 4.5vw, 5.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.025em;
    color: #050505;
}

.bpp-wall-logo-slot img {
    width: auto;
    max-width: 230px;
    max-height: 76px;
    object-fit: contain;
}

.bpp-wall-page-label {
    justify-self: end;
    font-size: clamp(.9rem, 1.25vw, 1.4rem);
    color: #111;
    text-align: right;
}

.bpp-wall-operator-tools {
    position: fixed;
    z-index: 30;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    opacity: .08;
    transition: opacity .18s ease;
}

.bpp-wall-operator-tools:hover,
.bpp-wall-operator-tools:focus-within {
    opacity: 1;
}

.bpp-wall-operator-tools .bpp-fullscreen-button,
.bpp-wall-operator-tools .bpp-offline-button {
    padding: 7px 10px;
    font-size: 12px;
    color: #fff;
    background: rgba(0, 0, 0, .78);
}

.bpp-wall-operator-tools .bpp-offline-status {
    max-width: 260px;
    color: #111;
    background: rgba(255,255,255,.9);
    border-radius: 4px;
    padding: 5px 7px;
}

.bpp-wall-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    gap: clamp(8px, .9vw, 18px) clamp(10px, 1.3vw, 24px);
    padding: 2px 0 clamp(10px, 1.3vh, 18px);
}

.bpp-wall-poster {
    min-width: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    transition: transform .12s ease, box-shadow .12s ease;
}

.bpp-wall-poster:hover,
.bpp-wall-poster:focus-visible {
    transform: scale(1.018);
    box-shadow: 0 7px 22px rgba(0,0,0,.24);
    outline: 3px solid #dfb62d;
    outline-offset: 2px;
}

.bpp-wall-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #fff;
}

.bpp-wall-poster.is-unavailable {
    opacity: .45;
    cursor: not-allowed;
}

.bpp-wall-footer {
    min-height: clamp(52px, 7vh, 78px);
    margin: 0 clamp(-54px, -3vw, -16px);
    padding: 0 clamp(18px, 3vw, 54px);
    background: #dfb62d;
    color: #050505;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    font-size: clamp(1rem, 1.9vw, 2.1rem);
}

.bpp-wall-footer a {
    color: #050505;
    text-decoration: none;
    font-weight: 700;
}

.bpp-wall-footer strong {
    font-weight: 400;
    text-align: right;
}

.bpp-category-grid {
    align-self: center;
    display: grid;
    grid-template-columns: repeat(var(--bpp-master-columns, 4), minmax(0, 1fr));
    gap: clamp(20px, 2.2vw, 36px);
    max-width: 1500px;
    width: 100%;
    margin: 0 auto 28px;
}

.bpp-category-card {
    display: grid;
    grid-template-rows: 1fr auto auto;
    min-height: 260px;
    padding: 18px;
    border: 2px solid #d6d6d2;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.09);
}

.bpp-category-card:hover,
.bpp-category-card:focus-visible {
    border-color: #dfb62d;
    transform: translateY(-3px);
}

.bpp-category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    min-height: 160px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #ecece9;
}

.bpp-category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpp-category-preview.has-custom-image {
    display: block;
}

.bpp-category-preview .bpp-category-custom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bpp-category-card strong {
    font-size: clamp(1.3rem, 2vw, 2rem);
}

.bpp-category-card small {
    margin-top: 6px;
    color: #555;
    font-size: 1rem;
}

.bpp-screen-index {
    min-height: 100vh;
    padding: clamp(28px, 5vw, 80px);
    background: var(--bpp-bg);
    color: var(--bpp-text);
}

.bpp-screen-index-header {
    max-width: 1500px;
    margin: 0 auto 48px;
    display: flex;
    gap: 34px;
    align-items: center;
}

.bpp-screen-index-header img {
    max-width: 260px;
    max-height: 110px;
    object-fit: contain;
}

.bpp-screen-index-header p {
    margin: 0 0 8px;
    color: var(--bpp-accent);
    text-transform: uppercase;
    letter-spacing: .15em;
    font-weight: 800;
}

.bpp-screen-index-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2.5rem, 5vw, 5.5rem);
}

.bpp-screen-card-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.bpp-screen-card {
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 18px;
    color: var(--bpp-text);
    text-decoration: none;
    background: var(--bpp-panel);
    display: flex;
    flex-direction: column;
}

.bpp-screen-card-preview {
    min-height: 190px;
    aspect-ratio: 16 / 9;
    background: rgba(255,255,255,.06);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.bpp-screen-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.bpp-screen-card-preview.has-custom-image {
    display: block;
}

.bpp-screen-card-preview.has-custom-image img {
    object-fit: contain;
}

.bpp-screen-card-copy {
    flex: 1;
    padding: 24px 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bpp-screen-card:hover,
.bpp-screen-card:focus-visible {
    border-color: var(--bpp-accent);
    transform: translateY(-3px);
}

.bpp-screen-card-copy strong {
    font-size: 2rem;
}

.bpp-screen-card-copy > span,
.bpp-screen-card-copy small {
    margin-top: 7px;
    color: var(--bpp-muted);
}

@media (max-width: 1050px) {
    .bpp-wall-header { grid-template-columns: 1fr; text-align: center; }
    .bpp-wall-logo-slot { display: none; }
    .bpp-wall-page-label { justify-self: center; }
}

@media (max-width: 900px) {
    .bpp-wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .bpp-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bpp-wall-footer { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
    .bpp-wall-footer strong { text-align: left; }
}


/* v0.2.1 per-screen presentation-list themes */
body.bpp-theme-dark .bpp-wall-app,
body.bpp-theme-dark .bpp-screen-home,
body.bpp-theme-dark.bpp-wall-page {
    background: #071225;
    color: #f7f9fc;
}

body.bpp-theme-dark .bpp-screen-home {
    background:
        radial-gradient(circle at 10% 0%, rgba(45, 79, 132, .28), transparent 36rem),
        linear-gradient(145deg, #081225 0%, #0b162b 58%, #061020 100%);
}

body.bpp-theme-dark .bpp-wall-header h1,
body.bpp-theme-dark .bpp-wall-page-label {
    color: #f7f9fc;
}

body.bpp-theme-dark .bpp-wall-poster {
    border: 1px solid rgba(255,255,255,.14);
    background: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.34);
}

body.bpp-theme-dark .bpp-wall-operator-tools .bpp-offline-status {
    color: #f7f9fc;
    background: rgba(10, 19, 36, .94);
}

body.bpp-theme-dark .bpp-category-card {
    border-color: rgba(255,255,255,.15);
    color: #f7f9fc;
    background: linear-gradient(155deg, #162640, #101b30);
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

body.bpp-theme-dark .bpp-category-card:hover,
body.bpp-theme-dark .bpp-category-card:focus-visible {
    border-color: #dfb62d;
}

body.bpp-theme-dark .bpp-category-preview {
    background: #263651;
}

body.bpp-theme-dark .bpp-category-card small {
    color: #b7c1d5;
}

body.bpp-theme-light .bpp-wall-app,
body.bpp-theme-light .bpp-screen-home,
body.bpp-theme-light.bpp-wall-page {
    background: #f7f7f5;
    color: #111;
}


/* v0.2.3 hidden operator popup, opened from the event logo. */
.bpp-logo-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bpp-logo-trigger:focus-visible {
    outline: 3px solid var(--bpp-accent);
    outline-offset: 5px;
    border-radius: 4px;
}

.bpp-wall-logo-trigger {
    justify-content: flex-start;
}

.bpp-operator-modal[hidden] {
    display: none !important;
}

.bpp-operator-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    transition: opacity .16s ease;
}

.bpp-operator-modal.is-open {
    opacity: 1;
}

.bpp-operator-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 9, 20, .76);
    backdrop-filter: blur(8px);
    cursor: default;
}

.bpp-operator-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    color: #f7f9fc;
    background: #111d34;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
}

.bpp-operator-close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #f7f9fc;
    background: rgba(255, 255, 255, .08);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.bpp-operator-close:hover,
.bpp-operator-close:focus-visible {
    background: rgba(255, 255, 255, .17);
}

.bpp-operator-eyebrow {
    margin: 0 0 7px;
    color: var(--bpp-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.bpp-operator-dialog h2 {
    margin: 0;
    color: #f7f9fc;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.05;
}

.bpp-operator-description {
    margin: 13px 0 24px;
    color: #b7c1d5;
    line-height: 1.5;
}

.bpp-operator-dialog .bpp-offline-control {
    align-items: stretch;
    max-width: none;
}

.bpp-operator-dialog .bpp-offline-button,
.bpp-operator-dialog .bpp-operator-fullscreen {
    justify-content: center;
    width: 100%;
}

.bpp-operator-dialog .bpp-offline-status {
    min-height: 2.1em;
    max-width: none;
    margin-top: 2px;
    text-align: left;
}

.bpp-operator-fullscreen {
    margin-top: 18px;
}

body.bpp-operator-modal-open {
    overflow: hidden;
}

@media (max-width: 620px) {
    .bpp-operator-modal {
        align-items: end;
        padding: 12px;
    }

    .bpp-operator-dialog {
        border-radius: 18px;
    }
}


/* v0.2.4 viewport-locked presentation walls.
 * The public screen is a display surface, not a document: header, poster wall
 * and footer must always fit inside the visible browser area without scrolling.
 */
html:has(body.bpp-wall-page),
body.bpp-wall-page {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body.bpp-wall-page .bpp-wall-app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body.bpp-wall-page .bpp-screen-home {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    grid-template-rows:
        minmax(64px, clamp(72px, 10.5dvh, 118px))
        minmax(0, 1fr)
        minmax(48px, clamp(50px, 7dvh, 72px));
    padding-top: clamp(5px, .8dvh, 12px);
}

body.bpp-wall-page .bpp-wall-header {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    align-items: start;
}

body.bpp-wall-page .bpp-wall-header h1 {
    font-size: clamp(2rem, min(4.5vw, 8.5dvh), 5.2rem);
}

body.bpp-wall-page .bpp-wall-logo-slot,
body.bpp-wall-page .bpp-wall-page-label {
    min-height: 0;
}

body.bpp-wall-page .bpp-wall-logo-slot img {
    max-height: min(76px, 8dvh);
}

body.bpp-wall-page .bpp-wall-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    align-content: center;
    justify-content: center;
    padding-top: clamp(2px, .35dvh, 5px);
    padding-bottom: clamp(5px, .8dvh, 10px);
}

/* JavaScript calculates exact 16:9 cell dimensions from the live viewport.
 * These rules are safe fallbacks while that calculation is running. */
body.bpp-wall-page .bpp-wall-poster {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: auto;
}

body.bpp-wall-page .bpp-wall-poster img {
    min-width: 0;
    min-height: 0;
}

body.bpp-wall-page .bpp-category-grid {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    align-self: stretch;
    align-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

body.bpp-wall-page .bpp-wall-footer {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* Short laptop displays need slightly leaner chrome while preserving the wall. */
@media (max-height: 760px) and (min-width: 701px) {
    body.bpp-wall-page .bpp-screen-home {
        grid-template-rows: minmax(58px, 9.5dvh) minmax(0, 1fr) minmax(44px, 6.5dvh);
        padding-top: 4px;
    }

    body.bpp-wall-page .bpp-wall-header h1 {
        font-size: clamp(1.8rem, 7.5dvh, 3.8rem);
    }

    body.bpp-wall-page .bpp-wall-logo-slot img {
        max-height: 7dvh;
    }

    body.bpp-wall-page .bpp-wall-footer {
        font-size: clamp(.9rem, 1.65vw, 1.65rem);
    }
}

/* v0.2.5 viewport-locked master screens.
 * Both the event-level screen selector and the category/range selector are
 * display surfaces. Their complete card sets must fit without page scrolling.
 */
html:has(body.bpp-screen-index-page),
body.bpp-screen-index-page {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body.bpp-screen-index-page .bpp-screen-index {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
    display: grid;
    grid-template-rows:
        minmax(86px, clamp(104px, 18dvh, 180px))
        minmax(0, 1fr);
    gap: clamp(10px, 1.5dvh, 22px);
    padding: clamp(10px, 2dvh, 26px) clamp(18px, 4vw, 70px);
}

body.bpp-screen-index-page .bpp-screen-index-header {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
    gap: clamp(18px, 2.5vw, 40px);
}

body.bpp-screen-index-page .bpp-screen-index-header img {
    max-width: min(260px, 24vw);
    max-height: min(110px, 13dvh);
}

body.bpp-screen-index-page .bpp-screen-index-header p {
    margin-bottom: clamp(3px, .7dvh, 8px);
    font-size: clamp(.68rem, min(1vw, 1.8dvh), .95rem);
}

body.bpp-screen-index-page .bpp-screen-index-header h1 {
    margin-bottom: clamp(4px, .8dvh, 12px);
    font-size: clamp(2rem, min(5vw, 8dvh), 5.5rem);
    line-height: .98;
}

body.bpp-screen-index-page .bpp-screen-index-header span {
    font-size: clamp(.82rem, min(1.3vw, 2.1dvh), 1.15rem);
}

body.bpp-screen-index-page .bpp-screen-card-grid,
body.bpp-wall-page .bpp-category-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0 auto;
    overflow: hidden;
    align-self: stretch;
    align-content: center;
    justify-content: center;
}

body.bpp-screen-index-page .bpp-screen-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

body.bpp-screen-index-page .bpp-screen-card-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
}

body.bpp-screen-index-page .bpp-screen-card-copy {
    min-height: 0;
    padding: clamp(12px, 2dvh, 24px) clamp(16px, 2vw, 28px);
}

body.bpp-screen-index-page .bpp-screen-card-copy strong {
    font-size: clamp(1.15rem, min(2vw, 3.3dvh), 2rem);
    line-height: 1.08;
}

body.bpp-screen-index-page .bpp-screen-card-copy > span,
body.bpp-screen-index-page .bpp-screen-card-copy small {
    margin-top: clamp(3px, .55dvh, 7px);
    font-size: clamp(.72rem, min(1vw, 1.7dvh), 1rem);
}

body.bpp-wall-page .bpp-category-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: minmax(0, 1fr) auto auto;
    padding: clamp(9px, 1.5dvh, 18px);
}

body.bpp-wall-page .bpp-category-preview {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin-bottom: clamp(6px, 1dvh, 14px);
}

body.bpp-wall-page .bpp-category-card strong {
    overflow: hidden;
    font-size: clamp(1rem, min(2vw, 3dvh), 2rem);
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.bpp-wall-page .bpp-category-card small {
    margin-top: clamp(3px, .55dvh, 6px);
    overflow: hidden;
    font-size: clamp(.72rem, min(1vw, 1.7dvh), 1rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-height: 720px) and (min-width: 701px) {
    body.bpp-screen-index-page .bpp-screen-index {
        grid-template-rows: minmax(74px, 15dvh) minmax(0, 1fr);
        gap: 8px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    body.bpp-screen-index-page .bpp-screen-index-header img {
        max-height: 11dvh;
    }
}


/* v0.2.6 visible master-page full-screen controls and optional list return. */
.bpp-master-fullscreen-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, .08);
    font: inherit;
    font-size: clamp(.74rem, min(.9vw, 1.55dvh), .95rem);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: .9;
}

.bpp-master-fullscreen-button:hover,
.bpp-master-fullscreen-button:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, .16);
    outline: 3px solid #dfb62d;
    outline-offset: 2px;
}

.bpp-wall-header-actions {
    min-width: 0;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(7px, 1dvh, 12px);
}

body.bpp-theme-light .bpp-master-fullscreen-button {
    color: #111;
    background: rgba(0, 0, 0, .035);
}

body.bpp-theme-light .bpp-master-fullscreen-button:hover,
body.bpp-theme-light .bpp-master-fullscreen-button:focus-visible {
    background: rgba(0, 0, 0, .09);
}

.bpp-main-return-button {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, .7vw, 12px);
    white-space: nowrap;
}

.bpp-main-return-button span {
    font-size: 1.05em;
}

.bpp-screen-index-heading {
    min-width: 0;
}

.bpp-screen-index-fullscreen {
    flex: 0 0 auto;
    margin-left: auto;
    color: #f7f9fc;
}

@media (max-width: 1050px) {
    .bpp-wall-header-actions {
        justify-self: center;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .bpp-screen-index-fullscreen {
        position: absolute;
        top: 10px;
        right: 12px;
    }

    .bpp-master-fullscreen-button span:last-child {
        display: none;
    }
}

@media (max-height: 720px) and (min-width: 701px) {
    .bpp-master-fullscreen-button {
        min-height: 30px;
        padding: 6px 10px;
    }
}


/* v0.2.7 persistent full-screen navigation and logo-only operator controls. */
.bpp-master-fullscreen-button,
.bpp-screen-index-fullscreen {
    display: none !important;
}

.bpp-navigation-frame {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    background: #071326;
}

body.bpp-navigation-active {
    overflow: hidden !important;
}

.bpp-screen-index-logo-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
}

.bpp-screen-index-logo-trigger img {
    display: block;
    width: auto;
    max-width: 100%;
}

.bpp-stage-logo-trigger {
    flex: 0 0 auto;
    width: clamp(76px, 10vw, 180px);
    height: clamp(42px, 6.5dvh, 76px);
    padding: 3px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
}

.bpp-stage-logo-trigger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bpp-operator-fullscreen.is-fullscreen {
    border-color: #f0c429;
    background: rgba(240, 196, 41, .14);
}

.bpp-operator-fullscreen [data-bpp-fullscreen-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    font-size: 1.35em;
    line-height: 1;
}

@media (max-width: 800px) {
    .bpp-stage-logo-trigger {
        width: clamp(58px, 15vw, 100px);
    }
}


/* Stage toolbar now includes the logo operator trigger. */
.bpp-stage-toolbar {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
}

@media (max-width: 760px) {
    .bpp-stage-toolbar {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .bpp-countdown {
        grid-column: 1 / -1;
    }
}


/* v0.2.11 unified viewport shell.
 * Earlier releases accumulated several competing vh/dvh/percentage rules.
 * Public display pages now use one fixed box equal to the current document
 * viewport. Inside the persistent iframe this is the iframe's exact content
 * rectangle, so no parent-page height or browser toolbar offset is inherited. */
:root {
    --bpp-live-viewport-height: 100%;
}

html.bpp-navigation-host,
html.bpp-navigation-host body,
body.bpp-navigation-active {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.bpp-navigation-active {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    background: #071326 !important;
}

html.bpp-navigation-host .bpp-navigation-frame,
body.bpp-navigation-active > .bpp-navigation-frame,
.bpp-navigation-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block !important;
    z-index: 2147483647 !important;
    transform: none !important;
}

html:has(body.bpp-wall-page),
html:has(body.bpp-screen-index-page),
body.bpp-wall-page,
body.bpp-screen-index-page {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

body.bpp-wall-page .bpp-wall-app,
body.bpp-screen-index-page .bpp-app {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
}

body.bpp-wall-page .bpp-screen-home {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: grid;
    grid-template-rows:
        clamp(64px, 12%, 118px)
        minmax(0, 1fr)
        clamp(48px, 7.5%, 72px);
    padding: clamp(5px, .9%, 12px) clamp(16px, 3vw, 54px) 0;
}

body.bpp-wall-page .bpp-wall-header {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    align-items: start;
}

body.bpp-wall-page .bpp-wall-header h1 {
    font-size: clamp(2rem, min(4.5vw, 8vh), 5.2rem);
}

body.bpp-wall-page .bpp-wall-logo-slot,
body.bpp-wall-page .bpp-wall-page-label {
    min-height: 0;
}

body.bpp-wall-page .bpp-wall-logo-slot img {
    max-height: min(76px, 8vh);
}

body.bpp-wall-page .bpp-wall-grid,
body.bpp-wall-page .bpp-category-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    align-self: stretch;
    align-content: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

body.bpp-wall-page .bpp-wall-grid {
    padding-top: 2px;
    padding-bottom: clamp(5px, .8%, 10px);
    justify-items: stretch;
    place-content: center;
}

body.bpp-wall-page .bpp-wall-poster {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    aspect-ratio: auto;
}

body.bpp-wall-page .bpp-wall-footer {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.08;
}

body.bpp-screen-index-page .bpp-screen-index {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    display: grid;
    grid-template-rows: clamp(86px, 18%, 180px) minmax(0, 1fr);
    gap: clamp(10px, 1.5%, 22px);
    padding: clamp(10px, 2%, 26px) clamp(18px, 4vw, 70px);
}

body.bpp-screen-index-page .bpp-screen-index-header {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
}

body.bpp-screen-index-page .bpp-screen-index-header img {
    max-height: min(110px, 13vh);
}

body.bpp-screen-index-page .bpp-screen-card-grid {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
    align-self: stretch;
    align-content: center;
    justify-content: center;
}

body.bpp-screen-index-page .bpp-screen-card,
body.bpp-wall-page .bpp-category-card {
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

body.bpp-screen-index-page .bpp-screen-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

body.bpp-screen-index-page .bpp-screen-card-preview,
body.bpp-wall-page .bpp-category-preview {
    height: 100%;
    min-height: 0;
}

@media (max-height: 720px) and (min-width: 701px) {
    body.bpp-wall-page .bpp-screen-home {
        grid-template-rows: clamp(56px, 10%, 76px) minmax(0, 1fr) clamp(42px, 7%, 56px);
        padding-top: 4px;
    }

    body.bpp-wall-page .bpp-wall-header h1 {
        font-size: clamp(1.8rem, 7vh, 3.8rem);
    }

    body.bpp-wall-page .bpp-wall-footer {
        font-size: clamp(.9rem, 1.65vw, 1.65rem);
    }

    body.bpp-screen-index-page .bpp-screen-index {
        grid-template-rows: clamp(70px, 16%, 108px) minmax(0, 1fr);
        padding-top: 8px;
        padding-bottom: 8px;
    }
}


/* v0.2.15: presentation media uses the full stage height. The previous
 * presenter/help footer could cover artwork already built into a poster. */
.bpp-stage-footer {
    display: none !important;
}


/* v0.2.21: live media keeps the original v0.2.14 layout. Buffer artwork is
 * a separate absolute overlay, so it cannot alter video sizing or aspect ratio. */
.bpp-buffer-image {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.bpp-buffer-image.is-visible {
    display: block;
}

.bpp-media-shell > .bpp-start-overlay,
.bpp-media-shell > .bpp-player-message {
    z-index: 3;
}


/* v0.2.25: buffer freeze uses the real video element. Legacy buffer/canvas
 * overlays are disabled so they cannot change dimensions or cover the frame. */
.bpp-buffer-image,
.bpp-freeze-frame {
    display: none !important;
}


/* v0.2.26: independent end/buffer still. It remains display:none during live
 * playback, so it cannot influence video dimensions or media-shell layout. */
.bpp-buffer-still {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: #000;
    pointer-events: none;
}

.bpp-buffer-still.is-visible {
    display: block;
}


/* v0.2.27 dedicated full-resolution buffer artwork. This element is removed
 * from layout during playback and becomes an exact stage overlay only during
 * the hidden buffer. The !important declarations isolate it from WordPress,
 * theme and legacy player image rules. */
.bpp-media-shell > .bpp-buffer-still {
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #000 !important;
    pointer-events: none !important;
}

.bpp-media-shell > .bpp-buffer-still.is-visible {
    display: block !important;
}


/* v0.2.28: dedicated buffer artwork uses a background layer rather than an
 * image element. It is completely outside live media layout and always fills
 * the exact stage rectangle when revealed. */
.bpp-media-shell > .bpp-buffer-still {
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;
    display: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: #000 !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    pointer-events: none !important;
}

.bpp-media-shell > .bpp-buffer-still.is-visible {
    display: block !important;
}


/* v0.2.30: buffer artwork is rendered as a viewport-positioned image whose
 * dimensions are calculated from the live media stage. Inline important rules
 * are applied by player.js; this declaration only prevents theme transitions. */
.bpp-buffer-viewport-overlay {
    transition: none !important;
}


/* v0.2.31: the dedicated buffer image is applied directly to the existing
 * full-size media stage. No separate image or overlay participates in sizing. */
.bpp-media-shell.is-buffer-background {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
}


/* v0.2.32: the former buffer is now a hidden extension of the same session.
 * No replacement image, canvas or background is used. The current video or
 * static image remains untouched until the combined session duration ends. */
.bpp-media-shell.is-buffer-background,
.bpp-media-shell.has-background-fallback {
    background-image: none !important;
}

.bpp-buffer-still,
.bpp-buffer-frame,
.bpp-buffer-overlay {
    display: none !important;
}


/* v0.2.33: the hidden extension changes timer visibility only. These elements
 * retain their layout space so the media stage does not resize at zero. */
.bpp-countdown.is-extension-hidden,
.bpp-progress-track.is-extension-hidden,
.bpp-countdown.is-poster-timer-hidden,
.bpp-progress-track.is-poster-timer-hidden {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* v0.3.17 Conference Hub poster management additions. */
.bpp-event-master-artwork{margin:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:22px;min-width:min(34vw,520px);max-width:620px;max-height:250px;background:rgba(255,255,255,.08)}
.bpp-event-master-artwork img{display:block;width:100%;height:100%;max-height:250px;object-fit:cover}
.bpp-screen-index-header .bpp-event-master-artwork{margin-left:auto}
.bpp-card-organisation{display:block;margin-top:3px;font-size:.78em;opacity:.72}
body.bpp-theme-dark:not(.bpp-wall-page){background:#071426;color:#f4f7fb}
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-app,
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-home,
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-screen-index{background:#071426;color:#f4f7fb}
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-poster-card,
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-screen-card{background:#10233c;color:#f4f7fb;border-color:#2a496b}
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-welcome,
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-screen-card-copy span,
body.bpp-theme-dark:not(.bpp-wall-page) .bpp-screen-card-copy small{color:#b9c9dc}
@media(max-width:900px){.bpp-event-master-artwork{width:100%;min-width:0;max-width:none}.bpp-screen-index-header .bpp-event-master-artwork{margin-left:0}}

/* v0.3.27 topic-first poster directory. */
html:has(body.bpp-topic-page),
body.bpp-topic-page {
    min-height: 100%;
    background: #f5f4ef;
}

body.bpp-topic-page {
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

body.bpp-topic-page .bpp-topic-app {
    min-height: 100vh;
    min-height: 100dvh;
    background: #f5f4ef;
    color: #111827;
}

.bpp-topic-shell {
    width: min(1720px, 100%);
    margin: 0 auto;
    padding: clamp(18px, 2.4vw, 42px) clamp(18px, 3vw, 54px) clamp(44px, 5vw, 86px);
}

.bpp-topic-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 calc(clamp(18px, 3vw, 54px) * -1) 22px;
    padding: clamp(12px, 1.4vw, 22px) clamp(18px, 3vw, 54px);
    border-bottom: 1px solid rgba(15, 23, 42, .12);
    background: rgba(245, 244, 239, .96);
    backdrop-filter: blur(12px);
}

.bpp-topic-header-brand {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
    min-width: 0;
}

.bpp-topic-logo-trigger {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bpp-topic-logo-trigger img {
    display: block;
    width: auto;
    max-width: min(200px, 18vw);
    max-height: 74px;
    object-fit: contain;
}

.bpp-topic-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -.035em;
}

.bpp-topic-header p:not(.bpp-eyebrow) {
    margin: 7px 0 0;
    color: #64748b;
    font-size: clamp(.9rem, 1.1vw, 1.12rem);
}

.bpp-topic-back,
.bpp-stage-topic-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(15, 23, 42, .18);
    border-radius: 999px;
    color: #111827;
    text-decoration: none;
    background: #fff;
    font-weight: 750;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .08);
}

.bpp-topic-back:hover,
.bpp-topic-back:focus-visible,
.bpp-stage-topic-nav a:hover,
.bpp-stage-topic-nav a:focus-visible {
    border-color: #d7aa12;
    outline: none;
    transform: translateY(-1px);
}

.bpp-topic-poster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.bpp-topic-poster-card {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 16px;
    color: #111827;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.bpp-topic-poster-card:hover,
.bpp-topic-poster-card:focus-visible {
    border-color: #d7aa12;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .14);
    transform: translateY(-3px);
    outline: none;
}

.bpp-topic-poster-card.is-unavailable {
    pointer-events: none;
    opacity: .45;
}

.bpp-topic-poster-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9e8e3;
}

.bpp-topic-poster-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bpp-topic-poster-copy {
    position: absolute;
    inset: auto 0 0;
    display: block;
    padding: 18px 16px 16px;
    color: #fff;
    background: linear-gradient(to top, rgba(7,20,38,.94), rgba(7,20,38,.72) 70%, rgba(7,20,38,0));
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.bpp-topic-poster-card:hover .bpp-topic-poster-copy,
.bpp-topic-poster-card:focus-visible .bpp-topic-poster-copy {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .bpp-topic-poster-copy { display: none; }
}

.bpp-topic-poster-number {
    display: block;
    margin-bottom: 5px;
    color: #f6d85f;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.bpp-topic-poster-copy strong {
    display: block;
    font-size: clamp(.96rem, 1.08vw, 1.15rem);
    line-height: 1.24;
}

.bpp-topic-poster-copy > span:last-child:not(.bpp-topic-poster-number) {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,.82);
    font-size: .9rem;
}

.bpp-stage-topic-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpp-stage-topic-nav a {
    min-height: 40px;
    padding: 8px 12px;
    border-color: rgba(255,255,255,.18);
    color: var(--bpp-text);
    background: rgba(255,255,255,.06);
    box-shadow: none;
    font-size: .9rem;
}

body.bpp-theme-dark.bpp-topic-page,
body.bpp-theme-dark.bpp-topic-page .bpp-topic-app {
    background: #071426;
    color: #f4f7fb;
}

body.bpp-theme-dark.bpp-topic-page .bpp-topic-header {
    border-color: #223a59;
    background: rgba(7, 20, 38, .96);
}

body.bpp-theme-dark.bpp-topic-page .bpp-topic-header p:not(.bpp-eyebrow),
body.bpp-theme-dark.bpp-topic-page .bpp-topic-poster-copy > span:last-child:not(.bpp-topic-poster-number) {
    color: #b9c9dc;
}

body.bpp-theme-dark.bpp-topic-page .bpp-topic-back,
body.bpp-theme-dark.bpp-topic-page .bpp-topic-poster-card {
    border-color: #2a496b;
    color: #f4f7fb;
    background: #10233c;
}

body.bpp-theme-dark.bpp-topic-page .bpp-topic-poster-media {
    background: #071426;
}

body.bpp-theme-dark.bpp-topic-page .bpp-topic-poster-number {
    color: #ffd447;
}

@media (max-width: 1180px) {
    .bpp-topic-poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .bpp-topic-header { align-items: flex-start; }
    .bpp-topic-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .bpp-topic-header { position: static; flex-direction: column; }
    .bpp-topic-back { width: 100%; }
    .bpp-topic-poster-grid { grid-template-columns: 1fr; }
}


/* v0.3.28 topic-first event/screen master layout. */
.bpp-topic-master-grid { grid-auto-rows: minmax(0, 1fr); }
.bpp-topic-master-card {
    min-height: 0;
    height: 100%;
    padding: clamp(8px, .9dvh, 14px);
    border-radius: 10px;
    grid-template-rows: minmax(0, 1fr) auto auto;
    overflow: hidden;
}
.bpp-topic-master-card .bpp-category-preview {
    min-height: 0;
    height: 100%;
    margin-bottom: clamp(5px, .65dvh, 10px);
}
.bpp-topic-master-card strong {
    font-size: clamp(.82rem, min(1.25vw, 1.9dvh), 1.35rem);
    line-height: 1.08;
}
.bpp-topic-master-card small {
    margin-top: 3px;
    font-size: clamp(.68rem, min(.85vw, 1.35dvh), .92rem);
}
.bpp-event-topic-master-grid {
    width: 100%;
    min-height: min(680px, 68dvh);
    align-self: stretch;
    align-content: stretch;
}
@media (max-width: 1100px) {
    .bpp-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .bpp-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v0.3.29 adaptive topic master columns. */
.bpp-topic-master-card {
    grid-template-rows: minmax(0, 1fr) auto;
}

.bpp-topic-card-link {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    color: inherit;
    text-decoration: none;
}

.bpp-topic-card-link:focus-visible {
    outline: 3px solid #dfb62d;
    outline-offset: 2px;
    border-radius: 7px;
}

.bpp-topic-card-copy {
    display: block;
    min-width: 0;
}

.bpp-topic-card-copy strong,
.bpp-topic-card-copy small {
    display: block;
}

/* JavaScript calculates the optimum count from the live grid dimensions and
 * treats --bpp-master-columns/data-bpp-max-columns as a maximum. This is the
 * no-JS/resizing fallback. */
.bpp-topic-master-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
}

/* Topic poster pages should also use the available width naturally rather
 * than being locked to exactly four columns. */
.bpp-topic-poster-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
}

/* v0.3.30 — event master artwork as kiosk attract / screen-saver screen. */
body.bpp-attract-page,
body.bpp-attract-page .bpp-app {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}
.bpp-attract-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}
.bpp-attract-screen {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}
.bpp-attract-screen img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}


/* v0.3.31 optional presentation text search. */
.bpp-poster-search { position:relative; z-index:12; width:min(100%,980px); margin:0 auto clamp(12px,1.7dvh,22px); }
.bpp-poster-search-label { display:grid; grid-template-columns:auto minmax(260px,1fr); align-items:center; gap:12px; color:#344054; font-size:clamp(.78rem,1vw,.95rem); font-weight:800; }
.bpp-poster-search-label input { min-width:0; min-height:46px; padding:10px 14px; border:1px solid #c9ced6; border-radius:9px; color:#101828; background:#fff; font:inherit; font-weight:600; box-shadow:0 1px 2px rgba(16,24,40,.04); }
.bpp-poster-search-label input:focus { border-color:#dfb62d; outline:3px solid rgba(223,182,45,.22); }
.bpp-poster-search-results { position:absolute; left:0; right:0; top:calc(100% + 7px); max-height:min(56dvh,520px); overflow:auto; padding:8px; border:1px solid #d0d5dd; border-radius:10px; background:rgba(255,255,255,.98); box-shadow:0 18px 45px rgba(15,23,42,.2); }
.bpp-poster-search-result { display:grid; gap:3px; padding:10px 12px; border-radius:7px; color:#101828; text-decoration:none; }
.bpp-poster-search-result:hover,.bpp-poster-search-result:focus-visible { background:#f2f4f7; outline:none; }
.bpp-poster-search-result strong { font-size:.96rem; line-height:1.25; }
.bpp-poster-search-result span { color:#667085; font-size:.82rem; line-height:1.25; }
.bpp-poster-search-empty { margin:0; padding:13px; color:#667085; text-align:center; }
body.bpp-theme-dark .bpp-poster-search-label { color:#d4deea; }
body.bpp-theme-dark .bpp-poster-search-label input { border-color:#35587c; color:#f4f7fb; background:#071426; }
body.bpp-theme-dark .bpp-poster-search-results { border-color:#35587c; background:rgba(7,20,38,.985); }
body.bpp-theme-dark .bpp-poster-search-result { color:#f4f7fb; }
body.bpp-theme-dark .bpp-poster-search-result:hover,body.bpp-theme-dark .bpp-poster-search-result:focus-visible { background:#10243d; }
body.bpp-theme-dark .bpp-poster-search-result span,body.bpp-theme-dark .bpp-poster-search-empty { color:#b9c9dc; }
@media (max-width:720px) { .bpp-poster-search-label { grid-template-columns:1fr; gap:6px; } .bpp-poster-search-results { position:static; margin-top:7px; max-height:48dvh; } }

/* v0.3.35 high-resolution static poster viewer */
.bpp-image-viewport[hidden]{display:none!important}
.bpp-image-viewport{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;background:#000}
.bpp-image-viewport .bpp-poster-image{transform-origin:center center;will-change:transform;user-select:none;-webkit-user-drag:none}
.bpp-zoom-controls{position:absolute;right:18px;bottom:18px;z-index:7;display:flex;gap:8px;padding:7px;background:rgba(15,24,42,.88);border:1px solid rgba(255,255,255,.22);border-radius:12px;box-shadow:0 4px 18px #0005}
.bpp-zoom-controls[hidden]{display:none!important}.bpp-zoom-controls button{min-width:46px;height:42px;border:0;border-radius:8px;background:#fff;color:#17243b;font:700 16px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}.bpp-zoom-controls button:hover{background:#ffca28}
.bpp-media-missing{display:inline-block;color:#b42318;font-weight:700}.bpp-topic-poster-card.is-unavailable{opacity:.72;cursor:not-allowed}


/* v0.3.36 event presentation finder, hover titles and compact poster stage. */
.bpp-topic-jump {
    display:grid;
    grid-template-columns:auto minmax(280px,1fr);
    align-items:center;
    gap:18px;
    margin:0 0 clamp(22px,3vw,38px);
    padding:clamp(14px,1.7vw,20px);
    border:1px solid rgba(15,23,42,.11);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 26px rgba(15,23,42,.07);
}
.bpp-topic-jump label{font-weight:800;white-space:nowrap}
.bpp-topic-jump select{
    width:100%;min-width:0;min-height:48px;padding:8px 40px 8px 13px;
    border:1px solid #cbd5e1;border-radius:10px;color:#0f172a;background:#fff;
    font:inherit;font-size:clamp(.9rem,1vw,1.06rem);cursor:pointer
}
.bpp-topic-jump select:focus-visible{border-color:#dfb62d;outline:3px solid rgba(223,182,45,.22)}
body.bpp-theme-dark .bpp-topic-jump{border-color:#2a496b;background:#10233c}
body.bpp-theme-dark .bpp-topic-jump select{border-color:#35587c;color:#f4f7fb;background:#071426}

.bpp-topic-master-card{grid-template-rows:minmax(0,1fr) auto}
.bpp-topic-card-jump{display:grid;gap:4px;min-width:0;margin-top:clamp(6px,.7dvh,10px)}
.bpp-topic-card-jump>span{color:#667085;font-size:clamp(.6rem,min(.72vw,1.05dvh),.78rem);font-weight:750;line-height:1.1}
.bpp-topic-card-jump select{width:100%;min-width:0;min-height:clamp(34px,4.2dvh,42px);padding:5px 30px 5px 9px;border:1px solid #c9ced6;border-radius:7px;color:#101828;background:#fff;font:inherit;font-size:clamp(.68rem,min(.8vw,1.16dvh),.88rem);cursor:pointer}
.bpp-topic-card-jump select:focus-visible{border-color:#dfb62d;outline:2px solid rgba(223,182,45,.35);outline-offset:1px}
body.bpp-theme-dark .bpp-topic-card-jump>span{color:#b9c9dc}
body.bpp-theme-dark .bpp-topic-card-jump select{border-color:#35587c;color:#f4f7fb;background:#071426}

/* Hover-title mode keeps the directory compact: number/presenter remain visible,
 * while the full presentation title becomes a mouse/focus overlay. */
body.bpp-title-on-hover .bpp-poster-card,
body.bpp-title-on-hover .bpp-topic-poster-card{position:relative}
body.bpp-title-on-hover .bpp-card-copy{grid-template-rows:34px 1.7em 1fr auto;min-height:154px}
body.bpp-title-on-hover .bpp-card-title,
body.bpp-title-on-hover .bpp-topic-poster-copy strong{
    position:absolute;left:12px;right:12px;top:50%;z-index:8;
    display:block!important;max-height:min(50%,11em);overflow:auto;
    padding:11px 13px;border:1px solid rgba(255,255,255,.2);border-radius:9px;
    color:#fff;background:rgba(7,20,38,.96);box-shadow:0 12px 28px rgba(0,0,0,.28);
    font-size:clamp(.88rem,1vw,1.1rem);line-height:1.25;
    opacity:0;visibility:hidden;transform:translateY(-44%);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
    pointer-events:none;-webkit-line-clamp:unset;-webkit-box-orient:initial
}
body.bpp-title-on-hover .bpp-poster-card:hover .bpp-card-title,
body.bpp-title-on-hover .bpp-poster-card:focus-visible .bpp-card-title,
body.bpp-title-on-hover .bpp-topic-poster-card:hover .bpp-topic-poster-copy strong,
body.bpp-title-on-hover .bpp-topic-poster-card:focus-visible .bpp-topic-poster-copy strong{
    opacity:1;visibility:visible;transform:translateY(-50%)
}
body.bpp-title-on-hover .bpp-topic-poster-copy{min-height:66px;position:relative}
body.bpp-title-on-hover .bpp-topic-poster-copy>span:last-child:not(.bpp-topic-poster-number){margin-top:5px}

/* Presentation playback uses the whole viewport. Navigation and timer float over
 * the artwork rather than reserving a large toolbar row. */
.bpp-stage{grid-template-rows:minmax(0,1fr)!important}
.bpp-stage .bpp-media-shell{grid-row:1;grid-column:1;width:100%;height:100%;min-height:0}
.bpp-floating-return{
    position:absolute;left:12px;top:12px;z-index:30;min-height:42px;padding:9px 13px;
    border:1px solid rgba(0,0,0,.14);border-radius:9px;box-shadow:0 5px 18px rgba(0,0,0,.25)
}
.bpp-floating-countdown{
    position:absolute;right:12px;top:12px;z-index:30;display:flex;align-items:center;
    padding:8px 11px;border:1px solid rgba(255,255,255,.2);border-radius:9px;
    background:rgba(7,20,38,.86);box-shadow:0 5px 18px rgba(0,0,0,.25);backdrop-filter:blur(5px)
}
.bpp-floating-countdown .bpp-countdown-label{display:none}
.bpp-floating-countdown strong{min-width:auto;font-size:clamp(1rem,1.5vw,1.35rem)}
.bpp-floating-progress{position:absolute;left:0;right:0;top:0;z-index:29;height:4px;background:rgba(255,255,255,.16)}
@media (max-width:720px){.bpp-topic-jump{grid-template-columns:1fr;gap:7px}.bpp-floating-return{left:8px;top:8px}.bpp-floating-countdown{right:8px;top:8px}}


/* v0.3.45 topic cards: artwork only; full title uses the browser-native title tooltip. */
.bpp-topic-poster-copy{display:none!important}


/* v0.3.46 APPES/ANZSPED topic kiosk and simplified poster controls */
.bpp-appes-topic-screen{position:relative;width:100%;max-width:none;aspect-ratio:16/9;margin:0 auto;overflow:hidden;background:#fff}
.bpp-appes-topic-artwork{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;user-select:none;-webkit-user-drag:none}
.bpp-appes-topic-hotspots{position:absolute;inset:0;z-index:3}
.bpp-appes-topic-hotspot{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%);background:transparent;transition:background .14s ease,filter .14s ease;outline:none}
.bpp-appes-topic-hotspot:hover,.bpp-appes-topic-hotspot:focus-visible{background:rgba(255,255,255,.13);filter:brightness(1.04)}
.bpp-appes-topic-hotspot:focus-visible{box-shadow:inset 0 0 0 5px rgba(255,255,255,.85)}
body:has(.bpp-appes-topic-screen) .bpp-home{padding:0;max-width:none;width:100%;min-height:100dvh;display:grid;place-items:center;background:#fff}
body:has(.bpp-appes-topic-screen) .bpp-home-header{display:none}
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-screen{width:min(100vw,177.7778dvh);height:min(100dvh,56.25vw)}

/* Back/return controls stay discoverable but do not dominate poster content. */
.bpp-floating-return{opacity:.16;transition:opacity .16s ease,background .16s ease,transform .16s ease}
.bpp-floating-return:hover,.bpp-floating-return:focus-visible{opacity:.96}
.bpp-topic-back{opacity:.22;transition:opacity .16s ease,background .16s ease,transform .16s ease}
.bpp-topic-back:hover,.bpp-topic-back:focus-visible{opacity:1}

/* Zoom controls intentionally removed in v0.3.46. Static posters remain fit-to-screen. */
.bpp-zoom-controls{display:none!important}


/* v0.3.50 APPES/ANZSPED topic gallery background.
 * Apply at both document and app layers so event theme colours cannot cover it. */
html:has(body.bpp-appes-topic-gallery-page),
body.bpp-appes-topic-gallery-page {
    background-color:#fff !important;
    background-image:url("appes-topic-gallery-2026.png") !important;
    background-position:center top !important;
    background-size:cover !important;
    background-attachment:fixed !important;
    background-repeat:no-repeat !important;
}
body.bpp-theme-dark.bpp-topic-page.bpp-appes-topic-gallery-page .bpp-topic-app,
body.bpp-appes-topic-gallery-page .bpp-topic-app {
    min-height:100dvh;
    background:transparent !important;
    color:#111827;
}
body.bpp-appes-topic-gallery-page .bpp-topic-shell {
    width:min(1720px,100%);
    padding-top:clamp(250px,24vw,300px);
}
body.bpp-theme-dark.bpp-topic-page.bpp-appes-topic-gallery-page .bpp-topic-header,
body.bpp-appes-topic-gallery-page .bpp-topic-header {
    top:0;
    margin-bottom:18px;
    border:1px solid rgba(15,23,42,.10);
    border-radius:16px;
    background:rgba(255,255,255,.88);
    box-shadow:0 10px 30px rgba(15,23,42,.07);
    backdrop-filter:blur(14px);
}
body.bpp-appes-topic-gallery-page .bpp-topic-logo-trigger,
body.bpp-appes-topic-gallery-page .bpp-topic-header .bpp-eyebrow {display:none}
body.bpp-appes-topic-gallery-page .bpp-topic-header h1 {
    color:#073f68;
    font-size:clamp(2rem,3vw,3.7rem);
    text-transform:uppercase;
    letter-spacing:.01em;
}
body.bpp-appes-topic-gallery-page .bpp-topic-header p:not(.bpp-eyebrow) {color:#5f6f84 !important}
body.bpp-theme-dark.bpp-topic-page.bpp-appes-topic-gallery-page .bpp-topic-jump,
body.bpp-appes-topic-gallery-page .bpp-topic-jump {
    border-color:rgba(15,23,42,.12);
    background:rgba(255,255,255,.90);
    backdrop-filter:blur(12px);
}
body.bpp-appes-topic-gallery-page .bpp-topic-jump label {color:#182230}
body.bpp-theme-dark.bpp-topic-page.bpp-appes-topic-gallery-page .bpp-topic-jump select,
body.bpp-appes-topic-gallery-page .bpp-topic-jump select {
    border-color:#c9ced6; color:#101828; background:#fff;
}
body.bpp-appes-topic-gallery-page .bpp-topic-poster-card {background:rgba(255,255,255,.96)}
@media (max-width:900px) {
    html:has(body.bpp-appes-topic-gallery-page),body.bpp-appes-topic-gallery-page {background-size:auto 100vh !important;background-position:center top !important}
    body.bpp-appes-topic-gallery-page .bpp-topic-shell {padding-top:clamp(190px,28vw,250px)}
}


/* v0.3.51: exact Bone & Calcium artwork hit-area.
 * Keep this hotspot above neighbouring bounding boxes; clip-path still limits
 * the clickable shape to the visible hexagon. */
.bpp-appes-hotspot-bone-calcium,.bpp-appes-hotspot-bones-calcium{z-index:8!important;pointer-events:auto!important}

/* v0.3.52: P02 Bone & Calcium is a dedicated top-priority hit target. */
.bpp-appes-hotspot-bone-calcium,.bpp-appes-hotspot-bones-calcium{z-index:30!important;pointer-events:auto!important;cursor:pointer!important}


/* v0.3.55: presentation-style APPES topic canvas.
 * Fit the complete 1648x928 artwork inside the viewport and bind the hotspot
 * coordinate space to that exact canvas. No page scrolling or independent
 * hotspot scaling is permitted on the kiosk topic master. */
html:has(.bpp-appes-topic-screen),
body:has(.bpp-appes-topic-screen){
    width:100%;height:100%;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;
}
body:has(.bpp-appes-topic-screen) .bpp-home{
    position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;min-height:0!important;
    max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;
    display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;
}
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-screen{
    position:relative!important;
    width:min(100vw,calc(100vh * 1.775862069))!important;
    height:min(100vh,calc(100vw / 1.775862069))!important;
    max-width:100vw!important;max-height:100vh!important;
    margin:0!important;padding:0!important;overflow:hidden!important;flex:0 0 auto!important;
    aspect-ratio:1648 / 928!important;background:#fff!important;
}
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-artwork,
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-hotspots{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;
}
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-artwork{object-fit:fill!important}
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-hotspots{z-index:10!important;pointer-events:none}
body:has(.bpp-appes-topic-screen) .bpp-appes-topic-hotspot{pointer-events:auto!important}

/* v0.3.62 topic master mode toggle */
.bpp-blank-topic-master{background-image:var(--bpp-blank-bg,none);background-position:center;background-size:cover;background-repeat:no-repeat;border-radius:18px;padding:clamp(12px,2vw,30px);min-height:65vh;align-content:center}
.bpp-blank-topic-master .bpp-topic-master-card{background:rgba(9,23,42,.9)}

/* Production 0.3.64: full-viewport topic background. */
body.bpp-fullscreen-topic-bg{background-image:var(--bpp-blank-bg,none)!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;background-attachment:fixed!important}
body.bpp-fullscreen-topic-bg .bpp-app,body.bpp-fullscreen-topic-bg .bpp-home{background:transparent!important}
body.bpp-fullscreen-topic-bg .bpp-blank-topic-master{background:none!important;border-radius:0!important;min-height:0!important;padding:clamp(12px,1.5vw,24px)!important}
body.bpp-fullscreen-topic-bg .bpp-home-header{background:rgba(5,18,35,.86);border-radius:12px;padding:12px 18px}

/* v0.3.65: artwork already contains event branding, so suppress duplicate header. */
body.bpp-fullscreen-topic-bg .bpp-home-header{display:none!important}
body.bpp-fullscreen-topic-bg .bpp-home{padding-top:clamp(20px,3vw,48px)}
body.bpp-fullscreen-topic-bg .bpp-blank-operator-trigger{position:fixed;right:12px;bottom:12px;z-index:120;background:rgba(7,20,40,.85);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:50%;width:40px;height:40px;cursor:pointer;opacity:.3;transition:opacity .15s ease}
body.bpp-fullscreen-topic-bg .bpp-blank-operator-trigger:hover,body.bpp-fullscreen-topic-bg .bpp-blank-operator-trigger:focus-visible{opacity:1}

/* v0.3.66: keep topic cards below the orange divider on the blank artwork. */
body.bpp-fullscreen-topic-bg .bpp-home {
    padding-top: clamp(170px, 24vh, 300px) !important;
    box-sizing: border-box;
}
@media (max-height: 650px) {
    body.bpp-fullscreen-topic-bg .bpp-home {
        padding-top: 23vh !important;
    }
}

/* v0.3.69 event-configurable image hotspots. */
.bpp-custom-topic-screen .bpp-custom-topic-hotspot{position:absolute;left:var(--x);top:var(--y);width:var(--w);height:var(--h);display:block;pointer-events:auto!important;z-index:20;background:transparent;outline-offset:-3px}
.bpp-custom-topic-screen .bpp-custom-topic-hotspot:hover,.bpp-custom-topic-screen .bpp-custom-topic-hotspot:focus-visible{background:rgba(255,255,255,.13);outline:2px solid rgba(255,255,255,.75)}

body:has(.bpp-custom-topic-screen) .bpp-custom-topic-screen{aspect-ratio:var(--bpp-custom-ratio)!important;width:min(100vw,calc(100vh * var(--bpp-custom-ratio)))!important;height:auto!important;max-height:100vh!important}

/* v0.3.70: clean live hotspots; outlines remain visible in the admin editor. */
.bpp-custom-topic-screen .bpp-custom-topic-hotspot,
.bpp-custom-topic-screen .bpp-custom-topic-hotspot:hover {
    background:transparent!important;
    outline:0!important;
    border:0!important;
    box-shadow:none!important;
}
.bpp-custom-topic-screen .bpp-custom-topic-hotspot:focus-visible {
    background:rgba(255,255,255,.06)!important;
    outline:2px solid rgba(0,105,185,.55)!important;
    outline-offset:-2px;
}

/* v0.3.71: hand cursor over live clickable topic hotspots. */
.bpp-custom-topic-screen .bpp-custom-topic-hotspot,
.bpp-custom-topic-screen .bpp-custom-topic-hotspot:hover { cursor:pointer!important; }

/* v0.3.62 offline readiness / explicit kiosk mode controls */
.bpp-offline-action-row{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:2px}
.bpp-offline-secondary{border:1px solid rgba(255,255,255,.24);border-radius:999px;padding:9px 13px;background:rgba(15,23,42,.72);color:#fff;font:inherit;font-size:.78rem;font-weight:750;cursor:pointer}
.bpp-offline-secondary:hover,.bpp-offline-secondary:focus-visible{background:rgba(30,41,59,.94)}
.bpp-offline-secondary:disabled{opacity:.45;cursor:not-allowed}
.bpp-offline-mode-button.is-active{border-color:#86efac;background:#166534;color:#fff}
@media(max-width:900px){.bpp-offline-action-row{justify-content:flex-start}.bpp-offline-control{align-items:flex-start}.bpp-offline-status{text-align:left}}


/* v0.3.63 always-visible kiosk offline status entry point */
.bpp-kiosk-status-pill{
 position:fixed;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));z-index:2147483000;
 display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:6px 10px;border:1px solid rgba(15,23,42,.16);border-radius:999px;
 background:rgba(255,255,255,.18);color:rgba(15,23,42,.48);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);
 font:700 10px/1.1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.08em;cursor:pointer;opacity:.42;transition:opacity .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}
.bpp-kiosk-status-pill:hover,.bpp-kiosk-status-pill:focus-visible{opacity:1;background:rgba(255,255,255,.94);color:#0f172a;transform:translateY(-1px);outline:none}
.bpp-kiosk-status-dot{width:7px;height:7px;border-radius:50%;background:#64748b;box-shadow:0 0 0 2px rgba(100,116,139,.15)}
.bpp-kiosk-status-pill[data-state="ready"] .bpp-kiosk-status-dot,.bpp-kiosk-status-pill[data-state="offline"] .bpp-kiosk-status-dot{background:#16a34a}
.bpp-kiosk-status-pill[data-state="cached"] .bpp-kiosk-status-dot{background:#ca8a04}
.bpp-kiosk-status-pill[data-state="working"] .bpp-kiosk-status-dot{background:#0284c7;animation:bpp-kiosk-pulse 1s infinite alternate}
.bpp-kiosk-status-pill[data-state="error"]{opacity:.82;color:#991b1b;background:rgba(254,242,242,.88)}
.bpp-kiosk-status-pill[data-state="error"] .bpp-kiosk-status-dot{background:#dc2626}
.bpp-kiosk-status-pill[data-state="offline"]{opacity:.7;background:rgba(240,253,244,.84);color:#166534}
@keyframes bpp-kiosk-pulse{to{opacity:.3}}
@media (pointer:coarse){.bpp-kiosk-status-pill{min-height:38px;padding:8px 12px;font-size:11px}}

/* v0.3.66 deterministic offline manifest audit */
.bpp-offline-manifest-audit{margin:12px 0 8px;padding:10px 12px;border:1px solid rgba(255,255,255,.16);border-radius:10px;font-size:12px;line-height:1.55;color:#dbe5f5;background:rgba(255,255,255,.04)}
.bpp-offline-manifest-list{margin:8px 0 12px;max-height:180px;overflow:auto;white-space:pre-wrap;word-break:break-all;padding:10px;border-radius:8px;background:rgba(0,0,0,.24);font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace;color:#c9d5e8}

