/* Udaan — DS-020 · TheLayoutLoft Parts Line
   Skin B: brass merchant token. All .ud- prefixed. */
.ud {
  font:700 13.5px/1 ui-sans-serif,system-ui,sans-serif;
  padding:13px 26px; border-radius:11px; cursor:pointer;
  background:#14161D; color:#F8FAFC;
  border:1px solid rgba(232,207,126,.28);
  transition:transform .15s, border-color .2s, background .25s;
  position:relative;
}
.ud:hover { border-color:rgba(232,207,126,.55); }
.ud.ud-sink { transform:translateY(1px) scale(.985); }
.ud.ud-added { background:#064E3B; border-color:rgba(52,211,153,.45); color:#A7F3D0; }

/* flying chip — appended to body, fixed-positioned by JS */
.ud-fly {
  position:fixed; z-index:9999; pointer-events:none;
  transform:translate(-50%,-50%);
}
.ud-fly i, .ud-fly > * { display:block; }
.ud-fly i {
  width:16px; height:16px; border-radius:5px;
  background:linear-gradient(135deg,#E8CF7E,#B8952F);
  box-shadow:0 0 14px rgba(232,207,126,.65);
}

/* the bag/counter target */
.ud-bag {
  position:relative; display:inline-flex; align-items:center; gap:7px;
  color:#C7CDDC; text-decoration:none; font:600 13px/1 inherit;
}
.ud-count {
  min-width:20px; height:20px; padding:0 6px; border-radius:99px;
  display:inline-grid; place-items:center;
  background:#E8CF7E; color:#14161D; font:800 11px/1 ui-monospace,monospace;
}
@keyframes ud-pop {
  0% { transform:scale(1); } 40% { transform:scale(1.22); }
  70% { transform:scale(.94); } 100% { transform:scale(1); }
}
.ud-bag.ud-pop { animation:ud-pop .3s cubic-bezier(.34,1.56,.64,1); }

@media (prefers-reduced-motion:reduce) {
  .ud-bag.ud-pop { 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; } }
