/* --- GLOBAL VARIABLES --- */
:root {
    --primary: #bb86fc;
    --bg-dark: #050508;
    --text-main: #ffffff;
    --text-muted: #b0b0c0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND CANVAS --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: 'Wendy One', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 1px;
    text-decoration: none;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f1c40f, #9b59b6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-move 5s linear infinite;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: bold;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

.nav-links a:hover {
    transform: scale(1.2);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* --- HERO & HOME SECTIONS --- */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 50px 20px;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    min-height: 1.2em;
}

.highlight { font-weight: 800; }

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #fff;
    margin-left: 5px;
    vertical-align: text-bottom;
    animation: blink 0.7s infinite;
}

.fade-element {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.fade-element.visible { opacity: 1; }

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    border: 3px solid transparent;
    border-radius: 50px;
    background: 
        linear-gradient(#050508, #050508) padding-box, 
        linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f1c40f, #9b59b6) border-box; 
    background-size: 200% auto;
    animation: rainbow-move 5s linear infinite;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* --- GAMES SECTION --- */
.section { padding: 120px 10%; }

.game-banner {
    background: #111;
    border-radius: 30px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.device-frame {
    flex: 0 0 32%;
    position: relative;
    background: #222;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transform: rotate(-2deg);
    transition: transform 0.3s;
    border: 1px solid #333;
    min-width: 250px;
}

.device-frame:hover { transform: rotate(0deg) scale(1.02); }

.game-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.game-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.game-slide.active { opacity: 1; z-index: 2; }

.game-info {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 900;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f1c40f, #9b59b6);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-move 5s linear infinite;
}

.game-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-muted);
    display: inline-block;
}

.game-summary {
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ccc;
}

.play-button-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.play-badge img {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
    transition: transform 0.2s, filter 0.2s;
}

.play-badge img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.4));
}

/* --- PRIVACY POLICY CONTENT --- */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 150px 20px 100px 20px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
    background-size: 200% auto;
    -webkit-background-clip: text;
    animation: rainbow-move 5s linear infinite;
}

.policy-container p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.policy-container a {
    color: var(--text-muted);
    text-decoration: none;
}

.policy-container a:hover {
    text-decoration: underline;
}

/* Scoped H3 style so it doesn't break footer */
.policy-container h3 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px;
    background: #020203;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    border-bottom: 1px dotted rgba(255,255,255,0.2);
}

.privacy-link:hover {
    color: var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes rainbow-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    .hero-text { font-size: 1rem; padding: 0 10px; }
    .policy-container h1 { font-size: 2.5rem; }
    .policy-container { padding-top: 100px; }

    /* Mobile Nav */
    .hamburger { display: flex; }
    
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        right: -100%;
        width: 100%;
        height: auto;
        flex-direction: column;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: blur(15px);
        align-items: center;
        transition: 0.4s ease-in-out;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        margin: 20px 0;
        margin-left: 0;
        font-size: 1.3rem;
    }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* Mobile Banner */
    .game-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
        gap: 30px;
    }
    .device-frame {
        width: 100%;
        min-width: unset;
        transform: none;
        margin-bottom: 20px;
    }
    .game-title { font-size: 2rem; }
    .game-subtitle { font-size: 1.1rem; margin-bottom: 20px; }
    .game-summary { font-size: 1rem; margin-bottom: 30px; }
    .play-button-container { justify-content: center; }
    .play-badge img { max-width: 100%; width: 240px; }
    .section { padding: 80px 5%; }
}