/* 
==================================================
  CSS Variables & Theme Setup
================================================== 
*/
:root {
    --bg-main: #0f0f13;
    --bg-card: #1a1b20;
    --bg-card-hover: #22242a;
    
    --accent-primary: #6ee7b7;   /* Soft emerald glow */
    --accent-secondary: #a78bfa; /* Light purple */
    
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    
    --max-width: 1150px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* 
==================================================
  Reset & Base Styles
================================================== 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--text-light);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: 1px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* 
==================================================
  Buttons
================================================== 
*/
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(110, 231, 183, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 25px rgba(110, 231, 183, 0.5);
}

.btn-secondary {
    background-color: var(--accent-secondary);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.5);
}

.btn-nav {
    background-color: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 20px;
}

.btn-nav:hover {
    background-color: var(--accent-primary);
    color: var(--bg-main);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 
==================================================
  Header & Navigation
================================================== 
*/
.site-header {
    background-color: rgba(15, 15, 19, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: lowercase;
}

.brand a::after {
    content: '.';
    color: var(--accent-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 999;
    padding-top: 90px;
    transition: var(--transition);
    border-left: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
}

.mobile-nav a {
    font-size: 1.1rem;
    display: block;
}

/* 
==================================================
  Hero Section
================================================== 
*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
    background: radial-gradient(circle at center, rgba(34, 36, 42, 0.4) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Note: Ideally an image would be here. A dark stone texture fallback is created with CSS. */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(110, 231, 183, 0.05) 0%, transparent 60%),
        repeating-linear-gradient(45deg, rgba(26, 27, 32, 0.4) 0px, rgba(26, 27, 32, 0.4) 2px, transparent 2px, transparent 4px);
    z-index: 1;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, var(--text-light), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(110, 231, 183, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 
==================================================
  Game Section
================================================== 
*/
.game-section {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.game-wrapper {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 10px;
    border: 1px solid rgba(110, 231, 183, 0.15);
    box-shadow: 0 0 40px rgba(110, 231, 183, 0.08);
    height: 75vh;
    min-height: 600px;
    max-height: 900px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background-color: var(--bg-main);
}

/* 
==================================================
  Legal / Disclaimer Section
================================================== 
*/
.legal-section {
    padding: 40px 0;
    background-color: var(--bg-main);
}

.legal-box {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-secondary);
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-box h3 {
    color: var(--accent-secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.legal-list {
    color: var(--text-muted);
    padding-left: 20px;
}

.legal-list li {
    margin-bottom: 8px;
    position: relative;
}

.legal-list li::before {
    content: '•';
    color: var(--accent-secondary);
    position: absolute;
    left: -15px;
}

.legal-list strong {
    color: var(--text-light);
}

/* 
==================================================
  About Section
================================================== 
*/
.about-section {
    padding: 100px 0;
    background-color: #131418;
}

.about-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    z-index: 0;
    filter: blur(20px);
}

.about-image img {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: var(--bg-card);
    min-height: 300px;
    width: 100%;
    object-fit: cover;
}

/* 
==================================================
  Contact Section
================================================== 
*/
.contact-section {
    padding: 100px 0;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.02);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-main);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-light);
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.2);
}

/* 
==================================================
  Footer
================================================== 
*/
.site-footer {
    background-color: #0a0a0c;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-legal a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-primary);
}

.footer-legal .small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-legal strong {
    color: var(--text-light);
}

/* 
==================================================
  Legal Documents Page
================================================== 
*/
.page-content {
    background-color: var(--bg-main);
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.legal-document .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.legal-document > p:first-of-type {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-document h3 {
    color: var(--accent-primary);
    margin: 1.5rem 0 0.8rem;
    font-size: 1.2rem;
}

.legal-document p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 
==================================================
  Responsive Media Queries
================================================== 
*/
@media (max-width: 992px) {
    .about-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-title {
        font-size: 3rem;
    }

    .game-wrapper {
        height: 65vh;
        min-height: 450px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-wrapper {
        padding: 25px;
    }

    .legal-document {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}