@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Uncial+Antiqua&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(180deg, #1a0f0a 0%, #2d1b13 50%, #1a0f0a 100%);
    color: #f4e4d6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(139, 69, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(160, 82, 45, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(205, 133, 63, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Animated runes background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 25px 35px, rgba(205, 133, 63, 0.3), transparent),
        radial-gradient(2px 2px at 60px 80px, rgba(160, 82, 45, 0.4), transparent),
        radial-gradient(2px 2px at 120px 45px, rgba(139, 69, 19, 0.3), transparent),
        radial-gradient(3px 3px at 180px 70px, rgba(205, 133, 63, 0.2), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    animation: runeGlow 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes runeGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2d1b13 0%, #3d2818 50%, #2d1b13 100%);
    border-bottom: 4px solid #cd853f;
    box-shadow: 0 4px 35px rgba(205, 133, 63, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 3.5rem;
    color: #cd853f;
    text-shadow: 0 0 35px rgba(205, 133, 63, 0.8);
    text-decoration: none;
    transition: all 0.6s ease;
    position: relative;
}

.logo::after {
    content: '⚔️';
    position: absolute;
    right: -45px;
    top: -8px;
    font-size: 2rem;
    animation: swordSwing 4s ease-in-out infinite;
}

@keyframes swordSwing {
    0%, 100% { transform: rotate(0deg) translateY(0px); }
    25% { transform: rotate(10deg) translateY(-5px); }
    75% { transform: rotate(-10deg) translateY(5px); }
}

.logo:hover {
    text-shadow: 0 0 45px rgba(205, 133, 63, 1);
    transform: scale(1.12);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 32px;
    height: 4px;
    background: #cd853f;
    margin: 5px 0;
    transition: 0.5s;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(205, 133, 63, 0.7);
}

.hamburger.active:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 9px);
}

.hamburger.active:nth-child(2) {
    opacity: 0;
}

.hamburger.active:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -9px);
}

.nav {
    display: flex;
    list-style: none;
    gap: 3.5rem;
}

.nav a {
    color: #f4e4d6;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.6s ease;
    position: relative;
    padding: 1rem 2rem;
    border-radius: 12px;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #cd853f, #daa520);
    border-radius: 12px;
    transition: width 0.6s ease;
    z-index: -1;
}

.nav a:hover::before {
    width: 100%;
}

.nav a:hover {
    color: #2d1b13;
    text-shadow: 0 0 25px rgba(205, 133, 63, 0.9);
    transform: translateY(-4px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 7rem 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.2) 0%, rgba(205, 133, 63, 0.2) 100%);
    border-radius: 35px;
    margin-bottom: 5rem;
    border: 4px solid rgba(205, 133, 63, 0.6);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 133, 63, 0.2) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-family: 'Uncial Antiqua', cursive;
    font-size: 5rem;
    color: #cd853f;
    text-shadow: 0 0 60px rgba(205, 133, 63, 1);
    margin-bottom: 2.5rem;
    animation: pulse 5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { 
        text-shadow: 0 0 60px rgba(205, 133, 63, 1);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 80px rgba(205, 133, 63, 1), 0 0 100px rgba(205, 133, 63, 0.8);
        transform: scale(1.04);
    }
}

.hero p {
    font-size: 1.5rem;
    color: #e6d3c1;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

/* Game Container */
.game-container {
    background: linear-gradient(135deg, #2d1b13 0%, #3d2818 100%);
    border-radius: 30px;
    padding: 4rem;
    margin: 4rem 0;
    border: 5px solid #cd853f;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #cd853f, #daa520, #cd853f);
    border-radius: 30px;
    z-index: -1;
    animation: borderGlow 5s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.game-container h2 {
    color: #cd853f;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    text-shadow: 0 0 30px rgba(205, 133, 63, 0.8);
}

.game-frame {
    width: 100%;
    height: 750px;
    border: none;
    border-radius: 25px;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* Notices */
.notices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin: 6rem 0;
}

.notice {
    background: linear-gradient(135deg, #2d1b13 0%, #3d2818 100%);
    padding: 4rem;
    border-radius: 30px;
    border-left: 10px solid #cd853f;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.1) 0%, rgba(218, 165, 32, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.notice:hover::before {
    opacity: 1;
}

.notice:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(205, 133, 63, 0.4);
}

.notice h3 {
    color: #cd853f;
    margin-bottom: 2.5rem;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

.notice p {
    color: #e6d3c1;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a0f0a 0%, #2d1b13 100%);
    border-top: 5px solid #cd853f;
    padding: 5rem 0;
    margin-top: 8rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #cd853f 50%, transparent 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e6d3c1;
    text-decoration: none;
    transition: all 0.5s ease;
    padding: 1rem 2rem;
    border-radius: 12px;
}

.footer-links a:hover {
    color: #cd853f;
    background: rgba(205, 133, 63, 0.2);
    text-shadow: 0 0 20px rgba(205, 133, 63, 0.8);
}

.footer p {
    color: #b8a082;
    font-size: 1.1rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 15, 10, 0.95);
    backdrop-filter: blur(25px);
}

.age-modal-content {
    background: linear-gradient(135deg, #2d1b13 0%, #3d2818 100%);
    margin: 15% auto;
    padding: 6rem;
    border: 5px solid #cd853f;
    border-radius: 35px;
    width: 90%;
    max-width: 650px;
    text-align: center;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(205, 133, 63, 0.2) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

.age-modal h2 {
    color: #cd853f;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    text-shadow: 0 0 35px rgba(205, 133, 63, 0.8);
    position: relative;
    z-index: 1;
}

.age-modal p {
    color: #f4e4d6;
    margin-bottom: 4rem;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.age-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.age-btn {
    padding: 2rem 4rem;
    border: none;
    border-radius: 18px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.6s ease;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    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.3), transparent);
    transition: left 0.7s ease;
}

.age-btn:hover::before {
    left: 100%;
}

.age-btn.yes {
    background: linear-gradient(135deg, #cd853f, #daa520);
    color: #2d1b13;
    box-shadow: 0 10px 30px rgba(205, 133, 63, 0.6);
}

.age-btn.yes:hover {
    background: linear-gradient(135deg, #daa520, #cd853f);
    transform: scale(1.12);
    box-shadow: 0 15px 40px rgba(205, 133, 63, 0.8);
}

.age-btn.no {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.age-btn.no:hover {
    background: linear-gradient(135deg, #888, #666);
    transform: scale(1.12);
}

/* 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, #2d1b13 0%, #3d2818 100%);
        flex-direction: column;
        padding: 2.5rem;
        border-top: 5px solid #cd853f;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav li {
        margin: 1.2rem 0;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .game-frame {
        height: 550px;
    }
    
    .notices {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .age-modal-content {
        margin: 20% auto;
        padding: 4rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 3rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .game-frame {
        height: 450px;
    }
}