/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #1a0a2e;
    --bg-dark: #0d0520;
    --primary: #ff6b35;
    --secondary: #ffd700;
    --accent: #ff1493;
    --text: #ffffff;
    --text-dim: #b8b8d0;
    --card-bg: #2a1a4e;
    --card-hover: #3a2a5e;
    --green: #00ff88;
    --red: #ff4444;
    --font-display: 'Bangers', cursive;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    transition: transform 0.3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.btn-buy {
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy:hover {
    background: var(--secondary);
    color: #000;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== TICKER ===== */
.ticker {
    margin-top: 60px;
    background: var(--primary);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.ticker-track {
    display: inline-block;
    animation: tickerScroll 20s linear infinite;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    color: #fff;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HERO ===== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #2a1a4e 0%, var(--bg) 70%);
}

.hero-bg-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(10rem, 25vw, 20rem);
    color: rgba(255, 107, 53, 0.06);
    letter-spacing: 20px;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.live-badge {
    display: inline-block;
    background: rgba(0, 255, 136, 0.15);
    color: var(--green);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.mascot {
    font-size: clamp(6rem, 15vw, 12rem);
    animation: mascotBob 3s ease-in-out infinite;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 0 40px rgba(255, 107, 53, 0.4));
    transition: transform 0.2s;
}

.mascot:hover {
    transform: scale(1.1);
}

.mascot:active {
    transform: scaleX(1.4) scaleY(0.6);
}

.mascot.squished {
    transform: scaleX(1.4) scaleY(0.6) !important;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 3px;
    margin: 1rem 0;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-sub strong {
    color: var(--secondary);
}

/* Contract Box */
.contract-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.contract-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.contract-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.contract-row code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--secondary);
    word-break: break-all;
}

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-copy:hover {
    transform: scale(1.2);
}

.copy-toast {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-2px);
}

/* ===== SECTION COMMON ===== */
section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.section-desc {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== COIN FLIP GAME ===== */
.game-container {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 90px;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.streak-box .stat-num {
    color: var(--primary);
}

.coin-area {
    perspective: 600px;
    margin: 2rem auto;
    width: 150px;
    height: 150px;
}

.coin {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

.coin.flipping {
    animation: coinFlip 1s ease-in-out;
}

.coin.result-front {
    transform: rotateY(0deg);
}

.coin.result-back {
    transform: rotateY(180deg);
}

.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--card-hover), var(--card-bg));
    border: 4px solid var(--secondary);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
}

.coin-back {
    transform: rotateY(180deg);
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.2);
}

@keyframes coinFlip {
    0% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(900deg) scale(1.2); }
    50% { transform: rotateY(1800deg) scale(1.3); }
    75% { transform: rotateY(2520deg) scale(1.2); }
    100% { transform: rotateY(3240deg) scale(1); }
}

@keyframes coinFlipBack {
    0% { transform: rotateY(0deg) scale(1); }
    25% { transform: rotateY(900deg) scale(1.2); }
    50% { transform: rotateY(1800deg) scale(1.3); }
    75% { transform: rotateY(2520deg) scale(1.2); }
    100% { transform: rotateY(3420deg) scale(1); }
}

.game-result {
    font-family: var(--font-display);
    font-size: 2rem;
    min-height: 3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.game-result.win {
    color: var(--green);
}

.game-result.lose {
    color: var(--red);
}

.btn-flip {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 2px;
    padding: 1rem 3rem;
    box-shadow: 0 4px 25px rgba(255, 20, 147, 0.4);
}

.btn-flip:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 35px rgba(255, 20, 147, 0.6);
}

.btn-flip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.best-streak {
    margin-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.best-streak span {
    color: var(--secondary);
    font-weight: 700;
}

/* ===== PANIC CLICKER ===== */
#clicker {
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 30px;
}

.clicker-container {
    max-width: 400px;
    margin: 0 auto;
}

.click-count {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--secondary);
    letter-spacing: 5px;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
    transition: transform 0.1s, color 0.3s;
}

.click-count.shake {
    animation: screenShake 0.3s;
}

@keyframes screenShake {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-5px, 3px); }
    40% { transform: translate(5px, -3px); }
    60% { transform: translate(-3px, 5px); }
    80% { transform: translate(3px, -5px); }
}

.clicker-btn {
    font-size: clamp(4rem, 10vw, 7rem);
    background: var(--card-bg);
    border: 4px solid var(--primary);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.2);
}

.clicker-btn:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.clicker-btn:active {
    transform: scale(0.92);
    box-shadow: 0 0 80px rgba(255, 107, 53, 0.5);
}

.click-milestones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.milestone {
    background: var(--card-bg);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.milestone.reached {
    border-color: var(--green);
    color: var(--green);
    background: rgba(0, 255, 136, 0.1);
}

/* ===== CHAOS MODE ===== */
body.chaos-mode {
    animation: chaosRainbow 0.3s linear infinite;
}

@keyframes chaosRainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ===== WHY CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.card:hover {
    background: var(--card-hover);
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* ===== COMMUNITY LINKS ===== */
#community {
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.link-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
    font-weight: 600;
}

.link-card:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: var(--secondary);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.15);
}

.link-icon {
    font-size: 2rem;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--bg-dark);
}

.footer-mascot {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: mascotBob 3s ease-in-out infinite;
}

footer p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    max-width: 500px;
    margin: 0.5rem auto 0;
}

/* ===== PARTICLES ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.emoji-particle {
    position: absolute;
    font-size: 1.5rem;
    pointer-events: none;
    animation: particleFly 1.2s ease-out forwards;
}

@keyframes particleFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(0.2);
    }
}

/* Mouse trail */
.trail-emoji {
    position: fixed;
    font-size: 1rem;
    pointer-events: none;
    z-index: 9998;
    animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3) translateY(20px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 2px solid var(--primary);
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .btn-buy {
        display: none;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-stats {
        gap: 0.8rem;
    }
    .stat-box {
        padding: 0.7rem 1rem;
    }
    .stat-num {
        font-size: 1.8rem;
    }
}
