/* ============================================
   1. 全局基础设置 (RESET & VARIABLES)
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #1A1A1D;           /* 深暖?Deep Warm Charcoal */
    --text-color: #E8E6E0;         /* 温润米白 Warm Off-White */
    --text-secondary: #A8A6A0;     /* 柔和?Soft Grey */
    --gold-color: #D4AF37;         /* 流光?Radiant Gold */
    --red-color: #C8553D;          /* 朱砂?Cinnabar Red */
    --green-color: #88B04B;        /* 竹青 Bamboo Green */
    --pink-color: #F4C2C2;         /* 桃花?Peach Blossom */
    --blue-color: #4A6FA5;         /* 深海?Ocean Blue */
    --white-color: #F5F5F0;        /* 空灵?Ethereal White */
    --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --font-sans: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-serif);
    overflow-x: hidden;
    position: relative;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* 呼吸之光 (Breathing Light) */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 30%, transparent 70%);
    animation: breathe-light 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

@keyframes breathe-light {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 宣纸纹理 (Rice Paper Texture) */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
}

/* ============================================
   2. 导航?(NAV)
   ============================================ */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.2em;
    position: relative;
    z-index: 10;
}

.logo {
    color: var(--red-color);
    font-weight: 700;
}

.menu {
    color: var(--text-secondary);
}

/* ============================================
   3. 首屏 (HERO SECTION)
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}

/* 中心光源 (Central Light Source) */
.card-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 4rem;
}

.hero-image {
    display: none;
}

/* 呼吸光晕 (Breathing Aura) */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.2) 40%, transparent 70%);
    z-index: 1;
    animation: breathe-aura 5s infinite ease-in-out;
    filter: blur(30px);
    pointer-events: none;
}

@keyframes breathe-aura {
    0%, 100% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.3); 
    }
}

/* 文字区域 */
.hero-text {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.gold-text {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 0.3em;
    margin-top: 1rem;
    font-weight: 300;
}

.typewriter {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: rgba(242, 240, 230, 0.7);
    border-right: 2px solid var(--gold-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    font-style: italic;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--gold-color) } }

/* 滚动提示 */
.scroll-hint {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.4;
    animation: fadeIn 3s ease 2s forwards;
}

.scroll-hint span {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-family: var(--font-serif);
    color: var(--text-secondary);
}

.line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold-color), transparent);
    animation: lineGrow 3s ease infinite;
}

@keyframes lineGrow {
    0%, 100% { height: 40px; opacity: 0.2; }
    50% { height: 60px; opacity: 0.5; }
}

@keyframes fadeIn {
    to { opacity: 0.6; }
}

/* ============================================
   4. 锦囊展示?(POUCH GALLERY)
   ============================================ */
.gallery-section {
    padding: 8rem 2rem;
    min-height: 100vh;
    background: transparent;
    position: relative;
    z-index: 1;
}

.section-header-reborn {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.mystic-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
    margin: 0 auto 3rem;
    opacity: 0.5;
}

.meta-wrapper {
    margin-bottom: 2rem;
}

.main-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    letter-spacing: 0.2em;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 400;
}

.sub-title-wrapper {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    font-family: var(--font-sans);
}

.narrative-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 2;
    letter-spacing: 0.1em;
    max-width: 600px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 6rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(5, minmax(240px, 280px));
        gap: 3rem 2rem;
        width: fit-content;
        max-width: 100%;
    }
}

/* Mobile: Horizontal Scroll */
@media (max-width: 767px) {
    .cards-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 3rem;
        padding: 0 2rem;
        justify-items: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .truth-card {
        flex: 0 0 280px;
        scroll-snap-align: center;
    }
}

/* 锦囊单体 - 无边框漂浮风?(Borderless Floating Artifact) */
.truth-card {
    position: relative;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    padding: 2rem 1rem;
}

/* 显示3D图片 - 漂浮效果 */
.truth-card .card-image {
    width: 100%;
    max-width: 240px;
    height: 240px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: all 0.8s ease;
    margin-bottom: 2rem;
}

