/* Tsukiro 3.6.0 — stable profile boot and media hand-off. */
body[data-page="profile"].profile-is-booting {
  min-height:100svh;
  overflow:hidden!important;
  background:#08080c!important;
}

body[data-page="profile"].profile-is-booting .navbar,
body[data-page="profile"].profile-is-booting .footer,
body[data-page="profile"].profile-is-booting .back-to-top,
body[data-page="profile"].profile-is-booting .profile-page>:not(#profileBoot) {
  visibility:hidden!important;
  pointer-events:none!important;
}

body[data-page="profile"] #profileBoot.hidden { display:none!important; }

body[data-page="profile"] .profile-boot {
  position:fixed;
  z-index:5000;
  inset:0;
  display:grid;
  place-items:center;
  padding:max(22px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 14%,rgba(255,79,163,.14),transparent 31%),
    radial-gradient(circle at 84% 82%,rgba(139,92,246,.13),transparent 32%),
    #08080c;
  opacity:1;
  transition:opacity .22s ease,visibility .22s ease;
}

body[data-page="profile"] .profile-boot::before,
body[data-page="profile"] .profile-boot::after {
  content:"";
  position:absolute;
  width:min(52vw,640px);
  aspect-ratio:1;
  border:1px solid rgba(255,255,255,.045);
  border-radius:50%;
  pointer-events:none;
}

body[data-page="profile"] .profile-boot::before { left:-22vw;top:-34vw; }
body[data-page="profile"] .profile-boot::after { right:-28vw;bottom:-37vw; }

body[data-page="profile"] .profile-boot.is-leaving {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

body[data-page="profile"] .profile-boot__card {
  position:relative;
  width:min(100%,440px);
  display:grid;
  gap:11px;
  padding:32px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.085);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
  box-shadow:0 32px 100px rgba(0,0,0,.46),inset 0 1px rgba(255,255,255,.06);
  isolation:isolate;
}

body[data-page="profile"] .profile-boot__card::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:auto -30% -72% 15%;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(177,75,222,.2),transparent 68%);
}

body[data-page="profile"] .profile-boot__brand {
  display:flex;
  align-items:center;
  gap:11px;
  margin-bottom:16px;
  color:#fff;
  font-size:20px;
  letter-spacing:-.035em;
}

body[data-page="profile"] .profile-boot__brand img {
  width:42px;
  height:42px;
  padding:8px;
  border:1px solid rgba(255,92,168,.18);
  border-radius:13px;
  background:rgba(255,92,168,.06);
}

body[data-page="profile"] .profile-boot__eyebrow {
  color:#ff83c1;
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

body[data-page="profile"] .profile-boot__card>strong {
  color:#f6eff8;
  font-size:clamp(25px,5vw,34px);
  line-height:1.05;
  letter-spacing:-.045em;
}

body[data-page="profile"] .profile-boot__card>p {
  max-width:340px;
  margin:0;
  color:#8f8795;
  font-size:12px;
  line-height:1.6;
}

body[data-page="profile"] .profile-boot__progress {
  position:relative;
  height:3px;
  margin-top:19px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.065);
}

body[data-page="profile"] .profile-boot__progress i {
  position:absolute;
  inset:0 auto 0 0;
  width:42%;
  border-radius:inherit;
  background:linear-gradient(90deg,#ff4fa3,#b858dc,#8b5cf6);
  box-shadow:0 0 18px rgba(255,79,163,.45);
  animation:profileBootProgress 1.05s ease-in-out infinite alternate;
}

@keyframes profileBootProgress {
  from { transform:translateX(-28%); }
  to { transform:translateX(165%); }
}

@media(max-width:560px) {
  body[data-page="profile"] .profile-boot__card { padding:26px 23px;border-radius:22px; }
  body[data-page="profile"] .profile-boot__brand { margin-bottom:10px; }
}

@media(prefers-reduced-motion:reduce) {
  body[data-page="profile"] .profile-boot,
  body[data-page="profile"] .profile-boot__progress i { transition:none!important;animation:none!important; }
  body[data-page="profile"] .profile-boot__progress i { width:68%; }
}

/* Tsukiro 3.6.2 — the loaded avatar/banner never replay a fade animation
   when background Supabase events rerender profile text or statistics. */
body[data-page="profile"] #profileAvatar > :is(img,video,span),
body[data-page="profile"] #profileBannerMedia > :is(img,video) {
  animation:none!important;
  transition:none!important;
}
