/* Workshop canvas container + in-world overlays */

.workshop-area {
    position: relative;
    overflow: hidden;
}

#workshop-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

/* Context menu */
.context-menu {
    position: absolute;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: var(--sp-1) 0;
    min-width: 170px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
    z-index: 50;
}

.context-menu-item {
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-1);
    transition: background-color 0.12s ease;
}

.context-menu-item:hover {
    background: var(--bg-3);
}

.context-menu-item.danger {
    color: var(--bad);
}

/* Placement ghost indicator */
.placement-hint {
    position: absolute;
    top: var(--sp-3);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-1);
    border: 1px solid var(--accent-dim);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 10px var(--sp-4);
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    max-width: min(460px, 80vw);
}

.placement-hint .placement-reason {
    margin-top: var(--sp-1);
    font-size: 12px;
    line-height: 1.35;
    color: var(--bad, #e15a4e);
}

/* Floor-wide blockers (e.g. printer cap) get extra emphasis — moving the
   ghost around will never clear them. */
.placement-hint .placement-reason.is-global {
    font-weight: 600;
    border-top: 1px solid rgba(225, 90, 78, 0.35);
    padding-top: var(--sp-1);
}

.placement-hint .title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-size: 13px;
}

.placement-hint .keys {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-3);
    margin-top: var(--sp-1);
}

/* Setup overlay on canvas is drawn by canvas, but container hints live here */
.workshop-overlay {
    pointer-events: none;
}

/* Virtual joystick for mobile */
.virtual-joystick {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(22, 22, 25, 0.65);
    border: 2px solid var(--line-strong);
    z-index: 30;
}

.virtual-knob {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 769px) {
    .virtual-joystick {
        display: none;
    }
}
