/* Koşucu kalıbı — 640×720 tuvalde gövde altta. Ayak çizgisinden büyüt:
   ayaklar kutuda kalır, üst boşluk kırpılır; kafa/kuyruk kesilmez. */

.nova-kosucu-stage {
  --kosucu-zoom: 1.12;
  --kosucu-origin-y: 100%;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
}

.nova-kosucu-rig {
  position: relative;
  width: 100%;
  height: 100%;
  transform: scale(var(--kosucu-zoom));
  transform-origin: 50% var(--kosucu-origin-y);
  pointer-events: none;
}

.nova-kosucu-alive {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  container-type: size;
  transform-origin: 50% 100%;
}

/* Gövde + aksesuar aynı 640×720 tuval. Telefon kutusu --kosucu-fit ile
   ölçeklenir; ayrı cqw img boyutu Safari’de kaydırıyordu. */
.nova-kosucu-frame {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 640px;
  height: 720px;
  margin-left: -320px;
  transform-origin: 50% 100%;
  transform: scale(var(--kosucu-fit, min(calc(100cqw / 640), calc(100cqh / 720))));
  pointer-events: none;
}

.nova-kosucu-body,
.nova-kosucu-slot,
.nova-kosucu-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: fill;
  object-position: center bottom;
  transform-box: border-box;
  pointer-events: none;
  background: none;
}

.nova-kosucu-slot img.is-on {
  pointer-events: auto;
}

.nova-kosucu-body { z-index: 1; }
.nova-kosucu-slot--feet { z-index: 2; }
.nova-kosucu-slot--shoes { z-index: 3; }
.nova-kosucu-slot--necklace { z-index: 4; }
.nova-kosucu-slot--glasses { z-index: 5; }
.nova-kosucu-slot--hand { z-index: 6; }
.nova-kosucu-slot--hat { z-index: 7; }

#main-screen .nova-main-hero-host .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--cibi .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--maymun .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--aslan .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--kaplumbaga .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--pamuk .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--kirpi .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--ayaz .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--koru .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--lila .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--tavuk .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--momo .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--kaplan .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--fare .nova-kosucu-stage,
#main-screen .nova-main-hero-zone--panda .nova-kosucu-stage {
  --kosucu-zoom: 1.06;
  --kosucu-origin-y: 100%;
  padding: 10% 12% 3%;
}

#main-screen .nova-main-hero-showcase .nova-main-hero-slot .nova-main-hero-host:has(.nova-kosucu-stage) {
  width: clamp(92px, 23vw, 118px) !important;
  height: clamp(88px, 22vw, 114px) !important;
  max-width: clamp(92px, 23vw, 118px) !important;
  max-height: clamp(88px, 22vw, 114px) !important;
  min-width: clamp(92px, 23vw, 118px) !important;
  min-height: clamp(88px, 22vw, 114px) !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: 0 auto !important;
}

