.city-view {
  position: absolute;
  inset: 0;
  color: #eff7f5;
}
.city-heading,
.city-camera {
  position: absolute;
  z-index: 4;
  padding: 7px 16px;
  border: 1px solid #ecfff180;
  border-radius: 999px;
  background: #0c1926eb;
  color: #eff8f7;
  font-size: 21px;
  font-weight: 500;
  white-space: nowrap;
}
.city-heading {
  top: 39px;
  left: 55px;
}
.city-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #243a30;
}
.city-map {
  position: absolute;
  width: 1672px;
  height: 941px;
  transform-origin: top left;
}
.city-art,
.city-routes,
.city-markers,
.city-cast {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.city-markers { z-index: 3; }
.city-location {
  position: absolute;
  transform: scale(var(--inverse-zoom, 1));
  transform-origin: 0 0;
}
.city-location::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  background: #e8f9f1;
  border: 2px solid #1a464b;
  border-radius: 50%;
  box-shadow: 0 1px 6px #061b1a;
}
.city-location span {
  position: absolute;
  left: 0;
  top: -9px;
  transform: translate(-50%, -100%);
  padding: 5px 12px;
  border: 1px solid #aedbd9bd;
  border-radius: 7px;
  color: #fff;
  background: #122938f5;
  box-shadow: 0 4px 12px #0d151a60;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.city-cast { isolation: isolate; z-index: 2; }
.city-person {
  position: absolute;
  transform: scale(var(--person-scale, 1));
  transform-origin: 0 0;
}
.city-person::before {
  content: "";
  position: absolute;
  width: 33px;
  height: 10px;
  border-radius: 50%;
  background: #19211d61;
  transform: translate(-54%, -54%) rotate(9deg);
  filter: blur(2px);
}
.city-person img {
  display: block;
  position: absolute;
  height: 81px;
  max-width: none;
  left: 0;
  top: 0;
  transform-origin: bottom center;
  transform: translate(-50%, calc(-100% + var(--bob, 0px)));
  filter: drop-shadow(0 1px 1px #101b1550);
}
.city-person-left img { transform: translate(-50%, calc(-100% + var(--bob, 0px))) scaleX(-1); }
.city-student img { height: 68px; }
.city-person-notice {
  position: absolute;
  left: 13px;
  top: -50px;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--notice-color);
  box-shadow: 0 0 var(--signal-glow, 6px) var(--notice-color);
  background: #182b38;
  color: var(--notice-color);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.city-camera {
  position: absolute;
  left: 55px;
  bottom: 164px;
  z-index: 4;
  font-size: 18px;
}
.city-info {
  --beat-color: #68f1d0;
  position: absolute;
  z-index: 5;
  right: 56px;
  top: 94px;
  width: max-content;
  max-width: 570px;
  padding: 22px 27px 24px;
  opacity: 0;
  border: 1px solid #d7e9ee73;
  border-radius: 21px;
  background: linear-gradient(150deg,#102734f7,#10212ef5 68%,#101f2ae8);
  box-shadow: 0 16px 40px #0008;
  pointer-events: none;
}
.city-info[data-side="left"] { left: 56px; right: auto; }
.city-view .city-steps { display: none; }
.city-view[data-beat="track"] .city-steps { display: grid; }
.city-school-report {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.city-school-report span {
  padding: 6px 12px;
  border: 1px solid #9bcbe8;
  border-radius: 7px;
  color: #dbf0ff;
  font-size: 18px;
}
.city-group {
  margin-bottom: 11px;
  color: var(--beat-color);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.city-info h3 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.city-info p {
  margin-top: 10px;
  color: #e0ebee;
  font-size: 26px;
  line-height: 1.42;
}
.city-steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.city-steps li {
  position: relative;
  padding: 9px 11px 9px 38px;
  min-height: 45px;
  border: 1px solid #bde9e51e;
  border-radius: 9px;
  background: #071a2569;
  color: #aec1c8;
  font-size: 21px;
  line-height: 1.3;
}
.city-steps li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5c7680;
}
.city-steps .city-step-complete::before { background: #b7d5cf; }
.city-steps .city-step-current {
  border-color: var(--beat-color);
  color: #fff;
}
.city-steps .city-step-current::before { background: var(--beat-color); }
.city-inset:not(:empty) { margin-top: 13px; max-width: 374px; }
.city-school-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: center;
  font-size: 18px;
}
.city-school-plan div {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid #88aab5;
  border-radius: 7px;
  background: #2c4754;
}
.city-school-plan .city-school-target {
  min-height: 62px;
  border-color: #ff947e;
  background: #623e3b;
}
.city-school-target span { color: #ffd1c4; }
.city-school-plan .city-school-yard {
  grid-column: span 2;
  min-height: 32px;
  border: 1px dashed #88aab5;
  background: transparent;
}
.city-dispatch-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #80a6ae;
  border-radius: 9px;
  background: linear-gradient(#112f393b,#112f393b), url("assets/city/map.webp") center / 100% 100%;
}
.city-dispatch-map span {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #38aaff;
  box-shadow: 0 0 7px #0e3b69;
  transform: translate(-50%, -50%);
}
.city-dispatch-map .city-dispatch-incident { background: #ff794f; }

@media (prefers-reduced-motion: reduce) {
  .city-info { transform: none !important; }
}
