/* Prythian Village */

/* where you are, in the village (like the dungeons' banner) */
#tw-banner { top: calc(62px + var(--safe-t)); left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 10px; background: rgba(40, 28, 16, .7); border: 2px solid #c8a060; color: #fff3d6; font-size: 13px; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 0 #000; }
#tw-banner span { color: #f0d8a8; }
@media (max-height: 520px) { #tw-banner { top: auto; bottom: calc(70px + var(--safe-b)); } }
@media (max-width: 600px) { #tw-banner { top: calc(100px + var(--safe-t)); left: auto; right: calc(62px + var(--safe-r)); transform: none; font-size: 12px; } }

/* talking with someone */
.tw-who { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tw-who .sub { font-size: 13px; color: var(--ink2); }
.tw-who .hearts { font-size: 15px; color: #c8384c; }
.tw-portrait { width: 56px; height: 84px; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, #fff3d6, #ead6ad); border: 2px solid var(--wood2); border-radius: 10px; flex: none; }
.tw-line { font-size: 16px; line-height: 1.35; background: #fffaf0; border: 2px solid var(--paper2); border-radius: 8px; padding: 8px 12px; font-style: normal; }
.tw-ask { margin: 8px 0; border-color: #f2c94c; background: #fff8e4; }
.tw-ask .btn { margin-top: 6px; }

/* holding a crown or a boat: a button above the hotbar */
#tw-ctx { pointer-events: auto; font-size: 14px; padding: 4px 12px; background: #fff3d6; }

/* M8: a friend's story (in their chat), the scene at the end of it */
.tw-quests { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.tw-quest { border-color: #e8b8c0; background: #fff6f4; }
.tw-quest .btn { margin-top: 6px; }
.tw-quest .need { margin-top: 3px; }
.tw-quest-done { color: #b4384c; }
.tw-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tw-scene .letter { width: 100%; box-sizing: border-box; max-height: 52vh; overflow-y: auto; }

/* M10: the Tailor & Dye Shop (public/js/tailor.ts): the mirror and the colours, the pattern book, the rack, the swatch wall */
.tl-dye { display: flex; gap: 12px; align-items: flex-start; }
.tl-dye .grow { min-width: 0; }
.tl-dye h4 { margin: 6px 0 4px; }
.tl-mirror { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 120px; text-align: center; }
.tl-mirror .sub { font-size: 12px; line-height: 1.2; }
.tl-doll { width: 96px; height: 112px; image-rendering: pixelated; background: linear-gradient(#e4f0f6, #bcd8e8); border: 4px solid #3c7a80; border-radius: 48px 48px 8px 8px; }
.tl-cos { display: flex; flex-wrap: wrap; gap: 4px; }
.tl-cos { max-height: 132px; overflow-y: auto; }
.tl-pick { padding: 3px; min-width: 0; line-height: 0; }
.tl-pick .ico { width: 24px; height: 24px; image-rendering: pixelated; }
.tl-pick.worn { box-shadow: inset 0 -3px #f2a83a; }
.tl-sw { gap: 6px; }
.tl-sw .swatch { width: 34px; height: 28px; border-width: 2px; font-size: 12px; color: rgba(255,255,255,0.85); text-shadow: 0 0 2px #000; }
.tl-chip { display: inline-block; width: 30px; height: 22px; border-radius: 4px; border: 2px solid #6b4a2e; box-shadow: inset 0 -3px rgba(0,0,0,0.15); }
.tl-bunny { width: 60px; height: 45px; image-rendering: pixelated; background: radial-gradient(circle at 50% 70%, #fff3d6, #ead6ad); border: 2px solid var(--wood2); border-radius: 10px; padding: 8px; flex: none; }
@media (max-width: 480px) {
  .tl-dye { flex-direction: column; align-items: stretch; }
  .tl-mirror { width: auto; flex-direction: row; justify-content: center; text-align: left; }
  .tl-mirror .sub { max-width: 150px; }
  .tl-doll { width: 72px; height: 84px; }
}
/* the board: what comes next, pinned below the open projects (issue #38) */
.tw-soon { margin-top: 8px; }
.goal.soon { background: #fdf6e6; border-style: dashed; border-color: #d8c098; }
.goal.soon .sub { font-style: italic; }

/* Ask Old Tobias (#41, public/js/ask.ts): a search box with suggestions, your bag's things to tap, his answer */
.ak .ak-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 8px 10px; border: 2px solid var(--wood2); border-radius: 8px; background: #fffaf0; margin: 6px 0 4px; }
.ak-sugg, .ak-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ak-sugg:empty { display: none; }
.ak-chip { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 14px; padding: 4px 9px; min-height: 34px; border: 2px solid var(--paper2); border-radius: 8px; background: #fffaf0; color: var(--ink); cursor: pointer; }
.ak-chip.icon-only { padding: 4px; }
.ak-chip.sel { border-color: var(--wood2); background: #f6e6c4; }
.ak-chip .ico { width: 24px; height: 24px; image-rendering: pixelated; }
.ak-chip .ico.tiny { width: 18px; height: 18px; }
.ak-bag { margin: 8px 0; }
.ak-bag .sub, .ak-uses .sub { margin-bottom: 4px; }
.ak-answer { border-top: 2px dashed var(--paper2); margin-top: 8px; padding-top: 8px; }
.ak-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.ak-head .ico { width: 32px; height: 32px; image-rendering: pixelated; }
.ak-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 8px; }
.ak-row { display: flex; align-items: flex-start; gap: 8px; line-height: 1.3; }
.ak-row .ico.tiny { width: 18px; height: 18px; flex: none; image-rendering: pixelated; margin-top: 1px; }
.ak-dot { width: 18px; text-align: center; flex: none; color: var(--ink2); }
.ak-close { font-style: italic; }
