/* WC IQ Žaidimai — frontend. Stilius suderintas su Kartuvėmis / Žodžių mūšiu. */
.wciq, .wciq-top, .wciq-busena {
    --wciq-accent: #6c5ce7; --wciq-amber: #ffa726; --wciq-soft: #f4f3fb; --wciq-border: #e4e2f0;
    --wciq-text: #2b2b3a; --wciq-muted: #86859a; --wciq-red: #e74c3c; --wciq-green: #27ae60;
    font-family: inherit; color: var(--wciq-text); box-sizing: border-box;
}
.wciq *, .wciq-top *, .wciq-review * { box-sizing: border-box; }

.wciq { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--wciq-border); border-radius: 16px; padding: 22px; position: relative; }
.wciq--msg { text-align: center; max-width: 640px; }
.wciq__head { text-align: center; margin-bottom: 14px; }
.wciq__title { font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--wciq-amber); text-transform: uppercase; }
.wciq__panel { text-align: center; }
.wciq__panel h3 { margin: 0 0 10px; font-size: 1.3rem; }
.wciq__big { font-size: 2.6rem; margin-bottom: 6px; color: var(--wciq-accent); }
.wciq__ico-lg { width: 54px; height: 54px; display: block; margin: 0 auto; }
.wciq__muted { color: var(--wciq-muted); font-size: .9rem; }
.wciq__badge { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--wciq-accent); background: var(--wciq-soft); border: 1px solid var(--wciq-border); border-radius: 999px; padding: 4px 14px; margin: 0 0 12px; }
.wciq__rules { list-style: none; padding: 0; margin: 0 auto 16px; max-width: 560px; text-align: left; }
.wciq__rules li { position: relative; padding: 6px 0 6px 22px; font-size: .95rem; line-height: 1.45; }
.wciq__rules li::before { content: "•"; position: absolute; left: 6px; color: var(--wciq-accent); font-weight: 700; }
.wciq__btn { background: var(--wciq-accent); color: #fff; border: none; border-radius: 10px; padding: 12px 26px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s, opacity .15s; }
.wciq__btn:hover { background: var(--wciq-amber); }
.wciq__btn:disabled { opacity: .45; cursor: not-allowed; background: var(--wciq-accent); }

.wciq__loading { align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--wciq-muted); }
.wciq__spinner { width: 20px; height: 20px; border: 3px solid var(--wciq-border); border-top-color: var(--wciq-accent); border-radius: 50%; animation: wciq-spin .8s linear infinite; }
@keyframes wciq-spin { to { transform: rotate(360deg); } }

