/* Quiet town conversations share the journal's spacing and restrained palette. */
.forest-rpg #sharedScreen { --town-control-bottom: calc(82px + var(--safe-bottom)); }
.forest-rpg .town-context { position: absolute; z-index: 3; left: calc(12px + var(--safe-left)); right: calc(12px + var(--safe-right)); bottom: var(--town-control-bottom); width: auto; max-width: 340px; margin-inline: auto; pointer-events: none; }
.forest-rpg .town-context[hidden], .forest-rpg .town-craft-overlay[hidden] { display: none; }
.forest-rpg .town-context-visible .rpg-shared-notices { bottom: calc(var(--town-control-bottom) + var(--town-control-height, 52px) + 10px); }
.forest-rpg .town-interact { width: 100%; min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #96af9850; border-radius: 12px; background: #20352bef; color: #cfdbc9; text-align: left; box-shadow: 0 3px 12px #0002; pointer-events: auto; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.forest-rpg .town-interact strong { font: 650 13px/1.3 system-ui, sans-serif; }
.forest-rpg .town-interact span { color: #aabd9f; font: 500 11px/1.3 system-ui, sans-serif; }
.forest-rpg .town-interact kbd { color: #b3c6ac; border: 1px solid #b4c2ac38; border-radius: 4px; padding: 3px 6px; font: 500 10px/1.2 system-ui, sans-serif; }
.forest-rpg .town-interact:disabled { opacity: 1; background: #203129ed; border-color: #96af982b; color: #abbba4; }
.forest-rpg .town-interact:disabled kbd, .forest-rpg .town-interact kbd[hidden] { display: none; }
.forest-rpg .town-interact:not(:disabled):active { background: #304838; border-color: #b1c4a875; }
.forest-rpg .town-workshop { width: min(100%, 630px); }
.forest-rpg .town-intro { color: #afc0a6; font: 400 12px/1.6 system-ui, sans-serif; }
.forest-rpg .town-wallet { color: #c1ceb1; font-size: 12px; line-height: 1.6; padding: 10px 0; border-block: 1px solid #92a98a26; }
.forest-rpg .town-status { color: #d0c59f; font-size: 12px; line-height: 1.55; }
.forest-rpg .town-filter { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #b3c2aa; font-size: 12px; margin: 14px 0; }
.forest-rpg .town-filter select { max-width: 60%; min-height: 44px; border: 1px solid #9bb09040; border-radius: 9px; padding: 7px 10px; background: #263b2e; color: #d1dcc8; font-size: 12px; }
.forest-rpg .town-recipes { display: grid; gap: 10px; }
.forest-rpg .town-recipe { min-width: 0; border: 1px solid #9bad9633; border-radius: 12px; background: #203228; padding: 15px; }
.forest-rpg .town-recipe h3 { margin: 8px 0; color: #d6e0cf; font: 650 16px/1.35 system-ui, sans-serif; }
.forest-rpg .town-recipe p { margin: 7px 0; font-size: 12px; line-height: 1.5; color: #aebfa5; }
.forest-rpg .town-recipe-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; color: #b8c3b0; font-size: 10px; }
.forest-rpg .town-rarity-rare .town-recipe-meta > :first-child { color: #a6c2d5; }
.forest-rpg .town-rarity-epic .town-recipe-meta > :first-child { color: #c2b0d4; }
.forest-rpg .town-rarity-legendary .town-recipe-meta > :first-child { color: #d8c08c; }
.forest-rpg .town-recipe .town-recipe-cost { color: #d0ccaf; }
.forest-rpg .town-recipe .town-recipe-stats { color: #c4d4bb; }
.forest-rpg .town-recipe .town-recipe-quantity { font-size: 10px; color: #95ab90; }
.forest-rpg .town-recipe .town-recipe-locked { color: #b9a995; font-size: 11px; }
.forest-rpg .town-action { min-height: 44px; width: 100%; border: 1px solid #96af984d; border-radius: 9px; background: #2b4332; color: #d7e1c9; font-size: 12px; font-weight: 550; padding: 9px 12px; margin-top: 9px; }
.forest-rpg .town-action:disabled { color: #9dab96; background: #26352b; border-color: #96af9826; opacity: 1; cursor: default; }
.forest-rpg .town-refresh { min-height: 44px; margin-top: 14px; font-size: 12px; }
.forest-rpg .town-contract-title { margin: 25px 0 8px; padding-top: 18px; border-top: 1px solid #9aae922e; color: #d1dcc8; font: 650 18px/1.3 system-ui, sans-serif; }
.forest-rpg .town-contract { margin-top: 10px; }
.forest-rpg .town-context button:focus-visible, .forest-rpg .town-workshop button:focus-visible, .forest-rpg .town-workshop select:focus-visible { outline: 2px solid #b6c9a6; outline-offset: 3px; }
@media (pointer: coarse) { .forest-rpg .town-interact kbd { display: none; } }
@media (min-width: 600px) { .forest-rpg .town-recipes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-height: 520px) and (orientation: landscape) {
  .forest-rpg #sharedScreen { --town-control-bottom: calc(69px + var(--safe-bottom)); }
  .forest-rpg .town-context { max-width: 310px; }
  .forest-rpg .town-interact { min-height: 44px; padding: 8px 12px; }
  .forest-rpg .town-workshop { padding: 16px; }
}
@media (max-width: 350px) { .forest-rpg .town-interact { gap: 7px; padding: 10px; } .forest-rpg .town-interact span { font-size: 10px; } }
