/* Activities follow the same reading order as their visible layout. */
.folklore-activity{min-width:0;background:var(--cream)}
.folklore-goal{display:flex;align-items:center;gap:16px;padding:14px 16px;margin:18px 0 14px;background:#e5e9d2;border:1px solid #a9b897;border-radius:3px;color:var(--ink)}
.folklore-goal>strong{font:normal 30px/1.1 Georgia;white-space:nowrap}
.folklore-goal>p{margin:0;font:16px/1.5 var(--font)}
.folklore-goal>p>span{display:block;margin-top:3px;font-size:13px;color:#53664e}
.folklore-task{padding:0 32px 28px;max-width:820px;margin:0 auto;min-width:0}
.folklore-task-count{font:12px/1.5 var(--font);color:var(--muted);margin:0 0 8px}
.folklore-question .riddle{font:italic 27px/1.45 Georgia;color:var(--ink);margin:0 0 18px;overflow-wrap:anywhere}
.folklore-house-art{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px;min-width:0;min-height:225px;padding:16px 20px;background:#e3e4c5;overflow:hidden;border:1px solid #c6cbae;border-radius:3px}
.folklore-house-art .room-drawing{position:absolute;inset:0;margin:0;width:100%;height:100%;max-width:none;object-fit:contain;opacity:.64}
.folklore-answer-instruction{position:relative;max-width:100%;margin:0 auto auto;padding:4px 8px;border-radius:3px;background:#fcf5df;color:var(--ink);font:600 14px/1.4 var(--font);text-align:center}
.folklore-house-art .folklore-objects{position:relative;z-index:1;display:flex;gap:14px;width:100%;max-width:460px;margin:0;padding:0}
.folklore-objects .object-choice{min-height:137px;padding:9px 8px;display:flex;align-items:center;justify-content:space-between;flex-direction:column;background:#fcf5df;box-shadow:0 3px 0 #b9bf9b66}
.folklore-objects .object-choice span{font:13px/1.35 var(--font);overflow-wrap:anywhere;margin-top:6px}
.folklore-objects .object-choice svg{height:88px;width:74px;flex-shrink:0}
.folklore-objects .object-choice.is-correct{background:#d1dda9;outline:2px solid #829865;outline-offset:2px}
.folklore-objects .object-choice.is-attempted{background:#f1e4bd;outline:2px solid #9e8d62;outline-offset:2px}
.folklore-feedback{min-height:0;font:14px/1.65 var(--font);margin:14px 0 0}
.folklore-feedback:empty{margin:0;min-height:0}
.folklore-tools{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.folklore-tools .hint-button,.folklore-word-tools button{min-height:44px;font-size:13px}
.folklore-save{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:16px}
.folklore-save .primary{min-height:48px;line-height:1.5;text-align:center}
.folklore-decision{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
.scene-dialog .folklore-decision .primary{width:100%;min-height:52px;padding:10px 8px;font-size:15px}
.folklore-decision .primary:only-of-type,.folklore-progress{grid-column:1/-1}
.folklore-progress{font:14px/1.6 var(--font);color:var(--muted);margin:0}
.folklore-picker{margin:0 0 18px;scroll-margin-top:8px}
.folklore-picker-heading{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 12px;margin-bottom:8px;font:16px/1.4 var(--font)}
.folklore-picker-heading>span{font-size:14px;color:#53664e}
.folklore-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.folklore-house .folklore-tabs{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));gap:6px}
.folklore-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;padding:8px;border:1px solid #899576;border-radius:3px;background:var(--paper);color:var(--ink);font:600 16px/1.3 var(--font);text-align:center}
.folklore-house .folklore-tabs button{padding:6px;gap:3px}
.folklore-tabs button:hover,.folklore-tabs button.is-solved{background:#e5e9d2}
.folklore-tabs button[aria-pressed="true"]{background:var(--ink);color:var(--cream);border-color:var(--ink)}
.folklore-tab-check{font-size:14px;flex-shrink:0}
.folklore-words .station-instruction{margin:0 0 14px}
.folklore-task>.source-note{font-size:12px;line-height:1.7;color:var(--muted);overflow-wrap:anywhere;margin-top:12px}
.folklore-task>.source-note summary{min-height:44px;padding:11px 0;cursor:pointer}
.folklore-phrase{min-height:88px;margin-top:0;padding:13px 0;gap:6px}
.folklore-phrase .chosen-word{display:inline-flex;align-items:center;gap:7px;min-height:48px;max-width:100%;overflow-wrap:anywhere;padding:7px 10px;border:1px solid #9fac8d;background:#e6ead2;border-radius:3px;font-size:22px;text-align:left;animation:none}
.folklore-slot-number,.folklore-empty-slot>span{font:12px/1 var(--font);color:#56684f}
.folklore-empty-slot{display:inline-flex;align-items:center;gap:12px;min-height:48px;min-width:65px;padding:7px 10px;border:1px dashed #a7b296;border-radius:3px;color:#687658;font:22px Georgia}
.folklore-phrase .chosen-word.hinted{outline:2px dashed var(--orange);outline-offset:2px}
.folklore-activity button:focus-visible{outline:3px solid #315d50;outline-offset:4px}
.folklore-word-bank{margin:18px 0 8px;min-height:0;gap:10px}
.folklore-word-bank .word-chip{min-height:46px;max-width:100%;overflow-wrap:anywhere;font-size:20px;padding:10px 14px}
.folklore-word-bank .word-chip.used{display:none}
.folklore-word-tools{flex-wrap:wrap;gap:8px 22px}
.folklore-save .primary:disabled{opacity:.55;cursor:default}
.folklore-meaning{display:flex;align-items:center;gap:16px;border-top:1px solid var(--line);margin-top:18px;padding-top:14px}
.folklore-meaning .paper-bird{width:130px;height:92px;flex-shrink:0}
.folklore-meaning>p{font:italic 20px/1.5 Georgia;margin:0;min-width:0}
.folklore-book{width:100%;max-width:500px;min-width:0;color:var(--ink)}
.folklore-book-riddles{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:13px}
.folklore-book-riddles li{display:flex;gap:14px;align-items:center;border-bottom:1px solid #cbd0b3;padding-bottom:13px;min-width:0}
.folklore-book-object{width:52px;flex-shrink:0}
.folklore-book-object svg{width:52px;height:65px}
.folklore-book-riddles li>div{min-width:0}
.folklore-book-riddles strong{font:normal 21px/1.3 Georgia}
.folklore-book-riddles p{font:italic 14px/1.6 Georgia;margin:6px 0 0}
.folklore-book-note{font:10px/1.7 var(--font);color:var(--muted);margin-top:20px}
.folklore-words-book{text-align:center}
.folklore-words-book .paper-bird{width:100%;height:auto;max-width:270px}
.folklore-words-book blockquote{font:italic 27px/1.5 Georgia;margin:10px 0 20px;overflow-wrap:anywhere}
.folklore-book-meaning{font:14px/1.8 var(--font);color:var(--muted)}

@media(max-width:760px){
.folklore-goal{gap:12px;padding:12px;margin-top:16px}
.folklore-goal>strong{font-size:28px}
.folklore-goal>p{font-size:15px}
.folklore-task{padding:0 20px 24px}
.folklore-question .riddle{font-size:24px;line-height:1.4;margin-bottom:16px}
.folklore-task-count{font-size:12px}
.folklore-house-art{min-height:196px;padding:12px 10px}
.folklore-house-art .folklore-objects{max-width:360px;gap:8px}
.folklore-objects .object-choice{min-height:125px;padding:9px 5px;border-radius:34px 34px 3px 3px}
.folklore-objects .object-choice svg{height:76px;width:61px}
.folklore-objects .object-choice span{font-size:12px;margin-top:4px}
.folklore-feedback{font-size:14px;line-height:1.6}
.folklore-save{gap:10px 16px}
.folklore-save .primary{width:100%;font-size:14px;padding:12px}
.folklore-progress{font-size:13px}
.folklore-tabs{gap:6px}
.folklore-tabs button{font-size:15px;padding:6px 4px;gap:3px}
.folklore-words .folklore-tabs button.is-solved{flex-direction:column;gap:0}
.folklore-phrase{min-height:88px}
.folklore-phrase .chosen-word{font-size:21px}
.folklore-word-bank .word-chip{padding:9px 12px;font-size:20px}
.folklore-meaning{gap:10px}
.folklore-meaning .paper-bird{width:85px;height:70px}
.folklore-meaning>p{font-size:18px}
.folklore-book-riddles strong{font-size:20px}
.folklore-book-riddles p{font-size:14px}
.folklore-words-book blockquote{font-size:24px}
}

/* A found answer earns its progress before the optional play action. */
.folklore-sweep-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.folklore-sweep-row>span{font:13px/1.5 var(--font);color:var(--muted)}
.folklore-house-result,.folklore-word-result{scroll-margin-top:8px;scroll-margin-bottom:16px}
.folklore-word-result{padding:16px 20px;background:#f8f0d9;border:1px solid #c6cbae;border-radius:3px}
.scene-dialog .folklore-word-result>.folklore-feedback{margin:0;color:#53664e;font-size:14px}
.folklore-result-phrase{margin:12px 0;font:italic 27px/1.4 Georgia;color:var(--ink);overflow-wrap:anywhere}
.folklore-word-result .folklore-meaning{margin-top:12px;padding-top:12px}
.folklore-word-result .folklore-meaning .paper-bird{width:90px;height:70px}
.folklore-word-result .folklore-meaning>p{font-size:19px;line-height:1.45}
.folklore-word-result .folklore-save{margin-top:14px}
@media(max-width:760px){
.folklore-sweep-row{gap:6px 12px}
.folklore-sweep-row>span{font-size:12px}
.folklore-word-result{padding:14px}
.folklore-result-phrase{font-size:24px;line-height:1.35;margin:10px 0}
.folklore-word-result .folklore-meaning{gap:10px}
.folklore-word-result .folklore-meaning .paper-bird{width:62px;height:52px}
.folklore-word-result .folklore-meaning>p{font-size:18px}
.folklore-word-result .folklore-save{gap:8px;margin-top:12px}
}
@media(max-width:399px){.folklore-house .folklore-tabs{grid-template-columns:repeat(4,minmax(44px,1fr))}}
@media(max-width:370px){
.folklore-task{padding-inline:16px}
.folklore-word-result{padding:12px}
.folklore-result-phrase{font-size:22px}
.folklore-word-result .folklore-meaning .paper-bird{display:none}
}
