/**
 * Mythical Portal Experience - Core Styles
 * Version: 2.0.0
 * Performance optimized with will-change, GPU acceleration, and reduced motion support
 */

/* ============================================= */
/* CSS CUSTOM PROPERTIES */
/* ============================================= */
:root {
    --mythical-midnight: #1a1a2e;
    --mythical-void: #0d0d15;
    --mythical-abyss: #050508;
    --mythical-gold: #c9a227;
    --mythical-gold-light: #e8d48a;
    --mythical-gold-glow: rgba(201,162,39,0.3);
    --mythical-blue: #4a90a4;
    --mythical-blue-glow: rgba(74,144,164,0.3);
    --mythical-text: #f4f0e8;
    --mythical-text-muted: rgba(244,240,232,0.6);
    --mythical-text-dim: rgba(244,240,232,0.4);
    --font-display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
    --font-heading: 'Cinzel', Georgia, serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    --ease-out-expo: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================= */
/* PERFORMANCE: REDUCED MOTION */
/* ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .mythical-cosmos::before,
    .portal-ring,
    .rune,
    .fog-layer {
        animation: none !important;
    }
}

/* ============================================= */
/* COSMIC BACKGROUND & PARTICLES */
/* ============================================= */
.mythical-cosmos {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(ellipse at center, var(--mythical-midnight) 0%, var(--mythical-void) 50%, var(--mythical-abyss) 100%);
    overflow: hidden;
}

#mythical-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Animated Stars Layer */
.mythical-cosmos::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(2px 2px at 160px 120px, var(--mythical-gold-glow), transparent),
        radial-gradient(1px 1px at 230px 80px, #fff, transparent),
        radial-gradient(2px 2px at 300px 200px, var(--mythical-blue-glow), transparent),
        radial-gradient(1px 1px at 370px 150px, #fff, transparent),
        radial-gradient(2px 2px at 450px 250px, rgba(255,255,255,0.6), transparent);
    background-size: 500px 350px;
    animation: cosmicDrift 90s linear infinite;
    will-change: transform;
}

/* Nebula Glow */
.mythical-cosmos::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(74,144,164,0.04) 0%, transparent 50%);
    animation: nebulaBreath 15s ease-in-out infinite;
}

@keyframes cosmicDrift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, -50%, 0); }
}

@keyframes nebulaBreath {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================= */
/* PORTAL HERO SECTION */
/* ============================================= */
.portal-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Mystical Fog Layers */
.portal-fog {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201,162,39,0.015) 25%, 
        rgba(74,144,164,0.02) 50%,
        rgba(201,162,39,0.015) 75%,
        transparent 100%);
    will-change: transform;
}

.fog-layer:nth-child(1) {
    animation: fogDrift1 25s ease-in-out infinite;
    top: 15%;
}

.fog-layer:nth-child(2) {
    animation: fogDrift2 35s ease-in-out infinite;
    top: 45%;
    opacity: 0.6;
}

.fog-layer:nth-child(3) {
    animation: fogDrift3 30s ease-in-out infinite;
    top: 70%;
    opacity: 0.4;
}

@keyframes fogDrift1 {
    0%, 100% { transform: translate3d(-25%, 0, 0); }
    50% { transform: translate3d(0%, 0, 0); }
}

@keyframes fogDrift2 {
    0%, 100% { transform: translate3d(0%, 0, 0); }
    50% { transform: translate3d(-25%, 0, 0); }
}

@keyframes fogDrift3 {
    0%, 100% { transform: translate3d(-15%, 0, 0); }
    50% { transform: translate3d(10%, 0, 0); }
}

/* Floating Runes */
.portal-runes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rune {
    position: absolute;
    font-size: 1.8rem;
    color: rgba(201,162,39,0.12);
    animation: runeFloat 12s ease-in-out infinite;
    text-shadow: 0 0 15px var(--mythical-gold-glow);
    will-change: transform, opacity;
}