/* 不同锦囊的漂浮动?*/
.truth-card[data-artifact="wealth"] .card-image {
    animation: float-artifact-rotated 6s ease-in-out infinite;
}

.truth-card[data-artifact="study"] .card-image {
    animation: float-artifact 6.5s ease-in-out infinite;
    animation-delay: -1s;
}

.truth-card[data-artifact="love"] .card-image {
    animation: float-artifact 7s ease-in-out infinite;
    animation-delay: -2s;
}

.truth-card[data-artifact="self"] .card-image {
    animation: float-artifact 7.5s ease-in-out infinite;
    animation-delay: -3s;
}

.truth-card[data-artifact="present"] .card-image {
    animation: float-artifact 6.8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float-artifact {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-20px);
    }
}

@keyframes float-artifact-rotated {
    0%, 100% { 
        transform: translateY(0px) rotate(90deg);
    }
    50% { 
        transform: translateY(-20px) rotate(90deg);
    }
}

/* 文字内容区域 - 欲望优先层级 */
.truth-card .card-content {
    text-align: center;
    opacity: 0.9;
    transition: all 0.6s ease;
}

/* 副标题（哲学? 小而优?*/
.truth-card .philosophy {
    font-size: 0.85rem;
    color: var(--gold-color);
    font-family: var(--font-serif);
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    font-weight: 300;
    opacity: 0.7;
}

/* 主标题（欲望? 大而醒?*/
.truth-card h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: var(--font-serif);
    letter-spacing: 0.3em;
    line-height: 1.4;
}

/* 诗意描述 */
.truth-card .quote {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 260px;
    font-family: var(--font-serif);
    margin-top: 0;
    font-weight: 300;
    opacity: 0.6;
}

/* ============================================
   5. 交互特效 (HOVER EFFECTS)
   ============================================ */

.truth-card:hover .card-image {
    transform: translateY(-10px) scale(1.05);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.truth-card[data-artifact="wealth"]:hover .card-image {
    transform: translateY(-10px) scale(1.05) rotate(90deg);
}

.truth-card:hover .card-content {
    opacity: 1;
    transform: translateY(-5px);
}

.truth-card:hover h3 {
    color: var(--gold-color);
}

.truth-card:hover .philosophy {
    opacity: 1;
    color: var(--white-color);
}

/* ============================================
   6. 页脚 (FOOTER)
   ============================================ */
footer {
    text-align: center;
    padding: 6rem 0 4rem;
    font-family: var(--font-serif);
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.5;
    position: relative;
    z-index: 1;
    letter-spacing: 0.15em;
}

footer::before {
    content: '?;
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 2rem;
    border: 2px solid var(--red-color);
    color: var(--red-color);
    line-height: 36px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 4px;
    opacity: 0.7;
}

/* ============================================
   7. Ritual Overlay
   ============================================ */
#ritual-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 27, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#ritual-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
}

@media (max-width: 768px) {
    #ritual-overlay {
        padding: 1.5rem 1rem 2rem;
        align-items: flex-start;
    }

    .overlay-content {
        min-height: calc(100vh - 2rem);
        padding: 2.5rem 1rem 3rem;
        align-items: flex-start;
    }
}

.overlay-content {
    width: min(90vw, 560px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    position: relative;
    padding: 2.5rem 2rem;
}

.overlay-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-mono);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.overlay-close:hover {
    opacity: 1;
}

.overlay-title-block {
    text-align: center;
}

.overlay-title-line {
    display: inline-flex;
    gap: 0.75rem;
    align-items: baseline;
}

.overlay-title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--gold-color);
    letter-spacing: 6px;
    font-family: var(--font-mono);
}

.overlay-subtitle {
    font-size: 0.9rem;
    color: rgba(224,224,224,0.8);
    letter-spacing: 5px;
    white-space: nowrap;
}

