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

:root {
    --primary-brown: #8B6914;
    --secondary-brown: #A67C00;
    --cream: #FDF5E6;
    --light-cream: #FFF8DC;
    --dark-text: #2C1810;
    --green-accent: #7CB342;
    --blue-accent: #5DADE2;
}

body {
    font-family: 'Comic Neue', cursive;
    background: var(--cream);
    color: var(--dark-text);
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s ease;
}

/* Stink level color states */
body.stink-1 { background: #F5E6D3; }
body.stink-2 { background: #EBDCC8; }
body.stink-3 { background: #E0D0B8; }
body.stink-4 { background: #D4C4A8; }
body.stink-5 { background: #C8B898; }
body.stink-6 { background: #BCAC88; }
body.stink-7 { background: #B09F78; }
body.stink-8 { background: #A49268; }
body.stink-9 { background: #988558; }
body.stink-10 { 
    background: #8B7848; 
    animation: stinkPulse 1s ease-in-out infinite;
}

@keyframes stinkPulse {
    0%, 100% { background: #8B7848; }
    50% { background: #7A6838; }
}

/* Floating Sparkles */
.sparkle {
    position: fixed;
    font-size: 24px;
    color: var(--secondary-brown);
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.sparkle-1 { top: 20%; right: 5%; animation-delay: 0s; }
.sparkle-2 { top: 40%; right: 10%; animation-delay: 0.5s; }
.sparkle-3 { top: 60%; left: 5%; animation-delay: 1s; }
.sparkle-4 { top: 80%; left: 8%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 40px;
    position: relative;
    z-index: 100;
}

.logo-badge {
    background: linear-gradient(145deg, #8B4513, #654321);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Bangers', cursive;
    font-size: 24px;
    box-shadow: 3px 3px 0 #3d2817;
    cursor: pointer;
    transition: transform 0.2s;
}

.logo-badge:hover {
    transform: scale(1.05);
}

.chaos-meter {
    background: #3d2817;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-family: 'Bangers', cursive;
    font-size: 16px;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 500px;
}

nav a {
    background: linear-gradient(145deg, #8B4513, #654321);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Bangers', cursive;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 #3d2817;
}

nav a:hover {
    transform: translateY(-2px);
    box-shadow: 3px 4px 0 #3d2817;
}

nav a.nav-secondary {
    background: linear-gradient(145deg, var(--secondary-brown), var(--primary-brown));
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

.title-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.main-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(36px, 8vw, 72px);
    color: var(--green-accent);
    text-shadow: 3px 3px 0 var(--dark-text);
    line-height: 0.9;
    display: flex;
    flex-direction: column;
}

.wizard-icon {
    font-size: 32px;
    margin-left: 10px;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* Hero Container with Sunburst */
.hero-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.sunburst {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(
        from 0deg,
        var(--cream) 0deg 10deg,
        var(--light-cream) 10deg 20deg
    );
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-wizard {
    position: relative;
    z-index: 10;
    max-width: 350px;
    max-height: 350px;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.3));
}

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

.tagline {
    font-family: 'Bangers', cursive;
    font-size: clamp(28px, 5vw, 48px);
    font-style: italic;
    color: var(--dark-text);
    margin: 20px 0;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.join-btn {
    background: linear-gradient(145deg, #8B4513, #654321);
    color: white;
    padding: 15px 50px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Bangers', cursive;
    font-size: 24px;
    box-shadow: 4px 4px 0 #3d2817;
    transition: all 0.2s;
    margin: 20px 0;
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 5px 7px 0 #3d2817;
}

.features {
    margin-top: 40px;
    text-align: center;
}

.features p {
    font-size: 18px;
    margin: 10px 0;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.features p:nth-child(1) { animation-delay: 0.2s; }
.features p:nth-child(2) { animation-delay: 0.4s; }
.features p:nth-child(3) { animation-delay: 0.6s; }

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

/* Sections */
.section {
    padding: 80px 40px;
    text-align: center;
}

.section h2 {
    font-family: 'Bangers', cursive;
    font-size: clamp(36px, 6vw, 56px);
    color: var(--dark-text);
    margin-bottom: 40px;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

/* Story Section */
.story-section {
    background: linear-gradient(180deg, var(--cream) 0%, #E8DCC8 100%);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    font-size: 18px;
    line-height: 1.8;
    margin: 20px 0;
}

/* Tokenomics Section */
.tokenomics-section {
    background: var(--light-cream);
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.token-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 5px 5px 0 var(--primary-brown);
    transition: transform 0.2s;
}

.token-card:hover {
    transform: translateY(-5px);
}

.token-card h3 {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.token-card p {
    font-size: 18px;
    font-weight: bold;
}

/* Community Section */
.community-section {
    background: linear-gradient(180deg, var(--light-cream) 0%, var(--cream) 100%);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Bangers', cursive;
    font-size: 20px;
    color: white;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 4px 6px 0 rgba(0,0,0,0.3);
}

.social-btn.telegram { background: #0088cc; }
.social-btn.twitter { background: #1DA1F2; }
.social-btn.reddit { background: #FF4500; }
.social-btn.dextools { background: #00CED1; }

/* Footer */
footer {
    background: #3d2817;
    color: var(--cream);
    padding: 40px;
    text-align: center;
}

footer p {
    margin: 10px 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav {
        justify-content: center;
        max-width: 100%;
    }

    .hero-container {
        width: 300px;
        height: 300px;
    }

    .hero-wizard {
        max-width: 250px;
        max-height: 250px;
    }

    .title-section {
        flex-direction: column;
        align-items: center;
    }

    .wizard-icon {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Scroll animations */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}
