/* ─── Sheet scrollable — needed when QR + content exceeds viewport ─── */
.sheet {
  max-height: 88dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Guest name in queue ──────────────────── */
.q-by {
  display: inline;
  font-size: 11px;
  color: rgba(0,255,136,.7);
  font-weight: 600;
}
.q-by::before { content: '· '; color: var(--t3); font-weight: 400; }
.q-by-auto { color: var(--t3); font-weight: 400; }

/* ─── Drag handle ──────────────────────────── */
.q-drag-handle {
  cursor: grab;
  color: var(--t3);
  padding: 6px 2px 6px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: color .15s;
  touch-action: none;
}
.q-drag-handle:active { cursor: grabbing; color: var(--t2); }
.q-item.drag-over { border-top: 2px solid var(--green); }
.q-item.dragging  { opacity: .25; }

/* ─── Swipe to delete ──────────────────────── */
.q-item {
  position: relative;
  overflow: hidden;
  --swipe-bg-opacity: 0;
}
.q-item::before {
  content: 'Remove';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 80px;
  background: rgba(255,60,60,var(--swipe-bg-opacity,0));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  opacity: var(--swipe-bg-opacity,0);
  pointer-events: none;
  transition: background .1s;
}

/* swipe hint animation on first item */
@keyframes swipeHint {
  0%  { transform: translateX(0); }
  30% { transform: translateX(-28px); }
  60% { transform: translateX(-12px); }
  100%{ transform: translateX(0); }
}
.q-item.hint-swipe { animation: swipeHint 1.1s .8s ease both; }

/* ─── QR code in invite sheet ──────────────── */
.sheet-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.sheet-qr canvas,
.sheet-qr img {
  border-radius: 12px;
  border: 4px solid #fff;
  display: block;
  max-width: 100%;
}

/* ─── Social proof strip on welcome ─────────── */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  margin-bottom: 8px;
  opacity: 0;
  transition: opacity .4s;
  font-size: 12px;
  color: var(--t3);
}
.sp-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sp-num  { font-size: 15px; font-weight: 800; color: var(--green); letter-spacing: -.3px; }
.sp-lbl  { font-size: 10px; color: var(--t3); letter-spacing: .3px; text-transform: uppercase; }
.sp-dot  { color: var(--bdr2); font-size: 18px; line-height: 1; }

/* ─── Cooldown pill improvements ───────────── */
.limit-pill { cursor: default; }

/* ─── Content-visibility perf (existing q-item override) ── */
.q-item {
  content-visibility: auto;
  contain-intrinsic-size: auto 52px;
}
.prog-fill { will-change: width; }
.panel { contain: layout style; }
#yt-preload { position:fixed!important;top:-9999px!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important; }
