/* Smooth Scrolling System */
html { scroll-behavior: smooth; }

/* 🌟 html, body 다크 모드 100% 수호 */
html, body {
    background-color: #0b0b0e !important;
    color: #f2ebe1 !important;
    font-family: 'Noto Serif KR', serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* 🖤 1. overdo.html 원본 테마 (overdo.html 실제 body/card bg: #0b0b0e & #13131a 100% 동일 이식) */
body.theme-overdo-noir {
    background: #0b0b0e !important;
    background-color: #0b0b0e !important;
}

body.theme-overdo-noir header {
    background-color: rgba(11, 11, 14, 0.95) !important;
    border-color: rgba(163, 132, 65, 0.35) !important;
}


body.dark .card-box, body.theme-overdo-noir 

.card-subbox {
    background-color: #f4efe6;
    border: 1px solid #a38441;
    color: #292524;
    transition: all 0.4s ease;
}
body.dark .card-subbox, body.theme-overdo-noir .card-subbox {
    background-color: #0b0b0e !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    color: #f2ebe1 !important;
}
body.theme-overdo-noir .bg-gentian-950\/80,
body.theme-overdo-noir .bg-gentian-950\/90,
body.theme-overdo-noir .bg-gentian-950\/60,
body.theme-overdo-noir .bg-gentian-900,
body.theme-overdo-noir .bg-gentian-900\/80 {
    background-color: #0b0b0e !important;
    border: 1px solid rgba(138, 106, 42, 0.3) !important;
    color: #f2ebe1 !important;
}

body.theme-overdo-noir .border-gentian-700\/50,
body.theme-overdo-noir .border-gentian-700\/40,
body.theme-overdo-noir .border-gentian-600\/40 {
    border-color: rgba(138, 106, 42, 0.3) !important;
}

body.theme-overdo-noir #letter {
    background-color: #13131a !important;
    border-color: rgba(163, 132, 65, 0.35) !important;
}

body.theme-overdo-noir #common-footer footer {
    background-color: #0b0b0e !important;
    border-color: rgba(163, 132, 65, 0.3) !important;
}

/* 💜 2. 용담화 바이올렛 테마 — 연한 라이트 라벤더 버전 */
/* 타이틀 / poster-gold-text 용담화 테마 가시성 */
body.theme-gentian .poster-gold-text {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #5b21b6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-gentian h2,
body.theme-gentian h3,
body.theme-gentian h4 {
    color: #2d1a5a !important;
    -webkit-text-fill-color: #2d1a5a !important;
}
body.theme-gentian .poster-gold-text h2,
body.theme-gentian .poster-gold-text h3 {
    -webkit-text-fill-color: transparent !important;
}
body.theme-gentian .text-slate-100,
body.theme-gentian .text-slate-200,
body.theme-gentian .text-slate-300 {
    color: #2d1a5a !important;
}
body.theme-gentian .text-slate-400 {
    color: #6d5a9e !important;
}
/* amberGold 계열 텍스트도 보라 계열로 변경 */
body.theme-gentian .text-amberGold-400,
body.theme-gentian .text-amberGold-300 {
    color: #7c3aed !important;
}
body.theme-gentian .text-amberGold-500 {
    color: #5b21b6 !important;
}
/* 내부 소형 카드 강화 */
body.theme-gentian [class*="bg-gentian"] {
    background-color: rgba(237, 230, 251, 0.8) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    color: #2d1a5a !important;
}
body.theme-gentian [class*="border-gentian"] {
    border-color: rgba(167, 139, 250, 0.4) !important;
}
body.theme-gentian {
    background: linear-gradient(160deg, #f5f0ff 0%, #ede6fb 35%, #f0eafa 65%, #faf7ff 100%) !important;
    background-color: #f5f0ff !important;
    color: #2d1a5a !important;
}

body.theme-gentian #overdo-subnav {
    background-color: rgba(245, 240, 255, 0.95) !important;
    border-color: rgba(155, 123, 227, 0.35) !important;
}

/* 메뉴탑 브랜드 텍스트 (용담화) */
body.theme-gentian #overdo-subnav .overdo-menutop-title {
    color: #3b1f7a !important;
}
body.theme-gentian #overdo-subnav .overdo-menutop-sub {
    color: #6d5a9e !important;
}

