/* ===== VARIABLES ===== */
:root {
    --black: #0A0A0A;
    --gold: #D4AF37;
    --crimson: #8B0000;
    --gray: #71797E;
    --cream: #FAF6F0;
    --plum: #C77B95;
    --white: #FFFFFF;
    
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    
    --transition: all 0.3s ease;
    --long-transition: all 0.6s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--black);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="none" stroke="%23D4AF37" stroke-width="2"/><circle cx="16" cy="16" r="3" fill="%23D4AF37"/></svg>') 16 16, auto;
}

a, button {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="none" stroke="%238B0000" stroke-width="2"/><circle cx="16" cy="16" r="5" fill="%238B0000"/></svg>') 16 16, pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.loading-pattern {
    width: 200px;
    height: 200px;
    background: 
        repeating-linear-gradient(
            0deg,
            var(--gold) 0px,
            var(--gold) 2px,
            transparent 2px,
            transparent 10px
        ),
        repeating-linear-gradient(
            90deg,
            var(--gold) 0px,
            var(--gold) 2px,
            transparent 2px,
            transparent 10px
        );
    opacity: 0.3;
    animation: fadePattern 2s ease-in-out infinite;
}

.loading-text {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0.8;
}

/* ===== CEREMONY ENTRANCE ===== */
#ceremony-entrance {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.95), #0A0A0A) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hide navigation during ceremony */
body.ceremony-active nav,
body.ceremony-active #main-nav,
body.ceremony-active header {
    display: none !important;
}

.ceremony-container {
    max-width: 800px;
    width: 90%;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
}

.ceremony-title {
    margin-bottom: 40px;
}

.ceremony-title .kanji-vertical {
    display: block;
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    writing-mode: horizontal-tb;
}

.ceremony-title .romaji {
    font-size: 1.5rem;
    color: var(--cream);
    letter-spacing: 3px;
    font-weight: 300;
    display: block;
}

.ceremony-instruction {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-style: italic;
}

/* Incense Altar */
.incense-altar {
    position: relative;
    margin: 60px auto;
}

.incense-instruction {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 30px 0 20px;
    font-style: italic;
    opacity: 0.8;
    animation: gentlePulse 2s ease-in-out infinite;
}

