/* FOMO lesson. Everything scoped under .fm-*. */

.fm-city { width: min(100%, 340px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fm-city.fm-big { flex: 1; justify-content: center; }
.fm-sky { width: 100%; display: flex; justify-content: space-between; align-items: baseline; font: 600 13px var(--sans); color: var(--dim); padding: 0 6px; min-height: 18px; }
.fm-night { color: var(--text); font-weight: 700; }
.fm-count b { font: 700 16px var(--mono); color: var(--gold); margin-right: 2px; }

.fm-bldg { position: relative; width: 100%; padding: 12px 14px; border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #1B2238, #141A2C); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fm-win { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px 7px; }
.fm-w { display: block; height: 15px; border-radius: 3px; background: #262E47; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); transition: background .35s, box-shadow .35s; }
.fm-w.been { background: rgba(252,192,80,.32); }
.fm-w.out { background: var(--gold); box-shadow: 0 0 10px rgba(252,192,80,.75); }
.fm-big .fm-w { height: 19px; }
.fm-posts { position: absolute; inset: 0; pointer-events: none; }
.fm-post { position: absolute; font: 700 12px var(--sans); color: #1A1406; background: var(--gold); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  animation: fm-rise 1.5s ease-out forwards; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
@keyframes fm-rise { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }

.fm-ground { width: 100%; display: flex; justify-content: center; }
.fm-mine { display: flex; align-items: center; gap: 8px; font: 700 13px var(--sans); color: var(--dim); }
.fm-me { width: 34px; height: 22px; border-radius: 4px; background: #262E47; border: 1.5px solid var(--line-strong); transition: background .35s, box-shadow .35s; }
.fm-me.out { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(252,192,80,.75); }
.fm-me.been { background: rgba(252,192,80,.32); border-color: rgba(252,192,80,.7); }

/* the seven nights */
.fm-days { width: 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 4px; }
.fm-day { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: 700 14px var(--sans); padding: 0; cursor: pointer; transition: border-color .25s, background .25s; }
.fm-day em { font: 700 12px var(--mono); font-style: normal; color: var(--gold); }
.fm-days.set .fm-day { cursor: default; }
.fm-day.now { border-color: var(--gold); background: rgba(252,192,80,.14); }
.fm-day.me { border-color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.fm-day.me::after { content: 'you'; font: 600 10px var(--sans); color: var(--gold); line-height: 1; }
.fm-days.set .fm-day.me b { color: var(--gold); }

/* posts reaching the feed */
.fm-tray { width: 100%; display: grid; gap: 6px; margin-top: 4px; }
.fm-tr { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font: 600 13px var(--sans); color: var(--dim); }
.fm-tr b { font: 700 15px var(--mono); color: var(--gold); }
.fm-tr.fm-h b { color: var(--faint); }
.fm-tray.fm-done .fm-h { border-color: var(--line-strong); }
.fm-tray.fm-done .fm-h b { color: var(--text); }

.fm-photo { width: min(78%, 260px); margin: 0 auto; }
.fm-photo img { width: 100%; display: block; }

/* your night out, two cards */
.fm-pair { width: min(100%, 340px); margin: 0 auto; padding: 10px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fm-card { min-height: 150px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; font: 700 14px var(--sans); text-align: center; cursor: pointer; transition: border-color .3s, opacity .3s, box-shadow .3s; }
.fm-card em { font: 600 12px var(--sans); font-style: normal; color: var(--dim); }
.fm-ci { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.fm-ci-out i { width: 18px; height: 34px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 12px rgba(252,192,80,.7); }
.fm-ci-out i:nth-child(2) { height: 46px; }
.fm-ci-home { display: grid; grid-template-columns: repeat(3, 22px); gap: 5px; }
.fm-ci-home i { height: 16px; border-radius: 3px; background: #262E47; }
.fm-locked .fm-card { pointer-events: none; }
.fm-locked .fm-card:not(.fm-chosen) { opacity: .45; }
.fm-card.fm-chosen { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(252,192,80,.35); }

@media (max-height: 700px) {
  .fm-w { height: 10px; }
  .fm-win { gap: 4px 6px; }
  .fm-day { min-height: 44px; }
  .fm-big .fm-w { height: 16px; }
  .fm-win { gap: 5px 6px; }
  .fm-bldg { padding: 10px 12px; }
  .fm-card { min-height: 128px; }
  .fm-photo { width: min(60%, 200px); }
}

.fm-day.fm-in { opacity: .35; cursor: default; }
.fm-day.fm-in::after { content: "in"; font: 600 10px var(--sans); color: var(--dim); line-height: 1; }
.fm-sky { gap: 8px; }
