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

/* ─── HUD: pill cards ───────────────────────────────────────────────── */
#game-root .pk-header {
    display: flex; align-items: stretch; gap: 0.4rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
#game-root .pk-pill {
    flex: 1 1 0; min-width: 90px;
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.7rem;
    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 .pk-pill-icon {
    font-size: 1.4rem; line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
#game-root .pk-pill-body { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
#game-root .pk-lbl {
    display: block;
    font-size: 0.62rem; letter-spacing: 0.08em;
    color: #8a5a1a; text-transform: uppercase; font-weight: 700;
}
#game-root .pk-val {
    font-size: 1.1rem; font-weight: 800;
    color: var(--jul-red-700, #8B0000);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    white-space: nowrap;
}

/* Audio control as a tight pill on the right */
#game-root .pk-audio {
    flex: 0 0 auto;
    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 .pk-mute {
    background: transparent; border: 0;
    width: 28px; height: 28px; cursor: pointer;
    font-size: 1rem; padding: 0;
    flex: 0 0 auto;
}
#game-root .pk-vol {
    width: 64px; cursor: pointer;
    accent-color: var(--jul-red-700, #8B0000);
}

/* ─── Canvas ────────────────────────────────────────────────────────── */
#game-root .pk-stage {
    aspect-ratio: 1300/540;
    border: 3px solid #ffd66b;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 18px rgba(0,0,0,0.35);
}
#game-root #pk-canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }

/* ─── Hint + actions ────────────────────────────────────────────────── */
#game-root .pk-hint {
    text-align: center; font-size: 0.85rem;
    color: #fbe7c2; margin: 0.6rem 0 0.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
#game-root .pk-actions { display: flex; justify-content: center; }
#game-root .pk-actions .jul-btn { margin: 0; }
