/* ===== BOTTOM AREA - Comms Station ===== */
#bottom-area {
    position: relative;
    z-index: 10;
    padding: 0 16px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    min-height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

/* Bottom edge accent line */
#bottom-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--violet-dim) 20%,
        var(--violet) 50%,
        var(--violet-dim) 80%,
        transparent
    );
    opacity: 0.3;
}

/* Shop Button - Black Market Access */
.shop-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background:
        linear-gradient(180deg,
            var(--graphite) 0%,
            var(--slate) 100%
        );
    border: 1px solid var(--steel);
    border-left: 3px solid var(--violet-dim);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 var(--inner-light),
        0 4px 16px var(--shadow-heavy);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Diagonal stripe texture */
.shop-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(168, 85, 247, 0.03) 4px,
        rgba(168, 85, 247, 0.03) 8px
    );
    pointer-events: none;
}

.shop-button:hover {
    border-color: var(--violet-dim);
    border-left-color: var(--violet);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 var(--inner-light),
        0 6px 24px rgba(168, 85, 247, 0.2),
        0 0 20px rgba(168, 85, 247, 0.1);
}

.shop-button:active {
    transform: translateY(0);
}

.shop-button-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    z-index: 1;
}

.shop-button:hover .shop-button-label {
    color: var(--violet-bright);
}

/* Dialogue Box - Encrypted Comms */
#dialogue-box {
    width: 100%;
    max-width: 360px;
    background:
        linear-gradient(180deg,
            rgba(24, 24, 42, 0.98) 0%,
            rgba(16, 16, 24, 0.98) 100%
        );
    border: 1px solid var(--steel);
    border-top: 2px solid var(--violet-dim);
    border-radius: 4px;
    padding: 14px 18px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        inset 0 1px 0 var(--inner-light),
        0 8px 32px var(--shadow-heavy),
        0 0 30px rgba(168, 85, 247, 0.05);
    position: relative;
}

#dialogue-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Terminal cursor effect */
#dialogue-box::after {
    content: '';
    position: absolute;
    bottom: 14px;
    right: 18px;
    width: 8px;
    height: 14px;
    background: var(--violet);
    opacity: 0;
    animation: cursorBlink 1s step-end infinite;
}

#dialogue-box.visible::after {
    opacity: 1;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.dialogue-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.dialogue-indicator {
    width: 8px;
    height: 8px;
    background: var(--violet);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--violet-glow);
    animation: indicatorPulse 1.5s ease-in-out infinite;
}

@keyframes indicatorPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--violet-glow); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--violet-glow); }
}

.dialogue-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--violet);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dialogue-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    padding-right: 20px;
}

