/* M5: village life */

/* under the clock: Well Fed, the festival, the Caravan (tap for what's on this week) */
#vl-status { display: block; margin: 3px 0 0 auto; padding: 1px 7px; border: 0; border-radius: 6px; background: #fff3d6; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink); box-shadow: inset 0 0 0 1px var(--paper2); }
@media (max-width: 600px) { #vl-status { font-size: 11px; padding: 1px 5px; } }

/* the Request Board */
.vl-req.mine { border-color: #f2c94c; background: #fff8e4; }
.vl-note { font-style: italic; font-size: 13.5px; color: var(--ink2); margin: 1px 0 2px; }
.vl-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.vl-form label { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.vl-form select, .vl-form input[type=number] { flex: 1; min-width: 0; }
.vl-kind { font-size: 18px; margin: 4px 0 10px; display: flex; align-items: center; gap: 4px; color: #b4384c; }
.vl-kind b { color: var(--ink); }
.vl-sign { background: #3a3a48; color: #f0ece0; border-color: #5a3c26; text-align: center; font-family: inherit; }
.vl-sign .sub { color: #c8c0b0; }

/* gifts */
.vl-friend { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 6px 8px; background: #fff6ea; border: 2px dashed #e8b8c0; border-radius: 8px; flex-wrap: wrap; }
.vl-friend .hearts { font-size: 15px; }
.slot.dim { opacity: .4; }

/* M8, friends sharing things: a chest's marks and memory, notes, stickers */
.so-chest { margin: 10px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.so-chest .btns { flex-wrap: wrap; gap: 6px; }
.so-notecard { background: #fff6d8; border: 2px dashed #d8c08a; border-radius: 8px; padding: 6px 10px; font-size: 14.5px; }
.so-log { background: #fffaf0; border: 2px solid var(--paper2); border-radius: 8px; padding: 4px 10px 6px; font-size: 13.5px; max-height: 160px; overflow-y: auto; }
.so-log h4 { margin: 4px 0; }
.so-log .ok { color: #3c8a3c; font-weight: 700; } .so-log .no { color: #b4384c; font-weight: 700; }
.so-paper { background: #fff6d8; border-style: dashed; }

/* #42, what friends are up to (public/js/friends.ts): the Friends panel and the peek on a friend's card */
.so-friends { display: flex; flex-direction: column; gap: 10px; }
.so-friends > .hint { margin: 0; }
.so-fr { background: #fffaf0; border: 2px solid var(--paper2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.so-fr.off { opacity: .8; }
.so-fr-head { display: flex; align-items: center; gap: 8px; }
.so-fr-head .portrait { width: 42px; height: 36px; image-rendering: pixelated; background: #cfe6a8; border-radius: 7px; border: 2px solid var(--wood2); flex: none; }
.so-fr-head .grow { flex: 1; min-width: 0; font-size: 15.5px; }
.so-fr-dot { width: 10px; height: 10px; border-radius: 50%; background: #b8a888; flex: none; }
.so-fr-dot.on { background: #5aa04a; box-shadow: 0 0 0 2px #d8f0c8; }
.so-fr-body { display: flex; gap: 10px; align-items: flex-start; text-align: left; }
.so-fr-peek { width: 225px; height: 135px; flex: none; image-rendering: pixelated; border-radius: 6px; border: 3px solid var(--wood2); background: #2a2420; }
.so-fr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.so-fr-where { font-size: 14px; color: var(--ink2); }
.so-fr-doing { font-size: 16px; font-weight: 700; }
.so-fr-doing.fight { color: #b4384c; }
.so-fr-ic { display: inline-block; width: 1.3em; text-align: center; }
.so-fr-hp { display: grid; grid-template-columns: minmax(0, max-content) minmax(70px, 1fr); gap: 2px 8px; align-items: center; font-size: 12.5px; }
.so-fr-hp .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.so-fr-hp:empty { display: none; }
.so-fr-hp .bar { height: 7px; border-radius: 4px; background: #00000018; overflow: hidden; }
.so-fr-hp .bar i { display: block; height: 100%; background: #5aa04a; }
.so-fr-hp .bar.foe i { background: #d0504a; }
.so-fr-jh { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.so-fr-log { font-size: 13px; line-height: 1.35; }
.so-fr .btns { margin: 0; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.so-fr-card { margin-top: 10px; }
.so-fr-card .so-fr { border-style: dashed; }
@media (max-width: 560px) {
  .so-fr-body { flex-direction: column; }
  .so-fr-peek { width: 100%; height: auto; aspect-ratio: 25 / 15; }
}
.so-menu { margin-top: 8px; }
.so-sticker { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px; }
.so-pad { width: 192px; height: 192px; image-rendering: pixelated; border: 2px solid var(--wood2); border-radius: 6px; touch-action: none; cursor: crosshair; flex: none; }
.so-swatches { display: grid; grid-template-columns: repeat(4, 34px); gap: 6px; align-content: start; }
.so-swatches .btn { grid-column: span 4; }
.so-sw { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--wood2); background: #fffaf0; font-size: 15px; padding: 0; cursor: pointer; }
.so-sw.sel { box-shadow: 0 0 0 3px #ffd23a; border-color: var(--wood); }
.so-stk { image-rendering: pixelated; display: block; }
.letter .so-stk { width: 96px; height: 96px; margin: 4px auto 8px; }
.mailrow .so-stk { width: 24px; height: 24px; flex: none; }
@media (max-width: 420px) { .so-pad { width: 168px; height: 168px; } .so-swatches { grid-template-columns: repeat(4, 30px); } .so-sw { width: 30px; height: 30px; } }