/* Būsenos juosta žaidimo metu */
.wciq__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font-size: .92rem; color: var(--wciq-muted); }
.wciq__progress { font-weight: 700; color: var(--wciq-accent); background: var(--wciq-soft); border: 1px solid var(--wciq-border); border-radius: 999px; padding: 3px 12px; }
.wciq__timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.wciq__skip { margin-left: auto; background: #fff; border: 1.5px solid var(--wciq-border); color: var(--wciq-text); border-radius: 8px; padding: 6px 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.wciq__skip:hover { border-color: var(--wciq-amber); color: var(--wciq-amber); }
.wciq__flash { text-align: center; font-weight: 700; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; }
.wciq__flash--ok { background: #e8f7ee; color: var(--wciq-green); }
.wciq__flash--err { background: #fdecea; color: var(--wciq-red); }
.wciq__flash--info { background: var(--wciq-soft); color: var(--wciq-muted); }

/* Santrauka */
.wciq__score { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.wciq__score > div { background: var(--wciq-soft); border: 1px solid var(--wciq-border); border-radius: 12px; padding: 10px 18px; min-width: 110px; display: flex; flex-direction: column; align-items: center; }
.wciq__score span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wciq-muted); font-weight: 700; }
.wciq__score strong { font-size: 1.6rem; color: var(--wciq-accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.wciq__score small { color: var(--wciq-muted); font-size: .75rem; }

/* Ankstesni žaidimai */
.wciq__past { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--wciq-border); }
.wciq__past-form label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.wciq__past-form select, .wciq-top__select { font-family: inherit; font-size: .85rem; font-weight: 700; color: var(--wciq-amber); background: #fff; border: 1.5px solid var(--wciq-border); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.wciq__past-title { text-align: center; margin: 18px 0 6px; }

/* ── Peržiūra po žaidimo ─────────────────────────────────────────────── */
.wciq-review { margin-top: 18px; text-align: left; }
.wciq-review__title { margin: 0 0 10px; font-size: 1.05rem; }
.wciq-review__item { border: 1px solid var(--wciq-border); border-left: 4px solid var(--wciq-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.wciq-review__item.is-right { border-left-color: var(--wciq-green); }
.wciq-review__item.is-wrong { border-left-color: var(--wciq-red); }
.wciq-review__head { display: flex; gap: 10px; align-items: flex-start; }
.wciq-review__n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--wciq-soft); color: var(--wciq-accent); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.wciq-review__q { flex: 1; font-weight: 600; }
.wciq-review__st { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.is-right .wciq-review__st { color: var(--wciq-green); }
.is-wrong .wciq-review__st { color: var(--wciq-red); }
.wciq-review img[data-full] { cursor: zoom-in; }

.wciq-review__scene { position: relative; margin-top: 10px; display: inline-block; max-width: 100%; border-radius: 10px; overflow: hidden; }
.wciq-review__scene img { display: block; max-width: 100%; height: auto; }
.wciq-review__box { position: absolute; border: 3px solid var(--wciq-red); border-radius: 6px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }

.wciq-review__chain { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.wciq-review__link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; max-width: 140px; }
.wciq-review__link img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; }
.wciq-review__link small { color: var(--wciq-muted); font-size: .75rem; }
.wciq-review__link strong { color: var(--wciq-accent); }
.wciq-review__arrow { color: var(--wciq-muted); font-weight: 700; }

.wciq-review__img img { max-width: 100%; max-height: 320px; border-radius: 10px; margin-top: 10px; }
.wciq-review__opts { list-style: none; margin: 10px 0 0; padding: 0; }
.wciq-review__opts li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--wciq-border); border-radius: 8px; margin-bottom: 6px; font-size: .95rem; }
.wciq-review__opts li img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.wciq-review__opts li.is-correct { background: #e8f7ee; border-color: #b8e2c6; }
.wciq-review__opts li.is-picked-wrong { background: #fdecea; border-color: #f4c2bc; }
.wciq-review__letter { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--wciq-soft); color: var(--wciq-accent); font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.wciq-review__you { margin-left: auto; font-size: .75rem; color: var(--wciq-muted); font-style: normal; }
.wciq-review__ok { color: var(--wciq-green); }
.wciq-review__no { color: var(--wciq-red); }
.wciq-review__opts li:not(.is-picked) .wciq-review__ok { margin-left: auto; }

/* ── SURASK MANE ─────────────────────────────────────────────────────── */
.wciq-find { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 10px; }
.wciq-find__ref { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--wciq-border); border-radius: 10px; background: #fff; cursor: zoom-in; }
.wciq-find__txt { display: flex; flex-direction: column; }
.wciq-find__txt span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wciq-muted); font-weight: 700; }
.wciq-find__txt strong { font-size: 1.1rem; }
.wciq-shots { display: flex; flex-direction: column; align-items: center; padding: 4px 12px; border: 2px solid var(--wciq-border); border-radius: 10px; background: #fff; margin-left: 6px; }
.wciq-shots span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--wciq-muted); font-weight: 700; }
.wciq-shots strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--wciq-accent); }
.wciq-shots.is-low { border-color: var(--wciq-red); }
.wciq-shots.is-low strong { color: var(--wciq-red); }