.nova-hero-store-card--cibi .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--maymun .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--aslan .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--kaplumbaga .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--pamuk .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--kirpi .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--ayaz .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--koru .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--lila .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--tavuk .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--momo .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--kaplan .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--fare .nova-hero-preview--store-live .nova-hero-svg-host,
.nova-hero-store-card--panda .nova-hero-preview--store-live .nova-hero-svg-host {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 12px 14px 6px !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.nova-hero-store-card--cibi .nova-kosucu-stage,
.nova-hero-store-card--maymun .nova-kosucu-stage,
.nova-hero-store-card--aslan .nova-kosucu-stage,
.nova-hero-store-card--kaplumbaga .nova-kosucu-stage,
.nova-hero-store-card--pamuk .nova-kosucu-stage,
.nova-hero-store-card--kirpi .nova-kosucu-stage,
.nova-hero-store-card--ayaz .nova-kosucu-stage,
.nova-hero-store-card--koru .nova-kosucu-stage,
.nova-hero-store-card--lila .nova-kosucu-stage,
.nova-hero-store-card--tavuk .nova-kosucu-stage,
.nova-hero-store-card--momo .nova-kosucu-stage,
.nova-hero-store-card--kaplan .nova-kosucu-stage,
.nova-hero-store-card--fare .nova-kosucu-stage,
.nova-hero-store-card--panda .nova-kosucu-stage {
  --kosucu-zoom: 0.94;
  --kosucu-origin-y: 100%;
}

/* Detay modalı — şapka/aksesuar kesilmesin, 640×720 tuval kutuya sığsın */
.nova-store-detail-preview--hero.nova-store-detail-preview--cibi,
.nova-store-detail-preview--hero.nova-store-detail-preview--maymun,
.nova-store-detail-preview--hero.nova-store-detail-preview--aslan,
.nova-store-detail-preview--hero.nova-store-detail-preview--kaplumbaga,
.nova-store-detail-preview--hero.nova-store-detail-preview--pamuk,
.nova-store-detail-preview--hero.nova-store-detail-preview--kirpi,
.nova-store-detail-preview--hero.nova-store-detail-preview--ayaz,
.nova-store-detail-preview--hero.nova-store-detail-preview--koru,
.nova-store-detail-preview--hero.nova-store-detail-preview--lila,
.nova-store-detail-preview--hero.nova-store-detail-preview--tavuk,
.nova-store-detail-preview--hero.nova-store-detail-preview--momo,
.nova-store-detail-preview--hero.nova-store-detail-preview--kaplan,
.nova-store-detail-preview--hero.nova-store-detail-preview--fare,
.nova-store-detail-preview--hero.nova-store-detail-preview--panda {
  min-height: 280px;
  max-height: 300px;
  padding: 10px 10px 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: stretch;
}

.nova-store-detail-preview--hero .nova-store-preview--cibi,
.nova-store-detail-preview--hero .nova-store-preview--maymun,
.nova-store-detail-preview--hero .nova-store-preview--aslan,
.nova-store-detail-preview--hero .nova-store-preview--kaplumbaga,
.nova-store-detail-preview--hero .nova-store-preview--pamuk,
.nova-store-detail-preview--hero .nova-store-preview--kirpi,
.nova-store-detail-preview--hero .nova-store-preview--ayaz,
.nova-store-detail-preview--hero .nova-store-preview--koru,
.nova-store-detail-preview--hero .nova-store-preview--lila,
.nova-store-detail-preview--hero .nova-store-preview--tavuk,
.nova-store-detail-preview--hero .nova-store-preview--momo,
.nova-store-detail-preview--hero .nova-store-preview--kaplan,
.nova-store-detail-preview--hero .nova-store-preview--fare,
.nova-store-detail-preview--hero .nova-store-preview--panda {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 252px;
  min-height: 252px;
  max-height: 252px;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-store-detail-preview--hero .nova-store-preview--cibi .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--maymun .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--aslan .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--kaplumbaga .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--pamuk .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--kirpi .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--ayaz .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--koru .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--lila .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--tavuk .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--momo .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--kaplan .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--fare .nova-hero-svg-host,
.nova-store-detail-preview--hero .nova-store-preview--panda .nova-hero-svg-host {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  padding: 28px 22px 8px;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

.nova-store-detail-preview--hero .nova-kosucu-stage {
  --kosucu-zoom: 0.82 !important;
  --kosucu-origin-y: 100% !important;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: visible;
}

.nova-store-detail-preview--hero .nova-kosucu-body {
  object-fit: fill;
  object-position: center bottom;
}

.nova-hero-store-card--cibi .nova-hero-preview,
.nova-hero-store-card--maymun .nova-hero-preview,
.nova-hero-store-card--aslan .nova-hero-preview,
.nova-hero-store-card--kaplumbaga .nova-hero-preview,
.nova-hero-store-card--pamuk .nova-hero-preview,
.nova-hero-store-card--kirpi .nova-hero-preview,
.nova-hero-store-card--ayaz .nova-hero-preview,
.nova-hero-store-card--koru .nova-hero-preview,
.nova-hero-store-card--lila .nova-hero-preview,
.nova-hero-store-card--tavuk .nova-hero-preview,
.nova-hero-store-card--momo .nova-hero-preview,
.nova-hero-store-card--kaplan .nova-hero-preview,
.nova-hero-store-card--fare .nova-hero-preview,
.nova-hero-store-card--panda .nova-hero-preview,
.nova-hero-store-card--cibi .nova-hero-preview--store-live,
.nova-hero-store-card--maymun .nova-hero-preview--store-live,
.nova-hero-store-card--aslan .nova-hero-preview--store-live,
.nova-hero-store-card--kaplumbaga .nova-hero-preview--store-live,
.nova-hero-store-card--pamuk .nova-hero-preview--store-live,
.nova-hero-store-card--kirpi .nova-hero-preview--store-live,
.nova-hero-store-card--ayaz .nova-hero-preview--store-live,
.nova-hero-store-card--koru .nova-hero-preview--store-live,
.nova-hero-store-card--lila .nova-hero-preview--store-live,
.nova-hero-store-card--tavuk .nova-hero-preview--store-live,
.nova-hero-store-card--momo .nova-hero-preview--store-live,
.nova-hero-store-card--kaplan .nova-hero-preview--store-live,
.nova-hero-store-card--fare .nova-hero-preview--store-live,
.nova-hero-store-card--panda .nova-hero-preview--store-live {
  overflow: hidden !important;
}

@keyframes nova-kosucu-breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.01, 1.024); }
}

.nova-kosucu-rig.is-alive .nova-kosucu-alive {
  animation: nova-kosucu-breathe 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .nova-kosucu-rig.is-alive .nova-kosucu-alive {
    animation: none;
  }
}
