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

:root {
    --deep-ocean: #071421;
    --ocean-blue: #0E2B47;
    --crystal-water: #133A5A;
    --aqua-glow: #2ED3FF;
    --coral-cyan: #5CF4FF;
    --pearl-gold: #E7C56A;
    --seafoam: #8BF6E5;
    --primary-text: #F7FBFF;
    --secondary-text: #D1E5F3;
    --muted-text: #8AA8BE;
    
    --glass-bg: rgba(14, 43, 71, 0.4);
    --glass-border: rgba(46, 211, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(7, 20, 33, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-text);
    background: linear-gradient(180deg, var(--crystal-water) 0%, var(--ocean-blue) 40%, var(--deep-ocean) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Continuous Underwater Particles */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at center, rgba(46, 211, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: drift 60s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, var(--primary-text), var(--aqua-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: var(--coral-cyan);
}

p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* 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: 20px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--aqua-glow), var(--coral-cyan));
    color: var(--deep-ocean);
    box-shadow: 0 4px 15px rgba(46, 211, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(92, 244, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--aqua-glow);
    border: 2px solid var(--aqua-glow);
}

.btn-secondary:hover {
    background: rgba(46, 211, 255, 0.1);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 50px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text);
    text-shadow: 0 0 10px rgba(46, 211, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-text);
}

.nav-links a:hover {
    color: var(--aqua-glow);
    text-shadow: 0 0 8px rgba(46, 211, 255, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Account for fixed header */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .btn-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-artwork {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-artwork img {
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(46, 211, 255, 0.2);
    border: 1px solid var(--glass-border);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* Game Section */
.game-section {
    position: relative;
    z-index: 10;
}

.game-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.game-container {
    width: 75%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(7, 20, 33, 0.8), 0 0 30px rgba(46, 211, 255, 0.2);
    border: 2px solid var(--glass-border);
    background: var(--deep-ocean);
}

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

/* Rewards Section */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.reward-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease;
}

.reward-card:hover {
    transform: translateY(-10px);
    border-color: rgba(92, 244, 255, 0.4);
    box-shadow: 0 15px 40px rgba(7, 20, 33, 0.8);
}

.reward-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46,211,255,0.1), rgba(92,244,255,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.reward-icon-wrapper img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.reward-card h3 {
    color: var(--pearl-gold);
    font-size: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(90deg, rgba(14,43,71,0) 0%, rgba(14,43,71,0.6) 50%, rgba(14,43,71,0) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--seafoam);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(139, 246, 229, 0.3);
}

.stat-item p {
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin: 0;
}

/* About Teaser */
.about-teaser {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 4rem auto 0;
}

details {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    background: rgba(14, 43, 71, 0.6);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

summary:hover {
    background: rgba(19, 58, 90, 0.8);
}

summary::after {
    content: '+';
    color: var(--aqua-glow);
    font-size: 1.5rem;
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid transparent;
}

details[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 1.5rem;
    background: rgba(7, 20, 33, 0.6);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: rgba(7, 20, 33, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--primary-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--aqua-glow);
    box-shadow: 0 0 10px rgba(46, 211, 255, 0.2);
}

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

/* Page Headers (Legal/About Pages) */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(19, 58, 90, 0.5), transparent);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

.page-content h3 {
    color: var(--aqua-glow);
    margin-top: 2rem;
}

.page-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-text);
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    position: relative;
    background: var(--deep-ocean);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(46, 211, 255, 0.1);
    box-shadow: 0 -20px 50px rgba(7, 20, 33, 0.9);
}

/* Footer glowing coral aesthetics overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to bottom, rgba(46, 211, 255, 0.05), transparent);
    pointer-events: none;
}

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

.footer-brand h3 {
    font-size: 2rem;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--seafoam);
    margin-bottom: 1.5rem;
}

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

.footer-links ul a:hover {
    color: var(--aqua-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--muted-text);
}

.support-email {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(14, 43, 71, 0.5);
    border-radius: 8px;
    display: inline-block;
    border: 1px solid var(--glass-border);
    color: var(--coral-cyan);
    font-weight: 500;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9999;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 0.5rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-container { width: 90%; }
    .hero-content { gap: 2rem; }
    h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-links .btn-primary { display: none; }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text .btn-group {
        justify-content: center;
    }
    .hero-artwork {
        order: -1;
    }
    
    .game-container { width: 100%; }
    
    .rewards-grid, .stats-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid { text-align: center; }
}