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

:root {
    --bg-pink: #fff1f7;
    --bg-caramel: #ffe9d6;
    --bg-pastel: #fdf2ff;
    --accent-pink: #ff4fa3;
    --accent-purple: #b56cff;
    --accent-blue: #4cc9f0;
    --accent-yellow: #ffd166;
    --text-main: #2b2b2b;
    --text-sub: #6b5b6b;
    --white: #ffffff;
    
    --space-desktop: 90px;
    --space-tablet: 60px;
    --space-mobile: 40px;
    --max-width: 1400px;
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--bg-pink) 0%, var(--bg-pastel) 50%, var(--bg-caramel) 100%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

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

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

/* Header */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 241, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(255, 79, 163, 0.15);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(181, 108, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-pink);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.brand-logo::before {
    content: "🍬";
    font-size: 32px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-sub);
    font-size: 16px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-purple);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Buttons */
.btn-candy {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 79, 163, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    text-align: center;
}

.btn-candy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(181, 108, 255, 0.4);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    padding: var(--space-desktop) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 79, 163, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(76, 201, 240, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 209, 102, 0.1) 0%, transparent 50%);
}

.hero-candy-icon-1, .hero-candy-icon-2 {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.hero-candy-icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.hero-candy-icon-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
    width: 150px;
    height: 150px;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-sub);
    margin-bottom: 40px;
}

/* Game Section */
.game-section {
    padding: 0 0 var(--space-desktop) 0;
}

.game-frame-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 30px;
    padding: 12px;
    box-shadow: 
        0 20px 50px rgba(255, 79, 163, 0.15),
        inset 0 0 0 4px var(--bg-pastel);
    border: 8px solid var(--bg-caramel);
    position: relative;
}

.game-frame-wrapper::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 38px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-blue));
    z-index: -1;
    opacity: 0.3;
    filter: blur(10px);
}

.game-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 20px;
    display: block;
    background-color: var(--bg-pink);
}

/* Internal Pages Structure */
.page-header {
    padding: var(--space-desktop) 0 var(--space-tablet);
    text-align: center;
}

.page-title {
    font-size: 48px;
    color: var(--accent-purple);
    margin-bottom: 15px;
}

.content-section {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto var(--space-desktop);
    box-shadow: 0 10px 30px rgba(181, 108, 255, 0.08);
    border: 2px solid var(--bg-pastel);
}

.content-section h2 {
    color: var(--accent-pink);
    margin: 30px 0 15px;
    font-size: 28px;
}

.content-section h3 {
    color: var(--accent-blue);
    margin: 20px 0 10px;
    font-size: 22px;
}

.content-section p {
    margin-bottom: 15px;
    color: var(--text-sub);
    font-size: 17px;
}

.content-section ul {
    list-style: disc inside;
    margin-bottom: 20px;
    color: var(--text-sub);
}

.content-section li {
    margin-bottom: 8px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    padding: 15px;
    border-radius: 12px;
    border: 2px solid var(--bg-caramel);
    background: var(--bg-pastel);
    font-family: inherit;
    font-size: 16px;
    color: var(--text-main);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-pink);
    background: var(--white);
}

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

/* Footer / Legal Section */
.footer-main {
    background: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
    border-top: 2px solid var(--bg-pastel);
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-nav a {
    color: var(--text-sub);
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--accent-pink);
}

.legal-box {
    background: var(--bg-pastel);
    border: 2px dashed var(--accent-blue);
    border-radius: 16px;
    padding: 25px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.legal-box p {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

.age-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-pink);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

.copyright {
    font-size: 14px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --space-desktop: var(--space-tablet);
    }
    
    .hero-title {
        font-size: 52px;
    }
    
    .nav-menu {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    :root {
        --space-desktop: var(--space-mobile);
    }

    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-candy-icon-1, .hero-candy-icon-2 {
        display: none;
    }

    .content-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .btn-candy {
        width: 100%;
    }
}