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

:root {
    /* Brand Colors */
    --bg-dark: #0f0f14;
    --candy-orange: #ff9a00;
    --bubble-pink: #ff3d81;
    --toon-purple: #7b61ff;
    --sky-cyan: #00c2ff;
    --lime-pop: #a3ff12;
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);

    /* Gradients */
    --gradient-base: linear-gradient(135deg, var(--candy-orange), var(--bubble-pink), var(--toon-purple), var(--sky-cyan));
    --gradient-shift: linear-gradient(270deg, var(--candy-orange), var(--bubble-pink), var(--toon-purple), var(--sky-cyan));
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Layout */
    --sidebar-collapsed: 80px;
    --sidebar-expanded: 240px;

    /* Typography */
    --font-heading: 'Fredoka', cursive;
    --font-body: 'Inter', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Animations */
@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(255, 61, 129, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 61, 129, 0.8); }
    100% { box-shadow: 0 0 10px rgba(255, 61, 129, 0.5); }
}

@keyframes bounceScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Layout System */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-collapsed);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.sidebar:hover, .sidebar.expanded {
    width: var(--sidebar-expanded);
}

.logo-container {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-base);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bounceScale 3s infinite;
}

.nav-menu {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 0 10px;
}

.nav-item.active {
    box-shadow: inset 4px 0 0 var(--lime-pop);
}

.nav-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.nav-text {
    opacity: 0;
    margin-left: 10px;
    transition: opacity 0.3s ease;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.sidebar:hover .nav-text, .sidebar.expanded .nav-text {
    opacity: 1;
}

.sidebar-bottom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mascot-icon {
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-base);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1001;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--glass-shadow);
    cursor: pointer;
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-collapsed);
    transition: margin-left 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Typography & General Classes */
.text-gradient {
    background: var(--gradient-base);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: bgShift 5s ease infinite;
}

.title-xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.title-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.title-md {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 15px;
}

.text-body {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-base);
    color: var(--white);
    background-size: 200% 200%;
    box-shadow: 0 10px 20px rgba(255, 61, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    animation: bgShift 3s ease infinite;
    box-shadow: 0 15px 30px rgba(255, 61, 129, 0.5);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('images/photo-1518544801976-3e159e50e5bb.png') center/cover no-repeat;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15,15,20,0.8) 0%, rgba(15,15,20,1) 100%);
}

.hero-disclaimer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 61, 129, 0.2);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid var(--bubble-pink);
    z-index: 10;
}

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

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
}

.p1 { top: 20%; left: 10%; animation-delay: 0s; }
.p2 { top: 60%; left: 80%; animation-delay: 1s; font-size: 3rem; }
.p3 { top: 80%; left: 20%; animation-delay: 2s; }
.p4 { top: 30%; left: 70%; animation-delay: 1.5s; font-size: 2.5rem; }

/* Sections Common */
.section-padding {
    padding: 100px 5%;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Featured Game Section */
.featured-game {
    position: relative;
}

.game-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.game-image-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 194, 255, 0.2);
}

.game-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.game-image-container:hover img {
    transform: scale(1.1);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient-base);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--glass-shadow);
}

/* Iframe Game Container */
.game-player-section {
    padding: 120px 5% 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iframe-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(123, 97, 255, 0.4);
    border: 2px solid var(--toon-purple);
    background: #000;
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--sky-cyan);
    background: rgba(255,255,255,0.1);
}

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

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--candy-orange);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 60px 5% 30px;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

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

.footer-col h4 {
    color: var(--sky-cyan);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--lime-pop);
}

.global-disclaimer {
    background: rgba(255, 61, 129, 0.1);
    border: 1px solid rgba(255, 61, 129, 0.3);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .game-showcase-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        width: var(--sidebar-expanded);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-disclaimer {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .title-xl {
        font-size: 2.5rem;
    }
}

/* Confetti Effect Class */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--candy-orange);
    border-radius: 50%;
    pointer-events: none;
    animation: fall 1s linear forwards;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100px) rotate(360deg); opacity: 0; }
}

/* Play Responsibly Specific */
.responsibility-content {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--bubble-pink);
    box-shadow: 0 0 30px rgba(255, 61, 129, 0.1);
}

.strict-disclaimer {
    font-size: 1.3rem;
    color: var(--white);
    text-align: center;
    font-weight: 600;
    padding: 30px;
    background: rgba(255, 61, 129, 0.2);
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px dashed var(--bubble-pink);
}

/* Legal Pages */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-container h2 {
    color: var(--candy-orange);
    margin: 30px 0 15px;
}