/* ─── Cabinet wrap ──────────────────────────────────────────────────── */
#game-root .pj-wrap {
    padding: 0.75rem;
    max-width: 720px;
    margin: 0 auto;
    background: linear-gradient(180deg, #2a1010 0%, #5a1818 100%);
    border-radius: var(--jul-radius-lg, 20px);
    user-select: none;
    touch-action: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ─── Header: audio pill + action buttons ───────────────────────────── */
#game-root .pj-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.5rem;
}
#game-root .pj-audio {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    background: linear-gradient(180deg, #fff8e1 0%, #fbf0c8 100%);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 4px rgba(0,0,0,0.18);
}
#game-root .pj-mute {
    background: transparent; border: 0;
    width: 28px; height: 28px; cursor: pointer;
    font-size: 1rem; padding: 0;
    flex: 0 0 auto;
}
#game-root .pj-vol {
    width: 64px; cursor: pointer;
    accent-color: var(--jul-red-700, #8B0000);
}
#game-root .pj-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
#game-root .pj-btn {
    padding: 0.45rem 0.85rem; border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.18);
    background: linear-gradient(180deg, #fff8e1 0%, #fbf0c8 100%);
    color: var(--jul-red-700, #8B0000);
    font-size: 0.85rem; cursor: pointer; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 4px rgba(0,0,0,0.18);
}
#game-root .pj-btn--primary {
    background: linear-gradient(180deg, #c1272d 0%, #8B0000 100%);
    color: #fff; border-color: rgba(0,0,0,0.3);
}

/* ─── Stage (SVG canvas) ────────────────────────────────────────────── */
#game-root .pj-stage {
    border: 3px solid #ffd66b;
    border-radius: 10px;
    overflow: hidden;
    background: #2a1010;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 18px rgba(0,0,0,0.35);
}
#game-root #pj-svg {
    display: block; width: 100%; height: auto;
    touch-action: none;
}

/* ─── Decoration tray ───────────────────────────────────────────────── */
#game-root .pj-tray {
    margin-top: 0.6rem;
    background: linear-gradient(180deg, #fff8e1 0%, #fbf0c8 100%);
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 4px rgba(0,0,0,0.18);
}
#game-root .pj-tray__label {
    margin: 0 0 0.5rem;
    font-size: 0.78rem; color: #8a5a1a;
    text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
#game-root .pj-tray__list {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
}
#game-root .pj-tray__item {
    width: 56px; height: 56px;
    background-color: #fff;
    background-size: 80% 80%;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    cursor: grab;
    padding: 0;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 100ms ease, box-shadow 100ms ease;
}
#game-root .pj-tray__item:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.25);
}
#game-root .pj-tray__item:active {
    transform: scale(0.92); cursor: grabbing;
}
#game-root .pj-orn { pointer-events: all; }
