@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1b1b 25%, #3d2a2a 50%, #2d1b1b 75%, #1a0a0a 100%);
    color: #f4e4bc;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Medieval background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm-20-18c9.941 0 18 8.059 18 18s-8.059 18-18 18S-8 39.941-8 30s8.059-18 18-18z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

/* Header */
.header {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-bottom: 4px solid #daa520;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #daa520;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px #ffd700;
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
}

.logo::after {
    content: '⚔️';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 30px;
    height: 4px;
    background: #daa520;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -8px);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: #f4e4bc;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.nav a:hover {
    color: #daa520;
    background: rgba(218, 165, 32, 0.1);
    border-color: #daa520;
    text-shadow: 0 0 8px #ffd700;
    transform: translateY(-2px);
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.6));
    border-radius: 25px;
    margin-bottom: 3rem;
    border: 3px solid #daa520;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #daa520;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px #ffd700;
    margin-bottom: 1rem;
    letter-spacing: 4px;
    position: relative;
}

.hero-title::before {
    content: '🏰';
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.hero-title::after {
    content: '⚔️';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #f4e4bc;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.notice-banner {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    color: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.4);
    border: 2px solid #ff6b6b;
    font-size: 1.1rem;
}

.game-container {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(160, 82, 45, 0.7));
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    border: 4px solid #daa520;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #daa520, #ffd700, #daa520);
    border-radius: 22px;
    z-index: -1;
}

.game-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #daa520;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 15px #ffd700;
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
    background: #000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.6));
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid #daa520;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.2), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #ffd700;
    box-shadow: 0 20px 40px rgba(218, 165, 32, 0.3);
}

.feature-icon {
    font-size: 4rem;
    color: #daa520;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px #ffd700;
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #f4e4bc;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.feature-description {
    color: #e6d3a3;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-top: 4px solid #daa520;
    padding: 2.5rem 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f4e4bc;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid transparent;
}

.footer-links a:hover {
    color: #daa520;
    border-color: #daa520;
    text-shadow: 0 0 8px #ffd700;
}

.footer-text {
    color: #e6d3a3;
    font-size: 1rem;
    font-style: italic;
}

/* Age verification modal */
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.age-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #8b4513, #a0522d);
    padding: 3.5rem;
    border-radius: 25px;
    border: 4px solid #daa520;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.age-modal h2 {
    font-family: 'Cinzel', serif;
    color: #daa520;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 20px #ffd700;
}

.age-modal p {
    color: #f4e4bc;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.age-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.age-btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 3px solid transparent;
}

.age-btn.yes {
    background: linear-gradient(45deg, #228b22, #32cd32);
    color: #fff;
    border-color: #00ff00;
}

.age-btn.yes:hover {
    background: linear-gradient(45deg, #32cd32, #228b22);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 10px #fff;
}

.age-btn.no {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    color: #fff;
    border-color: #ff0000;
}

.age-btn.no:hover {
    background: linear-gradient(45deg, #dc143c, #8b0000);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 10px #fff;
}

/* Responsive design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #8b4513, #a0522d);
        flex-direction: column;
        padding: 1.5rem;
        border-top: 3px solid #daa520;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }
    
    .nav.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title::before,
    .hero-title::after {
        display: none;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .age-modal-content {
        padding: 2.5rem;
        margin: 1rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .game-frame {
        height: 300px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
}