
@font-face {
    font-family: 'Variable';
    src: url('../../resources/images/main/font/SUIT-Variable.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'neoguri-Bold';
    src: url('../../resources/images/main/font/neoguri-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 전체 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Variable', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.4;
    overflow-x: hidden;
    word-break:keep-all;
    font-weight: bold;
}

input, p, div { font-weight: bold; }

/* 전역 스크롤바 투명 처리: 모든 스크롤 구간에서 배경과 손잡이를 투명화 */
html,
body,
* {
    scrollbar-width: none; /* Firefox: 스크롤 자체를 표시하지 않도록 설정 */
    scrollbar-color: transparent transparent; /* Firefox: 트랙과 손잡이를 모두 투명하게 지정 */
}

/* WebKit 기반 브라우저 전역 스크롤 투명 설정 */
*::-webkit-scrollbar {
    width: 0; /* 스크롤 영역 너비 0으로 설정해 시각적으로 숨김 */
    background: transparent; /* 스크롤 영역 배경을 투명화 */
}

*::-webkit-scrollbar-track {
    background: transparent; /* 스크롤 트랙 배경 투명 처리 */
}

*::-webkit-scrollbar-thumb {
    background-color: transparent; /* 스크롤 손잡이 투명 처리 */
    border-radius: 4px; /* 손잡이 모서리 형태 유지 */
    border: 0; /* 불필요한 테두리 제거 */
}

*::-webkit-scrollbar-thumb:hover {
    background-color: transparent; /* 호버 시에도 투명 유지 */
}




.align-c {text-align: center !important; }
.width-50 { width: 50px !important; }
.width-66-p { width: 66.66% !important; }
.width-100-p { width: 100% !important; }
.margin-2 { margin: 2px !important; }
.margin-auto { margin: 0 auto !important; }
.margin-t-15 { margin-top: 15px !important; }
.font-13 { font-size: 13px !important; padding:12px 7px !important; }
.font-34 { font-size: 34px !important; }
.padding-0 { padding: 0 !important; }
.padding-b-45 { padding-bottom: 45px !important; }
.padding-t-35 { padding-top: 35px !important; }
.margin-b-30 { margin-bottom: 30px !important; }
.margin-b-16 { margin-bottom: 16px !important; }
.margin-0 { margin: 0 !important; }
.width-70-p { max-width: 70% !important; }
.padding-t-0 { padding-top: 0px !important; }
.padding-t-15 { padding-top: 15px !important; }
.margin-b-15 { margin-bottom: 15px !important; }
.margin-b-7 { margin-bottom: 7px !important; }
.margin-t-10 { margin-top: 10px !important; }
.margin-t-20 { margin-top: 20px !important; }
.margin-t-40 { margin-top: 40px !important; }
.margin-t-m15 { margin-top: -15px !important; }
.orange-bg { background:#F8EDE2; border-radius: 50px; padding: 10px; }
.font-white { color: white !important; }
.link-more { text-align:center; padding-top:20px; }
.link-more a {color:#438EFF; font-size:14px; }
.link-more a:active {color:#438EFF;}
.grid-1 {
    grid-template-columns: 1fr !important;
    width: 255px;
    margin: 0 auto;    
}
.display-flex {display: flex !important;align-items: center; }
.display-flex label {     
    width: 100px !important;
    color: black;
    font-size: 16px;
    font-weight: bold;
}


/* 메인 컨테이너 */
.main-container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
}

/* 배경 장식 요소 */
.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* 상단 제목 영역 */
.title-section {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.title-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
    border-radius: 20px;
    padding: 30px 35px;
    text-align: center;
    box-shadow: 
        0 8px 20px rgba(255, 152, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-width: 400px;
    width: 100%;
    border: 2px solid rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.title-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.title-box h1 {
    font-size: 26px;
    font-weight: 800;
    color: #ff6b00;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.title-box h2 {
    font-size: 24px;
    font-weight: 700;
    color: #d32f2f;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}





/* 하단 유의사항 영역 */
.footer-section {
    margin-top: auto;
}

.footer-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 4px 12px rgba(255, 152, 0, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-box:hover {
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(255, 152, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
}


.footer-text {
    font-size: 17px;
    font-weight: 700;
    color: #e65100;
    flex: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.footer-indicator {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 
        0 2px 4px rgba(76, 175, 80, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

#welcomePopup .popup-content { padding:0;max-height: 95%; }
#welcomePopup .popup-confirm-btn { 
    position:absolute; 
    left: 24%; 
    top:73%; 
    width: 51%; 
    height:9%;
    border:0;
    font-size: 0px;
    background: transparent;
    box-shadow: none;
 }
.popup-character-enter { 
    position:relative;
    overflow: hidden; 
    width:100% 
}
.popup-character-enter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* 이미지를 중앙에 배치 */
}
.img-intro-gif { position:absolute; top:45%; left:0; width:100%; height:auto !important ; object-fit: inherit; object-position: inherit;}


/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-section,
.menu-section,
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.menu-section {
    animation-delay: 0.2s;
}

.footer-section {
    animation-delay: 0.4s;
}

.menu-item:active img {
    transform: scale(1.1) translateY(1px);
}

/* 로딩 상태 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 팝업 오버레이 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 팝업 콘텐츠 */
.popup-content {
    background: white;
    border-radius: 23px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 95%;
    overflow-y: auto;
    position: relative;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: scale(0.85) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* AI포토 소개 팝업 스타일 */
/* 기존 스타일은 933줄 이후의 새로운 스타일로 대체됨 */

.popup-overlay.show .popup-content,
.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 팝업 닫기 버튼 */
.popup-close {
    position: absolute;
    top: 9px;
    right: 12px;
    background: none;
    border: 0;
    font-size: 50px;
    color: black;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    line-height: 1;
    transform: none;
}

.popup-close.white { color: white}

/* 팝업 제목 */
.popup-title {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 30px;
}

.popup-title h2 {
    font-size: 30px;
    font-weight: bold;
    color: #B6100D;
    margin-bottom: 0;
    line-height: 1.3;
    font-family: 'neoguri-Bold';
}

.popup-title h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.3;
    font-family: 'neoguri-Bold';
}

/* 너구리 캐릭터 */
.popup-character {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.neoguri-character {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 너구리 얼굴 */
.neoguri-character::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DEB887 0%, #F4A460 100%);
    border-radius: 50%;
    top: 20px;
    left: 20px;
}

/* 너구리 눈 */
.neoguri-character::after {
    content: '👀';
    position: absolute;
    font-size: 24px;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

/* 제품 이미지들 */
.popup-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.product-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    background-color: #f9f9f9;
}

.ramen-package {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: white;
}

.happiness-card {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.kelp-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.qr-card {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.product-item span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* 팝업 메시지 */
.popup-message {
    text-align: center;
    margin-bottom: 25px;
}

.popup-message p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

/* ============================================
   공통 버튼 스타일 - 이미지 스타일 적용
   모든 버튼에 자동으로 적용됩니다
   ============================================ */
button:not(.popup-close),
input[type="button"],
input[type="submit"] {
    /* 기본 스타일 */
    background-color: #ffffff;
    color: #000000;
    border: 1.5px solid #000000;
    border-radius: 5px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: normal;
    font-family: 'Variable', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    margin: 20px auto;
}

/* 호버 효과 */
button:not(.popup-close):hover:not(:disabled),
input[type="button"]:hover:not(:disabled),
input[type="submit"]:hover:not(:disabled) {
    background-color: #f5f5f5;
}

/* 액티브 효과 */
button:not(.popup-close):active:not(:disabled),
input[type="button"]:active:not(:disabled),
input[type="submit"]:active:not(:disabled) {
    background-color: #e0e0e0;
    transform: scale(0.98);
}

/* 비활성화 상태 */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
    background-color: #f5f5f5;
    color: #999999;
    border: 2px solid #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

button:disabled:hover,
input[type="button"]:disabled:hover,
input[type="submit"]:disabled:hover {
    background-color: #f5f5f5;
    transform: none;
}

/* 확인 버튼 - 공통 스타일 상속, width만 추가 */
.popup-confirm-btn {
    width: 40%;
    padding: 15px;
}

/* 이벤트 유의사항 팝업 스타일 */
.notice-popup {
    max-width: 450px;
    max-height: 95%;
}

.notice-content {
    margin-bottom: 25px;
    overflow-y: auto;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 25px;
}

.notice-list li {
    font-size: 13px;
    line-height: 1.5;
    color: #585858;
    padding-left: 9px;
    text-indent: -9px;
    position: relative;
    list-style: none;
}
.notice-content h3 {
    font-size: 14px;
    font-weight: bold;
    color:#585858;
}

.notice-list li::before {
    content: '•';
    color: #333;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* AI포토만들기 소개 팝업 스타일 */
.ai-photo-intro-popup {
    max-width: 500px;
    max-height: 95%;
    overflow-y: auto;
    padding: 0;
    position: relative;
}

/* 닫기 버튼이 빨간 배경 위에 잘 보이도록 */
.ai-photo-intro-popup .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.ai-photo-intro-popup .popup-close:hover {
    background: white;
    color: #ff4444;
    border-color: #ff4444;
}

/* 상단 빨간색 배경 영역 */
.popup-header-red {
    background-color: #ff4444;
    color: white;
    padding: 25px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.popup-header-red h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.popup-header-red p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* .text-content 섹션 */
.participation-section {
    background: white;
    text-align: center;
}

.section-header-black {
    background-color: #000;
    color: white;
    padding: 6px 15px;
    border-radius: 22px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    box-sizing: border-box;
    display: inline-block;
}

.participation-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.participation-card {
    background: white;
    border: 1.5px solid black;
    border-radius: 7px;
    padding: 1px 15px 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 152px;
}

.participation-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.participation-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: black;
    margin: 15px 0 10px 0;
    text-align: left;
}

.participation-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* 아이콘 그룹 */
.card-icon-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.physical-card-icon {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.physical-card-icon::before {
    content: '📇';
    font-size: 24px;
}

.phone-icon {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.phone-icon::before {
    content: '📱';
    font-size: 24px;
}

/* AI 참여 카드 */
.ai-participation-card {
    background: white;
    border: 1.5px solid black;
    padding: 1px 15px 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-image: url('../../resources/images/main/img-box-bg-01.png');
    background-size: 45%;
    background-position: right bottom;
    background-repeat: no-repeat;
}

.ai-participation-card:hover {
    transform: translateY(-3px);
}

.ai-participation-card:active {
    transform: translateY(-1px);
}

.winning-sticker {
    position: absolute;
    right: -20px;
    top: -20px;
}
.winning-sticker img {
    width:80px;
}

.red-card-image {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.red-card-image::before {
    content: '🎴';
    font-size: 48px;
    opacity: 0.8;
}

/* 경품 안내 섹션 */
.prize-section {
    background: white;
    text-align: center;
}

.prize-items-circle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
}

.prize-items-circle.grid-3 {
    grid-template-columns: repeat(3, 1fr); 
}

.prize-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.prize-circle-icon {
    width: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prize-circle-icon img {
    width: 85px;
}

.macbook-icon {
    background: linear-gradient(135deg, #9e9e9e, #757575);
}

.ipad-icon {
    background: linear-gradient(135deg, #f48fb1, #f06292);
}

.starpack-icon {
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
}

.snack-icon {
    background: linear-gradient(135deg, #a5d6a7, #81c784);
}

.prize-circle-item > span:first-of-type {
    font-size: 14px;
    color: black;
    font-weight: bold;
}

.prize-count {
    font-size: 12px;
    color: #585858;
    font-weight: 600;
}

/* 하단 주의사항 */
.popup-footer-notice {
    padding: 20px 0;
    text-align: center;
}
.popup-footer-notice .block {
    text-align: left;
}

.popup-footer-notice .block span {
    color: #B6100D;
}

.popup-footer-notice p {
    font-size: 11px;
    color: #666;
    margin:0;
    text-indent: -7px;
    padding-left: 7px;
}

/* 실물카드 인증하기 팝업 스타일 */
.physical-card-popup {
    max-width: 400px;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px 15px;
    text-align: center;
}

/* 프로세스 단계 영역 */
.process-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 30px 0;
    flex-wrap: wrap;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 100%;
    max-width: 100px;
}
.step-text {
    font-size: 12px;
    color:#585858;
    margin: 0;
    font-weight: bold;
}

.step-arrow {
    font-size: 17px;
    color: black;
    font-weight: bold;
    margin: 0 5px;
    padding-top: 9.5%;
}

/* 안내 텍스트 */
.process-notice {
    margin: 22px 0 0x;
}

.process-notice p {
    font-size: 15px;
    color: black;
    font-weight: bold;
}

/* 확인 버튼 - 공통 스타일 상속, width와 margin만 추가 */
.physical-card-confirm-btn {
    width: 120px;
    padding: 15px 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* 실물카드 인증하기 카드 호버 효과 */
.physical-card-popup-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('../../resources/images/main/img-box-bg-02.png');
    background-size: 56%;
    background-position: right bottom;
    background-repeat: no-repeat;
}

.physical-card-popup-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* AI포토카드 생성 팝업 스타일 */
.ai-photo-create-popup {
    max-width: 500px;
    max-height: 95%;
    overflow-y: auto;
}

.ai-description p {
    font-size: 15px;
    color: black;
    font-weight: bold;
}

.creation-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flow-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #666;
}

.user-photo-sample {
    background: linear-gradient(135deg, #ffb3ba, #ffdfba);
}

.neoguri-card-sample {
    background: linear-gradient(135deg, #bae1ff, #baffc9);
}

.result-sample {
    background: linear-gradient(135deg, #ffb3ba, #bae1ff);
}

.flow-step span {
    font-size: 12px;
    color: #333;
    text-align: center;
}

.flow-operator {
    font-size: 18px;
    color: #666;
    font-weight: bold;
}

.file-upload-section {
    margin-bottom: 25px;
    text-align: center;
}

.file-upload-section h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.file-input-container {
    display: flex; /* 컨테이너 안의 파일 표시 영역과 버튼 묶음을 가로 방향으로 나란히 배치합니다 */
    align-items: center; /* 세로 가운데 정렬로 시각적으로 안정감을 줍니다 */
    gap:5px; /* 두 요소 사이에 일정 간격을 둡니다 */
    flex-wrap: wrap; /* 화면이 좁아질 경우 다음 줄로 자연스럽게 넘겨 반응형을 지원합니다 */
    margin: 15px 0 0 !important;
}

.file-input-display {
    flex: 1 1 auto; /* 가용 공간을 넉넉히 차지하되 필요 시 줄어들 수 있도록 설정합니다 */
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color:white;
    margin-bottom: 0; /* 가로 배치를 위해 하단 여백을 제거합니다 */
}

.file-action-buttons button {
    margin: 10px 0 !important;
}

.file-placeholder {
    font-size: 14px;
    color: #999;
}

.file-buttons {
    flex-shrink: 0; /* 버튼 그룹이 지나치게 줄어드는 것을 방지합니다 */
    display: flex; /* 파일 찾기 및 삭제 버튼을 가로 방향으로 나란히 배치합니다 */
    flex-direction: row; /* 버튼들이 옆으로 배치되도록 방향을 지정합니다 */
    align-items: center; /* 버튼 세로 정렬을 가운데로 맞춰 시각적 안정감을 줍니다 */
    gap: 5px; /* 두 버튼 사이에 일정한 간격을 부여해 터치와 클릭을 쉽게 합니다 */
}

.file-find-btn, .file-delete-btn {
    padding: 8px 15px;
    font-size: 12px;
}

.file-notice {
    font-size: 12px;
    color: #666;
    margin: 0;
    padding: 15px 0 15px;
}
.file-notice img.img-small-logo { 
    width: 58px;
    vertical-align: middle;
    margin-top: -3px;
    margin-right: 3px;
 }

/* 포토카드 선택하기 섹션 */
.photocard-select-section h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.photocard-input-container {
    display: flex;
    gap: 5px;
    align-items: center;
    margin: 15px 0 40px !important;
}

.photocard-select-section {
    text-align: center;
}

.photocard-input-display {
    flex: 1;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color:white;
}

.photocard-placeholder {
    font-size: 14px;
    color: #999;
}

.photocard-select-btn {
    padding: 8px 15px;
    font-size: 12px;
    white-space: nowrap;
}

/* 만들기 버튼 - 공통 스타일 상속, width만 추가 */
.create-photo-btn {
    width: 150px;
    padding: 15px;
    display: block !important;
    margin: 0 auto 20px !important;
}

/* 알림 팝업 스타일 */
.alert-popup {
    max-width: 350px;
    text-align: center;
}

.alert-message {
   padding: 25px 15px 0px;
}

.alert-message p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 알림 확인 버튼 - 공통 스타일 상속, width만 추가 */
.alert-confirm-btn {
    width: 50%;
}

/* 동의 팝업 스타일 */
.consent-popup {
    max-width: 350px;
    text-align: center;
}

.consent-message {
    margin-bottom: 20px;
}

.consent-message p {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
    line-height: 1.4;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4fc3f7;
}

.consent-checkbox label {
    font-size: 13px;
    color: black;
    cursor: pointer;
}

/* 동의 확인 버튼 - 공통 스타일 상속, width만 추가 */
.consent-confirm-btn {
    width: 50%;
    padding: 12px;
}

/* 결과 팝업 스타일 */
.result-popup {
    max-width: 400px;
    position: relative;
    width: 90%;
    max-height: 95%;
}

.step-indicator {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 25px;
    height: 25px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* ===========================
   포토카드 결과 - 업로드 이미지 렌더링
   업로드한 사진이 프레임 비율과 달라도 깨짐 없이 표시되도록 구성
   =========================== */
.result-image-container {
    position: relative;
}

.result-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-frame {
    width: 100%;
    position: relative;
    aspect-ratio: 4 / 5; /* 4:5 비율(1200x1500 기준) 유지 */
}

/* aspect-ratio 속성을 지원하지 않는 브라우저를 위한 보조 레이아웃 */
@supports not (aspect-ratio: 4 / 5) {
    .photo-frame::before {
        content: '';
        display: block;
        padding-top: 125%; /* 높이 ÷ 너비 = 5 ÷ 4 */
    }

    .photo-frame .uploaded-photo-wrapper,
    .photo-frame .photo-img-box {
        position: absolute;
        inset: 0;
    }
}

.photo-frame .uploaded-photo-wrapper {
    position: relative;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* 이미지가 프레임 바깥으로 나가지 않도록 처리 */
    background: #eb1c24;
}

/* 업로드된 이미지가 늘어나지 않고 비율을 유지하도록 처리 */
.photo-frame .uploaded-photo {
    width: 100%; /* 프레임 너비에 맞춰 확장 */
    height: 100%; /* 프레임 높이에 맞춰 확장 */
  /*object-fit: cover;*/
    position: relative;
    z-index: 10;
}


.photo-img-box { 
    position: absolute;
    top: 0;
    width: 100%;
    height:100%;
    z-index: 1000;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
}

.sample-result {
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

/* 다운로드/재시도 버튼 - 공통 스타일 상속, flex와 padding만 추가 */
.download-btn, .retry-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

.share-section {
    text-align: center;
}

.share-section h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.social-share-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.social-share-buttons img {
    width: 100%;
}

/* 소셜 버튼 - 공통 스타일 상속, 크기와 border-radius만 추가 */
.social-btn {
    padding: 0 !important;
    font-size: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important
}

.social-btn:hover {
    transform: scale(1.05);
}

.social-btn:active {
    transform: scale(0.95);
}


/* 성공 메시지 스타일 */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: successSlideIn 0.3s ease-out;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 18px;
}

.success-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 로딩 애니메이션 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 너구리 포토카드 20장 팝업 스타일 */
.photocard20-popup {
    max-width: 500px;
    max-height: 95%;
    overflow-y: auto;
	overflow-x: hidden;
}

.photocard20-description {
    text-align: center;
    margin-bottom: 30px;
}

.photocard20-description p {
    font-size: 16px;
    color: black;
    margin: 0;
    font-weight: bold;
}

/* 포토카드 그리드 */
.photocard-grid img {
    width: 100%;
}

.photocard-item {
    aspect-ratio: 3/4;
    border-radius: 5px;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photocard-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photocard-item.card-1 {
    background: linear-gradient(135deg, #b3e5fc, #81d4fa);
}

.photocard-item.card-2 {
    background: linear-gradient(135deg, #ffcc80, #ffb74d);
}

/* 연락처 보내기 버튼 - 공통 스타일 상속, width와 margin만 추가 */
.contact-send-btn {
    width: 55%;
    display: block !important;
    margin: 25px auto 25px !important;
}

/* 경품안내 섹션 */
.photocard20-prize {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.prize-header {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border-radius: 8px;
}

.prize-grid {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.prize-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.prize-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 2px solid #ddd;
}

.prize-image.gold-10 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.prize-image.gold-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.prize-image.kwangjuyo {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.prize-image.lucky-box {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
}

.prize-image.coupon {
    background: linear-gradient(135deg, #ffcdd2, #ef9a9a);
}

.prize-box span {
    font-size: 11px;
    color: #333;
    line-height: 1.3;
}

/* 연락처/배송지 입력 팝업 공통 스타일 */
.contact-send-popup,
.delivery-info-popup {
    max-width: 450px;
    max-height: 95%;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: bold;
    color: black;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
}

/* 사진정보 그룹 */
.photo-info-group {
    margin-bottom: 45px;
}

.photo-info-group .file-input-container { margin:0 !important }

.photo-info-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.file-upload-area {
    width: 100%;
}

.file-upload-area .file-input-display {
    margin-bottom: 0;
    background-color: #fff;
}

.file-upload-area .file-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 5px;
}

.file-name-display {
    font-size: 14px;
    color: #999;
}

.file-size-notice {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 개인정보 동의 체크박스 */
.privacy-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.privacy-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4fc3f7;
    cursor: pointer;
}

.privacy-consent label {
    font-size: 13px;
    color: black;
    cursor: pointer;
}

.privacy-txt {
    font-size: 13px;
    text-align: center;
    color:#585858;
    padding-bottom: 15px;
}

/* 메달 안내 문구 */
.medal-notice {
    margin-bottom: 20px;
    height: 100px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #898989;
}

.medal-notice p {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
    line-height: 1.4;
}

/* 보내기 버튼 - 공통 스타일 상속, width만 추가 */
.contact-submit-btn {
    width: 55%;
    display: block !important;
    margin: 20px auto 25px !important;
}


.footer-banner {
    border: 1px solid black;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    gap: 12px;
    border-radius: 7px; 
    margin-top: 20px; 
    margin-bottom: 20px;
}
.footer-banner div { 
    font-size: 13px;
}
.footer-banner div:nth-child(1) { width:42px; }
.footer-banner div:nth-child(2) { width:calc(100% - 119px); padding: 10px 0; }
.footer-banner div:nth-child(3) { width:77px; }
.footer-banner div strong {
    color:black !important;
    display: block;
    
}
.footer-banner div strong, .footer-banner div span {
    font-size: 12px;
}

.footer-banner div img { 
    width: 32px;
    margin: 0 10px 0 15px;
 }
.footer-banner div:last-child {
    margin-left: auto;
    display: flex;
    align-items: center;
}
.footer-banner div button {
    border: 0 !important; 
    box-shadow: none !important;
    background:#E5E5E5 !important;
    color:black !important;
    font-size:11px !important;
    padding: 6px 10px !important;
    border-radius: 20px;
    margin: 15px 10px;
}


/* 포토카드 경품확인 팝업 스타일 */
.prize-check-popup {
    max-width: 500px;
    max-height: 95%;
    overflow-y: auto;
}

.prize-check-info img {
    width: 100%;
    margin-bottom: 15px;
}

.coupon-period {
    font-size: 14px;
    color: #856404;
    margin-bottom: 8px;
    font-weight: 600;
}

.coupon-warning {
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
}

.highlight-red {
    color: #dc3545;
    font-weight: bold;
}

.prize-check-description {
    text-align: center;
    margin-bottom: 20px;
}

.prize-check-description p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    line-height: 1.4;
}

.product-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.product-image-item {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-size: cover;
    background-position: center;
}

.product-1 {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.product-2 {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.product-3 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.product-4 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.product-5 {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.lucky-number-section {
    text-align: center;
}

.lucky-number-section p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    line-height: 1.4;
}

.lucky-number-input-group {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    align-items: center;
}

#lucky-number {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #898989;
    border-radius: 7px;
    font-size: 14px;
    text-align: left;
    width: 100%;
}

/* 경품확인 버튼 - 공통 스타일 상속, padding과 font-size만 추가 */
.prize-check-btn {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.prize-check-prize {
    text-align: center;
}

/* 너구리 제품 라인업 팝업 */
.product-line-popup {
    max-width: 720px;
    width: 92%;
    padding: 36px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f0 100%);
}

.product-line-title {
    padding-top: 12px;
    margin-bottom: 24px;
}

.product-line-title h2 {
    font-size: 32px;
}

.product-line-subtitle {
    margin-top: 12px;
    font-size: 16px;
    color: #424242;
    line-height: 1.5;
}

.product-line-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 162, 74, 0.12);
    border: 1px solid rgba(255, 162, 74, 0.3);
    margin-bottom: 28px;
}

.product-line-hero-image {
    width: 120px;
    height: auto;
}

.product-line-hero-text {
    font-size: 15px;
    color: #2f2f2f;
    line-height: 1.6;
}

.product-line-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.product-line-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(22, 101, 192, 0.16);
    padding: 18px 20px;
    box-shadow:
        0 8px 18px rgba(22, 101, 192, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-line-card h3 {
    font-size: 18px;
    color: #0d47a1;
    font-weight: 700;
}

.product-line-card p {
    font-size: 14px;
    color: #424242;
    line-height: 1.5;
    flex: 1;
}

.product-line-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-line-tags li {
    font-size: 12px;
    color: #0d47a1;
    background: rgba(13, 71, 161, 0.1);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.product-line-guide {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-line-guide h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #d84315;
}

.product-line-guide ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 18px;
    color: #424242;
    line-height: 1.6;
    font-size: 14px;
}

.product-line-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff7043, #ff9800);
    color: #ffffff;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-line-cta-btn:hover,
.product-line-cta-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 152, 0, 0.35);
}

.product-line-note {
    margin-top: 12px;
    font-size: 12px;
    color: #616161;
    line-height: 1.5;
}


/* 당첨 팝업 스타일 */
.winner-popup {
    max-width: 400px;
    text-align: center;
}

.winner-popup .popup-title, .invalid-card-popup .popup-title {
    padding-top:20px;
}

.winner-popup .popup-close, .invalid-card-popup .popup-close, .winner-popup .popup-close, .alert-popup .popup-close{
    font-size: 34px;
}

.winner-popup .popup-title h2 span {
    color: black;
}

.winner-title {
    margin-bottom: 20px;
}

.winner-title h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.winner-title h3 {
    font-size: 18px;
    color: #666;
}

.winner-highlight {
    color: #ffd700;
    font-weight: bold;
}

.winner-image {
    margin-bottom: 20px;
}

.gold-bar-image {
    margin: 0 auto;
}

.gold-bar-image span {
    display: block;
    color:black;
    font-size: 16px;
    padding-top: 7px;
}

.winner-info {
    margin-bottom: 20px;
}

.winner-info p {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
    line-height: 1.4;
}

.underline-red {
    text-decoration: underline;
    color: #dc3545;
    font-weight: bold;
}

.winner-notice {
    padding: 25px 15px 0px;
}

.winner-notice p {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
    line-height: 1.4;
}

.winner-buttons {
    display: flex;
    gap: 10px;
}

/* 회원정보/당첨문자 버튼 - 공통 스타일 상속, flex와 padding만 추가 */
.member-info-btn,
.winner-sms-btn {
    flex: 1;
    padding: 12px;
    font-size: 14px;
}

/* 잘못된 카드/AI 영화관 확인 팝업 공통 스타일 */
.invalid-card-popup,
.ai-cinema-confirm-popup {
    max-width: 350px;
    text-align: center;
}

.invalid-card-title {
    margin-bottom: 20px;
}

.invalid-card-title h2 {
    font-size: 20px;
    color: #dc3545;
    font-weight: bold;
}

.invalid-card-message {
    margin-bottom: 25px;
}

.invalid-card-message p {
    font-size: 16px;
    color: #333;
    margin: 5px 0;
    line-height: 1.4;
}

/* 잘못된 카드 닫기 버튼 - 공통 스타일 상속, width만 추가 */
.invalid-card-close-btn {
    width: 50%;
}

/* 클릭된 포토카드 스타일 */
.photocard-item.clicked {
    border-color: #4caf50 !important;
    background-color: rgba(76, 175, 80, 0.1);
    transform: scale(0.95);
}

/* 포토카드 클릭 애니메이션 */
.photocard-item {
    transition: all 0.3s ease;
}

.photocard-item:active {
    transform: scale(0.9);
}

/* 성공 메시지 애니메이션 개선 */
@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.success-message {
    animation: successSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}



@keyframes loadingShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 포커스 상태 개선 */
.menu-item:focus-visible {
    outline: 3px solid #4fc3f7;
    outline-offset: 2px;
    border-color: #4fc3f7;
}

/* 팝업 내부 스크롤바 투명화: 개별 팝업에서도 일관된 스타일 유지 */
.popup-content::-webkit-scrollbar {
    width: 0; /* 팝업 스크롤을 완전히 숨김 */
}

.popup-content::-webkit-scrollbar-track {
    background: transparent; /* 팝업 스크롤 트랙 투명 처리 */
    border-radius: 3px; /* 트랙 모서리 형태 유지 */
}

.popup-content::-webkit-scrollbar-thumb {
    background: transparent; /* 팝업 스크롤 손잡이 투명 처리 */
    border-radius: 3px; /* 손잡이 모서리 형태 유지 */
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: transparent; /* 호버 시에도 투명 유지 */
}


/* AI영화관 소개 팝업 스타일 */
.ai-cinema-intro-popup {
    max-width: 450px;
    max-height: 95%;
    overflow-y: auto;
    text-align: center;
}

.cinema-description {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cinema-description p {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

.highlight-red {
    color: #dc3545;
    font-weight: bold;
}

.prize-box-image {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.box-placeholder {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid #ddd;
}

.video-carousel {
    position: relative;
    margin-top: 90px;
}
.video-carousel .img-nugri { 
    position: absolute;
    top: -83px;
    left: -13px;
    width: 120px;
    height: auto;
 }

/* 메인 영상 영역 */
.main-video-container {
    position: relative;
    margin-bottom: 20px;
}

/* 페이지 번호 표시 (영역 밖 위쪽) */
.video-page-number {
    position: absolute;
    top: -35px;
    right: 0;
    color: black;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.video-page-number .current-page {
    color: #B6100D;
}

.main-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

/* 캐릭터 아이콘 (왼쪽 상단에 겹쳐있음) */
.video-character-icon {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 50%;
    border: 4px solid white;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-character-icon::before {
    content: '🦝';
    font-size: 40px;
}

/* 메인 영상 재생 화면 */
.main-video-player {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 메인 영상이 들어가는 프레임과 iframe 크기 정의 */
.main-video-placeholder .main-video-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-video-placeholder .main-video-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.main-play-icon {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-video-player:hover .main-play-icon {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}


/* 하단 썸네일 슬라이더 */
.thumbnail-slider-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(13, 71, 161, 0.35) transparent;
}

/* Chrome, Safari, Opera - 웹에서 얇은 가로 스크롤 표시 */
.thumbnail-slider-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-slider-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.thumbnail-slider-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(13, 71, 161, 0.5), rgba(79, 195, 247, 0.6));
    border-radius: 999px;
}

.thumbnail-slider-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(13, 71, 161, 0.65), rgba(79, 195, 247, 0.75));
}

.thumbnail-slider {
    display: flex;
    gap: 12px;
    min-width: max-content;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 120px;
    height: 65px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    transform: scale(1.1);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.thumbnail-image img { width: 100%; height: 100%; object-fit: cover; }

/* 투표 시작 버튼 - 공통 스타일 상속, width와 font-size만 추가 */
.vote-start-btn {
    width: 65%;
    padding: 15px;
    font-size: 18px;
}

.btn-subtext {
    font-size: 12px;
    opacity: 0.8;
}

/* AI영화관 투표 팝업 스타일 */
.ai-cinema-vote-popup, .ai-cinema-vote-popup-01 {
    max-width: 500px;
    max-height: 95%;
    overflow-y: auto;
}

.ai-cinema-vote-popup-01 {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* AI영화관/포토카드 선택 팝업 본문 스크롤 영역 - 버튼과 분리하여 내부 스크롤 유지 */
.ai-cinema-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 10px;
    position: relative;
}

.ai-cinema-popup-body::-webkit-scrollbar {
    width: 6px;
}

.ai-cinema-popup-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.video-vote-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 0 40px;
}

/* 포토카드 선택 팝업의 카드 리스트를 2열 그리드로 구성 */
.photocard-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 60px;
}


.vote-video-item {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.vote-video-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vote-video-thumbnail img { width: 100%; height:auto; }

.vote-video-item:hover .vote-video-thumbnail {
    border-color: #4fc3f7;
    transform: scale(1.02);
}

.vote-video-item.selected .vote-video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.vote-video-item.selected .vote-video-thumbnail {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7);
}

.vote-video-text {
    margin-top: 0px;
    font-size: 13px;
    color: #000000;
    font-weight: bold;
    line-height: 1.4;
    padding: 0 4px 10px;
	text-align:center;
}
.vote-video-text span { color:#898989 }
.vote-checkbox {
    position: absolute;
    right: 8px;
    z-index: 10;
}

.vote-checkbox:not(.vote-radio) {
    top: 8px;
}

.vote-checkbox input[type="checkbox"] {
    display: none;
}

.vote-checkbox:not(.vote-radio) label {
    display: block;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.vote-checkbox:not(.vote-radio) input[type="checkbox"]:checked + label {
    background-color: #4caf50;
    border-color: #4caf50;
}

.vote-checkbox:not(.vote-radio) input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

/* 포토카드 선택 라디오 버튼 스타일 */
.vote-radio {
    position: absolute;
    bottom: 13px;
    right: 8px;
    z-index: 10;
}

.vote-radio input[type="radio"],
.vote-radio input[type="checkbox"] {
    display: none;
}

.vote-radio label {
    display: block;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 2px solid #666;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.vote-radio input[type="radio"]:checked + label::after,
.vote-radio input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color:#B6100D;
    font-size: 22px;
    font-weight: bold;
}

/* 포토카드/영상 투표 팝업 하단 공통 버튼 */
.position-relative { position: relative; }
.popup-bottom-action {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0%;
    background-color: #B6100D;
    color: #ffffff;
    border: 0;
    border-radius: 0 0 6px 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: none;
}



/* 공통 버튼의 호버 상태를 명확히 정의 */
.popup-bottom-action:hover:not(:disabled) {
    background-color: #d11a16;
}

/* 공통 버튼의 비활성화 상태 */
.popup-bottom-action:disabled {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0%;
    background-color: #B6100D;
    color: #ffffff;
    border: 0;
    border-radius: 0 0 6px 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: none;
}

.popup-bottom-action:not(.popup-close) {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0%;
    background-color: #B6100D !important;
    color: #ffffff;
    border: 0;
    border-radius: 0 0 6px 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: none;
}

/* AI영화관 팝업 내부 하단 고정 버튼 - 뷰포트가 아닌 팝업 내부 하단에 고정 */
.ai-cinema-vote-popup-01 .popup-bottom-action,
.ai-cinema-vote-popup-01 .popup-bottom-action:disabled {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0 0 6px 6px;
    align-self: stretch;
    margin-top: auto;
    z-index: 36;
    opacity: 1;
}

/* 영상 투표 버튼은 초기에는 비활성화 상태로 시작 */
.submit-vote-btn {
    cursor: not-allowed;
}

/* JS에서 is-disabled 클래스로 상태를 제어하므로 동일한 비활성 스타일을 유지 */
.submit-vote-btn.is-disabled {
    cursor: not-allowed;
}

/* 영상 투표 버튼 활성화 시 포인터 및 시각적 강조 */
.submit-vote-btn.active,
.submit-vote-btn:not(.is-disabled) {
    cursor: pointer;
}

/* AI영화관 확인 팝업 스타일 - 잘못된 카드 팝업과 동일한 레이아웃 유지 */
.confirm-message {
    padding: 25px 15px 0;
}

.confirm-message p {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
    line-height: 1.4;
}

/* 투표 확인 버튼 - 잘못된 카드 닫기 버튼과 동일한 폭 적용 */
.confirm-vote-btn {
    width: 50%;
    padding: 15px;
}

/* 배송지 입력 팝업 스타일 */
.delivery-info-popup {
    padding: 32px;
}

.delivery-info-popup .popup-title h2 {
    font-size: 30px;
    font-weight: bold;
    color: #B6100D;
    margin: 0 0 15px 0;
    text-align: center;
}

.delivery-notice {
    margin-bottom: 25px;
    text-align: center;
}

.delivery-notice p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.delivery-form {
    margin-bottom: 20px;
}

.delivery-form .form-group {
    margin-bottom: 20px;
}


.delivery-form .form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.address-search-group {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.address-search-group input {
    flex: 1;
}

/* 주소 검색 버튼 - 공통 스타일 상속, flex-shrink와 padding만 추가 */
.address-search-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 14px;
}

.address-detail-input {
    width: 100%;
}

.delivery-warning {
    margin-bottom: 20px;
    padding: 12px;
    background: #fff5f5;
    border-left: 4px solid #ff4444;
    border-radius: 4px;
}

.delivery-warning p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.delivery-consent-section {
    margin-bottom: 25px;
}

.consent-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.consent-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #4fc3f7;
}

.consent-checkbox-group label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
}

.consent-content-box {
    max-height: 150px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.consent-content-box p {
    margin: 8px 0;
}

/* 연락처/배송지 제출 버튼 - 공통 스타일 상속, width만 추가 */
.contact-submit-btn,
.delivery-submit-btn {
    width: 55%;
    display: block !important;
    margin: 20px auto 25px !important;
}

/* 경품 응모 팝업 스타일 */
#molePrizePopup {
    z-index: 2000 !important;
}

#molePrizePopup .popup-content {
    z-index: 2001 !important;
}

.mole-prize-popup {
    max-width: 450px;
    max-height: 95%;
    overflow-y: auto;
}

.mole-prize-title h2 {
    font-size: 28px;
    font-weight: bold;
    color: #ff4444;
    margin: 0 0 15px 0;
    text-align: center;
}

.mole-prize-description {
    margin-bottom: 25px;
    text-align: center;
}

.mole-prize-description p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.mole-prize-form {
    margin-bottom: 20px;
}

.mole-prize-form .form-group {
    margin-bottom: 20px;
}

.mole-prize-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.mole-prize-form .form-group input[type="text"],
.mole-prize-form .form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.mole-prize-form .form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.mole-prize-warning {
    margin-bottom: 20px;
    padding: 12px;
    background: #fff5f5;
    border-left: 4px solid #ff4444;
    border-radius: 4px;
}

.mole-prize-warning p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.mole-prize-consent-section {
    margin-bottom: 25px;
}

/* 두더지 게임 경품 제출 버튼 - 공통 스타일 상속, width만 추가 */
.mole-prize-submit-btn {
    width:150px;
    padding: 15px;
}

/* 두더지 잡기 게임 팝업 스타일 */
#moleGameContent {
    max-width: 400px;
    max-height: 95%;
    min-height: 95%;
    overflow: hidden;
    padding: 0 !important;
    background: transparent !important;
    position: relative;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    height: 95%;
}

/* 게임 시작 모달이 표시될 때 게임 팝업 배경 제거 */
#moleGameContent.show-modal {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* 게임 컨테이너가 표시될 때만 배경 표시 */
#moleGameContent.show-game {
    border-radius: 24px !important;
}

#moleGameContent .popup-close {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1001;
    background:none;
    color:black;
}

.mole-game-header {
    background: url(../../resources/images/main/game-bg-top.png) no-repeat center top;
    background-size:100% auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.mole-game-container.active > .mole-game-header {
    /*height: 50%;*/
    position: relative;
    padding-bottom: 77%;
}

.mole-game-container {
    border-radius: 24px;
    text-align: center;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    max-width: min(500px, 90vw);
    width: 100%;
    display: none; /* 초기에는 숨김 */
    transform-origin: center center;
}

.mole-game-container.active {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mole-game-container .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.mole-game-container.active > .mole-grid {
    flex-shrink: 0;
}

.mole-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    gap: 10px;
    position: absolute;
    top: 36%;
    width: 100%;
}

.mole-game-info div {
    font-size: 14px;
    font-weight: bold;
    color: white;
    background: #3B2113;
    padding: 10px 10px;
    border-radius: 50px;
    border: 2px solid black;
    box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.7), inset -2px -2px 2px rgba(145, 80, 45, 0.8);
    display: flex;
}
.mole-game-info div:nth-child(1) {
    width:30%;
}
.mole-game-info div:nth-child(2) {
    width:40%;
}
.mole-game-info div:nth-child(3) {
    width:30%;
}
.mole-game-info div em {
    font-style: normal;
    padding-left: 7px;    
}
.mole-game-info div span {
    padding-right: 7px; 
    width: 100%; 
    text-align: right;  
}
.mole-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.25; /* width 대비 height 비율 유지 (625px 기준 대략 1:1.25) */
    min-height: 300px; /* 최소 높이 보장 */
    align-content: space-between;
    justify-items: center;
    background-image: url(../../resources/images/main/game-bg-bottom.png);
    background-size: 100% 100%;
    border-radius: 0 0 20px 20px;
    padding:3%;
}

.mole-hole {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mole-hole img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 15;
}

.mole-hole::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.mole-mole {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    background: transparent;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5em;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    z-index: 5;
}

/* 
 * .mole-image
 * - 두더지 캐릭터 이미지를 컨테이너 내부에 맞게 표시
 * - object-fit을 사용해 찌그러짐 없이 맞춤
 */
.mole-mole .mole-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    border-radius: 50%;
}

.mole-hole.mole-up .mole-mole {
    transform: translate(-50%, -50%) translateY(-85px);
    animation: moleBounceUp 0.4s ease-out;
}

@keyframes moleBounceUp {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-85px) scale(1);
        opacity: 1;
    }
}

.mole-mole.mole-fake {
    animation: moleGlow 0.5s ease-in-out infinite alternate;
}

@keyframes moleGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)); }
}


#moleStartModal {
    display: none; /* 초기에는 시작 모달 숨김 */
}

#moleEndModal {
    display: none; /* 초기에는 종료 모달 숨김 */
}

.mole-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    animation: moleModalPop 0.4s 
cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

/* 게임 시작 모달 내부 닫기 버튼 */
.mole-modal .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

@keyframes moleModalPop {
    0% { 
        transform: translate(-50%, calc(-50% + 50px)) scale(0.5); 
        opacity: 0; 
    }
    60% {
        transform: translate(-50%, calc(-50% - 10px)) scale(1.05);
    }
    100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 1; 
    }
}

/* 두더지 게임 모달 버튼 - 공통 스타일 상속, font-size와 padding, margin만 추가 */
.mole-modal-button {
    width: 45%;
    display: block !important;
    margin: 25px auto 25px !important;
}

#moleCloseBtn {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333;
}

#moleCloseBtn:hover {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
    box-shadow: 
        0 6px 20px rgba(158, 158, 158, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mole-modal-score {
    font-size: 14px;
    font-weight: bold;
    color: black;
    margin: 0;
    width: 20%;
    text-align: center;
    padding-right: 10px;
	padding-top: 1px;
}

.mole-score-label {
    font-size: 15px;
    color: black;
    margin-bottom: 0;
    width: 30%;
}

.mole-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.mole-hit-effect {
    position: absolute;
    pointer-events: none;
    animation: moleHit 0.3s ease-out forwards;
    z-index: 10;
}

.mole-hit-effect::before {
    content: '💥';
    font-size: 2em;
}

.mole-score-popup {
    position: absolute;
    font-weight: 900;
    font-size: 2.8em;
    pointer-events: none;
    animation: moleScoreFloat 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 10001;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.5),
        0 0 10px rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
}

.mole-score-popup.mole-positive {
    color: #4CAF50;
}

.mole-score-popup.mole-negative {
    color: #f44336;
}

.mole-mole.mole-hit {
    animation: moleMoleHit 0.2s ease-out;
}

@keyframes moleHit {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes moleScoreFloat {
    0% { 
        transform: translateX(-50%) translateY(0) scale(0.5) rotate(-10deg); 
        opacity: 0; 
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px) scale(1.2) rotate(5deg);
    }
    100% { 
        transform: translateX(-50%) translateY(-80px) scale(1.5) rotate(10deg); 
        opacity: 0; 
    }
}

@keyframes moleMoleHit {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(0.8); }
    100% { transform: translateX(-50%) scale(1); }
}

.mole-hole.mole-flash {
    animation: moleFlash 0.2s ease-out;
}

.mole-hole.mole-flash-negative {
    animation: moleFlashNegative 0.2s ease-out;
}

@keyframes moleFlash {
    0% { background: #6b4423; }
    50% { background: #4CAF50; }
    100% { background: #6b4423; }
}

@keyframes moleFlashNegative {
    0% { background: #6b4423; }
    50% { background: #f44336; }
    100% { background: #6b4423; }
}

.mole-timer-bar-container {
    margin: 0 auto;
    width: 93%;
    height: 20px;
    background:#91502D;
    border-radius: 24px;
    overflow: hidden;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 13px;
    box-sizing: border-box;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
}

.mole-timer-bar {
    width: 100%;
    height: 10px;
    background: white;
    border-radius: 12px;
    position: relative;
    transition: width 0.1s linear;
}

.mole-timer-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: moleShimmer 2s infinite;
}

@keyframes moleShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}




@keyframes molePulseWarning {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}


.mole-game-rules {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-radius: 12px;
    font-size: 1em;
    box-shadow: 
        0 4px 12px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.mole-game-rules div {
    margin: 5px 0;
}

.rule-good {
    color: #4CAF50;
}

.rule-bad {
    color: #f44336;
}

.text-content {
    color:#222222;
    font-size: 13px;
    text-align: center;
    padding: 10px 0;
}
.hash-tage {
    padding: 20px 0 40px;
    cursor: pointer; /* 해시태그 영역이 클릭 가능한 요소임을 시각적으로 표시 */
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hash-tage p {
    color:#B6100D;
    font-size: 14px;
    text-align: center;
}


/* 풀스크린 비디오 플레이어 스타일 */
.fullscreen-video-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.95);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    font-size: 28px;
    z-index: 1001;
}

.fullscreen-close:hover {
    background-color: white;
}

.fullscreen-video-container {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.big-play-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.big-play-icon:hover {
    background-color: white;
    transform: scale(1.1);
}

.video-title {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}



/* 터치게임 소개 팝업 스타일 */
.touch-game-intro-popup {
    max-width: 450px;
    max-height: 95%;
    overflow-y: auto;
}

.underline-red {
    text-decoration: underline;
    text-decoration-color: #dc3545;
    text-underline-offset: 3px;
}

.touch-game-description {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.touch-game-description p {
    font-size: 15px;
    color: #333;
    margin: 8px 0;
}

.bold-text {
    font-weight: bold;
}

.highlight-text {
    font-weight: bold;
    color: #dc3545;
    margin-top: 15px !important;
}

.game-preview-area {
    margin-bottom: 25px;
}
.game-preview-area img { width: 100%; }

.game-preview-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-preview-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, #ddd 49%, #ddd 51%, transparent 52%);
    border-radius: 10px;
}

.preview-text {
    font-size: 16px;
    color: #999;
    font-weight: bold;
    z-index: 1;
    position: relative;
}

/* 게임 시작 버튼 - 공통 스타일 상속, width와 font-size, margin만 추가 */
.game-start-btn {
    width: 55%;
    padding: 15px;
    font-size: 18px;
    margin-bottom: 25px;
}

.touch-game-prize-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
}

.prize-header-bar {
    background: linear-gradient(135deg, #9e9e9e, #757575);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
}

.touch-prize-grid {
    display: flex;
    justify-content: space-around;
    padding: 20px 10px;
    gap: 10px;
}

.touch-prize-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.touch-prize-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #ddd;
}

.touch-prize-image.gold-prize {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.touch-prize-image.lucky-prize {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
}

.touch-prize-image.coupon-prize {
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
}

.touch-prize-text {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
}

.touch-prize-text p {
    margin: 2px 0;
}

.touch-prize-notice {
    font-size: 11px;
    color: #666;
    text-align: center;
    margin: 0;
    padding: 10px 15px 15px;
}

.event-date {
    background:#F8EDE2;
    text-align: center;
    font-size: 13px;
    color: #585858;
    width: 80%;
    margin: 0 auto;
    padding: 5px;
    border-radius: 20px;
}


.product-flex { display: flex; gap: 10px; }
.product-flex .product-flex-box { 
    width: 33.33%; 
    text-align: center; 
    font-size: 13px; 
    color:black;
    padding-bottom: 15px;
}
.product-flex .product-flex-box img { width: 100%; }

/*메인홈*/
.main-neon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 9.5%;
    width: 66%;
}
.main-neon img { width: 100%; }
.menu-item { display:inline-block; position: absolute; cursor: pointer; }
.menu-item img { width: 100%; }
.menu-item.menu-01 { left: 58%; top: 56%; width: 36%; }
.menu-item.menu-02 { left: 6%; top: 24%; width: 34%; }
.menu-item.menu-03 { left: 66%; top: 24%; width: 31%; }
.menu-item.menu-04 { left: 6%; top: 56%; width: 37%; }
.menu-item.menu-05 { left: 38%; top: 76%; width: 33%;}
.menu-item.menu-06 { left: 5%; top: 87%; width: 38%;}
.menu-item.menu-07 { left: 67%; top: 87%; width: 26%;}

/* menu-item 이미지 탄성 hover 효과 */
.menu-item img {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center center;
}

.menu-item:hover img {
    transform: scale(1.15);
}

.menu-item:not(:hover) img {
    transform: scale(1);
}
.neoguri-body {position: absolute; top: 41%; left: 50%; transform: translate(-50%, -50%);width:45%; z-index: 5;}
.neoguri-hand-left {
    position: absolute; 
    top: 41.7%; 
    left: 32%; 
    transform: translate(-50%, -50%);
    transform-origin: right bottom; /* 오른쪽 하단을 기준점으로 설정 */
    animation: handLeftWave 1.5s ease-in-out infinite; /* 위아래로 움직이는 애니메이션 */
    width: 23%;
}
.neoguri-hand-right {
    position: absolute; 
    top: 41.5%; 
    left: 66%; 
    transform: translate(-50%, -50%);
    transform-origin: left bottom; /* 왼쪽 하단을 기준점으로 설정 */
    animation: handRightWave 1.5s ease-in-out infinite; /* 위아래로 움직이는 애니메이션 */
    width: 23%;
}
.main-table { position: absolute; top: 47%; left: 50%; transform: translate(-50%, -50%);height: 15%; z-index: 10;}

/* 왼손 애니메이션: 오른쪽 하단 기준으로 왼쪽 끝이 위아래로 움직임 */
@keyframes handLeftWave {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-15deg); /* 왼쪽 끝이 위로 올라감 */
    }
}

/* 오른손 애니메이션: 왼쪽 하단 기준으로 오른쪽 끝이 위아래로 움직임 */
@keyframes handRightWave {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(15deg); /* 오른쪽 끝이 위로 올라감 */
    }
}


#loading-box {     
position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200000;
	display:none;
}

#loading-box img { width:200px;position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); }
#loading-box .noti-text { color:black; font-size:14px; position:absolute; top:65%; left:50%; transform:translate(-50%, -50%); }
/* [CSS 파일 또는 <style> 태그 수정] */
#user-photo-upload,
#contact-photo-upload {
    /* display: none;  <-- 이것을 삭제하거나 주석 처리하세요 */
    
    /* 대신 아래 코드를 사용하여 숨깁니다 */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    opacity: 0; /* 투명하게 만듦 */
    z-index: -1;
}

@media (max-width: 768px) {
    .fullscreen-video-container {
        width: 95%;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .big-play-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .video-title {
        font-size: 18px;
    }
}


@media (max-width: 768px) {
    .product-line-popup {
        padding: 28px 24px;
    }

    .product-line-hero {
        flex-direction: column;
        text-align: center;
    }

    .product-line-hero-image {
        width: 150px;
    }
}

@media (max-width: 500px) {
    .mole-game-info div { font-size: 3vw; }
    .mole-game-info div em { padding-left: 0; }
    .mole-game-info div span { padding-right: 0; }

    .mole-hole.mole-up .mole-mole {
        transform: translate(-50%, -50%) translateY(-19vw);
        animation: moleBounceUp 0.4s ease-out;
    }

    @keyframes moleBounceUp {
        0% {
            transform: translate(-50%, -50%) scale(0.9);
            opacity: 0;
        }
        100% {
            transform: translate(-50%, -50%) translateY(-19vw) scale(1);
            opacity: 1;
        }
    }
    .mole-game-info { top: 31%;}
    .mole-timer-bar-container { top:58%;padding: 9px; }
    .mole-timer-bar { height: 6px; }
}

/* 반응형 - AI영화관 */
@media (max-width: 480px) {
    
    .video-character-icon {
        width: 60px;
        height: 60px;
        top: -10px;
        left: -10px;
    }
    
    .video-character-icon::before {
        font-size: 30px;
    }
    
    .main-play-icon {
        font-size: 40px;
        width: 60px;
        height: 60px;
    }
    
    /* 썸네일 슬라이더 모바일 */
    .thumbnail-slider-container {
        /* 모바일에서만 스크롤바 숨기기 */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }
    
    .thumbnail-slider-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .thumbnail-image::before {
        font-size: 16px;
    }
    
    /* 배송지 입력 팝업 모바일 */
    .delivery-info-popup {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .delivery-info-popup .popup-title h2 {
        font-size: 20px;
    }
    
    .address-search-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .consent-content-box {
        max-height: 120px;
        font-size: 11px;
    }
    
    .box-placeholder {
        width: 150px;
        height: 110px;
        font-size: 14px;
    }
    
    .ai-cinema-vote-popup {
        max-width: 95%;
        padding: 20px 15px;
    }

    .ai-cinema-vote-popup-01 {
        max-width: 95%;
        padding: 0;
    }    
    
    .video-vote-grid {
        gap: 10px;
    }
    
    .invalid-card-popup,
    .ai-cinema-confirm-popup {
        max-width: 90%;
    }

}

/* 반응형 - 터치게임 */
@media (max-width: 480px) {
    .touch-game-intro-popup {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .game-preview-placeholder {
        height: 150px;
    }
    
    .touch-prize-grid {
        flex-direction: column;
        gap: 15px;
    }
    
    .touch-prize-item {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .touch-prize-image {
        width: 60px;
        height: 60px;
        margin-right: 15px;
        margin-bottom: 0;
    }
    .ai-photo-create-popup {
        padding: 20px 15px 30px;
    }
}


@media (max-width: 480px) {
    .product-line-popup {
        padding: 24px 18px;
    }

    .product-line-grid {
        grid-template-columns: 1fr;
    }

    .product-line-guide {
        padding: 20px 18px;
    }
}



/* 반응형 - 포토카드 20장 팝업 */
@media (max-width: 480px) {
    .photocard20-popup {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .photocard-grid {
        gap: 8px;
        padding: 8px;
    }
    
    .prize-grid {
        gap: 8px;
    }
    
    .prize-box {
        min-width: 70px;
    }
    
    .prize-image {
        width: 50px;
        height: 50px;
    }
    
    .prize-box span {
        font-size: 10px;
    }
    
    .contact-send-popup,
    .delivery-info-popup {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .form-group input {
        padding: 10px 12px;
    }
    .popup-content {
        padding: 20px 15px;
    }
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    
    .title-box {
        padding: 24px 28px;
    }
    
    .title-box h1 {
        font-size: 22px;
    }
    
    .title-box h2 {
        font-size: 20px;
    }
    
    .menu-grid {
        gap: 15px;
    }    
    
    .menu-content span {
        font-size: 15px;
    }
    
    .footer-box {
        padding: 15px 18px;
    }
    
    .footer-text {
        font-size: 15px;
    }
    
    .footer-indicator {
        width: 12px;
        height: 12px;
    }

}

@media (max-width: 360px) {
    
    .title-box {
        padding: 20px 24px;
    }
    
    .title-box h1 {
        font-size: 20px;
    }
    
    .title-box h2 {
        font-size: 18px;
    }
    
    .menu-content span {
        font-size: 14px;
    }
    
    .footer-box {
        padding: 12px 15px;
    }
    
    .footer-text {
        font-size: 14px;
    }
    .mole-score-label { font-size: 12px; }
    .mole-modal-score { font-size: 12px;}

}



