/* Shared SIM artwork framing. Bounds are source pixels from
   sim_game/lib/models/enums/npcType.enum.dart (2048 × 2048 canvases).
   Jester uses x=554 to match the latest working-tree artwork; its declared
   game bounds still use the previous x=241 position. */
.sim-character--creative {
  --art-x: 554;
  --art-y: 190;
  --art-width: 1253;
  --art-height: 1820;
}

.sim-character--technical {
  --art-x: 667;
  --art-y: 901;
  --art-width: 569;
  --art-height: 1132;
}

.sim-character--communication {
  --art-x: 647;
  --art-y: 48;
  --art-width: 559;
  --art-height: 1965;
}

.sim-character--mental {
  --art-x: 495;
  --art-y: 485;
  --art-width: 1335;
  --art-height: 1528;
}

.sim-character {
  position: relative;
  height: 200px;
  width: auto;
  aspect-ratio: var(--art-width) / var(--art-height);
  margin: 0 auto;
  overflow: hidden;
}

.sim-character > img {
  position: absolute;
  left: calc(-100% * var(--art-x) / var(--art-width));
  top: calc(-100% * var(--art-y) / var(--art-height));
  width: calc(100% * 2048 / var(--art-width));
  height: calc(100% * 2048 / var(--art-height));
  max-width: none;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.sim-scene-frame {
  overflow: hidden;
  border-radius: 16px;
}

.timeline-image.sim-scene-frame {
  height: auto;
  border-radius: 12px;
}

.sim-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  transition: transform var(--transition-slow);
}

.sim-scene > .sim-scene-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.sim-scene > .sim-character {
  position: absolute;
  height: 84%;
  bottom: 6%;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

/* Keep source canvases aligned: only the complete scene scales on hover. */
.gallery-item:hover .sim-character > img,
.gallery-item:hover .sim-scene img,
.glass-card:hover .sim-scene img {
  transform: none;
}

.glass-card:hover .sim-scene {
  transform: scale(1.1);
}

.gallery-item:hover .sim-scene {
  transform: scale(1.02);
}

.attribution-logo.sim-attribution-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}
