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

:root {
    --bg-primary: #080A0C;
    --bg-secondary: rgba(16, 20, 24, 0.6);
    --bg-glass: rgba(16, 20, 24, 0.45);
    --accent-primary: #2F9E6B;
    --accent-primary-hover: #38b87d;
    --accent-secondary: #C89C3D;
    --highlight: #E4C887;
    --text-primary: #F0F2F5;
    --text-secondary: #A0AAB5;
    
    --border-gold: 1px solid rgba(200, 156, 61, 0.3);
    --border-gold-light: 1px solid rgba(200, 156, 61, 0.5);
    --glow-emerald: 0 0 30px rgba(47, 158, 107, 0.25);
    --glow-emerald-strong: 0 0 50px rgba(47, 158, 107, 0.45);
    
    --container-width: 1400px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

*:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: url('assets/images/heroic-adventurer-crystal-fantasy-world-bg.jpg');
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 100px;
}

@media (max-width: 1024px) {
    .container { padding: 0 70px; }
}

@media (max-width: 768px) {
    .container { padding: 0 50px; }
}

/* Typography Utilities */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-secondary); }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 10, 12, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: var(--border-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 1.25rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--highlight);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 5px rgba(200, 156, 61, 0.4));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--highlight);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #1a6b47 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(47, 158, 107, 0.4);
    border: 1px solid var(--accent-secondary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-emerald-strong);
    background: linear-gradient(135deg, var(--accent-primary-hover) 0%, #1e7d53 100%);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--highlight);
    border: var(--border-gold);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(200, 156, 61, 0.1);
    box-shadow: 0 4px 15px rgba(200, 156, 61, 0.2);
    border-color: var(--accent-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 220px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(8, 10, 12, 0.6) 0%, rgba(8, 10, 12, 0) 40%, rgba(8, 10, 12, 0.3) 100%);
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.9), 0 0 15px rgba(47, 158, 107, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Game Section */
.game-section {
    padding: 120px 0;
    background: transparent;
    position: relative;
}

.game-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(47, 158, 107, 0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.game-container {
    position: relative;
    z-index: 1;
    width: 85%;
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(12, 15, 18, 0.55);
    border: var(--border-gold-light);
    box-shadow: var(--glow-emerald-strong), inset 0 0 25px rgba(200, 156, 61, 0.15);
    border-radius: 24px;
    padding: 15px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.game-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.game-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    display: block;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: rgba(8, 10, 12, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: var(--border-gold);
    border-bottom: var(--border-gold);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(20, 25, 30, 0.4), rgba(10, 12, 14, 0.6));
    border: var(--border-gold);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-emerald);
    background: linear-gradient(145deg, rgba(25, 30, 35, 0.5), rgba(15, 18, 22, 0.7));
    border-color: rgba(200, 156, 61, 0.6);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 158, 107, 0.15);
    border-radius: 50%;
    border: 1px solid var(--accent-secondary);
    box-shadow: inset 0 0 15px rgba(47, 158, 107, 0.3);
}

.feature-icon img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(200, 156, 61, 0.5));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Content Pages (Privacy, Terms) */
.page-header {
    padding: 180px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(8, 10, 12, 0.8) 0%, rgba(8, 10, 12, 0.3) 100%);
    border-bottom: var(--border-gold);
}

.page-header h1 {
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.content-section {
    padding: 80px 0;
    background: transparent;
}

.content-box {
    background: rgba(12, 15, 18, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--border-gold);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.content-box h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--highlight);
    border-bottom: 1px solid rgba(200, 156, 61, 0.2);
    padding-bottom: 0.5rem;
}

.content-box p, .content-box ul {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.content-box ul {
    padding-left: 1.5rem;
    list-style-type: square;
}

.content-box ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, rgba(8, 10, 12, 0.8), rgba(4, 5, 6, 0.98));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 80px 0 40px;
    border-top: var(--border-gold);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 400px;
}

.footer-brand .footer-address {
    margin-top: 1.25rem;
}

.footer-links h4 {
    color: var(--highlight);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--highlight);
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(200, 156, 61, 0.5);
}

.footer-disclaimer {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(200, 156, 61, 0.15);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.footer-disclaimer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-disclaimer .age-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 38px;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 1rem;
    box-shadow: 0 0 10px rgba(200, 156, 61, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(200, 156, 61, 0.15);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .game-container { width: 95%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero { padding: 180px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; }
    .nav-menu { display: none; }
    .game-section { padding: 80px 0; }
    .game-container { width: 100%; border-radius: 16px; padding: 10px; }
    .game-frame { border-radius: 12px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .content-box { padding: 2rem; }
}