/* Sit-down splash: host sees the guest, guest gets a welcome. */
/* Author: Dave Greenlaw */

.bb-guest-sit-splash {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background: color-mix(in srgb, var(--text, #111) 46%, transparent);
  backdrop-filter: blur(3px);
}

.bb-guest-sit-splash[hidden] {
  display: none !important;
}

.bb-guest-sit-splash__card {
  width: min(92vw, 36rem);
  margin: 0;
  padding: 28px 28px 24px;
  text-align: center;
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
  border: 3px solid var(--accent, #0078d4);
  border-radius: 22px;
  box-shadow:
    0 0 0 10px color-mix(in srgb, var(--accent, #0078d4) 32%, transparent),
    0 28px 64px color-mix(in srgb, #000 38%, transparent);
}

.bb-guest-sit-splash.is-on .bb-guest-sit-splash__card {
  animation: bb-guest-sit-pop 0.55s cubic-bezier(0.16, 0.9, 0.24, 1.15) both;
}

.bb-guest-sit-splash.is-leave .bb-guest-sit-splash__card {
  border-width: 4px;
  box-shadow:
    0 0 0 12px color-mix(in srgb, var(--accent, #0078d4) 42%, transparent),
    0 28px 64px color-mix(in srgb, #000 42%, transparent);
}

.bb-guest-sit-splash__kicker {
  margin: 0 0 10px;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #0078d4);
}

.bb-guest-sit-splash__name {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text, #1a1a1a);
  overflow-wrap: anywhere;
}

.bb-guest-sit-splash__where {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text, #1a1a1a);
}

.bb-guest-sit-splash__line {
  margin: 12px 0 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 650;
  line-height: 1.35;
  color: var(--text, #1a1a1a);
}

.bb-guest-sit-lobby {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 100420;
  width: min(92vw, 36rem);
  margin: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  color: var(--text, #1a1a1a);
  background: var(--surface, #fff);
  border: 3px solid var(--accent, #0078d4);
  border-radius: 14px;
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--accent, #0078d4) 28%, transparent),
    0 16px 36px color-mix(in srgb, #000 32%, transparent);
  pointer-events: none;
}

.bb-guest-sit-lobby[hidden] {
  display: none !important;
}

.bb-guest-sit-splash__ok {
  min-width: 8.5rem;
  min-height: 48px;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@keyframes bb-guest-sit-pop {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  68% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-guest-sit-splash.is-on .bb-guest-sit-splash__card {
    animation: none;
  }
}
