/* mechanic.party - Memphis Bold Shapes / Mid-Century Modern */
/* Colors: #1A1A2E, #2D2D3A, #4ECDC4, #A08CFF, #F5F0E8, #FF1493, #FF6B6B, #FFE66D */
/* Fonts: Bungee, Nunito, Space Mono */

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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #2D2D3A;
    background: #F5F0E8;
    overflow-x: hidden;
}

/* Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 4px;
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 24px;
}

/* Bento Cells */
.bento-cell {
    border: 4px solid #1A1A2E;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: scale(0.95);
}

.bento-cell.visible {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-cell:hover {
    transform: scale(1.02);
    box-shadow: 6px 6px 0 #1A1A2E;
    z-index: 10;
}

.cell-content {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Cell Colors */
.cell-coral { background: #FF6B6B; color: #FFFFFF; }
.cell-purple { background: #A08CFF; color: #FFFFFF; }
.cell-navy { background: #1A1A2E; color: #F5F0E8; }
.cell-yellow { background: #FFE66D; color: #1A1A2E; }
.cell-teal { background: #4ECDC4; color: #FFFFFF; }
.cell-pink { background: #FF1493; color: #FFFFFF; }
.cell-cream { background: #F5F0E8; color: #1A1A2E; }

/* Cell Sizes */
.cell-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.cell-banner {
    grid-column: span 3;
}

.cell-banner-wide {
    grid-column: span 4;
}

.cell-cta {
    grid-column: span 2;
}

/* Typography */
.cell-title {
    font-family: 'Bungee', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.1;
}

.cell-title-dark {
    color: #1A1A2E;
}

.cell-body {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 12px;
    opacity: 0.9;
}

.cell-body-dark {
    color: #2D2D3A;
}

.cell-counter {
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.cell-counter-dark {
    color: #2D2D3A;
}

.mono-text {
    font-family: 'Space Mono', monospace;
}

/* Hero Cell */
.hero-title {
    font-family: 'Bungee', sans-serif;
    font-size: 48px;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 #1A1A2E;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    letter-spacing: 0.08em;
    opacity: 0.9;
}

/* Gear Cluster */
.gear-cluster {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.mini-gear {
    width: 50px;
    height: 50px;
}

.g1 {
    animation: spinCW 4s linear infinite;
}

.g2 {
    animation: spinCCW 3s linear infinite;
}

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

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

/* Decorative Cells */
.cell-decorative {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cell-decorative .cell-content {
    align-items: center;
}

.deco-gear {
    width: 80px;
    height: 80px;
    animation: spinCW 8s linear infinite;
}

.deco-wrench {
    width: 60px;
    height: 60px;
    animation: wobbleWrench 2s ease-in-out infinite;
}

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

.deco-bolt {
    width: 50px;
    height: 70px;
    animation: bounceBolt 1.5s ease-in-out infinite;
}

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

/* Banner Text */
.banner-text {
    font-family: 'Bungee', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.dot-coral { background: #FF6B6B; animation-delay: 0s; }
.dot-yellow { background: #FFE66D; animation-delay: 0.15s; }
.dot-teal { background: #4ECDC4; animation-delay: 0.3s; }
.dot-purple { background: #A08CFF; animation-delay: 0.45s; }
.dot-pink { background: #FF1493; animation-delay: 0.6s; }

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* Party Button */
.party-btn {
    font-family: 'Bungee', sans-serif;
    font-size: 18px;
    padding: 12px 32px;
    background: #1A1A2E;
    color: #FFE66D;
    border: 3px solid #1A1A2E;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.party-btn:hover {
    background: #FFE66D;
    color: #1A1A2E;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 #1A1A2E;
}

/* Stats */
.cell-stats .cell-content {
    gap: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.15);
}

.stat-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.stat-value {
    font-family: 'Bungee', sans-serif;
    font-size: 20px;
    color: #F5F0E8;
}

.highlight-yellow {
    color: #FFE66D;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 4px solid #1A1A2E;
    margin-top: 24px;
}

.footer-text {
    font-family: 'Bungee', sans-serif;
    font-size: 24px;
    color: #1A1A2E;
}

.footer-sub {
    font-size: 12px;
    color: #2D2D3A;
    letter-spacing: 0.1em;
    margin-top: 8px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cell-hero {
        grid-column: span 2;
    }

    .cell-banner {
        grid-column: span 2;
    }

    .cell-banner-wide {
        grid-column: span 2;
    }

    .cell-cta {
        grid-column: span 2;
    }

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

    .cell-title {
        font-size: 22px;
    }

    .banner-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .cell-hero,
    .cell-banner,
    .cell-banner-wide,
    .cell-cta {
        grid-column: span 1;
    }
}
