/* Footer with the drawable / packable bag */
.bagfoot {
  position: relative; z-index: 2; background: #fff; border-top: 1px dashed #d3d3d3; box-shadow: none;
  padding: 58px var(--gutter) 48px; overflow: hidden; zoom: var(--z); z-index: 4;
}
.bagfoot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; max-width: 1350px; margin: 0 auto; }
.bagfoot__name { font-size: 40px; font-weight: 600; letter-spacing: -0.06em; color: #4e4e4e; line-height: 1; }
.bagfoot__cap { margin-top: 22px; font-size: 18px; font-weight: 500; letter-spacing: -0.04em; color: rgba(9, 9, 9, 0.43); }
.bagfoot__cols { display: flex; gap: 78px; }
.bagfoot__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bagfoot__cols a {
  font-size: 18px; font-weight: 500; letter-spacing: -0.04em; color: rgba(9, 9, 9, 0.43);
  display: inline-block; transition: color 0.25s, transform 0.45s var(--ease-out);
}
.bagfoot__cols a:hover { color: var(--navy); transform: translateX(5px); }
.bagfoot__prompt {
  margin: 56px 0 0; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: -0.02em;
  color: rgba(149, 149, 149, 0.9);
}

.bagfoot__viewport { position: relative; margin: 28px auto 0; }
.bagfoot__hint {
  margin: 28px 0 8px; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: -0.02em;
  color: rgba(39, 39, 39, 0.7);
}
.bagfoot__stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; touch-action: pan-y; }

/* bag */
.bag { position: absolute; }
.bag__body {
  position: absolute; inset: 0; background: #f3f9ff; border: 10px solid #7893af; border-radius: 28px;
  box-shadow: -1px 6px 12.7px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s var(--spring), box-shadow 0.4s;
}
.bag.is-hot .bag__body { box-shadow: -1px 8px 22px rgba(120, 147, 175, 0.55); transform: scale(1.012); }
.bag__canvas { position: absolute; inset: 0; border-radius: 18px; touch-action: none; cursor: crosshair; z-index: 2; }
.bag[data-tool="eraser"] .bag__canvas { cursor: cell; }
.bag__tools { position: absolute; z-index: 8; display: flex; gap: 14px; right: 24px; bottom: 16px; }
.bag__tool {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; opacity: 0.55;
  transition: opacity 0.25s, transform 0.4s var(--spring), background 0.25s;
}
.bag__tool:hover { opacity: 0.9; transform: translateY(-2px); }
.bag__tool[aria-pressed="true"] { opacity: 1; background: rgba(120, 147, 175, 0.2); }
.bag__tool img { width: 32px; height: 32px; }
.bag__handle-left { position: absolute; }
.bag__handle-left i { position: absolute; display: block; }
.bag__wheels { position: absolute; }

/* items */
.item {
  position: absolute; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; z-index: 5;
  transition: transform 0.5s var(--spring), filter 0.3s;
  will-change: transform;
}
.item svg { display: block; overflow: visible; pointer-events: none; }
.item:hover { transform: scale(1.04); }
.item.is-drag { cursor: grabbing; z-index: 30; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.22)); transition: filter 0.2s; }
.item.is-packed { z-index: 6; }
.item.is-settle { transition: transform 0.6s var(--spring), left 0.6s var(--ease-out), top 0.6s var(--ease-out); }

@media (max-width: 900px) {
  .bagfoot { padding-top: 44px; }
  .bagfoot__name { font-size: 34px; }
  .bagfoot__cols { gap: 48px; }
}
