/* Chrome, glass and perspective from the landing page's 3D profile. */
:root {
    --studio-display: Unbounded, "Segoe UI", system-ui, sans-serif;
    --studio-body: Figtree, "Segoe UI", system-ui, sans-serif;
    --studio-dark: #05090f;
    --studio-ice: #e9f8fb;
    --studio-cyan: #20c8d8;
}

.profile-studio, body.reference-profile { font-family: var(--studio-body); }
.profile-studio .cp-brand, .profile-studio h1, .profile-studio h2,
.reference-profile .username, .reference-profile .subject-heading,
.profile-studio #previewName, .profile-studio .cp-preview-link-area h4 {
    font-family: var(--studio-display);
    letter-spacing: -.035em;
}

.profile-studio .cp-topbar {
    border-bottom: 1px solid #72a8ba44 !important;
    box-shadow: 0 5px 22px #08121c20 !important;
}
html[data-theme="dark"] .profile-studio {
    background: radial-gradient(ellipse at 76% 42%, #123342 0, transparent 54%),
                radial-gradient(ellipse at 4% 100%, #261c46 0, transparent 52%), var(--studio-dark) !important;
}
html[data-theme="dark"] .profile-studio .cp-topbar {
    background: #080f19 !important;
}
.profile-studio .cp-editor, .profile-studio .cp-login-card {
    border-radius: 22px !important;
    box-shadow: 0 5px 0 #30475766, 0 18px 44px #02060b35 !important;
}
html[data-theme="dark"] .profile-studio .cp-editor,
html[data-theme="dark"] .profile-studio .cp-login-card {
    background: linear-gradient(150deg,#142632,#0a131e 65%) !important;
    border-color: #315869 !important;
}
.profile-studio .cp-editor-section { border-radius: 16px !important; }
.profile-studio .cp-button-primary {
    background: var(--studio-cyan) !important;
    color: #031014 !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 0 #087983, 0 8px 22px #20c8d82c !important;
}
.profile-studio .cp-preview-head { font-family: var(--studio-display); font-size: .67rem; }

[data-depth-stage] { perspective: 1100px; }
.profile-studio .cp-preview-stage {
    border-radius: 24px !important;
    background-image: radial-gradient(ellipse at 65% 20%, #194755, transparent 55%),
                      radial-gradient(ellipse at 22% 88%, #28204f, transparent 58%) !important;
    background-color: #05090f !important;
}
body.reference-profile[data-style="glass"] .profile-backdrop {
    background-image: radial-gradient(ellipse at 72% 35%, #123543, transparent 60%),
                      radial-gradient(ellipse at 12% 82%, #29204e, transparent 60%);
}
.reference-profile .reference-profile-page { animation: none; cursor: auto !important; }

.profile-studio [data-depth-card], body.reference-profile [data-depth-card] {
    --card-glow: var(--profile-accent, var(--accent, #20c8d8));
    position: relative;
    border: 1px solid color-mix(in srgb, var(--card-glow) 55%, #606f80) !important;
    border-radius: clamp(22px,4vw,38px) !important;
    box-shadow: inset 0 1px 0 #c4f6ff55, inset 0 -2px 2px #03070d88,
                0 3px 0 #496175, 0 7px 0 #182837,
                0 26px 58px #02060ba8, 0 0 38px color-mix(in srgb, var(--card-glow) 25%, transparent) !important;
    transform: rotateX(var(--studio-rx, 0deg)) rotateY(var(--studio-ry, 0deg));
    transition: transform 180ms ease-out;
}
.profile-studio [data-style="glass"] [data-depth-card],
body.reference-profile[data-style="glass"] [data-depth-card] {
    background: radial-gradient(ellipse at 15% 18%, color-mix(in srgb, var(--card-glow) 28%, transparent), transparent 65%),
                linear-gradient(145deg, #102532f2, #07111cf2 56%, #261b50f2) !important;
    color: var(--studio-ice);
}
[data-style="glass"] [data-depth-card] :is(.username, #previewName, .subject-heading, h4) { color: var(--studio-ice) !important; }
[data-style="glass"] [data-depth-card] :is(.profile-bio, #previewBio) { color: #c4dbe4 !important; }
[data-depth-card] :is(.pfp-container, .cp-preview-avatar) {
    outline: 2px solid var(--card-glow);
    outline-offset: 3px;
    box-shadow: 0 0 27px color-mix(in srgb, var(--card-glow) 37%, transparent);
}
[data-style="glass"] [data-depth-card] :is(.link-item, .cp-preview-socials a) {
    color: #e9f8fb !important;
    background: linear-gradient(155deg, #182c3a, #0b1522) !important;
    border-color: #4d7489 !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 #a9d5e322, 0 3px 0 #060c14;
}
[data-style="glass"] [data-depth-card] .link-item b { color: #a5c0cd; }
[data-style="glass"] [data-depth-card] :is(.link-item, .cp-preview-socials a):is(:hover, :focus-visible) {
    background: linear-gradient(155deg, #213f4e, #112133) !important;
    border-color: var(--card-glow) !important;
}
@media (prefers-reduced-motion: reduce) {
    [data-depth-card] { transform: none !important; transition: none !important; }
}
