@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0c0f1a;
    --surface-dark: #151a2e;
    --crystal-blue: #4cc9f0;
    --royal-gold: #d4af37;
    --mystic-purple: #7b2cbf;
    --silver-glow: #c0c7d1;
    --emerald-accent: #2ecc71;
    --glass-bg: rgba(21, 26, 46, 0.6);
    --glass-border: rgba(212, 175, 55, 0.3);
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--silver-glow);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--royal-gold);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--crystal-blue);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--royal-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism System */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: linear-gradient(145deg, rgba(21, 26, 46, 0.8), rgba(12, 15, 26, 0.9));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(212, 175, 55, 0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
}

.glass-card:hover::before {
    left: 200%;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--royal-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    padding: 10px 0;
    background: rgba(12, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--royal-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--silver-glow);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--royal-gold);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--royal-gold);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/photo-1518709268805-4e9042af9f23.png'); /* Fantasy Forest/Castle Vibe */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 100px;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12, 15, 26, 0.7), rgba(12, 15, 26, 0.95));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 50px;
}

.hero-disclaimer {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--royal-gold);
    color: var(--royal-gold);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--silver-glow);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--royal-gold), #b89326);
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    border: 1px solid #fff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
    color: var(--bg-dark);
    text-shadow: none;
}

/* Particles */
#particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--royal-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--royal-gold), 0 0 20px var(--crystal-blue);
    animation: float-up infinite linear;
    opacity: 0;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--royal-gold);
    margin: 20px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--royal-gold);
}

/* Game Card */
.game-featured {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.game-image-wrap {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.game-image-wrap img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.4);
    border: 2px solid var(--mystic-purple);
    transition: transform 0.5s ease;
}

.game-image-wrap:hover img {
    transform: scale(1.02);
}

.game-info {
    flex: 1;
    min-width: 300px;
}

.game-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
}

.game-info p {
    margin-bottom: 20px;
    font-size: 18px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(46, 204, 113, 0.1);
    color: var(--emerald-accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid var(--emerald-accent);
}

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.icon-box {
    text-align: center;
}

.icon-box i {
    font-size: 40px;
    color: var(--crystal-blue);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--crystal-blue);
}

.icon-box h4 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* Iframe Container */
.game-frame-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--royal-gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    background: #000;
}

.game-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--royal-gold);
    font-family: var(--font-heading);
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(12, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--silver-glow);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--crystal-blue);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
}

/* Legal Pages */
.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 10px;
}

/* Utilities */
.text-center {
    text-align: center !important;
}

/* Footer */
footer {
    background: #080a12;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #999;
}

.footer-disclaimer {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--royal-gold);
    margin-bottom: 30px;
    font-size: 13px;
    color: #aaa;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #777;
}

.age-res {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 2px solid var(--royal-gold);
    border-radius: 50%;
    color: var(--royal-gold);
    font-weight: bold;
    font-size: 12px;
    margin-right: 10px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header (Inner pages) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(12, 15, 26, 0.9), var(--bg-dark)), url('images/photo-1534447677768-be436bb09401.png') center/cover no-repeat;
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(12, 15, 26, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-disclaimer {
        font-size: 10px;
    }
}