/* ─── Container ─────────────────────────────────────────────────────── */
#game-root .bq-wrap {
    position: relative;
    padding: 0.75rem;
    max-width: 540px;
    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 pills ─────────────────────────────────────────────────────── */
#game-root .bq-header { display: flex; align-items: stretch; gap: 0.4rem; margin-bottom: 0.55rem; }
#game-root .bq-pill {
    flex: 1 1 0; min-width: 0;
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.32rem 0.6rem;
    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 .bq-pill-icon { font-size: 1.15rem; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15)); }
#game-root .bq-pill-body { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
#game-root .bq-lbl { font-size: 0.58rem; letter-spacing: 0.08em; color: #8a5a1a; text-transform: uppercase; font-weight: 700; }
#game-root .bq-val {
    font-size: 1.15rem; 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);
}
#game-root .bq-audio {
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0.28rem 0.45rem;
    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 .bq-mute { background: transparent; border: 0; width: 24px; height: 24px; cursor: pointer; font-size: 0.9rem; padding: 0; }
#game-root .bq-vol { width: 48px; cursor: pointer; accent-color: var(--jul-red-700, #8B0000); }

/* ─── Mode chips ────────────────────────────────────────────────────── */
#game-root .bq-modes { display: flex; gap: 0.3rem; margin-bottom: 0.6rem; }
#game-root .bq-mode {
    flex: 1 1 0;
    padding: 0.32rem 0.55rem;
    font-size: 0.8rem; font-weight: 700;
    color: #fde9a8;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255, 221, 100, 0.18);
    border-radius: 999px;
    cursor: pointer; letter-spacing: 0.02em;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
#game-root .bq-mode:hover:not(.bq-mode--active) { background: rgba(0,0,0,0.42); color: #fff8d0; }
#game-root .bq-mode--active {
    background: linear-gradient(180deg, #fbd24a 0%, #d99b1e 100%);
    color: #4a1a05; border-color: #b8870b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.3);
}

/* ─── Board (watercolor) + panel ────────────────────────────────────── */
#game-root .bq-board {
    position: relative;
    border: 3px solid #ffd66b;
    border-radius: 14px; overflow: hidden;
    background-image: url('/games/jule-billedquiz/background.jpg');
    background-size: cover; background-position: center;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.4), inset 0 0 18px rgba(0,0,0,0.3);
    padding: 0.9rem;
}
#game-root .bq-panel {
    position: relative;
    background: rgba(255, 250, 235, 0.93);
    border: 1px solid rgba(150, 95, 40, 0.4);
    border-radius: 12px;
    padding: 1rem 0.9rem 0.9rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 0 0 4px rgba(214, 160, 90, 0.16);
    text-align: center;
}

/* ─── Question ──────────────────────────────────────────────────────── */
#game-root .bq-cat {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    background: var(--jul-red-700, #8B0000);
    color: #fff8d0;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#game-root .bq-cat-emoji { font-size: 0.95rem; }
#game-root .bq-emojis {
    font-size: 3.4rem; line-height: 1.1;
    padding: 0.6rem 0 0.3rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}
#game-root .bq-q { margin: 0 0 0.8rem; color: #5a3010; font-size: 0.95rem; font-weight: 600; }

