.elka-art--toy,
.elka-art--tree,
.elka-art--room {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
  object-fit: contain;
}

.elka-art--toy {
  aspect-ratio: 1;
}

@media (prefers-reduced-motion: reduce) {
  .elka-art--toy,
  .elka-art--tree,
  .elka-art--room {
    animation: none;
    transition: none;
  }
}

:where([data-toy-tier]) {
  --toy-tier-fill: radial-gradient(ellipse at 50% 46%, var(--toy-tier-light), var(--toy-tier-stage) 82%);
}

[data-toy-tier="common"] {
  --toy-tier-light: #636366;
  --toy-tier-stage: #303035;
  --toy-tier-paper: #f0eff2;
  --toy-tier-edge: #a4a4b0;
  --toy-tier-label: #eeeef2;
}

[data-toy-tier="rare"] {
  --toy-tier-light: #376caa;
  --toy-tier-stage: #172f54;
  --toy-tier-paper: #e8f2ff;
  --toy-tier-edge: #8eb6e6;
  --toy-tier-label: #c6e5ff;
}

[data-toy-tier="epic"] {
  --toy-tier-light: #8054aa;
  --toy-tier-stage: #32224d;
  --toy-tier-paper: #f1e8fa;
  --toy-tier-edge: #bd9ce5;
  --toy-tier-label: #f2d9ff;
}

[data-toy-tier="legendary"] {
  --toy-tier-light: #d3a142;
  --toy-tier-stage: #594419;
  --toy-tier-paper: #ffe5a7;
  --toy-tier-edge: #e6bc76;
  --toy-tier-label: #ffe6aa;
}

.toy-motion-preview {
  display: grid;
  place-items: stretch;
  min-inline-size: 0;
  padding: 0;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.toy-motion-preview:focus-visible {
  outline: 2px solid #ffe4a0;
  outline-offset: 3px;
}

.toy-effect-button {
  --toy-effect-hit: 2.25rem;
  display: inline-grid;
  place-items: center;
  inline-size: var(--toy-effect-hit);
  block-size: var(--toy-effect-hit);
  padding: 0;
  border: 1px solid #e6c590;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #4f5849, #223832 82%);
  color: #ffdfa1;
  box-shadow: inset 0 1px #ffedc577, 0 2px 6px #0f1919a3;
  touch-action: manipulation;
}
.toy-effect-button:hover { background: #ffe4ab; color: #3c3024; }
.toy-effect-button:active { background: #f0c77e; }
.toy-effect-button:focus-visible { outline: 2px solid #fff0c1; outline-offset: 3px; }
@media (max-width: 760px), (pointer: coarse) {
  .toy-effect-button { --toy-effect-hit: 44px; }
}

.toy-motion-fx {
  position: absolute;
  z-index: 3;
  display: block;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.toy-motion-fx > canvas {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.claw-result.claw-result--still { animation: none; }
.claw-result[data-preview="true"][data-toy-tier=""] { border-color: #9db8d8; background: #142638f5; }
.claw-result .claw-result-toy { position: relative; }
.claw-result-toy > canvas { background: var(--toy-tier-fill, transparent); border-radius: .3rem; }
.claw-result-toy .toy-motion-fx > canvas { inline-size: 100%; block-size: 100%; }