/* ===== 메뉴탑 칩/버튼 (애니형) ===== */
.overdo-menutop-chip {
    background-color: rgba(19, 13, 36, 0.75);
    border-color: rgba(212, 168, 55, 0.28);
}
.overdo-menutop-btn {
    color: rgba(226, 232, 240, 0.75);
    font-weight: 700;
    border: 1px solid transparent;
    background: transparent;
}
.overdo-menutop-btn:hover {
    color: #e8c878;
}
/* 활성 테마: SPECIAL ISSUE #08 톤 (마룬 배경 + 크림 글자) */
.overdo-menutop-btn.is-active {
    color: #e8c878 !important;
    background-color: rgba(153, 27, 27, 0.72) !important;
    border-color: rgba(212, 168, 55, 0.32) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
body.theme-gentian .overdo-menutop-chip {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
}
body.theme-gentian .overdo-menutop-btn {
    color: #6d5a9e !important;
}
body.theme-gentian .overdo-menutop-btn:hover {
    color: #5b21b6 !important;
}
body.theme-gentian .overdo-menutop-btn.is-active {
    color: #5b21b6 !important;
    background-color: rgba(237, 233, 254, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    box-shadow: 0 1px 3px rgba(91, 33, 182, 0.15);
}
body.theme-crimson .overdo-menutop-chip {
    background-color: rgba(40, 10, 12, 0.85) !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
}
body.theme-crimson .overdo-menutop-btn {
    color: rgba(254, 202, 202, 0.85) !important;
}
body.theme-crimson .overdo-menutop-btn:hover {
    color: #fca5a5 !important;
}
body.theme-crimson .overdo-menutop-btn.is-active {
    color: #f0d78c !important;
    background-color: rgba(153, 27, 27, 0.78) !important;
    border-color: rgba(212, 168, 55, 0.35) !important;
}

/* ===== BGM 버튼: SPECIAL ISSUE #08 톤 (테마별 변형) ===== */
.overdo-bgm-btn {
    background-color: rgba(153, 27, 27, 0.72) !important;
    border-color: rgba(212, 168, 55, 0.32) !important;
    color: #e8c878 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(80, 10, 10, 0.35);
}
.overdo-bgm-btn:hover {
    background-color: rgba(185, 28, 28, 0.85) !important;
    border-color: rgba(232, 200, 120, 0.45) !important;
    color: #f5e0a0 !important;
}
.overdo-bgm-btn i,
.overdo-bgm-btn span {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}
body.theme-gentian .overdo-bgm-btn {
    background-color: rgba(237, 233, 254, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #5b21b6 !important;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.12);
}
body.theme-gentian .overdo-bgm-btn:hover {
    background-color: #ddd6fe !important;
    color: #4c1d95 !important;
}
body.theme-crimson .overdo-bgm-btn {
    background-color: rgba(153, 27, 27, 0.78) !important;
    border-color: rgba(212, 168, 55, 0.35) !important;
    color: #f0d78c !important;
    box-shadow: 0 2px 8px rgba(80, 10, 10, 0.4);
}
body.theme-crimson .overdo-bgm-btn:hover {
    background-color: rgba(185, 28, 28, 0.9) !important;
    color: #f5e0a0 !important;
}

/* ===== 크림슨 핏빛 모드 (원본 portal crimson-mode 확장) ===== */
body.theme-crimson {
    background: radial-gradient(circle at 50% 0%, rgba(139, 0, 0, 0.38) 0%, #0b0b0e 68%) !important;
    background-color: #0b0b0e !important;
    color: #f2ebe1 !important;
}
body.theme-crimson #overdo-subnav {
    background-color: rgba(18, 6, 8, 0.96) !important;
    border-color: rgba(185, 28, 28, 0.45) !important;
}
body.theme-crimson .overdo-menutop-title {
    color: #f87171 !important;
}
body.theme-crimson .poster-gold-text {
    background: linear-gradient(135deg, #fecaca 0%, #ef4444 45%, #7f1d1d 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-crimson .card-box {
    background-color: #16101a !important;
    border-color: rgba(220, 38, 38, 0.4) !important;
    box-shadow: 0 20px 50px rgba(127, 29, 29, 0.22) !important;
}
body.theme-crimson [class*="text-amberGold"] {
    color: #f87171 !important;
}
body.theme-crimson [class*="border-amberGold"] {
    border-color: rgba(220, 38, 38, 0.35) !important;
}
body.theme-crimson #hero-banner-section {
    border-color: rgba(220, 38, 38, 0.4) !important;
    box-shadow: 0 20px 50px rgba(127, 29, 29, 0.25) !important;
}
body.theme-crimson #common-footer footer {
    background-color: #120608 !important;
    border-color: rgba(185, 28, 28, 0.35) !important;
}

body.theme-gentian #hero-banner-section {
    background: linear-gradient(135deg, rgba(196, 176, 248, 0.35) 0%, rgba(245, 240, 255, 0.9) 60%, rgba(250, 247, 255, 0.98) 100%) !important;
    border-color: rgba(167, 139, 250, 0.5) !important;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.12) !important;
}

body.theme-gentian #hero-banner-section .hero-ambient-orb-1 {
    opacity: 0.35 !important;
    background-color: rgba(167, 139, 250, 0.4) !important;
}

body.theme-gentian #hero-banner-section .hero-ambient-orb-2 {
    opacity: 0.25 !important;
    background-color: rgba(139, 15, 21, 0.25) !important;
}

body.theme-gentian #hero-banner-section .hero-blend-overlay-1 {
    background: linear-gradient(to right, rgba(245, 240, 255, 0.95) 0%, rgba(237, 230, 251, 0.8) 40%, transparent 100%) !important;
}

body.theme-gentian #hero-banner-section .hero-blend-overlay-2 {
    background: linear-gradient(to top, rgba(245, 240, 255, 0.9) 0%, transparent 60%, rgba(245, 240, 255, 0.35) 100%) !important;
}

/* 카드 섹션 (card-box) 라이트 바이올렛 */
body.theme-gentian .card-box {
    background-color: #ffffff !important;
    border: 2px solid rgba(167, 139, 250, 0.5) !important;
    color: #2d1a5a !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1), 0 0 20px rgba(167, 139, 250, 0.08) !important;
}

/* 카드 내부 소형 카드 (bg-gentian-950) 라이트 버전 */
body.theme-gentian .bg-gentian-950\/70,
body.theme-gentian .bg-gentian-950\/80,
body.theme-gentian .bg-gentian-950\/90,
body.theme-gentian .bg-gentian-950\/60,
body.theme-gentian .bg-gentian-900,
body.theme-gentian .bg-gentian-900\/80 {
    background-color: rgba(237, 230, 251, 0.75) !important;
    border: 1px solid rgba(167, 139, 250, 0.35) !important;
    color: #2d1a5a !important;
}

/* card-box 내부 텍스트 색상 라이트 전환 */
body.theme-gentian .card-box .text-slate-100,
body.theme-gentian .card-box .text-slate-200,
body.theme-gentian .card-box .text-slate-300,
body.theme-gentian .card-box h3,
body.theme-gentian .card-box h4,
body.theme-gentian .card-box p {
    color: #2d1a5a !important;
}
body.theme-gentian .card-box .text-slate-400 {
    color: #6d5a9e !important;
}

body.theme-gentian .glass-card {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(167, 139, 250, 0.35) !important;
    backdrop-filter: blur(16px) !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1) !important;
    color: #2d1a5a !important;
}

body.theme-gentian .border-gentian-700\/50,
body.theme-gentian .border-gentian-700\/40,
body.theme-gentian .border-gentian-600\/40 {
    border-color: rgba(167, 139, 250, 0.35) !important;
}

