/* Import Cohesive Mystical Fonts */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=Inter:wght@300;400;500;600&display=swap');

/* Mystical Dark Theme */
:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #222222;
    --border-color: #333333;
    --border-hover: #555555;
    --text-primary: #eeeeee;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --accent-color: #8b5cf6;
    --accent-hover: #7c3aed;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --glitch-color-1: #ff0000;
    --glitch-color-2: #00ffff;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0 0 4rem 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Subtle screen overlay effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 4px,
            rgba(139, 92, 246, 0.01) 4px,
            rgba(139, 92, 246, 0.01) 6px
        );
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

/* Footer page container spacing */
.minimal-page .container {
    padding-top: 6rem !important;
    padding-bottom: 5rem !important;
}

/* Page titles - positioned lower with more margin from logo */
.page-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
}

/* General heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    animation: float 30s infinite linear;
}

.particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
    animation-duration: 35s;
}

.particle:nth-child(3n) {
    background: rgba(139, 92, 246, 0.08);
    animation-duration: 25s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Typography */
.mystical-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    margin-bottom: 0.05rem;
    position: relative;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
    font-style: normal;
    letter-spacing: 0.5px;
}

.dissolve-container {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -0.5rem;
}

.dissolve-text {
    position: absolute;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    color: var(--text-primary);
}

