body {
    margin: 0;
    overflow: hidden;
    background-color: #0b0f19;
    font-family: 'Press Start 2P', 'Changa', 'Courier New', monospace;
    color: #fff;
    user-select: none;
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    /* للسماح بالضغط على الكرة الأرضية بالخلف */
    display: flex;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
    text-shadow: 2px 2px 0 #000;
}

.left-panel,
.right-panel {
    pointer-events: auto;
    /* السماح بالتفاعل مع عناصر الواجهة */
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.right-panel {
    align-items: flex-start;
    /* لليمين بسبب RTL */
}

/* صندوق بيكسل آرت */
.pixel-box {
    background: rgba(20, 20, 24, 0.85);
    border: 4px solid #fff;
    padding: 20px;
    box-shadow: 6px 6px 0 #000;
    backdrop-filter: blur(4px);
}

.branding h2 {
    margin: 0 0 10px 0;
    color: #ffcc00;
    font-size: 20px;
}

.branding p {
    margin: 0;
    font-size: 14px;
    color: #b0c4de;
}

.action-station {
    text-align: center;
}

.timer {
    font-size: 32px;
    color: #ffcc00;
    margin-bottom: 20px;
    font-family: 'Press Start 2P', cursive;
    text-align: center;
    text-shadow: 4px 4px 0 #000;
}

.pixel-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: #111;
    color: #fff;
    border: 4px solid #fff;
    font-family: 'Changa', 'Press Start 2P', monospace;
    font-size: 16px;
    outline: none;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
}

.pixel-select option {
    background: #222;
    color: #fff;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button.pixel-btn {
    font-family: 'Changa', 'Press Start 2P', monospace;
    color: white;
    border: 4px solid #fff;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.4), inset 4px 4px 0 rgba(255, 255, 255, 0.3), 4px 4px 0 #000;
    transition: transform 0.1s, box-shadow 0.1s, filter 0.2s;
    outline: none;
    text-align: center;
    border-radius: 0;
    /* شكل مربع كلاسيكي */
}

button.pixel-btn:hover {
    filter: brightness(1.2);
}

button.pixel-btn:active {
    transform: translate(2px, 2px);
    box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.4), inset 2px 2px 0 rgba(255, 255, 255, 0.3), 2px 2px 0 #000;
}

button.pixel-btn.disabled {
    background-color: #444 !important;
    color: #888;
    border-color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.attack-btn {
    background-color: #d32f2f;
}

.defense-btn {
    background-color: #1976d2;
}

/* قسم بوردة الاستفزاز (Live Feed) */
.live-feed {
    width: 320px;
    max-height: 450px;
    overflow-y: hidden;
    font-size: 14px;
    line-height: 1.8;
}

.feed-title {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px dashed #fff;
    padding-bottom: 10px;
}

.feed-item {
    animation: fadeIn 0.3s ease-out;
    margin-bottom: 10px;
    border-right: 4px solid transparent;
    padding-right: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
}

.feed-item.attack {
    color: #ff6b6b;
    border-right-color: #ff6b6b;
}

.feed-item.defense {
    color: #6bc1ff;
    border-right-color: #6bc1ff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}