.rune:nth-child(1) { left: 5%; top: 20%; animation-delay: 0s; }
.rune:nth-child(2) { left: 12%; top: 70%; animation-delay: -2s; }
.rune:nth-child(3) { left: 88%; top: 25%; animation-delay: -4s; }
.rune:nth-child(4) { left: 92%; top: 65%; animation-delay: -6s; }
.rune:nth-child(5) { left: 50%; top: 8%; animation-delay: -8s; }
.rune:nth-child(6) { left: 6%; top: 45%; animation-delay: -1s; }
.rune:nth-child(7) { left: 94%; top: 45%; animation-delay: -5s; }
.rune:nth-child(8) { left: 20%; top: 88%; animation-delay: -3s; }
.rune:nth-child(9) { left: 80%; top: 88%; animation-delay: -7s; }

@keyframes runeFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.12; }
    25% { transform: translate3d(0, -15px, 0) rotate(3deg); opacity: 0.2; }
    50% { transform: translate3d(0, -8px, 0) rotate(-2deg); opacity: 0.15; }
    75% { transform: translate3d(0, -20px, 0) rotate(2deg); opacity: 0.25; }
}

/* Portal Ring System */
.portal-ring-container {
    position: relative;
    width: min(550px, 90vw);
    height: min(550px, 90vw);
    display: flex;
    justify-content: center;
    align-items: center;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    will-change: transform;
}

.portal-ring-outer {
    width: 100%;
    height: 100%;
    border-color: rgba(201,162,39,0.25);
    animation: portalRotate 50s linear infinite;
    box-shadow: 0 0 40px rgba(201,162,39,0.08), inset 0 0 40px rgba(201,162,39,0.04);
}

.portal-ring-middle {
    width: 78%;
    height: 78%;
    border-color: rgba(74,144,164,0.2);
    animation: portalRotate 40s linear infinite reverse;
    box-shadow: 0 0 30px rgba(74,144,164,0.08), inset 0 0 30px rgba(74,144,164,0.04);
}

.portal-ring-inner {
    width: 56%;
    height: 56%;
    border-color: rgba(201,162,39,0.15);
    animation: portalRotate 30s linear infinite;
    box-shadow: 0 0 25px rgba(201,162,39,0.06), inset 0 0 25px rgba(201,162,39,0.03);
}

.portal-ring-core {
    width: 34%;
    height: 34%;
    background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, rgba(74,144,164,0.08) 50%, transparent 70%);
    animation: portalPulse 4s ease-in-out infinite;
}

@keyframes portalRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes portalPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* Portal Content */
.portal-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 750px;
    padding: 0 1rem;
}

.portal-sigil {
    font-size: 2.5rem;
    color: var(--mythical-gold);
    margin-bottom: 1rem;
    display: block;
    animation: sigilGlow 3s ease-in-out infinite;
    text-shadow: 0 0 25px var(--mythical-gold-glow);
}

@keyframes sigilGlow {
    0%, 100% { opacity: 0.7; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.4); }
}

.portal-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--mythical-text);
}

.title-line {
    display: block;
}

.title-line-accent {
    display: block;
    background: linear-gradient(135deg, var(--mythical-gold) 0%, var(--mythical-gold-light) 50%, var(--mythical-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.portal-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--mythical-text-muted);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Ethereal Buttons */
.portal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ethereal {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mythical-text);
    background: linear-gradient(135deg, rgba(201,162,39,0.12) 0%, rgba(74,144,164,0.12) 100%);
    border: 1px solid rgba(201,162,39,0.35);
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 0 25px rgba(201,162,39,0.08), inset 0 0 25px rgba(201,162,39,0.04);
    backdrop-filter: blur(10px);
}

.btn-ethereal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.15), transparent);
    transition: left 0.6s ease;
}

.btn-ethereal:hover {
    transform: translateY(-4px);
    border-color: var(--mythical-gold);
    color: var(--mythical-text);
    box-shadow: 0 15px 50px rgba(201,162,39,0.25), 0 0 80px rgba(201,162,39,0.12);
}

