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


#hud-overlay {
    position: fixed;
    top: 30%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 9999;
    background: transparent;
    padding: 0;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hud-stats-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: auto;
    /* backdrop-filter: blur(5px); */
    transition: background 0.2s ease;
}

.stat-item:hover {
    background: rgba(0, 0, 0, 0.4);
}

.stat-item i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.stat-label {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    display: none;
}

@media (min-width: 768px) {
    .stat-label {
        display: inline;
    }
}

.stat-value {
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    min-width: 30px;
    text-align: right;
}

.hud-controls-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.hud-btn {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.5);
    color: #38bdf8;
    padding: 6px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
}

.hud-btn i {
    font-size: 1.1rem;
}

.hud-btn:hover {
    background: rgba(14, 165, 233, 0.8);
    color: #fff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
}

.hud-btn-danger {
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
}

.hud-btn-warning {
    border-color: rgba(255, 165, 0, 0.5);
    color: #ffa500;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
}

.hud-btn-warning:hover {
    background: rgba(255, 165, 0, 0.8);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

#post-composer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    z-index: 2000;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#post-composer textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    margin-bottom: 5px;
    /* Minimal space */
    resize: none;
    height: 100px;
    /* Explicit box-sizing to prevent overflow if padding is added */
    box-sizing: border-box;
}

/* Ensure buttons container handles width correctly */
.composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.btn-post {
    background: #0ea5e9;
    color: #fff;
}


/* Confirmation Prompt */
#exit-confirm,
#outside-confirm,
#inside-confirm {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 12px;
    padding: 20px;
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(239, 68, 68, 0.2) inset;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
    min-width: 300px;
}

#exit-confirm h3,
#outside-confirm h3,
#inside-confirm h3 {
    margin: 0 0 15px 0;
    font-family: 'Orbitron', sans-serif;
    color: #f87171;
    font-size: 1.2rem;
}

.confirm-actions,
.outside-actions,
.inside-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

#outside-confirm,
#inside-confirm {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(14, 165, 233, 0.2) inset;
}

#outside-confirm h3,
#inside-confirm h3 {
    color: #38bdf8;
}

/* VR Menu Position */

.hud-header {
    position: fixed;
    top: 30px;
    left: 90px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10pt;
    transform: translateX(-50%);
    width: 250px;
    height: 25px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    z-index: 1000;
}