@charset "utf-8";

/* 테크노 감성 웹 폰트 (Tourney) 불러오기 */
@import url('https://fonts.googleapis.com/css2?family=Tourney:ital,wght@0,100..900;1,100..900&display=swap');


/* guest_up - 라공에디션 커스텀 (분리형) */

:root {
    --glass-bg: rgba(242, 247, 248, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    --text-main: #4a5568;
    --text-muted: #718096;
    --mint-color: #bdd8e4;
    --pink-color: #f7b4c8;
    --rec-color: #ff4d4d;
    --window-bg: rgba(242, 247, 248, 0.9);
    --window-bar: var(--mint-color);
}

.dark-theme {
    --glass-bg: rgba(30, 35, 40, 0.35);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.2);
    --text-main: #e2e8f0;
    --text-muted: #a0aec0;
    --mint-color: #5e8a86;
    --pink-color: #b56c6c;
    --window-bg: rgba(40, 45, 50, 0.85);
    --window-bar: #333;
}

#guest_up { max-width: 800px; margin: 0 auto; padding: 30px 20px; min-height: 100vh; color: var(--text-main); position: relative; }

/* 🎥 타이틀 및 캠코더 헤더 (디지털 폰트 적용) */
.cam-header-simple { 
    max-width: 100%; 
    margin: 0 auto 50px auto; 
    text-align: center; 
    font-family: 'VT323', 'Courier New', monospace;
}
.cam-top-info, .cam-bottom-info { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 16px; 
    opacity: 0.8; 
    letter-spacing: 1px;
    max-width: 450px; 
    margin: 0 auto;   
}
.cam-blink { color: var(--rec-color); animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cam-title { 
    font-family: 'Tourney', sans-serif; 
    font-size: 4.2rem; 
    letter-spacing: 4px; 
    padding-left: 4px; 
    margin: 15px 0; 
    color: var(--text-main); 
    text-shadow: 2px 2px 0px rgba(255,255,255,0.6); 
    line-height: 1;
	text-align: center;
}
.dark-theme .cam-title { text-shadow: 2px 2px 0px rgba(0,0,0,0.6); }

/* 버튼을 우측 상단으로 정렬 */
.guest-controls { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 25px; }
.guest-btn { 
    background: var(--glass-bg); border: 1px solid var(--glass-border); 
    padding: 8px 16px; border-radius: 20px; cursor: pointer; color: var(--text-main); 
    font-size: 14px; /* 👈 도트 폰트에 맞춰 글씨 크기를 12px에서 14px로 키웠습니다 */
    font-weight: bold; box-shadow: 0 4px 6px var(--glass-shadow); transition: all 0.2s; 
    display: inline-flex; align-items: center; gap: 6px; 
    font-family: 'PfStardust30S', sans-serif !important; /* 👈 스타더스트 폰트 강제 적용! */
}
.guest-btn:hover { background: var(--mint-color); color: #fff; }

/* 글 작성 폼 */
#guest_write_form_wrap { display: none; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 15px; padding: 25px; margin-bottom: 40px; box-shadow: 0 8px 15px var(--glass-shadow); animation: fadeInDown 0.3s ease-out; }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.write-inputs { display: flex; gap: 10px; margin-bottom: 15px; }
.guest-input, .guest-textarea { width: 100%; background: rgba(255, 255, 255, 0.3); border: 1px solid var(--glass-border); padding: 10px 15px; border-radius: 8px; color: var(--text-main); outline: none; font-size: 13px; transition: all 0.2s; }
.dark-theme .guest-input, .dark-theme .guest-textarea { background: rgba(0, 0, 0, 0.2); }
.guest-input:focus, .guest-textarea:focus { border-color: var(--pink-color); }
.guest-textarea { min-height: 100px; resize: none; }
.write-options { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 12px; }
.emoji-picker { display: flex; gap: 10px; font-size: 16px; }
.emoji-picker span { cursor: pointer; transition: transform 0.2s; }
.emoji-picker span:hover { transform: scale(1.2); }
.secret-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* 목록 카드 */
.guest-list { display: flex; flex-direction: column; gap: 35px; }
.guest-card { background: var(--glass-bg); border: none; border-radius: 1px; padding: 30px 25px 25px; position: relative; box-shadow: 5px 7px 5px rgba(0, 0, 0, 0.4); }
.retro-tape { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 120px; height: 30px; background: rgba(255, 255, 255, 0.25); border-left: 2px dashed rgba(255, 255, 255, 0.4); border-right: 2px dashed rgba(255, 255, 255, 0.4); backdrop-filter: blur(1px); box-shadow: 0 1px 3px rgba(0,0,0,0.05); z-index: 2; }
.dark-theme .retro-tape { background: rgba(0, 0, 0, 0.3); border-color: rgba(255,255,255,0.2); }

/* 캠코더 오버레이에도 디지털 폰트 적용 */
.cam-overlay { display: flex; justify-content: space-between; align-items: center; font-family: 'VT323', 'Courier New', monospace; font-size: 15px; margin-bottom: 15px; border-bottom: 1px dashed var(--glass-border); padding-bottom: 8px; letter-spacing: 1px; }
.cam-rec { color: var(--rec-color); display: flex; align-items: center; gap: 6px; }
.cam-rec::before { content: ''; display: block; width: 8px; height: 8px; background: var(--rec-color); border-radius: 50%; animation: blink 1.5s infinite; }
.cam-battery { display: flex; align-items: center; gap: 3px; }
.battery-icon { width: 18px; height: 9px; border: 1px solid var(--text-main); position: relative; padding: 1px; }
.battery-icon::after { content: ''; position: absolute; right: -3px; top: 2px; width: 2px; height: 3px; background: var(--text-main); }
.battery-level { width: 80%; height: 100%; background: var(--text-main); }

/* 작성자 이름 폰트 변경 */
.guest-name {
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 15px; 
    letter-spacing: -0.5px; 
}

/* 게시글 본문 내용 폰트 변경 */
.guest-content { 
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 16px; 
    line-height: 1.6; 
    margin-bottom: 20px; 
    word-break: break-all; 
}
.card-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--glass-border); padding-top: 12px; }
.comment-open-btn { background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.comment-open-btn:hover { color: var(--pink-color); }

/* 플로팅창(댓글창) 설정 */
.window-comment { position: fixed; width: 500px; background: var(--window-bg); border: 1px solid var(--glass-border); box-shadow: 0 15px 35px rgba(0,0,0,0.2); border-radius: 8px; display: none; z-index: 100; overflow: hidden; }
.window-bar { background: var(--window-bar); padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; cursor: move; color: #fff; font-weight: bold; font-size: 13px; letter-spacing: 1px; }
.window-close { background: #ff5f56; width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer; }
.window-body { padding: 15px; max-height: 300px; overflow-y: auto; }
.window-reply-item { margin-bottom: 15px; font-size: 14px; border-bottom: 1px dashed rgba(0,0,0,0.1); padding-bottom: 10px; }
.dark-theme .window-reply-item { border-bottom-color: rgba(255,255,255,0.1); }

/* 1. 댓글창 내부 이름 폰트 변경 */
.reply-name {
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: var(--mint-color);
    margin-bottom: 4px;
    display: block;
}

/* 2. 댓글 내용 폰트 변경 */
.window-reply-item {
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

/* 3. 댓글 입력창 영역 & 버튼 스타일 복구 */
.window-input-area {
    padding: 10px;
    background: rgba(0,0,0,0.03);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 5px;
}

/* 쪼그라든 입력창들 너비 확보 및 폰트 적용 */
.window-input-area input {
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 14px;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
    color: var(--text-main);
    outline: none;
}

/* 여러 줄 입력창(textarea) 스타일 및 너비 확보 */
.window-input-area textarea {
    flex: 1;
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 13px;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(255,255,255,0.5);
    color: var(--text-main);
    outline: none;
    resize: none; 
    height: 45px; 
}

/* 전송 버튼 스타일 복구 */
.window-input-area button {
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 14px;
    background: var(--mint-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 60px; 
    transition: background 0.2s;
}

.window-input-area button:hover {
    background: var(--pink-color);
}

/* 4. 댓글이 없을 때 안내 문구 */
.window-body div[style*="text-align:center"] {
    font-family: 'PfStardust30S', sans-serif !important;
    font-size: 13px;
}


/* ========================================== */
/* 📟 캠코더 HUD 비밀글 잠금화면 (줄무늬 & 오버레이 완벽 복구) */
/* ========================================== */

/* 🌞 기본 테마 (라이트 모드) */
.error-code-box {
    position: relative; 
    width: 100%; 
    background: rgba(245, 248, 250, 0.95) !important; 
    display: grid !important; 
    grid-template-columns: 150px 1fr 150px; 
    grid-template-rows: auto 1fr auto; 
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: 'VT323', 'PfStardust30S', monospace !important; 
    border-radius: 8px;
    border: 2px solid var(--pink-color) !important; 
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(189, 216, 228, 0.5); 
}

/* 📺 라이트모드 스캔라인 부활! (맑은 하늘색 줄무늬 오버레이) */
.error-code-box::before { 
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(0deg, rgba(189, 216, 228, 0.5) 1px, transparent 1px);
    background-size: 100% 3px;
    pointer-events: none;
    animation: glitchLines 1.5s infinite steps(10);
    z-index: 5;
    display: block !important; 
}

.error-code-box .cam-guide {
    position: absolute; width: 20px; height: 20px; border-color: var(--mint-color); border-style: solid; z-index: 2; opacity: 1;
}
.cam-top-left { top: 15px; left: 15px; border-width: 2px 0 0 2px; }
.cam-top-right { top: 15px; right: 15px; border-width: 2px 2px 0 0; }
.cam-bottom-left { bottom: 15px; left: 15px; border-width: 0 0 2px 2px; }
.cam-bottom-right { bottom: 15px; right: 15px; border-width: 0 2px 2px 0; }

.error-code-box .cam-osd-top, .error-code-box .cam-osd-bottom {
    grid-column: 1 / -1; display: flex; justify-content: space-between;
    font-size: 14px; color: var(--text-muted); padding: 5px; z-index: 3; font-weight: bold;
}

/* 📺 양옆 데이터 패널 (박스 크기 절대 고정) */
.error-code-box .cam-panel {
    border: 1px solid #9dc3d4 !important; 
    background: rgba(255, 255, 255, 0.7) !important; 
    padding: 10px; overflow: hidden;
    font-size: 11px !important; color: var(--text-main) !important; 
    line-height: 1.4 !important; letter-spacing: 0.5px; z-index: 3;
    text-shadow: 0 0 2px rgba(189, 216, 228, 0.8);
    height: 125px !important; 
    min-height: 125px !important; 
    box-sizing: border-box;
}
.error-code-box .panel-header { 
    border-bottom: 1px solid #9dc3d4 !important; 
    margin-bottom: 5px; padding-bottom: 3px;
    font-weight: bold; color: var(--pink-color) !important;
}
.error-code-box .cam-side-panels { grid-row: 2; display: flex; flex-direction: column; gap: 8px; }

/* JS 생성 줄 여백 고정 */
.typing-panel div {
    font-size: 11px !important;
    line-height: 1.5 !important;
    margin: 0 !important; 
    padding: 0 !important;
}

/* ⌨️ 터미널 타이핑 커서 효과 */
.typing-cursor { color: var(--pink-color); font-weight: bold; }
.blink-infinite { animation: cursorBlink 0.8s infinite steps(2, start); }
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.error-code-box .cam-center-content {
    grid-column: 2; grid-row: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px solid var(--pink-color) !important; 
    background: rgba(255, 255, 255, 0.8) !important;
    padding: 15px 0; z-index: 3;
}

/* 라이트모드 타이틀 글리치 */
.error-code-box .error-title {
    font-size: 28px !important;
    color: var(--pink-color) !important; 
    text-transform: uppercase; margin-bottom: 5px !important;
    text-shadow: 2px 2px 0px rgba(189, 216, 228, 0.8), -2px -2px 0px rgba(247, 180, 200, 0.6); 
    animation: textGlitchLight 2s infinite;
}

.error-code-box .error-desc {
    font-size: 12px !important; color: var(--text-muted) !important;
    text-align: center; margin-bottom: 20px !important;
}

.error-code-box input[type="password"] {
    background: #fff !important;
    border: 1px solid var(--mint-color) !important; 
    border-radius: 4px; color: var(--text-main) !important;
    font-size: 16px; padding: 8px !important;
    text-align: center; width: 160px !important;
    letter-spacing: 2px; margin-bottom: 15px !important;
    font-family: 'PfStardust30S', sans-serif !important;
}
.error-code-box input[type="password"]:focus {
    outline: none; border-color: var(--pink-color) !important;
    box-shadow: 0 0 10px rgba(189, 216, 228, 0.6); 
}

.error-code-box button {
    background: var(--pink-color) !important;
    color: #fff !important; border: none !important;
    padding: 10px 30px !important; border-radius: 4px;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
    font-weight: bold; font-size: 14px; /* 도트 폰트에 맞춰 크기를 1px 키웠습니다 */
    font-family: 'PfStardust30S', sans-serif !important; /* 👈 스타더스트 폰트 적용! */
}
.error-code-box button:hover { opacity: 0.8; transform: scale(1.03); }


/* 🌙 다크 테마 */
#guest_up.dark-theme .error-code-box {
    background: rgba(10, 10, 10, 0.9) !important;
    border: 1px solid rgba(130, 255, 230, 0.3) !important;
    color: var(--mint-color) !important;
    box-shadow: none !important;
}

/* 📺 다크모드 스캔라인 부활! (눈 아픈 빨간색 대신, 은은한 민트색 텍스처로 치직거림 추가) */
#guest_up.dark-theme .error-code-box::before {
    background-image: linear-gradient(0deg, rgba(130, 255, 230, 0.15) 1px, transparent 1px);
    mix-blend-mode: color-dodge;
    display: block !important;
}

#guest_up.dark-theme .error-code-box .cam-guide { border-color: var(--mint-color) !important; opacity: 0.6; }
#guest_up.dark-theme .error-code-box .cam-osd-top, 
#guest_up.dark-theme .error-code-box .cam-osd-bottom { color: var(--mint-color) !important; font-weight: normal; }

#guest_up.dark-theme .error-code-box .cam-panel {
    background: rgba(10, 10, 10, 0.7) !important;
    border: 1px solid rgba(130, 255, 230, 0.3) !important;
    color: var(--mint-color) !important;
    text-shadow: 0 0 2px rgba(130, 255, 230, 0.6); 
}
#guest_up.dark-theme .error-code-box .panel-header { border-bottom-color: rgba(130, 255, 230, 0.3) !important; color: var(--mint-color) !important; }

#guest_up.dark-theme .error-code-box .cam-center-content {
    background: rgba(10, 10, 10, 0.9) !important;
    border: 1px solid var(--pink-color) !important;
    box-shadow: 0 0 20px rgba(255, 60, 120, 0.3) !important;
}

#guest_up.dark-theme .error-code-box .error-title {
    color: var(--rec-color) !important;
    text-shadow: 2px 2px 0px cyan, -2px -2px 0px magenta !important;
    animation: textGlitchDark 2s infinite; 
}
#guest_up.dark-theme .error-code-box .error-desc { color: #888 !important; }
#guest_up.dark-theme .error-code-box input[type="password"] {
    background: rgba(0,0,0,0.8) !important;
    border-color: var(--mint-color) !important;
    color: #fff !important;
}
#guest_up.dark-theme .error-code-box button {
    background: var(--pink-color) !important;
}

