/* ==========================================================================
   Jhaank Rating · DS-046 · TheLayoutLoft Parts Line — .jk- prefixed
   ========================================================================== */
.jk { display: inline-flex; gap: 6px;
  -webkit-user-select: none; user-select: none; }
.jk:focus-visible { outline: 2px solid #F9A8D4; outline-offset: 4px;
  border-radius: 8px; }
.jk-s { background: none; border: 0; padding: 2px; cursor: pointer;
  perspective: 120px; }
.jk-s svg { width: 26px; height: 26px; display: block;
  transition: transform .22s cubic-bezier(.3,1.4,.4,1); }
.jk-base { fill: none; stroke: #5A6478; stroke-width: 1.6; }
.jk-warm { fill: #F59E0B; stroke: none; opacity: 0;
  transform-origin: 50% 100%; transform: scaleY(.12);
  transition: opacity .18s, transform .22s cubic-bezier(.3,1.4,.4,1); }
/* the "peek": lid lifts (rotateX flip-up) revealing warmth */
.jk-s.jk-peek svg { transform: rotateX(-38deg) translateY(-2px); }
.jk-s.jk-peek .jk-warm { opacity: .55; transform: scaleY(.85); }
/* locked rating: full warm fill, lid settled */
.jk-s.jk-lit .jk-base { stroke: #F59E0B; }
.jk-s.jk-lit .jk-warm { opacity: 1; transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .jk-s svg, .jk-warm { transition: 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; } }