.overlay-answer {
    min-height: 2rem;
    font-family: var(--font-mono);
    color: var(--gold-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-answer.visible {
    opacity: 1;
}

.overlay-hold-button {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(198, 168, 124, 0.4);
    background: transparent;
    color: var(--gold-color);
    font-family: var(--font-serif);
    letter-spacing: 0.15em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: deep-breathe 5s infinite;
    box-shadow: 0 0 30px rgba(198, 168, 124, 0.1);
}

.hold-label {
    z-index: 2;
    line-height: 1.5;
}

.hold-progress {
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 30px;
    background: var(--gold-color);
    transition: width 0.1s linear;
}

.overlay-hold-button.holding::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(198, 168, 124, 0.6);
    animation: pulse-ring 1.5s infinite;
}

.overlay-guidance {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(242, 240, 230, 0.5);
    letter-spacing: 0.1em;
}

.interrupt-hint {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(242, 240, 230, 0.5);
    min-height: 1rem;
}

.collapse-flash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.collapse-flash.active {
    opacity: 1;
}

/* ============================================
   4. 抽卡结果页修?(FINAL FIX)
   ============================================ */

.oracle-result-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F1416 0%, #12181B 50%, #0F1416 100%);
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    opacity: 0;
    animation: fadeInWrapper 0.8s ease-out forwards;
}

.oracle-control-bar {
    position: fixed;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 100000;
    pointer-events: none;
}

.completion-text {
    color: rgba(242, 240, 230, 0.6);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    pointer-events: auto;
}

.end-ritual-btn {
    background: transparent;
    border: 1px solid rgba(198, 168, 124, 0.4);
    color: var(--gold-color);
    padding: 12px 30px;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.4s ease;
}

.end-ritual-btn:hover {
    background: rgba(198, 168, 124, 0.1);
    border-color: var(--gold-color);
    color: var(--gold-color);
    box-shadow: 0 0 25px rgba(198, 168, 124, 0.3);
}

@media (max-width: 768px) {
    .oracle-result-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        height: 100%;
        padding-top: 60px;
        padding-bottom: 150px;
        gap: 2rem;
    }

    .oracle-control-bar {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 2rem;
        width: 100%;
        pointer-events: auto;
    }

    .oracle-card-display {
        flex-shrink: 0;
        width: 100%;
        max-width: 340px;
    }
}

@keyframes fadeInWrapper {
    to { opacity: 1; }
}

.oracle-card-display {
    width: 340px;
    aspect-ratio: 3 / 5;
    background: rgba(18, 24, 27, 0.8);
    border: 1px solid rgba(198, 168, 124, 0.3);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(50px) rotateX(5deg);
    animation: cardEnter 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
               cardBreathe 5s ease-in-out infinite alternate;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
}

.oracle-card-display:nth-child(2) {
    animation-delay: 0.2s, 0s;
}

.oracle-card-display:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--gold-color);
    box-shadow: 0 15px 50px rgba(198, 168, 124, 0.25),
                0 0 40px rgba(198, 168, 124, 0.15);
    background: rgba(18, 24, 27, 0.95);
    z-index: 2001;
}

.card-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.card-archetype-text {
    font-size: 0.75rem;
    color: var(--gold-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
}

.card-keyword-text {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: var(--text-color);
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(198, 168, 124, 0.3);
}

.card-keyword-en {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(242, 240, 230, 0.5);
    letter-spacing: 0.15em;
    margin-top: 5px;
}

.card-quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    border-top: 1px solid rgba(198, 168, 124, 0.25);
    border-bottom: 1px solid rgba(198, 168, 124, 0.25);
    padding: 1rem 0;
    width: 100%;
}

.card-interpretation-text {
    font-size: 0.9rem;
    color: rgba(242, 240, 230, 0.7);
    line-height: 1.8;
    text-align: justify;
    font-weight: 300;
}

.oracle-control-bar {
    position: fixed;
    bottom: 3rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2002;
    animation: fadeIn 2s ease 1s forwards;
    opacity: 0;
}

.end-ritual-btn {
    background: transparent;
    border: 1px solid rgba(198, 168, 124, 0.4);
    color: var(--gold-color);
    padding: 12px 30px;
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s ease;
}

.end-ritual-btn:hover {
    background: rgba(198, 168, 124, 0.1);
    border-color: var(--gold-color);
    color: var(--gold-color);
    box-shadow: 0 0 25px rgba(198, 168, 124, 0.3);
}

