.studio-particles-layer {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
}
.studio-particles-layer[hidden] {
  display: none !important;
}
.studio-particles-layer img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none !important;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}
.studio-particles-back {
  z-index: 1;
}
.studio-particles-front {
  z-index: 8;
}
.studio-particles-anchor:not(.physical-render) {
  position: relative;
  z-index: 2;
}
.ps-stage-top,
.ps-stage-hint,
.ps-stage .ps-segment {
  z-index: 4;
}

.ps-particle-editor {
  min-width: 0;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--website-line-83-100-67-1, #536443);
  border-radius: 14px;
  background: var(--website-surface-169-197-125-0_03137254901960784, #a9c57d08);
}
.ps-particle-editor legend {
  padding: 0 8px;
  font-size: 18px;
  font-weight: 650;
  color: var(--website-ink-231-239-217-1, #e7efd9);
}
.ps-particle-editor > p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--website-ink-172-185-155-1, #acb99b);
  margin: 0 0 14px;
}
.ps-particle-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px dashed var(--website-line-131-155-101-1, #839b65);
  border-radius: 12px;
  background: var(--website-surface-23-32-18-1, #172012);
  cursor: pointer;
  min-height: 76px;
}
.ps-particle-upload img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 7px;
  background: repeating-conic-gradient(var(--website-surface-52-64-42-1, #34402a) 0% 25%, var(--website-surface-36-46-28-1, #242e1c) 0% 50%) 0 / 14px 14px;
}
.ps-particle-upload strong {
  display: block;
  font-size: 16px;
  color: var(--website-ink-225-236-205-1, #e1eccd);
}
.ps-particle-upload small {
  display: block;
  font-size: 13px;
  color: var(--website-ink-157-174-137-1, #9dae89);
  margin-top: 6px;
}
.ps-particle-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ps-particle-enabled {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--website-ink-218-230-201-1, #dae6c9);
}
.ps-particle-enabled input {
  width: 18px;
  height: 18px;
  accent-color: #d0ef9d;
}
.ps-particle-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.ps-particle-controls label {
  min-width: 0;
  font-size: 14px;
  font-weight: 550;
  color: var(--website-ink-196-211-179-1, #c4d3b3);
}
.ps-particle-controls output {
  float: right;
  color: var(--website-ink-224-243-191-1, #e0f3bf);
  font-variant-numeric: tabular-nums;
}
.ps-particle-controls input[type='range'] {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 5px;
  accent-color: #c4e98f;
}
.ps-particle-controls select {
  display: block;
  width: 100%;
  min-height: 44px;
  font: inherit;
  color: var(--website-ink-226-235-215-1, #e2ebd7);
  background: var(--website-surface-28-39-21-1, #1c2715);
  border: 1px solid var(--website-line-82-99-66-1, #526342);
  border-radius: 9px;
  padding: 9px 12px;
  margin-top: 6px;
}
.ps-particle-controls :disabled {
  opacity: 0.4;
  cursor: default;
}
.ps-particle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 10px;
}
.ps-particle-actions button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ps-particle-upload:focus-within {
  outline: 2px solid var(--website-line-214-240-173-1, #d6f0ad);
  outline-offset: 3px;
}
.ps-particle-upload:has(input:disabled) {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 600px) {
  .ps-particle-editor {
    padding: 13px;
    margin: 16px 0;
  }
  .ps-particle-controls {
    gap: 12px 10px;
  }
  .ps-particle-upload {
    padding: 12px;
  }
  .ps-particle-actions button {
    flex: 1;
  }
  .ps-particle-controls select {
    font-size: 16px;
  }
}

.studio-particles-host {
  position: relative !important;
}

.studio-particle-fleck {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  border-radius: 35%;
  background: var(--fleck-color, #e3d5b2);
  box-shadow: 0 0 4px var(--fleck-color, #e3d5b2);
  pointer-events: none;
}
