/**
 * PB-Buyers Contest page styles.
 */

:root {
    --pb-contest-bg: #edf3fb;
    --pb-contest-ink: #152039;
    --pb-contest-muted: #63718d;
    --pb-contest-blue: #1768f2;
    --pb-contest-navy: #061928;
    --pb-contest-line: #d7e2f1;
    --pb-contest-soft: #f7faff;
    --pb-contest-gold: #d5b75f;
}

/* Future reference: public app pages use the Seller Profile 100vw breakout method so Astra/theme containers cannot cap the plugin header or content width. */
.pb-contest-shell {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--pb-contest-bg);
    color: var(--pb-contest-ink);
    min-height: 100vh;
    overflow-x: hidden;
}

.pb-contest-shell .pb-public-nav {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
}

.pb-contest-page {
    width: min(1760px, 100%);
    margin: 0 auto;
    padding: 18px clamp(12px, 2vw, 32px) 72px;
    box-sizing: border-box;
}

.pb-contest-kicker,
.pb-contest-card-head span,
.pb-contest-results-head span,
.pb-contest-panel-head span {
    margin: 0 0 10px;
    color: #6c7891;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.pb-contest-hero,
.pb-contest-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 540px);
    gap: clamp(22px, 4vw, 64px);
    align-items: stretch;
    padding: clamp(24px, 4vw, 52px);
    margin-bottom: 18px;
    border: 1px solid var(--pb-contest-line);
    border-radius: 18px;
    background: linear-gradient(130deg, #f7fbff 0%, #edf5ff 58%, #f6f9fe 100%);
    box-shadow: 0 18px 44px rgba(8, 24, 50, .08);
}

.pb-contest-hero h1,
.pb-contest-empty h2 {
    max-width: 960px;
    margin: 0;
    color: var(--pb-contest-ink);
    font-size: clamp(2.2rem, 4.1vw, 5.5rem);
    line-height: .94;
    letter-spacing: -.058em;
}

.pb-contest-hero p,
.pb-contest-empty p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--pb-contest-muted);
    font-size: 1.03rem;
    line-height: 1.65;
}

.pb-contest-hero-actions,
.pb-contest-empty-actions,
.pb-contest-filter-actions,
.pb-contest-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-contest-hero-actions,
.pb-contest-empty-actions {
    margin-top: 22px;
}

.pb-contest-link-btn,
.pb-contest-secondary-btn,
.pb-contest-filter-actions button,
.pb-contest-filter-actions a,
.pb-contest-primary-btn,
.pb-contest-card-actions a,
.pb-contest-card-join,
.pb-contest-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid #8ab4ff;
    font-size: .92rem;
    font-weight: 900;
    text-decoration: none;
}

.pb-contest-link-btn,
.pb-contest-filter-actions button,
.pb-contest-primary-btn,
.pb-contest-card-actions a {
    background: var(--pb-contest-blue);
    color: #fff;
}

.pb-contest-secondary-btn,
.pb-contest-filter-actions a,
.pb-contest-card-join,
.pb-contest-pagination a {
    background: #fff;
    color: #075bd1;
}

.pb-contest-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pb-contest-hero-stats div {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--pb-contest-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}

.pb-contest-hero-stats strong {
    color: #074a9d;
    font-size: clamp(2.3rem, 4vw, 4.6rem);
    line-height: 1;
}

.pb-contest-hero-stats span {
    margin-top: 8px;
    color: #65728c;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.pb-contest-main-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.pb-contest-sidebar {
    display: grid;
    gap: 18px;
}

.pb-contest-filter-card,
.pb-contest-detail,
.pb-contest-rules,
.pb-contest-grid-panel,
.pb-contest-empty {
    border: 1px solid var(--pb-contest-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 38px rgba(9, 24, 45, .08);
}

.pb-contest-filter-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    position: sticky;
    top: 18px;
}

.pb-contest-card-head,
.pb-contest-results-head,
.pb-contest-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pb-contest-card-head a {
    color: #075bd1;
    font-weight: 900;
}

.pb-contest-filter-card h2,
.pb-contest-results-head h2,
.pb-contest-panel-head h2 {
    margin: 0;
    color: var(--pb-contest-ink);
    font-size: 1.35rem;
    letter-spacing: -.04em;
}

