/* Velthra - Mystical Ethereal Gaming Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8b5cf6;
    --secondary-purple: #a78bfa;
    --deep-purple: #6d28d9;
    --mystic-blue: #3b82f6;
    --ethereal-pink: #ec4899;
    --mystical-gold: #f59e0b;
    --dark-void: #0f0f23;
    --medium-void: #1a1a2e;
    --light-void: #16213e;
    --text-ethereal: #e0e7ff;
    --text-mystic: #c7d2fe;
    --text-dark: #1e1b4b;
    --accent-cyan: #06b6d4;
    --warning-amber: #fbbf24;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--dark-void) 0%, var(--medium-void) 50%, var(--light-void) 100%);
    color: var(--text-ethereal);
    line-height: 1.6;
    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 25% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: mysticalGlow 8s ease-in-out infinite alternate;
}

@keyframes mysticalGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, var(--dark-void) 0%, var(--medium-void) 50%, var(--dark-void) 100%);
    border-bottom: 2px solid var(--primary-purple);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-purple);
    text-shadow: 
        0 0 15px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 45px rgba(139, 92, 246, 0.2);
    letter-spacing: 3px;
    position: relative;
}

.logo h1::before {
    content: '✨';
    margin-right: 10px;
    animation: etherealPulse 3s ease-in-out infinite alternate;
}

.logo h1::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: linear-gradient(45deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    border-radius: 10px;
    z-index: -1;
    animation: etherealAura 4s ease-in-out infinite;
}

@keyframes etherealPulse {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.2); filter: brightness(1.5); }
}

@keyframes etherealAura {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-ethereal);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 25px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    border-color: var(--mystic-blue);
    box-shadow: 
        0 0 20px rgba(139, 92, 246, 0.5),
        0 0 40px rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(236, 72, 153, 0.1) 100%);
    border-radius: 30px;
    margin-bottom: 50px;
    border: 2px solid var(--primary-purple);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: mysticalRotate 20s linear infinite;
    z-index: -1;
}

@keyframes mysticalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-purple);
    margin-bottom: 25px;
    text-shadow: 
        0 0 30px rgba(139, 92, 246, 0.8),
        0 0 60px rgba(139, 92, 246, 0.6);
    animation: titleMystical 4s ease-in-out infinite alternate;
    background: linear-gradient(45deg, var(--primary-purple), var(--mystic-blue), var(--ethereal-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleMystical {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-mystic);
    margin-bottom: 30px;
    font-weight: 300;
}

.notice-banner {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--primary-purple) 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid var(--mystical-gold);
    box-shadow: 
        0 10px 25px rgba(139, 92, 246, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    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: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.notice-banner h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--mystical-gold);
}

.notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.notice-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.notice-item:hover {
    transform: translateY(-5px);
}

/* Game Section */
.game-section {
    background: var(--medium-void);
    border: 3px solid var(--primary-purple);
    border-radius: 25px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    position: relative;
}

.game-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-purple), var(--mystic-blue), var(--ethereal-pink), var(--primary-purple));
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.game-title {
    font-size: 2.5rem;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.game-container {
    background: #000;
    border: 2px solid var(--secondary-purple);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    background: #000;
}

/* Footer */
.footer {
    background: var(--dark-void);
    border-top: 2px solid var(--primary-purple);
    padding: 40px 0;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-mystic);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--medium-void);
    color: var(--text-mystic);
}

/* Age Verification Popup */
.age-verification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-verification-content {
    background: linear-gradient(135deg, var(--dark-void) 0%, var(--medium-void) 100%);
    border: 3px solid var(--primary-purple);
    border-radius: 25px;
    padding: 50px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.age-verification-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: mysticalRotate 15s linear infinite;
    z-index: -1;
}

.age-verification-header h2 {
    color: var(--primary-purple);
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
}

.age-verification-body {
    margin: 30px 0;
}

.age-verification-body p {
    margin-bottom: 20px;
    color: var(--text-ethereal);
    font-size: 1.1rem;
}

.age-verification-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--secondary-purple) 100%);
    color: var(--text-dark);
    box-shadow: 
        0 8px 25px rgba(139, 92, 246, 0.4),
        0 0 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(139, 92, 246, 0.6),
        0 0 30px rgba(139, 92, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-ethereal);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .age-verification-actions {
        flex-direction: column;
    }
    
    .notice-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile hamburger */
.nav-toggle{display:none}
.hamburger{display:none;cursor:pointer;margin-left:12px}
.hamburger span{display:block;width:24px;height:2px;background:#fff;margin:6px 0;transition:transform .2s ease,opacity .2s ease}
@media (max-width: 900px){
  .nav{position:relative}
  .nav-list{display:none;flex-direction:column;background:rgba(0,0,0,.6);border:2px solid var(--primary-purple,#8b5cf6);border-radius:14px;padding:12px;position:absolute;left:20px;right:20px;top:70px}
  .hamburger{display:block}
  .nav-toggle:checked ~ .hamburger span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .nav-toggle:checked ~ .hamburger span:nth-child(2){opacity:0}
  .nav-toggle:checked ~ .hamburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .nav-toggle:checked ~ .nav .nav-list{display:flex}
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .game-frame {
        height: 400px;
    }
}