@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&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%, #4a2c2c 50%, #6b3e3e 75%, #8b4513 100%);
    color: #f5f5dc;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Royal background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M50 50c0-13.8-11.2-25-25-25s-25 11.2-25 25 11.2 25 25 25 25-11.2 25-25zm-25-23c12.7 0 23 10.3 23 23s-10.3 23-23 23S2 62.7 2 50s10.3-23 23-23z'/%3E%3C/g%3E%3C/svg%3E");
    animation: royalGlow 12s ease-in-out infinite;
    z-index: -1;
}

@keyframes royalGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Header */
.header {
    background: linear-gradient(135deg, #8b4513, #a0522d, #cd853f);
    border-bottom: 4px solid #ffd700;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px #ffd700, 0 0 40px #ffd700;
    text-decoration: none;
    letter-spacing: 4px;
    position: relative;
    animation: royalPulse 4s ease-in-out infinite;
}

@keyframes royalPulse {
    0%, 100% { 
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 20px #ffd700, 0 0 40px #ffd700;
        transform: scale(1);
    }
    50% { 
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 30px #ffd700, 0 0 60px #ffd700, 0 0 80px #ffd700;
        transform: scale(1.02);
    }
}

.logo::after {
    content: '👑';
    position: absolute;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: crownSparkle 3s ease-in-out infinite;
}

@keyframes crownSparkle {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateY(-50%) scale(1.1); }
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-line {
    width: 35px;
    height: 4px;
    background: #ffd700;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 15px #ffd700;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 10px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -10px);
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    color: #f5f5dc;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.nav a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    text-align: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(160, 82, 45, 0.7));
    border-radius: 30px;
    margin-bottom: 3rem;
    border: 4px solid #ffd700;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    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%),
        radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    animation: royalRotate 20s linear infinite;
    z-index: -1;
}

@keyframes royalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.8), 0 0 30px #ffd700, 0 0 60px #ffd700;
    margin-bottom: 2rem;
    letter-spacing: 6px;
    position: relative;
    animation: titleMajesty 5s ease-in-out infinite;
}

@keyframes titleMajesty {
    0%, 100% { transform: scale(1); text-shadow: 4px 4px 8px rgba(0,0,0,0.8), 0 0 30px #ffd700, 0 0 60px #ffd700; }
    50% { transform: scale(1.03); text-shadow: 4px 4px 8px rgba(0,0,0,0.8), 0 0 40px #ffd700, 0 0 80px #ffd700, 0 0 120px #ffd700; }
}

.hero-title::before {
    content: '👑';
    position: absolute;
    left: -140px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    animation: crownFloat 4s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
    50% { transform: translateY(-50%) translateX(20px); opacity: 0.8; }
}

.hero-title::after {
    content: '💎';
    position: absolute;
    right: -140px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    animation: diamondSparkle 3s ease-in-out infinite;
}

@keyframes diamondSparkle {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.2); opacity: 0.7; }
}

.hero-subtitle {
    font-size: 1.6rem;
    color: #f5f5dc;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-style: italic;
}

.notice-banner {
    background: linear-gradient(45deg, #dc143c, #ff6347);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
    border: 3px solid #dc143c;
    font-size: 1.3rem;
    animation: bannerMajesty 3s ease-in-out infinite;
}

@keyframes bannerMajesty {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 15px 40px rgba(220, 20, 60, 0.6); }
}

.game-container {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(160, 82, 45, 0.7));
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    border: 5px solid #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
    position: relative;
}

.game-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
    border-radius: 30px;
    z-index: -1;
    animation: borderMajesty 5s ease-in-out infinite;
}

@keyframes borderMajesty {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.game-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 25px #ffd700;
    animation: gameTitleMajesty 3s ease-in-out infinite alternate;
}

@keyframes gameTitleMajesty {
    0% { text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 25px #ffd700; }
    100% { text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 35px #ffd700, 0 0 50px #ffd700; }
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 20px;
    background: #000;
    box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin: 4rem 0;
}

.feature-card {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(160, 82, 45, 0.6));
    padding: 3rem;
    border-radius: 25px;
    border: 4px solid #ffd700;
    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.3), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: #ffed4e;
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4);
}

.feature-icon {
    font-size: 5.5rem;
    color: #ffd700;
    margin-bottom: 2rem;
    text-shadow: 0 0 25px #ffd700;
    animation: iconMajesty 4s ease-in-out infinite;
}

@keyframes iconMajesty {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #f5f5dc;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.feature-description {
    color: #e6d3a3;
    line-height: 1.8;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8b4513, #a0522d, #cd853f);
    border-top: 4px solid #ffd700;
    padding: 3rem 0;
    margin-top: 4rem;
    box-shadow: 0 -6px 25px rgba(255, 215, 0, 0.4);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #f5f5dc;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: #ffd700;
    border-color: #ffd700;
    text-shadow: 0 0 15px #ffd700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.footer-text {
    color: #e6d3a3;
    font-size: 1.1rem;
    font-weight: 400;
    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(10px);
}

.age-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(160, 82, 45, 0.8));
    padding: 4rem;
    border-radius: 30px;
    border: 5px solid #ffd700;
    text-align: center;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(255, 215, 0, 0.5);
}

.age-modal h2 {
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 0 0 25px #ffd700;
}

.age-modal p {
    color: #f5f5dc;
    margin-bottom: 3rem;
    line-height: 1.8;
    font-size: 1.2rem;
}

.age-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.age-btn {
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 15px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    border: 4px 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 10px 30px rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 10px #fff;
}

.age-btn.no {
    background: linear-gradient(45deg, #dc143c, #ff6347);
    color: #fff;
    border-color: #dc143c;
}

.age-btn.no:hover {
    background: linear-gradient(45deg, #ff6347, #dc143c);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 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: 2rem;
        border-top: 4px solid #ffd700;
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    }
    
    .nav.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .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: 3rem;
        margin: 1rem;
    }
    
    .age-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .game-frame {
        height: 300px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
}