body.theme-gentian #letter {
    background-color: rgba(245, 240, 255, 0.8) !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
}

body.theme-gentian footer {
    background-color: #f0eafa !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
    color: #6d5a9e !important;
}

/* overdo.html GOLD TEXT GRADIENT STYLING */
.poster-gold-text {
    background: linear-gradient(135deg, #f4e5c4 0%, #c8a962 50%, #8a6a2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 6px;
    line-height: 1.2;
}

/* 4대 명대사 전용 개별 테마 컬러 그라데이션 스타일 */
.quote-crimson-gradient,
.quote-gold-gradient,
.quote-indigo-gradient,
.quote-teal-gradient,
body .quote-crimson-gradient,
body .quote-gold-gradient,
body .quote-indigo-gradient,
body .quote-teal-gradient,
body.theme-gentian h4 span[class*="quote-"],
body.theme-crimson h4 span[class*="quote-"],
body.theme-overdo-noir h4 span[class*="quote-"] {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block !important;
    padding-bottom: 2px;
    line-height: 1.25;
}
/* 1번: 핏빛 크림슨 레드 그라데이션 (광기와 구원) */
.quote-crimson-gradient {
    background: linear-gradient(135deg, #ffc9c7 0%, #f87171 35%, #ef4444 65%, #991b1b 100%) !important;
}
/* 2번: 앰버 골드 그라데이션 (핏빛 증오 & 애증) */
.quote-gold-gradient {
    background: linear-gradient(135deg, #fef08a 0%, #f4e5c4 25%, #c8a962 60%, #8a6a2a 100%) !important;
}
/* 3번: 용담화 인디고 바이올렛 그라데이션 (용담화의 기억 & 관능) */
.quote-indigo-gradient {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 25%, #818cf8 60%, #4338ca 100%) !important;
}
/* 4번: 틸 에메랄드 시안 그라데이션 (초 단위로 새긴 지옥 같은 그리움) */
.quote-teal-gradient {
    background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 25%, #14b8a6 60%, #0f766e 100%) !important;
}

/* Korean Typesetting Tag Overlay Styling */
.kr-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(18, 14, 12, 0.92);
    border: 1px solid #c8a962;
    color: #f4e5c4;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    white-space: nowrap;
    pointer-events: none;
    z-index: 20;
}

.kr-tag-lead {
    background: rgba(35, 18, 14, 0.96);
    border: 1.5px solid #e5cd8b;
    color: #ffffff;
    font-size: 13px;
    padding: 3px 10px;
}

.kr-tag-sub {
    font-size: 11px;
    padding: 2px 7px;
    color: #e8ce93;
}

.kr-tag-relation {
    background: rgba(217, 69, 61, 0.92);
    border: 1px solid #d9453d;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 📱 모바일 화면 인물관계도 태그 정밀 축소 (글씨 겹침/깨짐 100% 방지) */
@media (max-width: 640px) {
    .kr-tag {
        font-size: 7.5px !important;
        padding: 1px 3.5px !important;
        border-radius: 3px !important;
        border-width: 0.5px !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
    }
    .kr-tag-lead {
        font-size: 8px !important;
        padding: 1.5px 5px !important;
    }
    .kr-tag-lead span {
        font-size: 6px !important;
    }
    .kr-tag-sub {
        font-size: 6.5px !important;
        padding: 1px 3px !important;
    }
    .kr-tag-sub span {
        font-size: 5.5px !important;
    }
    .kr-tag-relation {
        font-size: 6.5px !important;
        padding: 1px 3px !important;
    }
}

/* DRAMA ENDING CREDITS 100% REPLICATED LETTER STACK */
.ending-letter-desk-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

.letter-paper-stack-2 {
    position: absolute;
    inset: 12px;
    background-color: #e3d3ba;
    border-radius: 16px;
    transform: rotate(2.5deg) translate(8px, 12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(140, 100, 50, 0.3);
    pointer-events: none;
}

.letter-paper-stack-1 {
    position: absolute;
    inset: 12px;
    background-color: #ebe0cc;
    border-radius: 16px;
    transform: rotate(-1.8deg) translate(-6px, 6px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(140, 100, 50, 0.35);
    pointer-events: none;
}

.ending-letter-bg {
    background-color: #f4ebd9;
    background-image: 
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.7) 0%, rgba(244,235,217,0.3) 60%, rgba(210,192,160,0.45) 100%),
        linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 20px 100%;
    color: #241c13;
    box-shadow: 0 22px 55px rgba(0,0,0,0.85), inset 0 0 70px rgba(180,150,110,0.35);
    position: relative;
    overflow: visible;
    border-radius: 16px;
    /* 모든 테마 동일 스파인 폭 → 테마 전환 시 움찔/밀림 방지 */
    border: 1px solid rgba(160, 120, 60, 0.4);
    border-left: 34px solid #e2d2b4;
    transition: opacity 0.28s ease, background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

/* 📱 모바일 화면 편지 데스크 패딩/스파인 폭 최적화 (본문 텍스트 온전한 가독성 확보) */
@media (max-width: 640px) {
    .ending-letter-desk-container {
        padding: 6px !important;
    }
    .ending-letter-bg {
        border-left: 14px solid #e2d2b4 !important;
        padding: 16px 12px 18px 12px !important;
        border-radius: 12px !important;
    }
    .letter-paper-stack-1, .letter-paper-stack-2 {
        inset: 4px !important;
        border-radius: 12px !important;
    }
    .letter-red-margin-line {
        left: 8px !important;
    }
    #parchmentBorder {
        padding-left: 14px !important;
        padding-right: 4px !important;
    }
}

.letter-red-margin-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(220, 38, 38, 0.85), rgba(185, 28, 28, 0.9), rgba(220, 38, 38, 0.85));
    box-shadow: 0 0 3px rgba(220, 38, 38, 0.4);
    z-index: 15;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.sunlight-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 40%, rgba(255, 253, 240, 0.6) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 250, 220, 0.3) 0%, transparent 40%);
    pointer-events: none;
    z-index: 12;
    border-radius: 16px;
}

