/* Language Quest – styles of the interaction types (Section 6). */

/* ================================================================ paged tray */
.lq-tray.lq-paged { justify-content: center; }
.lq-track { display: flex; gap: 10px; align-items: center; justify-content: center; min-width: 0; flex: 1 1 auto; height: 100%; }
.lq-pg { width: 44px; height: 44px; flex: 0 0 auto; }
.lq-pg[hidden] { display: none; }
.lq-gone-soft { opacity: .3; pointer-events: none; filter: grayscale(.6); }
.lq-wobble { animation: lq-wobble .5s ease-in-out infinite; }
@keyframes lq-wobble { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }

/* ================================================================ oboji (paint) */
.lq-paint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px; background: #EAF6FF; }
.lq-paint-svg { width: 100%; height: 100%; display: block; }
.lq-preg { cursor: pointer; outline: none; }
.lq-preg:focus-visible .lq-fill { stroke: var(--sky); stroke-width: 6; }
.lq-preg.tk-hint-glow .lq-fill, .lq-preg.lq-glow-strong .lq-fill { stroke: #FFB800; stroke-width: 7; }
.lq-preg.tk-hint-glow, .lq-preg.lq-glow-strong { filter: drop-shadow(0 0 8px rgba(255,197,61,.9)); }
.lq-preg.lq-glow-strong { animation: lq-strong 1s ease-in-out infinite; }
.lq-preg.lq-wig { animation: lq-pwig .5s ease; transform-box: fill-box; transform-origin: center; }
@keyframes lq-pwig { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.lq-preg.tk-drop-over .lq-fill { stroke: var(--lq-mint); stroke-width: 7; }
.lq-has-brush .lq-preg { cursor: crosshair; }
.lq-brush { position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 4px solid var(--ink); background: var(--brush, #fff); opacity: 0; pointer-events: none; z-index: 9; box-shadow: 0 0 0 3px #fff; }
.lq-pot { position: relative; width: 70px; height: 70px; flex: 0 0 auto; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 4px; transition: translate .15s; }
.lq-pot > svg { width: 100%; height: 100%; }
.lq-pot-sign { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; padding: 2px; }
.lq-pot-sign svg { width: 100%; height: 100%; display: block; }
.lq-pot.lq-sel { translate: 0 -10px; outline: 4px solid var(--lq-mint); }
html.lq-compact .lq-pot { width: 58px; height: 58px; }
.lq-bowl { position: absolute; right: 2%; bottom: 3%; width: clamp(96px, 16vmin, 150px); z-index: 4; cursor: pointer; border-radius: 20px; }
.lq-bowl svg { width: 100%; height: auto; display: block; }
.lq-bowl-in { position: absolute; left: 0; right: 0; top: -14px; display: flex; justify-content: center; gap: 6px; }
.lq-bowl-in i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); }
.lq-bowl.lq-sel { outline: 4px solid var(--lq-mint); }
.lq-bowl.tk-drop-ok { outline: 3px dashed var(--lq-mint); }
.lq-level[data-band="B"] .lq-paint, .lq-level[data-band="C"] .lq-paint { padding-top: 70px; }
html.lq-compact .lq-level[data-band="B"] .lq-paint, html.lq-compact .lq-level[data-band="C"] .lq-paint { padding-top: 50px; }

/* long English sentences wrap in the pill instead of being cut */
.lq-pill { white-space: normal; text-align: center; line-height: 1.15; max-width: min(calc(100% - 20px), 40rem); }
html.lq-port .lq-pill { font-size: 1.15rem; }
