@charset "UTF-8";

:root {
    --primary-color: #c5a059;
    --highlight-yellow: #f1c40f;
    --bg-dark: #0a0a1a;
    --text-main: #ffffff;
    --transition-speed: 0.8s;
}

body, html {
    margin: 0; padding: 0; width: 100%; height: 100%;
    background-color: var(--bg-dark); color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    overflow: hidden; 
    user-select: none; -webkit-user-select: none;
    -ms-overflow-style: none; scrollbar-width: none; 
}

body::-webkit-scrollbar, .section-container::-webkit-scrollbar {
    display: none; 
}

body.zoom-enter-work { transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 1.2s ease; transform: scale(3) !important; opacity: 0 !important; }

.bg-layer {
    position: fixed; top: -5%; left: -5%; width: 110%; height: 110%;
    background-size: cover; background-position: center;
    z-index: 0; opacity: 0; transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}
#bg-main { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('assets/images/Intro_Background.webp'); }
#bg-world { background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.6)), url('assets/images/background1.webp'); }
#bg-guide { background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('assets/images/background2.webp'); }
.bg-active { opacity: 1 !important; }

header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; box-sizing: border-box; z-index: 9000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}
.logo-nav-img { height: 28px; cursor: pointer; filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); transition: filter 0.3s; }
.logo-nav-img:hover { filter: drop-shadow(0 0 12px rgba(255,255,255,0.6)); }

.gnb { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 35px; }
.gnb-item { font-family: 'Noto Serif KR', serif; font-size: 1rem; color: #ccc; cursor: pointer; transition: color 0.3s; letter-spacing: 1px; }
.gnb-item:hover, .gnb-item.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

.hamburger-btn {
    display: none; cursor: pointer; color: var(--primary-color); z-index: 10000;
    width: 30px; height: 30px;
}
.hamburger-btn svg { width: 100%; height: 100%; fill: currentColor; }

.music-btn {
    color: var(--primary-color); cursor: pointer; border: 1px solid rgba(197, 160, 89, 0.5); 
    padding: 6px 12px; border-radius: 20px; transition: all 0.3s; position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: center; background: rgba(10,10,26,0.5);
}
.music-btn:hover { background: rgba(197, 160, 89, 0.2); }
.music-btn svg { width: 20px; height: 20px; fill: currentColor; }

.music-popup {
    position: fixed; top: 80px; right: 40px; width: 280px; background: rgba(10, 10, 26, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.4); border-radius: 12px; padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); display: none; flex-direction: column; gap: 15px;
    z-index: 9999; backdrop-filter: blur(10px);
}
.music-popup.show { display: flex; }
.popup-header { display: flex; justify-content: space-between; align-items: center; font-family: 'Noto Sans KR', sans-serif; color: var(--primary-color); font-weight: 700; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.close-popup { cursor: pointer; font-size: 1.5rem; color: #fff; line-height: 1; }
.now-playing { font-size: 0.85rem; color: #ddd; }
.now-playing span { color: var(--highlight-yellow); font-weight: 500; display: inline-block; margin-top: 5px; }
.controls { display: flex; align-items: center; gap: 10px; }
.controls button { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.2rem; cursor: pointer; transition: all 0.3s; padding: 0; }
.controls button:hover { color: var(--primary-color); }
.controls button.active { color: var(--highlight-yellow); text-shadow: 0 0 10px var(--highlight-yellow); opacity: 1; }
.controls input[type="range"] { flex: 1; cursor: pointer; accent-color: var(--primary-color); }
.playlist { display: flex; flex-direction: column; gap: 8px; max-height: 150px; overflow-y: auto; font-size: 0.85rem; color: #aaa; padding-right: 5px; }
.playlist::-webkit-scrollbar { width: 4px; }
.playlist::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
.playlist-item { cursor: pointer; padding: 6px 8px; border-radius: 4px; transition: all 0.2s; border: 1px solid transparent; }
.playlist-item:hover { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(197, 160, 89, 0.3); }
.playlist-item.active { color: var(--highlight-yellow); font-weight: 500; background: rgba(197, 160, 89, 0.1); border-color: rgba(197, 160, 89, 0.5); }

.section-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10; opacity: 0; visibility: hidden;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    transform: scale(0.98);
}
.section-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 50; }

.fade-up { opacity: 0; transform: translateY(50px); transition: opacity 1s ease, transform 1s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

#sec-main { overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }

#sec-main .content-section {
    width: 100%; min-height: 100vh; flex-shrink: 0; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; box-sizing: border-box; padding: 100px 20px; margin-bottom: 120px; 
}
#sec-main .content-section:last-of-type { margin-bottom: 0; }

.hero-logo { width: 350px; max-width: 80vw; filter: brightness(0) invert(1) drop-shadow(0 0 35px rgba(255, 255, 255, 0.8)); }
.hero-title { font-family: 'Noto Sans KR', sans-serif; font-size: 1.1rem; color: #aaa; margin-top: 20px; letter-spacing: 2px; font-weight: 300; text-align: center; }
.scroll-indicator { margin-top: 40px; width: 35px; height: 35px; animation: bounce 2s infinite; }
.scroll-indicator svg { fill: var(--highlight-yellow); width: 100%; height: 100%; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-15px); } 60% { transform: translateY(-7px); } }

.vision-view { background-color: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); width: 100%; padding-top: 150px; padding-bottom: 150px; }
.vision-main-title { font-family: 'Noto Serif KR', serif; font-size: 4rem; color: var(--highlight-yellow); text-align: center; margin-bottom: 100px; font-weight: 700; letter-spacing: 8px; }
.vision-container { display: flex; flex-direction: column; gap: 120px; width: 100%; max-width: 1100px; margin: 0 auto; }
.vision-row { display: flex; align-items: center; justify-content: center; gap: 60px; width: 100%; }
.vision-row.reverse { flex-direction: row-reverse; }

