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

:root {
    --candy-pink: #ff6b9d;
    --cake-cream: #ffe4b5;
    --story-purple: #9b59d0;
    --rainbow-blue: #5dade2;
    --crystal-cyan: #48d1cc;
    --golden-amber: #ffbf00;
    --dark-purple: #5b2c6f;
    --soft-white: #fef9f3;
    --text-dark: #2c3e50;
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --bg-primary: #fef9f3;
    --bg-secondary: #f8e8ff;
    --bg-white: white;
    --text-primary: #2c3e50;
    --nav-gradient: linear-gradient(135deg, #9b59d0 0%, #5b2c6f 100%);
    --hero-gradient: linear-gradient(135deg, #ff6b9d 0%, #9b59d0 50%, #5dade2 100%);
    --footer-gradient: linear-gradient(135deg, #5b2c6f 0%, #2c3e50 100%);
    --btn-secondary-bg: white;
    --btn-secondary-hover-bg: #fef9f3;
}

body.halloween-theme {
    --candy-pink: #ff6600;
    --cake-cream: #ffa500;
    --story-purple: #a855f7;
    --rainbow-blue: #1a1a2e;
    --crystal-cyan: #16213e;
    --golden-amber: #ff8c00;
    --dark-purple: #7c3aed;
    --soft-white: #1a1a1a;
    --text-dark: #e0e0e0;
    
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d1b3d;
    --bg-white: #252525;
    --text-primary: #e0e0e0;
    --nav-gradient: linear-gradient(135deg, #2d1b3d 0%, #000000 100%);
    --hero-gradient: linear-gradient(135deg, #ff6600 0%, #6b2d5c 50%, #1a1a2e 100%);
    --footer-gradient: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    --btn-secondary-bg: #2d1b3d;
    --btn-secondary-hover-bg: #3d2b4d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: var(--nav-gradient);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--golden-amber);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--golden-amber);
    transition: width 0.3s ease;
}

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

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.hero-badge {
    position: relative;
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.badge-text {
    display: inline-block;
    background: var(--golden-amber);
    color: var(--dark-purple);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--golden-amber);
    color: var(--dark-purple);
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
}

.btn-primary:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 191, 0, 0.4);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--story-purple);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-purple);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.about {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transition: background 0.3s ease;
}

.about-content {
    max-width: 800px;
    margin: 2rem auto;
}

.motto {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--story-purple);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.amber-showcase {
    padding: 5rem 2rem;
    background: var(--bg-white);
    transition: background 0.3s ease;
}

.game-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.game-tagline {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--story-purple);
    margin-bottom: 1.5rem;
}

.game-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.game-description h3 {
    font-size: 1.5rem;
    color: var(--dark-purple);
    margin: 2rem 0 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.features-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--candy-pink);
    font-size: 1.2rem;
}

.game-meta {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    border-left: 4px solid var(--story-purple);
    transition: background 0.3s ease;
}

.game-meta p {
    margin-bottom: 0.5rem;
}

.game-header-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.game-header-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.game-header-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.gallery {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: background 0.3s ease;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.products {
    padding: 5rem 2rem;
    background: var(--bg-white);
    transition: background 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    display: block;
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-purple);
}

.product-card p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--story-purple);
    margin-top: 1rem;
}

.shop-cta {
    text-align: center;
    margin-top: 4rem;
}

.shop-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer {
    background: var(--footer-gradient);
    color: white;
    padding: 3rem 2rem 1rem;
    transition: background 0.3s ease;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--golden-amber);
}

.footer-motto {
    font-style: italic;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--golden-amber);
}

.footer-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.trademarks {
    font-size: 0.75rem;
    opacity: 0.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-purple);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu li {
        padding: 0.75rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .game-info {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .motto {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
