.qg { container-type: inline-size; position: relative; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.qg-hud { display: flex; justify-content: center; min-height: 13px; }
.qg-trail { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.qg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-border); transition: background .3s; }
.qg-dot.is-hit { background: #8fcf93; }
.qg-dot.is-miss { background: #c9ccd8; }
.qg-dot.is-now { background: #fff; box-shadow: inset 0 0 0 2px #8fcf93; }
/* min-height: 0, or the aspect-ratio box grows by the stage's rounding and the fit loops. */
.qg-fit { display: grid; place-items: center; width: 100%; max-width: 560px; min-height: 0; margin: 0 auto; aspect-ratio: 1 / 1; }
.qg-stage { position: relative; overflow: hidden; border-radius: 18px; }
.qg-world { position: absolute; left: 0; top: 0; width: 560px; height: 560px; transform-origin: 0 0; background: radial-gradient(circle at 50% 50%, #d2ecb8 0%, #bce1a1 55%, #a6d58c 100%); }
.qg-world > * { position: absolute; }
.qg-stump { left: 226px; top: 226px; width: 108px; height: 108px; border-radius: 50%; background: radial-gradient(circle, #e8c48f 0 18%, #d9ae73 19% 34%, #e3bb82 35% 52%, #c9985c 53% 70%, #a8763f 71%); box-shadow: 0 5px 0 rgba(0, 0, 0, .12); }
.qg-bush { width: 80px; height: 80px; margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; box-shadow: 0 5px 0 rgba(0, 0, 0, .14); background: radial-gradient(circle at 35% 30%, #7cc36b 0 22%, transparent 23%), radial-gradient(circle at 68% 38%, #6db55d 0 24%, transparent 25%), radial-gradient(circle at 45% 70%, #5ea94f 0 28%, transparent 29%), #4f9a43; }
.qg-bush:disabled { cursor: default; }
.qg-bush.is-right { box-shadow: 0 0 0 5px #3fae5a, 0 5px 0 rgba(0, 0, 0, .14); }
.qg-bush.is-truth { box-shadow: 0 0 0 5px #fff, 0 5px 0 rgba(0, 0, 0, .14); }
.qg-critters, .qg-reveal, .qg-leaves { inset: 0; pointer-events: none; }
.qg-critters { visibility: hidden; }
.qg-critters.is-on { visibility: visible; }
.qg-critter { position: absolute; width: 56px; height: 56px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .2)); }
.qg-critter svg { display: block; width: 100%; height: 100%; }
.qg-leaf { position: absolute; width: 14px; height: 9px; border-radius: 0 70% 0 70%; background: #5ea94f; }
.qg-clock { left: 0; top: 0; width: 0; height: 0; }
.qg-foot { display: grid; justify-items: center; gap: 6px; }
.qg-cap { min-height: 1.5em; margin: 0; font-weight: 700; color: var(--c-text); text-align: center; }
.qg-actions { display: grid; place-items: center; min-height: 50px; }
.qg-go { background: #3fae5a; color: #fff; box-shadow: var(--shadow); }
.qg-go:hover { background: #36994e; }
.qg-end { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 12px; border-radius: 14px; background: rgba(34, 52, 72, .22); }
.qg-end:empty { display: none; }
.qg-end .result-card { width: min(100%, 340px); padding: 18px 20px 20px; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .18); animation: qg-pop .34s cubic-bezier(.3, 1.4, .5, 1); }
.qg-end .result-card .result-done { font-size: 1.8rem; margin: 0 0 6px; }
.qg-end .result-card .btn { margin-top: 12px; }
@keyframes qg-pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
html.fills-window .game-root[data-game="quick-glance"] .qg { height: 100%; }
html.fills-window .game-root[data-game="quick-glance"] .qg-fit { flex: 1 1 0; max-width: none; aspect-ratio: auto; }
html.fills-window .game-root[data-game="quick-glance"] .qg-hud,
html.fills-window .game-root[data-game="quick-glance"] .qg-foot { flex: none; }
