/* All artwork is one ink colour, excluded from interaction and accessibility trees. */
.qw-scene { color: var(--text-color, inherit); pointer-events: none !important; user-select: none; }
.qw-scene *, .qw-scene svg { pointer-events: none !important; }
.qw-scene svg, svg.qw-scene { display: block; width: 100%; height: 100%; overflow: hidden; }
.qw-ink { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
.qw-detail { stroke-width: .8; opacity: .8; }
.qw-pencil { stroke-width: .65; opacity: .5; }
.qw-paused, .qw-paused * { animation-play-state: paused !important; }
.qw-stroll { animation: qw-stroll var(--qw-period, 89s) var(--qw-phase, 0s) ease-in-out infinite; }
.qw-facing { animation: qw-facing var(--qw-period, 89s) var(--qw-phase, 0s) ease-in-out infinite; }
@keyframes qw-stroll { 0%, 12%, 100% { transform: translateX(0); } 42%, 62% { transform: translateX(24px); } 91% { transform: translateX(0); } }
@keyframes qw-facing { 0%, 48%, 97%, 100% { transform: scaleX(1); } 49%, 96% { transform: scaleX(-1); } }
.qw-copy-slot { flex: 0 1 176px; min-width: 96px; position: relative; display: flex; justify-content: flex-end; }
/* Shared buttons transition all properties. Visibility must change before either scene reacts. */
#roleCopyConfigurationButton, #shopSettingsForm button[name="update_shop_settings"] { transition-property:background-color, color, border-color, box-shadow, filter; }
svg.qw-copy { position: absolute; inset: auto -3px -4px; width: calc(100% + 6px); height: 52px; opacity: .8; }
.qw-carrier { animation: qw-carry 3.5s calc(var(--qw-i) * .15s) both ease-in-out; }
.qw-carrier-facing { animation: qw-return 3.5s calc(var(--qw-i) * .15s) both ease-in-out; }
.qw-cargo { animation: qw-boxes 3.5s calc(var(--qw-i) * .15s) both ease-in-out; }
@keyframes qw-carry { 0% { opacity:0; transform:translate(var(--qw-start), 40px); } 8% { opacity:1; } 36%, 57% { opacity:1; transform:translate(var(--qw-end), 40px); } 89%, 100% { opacity:0; transform:translate(-15px, 40px); } }
@keyframes qw-return { 0%, 57% { transform:scaleX(1); } 58%, 100% { transform:scaleX(-1); } }
@keyframes qw-boxes { 0% { opacity:0; transform:translate(var(--qw-start), 32px); } 8% { opacity:1; } 42% { transform:translate(var(--qw-end), 32px); } 56%, 100% { opacity:1; transform:translate(var(--qw-end), var(--qw-y)); } }
.qw-box-fold { animation:qw-box-fold 4.2s both ease-in-out; }
.qw-box-details { animation:qw-box-details 4.2s both ease-in-out; }
.qw-copy-result { animation:qw-copy-result 4.2s both ease-in-out; }
@keyframes qw-box-fold { 0%, 60% { d:path('M-9-8L8-10L13-5L12 10L-8 11L-9-8Z'); stroke-width:1.15; } 76%, 100% { d:var(--qw-tick); stroke-width:2; } }
@keyframes qw-box-details { 0%, 60% { opacity:1; } 70%, 100% { opacity:0; } }
@keyframes qw-copy-result { 0%, 88% { opacity:1; } 100% { opacity:0; } }
.qw-library { height: 3lh; min-height: 62px; max-height: 104px; margin-top: 1.5lh; overflow: hidden; opacity: .5; }
.qw-library svg { width: min(100%, 680px); margin: auto; }
.qw-reader { animation: qw-reading var(--qw-period, 73s) var(--qw-phase, -19s) ease-in-out infinite; transform-origin: 0 15px; }
@keyframes qw-reading { 0%, 36%, 44%, 100% { transform: rotate(0); } 39%, 41% { transform: rotate(4deg); } }
.qw-bookworm { flex:0 0 82px; align-self:center; height:100px; margin-left:-12px; opacity:.5; }
.qw-bookworm svg { overflow:visible; }
.qw-nibbled-preview { clip-path:var(--qw-bites); }
.qw-chew { animation: qw-chew 11s -3s ease-in-out infinite; transform-origin: -16px 2px; }
@keyframes qw-chew { 0%, 18%, 28%, 38%, 100% { transform: rotate(0); } 23%, 33% { transform: rotate(9deg); } }
.qw-shop-footer { position: relative; min-height: 100px; display: flex; align-items: flex-end; justify-content: flex-end; }
.qw-shop-footer > .configuration-utility-links { position: relative; z-index: 1; margin-left: 220px; }
.qw-astronomer { position: absolute; inset: -58px 0 0; overflow: hidden; opacity: .5; }
.qw-astronomer .qw-observatory { position:absolute; left:0; bottom:0; width:210px; height:100px; }
.qw-astronomer .qw-sky { position:absolute; inset:0 0 auto; width:100%; height:65px; opacity:.6; }
.qw-astronomer.qw-at-desk .qw-sky { visibility:hidden; }
.qw-at-desk .qw-star { animation-play-state:paused; }
.qw-star { animation:qw-twinkle var(--qw-period) var(--qw-phase) ease-in-out infinite; }
@keyframes qw-twinkle { 0%, 100% { opacity:.78; } 50% { opacity:1; } }
.qw-astronomer-position { transform:translate(119px, 67px); transition:transform 3.6s ease-in-out; }
.qw-at-desk .qw-astronomer-position { transform:translate(61px, 67px); }
.qw-astronomer-facing { transform:scaleX(1); transition:transform .6s ease; }
.qw-at-desk .qw-astronomer-facing { transform:scaleX(-1); }
.qw-contact-world { height:clamp(112px, 19vw, 152px); margin:1lh 0 .6lh; overflow:hidden; opacity:.5; }
.qw-contact-backdrop { opacity:.45; }
.qw-contact-letters text { font:italic 19px Georgia, serif; fill:currentColor; stroke:none; opacity:.65; }
.qw-contact-boxes { opacity:.7; }
.qw-comet, .qw-flames, .qw-confused, .qw-song, .qw-angry { opacity:0; transition:opacity .6s ease; }
[data-priority="end of the world"] .qw-comet, [data-priority="end of the world"] .qw-flames, [data-priority="panic"] .qw-flames { opacity:1; }
[data-mood="confused"] .qw-confused, [data-mood="delighted"] .qw-song, [data-mood="angry"] .qw-angry, [data-mood="frustrated"] .qw-angry { opacity:1; }
[data-mood="delighted"] .qw-manner { animation:qw-dance var(--qw-period, 83s) var(--qw-phase) ease-in-out infinite; }
[data-mood="confused"] .qw-mood { animation:qw-puzzle var(--qw-period, 71s) var(--qw-phase) ease-in-out infinite; }
@keyframes qw-dance { 0%, 40%, 60%, 100% { rotate:0deg; translate:0; } 45% { rotate:4deg; translate:0 -2px; } 54% { rotate:-4deg; translate:0 -2px; } }
@keyframes qw-puzzle { 0%, 42%, 60%, 100% { translate:0; } 50% { translate:2px -1px; } }
.qw-chess-host { position:relative; }
svg.qw-chess { position:absolute; inset:0; width:100%; height:100%; opacity:.3; }
.qw-chess-ready .qw-chess-piece { transition:transform 3.4s cubic-bezier(.4,0,.2,1); }
.qw-chess-pose { transform-origin:0 13px; }
.qw-captured .qw-chess-pose { animation:qw-topple 1.8s .2s ease-in forwards; }
@keyframes qw-topple { to { transform:rotate(76deg); opacity:0; } }
@media (max-width:540px) {
    .qw-shop-footer > .configuration-utility-links { margin-left:150px; }
    .qw-astronomer .qw-observatory { width:150px; height:80px; }
}
@media (prefers-reduced-motion: reduce) {
    .qw-scene *, .qw-scene { animation:none !important; transition:none !important; }
    .qw-copy { display:none !important; }
    .qw-captured { visibility:hidden; }
}