.wciq-zoom { position: relative; }
.wciq-zoom__vp { position: relative; overflow: hidden; background: #1f1f2b; border-radius: 12px; touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.wciq-zoom__vp.is-dragging { cursor: grabbing; }
.wciq-zoom__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.wciq-zoom__img { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.wciq-zoom__marks { position: absolute; inset: 0; pointer-events: none; --inv: 1; }
.wciq-zoom__mark { position: absolute; }
.wciq-zoom__mark.is-miss { width: 34px; height: 34px; margin: -17px 0 0 -17px; transform: scale(var(--inv)); }
.wciq-zoom__mark.is-miss::before, .wciq-zoom__mark.is-miss::after { content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 5px; margin: -2.5px 0 0 -15px; background: var(--wciq-red); border-radius: 3px; box-shadow: 0 0 0 1.5px #fff; transform: rotate(45deg); animation: wciq-pop .25s ease-out; }
.wciq-zoom__mark.is-miss::after { transform: rotate(-45deg); }
.wciq-zoom__mark.is-out { border: calc(4px * var(--inv)) solid var(--wciq-red); border-radius: 50%; box-shadow: 0 0 0 calc(3px * var(--inv)) #fff, 0 0 0 9999px rgba(0, 0, 0, .35); animation: wciq-pop .3s ease-out; }
.wciq-zoom__mark.is-hit { border: calc(4px * var(--inv)) solid var(--wciq-green); border-radius: 50%; box-shadow: 0 0 0 calc(3px * var(--inv)) #fff, 0 0 0 9999px rgba(0, 0, 0, .35); animation: wciq-pop .3s ease-out; }
@keyframes wciq-pop { from { opacity: 0; transform: scale(.4); } }
.wciq-zoom__tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.wciq-zoom__tools button { width: 40px; height: 40px; border-radius: 10px; border: none; background: rgba(255, 255, 255, .92); color: var(--wciq-text); font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); line-height: 1; font-family: inherit; }
.wciq-zoom__tools button:hover { background: #fff; color: var(--wciq-accent); }
.wciq-zoom__hint { text-align: center; font-size: .78rem; color: var(--wciq-muted); margin-top: 6px; }

/* Per visą ekraną (CSS — veikia ir iPhone) */
html.wciq-noscroll, html.wciq-noscroll body { overflow: hidden !important; }
.wciq--full .wciq__game { position: fixed; inset: 0; z-index: 999999; background: #14141c; padding: 10px; display: flex !important; flex-direction: column; }
.wciq--full .wciq__bar { color: #ddd; margin-bottom: 8px; }
.wciq--full .wciq__skip { background: #2a2a38; color: #fff; border-color: #3a3a4a; }
.wciq--full .wciq__board { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wciq--full .wciq-find { margin-bottom: 6px; color: #fff; }
.wciq--full .wciq-find__txt span { color: #aaa; }
.wciq--full .wciq-zoom { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.wciq--full .wciq-zoom__vp { flex: 1; height: auto !important; border-radius: 8px; }
.wciq--full .wciq-zoom__hint { display: none; }
.wciq--full .wciq__flash { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); z-index: 3; }

/* ── ŽODŽIŲ GRANDINĖLĖS ──────────────────────────────────────────────── */
.wciq-chainplay { text-align: center; }
.wciq-chainplay__links { display: flex; align-items: stretch; justify-content: center; gap: 8px; margin-bottom: 14px; }
.wciq-link { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; background: var(--wciq-soft); border: 1px solid var(--wciq-border); border-radius: 12px; padding: 10px; }
.wciq-link__img { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #fff; }
.wciq-link__img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.wciq-link__text { font-weight: 600; font-size: .95rem; line-height: 1.3; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 2.6em; }
.wciq-link__input { width: 100%; margin-top: auto; padding: 10px 8px; font-size: 1rem; font-weight: 700; text-align: center; border: 2px solid var(--wciq-border); border-radius: 8px; font-family: inherit; background: #fff; color: var(--wciq-text); }
.wciq-link__input:focus { outline: none; border-color: var(--wciq-accent); }
.wciq-link__arrow { align-self: center; color: var(--wciq-muted); font-weight: 700; font-size: 1.2rem; }
.wciq-chainplay__msg { min-height: 1.5em; font-weight: 700; margin-bottom: 10px; }
.wciq-chainplay__msg.is-err { color: var(--wciq-red); }
.wciq-chainplay__msg.is-ok { color: var(--wciq-green); }
.wciq-chainplay.is-solved .wciq-link__input { border-color: var(--wciq-green); background: #e8f7ee; }
.wciq-chainplay.is-shake .wciq-chainplay__links { animation: wciq-shake .35s; }
@keyframes wciq-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 640px) {
    .wciq-chainplay__links { flex-wrap: wrap; }
    .wciq-link { flex: 1 1 calc(50% - 8px); }
    .wciq-link__arrow { display: none; }
}

/* ── QUIZ ────────────────────────────────────────────────────────────── */
.wciq-q { text-align: left; }
.wciq-q__img { text-align: center; margin-bottom: 12px; }
.wciq-q__img img { max-width: 100%; max-height: 320px; border-radius: 12px; cursor: zoom-in; }
.wciq-q__text { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.wciq-q__hint { font-size: .85rem; color: var(--wciq-amber); font-weight: 600; margin: 0 0 8px; }
.wciq-q__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 16px; }
@media (max-width: 640px) { .wciq-q__opts { grid-template-columns: 1fr; } }
.wciq-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--wciq-border); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.wciq-opt:hover { border-color: var(--wciq-accent); }
.wciq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wciq-opt.is-checked { border-color: var(--wciq-accent); background: var(--wciq-soft); }
.wciq-opt__letter { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--wciq-soft); color: var(--wciq-accent); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.wciq-opt.is-checked .wciq-opt__letter { background: var(--wciq-accent); color: #fff; }
.wciq-opt__img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.wciq-opt__text { font-weight: 600; }
.wciq-q .wciq__btn { display: block; margin: 0 auto; }

/* ── LYDERIŲ LENTELĖ ─────────────────────────────────────────────────── */
.wciq-top { max-width: 640px; margin: 0 auto; border: 1px solid var(--wciq-border); border-radius: 16px; overflow: hidden; background: #fff; }
.wciq-top__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; background: var(--wciq-soft); border-bottom: 1px solid var(--wciq-border); }
.wciq-top__title { font-weight: 700; font-size: 1.05rem; }
.wciq-top__scroll { overflow-x: auto; }
.wciq-top__table { width: 100%; border-collapse: collapse; margin: 0; }
.wciq-top__table thead th { font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wciq-muted); padding: 10px; text-align: left; border-bottom: 1px solid var(--wciq-border); background: #fff; }
.wciq-top__table tbody td { padding: 10px; font-size: .95rem; border-bottom: 1px solid var(--wciq-border); vertical-align: middle; background: #fff; }
.wciq-top__table tbody tr:last-child td { border-bottom: none; }
.wciq-top__table tr.is-me td { background: rgba(108, 92, 231, .07); }
.wciq-top__table .wciq-c { text-align: center; font-variant-numeric: tabular-nums; }
.wciq-top__empty { padding: 28px 18px; text-align: center; color: var(--wciq-muted); font-size: .9rem; }
.wciq-top__legend { margin: 0; padding: 8px 18px; font-size: .78rem; color: var(--wciq-muted); border-top: 1px solid var(--wciq-border); }
.wciq-medal { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: .8rem; background: var(--wciq-soft); color: var(--wciq-text); }
.wciq-medal--gold { background: #f6c945; color: #5a4300; }
.wciq-medal--silver { background: #cfd4da; color: #3c4248; }
.wciq-medal--bronze { background: #d99a63; color: #4a2a0c; }
.wciq-micons { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: middle; }
.wciq-mico { width: 18px; height: 18px; object-fit: contain; }

/* ── BŪSENOS KORTELĖ ─────────────────────────────────────────────────── */
.wciq-busena { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--wciq-border); border-radius: 12px; background: #fff; }
.wciq-busena__ico { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 30px; }
.wciq-busena.is-done .wciq-busena__ico { background: #e8f7ee; color: var(--wciq-green); }
.wciq-busena.is-open .wciq-busena__ico { background: #fff4e5; color: var(--wciq-amber); }
.wciq-busena__txt { display: flex; flex-direction: column; flex: 1; }
.wciq-busena__label { font-weight: 700; }
.wciq-busena__txt small { color: var(--wciq-muted); }
.wciq-busena__btn { background: var(--wciq-accent); color: #fff !important; border-radius: 8px; padding: 8px 14px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.wciq-busena__btn:hover { background: var(--wciq-amber); }

/* ── Lightbox ────────────────────────────────────────────────────────── */
.wciq-lightbox { position: fixed; inset: 0; z-index: 1000000; background: rgba(10, 10, 16, .92); display: flex; align-items: center; justify-content: center; padding: 56px 16px 44px; cursor: zoom-out; animation: wciq-fade .15s ease-out; }
.wciq-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.wciq-lightbox__close { position: absolute; right: 14px; top: 12px; width: 46px; height: 46px; border-radius: 50%; border: none; background: #fff; color: #111; font-size: 1.3rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.wciq-lightbox__close:hover, .wciq-lightbox__close:focus-visible { background: #f1f1f1; outline: 3px solid rgba(255, 255, 255, .5); }
.wciq-lightbox__hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: rgba(255, 255, 255, .7); font-size: .8rem; pointer-events: none; }
html.wciq-lb-open, html.wciq-lb-open body { overflow: hidden; }
@keyframes wciq-fade { from { opacity: 0; } to { opacity: 1; } }

/* Quiz: varianto nuotrauka su 🔍 didinimo mygtuku */
.wciq-opt__media { position: relative; flex: 0 0 auto; display: inline-flex; }
.wciq .wciq-opt__zoom { all: unset; box-sizing: border-box; position: absolute; right: -8px; bottom: -8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--wciq-accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: zoom-in; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .12s; }
.wciq .wciq-opt__zoom svg { display: block; width: 16px; height: 16px; min-width: 16px; fill: none; stroke: #fff; }
.wciq .wciq-opt__zoom:hover, .wciq .wciq-opt__zoom:focus-visible { transform: scale(1.12); background: var(--wciq-accent); color: #fff; }
.wciq .wciq-opt__zoom:focus-visible { outline: 2px solid var(--wciq-accent); outline-offset: 2px; }
.wciq-lightbox .wciq-lightbox__close { all: unset; box-sizing: border-box; position: absolute; right: 14px; top: 12px; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111; font-size: 1.3rem; line-height: 46px; text-align: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
