/* city.css — city and map screens */
.city, .map { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8px 8px 12px; box-sizing: border-box; pointer-events: none; }
.city > *, .map > * { pointer-events: auto; }
.c-top { display: flex; gap: 6px; align-items: flex-start; padding-right: 64px; pointer-events: none; }
.c-top > * { pointer-events: auto; }
.c-hud { flex: 1; min-width: 0; max-width: 230px; box-sizing: border-box; padding: 8px 12px; color: var(--ink); line-height: 1.25;
  border: 14px solid transparent; border-image: url(../assets/ui-panel.webp) 14% fill / 14px round; }
.c-hud-l1 { display: flex; justify-content: space-between; font-size: 16px; }
.c-hud-l2 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); }
.c-hud-l3 { font-size: 12px; color: var(--rose-deep); }
.c-dots { display: inline-flex; gap: 4px; }
.c-dots i { width: 9px; height: 9px; border-radius: 50%; background: #e7cfd9; display: block; }
.c-dots i.done { background: var(--rose); }
.c-dots i.cur { background: var(--rose-deep); box-shadow: 0 0 0 2px #fff, 0 0 6px var(--rose); }
.c-gold { display: flex; align-items: center; gap: 4px; flex: none; height: 50px; min-height: 50px; box-sizing: border-box; min-width: 64px; padding: 4px 10px; border-radius: 22px; border: 2px solid #fff;
  background: rgba(90, 40, 80, .72); color: #fff6ee; font: bold 16px var(--font); cursor: pointer; }
.c-gold img { width: 22px; height: 22px; }
.c-title { margin-top: 8px; align-self: flex-start; max-width: 100%; box-sizing: border-box; padding: 6px 14px; border-radius: 16px; background: rgba(60, 25, 55, .45); color: #fff6ee; }
.c-title small { font-size: 12px; opacity: .9; }
.c-title h2 { margin: 0; font-size: 26px; color: #fff; text-shadow: -2px -2px 0 var(--outline), 2px -2px 0 var(--outline), -2px 2px 0 var(--outline), 2px 2px 0 var(--outline), 0 3px 0 var(--outline); }
.c-title p { margin: 0; font-size: 14px; text-shadow: 0 1px 3px #000; }
.c-spacer { flex: 1; }
.c-people { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; min-height: 8px; }
.c-nobody { padding: 8px 14px; border-radius: 14px; background: rgba(255, 246, 238, .85); font-size: 14px; color: var(--ink-soft); text-align: center; }
.c-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; width: 104px; min-height: 96px; padding: 6px 4px 6px; box-sizing: border-box;
  border-radius: 16px; border: 2px solid #fff; background: rgba(255, 246, 238, .94); color: var(--ink); font: 14px var(--font); cursor: pointer; transition: transform .12s; }
.c-card:active { transform: scale(.94); }
.c-card:focus-visible, .m-card:focus-visible, .m-pin:focus-visible { outline: 3px solid var(--rose-deep); }
.c-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--rose); background: #e7cfd9; display: flex; align-items: center; justify-content: center; }
.c-av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.c-av i { font-style: normal; font-size: 24px; }
.c-card b { font-size: 14px; max-width: 96px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-card em { font-style: normal; font-size: 12px; padding: 0 8px; border-radius: 8px; background: var(--rose); color: #fff; }
.c-mood { position: absolute; top: 2px; right: 4px; font-size: 14px; }
.c-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.c-actions .wide { grid-column: 1 / -1; }
.c-actions button, .c-actions .gbtn.small { min-height: 52px; }
.c-nav { display: flex; gap: 10px; }
.c-nav button { flex: 1; min-height: 52px; position: relative; }
.c-badge { position: absolute; top: -6px; right: 8px; min-width: 22px; height: 22px; line-height: 22px; border-radius: 11px; background: #ff4d6d; color: #fff; font-size: 13px; text-align: center; border: 2px solid #fff; }
.c-work, .c-notebox { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.c-vig { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); text-align: center; }
.c-payrow { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 22px; color: var(--rose-deep); }
.c-payrow img { width: 28px; height: 28px; }
.c-note { position: relative; padding: 18px 16px 22px; background: #fffbe9; color: #6a4a3a; font-style: italic; font-size: 17px; line-height: 1.9; border-radius: 4px;
  transform: rotate(-1.5deg); box-shadow: 0 3px 10px rgba(90, 47, 74, .3); border: 1px solid #ecd9a8; text-align: center; }
.c-note::after { content: "☕"; position: absolute; right: 8px; bottom: 2px; font-size: 16px; opacity: .55; font-style: normal; }
.pop { animation: c-pop .3s cubic-bezier(.3, 1.5, .5, 1) both; }
.slide { animation: c-slide .3s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes c-pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes c-slide { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* map */
.map { padding-top: 8px; }
.m-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 48px; min-width: 92px; padding: 6px 14px;
  border-radius: 20px; border: 3px solid #fff; background: var(--c); color: #fff; font: bold 16px var(--font); cursor: pointer; box-shadow: 0 3px 8px rgba(60, 25, 55, .5);
  text-shadow: -1px -1px 0 var(--outline), 1px -1px 0 var(--outline), -1px 1px 0 var(--outline), 1px 1px 0 var(--outline); animation: c-pin .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.m-pin:active { filter: brightness(1.1); }
.m-pin.here { box-shadow: 0 0 0 3px var(--rose-deep), 0 3px 10px rgba(60, 25, 55, .6); }
.m-here { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--rose-deep); animation: c-bob 1s ease-in-out infinite alternate; }
@keyframes c-pin { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes c-bob { to { margin-top: -4px; } }
.m-faces { display: inline-flex; gap: 2px; }
.m-faces:empty { display: none; }
.m-face { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; background: #e7cfd9; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 14px; text-shadow: none; }
.m-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.m-face.unk { background: #8a7a9a; color: #fff; }
.m-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: center; }
.m-bottom button { min-height: 52px; min-width: 200px; }
.m-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 2px; }
.m-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 8px 12px; text-align: left; box-sizing: border-box;
  border-radius: 14px; border: 2px solid #f1c6d6; background: #fff; color: var(--ink); font: 14px var(--font); cursor: pointer; }
.m-card.cur { border-color: var(--rose-deep); background: #fff0f5; }
.m-card.closed { opacity: .5; filter: grayscale(.6); cursor: default; }
.m-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.m-main b { font-size: 16px; }
.m-main small { font-size: 12px; color: var(--ink-soft); }
.m-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.m-tags i { font-style: normal; font-size: 12px; padding: 0 6px; border-radius: 8px; background: #f7dfe8; }
.m-ok { font-size: 12px; color: #3d9a6a; }
.m-no { font-size: 12px; color: #a04a5a; }
