@import url('https://fonts.googleapis.com/css2?family=Dragon+Quest:wght@400;700&family=Medieval+Sharp:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Medieval Sharp', cursive;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f4e4bc;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, #8B0000 0%, #DC143C 50%, #8B0000 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.3);
    position: relative;
    z-index: 1000;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,10 Q25,0 50,10 T100,10" stroke="rgba(255,215,0,0.3)" stroke-width="2" fill="none"/></svg>') repeat-x;
    animation: dragonBreath 3s ease-in-out infinite;
}

@keyframes dragonBreath {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-family: 'Dragon Quest', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 3px 3px 0px #8B0000, 6px 6px 0px rgba(0,0,0,0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 4px 4px 0px #8B0000, 8px 8px 0px rgba(0,0,0,0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #FFD700;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #f4e4bc;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.3), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: #FFD700;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .logo {
        font-size: 2rem;
    }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.1) 0%, transparent 70%);
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '🐉';
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 8rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-title {
    font-family: 'Dragon Quest', cursive;
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px #8B0000, 8px 8px 0px rgba(0,0,0,0.3);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 4px 4px 0px #8B0000, 8px 8px 0px rgba(0,0,0,0.3); }
    to { text-shadow: 4px 4px 0px #8B0000, 8px 8px 0px rgba(0,0,0,0.3), 0 0 20px #FFD700; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #f4e4bc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.notice-banner {
    background: linear-gradient(45deg, #8B0000, #DC143C);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.notice-banner h3 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.notice-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.notice-list li {
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #FFD700;
    font-weight: 700;
}

/* Game Container */
.game-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 3px solid #FFD700;
    box-shadow: 0 0 30px rgba(255,215,0,0.2);
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.game-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 600px;
    border: 2px solid #8B0000;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #FFD700;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #f4e4bc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #FFD700;
    border-color: #FFD700;
    background: rgba(255,215,0,0.1);
}

.footer p {
    color: #888;
    font-size: 0.9rem;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, #8B0000 0%, #DC143C 100%);
    margin: 15% auto;
    padding: 2rem;
    border: 3px solid #FFD700;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255,215,0,0.5);
    animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.8) translateY(-50px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.age-modal h2 {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Dragon Quest', cursive;
}

.age-modal p {
    color: #f4e4bc;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.age-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Medieval Sharp', cursive;
    min-width: 120px;
}

.age-btn.yes {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.age-btn.no {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.age-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .notice-list {
        grid-template-columns: 1fr;
    }
    
    .game-frame {
        height: 400px;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
    }
    
    .age-modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
    
    .age-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .game-frame {
        height: 300px;
    }
}