.incense-sticks {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stick {
    position: relative;
    width: 4px;
    height: 100px;
    background: linear-gradient(to top, #8B4513, #A0522D);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stick:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.stick:not(.lit) {
    animation: subtleGlow 3s ease-in-out infinite;
}

.stick.lit {
    animation: none;
}

.stick::before {
    content: 'Click to light';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    color: var(--gold);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stick:hover::before {
    opacity: 1;
}

.stick.lit::before {
    display: none;
}

.stick-meaning {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--gray);
    white-space: nowrap;
}

/* Ceremony Text */
.ceremony-text {
    margin-top: 60px;
    text-align: center;
}

.ceremony-text.hidden {
    display: none;
}

.ceremony-verse {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 2;
    color: var(--cream);
    margin: 40px auto;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
}

.user-address {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 30px 0;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
}

.enter-btn {
    padding: 15px 50px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
    display: inline-block;
    text-transform: uppercase;
    font-family: var(--font-sans);
    opacity: 0;
    transform: translateY(20px);
}

.enter-btn:hover {
    background: var(--gold);
    color: var(--black);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.ceremony-verse.show,
.user-address.show,
.enter-btn.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

/* ===== NAVIGATION ===== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-logo .kanji {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--gold);
    font-weight: 700;
}

.nav-logo .romaji {
    font-size: 0.8rem;
    color: var(--cream);
    opacity: 0.7;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 300;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent, 
        var(--gold) 20%, 
        var(--gold) 80%, 
        transparent
    );
    opacity: 0.3;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.rain-container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.01) 50%,
        transparent 100%
    );
    animation: rain 0.5s linear infinite;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1.5s ease;
}

.hero-title {
    margin-bottom: 20px;
}

.kanji-vertical {
    display: block;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold);
    writing-mode: vertical-rl;
    margin: 0 auto 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.romaji-title {
    display: block;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--cream);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 300;
    margin-bottom: 50px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

.hero-image-container {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.3;
}

.hero-image {
    height: 80vh;
    object-fit: contain;
}

/* ===== SHOJI TRANSITIONS ===== */
.shoji-transition {
    height: 100px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.shoji-transition.top {
    background: linear-gradient(
        to bottom,
        var(--black) 0%,
        var(--black) 48%,
        var(--gold) 49%,
        var(--gold) 51%,
        transparent 52%,
        transparent 100%
    );
}

.shoji-transition.bottom {
    background: linear-gradient(
        to top,
        var(--black) 0%,
        var(--black) 48%,
        var(--gold) 49%,
        var(--gold) 51%,
        transparent 52%,
        transparent 100%
    );
}

.shoji-transition::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 48px,
        var(--gold) 48px,
        var(--gold) 52px
    );
    animation: shojiSlide 20s linear infinite;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.title-kanji {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.title-romaji {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 2px;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.05) 0%,
        transparent 70%
    );
}

.profile-scroll {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.scroll-paper {
    background: var(--cream);
    color: var(--black);
    padding: 60px;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-paper::before,
.scroll-paper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(
        to right,
        rgba(139, 0, 0, 0.1),
        transparent
    );
    pointer-events: none;
}

.scroll-paper::before {
    left: 0;
}

.scroll-paper::after {
    right: 0;
    transform: scaleX(-1);
}

.profile-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.profile-portrait {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-titles h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px;
}

.titles {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 20px;
}

.stat {
    background: var(--gold);
    color: var(--cream);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.trait-constellation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.trait {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.trait:hover {
    transform: translateY(-5px);
}

.trait-icon {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--black);
    margin-bottom: 10px;
    transition: var(--transition);
}

.trait:hover .trait-icon {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.trait-name {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
}

.trait-desc {
    font-size: 0.9rem;
    color: var(--gray);
}

.trait-constellation::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--gold),
        transparent
    );
    opacity: 0.3;
}

.character-quote {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    text-align: center;
    color: var(--crimson);
    margin: 40px 0;
    padding: 20px;
    border-left: 3px solid var(--gold);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.detail-card {
    background: rgba(212, 175, 55, 0.05);
    padding: 25px;
    border-radius: 5px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.detail-card h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-family: var(--font-serif);
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.detail-card li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ===== LOCATIONS SECTION ===== */
.locations-section {
    padding: 100px 0;
    background: var(--black);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.location-hex {
    position: relative;
    width: 100%;
    padding-bottom: 115.47%;
    cursor: pointer;
    transition: var(--transition);
}

.location-hex:hover {
    transform: scale(1.05);
}

.hex-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    overflow: hidden;
}

.hex-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.location-hex:hover img {
    transform: scale(1.1);
}

.hex-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: var(--transition);
    opacity: 0;
}

.location-hex:hover .hex-overlay {
    opacity: 1;
}

.hex-overlay h3 {
    color: var(--gold);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.hex-overlay p {
    color: var(--cream);
    font-size: 0.9rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 100px 0;
    background: radial-gradient(
        ellipse at center,
        rgba(199, 123, 149, 0.05) 0%,
        transparent 70%
    );
}

.gallery-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-item {
    flex: 0 0 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-item.active {
    opacity: 1;
}

.gallery-item img {
    max-width: 100%;
    height: 600px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-caption {
    margin-top: 30px;
}

.caption-haiku {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cream);
    font-style: italic;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--gold);
    color: var(--black);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* ===== BOND SECTION ===== */
.bond-section {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(
        ellipse at center,
        rgba(139, 0, 0, 0.05) 0%,
        transparent 70%
    );
}

.bond-content {
    max-width: 600px;
    margin: 0 auto;
}

.bond-beads {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: sepia(1) saturate(2) hue-rotate(30deg);
    opacity: 0.8;
    margin-bottom: 40px;
    animation: float 6s ease-in-out infinite;
}

.prophecy-revealed {
    animation: fadeInUp 1.5s ease;
}

.prophecy {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--gold);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    background: var(--cream);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rain {
    to {
        transform: translateY(100%);
    }
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes shojiSlide {
    to {
        transform: translateX(200%);
    }
}

@keyframes fadePattern {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes subtleGlow {
    0%, 100% { 
        filter: brightness(1);
        box-shadow: 0 0 5px rgba(212, 175, 55, 0);
    }
    50% { 
        filter: brightness(1.1);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 20px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .kanji-vertical {
        font-size: 3rem;
    }
    
    .romaji-title {
        font-size: 1.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .trait-constellation {
        grid-template-columns: 1fr 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FORCE CEREMONY CONTENT VISIBLE ===== */
#ceremony-entrance * {
    visibility: visible !important;
    opacity: 1 !important;
}

#ceremony-entrance .ceremony-container {
    background: rgba(255, 255, 255, 0.05) !important; /* temporary to see container */
    border: 1px solid rgba(212, 175, 55, 0.3) !important; /* temporary to see container */
    padding: 40px !important;
}

#ceremony-entrance .ceremony-title .kanji-vertical {
    color: #D4AF37 !important;
    font-size: 4rem !important;
    display: block !important;
    margin-bottom: 20px !important;
}

#ceremony-entrance .ceremony-title .romaji {
    color: #FAF6F0 !important;
    font-size: 1.5rem !important;
    display: block !important;
    margin-bottom: 40px !important;
}

#ceremony-entrance .ceremony-instruction {
    color: #71797E !important;
    font-size: 1.1rem !important;
    display: block !important;
    margin-bottom: 40px !important;
}

#ceremony-entrance .incense-instruction {
    color: #71797E !important;
    font-size: 0.95rem !important;
    display: block !important;
}

#ceremony-entrance .stick {
    background: #8B4513 !important;
    width: 4px !important;
    height: 100px !important;
    display: inline-block !important;
    position: relative !important;
    margin: 0 30px !important;
}

#ceremony-entrance .stick-meaning {
    color: #71797E !important;
    font-size: 0.9rem !important;
    display: block !important;
    position: absolute !important;
    bottom: -30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
}

/* Debug: Make sure flex is working */
#ceremony-entrance .incense-sticks {
    display: flex !important;
    justify-content: center !important;
    gap: 60px !important;
    margin-top: 40px !important;
    min-height: 130px !important; /* space for sticks + labels */
}
/* ===== ENFORCE CEREMONY STATE ===== */
body:has(#ceremony-entrance) {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

body:has(#ceremony-entrance) .hero,
body:has(#ceremony-entrance) .profile-section,
body:has(#ceremony-entrance) .locations-section,
body:has(#ceremony-entrance) .gallery-section,
body:has(#ceremony-entrance) .bond-section,
body:has(#ceremony-entrance) footer,
body:has(#ceremony-entrance) main {
    display: none !important;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal:not(.hidden) {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--gold);
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.modal-text {
    padding: 30px;
}

.modal-title {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 2em;
    margin-bottom: 15px;
}

.modal-description {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.1em;
}