.vision-text-box { display: flex; flex-direction: column; flex: 1; max-width: 450px; }
.vision-text-box.right { align-items: flex-end; text-align: right; }
.vision-text-box.left { align-items: flex-start; text-align: left; }
.vision-tag { color: var(--highlight-yellow); font-size: 1.1rem; font-weight: 500; letter-spacing: 2px; font-family: 'Noto Sans KR', sans-serif; margin-bottom: 0px; }
.vision-heading { font-size: 2.8rem; line-height: 1.4; font-family: 'Noto Sans KR', sans-serif; margin: 5px 0 0 0; font-weight: 500; letter-spacing: 1px; }
.vision-img { width: 550px; max-width: 100%; object-fit: cover; }

.episode-preview-title { font-family: 'Noto Serif KR', serif; font-size: 4rem; color: var(--highlight-yellow); margin-bottom: 70px; letter-spacing: 8px; font-weight: 700; text-align: center; }
.crossfade-container { display: flex; justify-content: center; gap: 100px; }
.crossfade-wrapper { display: flex; flex-direction: column; align-items: center; gap: 20px; cursor: pointer; }
.card-label { font-family: 'Noto Serif KR', serif; font-size: 1.5rem; color: var(--text-main); letter-spacing: 2px; transition: color 0.3s; font-weight: 500; }
.crossfade-card { width: 320px; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.8); transition: transform 0.4s ease, box-shadow 0.4s ease; background: #111; }
.crossfade-wrapper:hover .crossfade-card { transform: translateY(-10px) scale(1.02); box-shadow: 0 0 30px rgba(197, 160, 89, 0.4); }
.crossfade-wrapper:hover .card-label { color: var(--primary-color); }
.crossfade-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; pointer-events: none;}
.crossfade-img.active { opacity: 1; }