/* 📺 텍스트 글리치 애니메이션 */
@keyframes textGlitchLight {
    0%, 100% { text-shadow: 2px 2px 0px rgba(189, 216, 228, 0.8), -2px -2px 0px rgba(247, 180, 200, 0.6); }
    95% { text-shadow: 2px 2px 0px rgba(189, 216, 228, 0.8), -2px -2px 0px rgba(247, 180, 200, 0.6); }
    96% { text-shadow: 4px -2px 0px rgba(247, 180, 200, 0.6), -4px 2px 0px rgba(189, 216, 228, 0.8); }
    97% { text-shadow: -2px 4px 0px rgba(189, 216, 228, 0.8), 2px -4px 0px rgba(247, 180, 200, 0.6); }
    98% { text-shadow: 2px 2px 0px rgba(189, 216, 228, 0.8), -2px -2px 0px rgba(247, 180, 200, 0.6); }
}
@keyframes textGlitchDark {
    0%, 100% { text-shadow: 2px 2px 0px cyan, -2px -2px 0px magenta; }
    95% { text-shadow: 2px 2px 0px cyan, -2px -2px 0px magenta; }
    96% { text-shadow: 5px -2px 0px magenta, -5px 2px 0px cyan; }
    97% { text-shadow: -2px 5px 0px cyan, 2px -5px 0px magenta; }
    98% { text-shadow: 2px 2px 0px cyan, -2px -2px 0px magenta; }
}
@keyframes glitchLines { 0% { background-position: 0 0; } 100% { background-position: 0 100%; } }

/* ========================================== */
/* 📱 모바일 화면 맞춤 (반응형) */
@media (max-width: 768px) {
    .cam-title { font-size: 2.2rem; letter-spacing: 2px; margin: 10px 0; }
    .cam-top-info, .cam-bottom-info { font-size: 11px; }
    .cam-header-simple { margin-bottom: 30px; padding: 10px; }
    .window-comment { width: 90% !important; }
    #guest_up { padding: 20px 10px; }
    .guest-card { padding: 25px 15px 15px; }
    
    .error-code-box {
        display: flex !important;
        flex-direction: column;
        padding: 15px;
    }
    .error-code-box .cam-side-panels { display: none; }
}
/* ========================================== */