.pb-contest-filter-card label {
    margin-top: 8px;
    color: #1f2d46;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.pb-contest-filter-card input,
.pb-contest-filter-card select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--pb-contest-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pb-contest-ink);
    padding: 0 14px;
    box-shadow: 0 4px 12px rgba(12, 30, 60, .05);
}

.pb-contest-filter-actions {
    margin-top: 8px;
}

.pb-contest-filter-actions button,
.pb-contest-filter-actions a {
    flex: 1 1 120px;
}

.pb-contest-content {
    display: grid;
    gap: 18px;
}

.pb-contest-detail {
    overflow: hidden;
}

.pb-contest-detail-banner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    min-height: 280px;
    padding: clamp(26px, 4vw, 54px);
    background: radial-gradient(circle at 78% 28%, rgba(255, 216, 103, .38), transparent 25%), linear-gradient(135deg, #07223a, #0d4f8a 52%, #1667f2);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pb-contest-detail-banner.has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(6, 25, 40, .88), rgba(15, 91, 180, .72)), var(--pb-contest-page-banner);
    background-position: center;
    background-size: cover;
}

.pb-contest-detail-banner > * {
    position: relative;
    z-index: 1;
}

.pb-contest-detail-banner h2 {
    max-width: 840px;
    margin: 14px 0 10px;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 6.2rem);
    line-height: .9;
    letter-spacing: -.055em;
}

.pb-contest-detail-banner p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
    line-height: 1.6;
}

.pb-contest-detail-banner > strong {
    align-self: center;
    font-size: clamp(5rem, 10vw, 12rem);
    filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .28));
    line-height: 1;
}

.pb-contest-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 13px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #004aa6;
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pb-contest-status--active {
    background: #dcfce7;
    color: #166534;
}

.pb-contest-status--upcoming {
    background: #e0f2fe;
    color: #075985;
}

.pb-contest-status--ended {
    background: #f1f5f9;
    color: #475569;
}

.pb-contest-detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.35fr;
    background: linear-gradient(135deg, #0b3d78, #1768f2);
    color: #fff;
}

.pb-contest-detail-stats > div {
    padding: 20px 24px;
    border-right: 1px solid rgba(255, 255, 255, .22);
}

.pb-contest-detail-stats > div:last-child {
    border-right: 0;
}

.pb-contest-detail-stats span,
.pb-contest-detail-footer span,
.pb-contest-date-stack span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
    font-weight: 800;
}

.pb-contest-detail-stats strong {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
}

.pb-contest-detail-stats strong em {
    font-style: normal;
}

.pb-contest-timer {
    display: grid;
    grid-template-columns: repeat(4, minmax(48px, 1fr));
    gap: 8px;
}

.pb-contest-timer b {
    display: grid;
    justify-items: center;
    padding: 8px 5px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
}

.pb-contest-timer em {
    font-size: 1.3rem;
    font-style: normal;
    line-height: 1;
}

.pb-contest-timer small {
    margin-top: 4px;
    font-size: .65rem;
    opacity: .82;
}

.pb-contest-detail-footer {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
}

.pb-contest-detail-footer span,
.pb-contest-date-stack span {
    color: var(--pb-contest-muted);
}

.pb-contest-detail-footer strong,
.pb-contest-date-stack strong {
    color: var(--pb-contest-ink);
}

.pb-contest-participants {
    display: flex;
    align-items: center;
}

.pb-contest-participants a,
.pb-contest-participants strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: -9px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e8f1ff;
    color: #074a9d;
    font-size: .72rem;
    font-weight: 900;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(10, 28, 55, .12);
}

.pb-contest-participants a:first-child {
    margin-left: 0;
}

.pb-contest-participants img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-contest-participants strong {
    width: 48px;
    background: var(--pb-contest-blue);
    color: #fff;
}

.pb-contest-participants strong[hidden] {
    display: none !important;
}

.pb-contest-primary-btn,
.pb-contest-card-join {
    cursor: pointer;
}

.pb-contest-primary-btn.is-joined,
.pb-contest-card-join.is-joined {
    background: #0f5fbf;
    color: #fff;
}

.pb-contest-primary-btn.is-loading,
.pb-contest-card-join.is-loading {
    opacity: .74;
    pointer-events: none;
}

