/* لعبة سفينة الفضاء */
#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);
}

.stat-item.coin-stat {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #FFD700;
}

#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: 10px;
}

#finalCoins {
    font-size: 20px;
    color: #FFD700;
    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;
}

.coin-powerup {
    background: #FFD700;
    border: 2px solid #FFA500;
    animation: rotate 2s infinite linear;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تأثيرات التصادم */
.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; }
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

/* رسومات SVG للطائرات */
.spaceship-svg {
    filter: drop-shadow(0 0 5px var(--accent));
}

.enemy-svg {
    filter: drop-shadow(0 0 5px var(--red));
}

#startGameBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent);
    color: #1e2026;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 18px;
    z-index: 300;
}

#coinsValue {
    color: #FFD700;
    font-weight: bold;
}

/* قسم تحويل العملات */
.conversion-section {
    margin-top: 15px;
    padding: 15px;
    background: rgba(43, 49, 57, 0.8);
    border-radius: 8px;
    border: 1px solid #3a4554;
}

.conversion-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--accent);
}

.conversion-rate {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.conversion-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.conversion-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #3a4554;
    border-radius: 6px;
    background: #1e2026;
    color: var(--text);
}

.conversion-btn {
    background: var(--accent);
    color: #1e2026;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.conversion-result {
    font-size: 12px;
    color: var(--green);
    margin-top: 8px;
    text-align: center;
}