/* Eveningcast - Title Screen */

:root {
    --primary-bg: #fef8f0;
    --secondary-bg: #f9f1e7;
    --accent-color: #d4a373;
    --text-color: #5d4e37;
    --warm-glow: #c9a87c;
    --shadow-color: rgba(212, 163, 115, 0.15);
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow: hidden;
}

.title-screen {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.title-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1.5s ease;
}

.game-title {
    font-size: 6rem;
    font-weight: bold;
    color: var(--warm-glow);
    margin-bottom: 10px;
    letter-spacing: 8px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(201, 168, 124, 0.4), 0 0 50px rgba(201, 168, 124, 0.2);
    }
    50% {
        text-shadow: 0 0 50px rgba(201, 168, 124, 0.6), 0 0 80px rgba(201, 168, 124, 0.3);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 80px;
    opacity: 0.8;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.menu-button {
    background: rgba(255, 249, 240, 0.8);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    padding: 18px 80px;
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    min-width: 300px;
}

.menu-button:hover {
    background: rgba(212, 163, 115, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.menu-button.glow {
    background: var(--accent-color);
    color: var(--primary-bg);
    font-weight: bold;
    animation: pulseGlow 2s ease-in-out infinite;
}

.menu-button.glow:hover {
    background: var(--warm-glow);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 163, 115, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 163, 115, 0.6);
    }
}

.footer-text {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-color);
    opacity: 0.5;
    font-size: 0.9rem;
    z-index: 1;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(93, 78, 55, 0.85);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-box {
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideIn 0.4s ease;
    text-align: center;
}

.modal-box h2 {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.modal-box p {
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--accent-color);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    background: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-btn:hover {
    background: var(--warm-glow);
    transform: translateY(-2px);
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 4rem;
        letter-spacing: 4px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 60px;
    }

    .menu-button {
        min-width: 250px;
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .modal-box {
        padding: 35px 25px;
        margin: 20px;
    }
}