.leaf-shadow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 380px;
    height: 380px;
    background: 
        radial-gradient(ellipse at center, rgba(25, 45, 20, 0.22) 0%, rgba(0,0,0,0) 70%),
        linear-gradient(135deg, transparent 40%, rgba(0,0,0,0.08) 45%, transparent 50%);
    filter: blur(14px);
    pointer-events: none;
    transform: rotate(-16deg);
    z-index: 13;
    animation: gentleWind 7s ease-in-out infinite alternate;
}

@keyframes gentleWind {
    0% { transform: rotate(-16deg) translate(0, 0); }
    100% { transform: rotate(-12deg) translate(10px, 14px); }
}

.polaroid-frame {
    background-color: #ffffff;
    padding: 10px 10px 28px 10px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(210, 190, 160, 0.6);
    border-radius: 6px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}

.polaroid-frame:hover {
    transform: scale(1.12) rotate(0deg) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,0.75);
    z-index: 45 !important;
}

/* 편지와 쿠키 테마 — 따뜻한 다과·서신 톤 */
.ending-cookie-bg {
    background-color: #f7efe4;
    background-image:
        radial-gradient(ellipse at 78% 22%, rgba(212, 165, 80, 0.22) 0%, transparent 45%),
        radial-gradient(ellipse at 18% 85%, rgba(180, 120, 60, 0.18) 0%, transparent 48%),
        radial-gradient(circle at 50% 45%, rgba(255,252,245,0.75) 0%, transparent 65%);
    border-color: rgba(160, 110, 60, 0.4);
    border-left-color: #c4a062;
    box-shadow:
        0 22px 55px rgba(0,0,0,0.8),
        inset 0 0 55px rgba(180,140,80,0.12);
    color: #2a1810;
}

.ending-cookie-bg .letter-red-margin-line {
    opacity: 0.25;
    left: 18px;
}

.ending-gentian-bg {
    background-color: #edf3f8;
    background-image: radial-gradient(circle at 85% 15%, rgba(62, 40, 112, 0.22) 0%, rgba(237, 243, 248, 0.95) 75%);
    border-color: #3e2870;
    border-left-color: #2a1a4a;
    color: #161024;
    box-shadow: 0 22px 55px rgba(0,0,0,0.85);
}

.ending-zippo-bg {
    background-color: #eae1d3;
    background-image: radial-gradient(circle at 15% 85%, rgba(139, 15, 21, 0.22) 0%, rgba(234, 225, 211, 0.95) 75%);
    border-color: #8b0f15;
    border-left-color: #5c0a10;
    color: #211911;
    box-shadow: 0 22px 55px rgba(0,0,0,0.85);
}

.wax-seal-realistic {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
    background: radial-gradient(circle at 35% 35%, #ff4d4d 0%, #b81d24 45%, #610a0e 85%, #3d0608 100%);
    box-shadow: 
        0 8px 20px rgba(0,0,0,0.6),
        inset 0 3px 8px rgba(255,255,255,0.4),
        inset 0 -5px 12px rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(247, 219, 134, 0.5);
    transition: transform 0.25s ease;
}

.wax-seal-inner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px dashed rgba(247, 219, 134, 0.75);
    background: radial-gradient(circle at 30% 30%, rgba(184, 29, 36, 0.95), rgba(61, 6, 8, 0.98));
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f7db86;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
}

.wax-seal-realistic.is-cracking {
    animation: waxSealCrack 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: none;
}
.wax-seal-realistic.is-cracking .wax-seal-inner {
    animation: waxSealSplit 0.72s ease-in forwards;
}
.wax-seal-realistic.is-cracking::after {
    content: '';
    position: absolute;
    inset: 18% 48%;
    background: linear-gradient(180deg, transparent, rgba(255,220,160,0.85), transparent);
    box-shadow: 0 0 8px rgba(255, 180, 80, 0.7);
    animation: waxCrackLine 0.55s ease-out forwards;
    z-index: 3;
}
@keyframes waxSealCrack {
    0% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    35% { transform: scale(1.12) rotate(-4deg); filter: brightness(1.25); }
    70% { transform: scale(1.05) rotate(6deg); filter: brightness(1.1); }
    100% { transform: scale(0.92) rotate(10deg); opacity: 0.35; filter: brightness(0.85); }
}
@keyframes waxSealSplit {
    0% { transform: scale(1); }
    100% { transform: scale(1.08) rotate(12deg); opacity: 0.4; }
}
@keyframes waxCrackLine {
    0% { opacity: 0; transform: scaleY(0.2); }
    40% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(1.2); }
}

.wax-crumb {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 40% 60% 50% 50%;
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #7f1d1d 70%);
    pointer-events: none;
    z-index: 120;
    animation: waxCrumbFly 0.7s ease-out forwards;
}
@keyframes waxCrumbFly {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--cx)), calc(-50% + var(--cy))) scale(0.3); }
}

#letterModal {
    perspective: 1200px;
}
#letterModalInner.is-unfurling {
    animation: letterUnfurl 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform-origin: center top;
}
@keyframes letterUnfurl {
    0% { opacity: 0; transform: scale(0.88) rotateX(14deg) translateY(18px); }
    100% { opacity: 1; transform: scale(1) rotateX(0deg) translateY(0); }
}

/* 클릭 불씨 / 테마 앰비언트 */
#overdo-fx-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 71;
}
/* 콘텐츠·메뉴탑 위, 메인탑(100)·BGM 위젯(80)보다 아래 */
#overdo-ambient-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 65;
}