.pb-contest-rules,
.pb-contest-grid-panel {
    padding: clamp(18px, 2vw, 28px);
}

.pb-contest-rules-copy {
    margin-top: 14px;
    color: var(--pb-contest-muted);
    line-height: 1.72;
}

.pb-contest-rules-copy p:first-child {
    margin-top: 0;
}

.pb-contest-grid-panel {
    display: grid;
    gap: 18px;
}

.pb-contest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.pb-contest-card {
    border: 1px solid var(--pb-contest-line);
    border-radius: 15px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(9, 24, 45, .07);
}

.pb-contest-card-banner {
    display: grid;
    place-items: center;
    min-height: 170px;
    position: relative;
    background: linear-gradient(135deg, #dfe9f7, #f8fbff);
    text-decoration: none;
}

.pb-contest-card-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-contest-card-banner span {
    font-size: 4rem;
}

.pb-contest-card-banner .pb-contest-status {
    position: absolute;
    top: 12px;
    left: 12px;
}

.pb-contest-card-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.pb-contest-card h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.15;
}

.pb-contest-card h3 a {
    color: var(--pb-contest-ink);
}

.pb-contest-card p {
    min-height: 48px;
    margin: 0;
    color: var(--pb-contest-muted);
    line-height: 1.52;
}

.pb-contest-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--pb-contest-line);
}

.pb-contest-card dt {
    color: #6b7892;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pb-contest-card dd {
    margin: 4px 0 0;
    color: #074a9d;
    font-weight: 900;
}

.pb-contest-card-actions a,
.pb-contest-card-actions button {
    flex: 1 1 120px;
}

.pb-contest-list-empty {
    padding: 24px;
    border: 1px dashed var(--pb-contest-line);
    border-radius: 14px;
    background: #f8fbff;
    color: var(--pb-contest-muted);
    font-weight: 800;
}

.pb-contest-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.pb-contest-pagination span {
    color: var(--pb-contest-muted);
    font-weight: 900;
}

@media (max-width: 1180px) {
    .pb-contest-hero,
    .pb-contest-empty,
    .pb-contest-main-grid,
    .pb-contest-detail-footer {
        grid-template-columns: 1fr;
    }

    .pb-contest-filter-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .pb-contest-page {
        padding-inline: 10px;
    }

    .pb-contest-hero-stats,
    .pb-contest-detail-stats,
    .pb-contest-card dl {
        grid-template-columns: 1fr;
    }

    .pb-contest-detail-stats > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .pb-contest-detail-stats > div:last-child {
        border-bottom: 0;
    }

    .pb-contest-detail-banner {
        flex-direction: column;
    }
}

.pb-contest-entries {
    border: 1px solid var(--pb-contest-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 38px rgba(9, 24, 45, .08);
    padding: clamp(18px, 2vw, 28px);
}

.pb-contest-entries-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.pb-contest-entries-head span {
    display: block;
    margin: 0 0 10px;
    color: #6c7891;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.pb-contest-entries-head h2 {
    margin: 0;
    color: var(--pb-contest-ink);
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    letter-spacing: -.04em;
}

.pb-contest-entries-head p {
    max-width: 420px;
    margin: 0;
    color: var(--pb-contest-muted);
    font-weight: 700;
    line-height: 1.55;
}

.pb-contest-entry-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.pb-contest-entry-card {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(23, 104, 242, .16);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(9, 24, 45, .07);
}

.pb-contest-entry-card.is-voted {
    border-color: rgba(213, 183, 95, .62);
}

.pb-contest-entry-media {
    aspect-ratio: 16 / 10;
    background: #eaf1fb;
}

.pb-contest-entry-media img,
.pb-contest-entry-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-contest-entry-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.pb-contest-entry-seller {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pb-contest-entry-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #173956, #d6b86d);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 0 2px rgba(213, 183, 95, .45);
}

.pb-contest-entry-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-contest-entry-seller span {
    display: block;
    color: #6b7892;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pb-contest-entry-seller a:not(.pb-contest-entry-avatar) {
    color: var(--pb-contest-ink);
    font-weight: 900;
    text-decoration: none;
}

.pb-contest-entry-body h3 {
    margin: 0;
    color: var(--pb-contest-ink);
    font-size: 1.22rem;
    line-height: 1.18;
}

.pb-contest-entry-body p {
    margin: 0;
    color: var(--pb-contest-muted);
    line-height: 1.58;
}

.pb-contest-entry-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}

