/* ==========================================================================
   Pricing builder (section 04): page count, drag elements, watch a wireframe sketch appear.
   Logic: js/builder.js. Logical properties throughout, so RTL/LTR mirror for free.
   Everything is class-scoped (no `.builder .x`), because the drag ghost and "leaving"
   clones are appended to <body>, outside the section.
   ========================================================================== */
:root {
  --b-card: #10222a;
  --b-line: rgba(255, 255, 255, .09);
  --b-line-hi: rgba(255, 255, 255, .16);
  --b-text: #F4F5F7;
  --b-muted: #9AA2AF;
  --b-accent: #8fc3cf;
  --b-warn: #FFC46B;
  /* the paper the sketch is drawn on */
  --sk-paper: #F4F5F7;
  --sk-ink: #525866;
  --sk-line: #C9CED8;
  --sk-fill: #E4E7EC;
  --sk-blue: #2e6b7c;
}

/* The site has no global <button> reset, so every builder button starts from a clean slate
   (later, more specific rules add each one's own look). */
.tool, .stepper__b, .seg__b, .tab, .blk__x, .switch {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

/* overflow:hidden (from .section--dark) would break the sticky total bar; clip does not. */
#pricing.section--dark { overflow: clip; }

.builder { position: relative; }
.builder__noscript { margin-bottom: 16px; color: var(--b-warn); }
.builder__note { margin-top: 12px; font-size: .8rem; text-align: center; color: var(--b-muted); }

/* --------------------------------------------------- page count + style */
.builder__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 18px; }
.builder__q { font-size: 1.05rem; font-weight: 700; }
.builder__head .seg { margin-inline-start: auto; }