@keyframes cardEnter {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes cardBreathe {
    0% {
        box-shadow: 0 0 30px rgba(0,0,0,0.5);
        border-color: rgba(198, 168, 124, 0.25);
    }
    100% {
        box-shadow: 0 0 40px rgba(198, 168, 124, 0.2),
                    0 0 60px rgba(122, 159, 149, 0.1);
        border-color: rgba(198, 168, 124, 0.5);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .oracle-result-wrapper {
        flex-direction: column;
        height: auto;
        padding-top: 4rem;
        position: absolute;
    }

    .oracle-card-display {
        width: 100%;
        max-width: 320px;
    }

    .oracle-control-bar {
        position: relative;
        margin-top: 2rem;
        bottom: auto;
        padding-bottom: 3rem;
    }
}

#energy-modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 24, 27, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

#energy-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.energy-modal-card {
    background: rgba(18, 24, 27, 0.95);
    border: 1px solid rgba(198, 168, 124, 0.3);
    padding: 2.5rem;
    max-width: 420px;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--text-color);
    box-shadow: 0 0 40px rgba(198, 168, 124, 0.2);
}

.energy-modal-card h3 {
    color: var(--gold-color);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.energy-modal-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(242, 240, 230, 0.7);
    margin-bottom: 2rem;
}

.energy-modal-button {
    background: transparent;
    border: 1px solid rgba(198, 168, 124, 0.4);
    color: var(--gold-color);
    padding: 0.7rem 1.5rem;
    font-family: var(--font-serif);
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.energy-modal-button:hover {
    background: rgba(198, 168, 124, 0.15);
    border-color: var(--gold-color);
    box-shadow: 0 0 20px rgba(198, 168, 124, 0.2);
}

@keyframes deep-breathe {
    0%, 100% { 
        transform: scale(0.98); 
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(198, 168, 124, 0.1);
    }
    50% { 
        transform: scale(1.02); 
        opacity: 1;
        box-shadow: 0 0 40px rgba(198, 168, 124, 0.25);
    }
}

@keyframes pulse-ring {
    0% { 
        transform: scale(1); 
        opacity: 0.5; 
    }
    100% { 
        transform: scale(1.5); 
        opacity: 0; 
    }
}

/* Ritual standalone pages */
body.ritual-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0F1416 0%, #12181B 50%, #0F1416 100%);
    background-attachment: fixed;
    color: var(--text-color);
}

.ritual-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    font-family: var(--font-mono);
    z-index: 1101;
}

.ritual-nav a {
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ritual-nav a:hover {
    opacity: 1;
}

.ritual-nav .back-link {
    color: var(--gold-color);
}

.ritual-page-shell {
    min-height: 100vh;
}

/* ============================================
   8. Ritual Page Styles (Original)
   ============================================ */

/* ============================================
   9. 3D Universe Canvas Styles
   ============================================ */

#universe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000000;
    pointer-events: none;
}

/* Ensure content is above the 3D canvas */
nav,
.hero-section,
.gallery-section,
footer {
    position: relative;
    z-index: 1;
}

/* Remove old noise overlay styles if needed */
body {
    background: transparent;
}

/* ============================================
   10. AR Magic Circle Styles
   ============================================ */

#ar-camera-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#ar-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

#ar-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.ar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    pointer-events: none;
}

/* Ensure ritual overlay is above AR */
.ritual-page-shell {
    position: relative;
    z-index: 10;
}

#ritual-overlay {
    z-index: 100;
}

/* AR button styling */
#start-ar-button {
    cursor: pointer;
    transition: all 0.3s ease;
}

#start-ar-button:hover:not(:disabled) {
    transform: scale(1.05);
}

#start-ar-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Flash effect for ritual trigger */
.collapse-flash.active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(255, 215, 0, 0.8) 0%, 
        rgba(255, 140, 0, 0.4) 50%, 
        transparent 100%);
    z-index: 200;
    pointer-events: none;
    animation: magic-flash 0.6s ease-out forwards;
}

@keyframes magic-flash {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* Mobile optimizations for AR */
@media (max-width: 768px) {
    #ar-video {
        object-fit: cover;
    }
}
