﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
    margin: 0;
}


.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-100vh) translateX(50px) rotate(180deg);
        opacity: 0.5;
    }
}

.main-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    z-index: 2;
    position: relative;
}

.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-right: 2px solid rgba(102, 126, 234, 0.1);
    overflow-y: auto;
    background: #ffffff;
}

.maintenance-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.maintenance-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in;
    display: block;
    color: #667eea;
}

.maintenance-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 20px 0;
    animation: fadeIn 1s ease-in 0.2s both;
}

.maintenance-description {
    font-size: 1rem;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-in 0.4s both;
}

.maintenance-features {
    margin: 25px 0;
    animation: fadeIn 1s ease-in 0.5s both;
}

.features-jumbotron {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
}

.features-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

    .features-title i {
        font-size: 1.3rem;
    }

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    width: 100%;
    max-width: none;
}

.feature-icon {
    font-size: 1.3rem;
    color: #667eea;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.95rem;
    color: #555555;
    font-weight: 500;
    text-align: left;
}

.maintenance-invite {
    font-size: 0.95rem;
    color: #666666;
    font-style: italic;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in 0.7s both;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.game-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#gameCanvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    background: #000;
}

.game-hud {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #eee;
    font-family: sans-serif;
    z-index: 10;
}

#gameCenterMsg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 10;
    font-size: 2rem;
    font-weight: bold;
}

#gameRestart {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 8px 16px;
    background: #222;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
    transition: background 0.3s;
}

    #gameRestart:hover {
        background: #333;
    }

.game-controls {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
    pointer-events: none;
}

    .game-controls > * {
        pointer-events: auto;
    }

/* Joystick */
.joystick-container {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 120px;
    height: 120px;
    z-index: 100;
    display: none;
}

.joystick-base {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    touch-action: none;
}

.joystick-stick {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

    .joystick-stick.active {
        background: rgba(118, 75, 162, 0.8);
    }

@media (min-width: 769px) {
    .game-controls {
        display: none;
    }

    .fire-control {
        display: none;
    }
}

@media (max-width: 768px) {
    .joystick-container {
        display: block;
    }

    .game-controls {
        display: none;
    }

    .maintenance-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .maintenance-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .maintenance-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .maintenance-features {
        margin: 15px 0;
    }

    .features-jumbotron {
        padding: 15px;
    }

    .features-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

        .features-title i {
            font-size: 1rem;
        }

    .features-list {
        gap: 0;
    }

    .feature-item {
        padding: 6px 0;
    }

    .feature-icon {
        font-size: 1rem;
    }

    .feature-text {
        font-size: 0.8rem;
    }

    .maintenance-invite {
        font-size: 0.85rem;
        margin-top: 15px;
        padding-top: 12px;
    }

    .left-panel {
        padding: 15px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .fire-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .game-controls {
        right: 15px;
        bottom: 15px;
        gap: 8px;
    }

    .joystick-container {
        right: 15px;
        bottom: 15px;
        width: 100px;
        height: 100px;
    }

    .joystick-base {
        width: 100px;
        height: 100px;
    }

    .joystick-stick {
        width: 45px;
        height: 45px;
    }

    .fire-control {
        left: 15px;
        bottom: 15px;
    }

    .control-row {
        gap: 8px;
    }
}

.fire-control {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 100;
    pointer-events: auto;
}

.control-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.2s;
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

    .control-btn:active,
    .control-btn.active {
        background: rgba(118, 75, 162, 0.6);
        transform: scale(0.95);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .control-btn:hover {
        background: rgba(102, 126, 234, 0.6);
    }

.fire-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 80, 80, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
}

    .fire-btn:active,
    .fire-btn.active {
        background: rgba(255, 50, 50, 0.7);
    }

    .fire-btn:hover {
        background: rgba(255, 100, 100, 0.6);
    }

@media (max-width: 1024px) {
    .main-wrapper {
        flex-direction: column;
    }

    .left-panel {
        flex: 0 0 50%;
        border-right: none;
        border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    }

    .right-panel {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .maintenance-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .maintenance-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .maintenance-description {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .maintenance-features {
        margin: 15px 0;
    }

    .features-jumbotron {
        padding: 15px;
    }

    .features-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

        .features-title i {
            font-size: 1rem;
        }

    .features-list {
        gap: 0;
    }

    .feature-item {
        padding: 6px 0;
    }

    .feature-icon {
        font-size: 1rem;
    }

    .feature-text {
        font-size: 0.8rem;
    }

    .maintenance-invite {
        font-size: 0.85rem;
        margin-top: 15px;
        padding-top: 12px;
    }

    .left-panel {
        padding: 15px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .fire-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .game-controls {
        right: 15px;
        bottom: 15px;
        gap: 8px;
    }

    .joystick-container {
        right: 15px;
        bottom: 15px;
        width: 100px;
        height: 100px;
    }

    .joystick-base {
        width: 100px;
        height: 100px;
    }

    .joystick-stick {
        width: 45px;
        height: 45px;
    }

    .fire-control {
        left: 15px;
        bottom: 15px;
    }

    .control-row {
        gap: 8px;
    }
}
