/* Skyy V1 — profile entrance overlay */
.profile-entrance-v1 {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 420ms ease;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-v1[hidden] {
  display: none !important;
}

.profile-entrance-v1.is-unlocking {
  opacity: 0;
  pointer-events: none;
}

.profile-entrance-v1__panel {
  width: min(520px, calc(100vw - 40px));
  display: grid;
  place-items: center;
}

.profile-entrance-v1__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 34px;
  border-radius: 16px;
  border: 1px solid var(--accent-border, rgba(var(--accent-r), 0.35));
  background: rgba(var(--accent-r), 0.08);
  color: #fff;
  font: inherit;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-v1__brand {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  opacity: 0.7;
}

.profile-entrance-v1__label {
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-entrance-v1__hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.profile-entrance-slide__track {
  position: relative;
  width: min(360px, 80vw);
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-slide__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(var(--accent-r), 0.18);
}

.profile-entrance-slide__handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--accent, rgba(var(--accent-r), 0.95));
  color: #111;
  font-size: 1.2rem;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-v1__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.profile-entrance-v1__identity-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, 88vw);
}

.profile-entrance-v1__display-name {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-entrance-v1__verification .verified-badge {
  width: 1.15rem;
  height: 1.15rem;
}

.profile-entrance-v1.is-slingshot-launch {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 420ms ease;
}

.profile-entrance-slingshot {
  display: grid;
  place-items: center;
  gap: 14px;
}

.profile-entrance-slingshot__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
}

.profile-entrance-slingshot__hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.profile-entrance-slingshot__orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--accent-border, rgba(var(--accent-r), 0.45));
  background: radial-gradient(circle at 30% 30%, rgba(var(--accent-r), 0.55), rgba(var(--accent-r), 0.12));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: grab;
  touch-action: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-slingshot__orb.is-ready {
  box-shadow: 0 0 24px var(--accent-glow-soft, rgba(var(--accent-r), 0.45));
}

.profile-entrance-frozen {
  position: relative;
  width: min(360px, 80vw);
  height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 16, 28, 0.35);
  color: #fff;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-frozen__frost {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(220, 236, 255, 0.22), rgba(160, 198, 255, 0.12)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.profile-entrance-frozen__cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.profile-entrance-frozen__crack-line {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.profile-entrance-frozen__shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile-entrance-frozen__shard {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 24px;
  background: rgba(220, 236, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%) rotate(var(--dn-a, 0deg));
  animation: profile-entrance-shard 560ms ease-out forwards;
  animation-delay: calc(var(--dn-i, 0) * 18ms);
}

.profile-entrance-frozen.is-shattering .profile-entrance-frozen__frost {
  animation: profile-entrance-frost-flash 420ms ease-out forwards;
}

.profile-entrance-v1.is-frozen-shatter .profile-entrance-frozen {
  opacity: 0;
  transition: opacity 420ms ease;
}

.profile-entrance-hold {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid var(--accent-border, rgba(var(--accent-r), 0.35));
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.profile-entrance-hold__fill {
  position: absolute;
  inset: 0;
  transform-origin: bottom center;
  transform: scaleY(0);
  background: linear-gradient(180deg, rgba(var(--accent-r), 0.15), rgba(var(--accent-r), 0.82));
  transition: transform 120ms ease-out;
  pointer-events: none;
}

.profile-entrance-hold__fill::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.profile-entrance-hold__label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@keyframes profile-entrance-shard {
  to {
    transform: translate(calc(-50% + var(--dn-dx, 0px)), calc(-50% + var(--dn-dy, 0px))) rotate(var(--dn-a, 0deg));
    opacity: 0;
  }
}

@keyframes profile-entrance-frost-flash {
  0% { opacity: 1; filter: brightness(1); }
  35% { opacity: 1; filter: brightness(1.35); }
  100% { opacity: 0; filter: brightness(1.1); }
}

.profile-entrance-curtain {
  position: relative;
  width: min(420px, 80vw);
  height: 220px;
}

.profile-entrance-curtain__left,
.profile-entrance-curtain__right {
  position: absolute;
  inset: 0;
  width: 50%;
  background: rgba(0, 0, 0, 0.88);
  transition: transform 520ms ease;
}

.profile-entrance-curtain__right {
  left: 50%;
}

.profile-entrance-v1.is-curtain-open .profile-entrance-curtain__left {
  transform: translateX(-100%);
}

.profile-entrance-v1.is-curtain-open .profile-entrance-curtain__right {
  transform: translateX(100%);
}

.profile-entrance-curtain__cta {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  z-index: 2;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body.profile-entrance-locked .v1-profile-stack {
  filter: blur(8px) brightness(0.55);
}

.profile-entrance-preview {
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .profile-entrance-v1,
  .profile-entrance-curtain__left,
  .profile-entrance-curtain__right,
  .profile-entrance-slingshot__orb {
    transition: none !important;
  }
}
