:root {
    --maxw: 570px;
    --pad: 16px;
    --kakao: #FEE500;
    --textShadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* 전체 화면 컨테이너 old*/
/*.t3 {*/
/*    width: 100vw;*/
/*    min-height: 100dvh;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    background: #f9fafb;*/

/*}*/

/*.t3-inner {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    max-width: 570px;*/
/*    height: 100dvh;*/
/*    overflow: hidden;*/
/*    background: #f9fafb;*/

/*}*/

/*!* 배경 레이어 *!*/
/*.t3-bg {*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    z-index: 0;*/

/*}*/


html {
    overflow-y: auto !important;
}

#wrap {
    max-width: 570px !important;
    min-width: 320px !important;
}

/* 전체 화면 컨테이너 */
.t3 {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    /*background: #f9fafb;*/

}

.t3-inner {
    position: relative;
    width: 100%;
    max-width: 570px;
    min-height: 100dvh;
    overflow: visible;
    background: #f9fafb;

}

/* 배경 레이어 */
.t3-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100dvh;
    z-index: 0;
    overflow: hidden;

}

.t3-bg .img-content {
    display: block;            /* ✅ display 토글 제거 */
    opacity: 0;                /* ✅ 투명 */
    transition: opacity .2s;   /* ✅ 부드럽게 */
    /*display: none;*/
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t3-bg.is-ready.video video {
    /*display: block;*/
    opacity: 1;
}

.t3-bg.is-ready.image img {
    /*display: block;*/
    opacity: 1;
}

/* 상단 영역*/
.t3-topbar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 12px;

}

/* 왼쪽 프로필 영역 */
.t3-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* 말줄임 대비 */
}

.t3-profile.is-disabled {
    display: none;
}

.t3-avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    /*border: 2px solid rgba(255, 255, 255, 0.9);*/
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.t3-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.t3-profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 6px rgba(0, 0, 0, 0.4);
}

.t3-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.t3-count {
    margin-top: 2px;
    font-size: 13px;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
}

.t3-count span {
    font-size: 12px;
}

/* 오른쪽 단골맺기 버튼 */
.t3-follow-btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: #fe0000;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 1;
    margin-top: 6px;
    margin-right: 6px;
}

.t3-follow-btn.plus-follow-btn {
    padding: 8px 16px;
    line-height: 1.3;
}

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

/* 하단 버튼 영역 */
.t3-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    /*padding: 0 16px calc(16px + env(safe-area-inset-bottom)) 16px;*/
    padding: 0 16px 26px 16px;
}

.t3-cta.gradient {
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0) 100%
    );
}

.secret-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #000;
}

#countdownTimer {
    color: #e60023; /* 빨간 시간 */
    font-variant-numeric: tabular-nums;
}

.cta-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 113px;
    justify-content: flex-end;
}

/* 타임형 간격 제어*/
.cta-stack.time-gap {
    gap: 6px;
}

.finger-guide {
    position: absolute;
    right: 16px;
    bottom: 40px;
    font-size: 55px;
    line-height: 1;
    animation: finger-bounce 1.2s ease-in-out infinite;
    pointer-events: none; /* 클릭 방해 X */
}

@keyframes finger-bounce {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(8px); /* 아래로 */
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
}

.btn-pill {
    height: 45px;
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 19.2px;
    font-weight: 600;
    text-decoration: none;
    color: #000000;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    line-height: 1.1;
    display: none;
}

.btn-pill .sub {
    color: #E53935;
    font-weight: 800;
}

.btn-pill.no-bg {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fff;
    justify-content: left;
    padding-left: 10px;
    align-items: flex-end;
    padding-bottom: 6px;
    text-shadow: 2px 1px 0 rgba(0, 0, 0, 0.85),
    4px 2px 2px rgba(0, 0, 0, 0.55),
    6px 3px 5px rgba(0, 0, 0, 0.35),
    8px 4px 10px rgba(0, 0, 0, 0.22),
    10px 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-pill.secret-timer.no-bg {
    align-items: center;
    padding-bottom: 0 !important;
    padding-left: 26px;
}

.btn-pill.active {
    display: flex;
}

.btn-kakao {
    height: 56px;
    border-radius: 12px;
    background: #fe0000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
    line-height: 1;
}

/* 싱크형, 플친형 비노출 처리*/
.sync-logged, .plus-logged , .webpush-logged, .web-push-off-btn{
    display: none;
}

/* 싱크형, 플친형 노출 처리*/
.sync-logged.active,
.plus-logged.active,
.webpush-logged.active,
.web-push-off-btn.active{
    display: block;
}

.plus-screen .t3-inner form {
    display: none !important;
}


.t3-topbar-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.sync-follow-btn,
.plus-follow-btn {
    position: absolute;
    right: 0;
    top: 0;
}

.people-img {
    display: inline-flex;
    align-items: center;
}

.people-img svg {
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.8));
}

.emoticon {
    margin-bottom: 3px;
}

.timer-box {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.timer-box .unit {
    min-width: 40px;
    height: 44px;
    padding: 0 6px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    flex-direction: column;
}

.timer-box .num {
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.timer-box .label {
    font-size: 9px;
    opacity: 0.7;
    margin-top: 5px;
    color: #fff;
    font-weight: 800;
    margin-right: 0;
}

.timer-sub {
    height: 44px;
    line-height: 1.2;
    margin-bottom: 4.3px;
}

.conversion-message {
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

.conversion-message.active {
    display: flex;
}

.cta-stack.time-gap .conversion-message.active{
    padding-top: 6px;
}

.finger-guide:has(~ .conversion-message.active) {
    bottom: 68px;
}

.t3-follow-btn.is-disabled {
    display: none;
}

.t3-count.is-disabled {
    display: none;
}

.web-push-off-btn {
    position: absolute;
    top: 50px;
    right: 7px;
    z-index: 10;
    background: none !important;
}

.bottom-nav-wrapper {
    max-width: 570px;
}

#footer {
    padding-bottom: 0;
}

#footer .inner {
    margin: 0;
}
