/* Added depth widget — Clip Art Monster breakdown styling */

.added-depth-widget {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 2px solid rgba(94, 116, 120, 0.8);
}

.added-depth-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background-color: #3d4f51;
  border: 2px solid #5e7478;
  border-radius: 16px;
  box-sizing: border-box;
}

.added-depth-widget .added-depth-heading {
  margin: 0;
  font-family: "Mouse Memoirs", sans-serif;
  color: #FC851D;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
}

.added-depth-widget .added-depth-intro {
  margin: 0;
  font-family: "Fira Sans", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 200;
  line-height: 1.35;
}

.added-depth-body {
  display: flex;
  justify-content: center;
}

.added-depth-stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  max-width: 100%;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .added-depth-widget {
    margin-top: 6px;
    padding-top: 20px;
  }

  .added-depth-container {
    padding: 16px 18px;
    border-radius: 14px;
  }

  .added-depth-widget .added-depth-heading {
    font-size: 1.75rem;
  }

  .added-depth-widget .added-depth-intro {
    font-size: 16px;
  }

  .added-depth-preview {
    width: min(360px, 100%);
    min-height: 0;
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .added-depth-stage {
    flex-direction: column;
    align-items: stretch;
  }

  .added-depth-side--add,
  .added-depth-side--remove {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .added-depth-widget {
    margin-top: 4px;
    padding-top: 16px;
  }

  .added-depth-container {
    padding: 12px 10px;
    border-radius: 12px;
    gap: 10px;
  }

  .added-depth-widget .added-depth-heading {
    font-size: 1.55rem;
  }

  .added-depth-widget .added-depth-intro {
    font-size: 15px;
    line-height: 1.4;
  }

  .added-depth-stage {
    gap: 14px;
  }

  .added-depth-preview {
    min-height: 0;
    width: min(320px, 100%);
  }

  .added-depth-layer-status {
    gap: 16px;
  }

  .added-depth-layer-count {
    min-width: 44px;
    min-height: 44px;
    padding: 4px 10px;
    font-size: 20pt;
  }
}

@media (max-width: 480px) {
  .added-depth-side--add,
  .added-depth-side--remove {
    flex-direction: column;
    align-items: stretch;
  }
}

.added-depth-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  width: 88px;
}

.added-depth-ball-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border: none;
  border-radius: 6px;
  background: #445458;
}

.added-depth-ball-card[data-depth-source] {
  cursor: pointer;
  transition: background 0.15s ease;
  touch-action: none;
  user-select: none;
}

.added-depth-ball-card[data-depth-source]:hover,
.added-depth-ball-card[data-depth-source]:focus-visible {
  outline: none;
  background: #526a6e;
}

.added-depth-ball-card[data-depth-source]:active {
  transform: scale(0.98);
}

.added-depth-ball-card.is-sending {
  opacity: 0.72;
  pointer-events: none;
}

.added-depth-preview.is-receiving {
  box-shadow: 0 0 0 2px #FC851D;
}

.added-depth-flight-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
}

.added-depth-flight-icon {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: left, top, transform, opacity;
  line-height: 0;
}

.added-depth-emoji {
  display: block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", emoji, sans-serif;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  -webkit-text-stroke: 1px #ffffff;
  paint-order: stroke fill;
  text-shadow:
    1px 0 0 #ffffff,
    -1px 0 0 #ffffff,
    0 1px 0 #ffffff,
    0 -1px 0 #ffffff,
    1px 1px 0 #ffffff,
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff;
}

.added-depth-icon-svg {
  width: 1.875rem;
  height: 1.875rem;
  display: block;
  overflow: visible;
}

.added-depth-icon-svg--muted {
  opacity: 0.55;
}

.added-depth-icon--flying.added-depth-emoji {
  -webkit-text-stroke: 1.5px #ffffff;
  text-shadow:
    2px 0 0 #ffffff,
    -2px 0 0 #ffffff,
    0 2px 0 #ffffff,
    0 -2px 0 #ffffff,
    2px 2px 0 #ffffff,
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff;
}

.added-depth-emoji--source {
  font-size: 1.875rem;
}

.added-depth-emoji--muted {
  filter: grayscale(1);
  opacity: 0.45;
}


.added-depth-source-icon-slot,
.added-depth-source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.added-depth-ball-label {
  font-family: "Fira Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.added-depth-ball-preview {
  width: 100%;
  aspect-ratio: 1;
  max-height: 65px;
  border: none;
  border-radius: 4px;
  background: #445458;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.added-depth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.added-depth-preview {
  width: min(420px, 100%);
  min-height: 420px;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 10px;
  background: #342c43;
  overflow: visible;
  transition: box-shadow 0.2s ease;
}

.added-depth-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.added-depth-layer-status {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  margin-top: 10px;
  width: 100%;
}

.added-depth-layer-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.added-depth-layer-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 6px 14px;
  border: 2px solid #5e7478;
  border-radius: 10px;
  background-color: #445458;
  box-sizing: border-box;
  font-family: "Mouse Memoirs", sans-serif;
  font-size: 26pt;
  font-weight: 700;
  line-height: 1;
  color: #FC851D;
}

.added-depth-layer-label {
  font-family: "Fira Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}
