/* One language question (static/games/lang/question_view.js), shared by the
   Dutch course and the Dutch quiz game. Colours come from the host's custom
   properties when it has them (--cmp-* in campaign posts), else these defaults. */
.lq { --lq-ink: var(--cmp-ink, #1f2440); --lq-card: var(--cmp-card, #fff); --lq-soft: var(--cmp-soft, #eef2ff);
    --lq-line: var(--cmp-line, #dfe3f5); --lq-go: #16a34a; --lq-bad: #e11d48; --lq-accent: #6366f1;
    color: var(--lq-ink); display: flex; flex-direction: column; gap: 0.7rem; }
.lq [hidden] { display: none !important; }
.lq button { font: inherit; color: inherit; }
.lq-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; }
.lq-label { background: var(--lq-accent); color: #fff; border-radius: 999px; padding: 0.1rem 0.65rem; font-weight: 600; }
.lq-progress { opacity: 0.75; font-weight: 600; margin-left: auto; }
.lq-prompt { font-size: 1.3rem; font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.lq-region { margin: -0.3rem 0 0; font-size: 0.9rem; opacity: 0.8; }
.lq-speak { border: 0; background: var(--lq-soft); border-radius: 999px; width: 2.2rem; height: 2.2rem; cursor: pointer; font-size: 1rem; flex: none; }
.lq-speak:hover { filter: brightness(0.95); }
.lq-help { margin: 0; font-size: 0.9rem; opacity: 0.75; }
.lq-note { margin: 0; color: var(--lq-bad); font-weight: 600; }

.lq-choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.55rem; }
.lq-option { display: flex; align-items: center; gap: 0.6rem; text-align: left; background: var(--lq-card); border: 2px solid var(--lq-line);
    border-radius: 14px; padding: 0.7rem 0.8rem; cursor: pointer; font-size: 1.05rem; box-shadow: 0 3px 0 var(--lq-line); transition: transform 0.08s; }
.lq-option:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--lq-accent); }
.lq-option:disabled { cursor: default; }
.lq-key { width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--lq-soft); display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; flex: none; }
.lq-option.is-picked { border-color: var(--lq-accent); }
.lq-option.is-right { border-color: var(--lq-go); background: #dcfce7; color: #14532d; }
.lq-option.is-wrong { border-color: var(--lq-bad); background: #ffe4e6; color: #881337; }

.lq-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.2rem; padding: 0.7rem 0.9rem; border-radius: 14px;
    border: 2px solid var(--lq-line); background: var(--lq-card); color: var(--lq-ink); }
.lq-input:focus { outline: none; border-color: var(--lq-accent); }
.lq.is-right .lq-input { border-color: var(--lq-go); }
.lq.is-wrong .lq-input { border-color: var(--lq-bad); }

.lq-tiles { display: flex; flex-direction: column; gap: 0.55rem; }
.lq-line { min-height: 3.2rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; padding: 0.5rem; border-radius: 14px;
    border: 2px dashed var(--lq-line); background: var(--lq-card); }
.lq-pool { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lq-tile { border: 0; border-radius: 10px; padding: 0.45rem 0.75rem; background: #fde68a; color: #713f12; font-weight: 600; font-size: 1.05rem;
    cursor: pointer; box-shadow: 0 3px 0 #f59e0b; }
.lq-tile.is-placed { background: #c7d2fe; color: #1e1b4b; box-shadow: 0 3px 0 #818cf8; }
.lq-tile:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
.lq-clear { align-self: flex-start; border: 0; background: none; text-decoration: underline; cursor: pointer; opacity: 0.75; padding: 0; }

.lq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.lq-col { display: flex; flex-direction: column; gap: 0.4rem; }
.lq-pair { text-align: left; border: 2px solid var(--lq-line); border-left: 6px solid var(--pair, var(--lq-line)); background: var(--lq-card);
    border-radius: 12px; padding: 0.5rem 0.7rem; cursor: pointer; overflow-wrap: anywhere; }
.lq-pair.is-active { border-color: var(--lq-accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); }
.lq-pair.is-matched { background: var(--lq-soft); }

.lq-feedback { border-radius: 14px; padding: 0.7rem 0.9rem; line-height: 1.5; }
.lq-feedback.is-right { background: #dcfce7; color: #14532d; }
.lq-feedback.is-wrong { background: #ffe4e6; color: #881337; }
.lq-feedback p { margin: 0.2rem 0; }
.lq-verdict { font-weight: 700; font-size: 1.1rem; }
.lq-answer { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.lq-answer .lq-speak, .lq-feedback .lq-speak { background: rgba(255, 255, 255, 0.6); width: 1.9rem; height: 1.9rem; }
.lq-explain { opacity: 0.95; }
.lq-why { border: 0; background: rgba(255, 255, 255, 0.65); border-radius: 999px; padding: 0.25rem 0.8rem; cursor: pointer; font-weight: 600; margin-top: 0.3rem; }

@media (max-width: 520px) {
    .lq-prompt { font-size: 1.15rem; }
    .lq-cols { gap: 0.4rem; }
    .lq-pair { padding: 0.45rem 0.5rem; font-size: 0.92rem; }
}
:root[data-theme="dark"] .lq-option.is-right, :root[data-theme="dark"] .lq-feedback.is-right { background: #14532d; color: #dcfce7; }
:root[data-theme="dark"] .lq-option.is-wrong, :root[data-theme="dark"] .lq-feedback.is-wrong { background: #881337; color: #ffe4e6; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lq-option.is-right, :root:not([data-theme="light"]) .lq-feedback.is-right { background: #14532d; color: #dcfce7; }
    :root:not([data-theme="light"]) .lq-option.is-wrong, :root:not([data-theme="light"]) .lq-feedback.is-wrong { background: #881337; color: #ffe4e6; }
}
