/* Reclorio tokens are shared with the Mini App; no remote fonts or trackers. */
.bio-body { background: var(--bg); }
.bio-page { width: min(100%, 620px); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.bio-profile,.bio-contacts { border: 1px solid var(--border-soft); background: var(--surface); border-radius: 20px; padding: 18px; min-width: 0; }
.bio-identity { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; min-width: 0; }
.bio-avatar { position: relative; display: grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 16px; overflow: hidden; background: var(--accent-soft); color: #add2ff; font-weight: 650; font-size: 20px; }
.bio-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s ease; }
.bio-avatar img.is-ready { opacity: 1; }
.bio-identity>.bio-avatar { width: 76px; height: 76px; border-radius: 20px; font-size: 28px; }
.bio-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.bio-copy h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.5px; overflow-wrap: anywhere; }
.bio-copy p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.bio-copy strong { font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.bio-copy small { font-size: 13px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.bio-cooperate { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 12px; min-height: 52px; text-align: center; text-decoration: none; border-radius: 14px; font-size: 16px; line-height: 1.4; background: #2277d1; border-color: #2a8cff; color: #fff; font-weight: 650; }
.bio-cooperate>.icon { width: 21px; height: 21px; flex-shrink: 0; }
.bio-cooperate>.icon:last-child { width: 16px; margin-left: auto; }
.bio-cooperate span { flex: 1; }
.bio-links { display: grid; gap: 10px; }
.bio-link { display: flex; align-items: center; width: 100%; min-width: 0; gap: 12px; border: 1px solid var(--border-soft); background: var(--surface); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--text); min-height: 64px; text-align: left; }
.bio-social-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: #86c5ff; }
.bio-social-icon .icon { width: 24px; height: 24px; }
.bio-social--instagram { color: #efb0d9; background: #322033; }
.bio-link>.icon { color: var(--muted); width: 18px; height: 18px; }
.bio-contacts { padding: 16px 12px 12px; }
.bio-section-heading { display: flex; gap: 10px; align-items: center; padding: 0 4px 14px; }
.bio-section-heading>.icon { color: var(--muted); width: 22px; height: 22px; }
.bio-section-heading h2 { flex: 1; font-size: 17px; margin: 0; line-height: 1.3; }
.bio-section-heading>span { color: var(--muted); font-size: 13px; }
#bio-managers { display: grid; gap: 8px; }
.bio-manager { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--border-soft); background: var(--bg); border-radius: 14px; color: var(--text); text-decoration: none; min-width: 0; min-height: 72px; }
.bio-contact-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: #2277d1; flex-shrink: 0; }
.bio-contact-icon .icon { width: 19px; height: 19px; }
.bio-connected { color: #8eacc4; font-size: 12px; line-height: 1.4; }
.bio-expand { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border: 1px solid var(--border-soft); background: transparent; color: var(--text); border-radius: 14px; margin-top: 10px; padding: 12px; font-size: 14px; }
.bio-expand[aria-expanded=true] .icon { transform: rotate(-90deg); }
.bio-body:not(.bio-enhanced) .bio-manager[hidden] { display: flex!important; }
.bio-body:not(.bio-enhanced) .bio-expand { display: none; }
.bio-handoff { display: grid; gap: 18px; }
.bio-handoff h1 { font-size: 24px; margin: 0; }
.bio-handoff p { margin: 0; line-height: 1.6; color: var(--muted); }
.bio-handoff details { display: grid; }
.bio-handoff summary { cursor: pointer; min-height: 44px; padding: 12px 0; color: var(--text); }
.bio-handoff details p,.bio-handoff details a,.bio-handoff details button { margin-top: 16px; }
.bio-back { display: inline-flex; align-items: center; min-height: 44px; color: #85bdff; }
#bio-feedback:not(:empty) { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; margin: auto; max-width: 560px; padding: 16px; background: var(--surface-raised); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px #0008; }
.bio-link,.bio-manager,.bio-expand,.bio-cooperate { transition: background .15s ease, border-color .15s ease; }
.bio-link:hover,.bio-manager:hover,.bio-expand:hover { background: var(--surface-hover); border-color: var(--border); }
.bio-cooperate:hover { background: #1968bf; }
.bio-link:active,.bio-manager:active,.bio-expand:active { background: var(--accent-soft); }
.bio-cooperate:active { background: #185ba4; }
@media(max-width:374px) { .bio-profile { padding: 14px; } .bio-identity { gap: 12px; } .bio-cooperate { font-size: 15px; gap: 8px; } .bio-manager { gap: 10px; } .bio-section-heading h2 { font-size: 16px; } }
@media(prefers-reduced-motion:reduce) { .bio-page *, .bio-page *::before { transition: none!important; animation: none!important; } }
.bio-telegram-help { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: none; padding: 8px 0 0; }
.bio-telegram-help:hover { color: var(--text); text-decoration: underline; }
.bio-section-copy { display: grid; gap: 4px; min-width: 0; }
.bio-section-copy>span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.bio-cooperate { font-size: 15px; }

/* ---------- Pixel room behind the blogger card (pixel-room.js) ---------- */
.has-room.bio-body { background: #070b14; }
.has-room .bio-page { position: relative; z-index: 1; }
.room { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(#0f1a31 0 62%, #0a1020 62%); }
.room.is-band { position: absolute; inset: 0 0 auto; }
.room canvas { position: absolute; display: block; pointer-events: none; }
.room-px { image-rendering: pixelated; }
.room-fx { image-rendering: auto; mix-blend-mode: screen; }
.room.fallback canvas { display: none; }
.room-scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse var(--rw, 240px) var(--rh, 60%) at var(--cx, 50%) var(--cy, 50%), rgba(7,11,22,.8), rgba(7,11,22,.5) 55%, rgba(7,11,22,0) 100%); }
.room-scrim.band { background: linear-gradient(to bottom, rgba(7,11,22,0) 0, rgba(7,11,22,0) var(--by, 30%), rgba(7,11,22,.62) calc(var(--by, 30%) + 60px), rgba(7,11,22,.78) 100%); }
/* Cards over the scene: a touch of transparency keeps the room alive at the edges. */
.has-room .bio-profile, .has-room .bio-contacts, .has-room .bio-link { background: rgba(12, 18, 32, .94); backdrop-filter: blur(2px); }

/* ---------- Hint for TikTok's in-app browser (public-page.js) ---------- */
.bio-inapp { position: relative; display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(42,140,255,.45); border-radius: 20px; background: linear-gradient(160deg, #11253f 0%, #0d1824 70%); box-shadow: 0 10px 30px rgba(4,10,20,.45); scroll-margin-top: max(12px, env(safe-area-inset-top)); }
.bio-inapp-arrow { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; color: #6fb2ff; animation: bio-inapp-point 1.6s ease-in-out infinite; }
.bio-inapp-head { display: flex; gap: 12px; align-items: center; padding-right: 44px; min-width: 0; }
.bio-inapp-badge { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: #86c5ff; }
.bio-inapp-badge .icon { width: 22px; height: 22px; }
.bio-inapp-title { display: grid; gap: 3px; min-width: 0; }
.bio-inapp-title strong { font-size: 16px; font-weight: 650; line-height: 1.3; }
.bio-inapp-title small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.bio-inapp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bio-inapp-steps li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; min-height: 44px; border-radius: 14px; background: rgba(8,12,17,.55); border: 1px solid var(--border-soft); font-size: 15px; line-height: 1.4; }
.bio-inapp-steps b { font-weight: 650; }
.bio-inapp-num { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #2277d1; color: #fff; font-size: 13px; font-weight: 700; }
.bio-inapp-dots { display: inline-flex; align-items: center; padding: 0 7px; margin: 0 2px; height: 22px; border-radius: 8px; background: var(--surface-raised); border: 1px solid var(--border); font-size: 11px; letter-spacing: 1px; vertical-align: 1px; }
.bio-inapp-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(245,166,35,.12); color: #ffd28a; font-size: 13px; line-height: 1.45; }
.bio-inapp-copy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.bio-inapp-copy .icon { width: 18px; height: 18px; flex-shrink: 0; }
.bio-inapp-copy:active { background: var(--accent-soft); }
.bio-inapp-copy.is-done { border-color: rgba(76,195,138,.5); color: #8fe0b5; }
.bio-inapp.is-nudged { animation: bio-inapp-nudge .7s ease; }
.bio-inapp-clip { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
@keyframes bio-inapp-point { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4px,-5px); } }
@keyframes bio-inapp-nudge { 0%,100% { box-shadow: 0 10px 30px rgba(4,10,20,.45); transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); box-shadow: 0 0 0 4px rgba(42,140,255,.35); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* In TikTok the help link repeats the card above. */
.bio-in-tiktok .bio-telegram-help { display: none; }

/* ---------- Agency page: reclorio.ru/a/<slug> ---------- */
.bio-kicker { font-size: 12px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; color: #86c5ff; }
.bio-roster-list { display: grid; gap: 8px; }
.bio-roster-card {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 76px; padding: 10px 12px;
  border: 1px solid var(--border-soft); border-radius: 16px; background: var(--bg); color: var(--text); text-decoration: none;
  animation: bio-rise .46s cubic-bezier(.22, 1, .36, 1) backwards;
  transition: transform .34s cubic-bezier(.34, 1.56, .64, 1), background .15s ease, border-color .15s ease;
}
.bio-roster-card:hover { background: var(--surface-hover); border-color: var(--border); }
.bio-roster-card:active { transform: scale(.98); background: var(--accent-soft); transition-duration: .1s; }
.bio-roster-card > .icon { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.bio-roster-card:active > .icon { transform: translateX(3px); }
.bio-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.bio-chip { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border-soft); background: var(--surface); color: var(--muted); font-size: 11px; line-height: 1.3; }
.bio-empty { margin: 0; padding: 8px 4px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.bio-agency-back { justify-self: start; font-size: 14px; text-decoration: none; }
.bio-links > .bio-link { animation: bio-rise .46s cubic-bezier(.22, 1, .36, 1) backwards; }
/* Stagger without inline styles: the page CSP allows only stylesheet rules. */
:is(.bio-roster-list, .bio-links) > :nth-child(2) { animation-delay: 45ms; }
:is(.bio-roster-list, .bio-links) > :nth-child(3) { animation-delay: 90ms; }
:is(.bio-roster-list, .bio-links) > :nth-child(4) { animation-delay: 135ms; }
:is(.bio-roster-list, .bio-links) > :nth-child(5) { animation-delay: 180ms; }
:is(.bio-roster-list, .bio-links) > :nth-child(n+6) { animation-delay: 225ms; }
@keyframes bio-rise { from { opacity: 0; transform: translateY(10px); } }
@media(prefers-reduced-motion:reduce) { .bio-roster-card, .bio-links > .bio-link { animation: none !important; } }
