.artisan-scene {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 140px;
  height: 72px;
  pointer-events: none;
  isolation: isolate;
  background: radial-gradient(ellipse at 57% 35%, #4a624f95, transparent 72%);
  font: 700 8px/1 Crimson, Georgia, serif;
}

.artisan-scene i { display: block; }

.artisan-print {
  position: absolute;
  width: 49px;
  height: 44px;
  padding: 3px;
  background: #eed5a8;
  border: 1px solid #a67a44;
  border-radius: 3px;
  box-shadow: 0 2px 6px #0e1716be;
  box-sizing: border-box;
}

.artisan-print-first { top: 17px; left: 15px; transform: rotate(-12deg); }
.artisan-print-second {
  top: 13px;
  left: 58px;
  width: 56px;
  height: 47px;
  overflow: hidden;
  transform: rotate(6deg);
  transform-origin: left center;
  animation: artisan-unroll 1050ms 190ms ease-out both;
}

.turn-panel .artisan-scene .artisan-print-art,
.artisan-print-art {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

.artisan-print-label {
  position: absolute;
  inset: auto 2px 2px;
  background: #f4deac;
  color: #492717;
  text-align: center;
  padding: 2px 0;
  font-size: 8px;
}

.artisan-clock {
  position: absolute;
  left: 65px;
  top: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #ffe0a0;
  background: #593927;
  box-shadow: 0 0 8px #f3c05880;
}

.artisan-clock::after {
  content: "";
  position: absolute;
  inset: 2px 3px 6px 6px;
  border-left: 1px solid #fff1bf;
  border-bottom: 1px solid #fff1bf;
  transform-origin: bottom left;
  animation: artisan-clock-turn 780ms ease-out both;
}

.artisan-cat {
  position: absolute;
  left: 107px;
  top: 30px;
  width: 24px;
  height: 35px;
  animation: artisan-peek 600ms 840ms cubic-bezier(.18,.64,.33,1) both;
}

.artisan-cat-head {
  position: absolute;
  top: 4px;
  left: 1px;
  width: 20px;
  height: 14px;
  border-radius: 42% 46% 48% 51%;
  background: radial-gradient(circle at 34% 55%, #441e14 0 1px, transparent 1.5px),
    radial-gradient(circle at 67% 55%, #441e14 0 1px, transparent 1.5px),
    linear-gradient(82deg, transparent 40%, #a04d2c 41% 46%, transparent 48% 54%, #a04d2c 56% 61%, transparent 63%) top / 100% 45% no-repeat,
    #df9046;
  box-shadow: inset 0 -2px #bf6b33, 0 1px 3px #30201770;
}

.artisan-cat-head::before,
.artisan-cat-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -5px;
  width: 7px;
  height: 9px;
  background: #dc8842;
  clip-path: polygon(0 0, 100% 55%, 85% 100%, 8% 100%);
}

.artisan-cat-head::before { left: 1px; }
.artisan-cat-head::after { right: 1px; transform: scaleX(-1); }
.artisan-cat-tail {
  position: absolute;
  left: 16px;
  top: 9px;
  width: 10px;
  height: 12px;
  border-right: 3px solid #dd9048;
  border-bottom: 3px solid #dd9048;
  border-radius: 0 60% 65% 0;
}
.artisan-cat-paws {
  position: absolute;
  top: 17px;
  left: 4px;
  width: 6px;
  height: 3px;
  border-radius: 50%;
  background: #f2bc74;
  box-shadow: 8px 0 #f2bc74;
}
.artisan-roger {
  position: absolute;
  top: 22px;
  left: -2px;
  padding: 2px 3px;
  color: #ffe3b1;
  background: #452d23;
  border: 1px solid #ac7445;
  border-radius: 3px;
}

.artisan-reel,
.artisan-channel {
  position: absolute;
  top: 11px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  overflow: hidden;
  border: 2px solid #ab8754;
  border-radius: 5px;
  background: #23372e;
  box-shadow: 0 2px 6px #0e1716be;
}

.artisan-reel { left: 5px; transform: rotate(-7deg); }
.artisan-scene .artisan-reel .artisan-print-art { position: absolute; inset: 0; opacity: .65; }

.artisan-play {
  z-index: 1;
  width: 12px;
  height: 13px;
  background: #fff7e4;
  clip-path: polygon(13% 0, 100% 50%, 13% 100%);
}

.artisan-signal {
  position: absolute;
  top: 26px;
  left: 53px;
  width: 29px;
  height: 3px;
  background: repeating-linear-gradient(90deg, #ffd481 0 5px, transparent 5px 8px);
  filter: drop-shadow(0 0 3px #ffb45e);
  transform-origin: left;
  animation: artisan-signal 500ms 210ms ease-out both;
}

.artisan-channel {
  z-index: 1;
  top: 7px;
  left: 82px;
  gap: 2px;
  align-content: center;
  background: #4c231e;
  transform: rotate(6deg);
  animation: artisan-screen 580ms 440ms ease-out both;
}

.artisan-scene .artisan-channel-badge {
  display: grid;
  place-items: center;
  width: 22px;
  height: 15px;
  background: #b73226;
  border: 1px solid #ef8a6c;
  border-radius: 4px;
}

.artisan-channel-badge .artisan-play { width: 7px; height: 8px; }
.artisan-channel-name { color: #ffe9ca; font-size: 10px; }
.artisan-audience { position: absolute; top: 44px; left: 66px; }

.artisan-watcher {
  position: absolute;
  left: calc(var(--watcher) * 12px + 2px);
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50% 50% 18% 18%;
  margin-top: 7px;
  background: #b98658;
  box-shadow: inset 0 -2px #7a513d;
  animation: artisan-watch 460ms calc(680ms + 85ms * var(--watcher)) ease-out both;
}

.artisan-watcher::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 2px;
  top: -5px;
  border-radius: 50%;
  background: #e0ad68;
}
.artisan-watcher:nth-child(even) { top: 3px; background: #748b73; }

@keyframes artisan-unroll {
  0% { clip-path: inset(0 100% 0 0); transform: rotate(-12deg) translateX(-31px); }
  52% { clip-path: inset(0 0 0 0); transform: rotate(10deg) translateX(2px); }
  100% { clip-path: inset(0); transform: rotate(6deg); }
}
@keyframes artisan-clock-turn { to { transform: rotate(1turn); } }
@keyframes artisan-peek {
  0% { opacity: 0; transform: translate(-12px, 10px); }
  75% { opacity: 1; transform: translate(1px, -2px); }
  100% { opacity: 1; transform: none; }
}
@keyframes artisan-signal { from { opacity: 0; transform: scaleX(0); } }
@keyframes artisan-screen {
  0% { opacity: 0; transform: translateX(-7px) rotate(-6deg) scale(.76); }
  80% { opacity: 1; transform: rotate(8deg) scale(1.07); }
}
@keyframes artisan-watch {
  0% { opacity: 0; transform: translateY(9px); }
  70% { opacity: 1; transform: translateY(-2px); }
}

.turn-panel .artisan-scene .artisan-mini-bike,
.artisan-mini-bike {
  position: absolute;
  left: 58px;
  top: 11px;
  width: 78px;
  height: 57px;
  object-fit: contain;
  animation: artisan-mini-ride 1330ms ease-out both;
}

.artisan-mini-guest {
  position: absolute;
  top: 10px;
  left: 23px;
  box-sizing: border-box;
  width: 22px;
  height: 25px;
  padding: 2px;
  border: 1px solid #b38c52;
  border-radius: 3px;
  background: #ecd9ae;
  transform: rotate(-8deg);
  animation: artisan-mini-disembark 1180ms ease-out both;
}

.artisan-mini-dock {
  position: absolute;
  top: 31px;
  left: 13px;
  display: grid;
  align-items: end;
  justify-items: center;
  box-sizing: border-box;
  width: 42px;
  min-height: 33px;
  padding: 5px 2px;
  border: 1px solid #7fae96;
  border-radius: 4px;
  background: #2c4437;
  color: #d3ebd0;
  text-align: center;
}

.artisan-mini-gold,
.artisan-mini-photo {
  top: 9px;
  left: 34px;
  width: 65px;
  height: 50px;
  overflow: hidden;
  transform: rotate(-7deg);
}

.turn-panel .artisan-scene .artisan-mini-gilded,
.artisan-mini-gilded {
  position: absolute;
  box-sizing: border-box;
  inset: 0;
  padding: 3px;
  filter: sepia(.85) saturate(1.75) brightness(1.2);
  animation: artisan-mini-gild 1050ms 180ms ease-in-out both;
}

.artisan-scene .artisan-mini-tag {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 7px;
  padding: 4px 6px;
  border: 1px solid #d3a368;
  border-radius: 3px;
  background: #43291d;
  color: #ffebbc;
  font-size: 10px;
  animation: artisan-screen 520ms 600ms ease-out both;
}

.artisan-mini-photo { left: 27px; animation: artisan-mini-photo-flash 1000ms 150ms both; }

.artisan-mini-flame {
  position: absolute;
  top: 13px;
  left: 86px;
  width: 25px;
  height: 31px;
  border-radius: 65% 25% 65% 35%;
  background: linear-gradient(32deg, #bc5b2d, #ffbb65 65%, #ffe5a1);
  filter: drop-shadow(0 0 6px #ea934d);
  transform: rotate(18deg);
  animation: artisan-mini-flare 870ms 200ms ease-out both;
}

.artisan-flame-inner {
  position: absolute;
  width: 13px;
  height: 19px;
  left: 7px;
  bottom: 2px;
  border-radius: 65% 25% 65% 35%;
  background: #fff3c1;
}

@keyframes artisan-mini-ride {
  0% { transform: translateX(85px); opacity: 0; }
  45% { transform: translateX(-9px) rotate(-5deg); opacity: 1; }
  58% { transform: none; }
}
@keyframes artisan-mini-disembark {
  0% { opacity: 0; transform: translate(170px, -6px) rotate(8deg); }
  50% { opacity: 1; transform: translate(88px, -6px) rotate(8deg); }
  76% { transform: translate(41px, -10px) rotate(-3deg); }
  100% { transform: rotate(-8deg); }
}
@keyframes artisan-mini-gild { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes artisan-mini-photo-flash { 38% { filter: brightness(1.6); box-shadow: 0 0 16px #f3ab78; } }
@keyframes artisan-mini-flare {
  from { opacity: 0; transform: translateY(12px) rotate(18deg) scale(.35); }
  38% { opacity: 1; transform: translateY(-3px) rotate(18deg) scale(1.15); }
}

[data-static="true"] .artisan-scene *,
[data-static="true"] .artisan-scene *::after,
.artisan-scene[data-static="true"] *,
.artisan-scene[data-static="true"] *::after { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .artisan-scene *,
  .artisan-scene *::after { animation: none !important; }
}
