/* ========================================
   小红书风格设计系统 - CSS变量 (V6.0 - Ethereal Oriental)
   莫兰迪配色 + 毛玻璃质感 + 极简圆润
   ======================================== */

:root {
    /* --- 核心色板 (Morandi) --- */
    
    /* 五行色 - 低饱和度高级灰 (Morandi v2) */
    --wuxing-wood: #8FB397;      /* 抹茶绿 */
    --wuxing-fire: #C08888;      /* 干枯玫瑰 - 替换原 D49A9A/f5222d */
    --wuxing-earth: #CFC0A7;     /* 香槟金 - 替换原 C7B299/faad14 */
    --wuxing-metal: #C5C5C5;     /* 银灰 */
    --wuxing-water: #94B0C2;     /* 雾霾蓝 */
    
    /* 辅助色 */
    --color-vermilion: #C08888;  /* 主强调色跟随"火" */
    --color-gold: #CFC0A7;       /* 辅助金 */
    
    /* 界面色 */
    --color-bg-primary: #F9F7F5;    /* 暖宣纸白 */
    --color-bg-secondary: #fffff8;  /* 极暖白 */
    --color-surface-glass: rgba(255, 255, 255, 0.60); /* 毛玻璃表面 - 更通透 */
    
    /* 文字色 */
    --color-text-primary: #4A4A4A;   /* 暖炭灰 - 比纯黑更柔和 */
    --color-text-secondary: #8C8C8C; /* 中灰 */
    --color-text-tertiary: #C0C0C0;  /* 浅灰 */

    /* --- 系统参数 --- */
    
    /* 圆角 - 极致圆润 */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* 间距 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;

    /* 阴影 - 漫射柔光 */
    --shadow-sm: 0 4px 16px rgba(140, 140, 140, 0.04);
    --shadow-md: 0 8px 32px rgba(140, 140, 140, 0.08);
    --shadow-lg: 0 16px 48px rgba(140, 140, 140, 0.12);
    --shadow-in: inset 0 2px 4px rgba(0,0,0,0.02);
    
    /* 字体 */
    --font-serif: "Songti SC", "Noto Serif SC", serif; /* 标题宋体 */
    --font-sans: "PingFang SC", "Noto Sans SC", -apple-system, sans-serif; /* 正文无衬线 */
    
    /* 动画 */
    --transition-base: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ========================================
   基础重置 & 全局样式
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(212, 154, 154, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(143, 179, 151, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ========================================
   组件库
   ======================================== */

/* 1. 容器 */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* 2. 卡片 (Glass/Paper) */
.card, .question-card, .result-card {
    background: var(--color-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px 24px;
    margin-bottom: 24px;
    transition: transform var(--transition-base);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 3. 按钮 */
.btn {
    display: inline-flex; /* 让内容垂直居中 */
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 1px;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--wuxing-fire) 0%, var(--wuxing-earth) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(212, 154, 154, 0.3);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 12px rgba(212, 154, 154, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--color-text-primary);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
}

/* 4. 排版 */
.title, .hero-title, .result-title {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* ========================================
   页面特定样式
   ======================================== */

/* --- 首页 (Birth Input) --- */
.hero-section {
    text-align: center;
    padding: 30px 0 20px;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(45deg, var(--color-text-primary), #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.feature-tag {
    font-size: 11px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    color: var(--color-text-secondary);
    border: 1px solid rgba(0,0,0,0.03);
}

.date-card.compact-card {
    padding: 24px 20px;
    background: var(--color-surface-glass);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.date-selector-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.date-label-sm {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    display: block;
    text-align: center;
}

.date-input-sm {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    height: 44px; /* Mobile touch friendly */
}

/* Custom select arrow if needed, but simple is better */
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: "▼";
    font-size: 8px;
    color: #aaa;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.divider-line {
    height: 1px;
    background: rgba(0,0,0,0.03);
    margin: 20px 0;
}

.gender-options-row {
    display: flex;
    gap: 12px;
}

.gender-option-item {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.gender-option-item input {
    display: none;
}

.gender-btn {
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05); /* Subtle border */
    border-radius: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02); /* Soft shadow */
}

.gender-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.gender-btn .emoji {
    font-size: 18px;
}

/* Active State handled by JS, but also :checked */
.gender-option-item input:checked + .gender-btn {
    border-color: var(--wuxing-fire);
    background: rgba(212, 154, 154, 0.1);
    color: var(--wuxing-fire);
}

/* --- 测验页 (Quiz) --- */
.question-progress {
    font-family: var(--font-serif);
    color: var(--wuxing-earth);
    margin-bottom: 16px;
    font-size: 14px;
    letter-spacing: 2px;
}

.question-text {
    font-size: 22px;
    font-family: var(--font-serif);
    margin-bottom: 32px;
    line-height: 1.6;
}

.option {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.option-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.option:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.option.selected {
    background: linear-gradient(to right, #FFF5F5, white);
    border-color: var(--wuxing-fire);
}

.option.selected .option-label {
    background: var(--wuxing-fire);
    color: white;
}

/* --- 结果页 (Result) --- */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

/* 城市主卡片 */
.city-card.primary {
    background: linear-gradient(135deg, white 0%, #FFFDF9 100%);
    border: 2px solid var(--wuxing-gold);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 装饰性背景 */
.city-card.primary::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(207, 192, 167, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.city-rank {
    display: inline-block;
    background: var(--wuxing-fire);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.city-name {
    font-family: var(--font-serif);
    font-size: 56px; /* 大号字体 */
    margin: 10px 0 20px;
    color: var(--color-text-primary);
    text-shadow: 2px 2px 0px rgba(0,0,0,0.05);
}

.city-quote-container {
    padding: 24px;
    background: rgba(246, 246, 246, 0.5);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.match-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--wuxing-fire);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.match-value {
    color: var(--wuxing-fire);
    font-weight: 800;
}

/* 次要城市 */
.city-card.secondary {
    background: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.city-name-small {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-text-primary);
}

.match-badge {
    background: var(--color-bg-primary);
    color: var(--color-text-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* 模态框 */
.modal-backdrop {
    background: rgba(255, 255, 255, 0.6); /* 浅色遮罩 */
    backdrop-filter: blur(10px);
}

.modal-card {
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- 实用工具 --- */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 90% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
}
.shake { animation: shake 0.4s ease-in-out; }
.input-error { border-color: var(--wuxing-fire) !important; background: #fff5f5; }

/* 移动端适配 */
@media (max-width: 480px) {
    .container { padding: 16px; }
    .city-name { font-size: 42px; }
    .btn { width: 100%; }
    .result-actions { 
        position: sticky; 
        bottom: 0; 
        padding: 20px; 
        background: linear-gradient(to top, rgba(255,255,255,0.95) 80%, transparent); 
        margin: 0 -20px -20px;
        z-index: 100;
        backdrop-filter: blur(5px);
    }
}

/* === 次选城市网格 === */
.secondary-cities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.city-card.secondary {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.city-card.secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.city-card.secondary .city-header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.city-card.secondary .city-name {
    font-size: 18px !important;
}

.city-card.secondary .city-rank {
    font-size: 11px;
    color: #888;
}

@media (max-width: 480px) {
    .secondary-cities-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   Result Page Specific (V2.0 - Clean & Premium)
   ======================================== */

/* 极简标签 (Ghost Style) */
.tag-clean {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: var(--color-text-secondary);
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.tag-clean:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text-primary);
}

/* 匹配度大数字 */
.match-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 20px;
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
    min-width: 80px;
}

.match-score-val {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-vermilion);
    font-family: var(--font-serif);
}

.match-score-label {
    font-size: 10px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 信息网格 (Features) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed rgba(0,0,0,0.06);
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-label {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-val {
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: 500;
    line-height: 1.4;
}

/* 排名角标 */
.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-vermilion);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-bottom-right-radius: 16px;
    border-top-left-radius: var(--radius-lg);
    box-shadow: 2px 2px 8px rgba(212, 154, 154, 0.2);
    z-index: 10;
}

/* --- Phase 20 Refinement --- */

/* 用户信息卡片 */
.user-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.user-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.user-info-val {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-top: 4px;
    font-family: var(--font-serif);
}

/* 城市卡片头部优化 */
.city-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
}

.city-name-large {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    font-family: var(--font-serif);
    line-height: 1.2;
}

/* 标签行滚动容器 */
.tags-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    margin-bottom: 16px;
    margin-left: 10px;
    gap: 8px;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}

/* 隐藏滚动条但保留功能 */
.tags-scroll-container::-webkit-scrollbar {
    display: none; 
}

/* 免责声明 */
.disclaimer-footer {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding: 20px 0;
    opacity: 0.6;
    margin-top: 30px;
    line-height: 1.5;
}

/* AI 内容区域排版优化 */
.ai-content-area {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}


/* --- 先天五行页 (Innate Page) --- */
.innate-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.innate-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.innate-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 五行可视化 */
.element-visual {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.element-visual::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0.3;
    animation: pulse 3s infinite;
}

/* 五行特定样式 */
/* 金: 银白渐变 */
.element-metal { background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%); color: #616161; }
/* 木: 清新绿 */
.element-wood { background: linear-gradient(135deg, #A8E6CF 0%, #56AB2F 100%); color: #1B5E20; }
/* 水: 深邃蓝 */
.element-water { background: linear-gradient(135deg, #E0C3FC 0%, #8EC5FC 100%); color: #0D47A1; }
/* 火: 热情红 */
.element-fire { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%); color: #B71C1C; }
/* 土: 大地黄 */
.element-earth { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); color: #E65100; }

.element-name-large {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.element-desc-box {
    background: rgba(249, 249, 249, 0.8);
    padding: 24px;
    border-radius: 16px;
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

/* 星座 Pill */
.zodiac-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    font-weight: 600;
    color: #555;
    border: 1px solid rgba(0,0,0,0.05);
}

.instruction-box {
    border: 1px dashed rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 20px;
    background: rgba(255,255,255,0.4);
    margin-bottom: 30px;
    text-align: left;
}

.instruction-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Animations added previously */

.rank-badge.rank-2 { background: #D4B69A; box-shadow: 2px 2px 8px rgba(212, 182, 154, 0.2); }
.rank-badge.rank-3 { background: #A8B8A0; box-shadow: 2px 2px 8px rgba(168, 184, 160, 0.2); }

/* --- Phase 22: Ritual Page Styles --- */
.ritual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 五行环绕容器 */
.five-elements-orbit {
    position: relative;
    width: 260px;
    height: 260px;
    margin-bottom: 40px;
    animation: orbit-rotate 20s linear infinite;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
}

/* 计算位置: r=110px. 0deg is top (but we start at -90deg logically if we want top) */
/* CSS transforms are relative to element center. translate(0, -110px) moves up. rotate() rotates the axis. */
/* Items need to counter-rotate to stay upright if desired, or just rotate with ring. */
/* Let's fix them at specific angles. */
.orbit-item:nth-child(1) { transform: rotate(0deg) translate(110px) rotate(0deg); }   /* 0度 */
.orbit-item:nth-child(2) { transform: rotate(72deg) translate(110px) rotate(-72deg); } /* 72度 */
.orbit-item:nth-child(3) { transform: rotate(144deg) translate(110px) rotate(-144deg); } /* 144度 */
.orbit-item:nth-child(4) { transform: rotate(216deg) translate(110px) rotate(-216deg); } /* 216度 */
.orbit-item:nth-child(5) { transform: rotate(288deg) translate(110px) rotate(-288deg); } /* 288度 */

/* 中心脉冲倒计时 */
.ritual-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 300;
    color: var(--color-vermilion);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(212, 154, 154, 0.2);
    font-family: var(--font-serif);
    animation: pulse-timer 1s ease-in-out infinite;
    z-index: 10;
}

.ritual-message {
    font-size: 16px;
    color: #555;
    min-height: 24px;
    text-align: center;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.ritual-message.visible {
    opacity: 1;
}

@keyframes orbit-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-timer {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px rgba(212, 154, 154, 0.2); }
    50% { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 30px rgba(212, 154, 154, 0.4); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px rgba(212, 154, 154, 0.2); }
}

.fade-out-page {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

