* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: radial-gradient(1200px 800px at 50% -20%, #1a1a2e 0%, #0a0a0a 60%);
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

@keyframes pulse { from { opacity: 1; } to { opacity: 1; } }

.container {
    max-width: 900px;
    width: 100%;
    animation: fadeIn 1s ease-in;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.language-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(30, 30, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    color: #e5e7eb;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    letter-spacing: 0.2px;
    text-transform: none;
}

.lang-btn .flag { font-size: 1.05rem; line-height: 1; }

.lang-btn:hover { transform: translateY(-1px); border-color: rgba(148, 163, 184, 0.4); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

.lang-btn.active { background: linear-gradient(90deg, rgba(124, 58, 237, 0.9), rgba(99, 102, 241, 0.9)); border-color: transparent; box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35); }

.logo-placeholder h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 6px 24px rgba(96, 165, 250, 0.18), 0 0 1px rgba(96,165,250,0.6);
}

.mystery-container {
    background: rgba(18, 18, 26, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 36px;
    min-height: 280px;
    margin-bottom: 36px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mystery-container::before { content: none; }
.mystery-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18), 0 0 60px rgba(99, 102, 241, 0.08) inset;
}

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

.mystery-container:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 
        0 15px 70px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(168, 85, 247, 0.2) inset;
}

.intro-text {
    font-size: 1.2rem;
    text-align: center;
    color: #cbd5e1;
    font-style: italic;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.mystery-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fda4af;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: none;
    position: relative;
    z-index: 1;
}

.mystery-content .story {
    font-size: 1.12rem;
    line-height: 1.9;
    white-space: pre-wrap;
    text-align: justify;
    color: #e5e7eb;
    position: relative;
    z-index: 1;
}

.reveal-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #7c3aed, #6366f1);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
}

.reveal-btn::before { content: none; }

.reveal-btn:hover::before {
    width: 300px;
    height: 300px;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(99, 102, 241, 0.45);
}

.reveal-btn:active {
    transform: translateY(-2px) scale(1.01);
}

.reveal-btn.hide-mode {
    background: linear-gradient(90deg, #f43f5e, #f97316);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.35);
}

.reveal-btn.hide-mode:hover {
    box-shadow: 
        0 12px 35px rgba(255, 107, 107, 0.6),
        0 0 30px rgba(255, 107, 107, 0.3) inset;
}

.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading.active {
    display: block;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(168, 85, 247, 0.3);
    border-top: 4px solid #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    color: #666;
    font-size: 0.9rem;
}

.buttons { display: flex; justify-content: center; gap: 14px; margin-top: 8px; }

.reveal-btn.alt { background: linear-gradient(90deg, #334155, #475569); box-shadow: 0 10px 24px rgba(51,65,85,0.35); }
.reveal-btn.alt:hover { box-shadow: 0 14px 30px rgba(51,65,85,0.45); }

@media (max-width: 768px) {
    .logo-placeholder h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .mystery-container {
        padding: 25px;
        min-height: 250px;
    }
    
    .mystery-content h2 {
        font-size: 1.5rem;
    }
    
    .mystery-content .story {
        font-size: 1rem;
    }
    
    .reveal-btn {
        font-size: 1rem;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .logo-placeholder h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .mystery-container {
        padding: 20px;
    }
}