.btn-ethereal:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border-color: rgba(74,144,164,0.35);
    box-shadow: 0 0 20px rgba(74,144,164,0.08);
}

.btn-secondary:hover {
    border-color: var(--mythical-blue);
    box-shadow: 0 15px 50px rgba(74,144,164,0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(201,162,39,0.4);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.8; }
}

/* ============================================= */
/* SECTION STYLES */
/* ============================================= */
.mythical-section {
    padding: 5rem 1.5rem;
    position: relative;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-overline {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--mythical-gold);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-overline::before,
.section-overline::after {
    content: '';
    width: 35px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mythical-gold));
}

.section-overline::after {
    background: linear-gradient(90deg, var(--mythical-gold), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--mythical-text);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--mythical-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================= */
/* REALM GATE CARDS (Pantheons) */
/* ============================================= */
.pantheon-realm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.realm-gate {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
    will-change: transform;
}

.realm-gate::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.realm-gate:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px var(--mythical-gold-glow);
}

.realm-gate-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.7s var(--ease-out-expo);
}

.realm-gate:hover .realm-gate-bg {
    transform: scale(1.08);
}

/* Realm-specific backgrounds */
.realm-greek .realm-gate-bg { background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%); }
.realm-japanese .realm-gate-bg { background: linear-gradient(135deg, #2d1f1f 0%, #1a1a2e 100%); }
.realm-norse .realm-gate-bg { background: linear-gradient(135deg, #1f2a2d 0%, #1a1a2e 100%); }
.realm-egyptian .realm-gate-bg { background: linear-gradient(135deg, #3a2a1a 0%, #1a1a2e 100%); }
.realm-celtic .realm-gate-bg { background: linear-gradient(135deg, #1a2d1f 0%, #1a1a2e 100%); }
.realm-chinese .realm-gate-bg { background: linear-gradient(135deg, #2d1a1a 0%, #1a1a2e 100%); }

.realm-gate-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.75rem;
    z-index: 2;
}

.realm-sigil {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    filter: drop-shadow(0 0 12px var(--mythical-gold-glow));
}

.realm-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--mythical-text);
    margin-bottom: 0.35rem;
}

.realm-domain {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--mythical-gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.realm-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--mythical-text-muted);
    line-height: 1.55;
}

.realm-enter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--mythical-gold);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease-out-expo);
}

.realm-gate:hover .realm-enter {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Animation State */
.realm-gate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.realm-gate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* DOMAIN CARDS (Creature Types) */
/* ============================================= */
.creature-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.domain-card {
    position: relative;
    padding: 2.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(13,13,21,0.85) 100%);
    border: 1px solid rgba(201,162,39,0.12);
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    backdrop-filter: blur(5px);
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--mythical-gold), var(--mythical-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.domain-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,162,39,0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 35px rgba(201,162,39,0.08);
}

.domain-card:hover::before {
    transform: scaleX(1);
}

.domain-icon {
    font-size: 2.25rem;
    margin-bottom: 0.85rem;
    display: block;
}

.domain-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--mythical-text);
    margin-bottom: 0.4rem;
}

.domain-creatures {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--mythical-text-muted);
    line-height: 1.55;
}

/* Scroll Animation */
.domain-card {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s ease;
}

.domain-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* MYSTICAL DIVIDER */
/* ============================================= */
.mystical-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
}

.divider-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,162,39,0.25), transparent);
}

.divider-symbol {
    font-size: 1.75rem;
    color: var(--mythical-gold);
    animation: symbolPulse 4s ease-in-out infinite;
}

@keyframes symbolPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ============================================= */
/* MAP SECTION */
/* ============================================= */
.map-section {
    padding: 3.5rem 1.5rem;
}

.map-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 50px rgba(201,162,39,0.08);
    border: 1px solid rgba(201,162,39,0.15);
}

.map-container img {
    width: 100%;
    height: auto;
    display: block;
}

.map-caption {
    text-align: center;
    padding: 1.25rem;
    background: rgba(26,26,46,0.9);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--mythical-text-muted);
    letter-spacing: 0.08em;
}