.click-ember {
    position: fixed;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, #ffe7a0 0%, #f59e0b 35%, #b91c1c 75%, transparent 100%);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.75);
    animation: emberBurst 0.95s ease-out forwards;
}
body.theme-gentian .click-ember {
    background: radial-gradient(circle, #f5e6ff 0%, #c4b5fd 40%, #7c3aed 80%, transparent 100%);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.7);
}
body.theme-crimson .click-ember {
    background: radial-gradient(circle, #fecaca 0%, #ef4444 40%, #7f1d1d 80%, transparent 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}
@keyframes emberBurst {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.15); }
}

.ambient-particle {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    animation: ambientDrift linear forwards;
    filter: saturate(1.15);
}
body.theme-overdo-noir .ambient-particle,
body.theme-crimson .ambient-particle {
    mix-blend-mode: screen;
}
body.theme-gentian .ambient-particle {
    mix-blend-mode: multiply;
}
.ambient-particle.is-dust {
    width: var(--ps, 14px);
    height: var(--ps, 14px);
    border-radius: 50%;
    background: radial-gradient(circle, #fff6d0 0%, #f0d060 40%, #c9a227 70%, transparent 100%);
    box-shadow:
        0 0 14px rgba(255, 214, 102, 0.95),
        0 0 28px rgba(245, 158, 11, 0.55),
        0 0 40px rgba(185, 28, 28, 0.25);
}
.ambient-particle.is-petal {
    width: var(--pw, 22px);
    height: var(--ph, 28px);
    border-radius: 4px 18px 4px 18px;
    background: linear-gradient(145deg, #f3e8ff 0%, #c4b5fd 35%, #8b5cf6 70%, #5b21b6 100%);
    box-shadow:
        0 0 16px rgba(139, 92, 246, 0.75),
        0 4px 10px rgba(91, 33, 182, 0.35);
    mix-blend-mode: normal;
}
.ambient-particle.is-ash {
    width: var(--ps, 15px);
    height: var(--ps, 15px);
    border-radius: 45% 55% 50% 50%;
    background: radial-gradient(circle, #fff1f1 0%, #f87171 35%, #dc2626 65%, #7f1d1d 90%, transparent 100%);
    box-shadow:
        0 0 16px rgba(248, 113, 113, 1),
        0 0 32px rgba(220, 38, 38, 0.7),
        0 0 48px rgba(127, 29, 29, 0.4);
}
@keyframes ambientDrift {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0deg) scale(0.55); }
    6% { opacity: 1; }
    55% { opacity: 0.92; }
    100% { opacity: 0; transform: translate3d(var(--ax), var(--ay), 0) rotate(var(--arot)) scale(1.25); }
}

/* 편지 섹션 밖 독립 CTA — 폴라로이드와 절대 겹치지 않음 */
.wax-seal-cta-wrap {
    max-width: 72rem;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem;
}
.wax-seal-cta {
    position: relative;
    z-index: 5;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    border: 2px solid rgba(200, 169, 98, 0.65);
    background: linear-gradient(135deg, rgba(20, 16, 14, 0.98), rgba(55, 18, 18, 0.96));
    box-shadow:
        0 16px 40px rgba(0,0,0,0.55),
        0 0 0 1px rgba(247, 219, 134, 0.12),
        0 0 36px rgba(185, 28, 28, 0.28);
}
body.theme-gentian .wax-seal-cta {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 16px 36px rgba(91, 33, 182, 0.14);
}
.wax-seal-realistic.wax-seal-hero {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
}
.wax-seal-realistic.wax-seal-hero .wax-seal-inner {
    width: 82px;
    height: 82px;
    font-size: 18px;
}
.wax-seal-pulse {
    animation: waxSealPulse 1.6s ease-in-out infinite;
}
@keyframes waxSealPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 8px 20px rgba(0,0,0,0.6),
            0 0 0 0 rgba(220, 38, 38, 0.55),
            inset 0 3px 8px rgba(255,255,255,0.4),
            inset 0 -5px 12px rgba(0,0,0,0.85);
    }
    50% {
        transform: scale(1.08);
        box-shadow:
            0 12px 32px rgba(0,0,0,0.55),
            0 0 0 16px rgba(220, 38, 38, 0),
            inset 0 3px 8px rgba(255,255,255,0.4),
            inset 0 -5px 12px rgba(0,0,0,0.85);
    }
}
.wax-seal-realistic.is-cracking.wax-seal-pulse {
    animation: waxSealCrack 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.theme-gentian .wax-seal-cta #stampLabel {
    color: #5b21b6 !important;
    -webkit-text-fill-color: #5b21b6 !important;
}
body.theme-gentian .wax-seal-cta p,
body.theme-gentian .wax-seal-cta .font-sans {
    color: #4c1d95 !important;
    -webkit-text-fill-color: #4c1d95 !important;
}

@media (prefers-reduced-motion: reduce) {
    .click-ember, .ambient-particle, .wax-crumb,
    .wax-seal-realistic.is-cracking,
    #letterModalInner.is-unfurling { animation: none !important; }
}

.bar {
    width: 4px;
    height: 10px;
    background-color: #d4a837;
    border-radius: 2px;
    animation: audioBounce 1s infinite alternate ease-in-out;
}

@keyframes audioBounce {
    0% { height: 5px; }
    100% { height: 26px; }
}

