/* Original 4 × 3 city animation atlases, within the shared game's art bounds. */
html[data-theme="vice"] [data-urban-hidden] {
  display: none !important;
}
html[data-theme="vice"] .vice-art-slot {
  isolation: isolate;
}
html[data-theme="vice"] :is(.mode-art, .player-avatar).vice-art-slot {
  position: relative;
}
html[data-theme="vice"] .vice-art-slot > [data-urban-content] {
  z-index: 3;
}
html[data-theme="vice"] .vice-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  --sprite-rise: -8px;
}
html[data-theme="vice"] .vice-sprite {
  display: block;
  width: var(--sprite-size, 250px);
  height: var(--sprite-size, 250px);
  flex: none;
  position: relative;
  z-index: 1;
  transform: translateY(var(--sprite-rise, 0px));
  background-size: calc(var(--sprite-size, 250px) * 4)
    calc(var(--sprite-size, 250px) * 3);
  background-position: 0
    calc(var(--sprite-row, 0) * var(--sprite-size, 250px) * -1);
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px #0b071955);
}
html[data-theme="vice"]
  :is(.vice-sprite-crew, .vice-sprite-el-jefe, .vice-sprite-la-sombra) {
  background-image: url("/themes/vice/assets/urban-cast.png");
}
html[data-theme="vice"]
  :is(.vice-sprite-car, .vice-sprite-market, .vice-sprite-trophy) {
  background-image: url("/themes/vice/assets/urban-objects.png");
}
html[data-theme="vice"]
  :is(.vice-sprite-daily, .vice-sprite-gear, .vice-sprite-vault) {
  background-image: url("/themes/vice/assets/urban-rewards.png");
}
html[data-theme="vice"]
  :is(.vice-sprite-crew, .vice-sprite-car, .vice-sprite-daily) {
  --sprite-row: 0;
}
html[data-theme="vice"]
  :is(.vice-sprite-el-jefe, .vice-sprite-market, .vice-sprite-gear) {
  --sprite-row: 1;
}
html[data-theme="vice"]
  :is(.vice-sprite-la-sombra, .vice-sprite-trophy, .vice-sprite-vault) {
  --sprite-row: 2;
}
html[data-theme="vice"] .vice-sprite-vehicle {
  background-image: url("/themes/vice/assets/vehicles-city.png");
}
html[data-theme="vice"] :is(.vice-crowd, .vice-service-scene) {
  --composition-cell: var(--sprite-size, 250px);
  position: relative;
  width: var(--composition-cell);
  height: var(--composition-cell);
  transform: translateY(var(--sprite-rise, 0px));
}
html[data-theme="vice"] .vice-crowd > .vice-sprite {
  --sprite-size: calc(var(--composition-cell) * 0.8);
  --sprite-rise: 0px;
  position: absolute;
  left: -18%;
  bottom: 3%;
}
html[data-theme="vice"] .vice-crowd > .vice-sprite:nth-child(2) {
  --sprite-size: calc(var(--composition-cell) * 0.92);
  z-index: 2;
  left: 4%;
  bottom: -1%;
  animation-delay: -0.4s;
}
html[data-theme="vice"] .vice-crowd > .vice-sprite:nth-child(3) {
  left: 38%;
  animation-delay: -0.8s;
}
html[data-theme="vice"] .vice-service-scene > .vice-sprite-actor {
  --sprite-size: calc(var(--composition-cell) * 0.98);
  --sprite-rise: 0px;
  position: absolute;
  left: -14%;
  bottom: 0;
}
html[data-theme="vice"] .vice-service-scene > .vice-service-prop {
  --sprite-size: calc(var(--composition-cell) * 0.65);
  --sprite-rise: 0px;
  position: absolute;
  z-index: 2;
  left: 45%;
  bottom: -3%;
}
html[data-theme="vice"] .vice-art--offer {
  --sprite-size: 216px;
  --sprite-rise: -20px;
}
html[data-theme="vice"] .vice-art--boss {
  --sprite-size: 260px;
  --sprite-rise: -24px;
}
html[data-theme="vice"] .vice-art--stake {
  --sprite-size: 218px;
  --sprite-rise: -34px;
}
html[data-theme="vice"] .vice-art--flyer {
  --sprite-size: 128px;
  --sprite-rise: -31px;
}
html[data-theme="vice"] .vice-art--avatar {
  --sprite-size: 150px;
  --sprite-rise: 0px;
}
html[data-theme="vice"] .vice-art--avatar .vice-sprite {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
}
html[data-theme="vice"] .player-avatar.vice-art-slot {
  overflow: hidden;
}
html[data-theme="vice"] #lobby .raid-feature-art {
  background-position: center;
}
html[data-theme="vice"] #lobby .raid-feature-name {
  gap: 14px;
}
html[data-theme="vice"] #lobby .raid-feature-sub {
  font-size: 19px;
}