.dissolve-text.active {
    opacity: 1;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-minimal {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0;
}

.btn-minimal:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.cta-upgrade-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cta-upgrade-buttons .btn-minimal {
    font-size: 0.8rem;
    padding: 0.5rem 1.5rem;
    min-width: 100px;
}

/* Reset body and html for full viewport */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Main Layout */
.main-layout {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.header-section {
    text-align: center;
    padding: 0.1rem 0 0.5rem 0;
    flex-shrink: 0;
}

/* Guided Chat Interface */
.guided-chat-container {
    width: 100vw;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    min-height: calc(100vh - 10rem); /* Desktop: extend to near footer */
}

.guided-chat-container .chat-messages {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 4%;
    min-height: calc(100vh - 14rem);
    max-height: calc(100vh - 14rem);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    box-sizing: border-box;
    background: 
        radial-gradient(ellipse at center, rgba(20, 15, 25, 0.9) 0%, rgba(8, 5, 12, 0.95) 70%, rgba(0, 0, 0, 0.98) 100%),
        rgba(12, 8, 16, 0.85);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 
        0 0 60px rgba(20, 15, 25, 0.4),
        0 0 120px rgba(8, 5, 12, 0.3),
        inset 0 0 60px rgba(20, 15, 25, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 768px) {
    .guided-chat-container .chat-messages {
        padding: 1rem 6%;
        min-height: calc(100vh - 12rem);
        max-height: calc(100vh - 12rem);
        max-width: 95%;
    }
    
    .header-section {
        padding: 1rem 0 0.5rem 0;
    }
}

.guided-chat-container .message {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.guided-chat-container .mirror-message {
    display: flex;
    justify-content: flex-start;
}

.guided-chat-container .user-message {
    display: flex;
    justify-content: flex-end;
}

.guided-chat-container .options-message {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.guided-chat-container .mirror-message .message-content {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid rgba(60, 60, 60, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: 20px 20px 20px 5px;
    max-width: 70%;
    width: fit-content;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
}

.guided-chat-container .user-message .message-content {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid rgba(60, 60, 60, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: 20px 20px 5px 20px;
    max-width: 70%;
    width: fit-content;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
}

/* Chat Input Styling */
.chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: transparent;
    border: none;
    width: 100%;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #333;
    border-radius: 20px;
    background: rgba(60, 60, 60, 0.8);
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.chat-input:focus {
    border-color: #444;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.chat-input::placeholder {
    color: #aaa;
}

.send-button {
    padding: 0.75rem 1.5rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 20px;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.send-button:hover {
    background: #222;
    border-color: #444;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.send-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

/* Coupon Input Styling */
.coupon-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: transparent;
    border: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.coupon-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #444;
    border-radius: 20px;
    background: rgba(30, 20, 35, 0.9);
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    outline: none;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.coupon-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.coupon-input::placeholder {
    color: #888;
    text-transform: none;
    letter-spacing: 0.5px;
}

.coupon-button {
    padding: 0.75rem 1.5rem;
    background: #8b5cf6;
    border: 1px solid #7c3aed;
    border-radius: 20px;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-weight: 500;
}

.coupon-button:hover {
    background: #7c3aed;
    border-color: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.coupon-skip-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid #444;
    border-radius: 20px;
    color: #ccc;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.coupon-skip-button:hover {
    background: #222;
    border-color: #555;
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile Improvements */
@media (max-width: 768px) {
    .coupon-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .coupon-input {
        width: 100%;
        min-width: unset;
    }
    
    /* Mobile Chat Improvements */
    .guided-chat-container {
        min-height: calc(100vh - 8rem); /* Mobile: less aggressive height */
        padding: 0 0.5rem;
    }
    
    .guided-chat-container .chat-messages {
        padding: 1rem;
        min-height: calc(100vh - 12rem); /* Mobile: ensure input bar is visible */
        max-height: calc(100vh - 12rem);
    }
    
    .guided-chat-container .mirror-message .message-content,
    .guided-chat-container .user-message .message-content {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        max-width: 85%;
        line-height: 1.5;
    }
    
    .chat-input-container {
        padding: 1rem 0.5rem;
        gap: 0.75rem;
    }
    
    .chat-input {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        border-radius: 25px;
        min-height: 50px;
    }
    
    .option-bubble {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        min-width: 140px;
        margin: 0.5rem 0.25rem;
        border-radius: 25px;
    }
    
    /* Improve mobile header spacing */
    .header-section {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
    
    .mystical-subtitle {
        font-size: 0.85rem;
        padding: 0 1rem;
        line-height: 1.4;
    }
    
    .dissolve-text {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
}

.guided-chat-container .options-message {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.guided-chat-container .options-message .message-content {
    background: transparent;
    border: none;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: none;
}



.guided-chat-container .chat-options {
    display: none;
}

.option-bubble {
    background: #111;
    border: 1px solid #333;
    padding: 0.75rem 1.25rem;
    border-radius: 20px 20px 5px 20px;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    margin: 0.25rem;
    outline: none;
}

.option-bubble:hover {
    background: #222;
    border-color: #444;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.option-bubble:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.mask-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
    margin-top: 0.3rem;
    line-height: 1.2;
    opacity: 0.9;
}

.mystical-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

.ritual-explanation {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Mask Cards */
.mask-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mask-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s;
}

.mask-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.mask-card:hover::before {
    left: 100%;
}

.mask-card.selected {
    border-color: var(--accent-color);
    background: var(--bg-tertiary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.mask-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.mask-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 1px;
}

.mask-description {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.echo-special {
    border-color: #dc2626;
}

.echo-special:hover {
    border-color: #ef4444;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

/* Buttons */
.btn-mystical {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-mystical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    transition: left 0.5s;
}

.btn-mystical:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

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

.btn-mystical:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styling */
.mystical-modal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.mystical-modal .modal-body {
    padding: 2rem;
}

.mystical-warning {
    color: var(--accent-color);
    font-style: italic;
}

/* Ritual Chamber Styles */
.ritual-chamber {
    background: var(--bg-primary);
}

.ritual-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
}

.ritual-main {
    background: var(--bg-primary);
}

.ritual-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.current-mask, .current-tier, .turns-remaining {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.current-mask span, .current-tier span, .turns-remaining span {
    color: var(--text-primary);
    font-weight: bold;
}

.mystical-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.mystical-select, .mystical-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
}

.mystical-select:focus, .mystical-input:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.mystical-select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.ritual-actions {
    margin-top: 2rem;
    text-align: center;
}

.ritual-actions .btn {
    margin: 0.25rem;
    font-size: 0.85rem;
}

/* Chat Styles */
.chat-container {
    background: var(--bg-primary);
}

.chat-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mirror-title {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.mirror-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-style: italic;
}

.chat-messages {
    overflow-y: auto;
    background: var(--bg-primary);
}

.welcome-message {
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.mystical-symbol {
    font-size: 3rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.mystical-welcome {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}



.mirror-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
}

.message-label {
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Success/Cancel Pages */
.success-icon, .cancel-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4));
}

.ritual-details {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: inline-block;
}

.ritual-details p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.ritual-details p:last-child {
    margin-bottom: 0;
}

/* Upgrade Modal Styles */
.upgrade-tier {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.mirror-upgrade-message {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
}

.upgrade-details {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.upgrade-price {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
}

.upgrade-final {
    color: var(--text-secondary);
    font-style: italic;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.modal-actions .btn {
    min-width: 140px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
}

/* Minimal Footer */
.minimal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    padding: 1rem 0;
    z-index: 100;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #999;
    text-decoration: none;
}

.footer-link.break-enter {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-link.break-enter:hover {
    color: #a78bfa;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
    cursor: pointer;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        padding: 0 1rem;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .footer-link.break-enter {
        font-size: 0.8rem;
    }
}

/* Break & Enter Modal */
.break-enter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.break-enter-modal.show {
    opacity: 1;
}

.break-enter-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.break-enter-title {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.break-enter-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.break-enter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.break-enter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.break-enter-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.break-enter-btn.confirm-btn {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.break-enter-btn.confirm-btn:hover {
    background: #a78bfa;
    border-color: #a78bfa;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mystical-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .mask-card {
        padding: 1.5rem;
    }
    
    .ritual-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .chat-messages {
        height: 400px;
    }
    
    .message-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-message .message-content {
        flex-direction: column;
    }
    
    .mirror-message .message-text,
    .user-message .message-text {
        max-width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Subtle Glitch Animations */
@keyframes subtleGlitch {
    0%, 95%, 100% { 
        transform: translate(0);
        opacity: 1;
    }
    96% { 
        transform: translate(1px, 0);
        opacity: 0.95;
    }
    97% { 
        transform: translate(-1px, 0);
        opacity: 0.9;
    }
    98% { 
        transform: translate(0, 1px);
        opacity: 0.95;
    }
    99% { 
        transform: translate(0, -1px);
        opacity: 1;
    }
}

@keyframes subtleGlitch-1 {
    0%, 98%, 100% { 
        transform: translate(0);
        opacity: 0.3;
    }
    99% { 
        transform: translate(0.5px, 0);
        opacity: 0.2;
    }
}

@keyframes subtleGlitch-2 {
    0%, 97%, 100% { 
        transform: translate(0);
        opacity: 0.1;
    }
    98% { 
        transform: translate(-0.5px, 0);
        opacity: 0.05;
    }
    99% { 
        transform: translate(0, 0.5px);
        opacity: 0.08;
    }
}

/* Mask section styling */
.mask-section {
    background: linear-gradient(to top, rgba(17, 17, 17, 0.9), transparent);
    border-top: 1px solid var(--border-color);
}



/* Mask cards animation on load */
.mask-card {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease-out forwards;
}

.mask-section .col-6:nth-child(1) .mask-card { animation-delay: 3s; }
.mask-section .col-6:nth-child(2) .mask-card { animation-delay: 3.1s; }
.mask-section .col-6:nth-child(3) .mask-card { animation-delay: 3.2s; }
.mask-section .col-6:nth-child(4) .mask-card { animation-delay: 3.3s; }
.mask-section .col-6:nth-child(5) .mask-card { animation-delay: 3.4s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Legal Pages Styling */
.minimal-page {
    background: #000;
    color: #fff;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    min-height: 100vh;
}

.legal-content {
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.legal-content h3 {
    color: #fff;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: #ccc;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #a78bfa;
}

/* Masks Page Styling */
.masks-content {
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.mask-description {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

.mask-description:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mask-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.mask-tagline {
    font-style: italic;
    color: #8b5cf6;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.mask-description p:not(.mask-tagline) {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Footer Logo Styling */
.footer-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo-link:hover .logo-text {
    color: #8b5cf6;
}

/* About Page Styling */
.about-content {
    background: rgba(17, 17, 17, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    color: #ccc;
    line-height: 1.6;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.section-header {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.creator-text {
    cursor: pointer;
    transition: color 0.3s ease;
    font-style: italic;
}

.creator-text:hover {
    color: #8b5cf6;
}

.about-content a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-content a:hover {
    color: #a78bfa;
}