.playing .bar1 { animation-delay: 0.1s; }
.playing .bar2 { animation-delay: 0.3s; }
.playing .bar3 { animation-delay: 0.2s; }
.playing .bar4 { animation-delay: 0.4s; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b0b0e; }
::-webkit-scrollbar-thumb { background: #7e622b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #c8a962; }
    
.card-box {
    background-color: #13131a !important;
    border: 2px solid rgba(212, 168, 55, 0.22) !important;
    border-radius: 1.5rem !important;
    color: #f2ebe1 !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 14px rgba(212, 168, 55, 0.08) !important;
    transition: all 0.4s ease;
    margin-bottom: 2.5rem !important;
}
body.theme-overdo-noir .card-box, body.dark .card-box {
    background-color: #13131a !important;
    border: 2px solid rgba(212, 168, 55, 0.22) !important;
    color: #f2ebe1 !important;
}

/* ============================================================
   💜 용담화 라이트 테마 최종 오버라이드 (MUST BE LAST IN FILE)
   body.dark 와 공존해도 이 블록이 이깁니다 (cascade 최후 선언)
============================================================ */

/* 페이지 전체 배경 */
body.theme-gentian {
    background: linear-gradient(160deg, #f5f0ff 0%, #ede6fb 35%, #f0eafa 65%, #faf7ff 100%) !important;
    background-color: #f5f0ff !important;
    color: #2d1a5a !important;
}

/* card-box 섹션 — 흰 배경 + 연보라 테두리 */
body.theme-gentian .card-box,
body.theme-gentian.dark .card-box {
    background-color: #faf8ff !important;
    border: 2px solid rgba(167, 139, 250, 0.45) !important;
    color: #2d1a5a !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.09), 0 0 16px rgba(167, 139, 250, 0.07) !important;
}

/* card-box 내부 텍스트 */
body.theme-gentian .card-box *,
body.theme-gentian.dark .card-box * {
    color: #2d1a5a !important;
    -webkit-text-fill-color: #2d1a5a !important;
}

/* 인물관계도 한글 오버레이 태그(.kr-tag)는 이미지 위에 얹는 뱃지라 위 규칙(card-box 내부 텍스트 보라색 통일)의
   예외로 둔다 — 안 그러면 어두운 뱃지 배경 위에 보라색 글자가 겹쳐 안 보이게 됨(용담화 바이올렛 테마 버그) */
body.theme-gentian .card-box .kr-tag,
body.theme-gentian.dark .card-box .kr-tag {
    color: #f4e5c4 !important;
    -webkit-text-fill-color: #f4e5c4 !important;
}
body.theme-gentian .card-box .kr-tag-sub,
body.theme-gentian.dark .card-box .kr-tag-sub {
    color: #e8ce93 !important;
    -webkit-text-fill-color: #e8ce93 !important;
}
body.theme-gentian .card-box .kr-tag-lead,
body.theme-gentian.dark .card-box .kr-tag-lead,
body.theme-gentian .card-box .kr-tag-relation,
body.theme-gentian.dark .card-box .kr-tag-relation {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* poster-gold-text (제목 그라데이션) 예외 처리 */
body.theme-gentian .poster-gold-text,
body.theme-gentian.dark .poster-gold-text {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #5b21b6 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* 4대 명대사 전용 컬러 그라데이션 최종 예외 처리 (와일드카드 덮어쓰기 원천 차단) */
.quote-crimson-gradient,
.quote-gold-gradient,
.quote-indigo-gradient,
.quote-teal-gradient,
body.theme-gentian .quote-crimson-gradient,
body.theme-gentian .quote-gold-gradient,
body.theme-gentian .quote-indigo-gradient,
body.theme-gentian .quote-teal-gradient,
body.theme-crimson .quote-crimson-gradient,
body.theme-crimson .quote-gold-gradient,
body.theme-crimson .quote-indigo-gradient,
body.theme-crimson .quote-teal-gradient,
body.theme-overdo-noir .quote-crimson-gradient,
body.theme-overdo-noir .quote-gold-gradient,
body.theme-overdo-noir .quote-indigo-gradient,
body.theme-overdo-noir .quote-teal-gradient {
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    display: inline-block !important;
    padding-bottom: 2px !important;
    line-height: 1.25 !important;
}
.quote-crimson-gradient, body .quote-crimson-gradient {
    background: linear-gradient(135deg, #ffc9c7 0%, #f87171 35%, #ef4444 65%, #991b1b 100%) !important;
}
.quote-gold-gradient, body .quote-gold-gradient {
    background: linear-gradient(135deg, #fef08a 0%, #f4e5c4 25%, #c8a962 60%, #8a6a2a 100%) !important;
}
.quote-indigo-gradient, body .quote-indigo-gradient {
    background: linear-gradient(135deg, #ede9fe 0%, #c4b5fd 25%, #818cf8 60%, #4338ca 100%) !important;
}
.quote-teal-gradient, body .quote-teal-gradient {
    background: linear-gradient(135deg, #ccfbf1 0%, #5eead4 25%, #14b8a6 60%, #0f766e 100%) !important;
}

/* 내부 소형 카드 (bg-gentian-*) */
body.theme-gentian [class*="bg-gentian"],
body.theme-gentian.dark [class*="bg-gentian"] {
    background-color: rgba(237, 230, 251, 0.8) !important;
    color: #2d1a5a !important;
}
body.theme-gentian [class*="border-gentian"],
body.theme-gentian.dark [class*="border-gentian"] {
    border-color: rgba(167, 139, 250, 0.4) !important;
}

/* amberGold 텍스트 → 보라 계열 */
body.theme-gentian [class*="text-amberGold"],
body.theme-gentian.dark [class*="text-amberGold"] {
    color: #7c3aed !important;
    -webkit-text-fill-color: #7c3aed !important;
}

/* slate 텍스트 */
body.theme-gentian [class*="text-slate-1"],
body.theme-gentian [class*="text-slate-2"],
body.theme-gentian [class*="text-slate-3"],
body.theme-gentian.dark [class*="text-slate-1"],
body.theme-gentian.dark [class*="text-slate-2"],
body.theme-gentian.dark [class*="text-slate-3"] {
    color: #2d1a5a !important;
    -webkit-text-fill-color: #2d1a5a !important;
}
body.theme-gentian [class*="text-slate-4"],
body.theme-gentian.dark [class*="text-slate-4"] {
    color: #6d5a9e !important;
    -webkit-text-fill-color: #6d5a9e !important;
}

/* glass-card */
body.theme-gentian .glass-card,
body.theme-gentian.dark .glass-card {
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(167, 139, 250, 0.35) !important;
    color: #2d1a5a !important;
}

/* 서브탑 */
body.theme-gentian #overdo-subnav,
body.theme-gentian.dark #overdo-subnav {
    background-color: rgba(248, 245, 255, 0.97) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

/* 🌟 용담화 바이올렛 (라이트 테마) — 공통 최상단 TOP 메뉴 (GNB Navbar) 완벽 라이트화 */
body.theme-gentian #common-navbar header,
body.theme-gentian.dark #common-navbar header {
    background: transparent !important;
}

/* 1단 메인 내비 바 배경 & 테두리 */
body.theme-gentian #common-navbar header > div:first-child,
body.theme-gentian.dark #common-navbar header > div:first-child {
    background-color: rgba(250, 245, 255, 0.97) !important;
    border-bottom: 1px solid rgba(167, 139, 250, 0.38) !important;
    color: #2d1a5a !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.06) !important;
}

/* Z. LINGHE 브랜드 로고 텍스트 */
body.theme-gentian #common-navbar a span.font-serif,
body.theme-gentian.dark #common-navbar a span.font-serif {
    color: #4c1d95 !important;
    -webkit-text-fill-color: #4c1d95 !important;
}
body.theme-gentian #common-navbar a span.uppercase,
body.theme-gentian.dark #common-navbar a span.uppercase {
    color: #6d5a9e !important;
    -webkit-text-fill-color: #6d5a9e !important;
}

/* GNB 상단 네비게이션 링크들 (HOME, THE LINGHE, WORKS, AMBASSADOR 등) */
body.theme-gentian #common-navbar .nav-link-item,
body.theme-gentian.dark #common-navbar .nav-link-item,
body.theme-gentian #common-navbar nav a,
body.theme-gentian.dark #common-navbar nav a {
    color: #3b1f7a !important;
    -webkit-text-fill-color: #3b1f7a !important;
    font-weight: 700;
}
body.theme-gentian #common-navbar .nav-link-item:hover,
body.theme-gentian.dark #common-navbar .nav-link-item:hover,
body.theme-gentian #common-navbar nav a:hover,
body.theme-gentian.dark #common-navbar nav a:hover {
    color: #7c3aed !important;
    -webkit-text-fill-color: #7c3aed !important;
}
body.theme-gentian #common-navbar .nav-link-item.active-menu,
body.theme-gentian.dark #common-navbar .nav-link-item.active-menu {
    color: #6d28d9 !important;
    -webkit-text-fill-color: #6d28d9 !important;
    font-weight: 800 !important;
}

/* WORKS 드롭다운은 위 규칙에서 빼 준다.
   바로 위 `#common-navbar nav a` 가 내비 안의 모든 링크를 짙은 보라로 칠하는데,
   드롭다운 링크도 그 안에 들어간다. 패널은 검은색(#141414) 그대로라
   검은 바탕에 짙은 보라 글자가 되어 아예 안 보였다.
   -webkit-text-fill-color 는 color 를 덮어쓰면서도 getComputedStyle().color 에는
   나타나지 않아, 색을 조회해 보면 멀쩡해 보이는 것이 이 문제의 함정이다.
   currentColor 로 되돌려 각 항목이 제 색(금색·회색·작품별 고유색)으로 나오게 한다. */
body.theme-gentian #common-navbar .absolute.top-full,
body.theme-gentian #common-navbar .absolute.top-full *,
body.theme-gentian.dark #common-navbar .absolute.top-full,
body.theme-gentian.dark #common-navbar .absolute.top-full * {
    -webkit-text-fill-color: currentColor !important;
}