/* Glyphs use their existing plate dimensions, so no hit targets or responsive
 * frame coordinates change when replacing the old fantasy artwork. */
html[data-theme="vice"] .vice-mini-glyph {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--vice-cyan, #76e7e0);
  pointer-events: none;
}
html[data-theme="vice"] .vice-ui-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
  shape-rendering: crispEdges;
}
html[data-theme="vice"] .vice-glyph-coin,
html[data-theme="vice"] .vice-glyph-trophy,
html[data-theme="vice"] .vice-glyph-medal {
  color: #ffd18b;
}
html[data-theme="vice"] .vice-glyph-mail,
html[data-theme="vice"] .vice-glyph-contact,
html[data-theme="vice"] .vice-glyph-fusion {
  color: #ff94ca;
}
html[data-theme="vice"] .vice-glyph-settings,
html[data-theme="vice"] .vice-glyph-vault,
html[data-theme="vice"] .vice-glyph-vest {
  color: #c8a0ef;
}
html[data-theme="vice"] .vice-glyph-case,
html[data-theme="vice"] .vice-glyph-bag {
  color: #ffc6a4;
}
html[data-theme="vice"] .shortcut-plate > .vice-mini-glyph {
  width: 36px;
  height: 36px;
}
html[data-theme="vice"] .dd-card-time .vice-mini-glyph {
  width: 20px;
  height: 20px;
  color: #ffe0a7;
}
html[data-theme="vice"] .app[data-format="tall"] .asb-swords .vice-mini-glyph {
  width: 16px;
  height: 16px;
}
html[data-theme="vice"] .app[data-format="short"] .asb-swords .vice-mini-glyph {
  width: 20px;
  height: 20px;
}
html[data-theme="vice"]
  .app:is([data-format="tall"], [data-format="short"])
  .mhdg-chip
  .vice-mini-glyph {
  width: 24px;
  height: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme="vice"] .vice-sprite {
    animation: vice-urban-frames 1.2s steps(4, end) infinite;
  }
  html[data-theme="vice"] .vice-art--boss .vice-sprite {
    animation-duration: 1.4s;
  }
  html[data-theme="vice"] .mode:hover .vice-sprite,
  html[data-theme="vice"] .mode:focus-visible .vice-sprite {
    animation-duration: 0.8s;
  }
  html[data-theme="vice"][data-vice-motion="paused"]
    :is(.app .vice-sprite, .vice-atmosphere .vice-sprite) {
    animation-play-state: paused;
  }
  html[data-theme="vice"][data-vice-hidden] .vice-sprite {
    animation-play-state: paused;
  }
  html[data-theme="vice"] .app[data-page] #lobby .vice-sprite {
    animation-play-state: paused;
  }
}
@keyframes vice-urban-frames {
  from {
    background-position-x: 0;
  }
  to {
    background-position-x: calc(var(--sprite-size, 250px) * -4);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="vice"] .vice-sprite {
    animation: none !important;
  }
}
