/* city.css — the CITY screen: the 3D neighbourhood (scene3d/district.js) fills the world, and the city
   panels (frontierui.js) sit in a side sheet, the same layout as the Vault. */
body.city-on { --csheet: min(560px, 44vw); }
body.city-on[data-view="life"] .world-frame { right: calc(var(--csheet) + 32px); }
body.city-on .room-strip, body.city-on .world-hint { display: none !important; }
body[data-view="life"] .screen[data-screen="city"] > .win { position: fixed; z-index: 4; top: var(--top); right: 16px; bottom: calc(var(--ui-bottom, 40px) + 18px); width: var(--csheet); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; animation: sheetIn 0.55s var(--ease); }
.screen[data-screen="city"] .frontier-shell { border: 0; background: none; box-shadow: none; }
.screen[data-screen="city"] .fx-hero { padding: 10px 12px; }
.screen[data-screen="city"] .fx-stats { margin-top: 0; }
.screen[data-screen="city"] .fx-content { padding: 12px 4px; }
.screen[data-screen="city"] .fx-explore { grid-template-columns: 1fr; gap: 12px; }
.screen[data-screen="city"] .fx-cards { grid-template-columns: 1fr; }

/* the venue list beside the 3D city */
.fx-venues { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fx-venues-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font: 11px var(--mono); letter-spacing: 0.1em; color: var(--ink-3); padding: 2px 2px 4px; }
.fx-venues-head .link { font: inherit; color: var(--cyan); }
.fx-venue { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border: 2px solid #2a2a55; background: #07071c; color: var(--ink-2); cursor: pointer; }
.fx-venue .fx-icon { grid-row: 1 / 3; width: 24px; height: 24px; color: var(--venue); opacity: 0.55; }
.fx-venue b { font: 600 13px var(--font); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-venue small { font: 10px var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
.fx-venue.visited .fx-icon { opacity: 1; }
.fx-venue.visited small { color: var(--venue); }
.fx-venue:hover { border-color: var(--venue); }
.fx-venue.selected { border-color: var(--venue); background: color-mix(in srgb, var(--venue) 14%, #07071c); box-shadow: 4px 4px 0 #000; }
html.pc98 .fx-venue { border-radius: 0; }
html.pc98 .fx-venue b, html.pc98 .fx-venue small, html.pc98 .fx-venues-head { font-family: var(--mono); }

@media (max-width: 760px) {
  body.city-on[data-view="life"] .world-frame { top: var(--top); bottom: auto; height: 34vh; right: 0; }
  body[data-view="life"] .screen[data-screen="city"] > .win { position: relative; inset: auto; width: auto; margin-top: 34vh; overflow: visible; animation: none; }
  .fx-venues { grid-template-columns: 1fr; }
}
