/* Hobby Horsing - Complete Redesign */
:root {
    --bg: #04050a;
    --neon1: #7c5cff;
    --neon2: #00d4ff;
    --accent: #ff58c8;
    --muted: #99b8d1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #020617 0%, #0a0520 50%, #050213 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #eaf6ff;
}

.game-top {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 90;
}

.btn {
    background: linear-gradient(90deg, var(--neon1), var(--neon2));
    border: none;
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,212,255,0.4);
}

.game-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.game-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin: 1rem 0 1.5rem;
    background: linear-gradient(135deg, #ff58c8 0%, #a855f7 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255,88,200,0.4);
    letter-spacing: 0.05em;
}

.canvas-container {
    position: relative;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,212,255,0.3), 
                0 0 0 1px rgba(124,92,255,0.2);
    background: rgba(10,5,30,0.6);
    backdrop-filter: blur(10px);
}

#gameCanvas {
    display: block;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a0520 0%, #150a30 100%);
}

#gameOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2,6,23,0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease;
}

#gameOverlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 3rem;
    background: rgba(20,10,40,0.9);
    border-radius: 24px;
    border: 2px solid rgba(124,92,255,0.4);
    box-shadow: 0 0 60px rgba(255,88,200,0.3);
    min-width: 400px;
}

.overlay-title {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 2rem;
    background: linear-gradient(135deg, #ff58c8 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255,88,200,0.5);
}

.overlay-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}

.overlay-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.overlay-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.overlay-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0,212,255,0.6);
}

#stats {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-box {
    background: rgba(10,5,30,0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(124,92,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0,212,255,0.5);
}

.game-btn {
    background: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,212,255,0.4);
    margin: 1rem 0.5rem;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,212,255,0.6);
    filter: brightness(1.2);
}

.game-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0,212,255,0.4);
}

.game-btn.glow {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(0,212,255,0.4), 0 0 20px rgba(124,92,255,0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(0,212,255,0.7), 0 0 30px rgba(124,92,255,0.5);
    }
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1100px) {
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .overlay-content {
        min-width: 300px;
        padding: 2rem;
    }
    
    .overlay-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }
    
    .overlay-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-box {
        min-width: 100px;
    }
}

/* Footer Styles - Unified Design */
.site-footer {
    width: 100%;
    padding: 0.6rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.18));
    backdrop-filter: blur(6px) saturate(120%);
    color: rgba(234, 246, 255, 0.86);
    margin-top: auto;
}

.site-footer a {
    color: rgba(0, 212, 255, 1);
    text-decoration: none;
    font-weight: 600;
}

.footer-inner {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.footer-left {
    flex: 0 0 auto;
    color: #99b8d1;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-center {
    flex: 1 1 auto;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-right {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.logo-footer {
    height: 40px;
    width: auto;
    display: block;
}

.social-icon {
    height: 28px;
    width: 28px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        justify-content: center;
    }
}
