/* mechanic.party — Memphis Bold Pop-Art Game Mechanics Party */

:root {
    --deep-indigo: #1a1a2e;
    --ink-black: #111111;
    --paper-white: #F7F7F2;
    --coral-punch: #FF6B6B;
    --soft-pink: #FF85A1;
    --teal-pop: #4ECDC4;
    --sunshine: #FFE66D;
    --party-purple: #A855F7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper-white);
    color: var(--ink-black);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ====================== CONFETTI LAYER ====================== */
.confetti-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 6px;
    height: 6px;
    opacity: 0.6;
    animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 0.7; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ====================== ENTRANCE / HERO ====================== */
.entrance {
    min-height: 100vh;
    background: var(--deep-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

/* Spinning gears */
.gear {
    position: absolute;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.15);
    animation: spin linear infinite;
}

.gear::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--deep-indigo);
}

.gear-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 8%;
    border-color: var(--coral-punch);
    animation-duration: 8s;
}
.gear-1::before { width: 40px; height: 40px; }

.gear-2 {
    width: 80px;
    height: 80px;
    top: 15%;
    right: 12%;
    border-color: var(--teal-pop);
    animation-duration: 6s;
    animation-direction: reverse;
}
.gear-2::before { width: 28px; height: 28px; }

.gear-3 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 15%;
    border-color: var(--sunshine);
    animation-duration: 10s;
}
.gear-3::before { width: 34px; height: 34px; }

.gear-4 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    right: 10%;
    border-color: var(--party-purple);
    animation-duration: 5s;
    animation-direction: reverse;
}
.gear-4::before { width: 20px; height: 20px; }

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

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Bungee', cursive;
    line-height: 1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--coral-punch);
    transform: rotate(-3deg);
    text-shadow: 4px 4px 0 var(--ink-black);
}

.title-line.line2 {
    color: var(--teal-pop);
    transform: rotate(-3deg) translateX(20px);
}

.hero-tagline {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    color: var(--sunshine);
    letter-spacing: 0.15em;
    margin-bottom: 40px;
}

.bounce-arrow {
    font-size: 1.5rem;
    color: var(--paper-white);
    animation: bounce 1.5s ease-in-out infinite;
    cursor: pointer;
}

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

/* ====================== DANCE FLOOR ====================== */
.dance-floor {
    padding: 100px 20px;
    background: var(--paper-white);
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bungee', cursive;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 12px;
}

.tilted-left {
    transform: rotate(-2deg);
    color: var(--coral-punch);
    text-shadow: 3px 3px 0 var(--ink-black);
}

.tilted-right {
    transform: rotate(2deg);
    color: var(--teal-pop);
    text-shadow: 3px 3px 0 var(--ink-black);
}

.section-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--ink-black);
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.7;
}

.mechanic-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mech-tile {
    border: 3px solid var(--ink-black);
    border-radius: 8px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) rotate(0deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.mech-tile.visible {
    opacity: 1;
    transform: translateY(0);
}

.mech-tile:nth-child(odd).visible { transform: rotate(-1deg); }
.mech-tile:nth-child(even).visible { transform: rotate(1deg); }

.tile-coral { background: var(--coral-punch); }
.tile-teal { background: var(--teal-pop); }
.tile-yellow { background: var(--sunshine); }
.tile-pink { background: var(--soft-pink); }
.tile-purple { background: var(--party-purple); color: var(--paper-white); }

.tile-icon {
    margin-bottom: 14px;
}

.tile-name {
    font-family: 'Bungee', cursive;
    font-size: 1rem;
    color: var(--ink-black);
    margin-bottom: 8px;
}

.tile-purple .tile-name {
    color: var(--paper-white);
}

.tile-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-black);
    opacity: 0.85;
}

.tile-purple .tile-desc {
    color: var(--paper-white);
    opacity: 0.9;
}

/* ====================== CONGA LINE ====================== */
.conga-section {
    padding: 100px 20px;
    background: var(--deep-indigo);
    position: relative;
}

.conga-section .section-desc {
    color: var(--paper-white);
    opacity: 0.6;
}

.conga-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.conga-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border: 3px solid transparent;
    border-radius: 8px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.conga-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-1.visible { border-color: var(--coral-punch); }
.step-2.visible { border-color: var(--teal-pop); }
.step-3.visible { border-color: var(--sunshine); }

.step-number {
    font-family: 'Bungee', cursive;
    font-size: 2rem;
    color: var(--sunshine);
    flex-shrink: 0;
    line-height: 1;
}

.step-title {
    font-family: 'Bungee', cursive;
    font-size: 0.9rem;
    color: var(--paper-white);
    margin-bottom: 6px;
}

.step-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--paper-white);
    opacity: 0.7;
    line-height: 1.6;
}

/* ====================== AFTER-PARTY / FOOTER ====================== */
.after-party {
    padding: 80px 20px;
    background: var(--ink-black);
    text-align: center;
}

.footer-title {
    font-family: 'Bungee', cursive;
    font-size: 1.2rem;
    color: var(--sunshine);
    margin-bottom: 12px;
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: var(--paper-white);
    opacity: 0.5;
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.footer-domain {
    font-family: 'Bungee', cursive;
    font-size: 0.9rem;
    color: var(--coral-punch);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 600px) {
    .mechanic-tiles {
        grid-template-columns: 1fr;
    }

    .mech-tile:nth-child(odd).visible,
    .mech-tile:nth-child(even).visible {
        transform: rotate(0deg);
    }

    .gear { display: none; }

    .conga-step {
        flex-direction: column;
        gap: 10px;
    }

    .title-line.line2 {
        transform: rotate(-3deg) translateX(0);
    }
}