.pb-contest-entry-footer strong {
    color: #074a9d;
    font-size: .95rem;
    font-weight: 900;
    margin-right: auto;
}

.pb-contest-entry-link,
.pb-contest-entry-vote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #8ab4ff;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 900;
    text-decoration: none;
}

.pb-contest-entry-link {
    background: #fff;
    color: #075bd1;
}

.pb-contest-entry-vote {
    cursor: pointer;
    background: var(--pb-contest-blue);
    color: #fff;
}

.pb-contest-entry-vote.is-disabled,
.pb-contest-entry-vote:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.pb-contest-entry-vote.is-voted {
    background: #0f5fbf;
    opacity: 1;
}

.pb-contest-entries-empty {
    padding: 22px;
    border: 1px dashed var(--pb-contest-line);
    border-radius: 14px;
    background: #f8fbff;
    color: var(--pb-contest-muted);
}

.pb-contest-entries-empty strong {
    display: block;
    color: var(--pb-contest-ink);
    margin-bottom: 6px;
}

.pb-contest-primary-btn:disabled,
.pb-contest-card-join:disabled {
    cursor: not-allowed;
    opacity: .68;
}

@media (max-width: 680px) {
    .pb-contest-entries-head {
        flex-direction: column;
    }
}


/* Focused public contest layout: search + active contest, then compact seller submissions. */
.pb-contest-page--focused {
    display: grid;
    gap: 18px;
}

.pb-contest-main-grid--featured {
    margin-bottom: 0;
}

.pb-contest-page--focused .pb-contest-content {
    min-width: 0;
}

.pb-contest-entries-head--compact {
    align-items: center;
    margin-bottom: 16px;
}

.pb-contest-entry-list--cards {
    grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
    gap: 18px;
    align-items: start;
}

.pb-contest-entry-card--compact {
    width: min(100%, 210px);
    border-radius: 0;
    border-color: rgba(11, 28, 48, .15);
    background: #fff;
    justify-self: start;
    box-shadow: 0 8px 18px rgba(9, 24, 45, .12);
}

.pb-contest-entry-card--compact .pb-contest-entry-media--featured {
    aspect-ratio: 1 / 1.12;
    position: relative;
    overflow: hidden;
    background: #e9edf5;
}

.pb-contest-entry-card--compact .pb-contest-entry-media img,
.pb-contest-entry-card--compact .pb-contest-entry-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-contest-entry-media-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(21, 32, 57, .28);
    font-size: 2.4rem;
}

.pb-contest-entry-vote-badge,
.pb-contest-entry-photo-badge {
    position: absolute;
    z-index: 2;
    top: 0;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1;
}

.pb-contest-entry-vote-badge {
    left: 0;
    background: rgba(111, 72, 105, .86);
}

.pb-contest-entry-photo-badge {
    right: 0;
    gap: 5px;
    background: rgba(65, 177, 83, .9);
}

.pb-contest-entry-photo-badge em {
    font-style: normal;
    font-size: .8rem;
}

.pb-contest-entry-body--compact {
    gap: 8px;
    padding: 9px 10px 10px;
}

.pb-contest-entry-body--compact h3 {
    margin: 0;
    min-height: 24px;
    font-size: .96rem;
    line-height: 1.2;
    word-break: break-word;
}

.pb-contest-entry-body--compact h3 a {
    color: #283044;
    text-decoration: none;
}

.pb-contest-entry-actions-compact {
    display: grid;
    gap: 7px;
}

