@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

html, body {
    width: 100%;
    min-height: 100%;
    height: auto;
    overflow-x: hidden;
    background: #060612;
    font-family: 'Poppins', sans-serif;
    touch-action: none;
}

body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(33,150,243,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(244,67,54,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 30%, rgba(255,107,0,0.03) 0%, transparent 50%);
    animation: bgDrift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes bgDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(3deg); }
}

#game-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1;
}

#game-wrapper::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,0,0.05) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glowPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

#game-canvas {
    display: block;
    background: transparent;
    image-rendering: auto;
    touch-action: none;
    border-radius: 12px;
    box-shadow:
        0 0 40px rgba(255,107,0,0.1),
        0 0 80px rgba(33,150,243,0.05),
        0 0 120px rgba(244,67,54,0.05);
}

#logo-overlay {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    pointer-events: none;
}

#logo-overlay img {
    height: 36px;
    opacity: 0.6;
}

#mobile-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    z-index: 5;
}

.mobile-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.mobile-btn:active {
    background: rgba(255,255,255,0.25);
    transform: scale(0.9);
}

.mobile-btn.hidden {
    display: none;
}

@media (pointer: coarse) {
    #mobile-controls {
        display: flex;
    }
}

@media (max-width: 600px) {
    #logo-overlay img {
        height: 24px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    #mobile-controls {
        height: 60px;
    }
    .mobile-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

#seo-content {
    display: block;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    color: #aab;
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
#seo-content h1 {
    font-size: 22px;
    font-weight: 700;
    color: #eee;
    margin-bottom: 16px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}
#seo-content h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ddd;
    margin: 24px 0 12px;
    font-family: 'Orbitron', sans-serif;
}
#seo-content p {
    margin-bottom: 14px;
    color: #99a;
}
#seo-content ul {
    margin: 10px 0 18px 20px;
    list-style: none;
}
#seo-content ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: #99a;
}
#seo-content ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #f60;
    font-weight: 700;
}
#seo-content a {
    color: #ff8c00;
    text-decoration: none;
}
#seo-content a:hover {
    text-decoration: underline;
}
#seo-content strong {
    color: #bbc;
}
