.psc-wrap {
    background: var(--psc-bg);
    color: var(--psc-text);
    border-radius: 24px;
    padding: 24px;
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.psc-wrap:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 24px;
}

.psc-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
}

.psc-logo {
    max-height: 72px;
    max-width: 320px;
    width: auto;
    object-fit: contain;
}

.psc-fullscreen-btn {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: var(--psc-text);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.psc-main-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.psc-timer-box {
    background: var(--psc-timer-bg);
    border-radius: 34px;
    padding: 34px 26px;
    text-align: center;
    width: min(100%, 980px);
    margin: 0 auto;
}

.psc-countdown {
    font-size: clamp(120px, 24vw, 340px);
    line-height: .9;
    font-weight: 900;
    letter-spacing: 3px;
}

.psc-status {
    margin-top: 14px;
    font-size: clamp(18px, 2vw, 26px);
    opacity: .9;
}

.psc-buttons {
    width: min(100%, 1100px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.psc-btn {
    border: none;
    color: #fff;
    border-radius: 999px;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
    padding: 30px 18px;
    cursor: pointer;
    transition: transform .12s ease, filter .12s ease;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.18), 0 10px 24px rgba(0,0,0,.22);
}

.psc-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.psc-btn:active {
    transform: translateY(1px);
}

.psc-btn-green { background: var(--psc-green); }
.psc-btn-yellow { background: var(--psc-yellow); color: #111827; }
.psc-btn-red { background: var(--psc-red); }

.psc-banner-area {
    position: relative;
    width: min(100%, 1100px);
    min-height: 110px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
}

.psc-banner-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psc-banner-item.is-active {
    opacity: 1;
    pointer-events: auto;
}

.psc-banner-image {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .psc-wrap {
        min-height: auto;
        padding: 18px;
    }

    .psc-topbar {
        align-items: center;
    }

    .psc-buttons {
        grid-template-columns: 1fr;
    }

    .psc-btn {
        padding: 24px 14px;
    }

    .psc-banner-image {
        height: 90px;
    }

    .psc-banner-area {
        min-height: 90px;
    }
}


.psc-wrap.psc-pseudo-fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    z-index: 999999;
    border-radius: 0;
    margin: 0;
    padding: 16px;
}

body.psc-no-scroll {
    overflow: hidden;
}

@media (max-width: 900px) {
    .psc-fullscreen-btn {
        position: fixed;
        top: max(10px, env(safe-area-inset-top, 0px));
        right: 10px;
        z-index: 1000000;
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.1;
    }

    .psc-wrap {
        padding-top: 64px;
        min-height: 100dvh;
        border-radius: 0;
    }

    .psc-wrap:fullscreen {
        padding-top: 64px;
    }

    .psc-wrap.psc-pseudo-fullscreen {
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
    }

    .psc-topbar {
        min-height: 48px;
    }

    .psc-logo {
        max-height: 48px;
        max-width: 220px;
    }

    .psc-main-center {
        gap: 18px;
    }

    .psc-timer-box {
        width: 100%;
        padding: 22px 14px;
        border-radius: 22px;
    }

    .psc-countdown {
        font-size: clamp(96px, 28vw, 180px);
    }
}