.pb-contest-entry-actions-compact .pb-contest-entry-link,
.pb-contest-entry-actions-compact .pb-contest-entry-vote {
    width: 100%;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    padding: 7px 10px;
    gap: 8px;
    background: #b97da0;
    color: #fff;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pb-contest-entry-actions-compact .pb-contest-entry-link:hover,
.pb-contest-entry-actions-compact .pb-contest-entry-vote:hover {
    filter: brightness(.96);
}

.pb-contest-entry-actions-compact .pb-contest-entry-link.is-disabled,
.pb-contest-entry-actions-compact .pb-contest-entry-vote.is-disabled,
.pb-contest-entry-actions-compact .pb-contest-entry-vote:disabled {
    opacity: .72;
    cursor: not-allowed;
}

.pb-contest-entry-actions-compact .pb-contest-entry-vote.is-voted {
    background: #8d6281;
    opacity: 1;
}

@media (max-width: 1180px) {
    .pb-contest-entry-card--compact {
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .pb-contest-entry-list--cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Contest banner polish: use the contest featured image in the right-side feature slot instead of the trophy icon. */
.pb-contest-detail-banner.has-featured-panel {
    align-items: stretch;
}

.pb-contest-detail-featured-image {
    align-self: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 26px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .30);
    flex: 0 0 clamp(220px, 28vw, 420px);
    height: clamp(190px, 22vw, 310px);
    margin: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.pb-contest-detail-featured-image::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .12));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.pb-contest-detail-featured-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pb-contest-detail-share {
    display: grid;
    gap: 10px;
    justify-self: end;
    min-width: min(100%, 420px);
}

.pb-contest-detail-share-head {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.pb-contest-detail-share-head strong {
    color: var(--pb-contest-muted);
    font-size: .82rem;
    font-weight: 900;
}

.pb-contest-detail-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pb-contest-detail-share-actions a,
.pb-contest-detail-share-actions button {
    align-items: center;
    background: #0f63dc;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
    padding: 10px 12px;
    text-decoration: none;
}

.pb-contest-detail-share-actions a:hover,
.pb-contest-detail-share-actions button:hover,
.pb-contest-detail-share-actions a:focus,
.pb-contest-detail-share-actions button:focus {
    background: #0a4da8;
    color: #fff;
}

.pb-contest-detail-share small[data-pb-share-status] {
    color: var(--pb-contest-muted);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    min-height: 1em;
    text-align: right;
}

@media (max-width: 1180px) {
    .pb-contest-detail-share {
        justify-self: stretch;
        min-width: 0;
    }

    .pb-contest-detail-share-actions {
        justify-content: flex-start;
    }

    .pb-contest-detail-share small[data-pb-share-status] {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .pb-contest-detail-featured-image {
        flex: none;
        height: 230px;
        width: 100%;
    }
}


/* Contest page visual alignment: soften the bright blue contest card into the site's dark navy/gold treatment. */
.pb-contest-page--focused .pb-contest-detail {
    border-color: rgba(212, 173, 95, .28);
    background: #080b12;
    box-shadow: 0 22px 52px rgba(0, 0, 0, .22);
}

.pb-contest-page--focused .pb-contest-detail-banner {
    background:
        radial-gradient(circle at 18% 12%, rgba(214, 174, 95, .22), transparent 26%),
        radial-gradient(circle at 82% 18%, rgba(92, 143, 231, .20), transparent 26%),
        linear-gradient(135deg, #0d1017 0%, #0a1120 48%, #071525 100%);
    color: #f8f4ec;
    isolation: isolate;
}

.pb-contest-page--focused .pb-contest-detail-banner::before {
    background:
        linear-gradient(90deg, rgba(8, 10, 15, .94) 0%, rgba(8, 10, 15, .82) 42%, rgba(8, 10, 15, .42) 68%, rgba(8, 10, 15, .20) 100%),
        radial-gradient(circle at 78% 45%, rgba(214, 174, 95, .16), transparent 32%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.pb-contest-page--focused .pb-contest-detail-banner::after {
    background:
        linear-gradient(90deg, rgba(214, 174, 95, .58), transparent 42%),
        radial-gradient(circle at 92% 8%, rgba(248, 211, 141, .18), transparent 16%);
    content: "";
    height: 1px;
    inset: auto 0 0;
    opacity: .85;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.pb-contest-page--focused .pb-contest-detail-banner h2 {
    color: #f8f4ec;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -.035em;
    text-shadow: 0 18px 34px rgba(0, 0, 0, .32);
}

.pb-contest-page--focused .pb-contest-detail-banner p {
    color: rgba(255, 255, 255, .72);
}

.pb-contest-page--focused .pb-contest-status {
    background: linear-gradient(135deg, rgba(248, 224, 173, .96), rgba(212, 173, 95, .92));
    color: #17120a;
    box-shadow: 0 10px 24px rgba(214, 174, 95, .18);
}

.pb-contest-page--focused .pb-contest-detail-stats {
    background: linear-gradient(135deg, #111722 0%, #0b1320 48%, #0c1b2e 100%);
    border-top: 1px solid rgba(248, 211, 141, .16);
}

.pb-contest-page--focused .pb-contest-detail-stats > div {
    border-right-color: rgba(248, 211, 141, .14);
}

.pb-contest-page--focused .pb-contest-detail-stats span,
.pb-contest-page--focused .pb-contest-detail-footer span,
.pb-contest-page--focused .pb-contest-date-stack span {
    color: rgba(248, 211, 141, .78);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pb-contest-page--focused .pb-contest-detail-stats strong {
    color: #f8f4ec;
}

.pb-contest-page--focused .pb-contest-timer b {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(248, 211, 141, .18);
}

.pb-contest-page--focused .pb-contest-detail-footer {
    background: linear-gradient(180deg, #f8f4ec 0%, #f0eadf 100%);
    border-top: 1px solid rgba(212, 173, 95, .24);
}

.pb-contest-page--focused .pb-contest-detail-footer strong,
.pb-contest-page--focused .pb-contest-date-stack strong {
    color: #172033;
}

.pb-contest-page--focused .pb-contest-participants a,
.pb-contest-page--focused .pb-contest-participants strong {
    background: #101722;
    border-color: #f8f4ec;
    color: #f3db9e;
}

.pb-contest-page--focused .pb-contest-participants strong {
    background: linear-gradient(135deg, #17120a, #d4ad5f);
    color: #fff;
}

.pb-contest-page--focused .pb-contest-detail-share-head strong,
.pb-contest-page--focused .pb-contest-detail-share small[data-pb-share-status] {
    color: #4e5a70;
}

.pb-contest-page--focused .pb-contest-detail-share-actions a,
.pb-contest-page--focused .pb-contest-detail-share-actions button {
    background: #111722;
    border: 1px solid rgba(212, 173, 95, .46);
    color: #f4dfad;
}

.pb-contest-page--focused .pb-contest-detail-share-actions a:hover,
.pb-contest-page--focused .pb-contest-detail-share-actions button:hover,
.pb-contest-page--focused .pb-contest-detail-share-actions a:focus,
.pb-contest-page--focused .pb-contest-detail-share-actions button:focus {
    background: linear-gradient(135deg, #f6e0ad 0%, #d4ad5f 52%, #f8e3ae 100%);
    color: #17120a;
}

/* Keep the contest image in the resized right-side slot, but blend it into the banner instead of framing it. */
.pb-contest-page--focused .pb-contest-detail-banner.has-featured-panel {
    align-items: center;
    min-height: 280px;
    padding-right: clamp(280px, 36vw, 540px);
}

.pb-contest-page--focused .pb-contest-detail-banner.has-featured-panel > div {
    max-width: 820px;
}

.pb-contest-page--focused .pb-contest-detail-featured-image {
    align-self: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex: none;
    height: clamp(205px, 22vw, 315px);
    margin: 0;
    overflow: visible;
    position: absolute;
    right: clamp(18px, 3.5vw, 58px);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(260px, 30vw, 470px);
    z-index: 1;
}

.pb-contest-page--focused .pb-contest-detail-featured-image::before {
    background: radial-gradient(circle at 50% 50%, rgba(248, 211, 141, .18), transparent 66%);
    content: "";
    filter: blur(12px);
    inset: 8% 4% 0;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.pb-contest-page--focused .pb-contest-detail-featured-image::after {
    content: none;
}

.pb-contest-page--focused .pb-contest-detail-featured-image img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    opacity: .86;
    width: 100%;
    filter: saturate(.9) contrast(1.03) drop-shadow(0 28px 42px rgba(0, 0, 0, .48));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 86%, transparent 100%);
}

@media (max-width: 1180px) {
    .pb-contest-page--focused .pb-contest-detail-banner.has-featured-panel {
        padding-right: clamp(220px, 34vw, 400px);
    }

    .pb-contest-page--focused .pb-contest-detail-featured-image {
        width: clamp(220px, 30vw, 360px);
    }
}

@media (max-width: 760px) {
    .pb-contest-page--focused .pb-contest-detail-banner.has-featured-panel {
        padding-right: clamp(22px, 4vw, 54px);
        padding-bottom: 230px;
    }

    .pb-contest-page--focused .pb-contest-detail-featured-image {
        bottom: 0;
        height: 220px;
        left: 50%;
        max-width: 92%;
        right: auto;
        top: auto;
        transform: translateX(-50%);
        width: 360px;
    }
}


/* Contest featured image background treatment: uploaded featured image now blends into the banner as low-opacity background art. */
.pb-contest-page--focused .pb-contest-detail-banner.has-featured-background,
.pb-contest-detail-banner.has-featured-background {
    align-items: center;
    isolation: isolate;
    min-height: clamp(300px, 31vw, 430px);
    overflow: hidden;
    padding-right: clamp(26px, 5vw, 72px);
}

.pb-contest-detail-banner-copy {
    max-width: 760px;
    position: relative;
    z-index: 3;
}

.pb-contest-page--focused .pb-contest-detail-banner.has-featured-background::before,
.pb-contest-detail-banner.has-featured-background::before {
    background-image: var(--pb-contest-page-banner);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: min(62vw, 760px) auto;
    content: "";
    inset: 0;
    opacity: .30;
    pointer-events: none;
    position: absolute;
    transform: scale(1.08);
    transform-origin: right center;
    z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.16) 26%, #000 58%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.16) 26%, #000 58%, #000 100%);
}

.pb-contest-page--focused .pb-contest-detail-banner.has-featured-background::after,
.pb-contest-detail-banner.has-featured-background::after {
    background:
        linear-gradient(90deg, rgba(6, 8, 13, .98) 0%, rgba(8, 11, 18, .88) 38%, rgba(8, 11, 18, .56) 68%, rgba(8, 11, 18, .70) 100%),
        radial-gradient(circle at 78% 42%, rgba(214, 174, 95, .20), transparent 34%),
        linear-gradient(90deg, rgba(214, 174, 95, .58), transparent 42%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.pb-contest-page--focused .pb-contest-detail-banner.has-featured-background > *,
.pb-contest-detail-banner.has-featured-background > * {
    position: relative;
    z-index: 3;
}

.pb-contest-page--focused .pb-contest-detail-banner.has-featured-background h2,
.pb-contest-detail-banner.has-featured-background h2 {
    max-width: 680px;
}

.pb-contest-page--focused .pb-contest-detail-banner.has-featured-background p,
.pb-contest-detail-banner.has-featured-background p {
    max-width: 640px;
}

/* Legacy safety: hide the old right-side image slot if an older template is cached while the new background treatment is active. */
.pb-contest-detail-banner.has-featured-background .pb-contest-detail-featured-image {
    display: none !important;
}

@media (max-width: 1180px) {
    .pb-contest-page--focused .pb-contest-detail-banner.has-featured-background::before,
    .pb-contest-detail-banner.has-featured-background::before {
        background-size: min(72vw, 680px) auto;
        opacity: .24;
    }
}

@media (max-width: 760px) {
    .pb-contest-page--focused .pb-contest-detail-banner.has-featured-background,
    .pb-contest-detail-banner.has-featured-background {
        min-height: 360px;
        padding: 34px 24px;
    }

    .pb-contest-page--focused .pb-contest-detail-banner.has-featured-background::before,
    .pb-contest-detail-banner.has-featured-background::before {
        background-position: center bottom;
        background-size: 110% auto;
        opacity: .18;
        transform: scale(1.0);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 100%);
    }

    .pb-contest-page--focused .pb-contest-detail-banner.has-featured-background::after,
    .pb-contest-detail-banner.has-featured-background::after {
        background: linear-gradient(180deg, rgba(6, 8, 13, .94) 0%, rgba(8, 11, 18, .82) 56%, rgba(8, 11, 18, .92) 100%);
    }
}

/* Focused contest pages now show the primary contest action inside the hero banner. */
.pb-contest-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.pb-contest-detail-join {
    background: #e3c45f;
    border-color: rgba(227, 196, 95, 0.9);
    color: #07111d;
    min-width: 150px;
}

.pb-contest-detail-join:hover,
.pb-contest-detail-join:focus {
    background: #f0d77a;
    color: #07111d;
}

.pb-contest-detail-join.is-joined {
    background: #0f5fbf;
    border-color: #0f5fbf;
    color: #fff;
}

.pb-contest-detail-join:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}
