/* Diya Flame · DS-069 · .dy- prefixed */
.dy { font: 400 14px/1.6 ui-sans-serif, system-ui, sans-serif; }
.dy-row { display: flex; gap: 26px; justify-content: center; align-items: flex-end; padding: 18px 10px 8px; }
.dy-lamp { position: relative; width: 40px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.dy-bowl {
  width: 40px; height: 18px;
  background: linear-gradient(180deg, #B4552D 0%, #7C3A1B 100%);
  border-radius: 4px 4px 18px 18px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.35);
}
.dy-flame {
  position: absolute; bottom: 16px; width: 9px; height: 20px;
  background: radial-gradient(50% 60% at 50% 75%, #FFF3C4 0%, #FFB93E 45%, #F97316 80%, rgba(249,115,22,0) 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 100%;
  animation: dyFlick 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255,176,60,.55));
}
@keyframes dyFlick {
  0%, 100% { transform: scaleY(1) scaleX(1) translateX(0); }
  25% { transform: scaleY(1.12) scaleX(.94) translateX(.5px); }
  50% { transform: scaleY(.9) scaleX(1.05) translateX(-.8px); }
  75% { transform: scaleY(1.07) scaleX(.97) translateX(.4px); }
}
.dy-lean-l .dy-flame { animation-name: dyFlick, dyLeanL; }
.dy-lean-r .dy-flame { animation-name: dyFlick, dyLeanR; }
@keyframes dyLeanL { to { transform: skewX(-18deg) scaleY(.92); } }
@keyframes dyLeanR { to { transform: skewX(18deg) scaleY(.92); } }
/* bulbs mode */
.dy-bulbs .dy-row { align-items: flex-start; padding-top: 0; }
.dy-bulbs .dy-row::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 8px; height: 22px;
  border-top: 2px solid #3A4152; border-radius: 50% 50% 0 0;
}
.dy-bulb { position: relative; width: 20px; height: 34px; }
.dy-drop {
  position: absolute; bottom: 0; left: 5px; width: 10px; height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: dyGlow 1.8s ease-in-out infinite;
}
.dy-bulb::before {
  content: ''; position: absolute; top: 0; left: 9px; width: 2px; height: 20px;
  background: #3A4152;
}
.dy-bulb:nth-child(4n+1) .dy-drop { background: #FBBF24; box-shadow: 0 0 10px #FBBF24; }
.dy-bulb:nth-child(4n+2) .dy-drop { background: #F472B6; box-shadow: 0 0 10px #F472B6; }
.dy-bulb:nth-child(4n+3) .dy-drop { background: #34D399; box-shadow: 0 0 10px #34D399; }
.dy-bulb:nth-child(4n+4) .dy-drop { background: #60A5FA; box-shadow: 0 0 10px #60A5FA; }
@keyframes dyGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .dy-flame, .dy-drop { animation: none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