.site-footer { width: 100%; padding: 60px 20px; background: rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; align-items: center; gap: 25px; margin-top: 50px; box-sizing: border-box; flex-shrink: 0; }
.footer-contact { text-align: center; font-family: 'Noto Sans KR', sans-serif; margin-bottom: 10px; }
.contact-title { color: #ffffff; font-size: 1.8rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; }
.contact-email { color: #dddddd; font-size: 1.1rem; letter-spacing: 1px; font-weight: 300; }
.footer-icons { display: flex; gap: 20px; }
.footer-icon { width: 45px; height: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; justify-content: center; align-items: center; transition: all 0.3s; color: #fff; text-decoration: none; }
.footer-icon:hover { background: var(--primary-color); color: #000; transform: translateY(-5px); }
.footer-icon svg { width: 20px; height: 20px; fill: currentColor; }
.copyright { color: #888; font-size: 0.9rem; letter-spacing: 1px; }

#sec-gallery { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 100px; box-sizing: border-box; overflow: hidden; position: relative; }

.gallery-tabs-container { display: flex; gap: 20px; margin-bottom: 20px; z-index: 20; }
.ep-tab { background: transparent; border: none; color: #888; font-family: 'Noto Serif KR', serif; font-size: 1.1rem; cursor: pointer; padding: 5px 15px; transition: all 0.3s; border-bottom: 2px solid transparent; letter-spacing: 2px; font-weight: 300; }
.ep-tab.active { color: var(--highlight-yellow); border-bottom-color: var(--highlight-yellow); font-weight: 700; }
.ep-tab:hover { color: #fff; }

.carousel-area { 
    flex: 1; display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 1200px; perspective: 1500px; z-index: 10; position: relative;
    transition: opacity 0.4s ease; opacity: 1;
}

.gallery-card {
    position: absolute; left: 50%; top: 50%; width: 320px; height: 480px; margin-left: -160px; margin-top: -240px;
    border-radius: 12px; border: 2px solid rgba(255,255,255,0.1); box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform-style: preserve-3d; will-change: transform, opacity, filter; pointer-events: auto; background-color: #1a1a2e;
}
.gallery-card.active { border-color: var(--primary-color); box-shadow: 0 0 40px rgba(197, 160, 89, 0.4); cursor: pointer; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; pointer-events: none; }

.intro-card-content {
    width: 100%; height: 100%; background: linear-gradient(135deg, #1f1818 0%, #0a0a0a 100%); border-radius: 10px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0; box-sizing: border-box; text-align: center;
}
.intro-logo { width: 85%; filter: drop-shadow(0 0 20px rgba(255,255,255,0.3)); margin: 0; }

.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); border-radius: 10px; display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
@media (hover: hover) { .gallery-card.active:hover .gallery-overlay { opacity: 1; pointer-events: auto; } }
.btn-go { padding: 12px 35px; border: 1px solid var(--primary-color); color: #fff; background: rgba(197, 160, 89, 0.2); font-family: 'Cinzel', 'Noto Serif KR', serif; font-size: 1.1rem; font-weight: bold; border-radius: 4px; pointer-events: none; }

.nav-arrow-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; line-height: 40px; text-align: center; background: rgba(0, 0, 0, 0.5); color: var(--primary-color); border: 1px solid rgba(197, 160, 89, 0.5); border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 2000; backdrop-filter: blur(5px); transition: all 0.3s; display: flex; justify-content: center; align-items: center; }
.nav-arrow-btn:hover { background: var(--primary-color); color: #000; box-shadow: 0 0 15px var(--primary-color); }
.left-arrow { left: 40px; } .right-arrow { right: 40px; }

.floating-btn { position: fixed; bottom: 40px; right: 40px; z-index: 9999; width: 60px; height: 60px; background: #fee500; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 5px 20px rgba(0,0,0,0.5); cursor: pointer; transition: transform 0.3s; }
.floating-btn:hover { transform: translateY(-5px); }
.floating-btn svg { width: 30px; height: 30px; fill: #3c1e1e; }

#sec-guide { overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; }

#sec-guide .content-section {
    width: 100%; min-height: 100vh; flex-shrink: 0; 
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: relative; box-sizing: border-box; padding: 100px 20px; margin-bottom: 120px; 
}
#sec-guide .content-section:last-of-type { margin-bottom: 0; }

.guide-main-title {
    font-family: 'Noto Serif KR', serif; font-size: 4rem; color: var(--highlight-yellow);
    text-align: center; margin-bottom: 20px; font-weight: 700; letter-spacing: 8px;
}

.bookshelf-container {
    display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 50px; 
    padding: 30px 50px 0 50px; min-height: 250px; align-items: flex-end;
    background: linear-gradient(to bottom, transparent, rgba(44, 30, 22, 0.4)); 
    border-bottom: 15px solid #2c1e16; border-radius: 5px;
    box-shadow: 0 15px 15px rgba(0,0,0,0.8), inset 0 -10px 20px rgba(0,0,0,0.5);
    width: 100%; max-width: 900px;
}

.book-item {
    width: 140px; height: 210px; background: #3c2a1e; 
    border-left: 10px solid #2a1a10; border-radius: 2px 6px 6px 2px; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.8); cursor: pointer; 
    position: relative; transition: transform 0.3s, box-shadow 0.3s; 
    display: flex; align-items: center; justify-content: center;
}
.book-item:hover { transform: translateY(-15px) rotate(-2deg); box-shadow: -10px 15px 20px rgba(0,0,0,0.6); }
.book-spine-text {
    color: var(--highlight-yellow); font-family: 'Noto Serif KR', serif; 
    font-size: 1.1rem; writing-mode: vertical-rl; text-orientation: mixed;
    letter-spacing: 5px; font-weight: 700; padding: 10px; text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
.book-item.empty {
    background: transparent; border: 2px dashed rgba(255,255,255,0.1); 
    box-shadow: none; cursor: default;
}
.book-item.empty:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,0.2); }

.viewer-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(rgba(45, 30, 20, 0.88), rgba(20, 12, 8, 0.96)), url('assets/images/background2.webp');
    background-size: cover; background-position: center;
    z-index: 10000; display: flex; justify-content: center; align-items: center; 
    opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.viewer-modal.active { opacity: 1; visibility: visible; }

.close-modal-btn {
    position: absolute; top: 25px; right: 40px; background: none; border: none; 
    color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 10009; 
    transition: color 0.3s; line-height: 1; font-family: sans-serif;
}
.close-modal-btn:hover { color: var(--highlight-yellow); }

.guide-viewer-wrapper {
    position: relative; width: 100%; max-width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}

.book-layout-area {
    flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; height: 100%; width: 100%; position: relative;
}

.floating-controls {
    position: absolute; left: 30px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 10005;
}
.float-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(20, 14, 10, 0.8); border: 1px solid var(--primary-color);
    color: #fff; display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}
.float-btn:hover { background: var(--primary-color); color: #000; }
.float-btn.active { background: var(--primary-color); color: #000; box-shadow: 0 0 15px var(--primary-color); }
.float-btn svg { width: 24px; height: 24px; fill: currentColor; }

.book-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 60px; height: 100px; background: rgba(0,0,0,0.3); border: 1px solid rgba(197, 160, 89, 0.3);
    color: var(--primary-color); font-size: 2rem; display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 1000; transition: all 0.3s; border-radius: 8px; backdrop-filter: blur(3px);
}
.book-nav-btn:hover { background: rgba(197, 160, 89, 0.2); border-color: var(--primary-color); }
.book-nav-btn.left { left: 100px; }
.book-nav-btn.right { right: 100px; }

.toc-panel {
    position: fixed; right: -300px; left: auto; top: 0; width: 280px; height: 100%;
    background: rgba(20, 14, 10, 0.98); border-left: 1px solid rgba(197, 160, 89, 0.4);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 10006;
    display: flex; flex-direction: column; padding: 20px; box-sizing: border-box;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}
.toc-panel.open { right: 0; }
.toc-header { 
    display: flex; justify-content: space-between; align-items: center; 
    color: var(--highlight-yellow); font-family: 'Noto Serif KR', serif; 
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 20px; 
}
.toc-header h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.close-toc { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1; transition: color 0.3s; }
.close-toc:hover { color: var(--primary-color); }
.toc-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; }
.toc-list::-webkit-scrollbar { width: 4px; }
.toc-list::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
.toc-list li { 
    color: #ccc; padding: 12px 8px; cursor: pointer; 
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; 
    font-family: 'Noto Sans KR', sans-serif; font-size: 0.9rem; 
}
.toc-list li:hover { color: var(--highlight-yellow); background: rgba(197, 160, 89, 0.1); padding-left: 15px; }

.book-container {
    display: flex; justify-content: center; align-items: center; 
    perspective: 1500px; z-index: 10; position: relative;
}

#flipbook { transform-origin: center center; }

.book-page {
    background-color: #fdfaf5; box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden; display: flex; justify-content: center; align-items: center;
}
.book-page canvas { width: 100%; height: 100%; object-fit: fill; display: block; }

.viewer-onboarding {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 10, 8, 0.93); z-index: 10010;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.4s, visibility 0.4s;
}
.viewer-onboarding.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.onboarding-content {
    max-width: 420px; width: 85%; display: flex; flex-direction: column; gap: 22px;
    color: #fff; text-align: center; font-family: 'Noto Sans KR', sans-serif;
}
.onboarding-title {
    font-family: 'Noto Serif KR', serif; color: var(--highlight-yellow);
    font-size: 1.4rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 5px;
}
.onboarding-item {
    display: flex; align-items: center; gap: 18px; text-align: left;
    background: rgba(255,255,255,0.03); padding: 15px; border-radius: 6px;
    border: 1px solid rgba(197, 160, 89, 0.15);
}
.onboarding-item svg { width: 28px; height: 28px; fill: var(--primary-color); flex-shrink: 0; }
.onboarding-text { font-size: 0.9rem; color: #ddd; line-height: 1.45; font-weight: 300; }
.onboarding-btn {
    background: rgba(197, 160, 89, 0.2); border: 1px solid var(--primary-color);
    color: var(--highlight-yellow); padding: 13px; border-radius: 4px; cursor: pointer;
    font-weight: 700; letter-spacing: 1px; transition: all 0.3s; margin-top: 10px;
}
.onboarding-btn:hover { background: var(--primary-color); color: #000; }

.edge-zone {
    position: absolute; top: 0; height: 100%; width: 15%; z-index: 100; cursor: pointer;
}
.edge-zone-left { left: 0; }
.edge-zone-right { right: 0; }

.page-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(20, 14, 10, 0.8); border: 1px solid var(--primary-color);
    color: var(--highlight-yellow); padding: 8px 20px; border-radius: 20px;
    font-family: 'Noto Sans KR', sans-serif; font-size: 1rem; font-weight: 500;
    letter-spacing: 2px; z-index: 10005; backdrop-filter: blur(5px);
    pointer-events: none; transition: opacity 0.3s;
}

.archive-logo-wrapper {
    width: 100%;
    max-width: 700px;
    height: 140px;
    margin: 0 auto 20px auto;
}

.archive-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: invert(72%) sepia(61%) saturate(1915%) hue-rotate(358deg) brightness(101%) contrast(93%);
}

@media (max-width: 768px) {
    header { padding: 0 20px; }
    .hamburger-btn { display: block; }
    .gnb {
        position: absolute; top: 70px; left: 0; width: 100%; transform: none;
        flex-direction: column; background: rgba(10, 10, 26, 0.98);
        padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
        gap: 0; border-bottom: 1px solid rgba(197, 160, 89, 0);
        box-shadow: 0 10px 20px rgba(0,0,0,0.8); z-index: 8999;
    }
    .gnb.show { max-height: 300px; border-bottom: 1px solid rgba(197, 160, 89, 0.4); padding: 10px 0; }
    .gnb-item { padding: 15px 20px; text-align: center; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .gnb-item:last-child { border-bottom: none; }
    
    .crossfade-container { flex-direction: column; align-items: center; gap: 50px; }
    .ep-tab { font-size: 0.9rem; padding: 4px 8px; }
    .hero-logo { width: 280px; }
    .vision-main-title, .guide-main-title { font-size: 2.5rem; margin-bottom: 50px; }
    .vision-row, .vision-row.reverse { flex-direction: column; text-align: center; gap: 40px; }
    .vision-text-box.left, .vision-text-box.right { align-items: center; text-align: center; }
    .vision-heading { font-size: 2rem; }
    .vision-img { width: 90vw; }

    .gallery-card { width: 60vw; height: 90vw; margin-left: -30vw; margin-top: -45vw; }
    .gallery-overlay { display: none !important; } 
    .nav-arrow-btn { width: 36px; height: 36px; font-size: 1rem; }
    .left-arrow { left: 10px; } .right-arrow { right: 10px; }

    .book-item { width: 100px; height: 150px; }
    .book-spine-text { font-size: 0.9rem; letter-spacing: 3px; }
    
    .guide-viewer-wrapper { flex-direction: column; padding: 0; gap: 0; }
    .book-layout-area { width: 100%; height: 100%; padding-top: 20px; }
    .book-container { height: 100%; }
    .close-modal-btn { top: 20px; right: 20px; font-size: 2.2rem; }

    .floating-controls {
        flex-direction: row; left: 50%; top: auto; bottom: 20px; transform: translateX(-50%);
    }
    .book-nav-btn.left { left: 5px; }
    .book-nav-btn.right { right: 5px; }

    .page-indicator { bottom: 85px; font-size: 0.9rem; padding: 6px 15px; }
    .archive-logo-wrapper { height: 80px; max-width: 90vw; }
}