@font-face {
  font-family: "Cormorant SC";
  src: url("/assets/fonts/cormorant-sc-bold-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0020, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.world-layout .stage--city:has(.city-scroll),
.world-layout .stage--club:has(.club-scroll) {
  grid-template-rows: minmax(0,1fr);
  padding: 0;
}
.city-scroll {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  container-type: size;
}
.city-scroll:focus-visible { outline-offset: -2px; }
.city-screen {
  display: grid;
  grid-template-columns: minmax(205px, 315px) minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: clamp(10px, 1.4vw, 24px);
  max-width: 1440px;
  margin-inline: auto;
  min-height: 100%;
  padding: clamp(10px, 1.5vw, 22px);
}
.city-screen--interior { grid-template-columns: minmax(245px,27fr) minmax(0,73fr); }
.world-layout .city-screen--interior .city-interior { align-self: stretch; }
.city-screen--map {
  --city-map-width: clamp(340px, (100cqh - 110px) * 16 / 9, 615px);
  --city-corbel-outset: 94px;
  --city-corbel-width: 94px;
  grid-template-columns: minmax(210px, 350px) minmax(0, var(--city-map-width));
  justify-content: space-between;
  max-width: none;
  padding: 10px calc(var(--city-corbel-outset) + 10px) 10px 15px;
}
.city-screen--map .city-overview { grid-template-columns: minmax(0, 214px) minmax(0, 1fr); }
.city-overview {
  display: grid;
  grid-template-columns: minmax(0,2.1fr) minmax(0,1fr);
  align-items: start;
  gap: 5px;
  min-width: 0;
}
.city-figure-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2px;
  min-width: 0;
}
.world-layout .city-figure-column h2 {
  text-align: center;
  overflow-wrap: anywhere;
  margin: 0;
  font: 700 .96rem/1.18 Arial,sans-serif;
}
.city-figure-column h2 small { font-weight: normal; }
.world-layout .game-stage .city-figure-column h2 .button.ghost {
  min-height: 0;
  margin-inline-start: 3px;
  padding: 0 3px;
  border: 0;
  background: #234d8c;
  color: white;
  box-shadow: none;
  font: 700 .7rem/1.05 Arial,sans-serif;
  vertical-align: middle;
}
.equipment-board--classic {
  grid-template-columns: [left] minmax(0,3fr) [center] repeat(6,minmax(0,1fr)) [right] repeat(2,minmax(0,1.5fr)) [edge];
  grid-template-rows: repeat(3,minmax(0,1fr)) minmax(0,2fr) minmax(0,3fr) minmax(0,4fr) repeat(2,minmax(0,1fr));
  aspect-ratio: 6 / 7;
  gap: 1px;
  padding: 2px;
  border: 1px solid #949494;
  background: #c4c4c4;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #aaa;
}
.equipment-board--classic .equipment-effigy {
  grid-area: 2 / center / 7 / right;
  border: 0;
  background: #090909;
}
.equipment-board--classic .equipment-effigy::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 7px #aaa8;
  pointer-events: none;
}
.equipment-portrait-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.equipment-portrait-link:focus-visible { outline-offset: -3px; }
.equipment-board--classic .gear-slot {
  border-color: #c6c6c6;
  background: #ddd;
  box-shadow: inset 1px 1px #f7f7f7, inset -1px -1px #aeaeae;
}
.equipment-board--classic .gear-slot.equipped { background: #c8c8c8; border-color: #979797; }
.equipment-board--classic .gear-slot:not(.equipped) .gear-art { opacity: .48; }
.equipment-board--classic .gear-slot--helmet { grid-area: 1 / left / 4 / center; }
.equipment-board--classic .gear-slot--bracers { grid-area: 4 / left / 5 / center; }
.equipment-board--classic .gear-slot--weapon { grid-area: 5 / left / 6 / center; }
.equipment-board--classic .gear-slot--coat { grid-area: 6 / left / 7 / center; }
.equipment-board--classic .gear-slot--belt { grid-area: 7 / left / 9 / center; }
.equipment-board--classic .gear-slot--ear-1 { grid-area: 1 / 8 / 2 / 9; }
.equipment-board--classic .gear-slot--ear-2 { grid-area: 1 / 9 / 2 / 10; }
.equipment-board--classic .gear-slot--amulet { grid-area: 2 / right / 3 / edge; }
.equipment-board--classic .gear-slot--ring-1 { grid-area: 3 / 8 / 4 / 9; }
.equipment-board--classic .gear-slot--ring-2 { grid-area: 3 / 9 / 4 / 10; }
.equipment-board--classic .gear-slot--gloves { grid-area: 4 / right / 5 / edge; }
.equipment-board--classic .gear-slot--offhand { grid-area: 5 / right / 6 / edge; }
.equipment-board--classic .gear-slot--legs { grid-area: 6 / right / 7 / edge; }
.equipment-board--classic .gear-slot--boots { grid-area: 7 / right / 9 / edge; }
.equipment-board--classic .gear-slot--pocket-1 { grid-area: 7 / 2 / 8 / 4; }
.equipment-board--classic .gear-slot--pocket-2 { grid-area: 7 / 4 / 8 / 6; }
.equipment-board--classic .gear-slot--pocket-3 { grid-area: 7 / 6 / 8 / 8; }
.equipment-board--classic .gear-slot--shirt { grid-area: 8 / center / 9 / 5; }
.equipment-board--classic .gear-slot--cloak { grid-area: 8 / 5 / 9 / right; }
.equipment-health {
  grid-area: 1 / center / 2 / right;
  position: relative;
  align-self: stretch;
  background: #e5e5e5;
}
.world-layout .equipment-health .meter {
  position: absolute;
  inset: 13% 0;
  height: auto;
  margin: 0;
  border: 0;
  background: #6d6d6d;
}
.world-layout .equipment-health .meter.hp span { background: linear-gradient(#197a23,#39a842); }
.equipment-health strong {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding-inline-start: 4px;
  color: #fff;
  text-shadow: 0 1px 2px #203324;
  font: 700 .74rem/1 Arial,sans-serif;
}
.city-readout {
  min-width: 0;
  padding: 15px 0 0;
  font: .84rem/1.24 Arial,sans-serif;
  overflow-wrap: anywhere;
}
.city-readout dl { margin: 0; }
.city-readout dl div { display: flex; flex-wrap: wrap; column-gap: 3px; }
.city-readout dt::after { content: ":"; }
.city-readout dd { margin: 0; }
.city-readout .city-record { margin-top: 12px; }
.city-rating { color: #206123; font-weight: 700; }
.city-abilities::before { content: "• "; }
.world-layout .game-stage .city-readout .button.ghost {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-weight: 700;
  text-align: start;
}
.city-readout button:hover { text-decoration: underline; }

.city-workspace {
  --city-carved-stone: url("/assets/altima/city-carved-stone.png");
  min-width: 0;
  border: 8px solid #40332a;
  border-image: var(--city-carved-stone) 16% round;
  background: #342a23;
  box-shadow: 0 2px 7px #25190d50;
}
.city-workspace-heading {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 53px;
  padding: 6px 24px;
  border-block: 1px solid #78654b;
  background: radial-gradient(ellipse at 52% 2%, #554131, #2a211b 78%);
  box-shadow: inset 0 1px #b6986540, inset 0 -1px #171009;
}
.city-workspace-heading::before, .city-workspace-heading::after {
  content: "";
  position: absolute;
  top: -9px;
  width: var(--city-corbel-width);
  height: 92px;
  background: center / contain no-repeat;
  pointer-events: none;
}
.city-workspace-heading::before {
  left: calc(-1 * var(--city-corbel-outset));
  background-image: url("/assets/altima/city-corbel-left.png?v=3");
  filter: drop-shadow(1px 2px 1px #24180d70);
}
.city-workspace-heading::after {
  top: -3px;
  right: calc(-1 * var(--city-corbel-outset));
  background-image: url("/assets/altima/city-corbel-right.png?v=3");
  filter: drop-shadow(-1px 2px 1px #24180d70);
}
.world-layout .game-stage .city-workspace-heading h1 {
  margin: 0;
  font: 700 clamp(1.3rem, 2.1cqw, 1.8rem)/1.04 "Cormorant SC", Georgia, serif;
  letter-spacing: .035em;
  color: #f4dfb3;
  text-align: center;
  text-shadow: 0 1px 2px #110d0a;
}
.city-workspace-body {
  padding: 3px;
  box-shadow: inset 0 0 0 1px #1d1712;
}
.city-map-frame {
  min-width: 0;
  margin: 0;
  border: 1px solid #75674e;
  background: #2e2b26;
}
.city-workspace .city-map-frame {
  border: 5px solid #6c5640;
  border-image: var(--city-carved-stone) 16% round;
}
.city-map-frame .map-stage { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.city-map-frame .map-stage > img { filter: saturate(.92); }
.map-hit--preview { cursor: default; }
.map-tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  padding: 4px 7px;
  max-width: min(280px, calc(100vw - 12px));
  color: #f9ecd3;
  background: #211813e8;
  border: 1px solid #ad9466;
  border-radius: 3px;
  box-shadow: 0 1px 4px #120c0870;
  font: .78rem/1.25 Arial, sans-serif;
}
.city-map-arrow {
  position: absolute;
  z-index: 2;
  top: var(--map-arrow-y, 86%);
  width: clamp(30px, 9%, 44px);
  aspect-ratio: 1;
  padding: 3px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
.city-map-arrow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url("/assets/altima/city-wayfinder.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px #120c08);
}
.city-map-arrow--right { right: 2px; }
.city-map-arrow--left { left: 2px; }
.city-map-arrow--left::before { transform: scaleX(-1); }
.city-map-arrow:is(:hover, :focus-visible)::before { filter: brightness(1.24) drop-shadow(0 1px 2px #120c08); }
.city-map-arrow:focus-visible { outline: 2px solid #f0d4a0; outline-offset: -2px; }
.world-layout .game-stage .city-controls .button.ghost {
  min-height: 22px;
  color: #f2dbae;
  border-color: #896c49;
  background: linear-gradient(#4a392b, #34271f);
  box-shadow: inset 0 1px #b698654d;
}
.world-layout .game-stage .city-controls .button.ghost:is(:hover, :focus-visible) { background: #614936; }

.club-scroll { grid-column: 1 / -1; padding: 10px max(32px, 8vw); }
.club-workspace {
  --city-corbel-outset: 39px;
  --city-corbel-width: 40px;
  width: min(100%, clamp(295px, (100cqh - 125px) * 16 / 9, 710px));
  margin-inline: auto;
}
.club-workspace .city-workspace-heading::before,
.club-workspace .city-workspace-heading::after { height: 58px; }
.club-workspace > .city-controls { padding: 4px 8px 7px; }
.city-service-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-block: 8px 14px; }
.city-service-form label { display: grid; gap: 4px; }
.city-service-form input { width: 12ch; }
.city-service-form select { max-width: min(260px, 60vw); }
.consignment-lots { padding: 0; list-style: none; }
.consignment-lots li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
  padding: 5px 0;
  border-top: 1px solid #b4ad9f;
}
.consignment-lots li div { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.consignment-lots .gear-art { display: inline-block; width: 24px; height: 24px; }

@media (min-width: 761px) and (max-width: 1050px) {
  .city-screen--map { grid-template-columns: minmax(210px, 33%) minmax(0, var(--city-map-width)); }
  .city-overview, .city-screen--map .city-overview { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
}
@media (max-width: 760px) {
  .city-screen, .city-screen--interior { grid-template-columns: minmax(0,1fr); padding: 7px; gap: 9px; }
  .city-screen--map {
    --city-corbel-outset: 39px;
    --city-corbel-width: 40px;
    width: min(100%, 625px);
    padding-inline: 32px;
  }
  .city-overview, .city-screen--map .city-overview { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
  .city-workspace, .city-screen--interior .city-interior { grid-row: 1; }
  .city-workspace-heading { padding-inline: 18px; }
  .city-workspace-heading::before, .city-workspace-heading::after { height: 58px; }
}

@media (max-width: 470px) {
  .club-scroll { padding-inline: 27px; }
}