/* ============================================= */
/* WISDOM PILLARS */
/* ============================================= */
.wisdom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.wisdom-pillar {
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: linear-gradient(180deg, rgba(26,26,46,0.4) 0%, transparent 100%);
    border-radius: 14px;
    border: 1px solid rgba(201,162,39,0.08);
    transition: all 0.4s var(--ease-out-expo);
}

.wisdom-pillar:hover {
    border-color: rgba(201,162,39,0.2);
    transform: translateY(-5px);
}

.wisdom-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    display: block;
}

.wisdom-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--mythical-gold);
    margin-bottom: 0.75rem;
}

.wisdom-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--mythical-text-muted);
    line-height: 1.7;
}

/* Scroll Animation */
.wisdom-pillar {
    opacity: 0;
    transform: translateY(25px);
}

.wisdom-pillar.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* CHRONICLE NEWSLETTER */
/* ============================================= */
.chronicle-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, rgba(201,162,39,0.04) 0%, transparent 50%, rgba(74,144,164,0.04) 100%);
    text-align: center;
    position: relative;
}

.chronicle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(201,162,39,0.25));
}

.chronicle-scroll {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
    filter: drop-shadow(0 0 25px var(--mythical-gold-glow));
}

.chronicle-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    color: var(--mythical-text);
    margin-bottom: 0.75rem;
}

.chronicle-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--mythical-text-muted);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.chronicle-note {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--mythical-text-dim);
    margin-top: 1.25rem;
}

/* ============================================= */
/* ARCHIVE VAULT CARDS */
/* ============================================= */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.vault-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(13,13,21,0.92) 100%);
    border: 1px solid rgba(201,162,39,0.15);
    border-radius: 18px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.vault-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(201,162,39,0.35), rgba(74,144,164,0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.vault-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.45), 0 0 50px rgba(201,162,39,0.12);
}

.vault-card:hover::after {
    opacity: 1;
}

.vault-icon {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    display: block;
}

.vault-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--mythical-text);
    margin-bottom: 0.75rem;
}

.vault-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--mythical-text-muted);
    line-height: 1.7;
}

/* Scroll Animation */
.vault-card {
    opacity: 0;
    transform: translateY(30px);
}

.vault-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* FINAL JOURNEY CTA */
/* ============================================= */
.journey-cta {
    padding: 7rem 1.5rem;
    text-align: center;
    position: relative;
}

.journey-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201,162,39,0.04) 0%, transparent 70%);
    animation: ctaPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; }
}

.journey-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    color: var(--mythical-text);
    margin-bottom: 1.25rem;
    position: relative;
}

.journey-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--mythical-text-muted);
    max-width: 650px;
    margin: 0 auto 1.25rem;
    line-height: 1.8;
    position: relative;
}

.journey-question {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--mythical-gold);
    font-style: italic;
    position: relative;
}

/* ============================================= */
/* RESPONSIVE DESIGN */
/* ============================================= */
@media (max-width: 768px) {
    .portal-ring-container {
        width: min(320px, 85vw);
        height: min(320px, 85vw);
    }
    
    .rune {
        font-size: 1.2rem;
    }
    
    .rune:nth-child(n+6) {
        display: none;
    }
    
    .realm-gate {
        height: 300px;
    }
    
    .portal-buttons {
        flex-direction: column;
        gap: 0.85rem;
    }
    
    .btn-ethereal {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
    
    .mythical-section {
        padding: 3.5rem 1rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .portal-sigil {
        font-size: 2rem;
    }
    
    .portal-title {
        font-size: 1.8rem;
    }
    
    .portal-subtitle {
        font-size: 0.95rem;
    }
    
    .btn-ethereal {
        font-size: 0.85rem;
        padding: 0.9rem 1.5rem;
        letter-spacing: 0.08em;
    }
    
    .realm-gate {
        height: 280px;
    }
    
    .realm-name {
        font-size: 1.4rem;
    }
}
