@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Cinzel+Decorative:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MedievalSharp', cursive;
    background: #1a1a1a;
    color: #d4af37;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(205, 133, 63, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 25s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2c1810, #8b4513);
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #d4af37;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3.2rem;
    font-weight: 700;
    color: #d4af37;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3); }
    100% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.6); }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid #d4af37;
    color: #d4af37;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'MedievalSharp', cursive;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: #d4af37;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    font-family: 'MedievalSharp', cursive;
}

.nav a:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: width 0.3s ease;
}

.nav a:hover::before {
    width: 100%;
}

/* Main Content */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(139, 69, 19, 0.8));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 3px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero h1 {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 4.8rem;
    color: #d4af37;
    margin-bottom: 2rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero p {
    font-size: 1.5rem;
    color: #e8d5b7;
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.notice-banner {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 3px solid #d4af37;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
    position: relative;
    overflow: hidden;
}

.notice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.notice-banner h3 {
    color: #d4af37;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Cinzel Decorative', cursive;
    position: relative;
    z-index: 1;
}

.notice-banner ul {
    list-style: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.notice-banner li {
    padding: 1rem 0;
    font-size: 1.4rem;
    color: #e8d5b7;
    font-weight: 600;
}

.game-container {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.9), rgba(139, 69, 19, 0.8));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    border: 3px solid #d4af37;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #d4af37, #ffd700, #d4af37, #ffd700);
    border-radius: 20px;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.game-container h2 {
    text-align: center;
    color: #d4af37;
    font-size: 3rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel Decorative', cursive;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.game-frame:hover {
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c1810, #8b4513);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 3px solid #d4af37;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.footer-content {
    text-align: center;
}

.footer h3 {
    color: #d4af37;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel Decorative', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #e8d5b7;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-family: 'MedievalSharp', cursive;
}

.footer-links a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.footer p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* 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;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.age-modal.show {
    display: flex;
}

.age-modal-content {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(139, 69, 19, 0.9));
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    border: 3px solid rgba(212, 175, 55, 0.8);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
    max-width: 600px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    animation: rotate 15s linear infinite;
}

.age-modal h2 {
    color: #d4af37;
    font-size: 3.2rem;
    margin-bottom: 2rem;
    font-family: 'Cinzel Decorative', cursive;
    position: relative;
    z-index: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.age-modal p {
    color: #e8d5b7;
    font-size: 1.4rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.age-btn {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    border: 3px solid #d4af37;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel Decorative', cursive;
    font-weight: 700;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.age-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.age-btn:hover::before {
    left: 100%;
}

.age-btn.yes {
    background: linear-gradient(45deg, #d4af37, #ffd700);
    color: #2c1810;
}

.age-btn.yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.age-btn.no {
    background: linear-gradient(45deg, #8b0000, #dc143c);
    color: #e8d5b7;
}

.age-btn.no:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(139, 69, 19, 0.9));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        border-radius: 0 0 20px 20px;
        border-top: 3px solid #d4af37;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 10px;
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .age-modal-content {
        padding: 3rem 2rem;
        margin: 1rem;
    }
    
    .age-modal h2 {
        font-size: 2.8rem;
    }
    
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .game-frame {
        height: 300px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .game-container {
        padding: 2rem;
    }
}

/* Additional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .game-container, .notice-banner {
    animation: fadeInUp 1.2s ease-out;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-40px) rotate(180deg); }
}

/* Medieval Elements */
.medieval-border {
    position: relative;
    border: 3px solid #d4af37;
    border-radius: 15px;
}

.medieval-border::before,
.medieval-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #d4af37;
    border-radius: 50%;
}

.medieval-border::before {
    top: -10px;
    left: -10px;
}

.medieval-border::after {
    bottom: -10px;
    right: -10px;
}