/* ─── Container ─────────────────────────────────────────────────────── */
#game-root .cu-wrap {
    padding: 0.75rem;
    max-width: 460px; 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 .cu-header {
    display: flex; align-items: stretch; gap: 0.4rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
#game-root .cu-pill {
    flex: 1 1 0; min-width: 80px;
    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 .cu-pill-icon {
    font-size: 1.4rem; line-height: 1;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
#game-root .cu-pill-body { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
#game-root .cu-lbl {
    display: block;
    font-size: 0.62rem; letter-spacing: 0.08em;
    color: #8a5a1a; text-transform: uppercase; font-weight: 700;
}
#game-root .cu-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 .cu-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 .cu-mute {
    background: transparent; border: 0;
    width: 28px; height: 28px; cursor: pointer;
    font-size: 1rem; padding: 0;
    flex: 0 0 auto;
}
#game-root .cu-vol {
    width: 64px; cursor: pointer;
    accent-color: var(--jul-red-700, #8B0000);
}

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

/* ─── Overlay card (start / end screens) ────────────────────────────── */
#game-root .cu-overlay {
    position: absolute; inset: 0;
    display: flex; justify-content: center; align-items: center;
    text-align: center; padding: 1rem;
    background: rgba(0,0,0,0.18);
    pointer-events: none;
}
#game-root .cu-overlay[hidden] { display: none; }
#game-root .cu-overlay > .cu-card {
    pointer-events: auto;
    background: linear-gradient(180deg, #fff8e1 0%, #fbf0c8 100%);
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.7);
    padding: 1rem 1.2rem;
    max-width: 86%;
    display: flex; flex-direction: column; gap: 0.55rem;
    color: var(--jul-red-700, #8B0000);
}
#game-root .cu-overlay .cu-card h2 {
    color: var(--jul-red-700, #8B0000);
    margin: 0; font-size: 1.4rem;
}
#game-root .cu-overlay .cu-card p {
    margin: 0; color: #3a2210; font-size: 0.95rem; line-height: 1.4;
}
#game-root .cu-overlay .cu-card .jul-btn {
    align-self: center; margin-top: 0.2rem;
}

/* ─── Hint ──────────────────────────────────────────────────────────── */
#game-root .cu-hint {
    text-align: center; font-size: 0.85rem;
    color: #fbe7c2; margin: 0.6rem 0 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
