/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-dark-brown: #78350f;
    --color-brown: #92400e;
    --color-amber: #f59e0b;
    --color-amber-light: #fef3c7;
    --color-amber-dark: #d97706;
    --color-gold: #fbbf24;
    --color-dark: #1e1b18;
    --color-text-light: #fef3c7;
    --color-text-dark: #422006;
}

body {
    font-family: 'MedievalSharp', cursive;
    background: linear-gradient(135deg, #1e1b18 0%, #422006 50%, #78350f 100%);
    color: var(--color-text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Parallax Background */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.layer-1 {
    background: radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.layer-2 {
    background: radial-gradient(circle at 60% 30%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: float 25s ease-in-out infinite reverse;
}

.layer-3 {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(245, 158, 11, 0.03) 2px,
        rgba(245, 158, 11, 0.03) 4px
    );
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

/* Particles Canvas */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    animation: pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.6));
}

.site-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: 
        0 0 10px rgba(251, 191, 36, 0.8),
        0 0 20px rgba(251, 191, 36, 0.6),
        0 0 30px rgba(251, 191, 36, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.site-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-amber-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .glow-text {
    display: block;
    color: var(--color-gold);
    text-shadow: 
        0 0 10px rgba(251, 191, 36, 0.8),
        0 0 20px rgba(251, 191, 36, 0.6),
        0 0 30px rgba(251, 191, 36, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-title .glow-text:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(251, 191, 36, 0.8),
            0 0 20px rgba(251, 191, 36, 0.6),
            0 0 30px rgba(251, 191, 36, 0.4),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(251, 191, 36, 1),
            0 0 30px rgba(251, 191, 36, 0.8),
            0 0 40px rgba(251, 191, 36, 0.6),
            2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--color-amber-light);
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Play Button */
.play-button {
    display: inline-block;
    position: relative;
    padding: 1.25rem 4rem;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text-dark);
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-amber) 100%);
    border: 3px solid var(--color-amber-dark);
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(251, 191, 36, 0.4),
        0 0 30px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    margin-bottom: 3rem;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.play-button:hover::before {
    width: 300px;
    height: 300px;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 25px rgba(251, 191, 36, 0.6),
        0 0 40px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* News & Patch Notes */
.news-section {
    width: 100%;
    max-width: 1100px;
    margin: 3rem auto 2rem;
    padding: 2rem;
    background: rgba(30, 27, 24, 0.6);
    border: 2px solid rgba(251, 191, 36, 0.35);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(4px);
}
.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--color-gold);
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    margin-bottom: 0.35rem;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: var(--color-amber-light);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.news-card {
    background: linear-gradient(145deg, #2b211c, #1e1b18);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    position: relative;
}
.news-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.15);
    color: var(--color-gold);
    font-weight: 700;
    font-size: 0.75rem;
    border: 1px solid rgba(251, 191, 36, 0.35);
    margin-bottom: 0.6rem;
}
.pill-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.pill-green { background: rgba(52, 211, 153, 0.18); color: #bbf7d0; border-color: rgba(52,211,153,0.35); }
.news-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--color-amber);
    margin-bottom: 0.4rem;
}
.news-body {
    color: var(--color-amber-light);
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.news-list {
    list-style: disc;
    padding-left: 1.1rem;
    color: #fef3c7;
    opacity: 0.9;
    line-height: 1.45;
    margin-bottom: 0.6rem;
}
.news-date {
    font-size: 0.8rem;
    color: #d1d5db;
    opacity: 0.7;
}

.play-button:active {
    transform: translateY(-1px) scale(1.02);
}

.play-button-text {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.play-button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, transparent 70%);
    animation: rotate-glow 3s linear infinite;
    pointer-events: none;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(146, 64, 14, 0.3);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.feature-text {
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--color-amber-light);
    text-align: center;
    font-weight: 600;
}

/* Footer */
.footer {
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
    border-top: 2px solid rgba(245, 158, 11, 0.2);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-amber-light);
    opacity: 0.8;
}

.privacy-link {
    color: var(--color-amber);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.privacy-link:hover {
    color: var(--color-gold);
    border-bottom-color: var(--color-gold);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Fade-in Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, var(--color-dark-brown) 0%, var(--color-brown) 100%);
    border: 3px solid var(--color-amber);
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-family: 'Cinzel', serif;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.modal-content p {
    color: var(--color-amber-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--color-amber-light);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-gold);
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .hero-title .glow-text {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .play-button {
        padding: 1rem 3rem;
        font-size: 1.25rem;
    }

    .features {
        flex-direction: column;
        gap: 1rem;
    }

    .feature {
        width: 100%;
        max-width: 300px;
    }

    .bg-layer {
        width: 150%;
        height: 150%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 3rem;
    }

    .play-button {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

