/* لعبة سفينة الفضاء */
#panel-game {
    position: relative;
    overflow: hidden;
}

#gameContainer {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #000033 0%, #000066 100%);
    overflow: hidden;
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#gameUI {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
}

#gameStats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid var(--accent);
}

#gameControls {
    display: flex;
    gap: 10px;
}

.control-btn {
    background: var(--accent);
    color: #1e2026;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

#gameOverScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 200;
    color: white;
    text-align: center;
}

#gameOverTitle {
    font-size: 32px;
    color: var(--red);
    margin-bottom: 20px;
    font-weight: bold;
}

#finalScore {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 30px;
}

#restartBtn {
    background: var(--accent);
    color: #1e2026;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

/* أنماط النجوم في الخلفية */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
}

/* أنماط للطائرات والرصاص */
.spaceship {
    position: absolute;
    transition: transform 0.1s;
}

.bullet {
    position: absolute;
    background: var(--accent);
    border-radius: 2px;
}

.enemy {
    position: absolute;
    border-radius: 4px;
}

.powerup {
    position: absolute;
    border-radius: 50%;
    animation: float 2s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.health-powerup {
    background: var(--green);
    border: 2px solid #00ff00;
}

.weapon-powerup {
    background: var(--accent);
    border: 2px solid #ffd700;
}

/* تأثيرات التصادم */
.explosion {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4444 0%, transparent 70%);
    animation: explode 0.5s forwards;
}

@keyframes explode {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* رسومات SVG للطائرات */
.spaceship-svg {
    filter: drop-shadow(0 0 5px var(--accent));
}

.enemy-svg {
    filter: drop-shadow(0 0 5px var(--red));
}
/* Game Start Screen */
#gameStartScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 51, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 150;
    color: white;
    text-align: center;
}

.start-screen-content {
    background: rgba(30, 32, 38, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--accent);
    max-width: 80%;
}

.start-screen-content h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 28px;
}

.game-rules {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.start-game-btn {
    background: var(--accent);
    color: #1e2026;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.start-game-btn:hover {
    background: var(--accent2);
    transform: translateY(-2px);
}