/* Drop area (empty phase) */

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 312px;
  padding: 24px 0 8px;
  text-align: center;
  transition: min-height .3s var(--ease-out);
}
.chute[data-phase="empty"] .sheet { padding: 24px 28px 24px; }

/* The mouth: an arrow sinking into the big slot */

.mouth { display: flex; flex-direction: column; align-items: center; }
.arrow-glyph {
  width: 48px; height: 48px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.arrow-glyph .arrow { transition: transform .3s var(--ease-out); }
.slot-big { margin-top: -6px; }

.drop-title {
  margin: 14px 0 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.drop-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.sep { width: 1px; height: 12px; background: var(--line); }
.linkbtn {
  color: var(--blue);
  font-weight: 500;
  border-radius: 4px;
  transition: color .15s;
}
.linkbtn:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Ghost rows: seats reserved for what is being dragged */

.ghosts {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.ghosts:empty { display: none; }
.ghosts li {
  position: relative;
  height: 44px;
  border-radius: 8px;
  background: var(--blue-mist);
  border: 1px solid var(--blue-tint);
  animation: ghostIn .28s var(--ease-out) both;
}
.ghosts li::before {
  content: "";
  position: absolute;
  left: 7px; top: 11px;
  width: 40px; height: 20px;
  border-radius: 5px;
  background: var(--blue-tint);
}
.ghosts li::after {
  content: "";
  position: absolute;
  left: 59px; top: 17px;
  width: 38%; height: 8px;
  border-radius: 4px;
  background: var(--blue-tint);
  opacity: .7;
}
.ghosts li:nth-child(2)::after { width: 26%; }
.ghosts li:nth-child(3)::after { width: 44%; }
.ghosts li:nth-child(4)::after { width: 31%; }
.ghosts li + li { margin-top: 2px; }
.drop .ghosts { margin-top: 28px; }
.ghosts-list { margin-top: 2px; }
@keyframes ghostIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* Drag over: the slot opens and lights up inside */

.chute.is-over .slot {
  width: 280px;
  height: 30px;
  background: var(--blue);
  box-shadow:
    inset 0 5px 8px rgba(0, 0, 0, .42),
    inset 0 -1px 0 rgba(255, 255, 255, .22),
    0 1px 0 rgba(255, 255, 255, .9);
}
.chute.is-over .slot-big { margin-top: -12px; }
.chute.is-over .arrow-glyph .arrow { transform: translateY(9px); }
.chute.is-over .drop-sub { visibility: hidden; }

/* Settings */

.settings {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setting { display: flex; align-items: center; gap: 16px; min-height: 32px; }
.setting-label { width: 48px; flex: none; font-size: 14px; font-weight: 500; }

.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--line-soft);
  isolation: isolate;
}
.seg button {
  position: relative;
  height: 28px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink-2);
  transition: color .2s;
  z-index: 1;
}
.seg button[aria-checked="true"] { color: #fff; }
.seg button:hover:not([aria-checked="true"]) { color: var(--ink); }
.seg-thumb {
  position: absolute;
  top: 3px; bottom: 3px;
  left: 0; width: 0;
  border-radius: 6px;
  background: var(--ink);
  transition: left .25s var(--ease-out), width .25s var(--ease-out);
}
.seg.no-anim .seg-thumb { transition: none; }

.switch {
  position: relative;
  width: 40px; height: 24px;
  border-radius: 12px;
  background: var(--line);
  transition: background .2s;
  flex: none;
}
.switch .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 24, 40, .25);
  transition: transform .22s var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"] .knob { transform: translateX(16px); }

.pw { display: flex; align-items: center; gap: 12px; }
.pw[hidden] { display: none; }
.pw-input {
  width: 128px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .08em;
}
.pw-input:hover { border-color: #d5d2c9; }
.pw-input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

/* Link card: the result drops out at the bottom of the chute */

.link {
  margin-top: 20px;
  padding: 20px 22px 18px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  animation: linkIn .42s var(--ease-out) both;
}
.link[hidden] { display: none; }
@keyframes linkIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.link { will-change: transform; }
.link.press { animation: press .34s var(--spring) both; }
@keyframes press {
  0% { transform: translateY(0); }
  30% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
.link-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.link-url {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  user-select: all;
  white-space: nowrap;
}
.link-url span { display: inline-block; }
.link-url.lift span { animation: lift .5s var(--spring) both; animation-delay: calc(var(--i) * 16ms); }
@keyframes lift {
  0% { transform: translateY(0); }
  35% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.link-cap { margin: 10px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); }

.copy {
  position: relative;
  flex: none;
  height: 40px;
  min-width: 108px;
  padding: 0 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 1px 1px rgba(15, 20, 60, .18);
  transition: transform .12s var(--ease-out), background .15s;
}
.copy:hover { background: #f4f6ff; }
.copy:active { transform: scale(.96); }
.copy:focus-visible { outline-color: #fff; }
.copy-done {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  opacity: 0;
}
.copy-done svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.copy.is-done .copy-idle { opacity: 0; }
.copy.is-done .copy-done { opacity: 1; animation: check .38s var(--spring) both; }

/* Motion off */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