/* SPECIAL 무안후 사정 뱃지 */
body.theme-gentian #common-navbar #muanhou-special-badge,
body.theme-gentian.dark #common-navbar #muanhou-special-badge {
    background-color: rgba(243, 232, 255, 0.85) !important;
    border-color: rgba(167, 139, 250, 0.55) !important;
    color: #5b21b6 !important;
}
body.theme-gentian #common-navbar #muanhou-special-badge span,
body.theme-gentian.dark #common-navbar #muanhou-special-badge span {
    color: #5b21b6 !important;
    -webkit-text-fill-color: #5b21b6 !important;
}

/* 모바일 햄버거 토글 버튼 */
body.theme-gentian #common-navbar #mobile-menu-btn,
body.theme-gentian.dark #common-navbar #mobile-menu-btn {
    border-color: rgba(167, 139, 250, 0.45) !important;
    color: #4c1d95 !important;
}

/* 2단 세컨드바 (서브로고 및 테마 컨트롤) */
body.theme-gentian #common-navbar header > div.border-t,
body.theme-gentian.dark #common-navbar header > div.border-t {
    background-color: rgba(243, 237, 253, 0.94) !important;
    border-top: 1px solid rgba(167, 139, 250, 0.32) !important;
}
body.theme-gentian #common-navbar header > div.border-t span,
body.theme-gentian.dark #common-navbar header > div.border-t span {
    color: #4c1d95 !important;
    -webkit-text-fill-color: #4c1d95 !important;
}

/* 2단 서브바 테마 상태 칩 */
body.theme-gentian #common-navbar #themeStatusPill,
body.theme-gentian #common-navbar #themeStatusPill-desk,
body.theme-gentian.dark #common-navbar #themeStatusPill,
body.theme-gentian.dark #common-navbar #themeStatusPill-desk {
    background-color: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(167, 139, 250, 0.45) !important;
}
body.theme-gentian #common-navbar #themeStatusPill span,
body.theme-gentian #common-navbar #themeStatusPill-desk span,
body.theme-gentian.dark #common-navbar #themeStatusPill span,
body.theme-gentian.dark #common-navbar #themeStatusPill-desk span {
    color: #5b21b6 !important;
    -webkit-text-fill-color: #5b21b6 !important;
}

/* 모바일 드롭다운 메뉴 패널 */
body.theme-gentian #common-navbar #mobile-menu-panel,
body.theme-gentian.dark #common-navbar #mobile-menu-panel {
    background-color: rgba(248, 245, 255, 0.98) !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
}
body.theme-gentian #common-navbar #mobile-menu-panel a,
body.theme-gentian.dark #common-navbar #mobile-menu-panel a {
    color: #2d1a5a !important;
}
body.theme-gentian #common-navbar #mobile-menu-panel a:hover,
body.theme-gentian.dark #common-navbar #mobile-menu-panel a:hover {
    background-color: rgba(237, 230, 251, 0.85) !important;
}