.stepper { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--b-line-hi); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.stepper__b { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; transition: background-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.stepper__b:disabled { opacity: .3; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .stepper__b:not(:disabled):hover { background: rgba(46, 107, 124, .25); } }
.stepper__n { min-width: 48px; text-align: center; font-family: var(--font-brand); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Static / Animated switch; the thumb slides (and mirrors in RTL via --dir). */
.seg { position: relative; isolation: isolate; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--b-line); border-radius: 10px; background: rgba(255, 255, 255, .06); }
.seg::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 3px;
  inset-inline-start: 3px;
  width: calc(50% - 3px);
  border-radius: 7px;
  background: var(--accent);
  box-shadow: 0 4px 14px -4px rgba(46, 107, 124, .9);
  transition: transform var(--dur-2) var(--ease-pop);
}
.seg[data-anim="1"]::before { transform: translateX(calc(var(--dir) * 100%)); }
.seg__b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 34px; padding-inline: 16px; border-radius: 7px; color: var(--b-muted); font-size: .86rem; font-weight: 600; white-space: nowrap; transition: color var(--dur-1) var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.seg__b[aria-pressed="true"] { color: #fff; }
.seg__b .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------ layout */
.builder__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.builder__grid > * { min-width: 0; }
@media (min-width: 900px) {
  .builder__grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; }
  .tools { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* ------------------------------------------------------ element tiles */
.tools { padding: 20px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: var(--radius-lg); transition: border-color var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.tools__title { margin-bottom: 16px; font-size: 1.05rem; font-weight: 700; }
.tools__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
@media (min-width: 900px) { .tools__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1120px) { .tools__list { grid-template-columns: repeat(3, 1fr); } }
.tools__hint { margin-top: 12px; font-size: .74rem; line-height: 1.6; color: var(--b-muted); }
.tools.is-armed { border-color: var(--b-line-hi); }
.tools.is-remove { border-color: #FF7A7A; background: rgba(255, 90, 90, .07); }

.tool {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  min-height: 78px;
  padding: 10px 6px;
  border: 1px solid var(--b-line-hi);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--b-text);
  font-size: .78rem;
  line-height: 1.25;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), transform var(--dur-press) var(--ease), opacity var(--dur-1) var(--ease);
}
.tool[data-drag] { cursor: grab; }
.tool .icon { width: 22px; height: 22px; color: var(--b-accent); }
.tool:active { transform: scale(.95); }
.tool.is-dragging { opacity: .35; }
@media (hover: hover) and (pointer: fine) { .tool:hover { border-color: rgba(110, 160, 255, .55); background: rgba(46, 107, 124, .12); transform: translateY(-2px); } }

/* Desktop: big tiles, each with a live miniature of the element (the .sk drawings, scaled to half). */
.tool__art { display: none; }
@media (min-width: 900px) {
  .tool { align-content: start; gap: 12px; min-height: 0; padding: 12px 12px 14px; border-radius: 16px; font-size: .98rem; font-weight: 600; }
  .tool .icon { display: none; }
  .tool__art { display: block; position: relative; width: 100%; height: 76px; overflow: hidden; border-radius: 10px; background: var(--sk-paper); transition: transform var(--dur-2) var(--ease-pop); }
  .tool__art .sk { width: 200%; transform: scale(.5); transform-origin: 0 0; pointer-events: none; }
  [dir="rtl"] .tool__art .sk { transform-origin: 100% 0; }
}
@media (hover: hover) and (pointer: fine) { .tool:hover .tool__art { transform: scale(1.05); } }
.motion-ok .builder.is-in .tool { animation: b-tile 560ms var(--ease-pop) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes b-tile { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* Phones: the tiles become a slim strip pinned above the sketch, so a tap is seen working at once. */
@media (max-width: 899px) {
  .tools { position: sticky; top: 84px; z-index: 6; padding: 8px; border-radius: 14px; background: rgba(17, 20, 25, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .tools__title, .tools__hint { display: none; }
  .tools__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .tools__list::-webkit-scrollbar { display: none; }
  .tool { flex: none; width: 78px; min-height: 60px; padding: 8px 4px; font-size: .72rem; }
  .tool .icon { width: 20px; height: 20px; }
}

/* ---------------------------------------------------------- the stage */
.tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: grid; flex: none; gap: 1px; padding: 7px 14px; border: 1px solid var(--b-line); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--b-muted); font-size: .84rem; font-weight: 600; text-align: center; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tab__p { font-family: var(--mono); font-size: .68rem; font-weight: 400; }
.tab__n { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.tab__bolt { width: 12px; height: 12px; color: var(--b-accent); }
.tab[aria-selected="true"] { border-color: var(--accent); background: rgba(46, 107, 124, .16); color: #fff; }
.tab.is-over { border-color: var(--b-accent); background: rgba(46, 107, 124, .3); color: #fff; transform: translateY(-2px) scale(1.04); }
@media (hover: hover) and (pointer: fine) { .tab:hover { border-color: var(--b-line-hi); color: #fff; } }

.browser { overflow: hidden; border: 1px solid var(--b-line-hi); border-radius: 14px; background: var(--sk-paper); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #E4E7EC; border-bottom: 1px solid #D5D9E0; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C0C6D0; }
.browser__url { flex: 1; max-width: 280px; margin-inline-start: 10px; padding: 3px 12px; border-radius: 999px; background: #F4F5F7; color: #8A93A3; font-family: var(--mono); font-size: .7rem; }

.sheet { position: relative; display: grid; align-content: start; gap: 4px; min-height: 280px; padding: 12px; transition: background-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.sheet.is-over { background: #e6f1f3; box-shadow: inset 0 0 0 2px var(--sk-blue); }
.sheet.is-swap { animation: b-swap 360ms var(--ease); }
.sheet.is-nope { animation: b-nope 360ms var(--ease); }
.sheet__ph { display: grid; place-items: center; min-height: 240px; margin: 0; border: 2px dashed var(--sk-line); border-radius: 10px; color: #8A93A3; font-size: .95rem; text-align: center; padding: 16px; }
.sheet__ph[hidden] { display: none; }
.stage__meta { margin-top: 10px; font-size: .8rem; color: var(--b-muted); }
.stage__meta:empty { display: none; }

/* One element on the sketch: a small label bar above its wireframe. */
.blk { position: relative; padding: 5px 6px 8px; border: 1px solid transparent; border-radius: 10px; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
@media (hover: hover) and (pointer: fine) { .blk:hover { border-color: #C5D6F8; background: rgba(46, 107, 124, .05); } }
.blk.is-dragging { opacity: .3; }
.blk__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: var(--sk-ink); font-size: .74rem; font-weight: 600; }
.blk__t { flex: 1; min-width: 0; }
.blk__x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #8A93A3; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); -webkit-tap-highlight-color: transparent; }
.blk__x .icon { width: 12px; height: 12px; stroke-width: 2; }
@media (hover: hover) and (pointer: fine) { .blk__x:hover { background: #FDE2E2; color: #C5221F; } }
.blk { cursor: grab; user-select: none; -webkit-user-select: none; }
.blk.is-before::before, .blk.is-after::after { content: ""; position: absolute; inset-inline: 0; height: 3px; border-radius: 2px; background: var(--sk-blue); box-shadow: 0 0 10px rgba(46, 107, 124, .7); z-index: 2; }
.blk.is-before::before { top: -4px; }
.blk.is-after::after { bottom: -4px; }
.blk.is-new { animation: b-pop 420ms var(--ease-pop) both; }

/* Six-dot drag handle. On touch screens a block can only be dragged from here (everything else scrolls). */
.grip { position: relative; flex: none; width: 10px; height: 16px; background-image: radial-gradient(circle, rgba(82, 88, 102, .6) 1.2px, transparent 1.7px); background-size: 5px 5px; touch-action: none; cursor: grab; }
.grip::after { content: ""; position: absolute; inset: -12px -8px; }

/* ------------------------------------------------- wireframe drawings */
.sk { position: relative; overflow: hidden; border: 1px solid var(--sk-line); border-radius: 8px; background: #fff; }
.sk i { position: absolute; display: block; border-radius: 4px; background: var(--sk-line); }

/* hero: big headline, two lines, a button */
.sk-hero { height: 108px; background: linear-gradient(135deg, #d3e6ea, #F4F8FF); }
.sk-hero i:nth-child(1) { inset-block-start: 20px; inset-inline-start: 16px; width: 46%; height: 16px; background: var(--sk-blue); opacity: .8; }
.sk-hero i:nth-child(2) { inset-block-start: 48px; inset-inline-start: 16px; width: 64%; height: 8px; background: #A9B4C6; }
.sk-hero i:nth-child(3) { inset-block-start: 63px; inset-inline-start: 16px; width: 50%; height: 8px; }
.sk-hero i:nth-child(4) { inset-block-start: 82px; inset-inline-start: 16px; width: 76px; height: 18px; border-radius: 9px; background: var(--sk-blue); }
/* text: a title and three lines */
.sk-text { height: 88px; }
.sk-text i { inset-inline-start: 16px; height: 7px; }
.sk-text i:nth-child(1) { inset-block-start: 14px; width: 34%; height: 12px; background: #8A93A3; }
.sk-text i:nth-child(2) { inset-block-start: 38px; width: calc(100% - 32px); }
.sk-text i:nth-child(3) { inset-block-start: 52px; width: 86%; }
.sk-text i:nth-child(4) { inset-block-start: 66px; width: 58%; }
/* image: sky, sun, hills */
.sk-image { height: 112px; background: linear-gradient(#e6f1f3, #d3e6ea); }
.sk-image i:nth-child(1) { inset-block-start: 18px; inset-inline-end: 26%; width: 24px; height: 24px; border-radius: 50%; background: #FFD27A; }
.sk-image i:nth-child(2) { inset-inline: 0; inset-block-end: 0; height: 56%; border-radius: 0; background: #9cbcc6; clip-path: polygon(0 100%, 0 62%, 24% 26%, 44% 66%, 68% 14%, 100% 70%, 100% 100%); }
/* gallery: a 3-up grid of pictures */
.sk-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 96px; padding: 10px; }
.sk-gallery i { position: relative; border-radius: 6px; background: linear-gradient(135deg, #D6DCE8, #C0C9DA); }
.sk-gallery i::after { content: ""; position: absolute; inset-inline-end: 6px; inset-block-start: 6px; width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .8; }
/* video: dark player with a play button */
.sk-video { height: 124px; border-color: #1a3340; background: #1a3340; }
.sk-video i { inset-block-start: 50%; inset-inline-start: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
[dir="rtl"] .sk-video i { margin: -23px -23px 0 0; }
/* Play always points right (media controls are not mirrored in RTL), so this uses physical `left`. */
.sk-video i::after { content: ""; position: absolute; top: 14px; left: 18px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.sk-video::after { content: ""; position: absolute; inset-inline: 12px; inset-block-end: 12px; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--sk-blue) 34%, rgba(255, 255, 255, .22) 34%); }
[dir="rtl"] .sk-video::after { background: linear-gradient(to left, var(--sk-blue) 34%, rgba(255, 255, 255, .22) 34%); }
/* feature cards: three columns, each with an icon and two lines */
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100px; padding: 10px; }
.sk-cards i { position: relative; border: 1px solid var(--sk-line); border-radius: 8px; background: #fff; }
.sk-cards i::before { content: ""; position: absolute; inset-block-start: 10px; inset-inline-start: 10px; width: 18px; height: 18px; border-radius: 50%; background: #9cbcc6; }
.sk-cards i::after { content: ""; position: absolute; inset-inline: 10px; inset-block-start: 40px; height: 6px; border-radius: 3px; background: var(--sk-line); box-shadow: 0 12px 0 -0px var(--sk-fill); }
/* contact form: two fields, a message box, a button */
.sk-form { height: 128px; }
.sk-form i { inset-inline-start: 16px; border: 1px solid var(--sk-line); background: #fff; }
.sk-form i:nth-child(1) { inset-block-start: 14px; width: 46%; height: 18px; }
.sk-form i:nth-child(2) { inset-block-start: 40px; width: 46%; height: 18px; }
.sk-form i:nth-child(3) { inset-block-start: 66px; width: calc(100% - 32px); height: 28px; }
.sk-form i:nth-child(4) { inset-block-start: 102px; width: 72px; height: 16px; border: 0; border-radius: 8px; background: var(--sk-blue); }
/* map: pale green land, two roads, a pin */
.sk-map { height: 108px; background: #E3EBDD; }
.sk-map::before, .sk-map::after { content: ""; position: absolute; inset-inline: -10%; height: 9px; background: #fff; transform: rotate(-16deg); }
.sk-map::before { inset-block-start: 38%; }
.sk-map::after { inset-block-start: 68%; transform: rotate(12deg); }
.sk-map i:nth-child(1) { inset-block-start: 22px; inset-inline-start: 50%; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; background: #E5484D; transform: rotate(-45deg); }
.sk-map i:nth-child(2) { inset-block-start: 29px; inset-inline-start: calc(50% + 7px); width: 6px; height: 6px; border-radius: 50%; background: #fff; }
[dir="rtl"] .sk-map i:nth-child(1) { transform: rotate(45deg); border-radius: 50% 50% 0 50%; }

/* Animated sites: the sketch itself moves. */
.motion-ok :is(.sheet.is-animated, .tool) .sk-hero i:nth-child(-n+4) { animation: sk-rise 3.2s var(--ease-in-out) infinite; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-hero i:nth-child(2) { animation-delay: .15s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-hero i:nth-child(3) { animation-delay: .3s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-hero i:nth-child(4) { animation-delay: .45s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-text i { animation: sk-rise 3.2s var(--ease-in-out) infinite; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-text i:nth-child(2) { animation-delay: .15s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-text i:nth-child(3) { animation-delay: .3s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-text i:nth-child(4) { animation-delay: .45s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-cards i, .motion-ok :is(.sheet.is-animated, .tool) .sk-gallery i { animation: sk-float 2.6s var(--ease-in-out) infinite alternate; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-cards i:nth-child(2), .motion-ok :is(.sheet.is-animated, .tool) .sk-gallery i:nth-child(2) { animation-delay: .35s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-cards i:nth-child(3), .motion-ok :is(.sheet.is-animated, .tool) .sk-gallery i:nth-child(3) { animation-delay: .7s; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-video i { animation: sk-pulse 1.8s var(--ease-in-out) infinite; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-image i:nth-child(1) { animation: sk-float 2.4s var(--ease-in-out) infinite alternate; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-map i:nth-child(1) { animation: sk-hop 1.6s var(--ease-pop) infinite; }
.motion-ok :is(.sheet.is-animated, .tool) .sk-form i:nth-child(4) { animation: sk-pulse 1.8s var(--ease-in-out) infinite; }

/* --------------------------------------------------------- total bar */
.totalbar {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 12px 12px 12px 20px;
  padding-inline: 20px 12px;
  border: 1px solid var(--b-line-hi);
  border-radius: 18px;
  background: rgba(17, 20, 25, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
}
.totalbar__sum { display: grid; }
.totalbar__label { font-size: .74rem; color: var(--b-muted); }
.totalbar__amt { font-family: var(--font-brand); font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.totalbar__monthly { margin: 0; padding: 6px 12px; border: 1px dashed rgba(110, 160, 255, .45); border-radius: 999px; font-size: .82rem; color: var(--b-accent); }
.totalbar__monthly[hidden] { display: none; }
.totalbar .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .totalbar .btn { flex: 0 0 auto; } }

@media (max-width: 639px) {
  .totalbar { flex-wrap: nowrap; gap: 10px; bottom: 8px; padding: 10px; padding-inline: 16px 10px; border-radius: 16px; }
  .totalbar__amt { font-size: 1.5rem; }
  .totalbar__monthly { display: none; }
  .totalbar .btn { flex: 0 0 auto; height: 46px; padding-inline: 16px; font-size: .9rem; }
}

.is-bump { animation: b-bump 380ms var(--ease-pop); }

.switch { display: inline-flex; align-items: center; gap: 12px; padding-block: 6px; color: #fff; font-size: .95rem; font-weight: 600; text-align: start; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.switch__track { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background-color var(--dur-2) var(--ease); }
.switch__knob { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform var(--dur-2) var(--ease-pop); }
.switch[aria-checked="true"] .switch__track { background: var(--accent); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(calc(var(--dir) * 20px)); }

/* ----------------------------------------------------------- drag ghost */
.b-ghost { position: fixed; inset: 0 auto auto 0; z-index: 150; margin: 0; pointer-events: none; will-change: transform; opacity: .96; background: #1a3340; box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .75), 0 0 0 1px rgba(110, 160, 255, .7); }
.b-ghost--chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: #fff; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.b-ghost--chip .icon { width: 16px; height: 16px; color: var(--b-accent); }
.tool.b-ghost { border-radius: 12px; }
html.is-dragging, html.is-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* ------------------------------------------------------------- motion */
@keyframes b-pop { 0% { opacity: 0; transform: scale(.8) translateY(8px); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: none; } }
@keyframes b-swap { from { opacity: 0; transform: translateX(calc(var(--dir) * 14px)); } }
@keyframes b-bump { 40% { transform: scale(1.07); } }
@keyframes b-nope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes sk-rise { 0% { opacity: 0; transform: translateY(8px); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes sk-float { to { transform: translateY(-4px); } }
@keyframes sk-pulse { 50% { transform: scale(1.12); } }
@keyframes sk-hop { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -6px; } }
