@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    --gold: #dfc27d;
    --gold-dim: rgba(223, 194, 125, 0.3);
    --aura: #8a2be2;
    --aura-dim: rgba(138, 43, 226, 0.2);
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.2);
    --void: #050508;
    --bg: #030305;
    --glass: rgba(255, 255, 255, 0.03);
    --text: rgba(255, 255, 255, 0.85);
    --text-dim: rgba(255, 255, 255, 0.4);
    --mx: 50%;
    --my: 50%;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    cursor: none;
}

body {
    position: relative;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px var(--gold), 0 0 24px var(--gold-dim);
    transition: background 0.2s, transform 0.1s;
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(223, 194, 125, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, border-color 0.2s;
}

.cursor-dot.clicking {
    transform: translate(-50%, -50%) scale(0.7);
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
}

.cursor-ring.clicking {
    width: 45px;
    height: 45px;
    border-color: var(--cyan-dim);
}

/* ===== MOUSE LIGHT ===== */
#mouseLight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        circle 300px at var(--mx) var(--my),
        rgba(138, 43, 226, 0.06) 0%,
        rgba(223, 194, 125, 0.03) 30%,
        transparent 70%
    );
    transition: background 0.05s;
}

/* ===== PARTICLE CANVAS ===== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NEBULA BACKGROUND ===== */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(138, 43, 226, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(223, 194, 125, 0.02) 0%, transparent 70%),
        var(--bg);
}

/* ===== NAVIGATION ===== */
.aetheria-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
    background: rgba(3, 3, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(223, 194, 125, 0.1);
}

.nav-soul {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--gold-dim);
}

.nav-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--gold);
}

.nav-coins .coin-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold), #a08040);
    box-shadow: 0 0 8px var(--gold-dim);
    display: inline-block;
    animation: pulse 3s ease-in-out infinite;
}

.nav-coins .coin-count {
    font-weight: 600;
    transition: all 0.3s;
}

.nav-coins .coin-count.flash {
    animation: coinFlash 0.5s ease-out;
}

.nav-logout {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.6rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
}

.nav-logout:hover {
    color: var(--gold);
    text-shadow: 0 0 15px var(--gold-dim);
    border-color: var(--gold-dim);
}

.nav-echo-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 1s ease-in-out infinite;
    display: none;
}

.nav-echo-indicator.active {
    display: block;
}

/* ===== GLASS PANEL ===== */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    box-shadow:
        0 0 100px rgba(138, 43, 226, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.01);
}

/* ===== GOLD GRADIENT TEXT ===== */
.gold-text {
    background: linear-gradient(135deg, #dfc27d 0%, #f0d890 40%, #b8902a 70%, #dfc27d 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    text-shadow: none;
}

.glow-text {
    text-shadow: 0 0 20px var(--gold-dim), 0 0 40px rgba(223, 194, 125, 0.15);
}

/* ===== TITLE STYLES ===== */
.aetheria-title {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    letter-spacing: 15px;
    text-transform: uppercase;
}

.aetheria-subtitle {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 400;
    letter-spacing: 8px;
    color: var(--text-dim);
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 0 30px var(--gold-dim);
}

/* ===== RITUAL BUTTONS ===== */
.ritual-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 40px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
    background: transparent;
    border: 1px solid rgba(223, 194, 125, 0.4);
    border-radius: 2px;
    cursor: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    outline: none;
    white-space: nowrap;
}

.ritual-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(223, 194, 125, 0.05), rgba(138, 43, 226, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.ritual-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transition: left 0.5s ease;
}

.ritual-btn:hover {
    color: #fff;
    border-color: var(--gold);
    box-shadow:
        0 0 30px rgba(223, 194, 125, 0.2),
        0 0 60px rgba(138, 43, 226, 0.1),
        inset 0 0 20px rgba(223, 194, 125, 0.05);
    text-shadow: 0 0 15px var(--gold-dim);
}

.ritual-btn:hover::before {
    opacity: 1;
}

.ritual-btn:hover::after {
    left: 100%;
}

.ritual-btn:active {
    transform: scale(0.97);
}

.ritual-btn.primary {
    background: rgba(223, 194, 125, 0.08);
    border-color: var(--gold);
}