/* ─── Options ───────────────────────────────────────────────────────── */
#game-root .bq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
#game-root .bq-opt {
    display: flex; align-items: center; gap: 0.5rem;
    min-height: 52px;
    padding: 0.5rem 0.7rem;
    text-align: left;
    background: linear-gradient(180deg, #ffffff 0%, #fbf4e3 100%);
    border: 1.5px solid rgba(120, 80, 40, 0.4);
    border-radius: 12px;
    color: #3a2208;
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 4px rgba(0,0,0,0.18);
    transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.2s ease;
}
#game-root .bq-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: #b8870b; background: linear-gradient(180deg, #fff8e1 0%, #f5e6bd 100%); }
#game-root .bq-opt:active:not(:disabled) { transform: translateY(1px); }
#game-root .bq-opt:disabled { cursor: default; }
#game-root .bq-opt-key {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(139, 0, 0, 0.12);
    color: var(--jul-red-700, #8B0000);
    border-radius: 6px;
    font-size: 0.75rem; font-weight: 800;
}
#game-root .bq-opt-text { flex: 1 1 auto; line-height: 1.2; }
#game-root .bq-opt--removed { opacity: 0.28; filter: grayscale(0.6); }
#game-root .bq-opt--correct {
    background: linear-gradient(180deg, #86efac 0%, #16a34a 100%) !important;
    border-color: #14532d !important; color: #08300f !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 12px rgba(34,197,94,0.6) !important;
    animation: bq-pop 0.4s ease;
}
#game-root .bq-opt--correct .bq-opt-key { background: rgba(255,255,255,0.4); color: #08300f; }
#game-root .bq-opt--wrong {
    background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%) !important;
    border-color: #991b1b !important; color: #fff !important;
    animation: bq-shake 0.4s ease;
}
#game-root .bq-opt--wrong .bq-opt-key { background: rgba(255,255,255,0.3); color: #fff; }
@keyframes bq-pop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes bq-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ─── Tools / progress ──────────────────────────────────────────────── */
#game-root .bq-tools { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
#game-root .bq-progress { margin: 0.7rem 0 0; font-size: 0.82rem; color: #8a5a2a; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
#game-root .bq-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-size: 0.88rem; font-weight: 700;
    border-radius: 999px; cursor: pointer;
    transition: transform 0.08s ease, background 0.2s ease, opacity 0.2s ease;
}
#game-root .bq-btn--ghost {
    background: rgba(255, 248, 225, 0.95);
    color: #5a3010; border: 1px solid rgba(0,0,0,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 4px rgba(0,0,0,0.18);
}
#game-root .bq-btn--ghost:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
#game-root .bq-btn--ghost:disabled { opacity: 0.4; cursor: default; }
#game-root .bq-btn--primary {
    background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
    color: #fff; border: 1px solid #7f1d1d;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.3);
}
#game-root .bq-btn--primary:hover { background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%); transform: translateY(-1px); }

/* ─── Result card ───────────────────────────────────────────────────── */
#game-root .bq-result { padding: 1rem 0.5rem; animation: bq-pop 0.4s ease; }
#game-root .bq-result-emoji { font-size: 3rem; line-height: 1; }
#game-root .bq-result h2 { margin: 0.4rem 0 0.3rem; color: var(--jul-red-700, #8B0000); font-size: 1.4rem; }
#game-root .bq-result-score { margin: 0 0 1rem; color: #3a2208; font-size: 1.05rem; font-weight: 700; }

/* ─── Confetti ──────────────────────────────────────────────────────── */
#game-root .bq-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#game-root .bq-confetti-piece {
    position: absolute; top: 22%; left: 50%;
    width: 8px; height: 12px; border-radius: 2px;
    animation: bq-confetti-fall 1.4s ease-out forwards;
}
@keyframes bq-confetti-fall {
    0% { transform: translate(0,0) rotate(0); opacity: 1; }
    100% { transform: translate(var(--dx), 280px) rotate(var(--rot)); opacity: 0; }
}

/* ─── Desktop scale-up ──────────────────────────────────────────────── */
@media (min-width: 720px) {
    #game-root .bq-wrap { max-width: 640px; padding: 1rem; }
    #game-root .bq-val { font-size: 1.3rem; }
    #game-root .bq-pill-icon { font-size: 1.3rem; }
    #game-root .bq-mode { padding: 0.42rem 0.7rem; font-size: 0.88rem; }
    #game-root .bq-emojis { font-size: 4.2rem; }
    #game-root .bq-opt { font-size: 1rem; min-height: 58px; }
    #game-root .bq-q { font-size: 1.05rem; }
}
@media (min-width: 1024px) {
    #game-root .bq-wrap { max-width: 720px; padding: 1.15rem; }
    #game-root .bq-emojis { font-size: 4.8rem; }
}

/* ─── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    #game-root .bq-wrap { padding: 0.6rem; }
    #game-root .bq-header { flex-wrap: wrap; gap: 0.3rem; }
    #game-root .bq-val { font-size: 1rem; }
    #game-root .bq-options { grid-template-columns: 1fr; }
    #game-root .bq-emojis { font-size: 2.8rem; }
    #game-root .bq-opt { min-height: 48px; }
}
