/* =========================================
   PHOTO ZONE PAGE
   공통 인터페이스는 style.css를 그대로 사용
========================================= */

.photo-zone-page {
    position: relative;

    width: 100%;
    min-height: 100vh;
}

.photo-zone-title {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 40;

    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;

    transform: translateX(-50%);
}


/* =========================================
   PHOTO AREA
========================================= */

.photo-zone-section {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 100vh;

    /* 공통 UI를 피해 거의 화면 전체 사용 */
    padding:
        66px
        150px
        50px;
}

.photo-zone-content {
    width: 100%;
    max-width: none;
}

.photo-zone-frame {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    max-height: calc(100vh - 135px);

    overflow: hidden;

    background: #000000;

    border: 1px solid rgba(189, 189, 189, 0.18);
}

.photo-zone-background {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    pointer-events: none;
    user-select: none;
}

.photo-zone-live-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: block;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.photo-zone-camera-video {
    position: fixed;
    top: -10000px;
    left: -10000px;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* =========================================
   START GUIDE
========================================= */

.photo-zone-idle-guide {
    position: absolute;
    bottom: 10%;
    left: 50%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38%;
    height: 62%;

    color: #bdbdbd;

    transform: translateX(-50%);

    pointer-events: none;
}

.photo-zone-guide-outline {
    position: absolute;
    inset: 0;

    border: 1px dashed rgba(189, 189, 189, 0.45);

    border-radius:
        46% 46% 18% 18% /
        24% 24% 12% 12%;
}

.photo-zone-idle-guide span {
    position: relative;

    padding: 4px 7px;

    background: rgba(24, 24, 24, 0.72);

    font-size: 10px;
    font-weight: 400;
    line-height: 1;
}


/* =========================================
   COUNTDOWN / PROCESSING
========================================= */

.photo-zone-countdown,
.photo-zone-processing {
    position: absolute;
    inset: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.20);

    color: #ffffff;
}

.photo-zone-countdown-number {
    font-size: clamp(88px, 13vw, 210px);
    font-weight: 400;
    line-height: 1;
}

.photo-zone-processing {
    background: rgba(0, 0, 0, 0.58);
}

.photo-zone-processing span {
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
}


/* =========================================
   VISITOR RECORD ON IMAGE
========================================= */

.photo-zone-record {
    position: absolute;
    bottom: 2.2%;
    left: 2.4%;
    z-index: 5;

    color: #ffffff;

    font-size: 9px;
    font-weight: 400;
    line-height: 1.45;

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);

    pointer-events: none;
}

.photo-zone-record-title {
    font-weight: 700;
}


/* =========================================
   CONTROLS
========================================= */

.photo-zone-controls {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-top: 10px;
}

.photo-zone-controls button {
    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

.photo-zone-controls button:hover,
.photo-zone-controls button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.photo-zone-controls button:disabled {
    opacity: 0.35;
    cursor: default;
    text-decoration: none;
}

.photo-zone-status {
    margin: 6px 0 0;

    opacity: 0.55;

    font-size: 10px;
    line-height: 1.35;
}

.is-hidden {
    display: none !important;
}

.photo-zone-offscreen {
    position: fixed;
    top: -99999px;
    left: -99999px;

    width: 1px;
    height: 1px;

    pointer-events: none;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .photo-zone-section {
        padding:
            72px
            120px
            50px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .photo-zone-page {
        min-height: 100svh;
    }

    .photo-zone-title {
        position: absolute;
        top: 78px;

        width: calc(100% - 40px);

        font-size: 12px;
        text-align: center;
        white-space: normal;
    }

    .photo-zone-section {
        min-height: 100svh;

        padding:
            118px
            16px
            72px;
    }

    .photo-zone-content {
        width: 100%;
    }

    .photo-zone-idle-guide {
        width: 46%;
        height: 60%;
    }

    .photo-zone-controls {
        flex-wrap: wrap;
        gap: 14px;
    }
}
