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

:root {
    /* Color System */
    --bg-base: #0a0a0d;
    --bg-mid: #15151c;
    --bg-light: #1e1e28;
    
    --accent-blue: #00f3ff;
    --accent-magenta: #ff00ff;
    --accent-violet: #8a2be2;
    --accent-gold: #ffd700;
    
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --text-dark: #000000;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --max-width: 1400px;
    --game-width: 1300px;
    --py-desk: 100px;
    --py-tab: 70px;
    --py-mob: 50px;
    --px-desk: 40px;
    --px-mob: 20px;

    /* Effects */
    --glass-bg: rgba(21, 21, 28, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow-blue: 0 0 30px rgba(0, 243, 255, 0.3);
    --shadow-glow-magenta: 0 0 30px rgba(255, 0, 255, 0.3);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: radial-gradient(circle at top center, var(--bg-mid), var(--bg-base));
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Global Ambient Lighting */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.05), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 243, 255, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: ambientShift 15s infinite alternate;
}

@keyframes ambientShift {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px-desk);
    position: relative;
    z-index: 2;
}

section {
    padding: var(--py-desk) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 18px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-magenta));
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-blue));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.5);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 150%; }

/* Header / Control Bar */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-magenta), transparent);
    opacity: 0.5;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--px-desk);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 50%;
    width: 0; height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-blue);
}

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

/* Mobile Menu Checkbox Hack */
#menu-toggle { display: none; }
.menu-btn { display: none; cursor: pointer; color: white; font-size: 1.5rem; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Deep Background Layer */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    background-color: var(--bg-base);
}

.hero-bg-image {
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    background-image: url('images/photo-1596838132731-3301c3fd4317-hero-hero-bg-image.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.3) saturate(1.5);
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

@keyframes subtleZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Hero Lighting Effects */
.hero-lights {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 255, 0.15) 0%, transparent 40%);
    mix-blend-mode: screen;
}

.hero-lights::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 0%, var(--bg-base) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-title {
    text-shadow: 0 0 40px rgba(255,255,255,0.2);
    animation: titlePulse 4s infinite alternate;
}

.hero-title span {
    display: block;
    background: linear-gradient(to bottom, #ffffff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes titlePulse {
    0% { text-shadow: 0 0 30px rgba(0, 243, 255, 0.2); }
    100% { text-shadow: 0 0 50px rgba(255, 0, 255, 0.4); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Legal Badges */
.legal-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.badge {
    padding: 6px 16px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

/* Game Section */
.game-section {
    position: relative;
    background: linear-gradient(to bottom, var(--bg-base), var(--bg-light), var(--bg-base));
}

.game-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.game-frame {
    width: 100%;
    max-width: var(--game-width);
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 20px;
    position: relative;
    padding: 10px;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 0 20px rgba(0, 243, 255, 0.1),
        0 0 60px rgba(138, 43, 226, 0.15);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.game-frame::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--accent-blue), transparent 40%, transparent 60%, var(--accent-magenta));
    z-index: -1;
    border-radius: 22px;
    opacity: 0.5;
    animation: frameGlow 5s linear infinite;
}

@keyframes frameGlow {
    0% { filter: hue-rotate(0deg); opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { filter: hue-rotate(360deg); opacity: 0.5; }
}

.game-frame:hover {
    transform: scale(1.01);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.9),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 30px rgba(0, 243, 255, 0.2),
        0 0 80px rgba(138, 43, 226, 0.3);
}

.game-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #2a2a35, #15151c);
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #000;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.game-screen {
    flex: 1;
    background-image: url('images/photo-1605806616949-1e87b487cb2a-game-screen-game-screen.png');
    background-size: cover;
    background-position: center;
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-screen::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.game-play-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Info Cards (Responsible Gaming, About) */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card:hover::before { opacity: 1; }

.card h3 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* Legal & Trust Section */
.legal-section {
    background: var(--bg-base);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.legal-item {
    padding: 20px;
}

.legal-item h4 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

/* Standard Content Pages (Privacy, Terms) */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-mid), var(--bg-base));
    border-bottom: 1px solid var(--glass-border);
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-content h2 { margin: 30px 0 15px; font-size: 1.8rem; color: var(--accent-blue); }
.page-content p { margin-bottom: 20px; color: var(--text-muted); }
.page-content ul { margin-bottom: 20px; padding-left: 20px; color: var(--text-muted); list-style-type: disc; }

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-group textarea { resize: vertical; min-height: 150px; }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.1);
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 { color: var(--text-main); margin-bottom: 20px; }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition-smooth); }
.footer-links a:hover { color: var(--accent-blue); padding-left: 5px; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    section { padding: var(--py-tab) 0; }
}

@media (max-width: 768px) {
    section { padding: var(--py-mob) 0; }
    
    .menu-btn { display: block; }
    
    .nav-links {
        position: fixed;
        top: 80px; left: 0;
        width: 100%; height: 0;
        background: var(--bg-mid);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: height 0.4s ease;
        border-bottom: 1px solid var(--glass-border);
    }

    #menu-toggle:checked ~ .nav-links {
        height: calc(100vh - 80px);
    }
    
    .nav-actions { display: none; } /* Hide CTA in mobile header for clean layout */

    .hero-content { padding-top: 40px; }
    .page-content { padding: 30px 20px; }
}