.ritual-btn.danger {
    color: #ff4444;
    border-color: rgba(255, 68, 68, 0.4);
}

.ritual-btn.danger:hover {
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.3);
    border-color: #ff4444;
}

/* ===== INPUT FIELDS ===== */
.ritual-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(223, 194, 125, 0.2);
    border-radius: 2px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    outline: none;
    transition: all 0.3s;
    cursor: none;
}

.ritual-input::placeholder {
    color: var(--text-dim);
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.ritual-input:focus {
    border-color: rgba(223, 194, 125, 0.6);
    box-shadow:
        0 0 20px rgba(223, 194, 125, 0.1),
        inset 0 0 10px rgba(223, 194, 125, 0.03);
    background: rgba(5, 5, 8, 0.95);
}

.ritual-textarea {
    width: 100%;
    min-height: 180px;
    padding: 20px;
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(223, 194, 125, 0.2);
    border-radius: 2px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.5px;
    outline: none;
    resize: vertical;
    transition: all 0.3s;
    cursor: none;
}

.ritual-textarea::placeholder {
    color: var(--text-dim);
    font-style: italic;
}

.ritual-textarea:focus {
    border-color: rgba(223, 194, 125, 0.5);
    box-shadow: 0 0 30px rgba(223, 194, 125, 0.08);
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.8s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-sigil {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(223, 194, 125, 0.3);
    border-top-color: var(--gold);
    animation: portal-spin 1.5s linear infinite;
    box-shadow: 0 0 30px var(--gold-dim);
}

.loading-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.6rem;
    letter-spacing: 6px;
    color: var(--text-dim);
    text-transform: uppercase;
    animation: flicker 2s ease-in-out infinite;
}

/* ===== TOAST NOTIFICATIONS ===== */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.toast {
    min-width: 280px;
    max-width: 380px;
    padding: 16px 20px;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.4s ease-out;
    cursor: none;
}

.toast.info {
    border-left: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: 0 0 30px rgba(223, 194, 125, 0.15);
}

.toast.success {
    border-left: 2px solid #00cc66;
    color: #00cc66;
    box-shadow: 0 0 30px rgba(0, 204, 102, 0.15);
}

.toast.warning {
    border-left: 2px solid #ff4444;
    color: #ff4444;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.2);
}

.toast.dissolving {
    animation: implode 0.4s ease-in forwards;
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(10px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: min(420px, 90vw);
    padding: 50px 40px;
    position: relative;
    animation: fadeInUp 0.5s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: none;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1rem;
    letter-spacing: 6px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 35px;
    text-shadow: 0 0 20px var(--gold-dim);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form label {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.modal-error {
    color: #ff4444;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-align: center;
    min-height: 1.2em;
    animation: flicker 0.5s ease-out;
}

/* ===== PORTAL DOORS (hub) ===== */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.portal-door {
    aspect-ratio: 1.4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(223, 194, 125, 0.15);
    border-radius: 3px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s ease;
    animation: breathe 4s ease-in-out infinite;
    cursor: none;
}

.portal-door:nth-child(2) { animation-delay: 0.6s; }
.portal-door:nth-child(3) { animation-delay: 1.2s; }
.portal-door:nth-child(4) { animation-delay: 1.8s; }
.portal-door:nth-child(5) { animation-delay: 2.4s; }
.portal-door:nth-child(6) { animation-delay: 3.0s; }

.portal-door::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.portal-door:hover {
    border-color: rgba(223, 194, 125, 0.5);
    box-shadow:
        0 0 40px rgba(138, 43, 226, 0.2),
        0 0 80px rgba(223, 194, 125, 0.08),
        inset 0 0 30px rgba(223, 194, 125, 0.03);
    transform: translateY(-4px) scale(1.02);
    animation-play-state: paused;
}

.portal-door:hover::before {
    opacity: 1;
}

.portal-door .door-symbol {
    font-size: 1.8rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-dim);
    transition: transform 0.5s, text-shadow 0.5s;
}

.portal-door:hover .door-symbol {
    transform: scale(1.2);
    text-shadow: 0 0 40px var(--gold), 0 0 80px var(--gold-dim);
}

.portal-door .door-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--gold);
    text-align: center;
    text-transform: uppercase;
    transition: text-shadow 0.5s;
}

.portal-door:hover .door-name {
    text-shadow: 0 0 20px var(--gold-dim);
}

.portal-door .door-desc {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-align: center;
    transition: color 0.5s, opacity 0.5s;
    opacity: 0;
    transform: translateY(5px);
}

.portal-door:hover .door-desc {
    color: rgba(255,255,255,0.5);
    opacity: 1;
    transform: translateY(0);
    transition: color 0.5s, opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: rgba(223, 194, 125, 0.3);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== WRATH OVERLAY ===== */
.wrath-overlay {
    position: fixed;
    inset: 0;
    background: rgba(139, 0, 0, 0.0);
    z-index: 5000;
    pointer-events: none;
    transition: background 0.5s;
}

.wrath-overlay.active {
    background: rgba(139, 0, 0, 0.3);
    animation: wrath-pulse 0.8s ease-in-out infinite;
    pointer-events: all;
}

.wrath-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    letter-spacing: 10px;
    color: #ff0000;
    text-shadow: 0 0 40px #ff0000, 0 0 80px rgba(255,0,0,0.5);
    text-align: center;
    opacity: 0;
    z-index: 5001;
    pointer-events: none;
    animation: flicker 0.3s ease-in-out infinite;
}

/* ===== PROGRESS RING ===== */
.progress-ring-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.05s linear;
    stroke: var(--gold);
    filter: drop-shadow(0 0 6px var(--gold));
}