/* 공통 푸터 */
body.theme-gentian #common-footer footer,
body.theme-gentian.dark #common-footer footer {
    background-color: #f0eafa !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
    color: #6d5a9e !important;
}

/* ── 추가 수정 ── */

/* 1. card-box: 순흰색 대신 타이틀과 같은 연한 바이올렛 그라데이션 */
body.theme-gentian .card-box,
body.theme-gentian.dark .card-box {
    background: linear-gradient(145deg, #f5f0ff 0%, #ede6fb 60%, #f0eafa 100%) !important;
    border: 2px solid rgba(167, 139, 250, 0.38) !important;
    color: #2d1a5a !important;
    box-shadow: 0 8px 28px rgba(139, 92, 246, 0.09) !important;
}

/* 2. 서신 내용 박스 (bg-black/50 → 연한 라벤더) */
body.theme-gentian [class*="bg-black"],
body.theme-gentian.dark [class*="bg-black"] {
    background-color: rgba(237, 230, 251, 0.65) !important;
    background: rgba(237, 230, 251, 0.65) !important;
}

/* 3. 갤러리 포스터 배경 박스 */
body.theme-gentian #section-gallery [class*="bg-black"],
body.theme-gentian.dark #section-gallery [class*="bg-black"],
body.theme-gentian #section-gallery .shadow-2xl.border,
body.theme-gentian.dark #section-gallery .shadow-2xl.border {
    background: linear-gradient(135deg, #ede6fb 0%, #e8dff8 50%, #f0eafa 100%) !important;
}

/* 4. crimson 다크 배지 — card-box * 다크텍스트 + 어두운 배경이 겹쳐 안 보이던 문제 */
body.theme-gentian [class*="bg-crimson-6"],
body.theme-gentian [class*="bg-crimson-7"],
body.theme-gentian [class*="bg-crimson-8"],
body.theme-gentian [class*="bg-crimson-9"],
body.theme-gentian.dark [class*="bg-crimson-6"],
body.theme-gentian.dark [class*="bg-crimson-7"],
body.theme-gentian.dark [class*="bg-crimson-8"],
body.theme-gentian.dark [class*="bg-crimson-9"] {
    background-color: rgba(254, 226, 226, 0.96) !important;
    border-color: rgba(220, 38, 38, 0.42) !important;
}
body.theme-gentian [class*="bg-crimson"],
body.theme-gentian [class*="bg-crimson"] *,
body.theme-gentian.dark [class*="bg-crimson"],
body.theme-gentian.dark [class*="bg-crimson"] * {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}
body.theme-gentian .card-box [class*="text-crimson"],
body.theme-gentian.dark .card-box [class*="text-crimson"] {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}
body.theme-gentian .card-box [class*="border-crimson"],
body.theme-gentian.dark .card-box [class*="border-crimson"] {
    border-color: rgba(220, 38, 38, 0.4) !important;
}

/* IMAGE HOVER AMBIENT GRADIENT GLOW EFFECT (마우스 오버시 하단 그라데이션 글로우) */
.img-glow-wrapper {
    position: relative;
    overflow: hidden;
}
.img-glow-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(212, 168, 55, 0.7) 0%, rgba(185, 28, 28, 0.35) 40%, transparent 85%);
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 11;
}
.img-glow-wrapper:hover::after,
.group:hover .img-glow-wrapper::after {
    opacity: 1;
}

/* ===== 1930s Interactive Lounge (compact) ===== */
@keyframes spinVinylLP { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes waxStampHit {
    0% { transform: translate(-50%, -50%) scale(2.4) rotate(-12deg); opacity: 0; }
    55% { transform: translate(-50%, -50%) scale(0.96) rotate(2deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes floatEmberParticle {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-70px) scale(0.2); opacity: 0; }
}
.vinyl-spinning { animation: spinVinylLP 12s linear infinite; }
.lounge-wax-stamped { animation: waxStampHitLocal 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes waxStampHitLocal {
    0% { transform: scale(2.2) rotate(-10deg); opacity: 0; }
    55% { transform: scale(0.96) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.lounge-wax-seal {
    width: 64px;
    height: 64px;
    border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
    background: radial-gradient(circle at 35% 35%, #ff5252 0%, #d32f2f 40%, #8b0000 80%, #4a0000 100%);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.55),
        inset 0 3px 8px rgba(255,255,255,0.4),
        inset 0 -5px 12px rgba(0,0,0,0.8);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(232, 200, 120, 0.5);
}
.lounge-wax-inner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px dashed rgba(232, 200, 120, 0.75);
    background: radial-gradient(circle at 30% 30%, rgba(183, 28, 28, 0.95), rgba(74, 0, 0, 0.98));
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #f5e0a0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.cursor-lounge-stamp {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: waxStampHit 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.lounge-lp-btn {
    background-color: rgba(153, 27, 27, 0.72) !important;
    border: 1px solid rgba(212, 168, 55, 0.35) !important;
    color: #e8c878 !important;
}
.lounge-lp-btn:hover {
    background-color: rgba(185, 28, 28, 0.88) !important;
    color: #f5e0a0 !important;
}
body.theme-gentian .lounge-lp-btn {
    background-color: rgba(237, 233, 254, 0.95) !important;
    border-color: rgba(139, 92, 246, 0.45) !important;
    color: #5b21b6 !important;
}
body.theme-gentian #section-interactives .lounge-oath-paper {
    background: #faf5ff !important;
    color: #2d1a5a !important;
}
body.theme-gentian #section-interactives .lounge-oath-paper h5,
body.theme-gentian #section-interactives .lounge-oath-paper p,
body.theme-gentian #section-interactives .lounge-oath-paper span,
body.theme-gentian #section-interactives .lounge-oath-paper strong {
    color: #2d1a5a !important;
    -webkit-text-fill-color: #2d1a5a !important;
}
