/* ============================================================
   HUD composer — gris carbón + naranja neón
   ============================================================ */

.hud-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 64px;
    z-index: 1;
}

.hud-chat {
    position: relative;
    width: 100%;
    background: rgba(18, 18, 18, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid var(--neon, #ff6a00);
    color: var(--text-primary, #f0f0f0);
    clip-path: polygon(
        16px 0, calc(100% - 16px) 0, 100% 16px,
        100% calc(100% - 16px), calc(100% - 16px) 100%,
        16px 100%, 0 calc(100% - 16px), 0 16px
    );
    box-shadow:
        0 0 0 1px rgba(255, 106, 0, 0.2),
        0 0 28px rgba(255, 106, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hud-chat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%);
    pointer-events: none;
}

.hud-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 8px;
    position: relative;
    z-index: 1;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary, #f0f0f0);
}

.hud-brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--neon, #ff6a00);
    box-shadow: 0 0 10px rgba(255, 106, 0, 0.7);
    background: radial-gradient(circle at 35% 35%, #ffb066, #ff6a00 55%, #3a1a00);
}

.hud-dots {
    display: flex;
    gap: 4px;
}

.hud-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--neon, #ff6a00);
    opacity: 0.85;
}

.hud-messages {
    padding: 8px 20px 16px;
    min-height: 92px;
    position: relative;
    z-index: 1;
}

.hud-bubble {
    display: inline-block;
    max-width: 100%;
    border: 1px solid rgba(255, 106, 0, 0.85);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.25);
    background: rgba(10, 10, 10, 0.45);
}

.hud-typewriter::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 3px;
    background: var(--neon, #ff6a00);
    vertical-align: text-bottom;
    animation: hud-blink 0.9s step-end infinite;
}

@keyframes hud-blink {
    50% { opacity: 0; }
}

.hud-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 16px 16px;
    padding: 8px 10px 8px 18px;
    background: rgba(8, 8, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.hud-composer:focus-within {
    border-color: rgba(255, 106, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.hud-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #f5f5f5;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.4;
    padding: 8px 0;
}

.hud-input::placeholder {
    color: #6a6a6a;
}

.hud-icon-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--neon, #ff6a00);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(255, 106, 0, 0.6));
}

.hud-icon-btn:hover {
    background: rgba(255, 106, 0, 0.12);
}

.hud-icon-btn svg {
    width: 18px;
    height: 18px;
}

.hud-glow {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 58%;
    height: 10px;
    border-radius: 40px;
    background: #ff6a00;
    box-shadow:
        0 0 18px 6px rgba(255, 106, 0, 0.95),
        0 0 48px 18px rgba(255, 106, 0, 0.55),
        0 0 90px 32px rgba(255, 106, 0, 0.28);
    pointer-events: none;
    z-index: 0;
}

.hud-particles {
    position: absolute;
    inset: auto 0 -8px;
    height: 80px;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

.hud-particles i {
    position: absolute;
    bottom: 12px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ff9a4a;
    box-shadow: 0 0 8px #ff6a00;
    animation: hud-float 3.6s ease-in-out infinite;
    opacity: 0.85;
}

.hud-particles i:nth-child(1) { left: 18%; animation-delay: 0s; }
.hud-particles i:nth-child(2) { left: 32%; animation-delay: 0.4s; width: 2px; height: 2px; }
.hud-particles i:nth-child(3) { left: 48%; animation-delay: 0.9s; }
.hud-particles i:nth-child(4) { left: 61%; animation-delay: 0.2s; width: 4px; height: 4px; }
.hud-particles i:nth-child(5) { left: 74%; animation-delay: 1.1s; }
.hud-particles i:nth-child(6) { left: 40%; animation-delay: 1.6s; }
.hud-particles i:nth-child(7) { left: 55%; animation-delay: 2s; width: 2px; height: 2px; }
.hud-particles i:nth-child(8) { left: 28%; animation-delay: 2.4s; }

@keyframes hud-float {
    0%, 100% { transform: translateY(0); opacity: 0.2; }
    40% { transform: translateY(-28px); opacity: 1; }
    80% { transform: translateY(-10px); opacity: 0.4; }
}

.preview-content .hud-stage {
    height: 100%;
    min-height: 360px;
}