/* ===== AMBIENT TEXT ===== */
.ambient-message {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-align: center;
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.ambient-message.visible {
    opacity: 0.6;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    overflow: hidden;
}

.page-content {
    position: relative;
    z-index: 20;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px;
}

/* ===== HALLE SOULS ===== */
.soul-entity {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: none;
    animation: soul-float var(--dur, 8s) ease-in-out infinite;
}

.soul-orb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.9), rgba(138, 43, 226, 0.2));
    box-shadow: 0 0 20px var(--aura), 0 0 40px var(--aura-dim);
    transition: all 0.4s;
}

.soul-entity:hover .soul-orb {
    background: radial-gradient(circle, rgba(223, 194, 125, 0.9), rgba(223, 194, 125, 0.2));
    box-shadow: 0 0 30px var(--gold), 0 0 60px var(--gold-dim);
    transform: scale(1.5);
}

.soul-label {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    white-space: nowrap;
    transition: color 0.4s;
}

.soul-entity:hover .soul-label {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-dim);
}

/* ===== ARCHIV CARDS ===== */
.manifestation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    overflow-y: auto;
    max-height: calc(100vh - 160px);
    padding: 10px;
}

.manifestation-card {
    padding: 25px;
    position: relative;
    transition: all 0.4s;
    cursor: none;
}

.manifestation-card:hover {
    border-color: rgba(223, 194, 125, 0.3);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
    transform: translateY(-2px);
}

.card-date {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.card-preview {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
}

.card-words {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--aura);
    margin-top: 12px;
    text-transform: uppercase;
}

.card-delete {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 68, 68, 0.3);
    cursor: none;
    font-size: 0.8rem;
    transition: color 0.3s, text-shadow 0.3s;
    line-height: 1;
}

.card-delete:hover {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* ===== SPIEGEL CANVAS ===== */
#spiegelCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: none;
}

/* ===== ORAKEL CARD ===== */
.oracle-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.oracle-card-wrap {
    perspective: 1000px;
    width: 250px;
    height: 380px;
    cursor: none;
}

.oracle-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.oracle-card.flipped {
    transform: rotateY(180deg);
}

.card-face, .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 20px;
}

.card-back {
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid rgba(223, 194, 125, 0.2);
    transform: rotateY(180deg);
}

.card-face {
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 0 60px rgba(138, 43, 226, 0.2), inset 0 0 30px rgba(138, 43, 226, 0.05);
}

.card-face-symbol {
    font-size: 3rem;
    color: var(--aura);
    text-shadow: 0 0 30px var(--aura);
    animation: breathe 3s ease-in-out infinite;
}

.card-face-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-align: center;
}

.oracle-prophecy {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--gold);
    text-align: center;
    line-height: 2;
    text-shadow: 0 0 30px var(--gold-dim);
}

.oracle-symbol-back {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-dim);
}

/* ===== ALTAR SCENE ===== */
.altar-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 600px;
    width: 100%;
}

.scroll-container {
    position: relative;
    width: 100%;
}

.scroll-label {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.flame-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: height 0.5s;
}

.energy-reveal {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 3000;
    background: rgba(3, 3, 5, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.energy-reveal.active {
    opacity: 1;
    pointer-events: all;
}

.energy-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 8px;
    color: var(--gold);
    text-shadow: 0 0 40px var(--gold), 0 0 80px var(--gold-dim);
    animation: pulse 1s ease-in-out infinite;
}

.energy-message {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* ===== SANCTUM ===== */
.sanctum-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.sanctum-instruction {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-transform: uppercase;
    animation: breathe 4s ease-in-out infinite;
}

.distraction-text {
    position: fixed;
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(0.7rem, 2vw, 1.2rem);
    letter-spacing: 6px;
    color: rgba(255, 68, 68, 0.7);
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    transition: opacity 0.3s;
    animation: flicker 0.5s ease-in-out infinite;
    white-space: nowrap;
}

.sanctum-result {
    max-width: 500px;
    padding: 40px;
    text-align: center;
    display: none;
}

.sanctum-result.active {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.carried-text {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin: 20px 0;
    padding: 20px;
    border-left: 2px solid var(--aura);
}

/* ===== PURGATORY ===== */
.purgatory-scene {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* ===== GATE ANIMATION ===== */
.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    pointer-events: all;
    transition: opacity 1.5s ease;
}

.gate-overlay.open {
    opacity: 0;
    pointer-events: none;
}

.gate-rings {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(223, 194, 125, 0.3);
    animation: ring-pulse 2s ease-out forwards;
}

.gate-ring:nth-child(1) { width: 60px; height: 60px; animation-delay: 0s; }
.gate-ring:nth-child(2) { width: 120px; height: 120px; animation-delay: 0.3s; }
.gate-ring:nth-child(3) { width: 180px; height: 180px; animation-delay: 0.6s; }
.gate-ring:nth-child(4) { width: 240px; height: 240px; animation-delay: 0.9s; }
.gate-ring:nth-child(5) { width: 300px; height: 300px; animation-delay: 1.2s; }

/* ===== TRIBUT ===== */
#tributCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: none;
}

.tribut-ui {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

.tribut-coins-display {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    letter-spacing: 6px;
    color: var(--gold);
    text-shadow: 0 0 30px var(--gold-dim);
    margin-bottom: 10px;
}

.tribut-instruction {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.tribut-bowl {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50% 50% 45% 45%;
    border: 2px solid rgba(223, 194, 125, 0.4);
    box-shadow:
        0 0 40px rgba(223, 194, 125, 0.2),
        inset 0 0 20px rgba(223, 194, 125, 0.05);
    background: rgba(223, 194, 125, 0.03);
    pointer-events: none;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(223, 194, 125, 0.4);
    font-size: 2rem;
    animation: breathe 3s ease-in-out infinite;
}

/* ===== INVERT FILTER (WRATH) ===== */
body.wrath-mode {
    animation: screen-shake 0.15s ease-in-out infinite;
    filter: invert(0.08) hue-rotate(180deg);
}

/* ===== KEYFRAMES ===== */

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        text-shadow: 0 0 20px var(--gold-dim);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
        text-shadow: 0 0 40px var(--gold-dim), 0 0 80px rgba(223, 194, 125, 0.1);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(223, 194, 125, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(223, 194, 125, 0.6), 0 0 80px rgba(223, 194, 125, 0.2);
    }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.015);
        box-shadow: 0 0 60px rgba(138, 43, 226, 0.2), 0 0 120px rgba(223, 194, 125, 0.05);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    15% { opacity: 0.8; }
    35% { opacity: 0.95; }
    55% { opacity: 0.7; }
    75% { opacity: 1; }
    85% { opacity: 0.75; }
    95% { opacity: 0.9; }
}

@keyframes screen-shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-3px, -1px); }
    20% { transform: translate(3px, 2px); }
    30% { transform: translate(-2px, 3px); }
    40% { transform: translate(4px, -2px); }
    50% { transform: translate(-3px, 1px); }
    60% { transform: translate(2px, -3px); }
    70% { transform: translate(-4px, 2px); }
    80% { transform: translate(3px, -1px); }
    90% { transform: translate(-2px, 3px); }
}

@keyframes wrath-pulse {
    0%, 100% {
        box-shadow: inset 0 0 100px rgba(139, 0, 0, 0.3);
        border-color: rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: inset 0 0 200px rgba(139, 0, 0, 0.6);
        border-color: rgba(255, 0, 0, 0.7);
    }
}

@keyframes ring-pulse {
    0% {
        opacity: 1;
        transform: scale(0.3);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

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

@keyframes implode {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.7);
        filter: blur(10px);
    }
}

@keyframes portal-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes particle-rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(0.5);
    }
}

@keyframes soul-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(8px);
    }
    50% {
        transform: translateY(-8px) translateX(-5px);
    }
    75% {
        transform: translateY(-20px) translateX(3px);
    }
}

@keyframes coinFlash {
    0% { color: var(--gold); text-shadow: none; }
    50% { color: #fff; text-shadow: 0 0 20px var(--gold), 0 0 40px var(--gold-dim); }
    100% { color: var(--gold); text-shadow: none; }
}

@keyframes mandala-spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes mandala-spin-slow-rev {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes fire-rise {
    0% {
        opacity: 0.8;
        transform: translateY(0) scaleX(1);
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-40%) scaleX(0.8);
        filter: hue-rotate(20deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-120%) scaleX(0.6);
        filter: hue-rotate(40deg);
    }
}

/* ===== MANDALA SVG ===== */
.mandala-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mandala-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.mandala-ring:nth-child(1) {
    width: 60px; height: 60px;
    border-color: rgba(223, 194, 125, 0.8);
    box-shadow: 0 0 20px rgba(223, 194, 125, 0.4);
    animation: mandala-spin-slow 8s linear infinite;
}

.mandala-ring:nth-child(2) {
    width: 100px; height: 100px;
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    animation: mandala-spin-slow-rev 12s linear infinite;
}

.mandala-ring:nth-child(3) {
    width: 150px; height: 150px;
    border-color: rgba(223, 194, 125, 0.4);
    animation: mandala-spin-slow 20s linear infinite;
}

.mandala-ring:nth-child(4) {
    width: 200px; height: 200px;
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    animation: mandala-spin-slow-rev 30s linear infinite;
}

.mandala-ring:nth-child(5) {
    width: 260px; height: 260px;
    border-color: rgba(138, 43, 226, 0.2);
    animation: mandala-spin-slow 45s linear infinite;
}

.mandala-ring:nth-child(6) {
    width: 300px; height: 300px;
    border-color: rgba(223, 194, 125, 0.1);
    animation: mandala-spin-slow-rev 60s linear infinite;
}

.mandala-core {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold), rgba(223, 194, 125, 0.3));
    box-shadow: 0 0 30px var(--gold), 0 0 60px var(--gold-dim);
    animation: breathe 3s ease-in-out infinite;
    z-index: 5;
}

/* ===== HALL NAV LINK ===== */
.halle-link {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    z-index: 50;
    transition: color 0.4s, text-shadow 0.4s;
}

.halle-link:hover {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-dim);
}

/* ===== BACK LINK ===== */
.back-link {
    position: fixed;
    top: 80px;
    left: 40px;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
    z-index: 50;
    transition: color 0.4s, text-shadow 0.4s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--gold);
    text-shadow: 0 0 15px var(--gold-dim);
}

.back-link::before {
    content: '←';
    font-size: 1rem;
    font-family: sans-serif;
}

/* Spiegel soul count */
.soul-count-display {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

/* Instruction overlay */
.instruction-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    pointer-events: none;
    transition: opacity 1s ease;
}

.instruction-overlay.faded {
    opacity: 0;
}

.instruction-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--text-dim);
    text-align: center;
    line-height: 2;
    padding: 40px;
    background: rgba(3, 3, 5, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
