body {
    font-family: 'Exo 2', sans-serif;
    background-color: #0e1410;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.04em;
}

body.is-loading {
    overflow: hidden;
}

/* Tło — las we mgle */
.bg-photo {
    position: fixed;
    inset: 0;
    z-index: -4;
    background: url('background.png') center center / cover no-repeat;
    transform: scale(1.04);
    animation: slowZoom 28s ease-in-out infinite alternate;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(8, 12, 10, 0.55) 0%, rgba(14, 20, 16, 0.72) 45%, rgba(10, 14, 12, 0.88) 100%),
        radial-gradient(ellipse at 50% 20%, rgba(169, 176, 171, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.14;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.mist-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.mist-wisp {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(209, 213, 210, 0.18) 0%, rgba(209, 213, 210, 0) 70%);
    filter: blur(28px);
    animation: mistDrift linear infinite;
}

.mist-wisp-1 {
    width: 55vw;
    height: 28vh;
    top: 8%;
    left: -10%;
    animation-duration: 38s;
}

.mist-wisp-2 {
    width: 45vw;
    height: 22vh;
    top: 35%;
    right: -15%;
    animation-duration: 44s;
    animation-delay: -12s;
}

.mist-wisp-3 {
    width: 60vw;
    height: 30vh;
    bottom: 5%;
    left: 10%;
    animation-duration: 52s;
    animation-delay: -24s;
}

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(10, 14, 12, 0.92);
    backdrop-filter: blur(14px);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loader-mist {
    width: 72px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(209, 213, 210, 0.35) 0%, rgba(209, 213, 210, 0) 72%);
    filter: blur(10px);
    animation: mistPulse 2.4s ease-in-out infinite;
}

.loader-bar {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 22px;
}

.loader-bar span {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to top, #3a4737, #a9b0ab);
    animation: barPulse 0.9s ease-in-out infinite alternate;
}

.loader-bar span:nth-child(1) { height: 8px; animation-delay: 0s; }
.loader-bar span:nth-child(2) { height: 16px; animation-delay: 0.12s; }
.loader-bar span:nth-child(3) { height: 22px; animation-delay: 0.24s; }
.loader-bar span:nth-child(4) { height: 14px; animation-delay: 0.36s; }
.loader-bar span:nth-child(5) { height: 10px; animation-delay: 0.48s; }

.loader-text {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #a9b0ab;
}

body.page-ready .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Karta główna */
.bio-card {
    background: rgba(18, 24, 20, 0.42);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(209, 213, 210, 0.14);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bio-tag {
    color: #8fa393;
}

.bio-handle {
    color: #c5cbc7;
}

.bio-desc {
    color: #b8bfba;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d1d5d2;
    background: rgba(58, 71, 55, 0.35);
    border: 1px solid rgba(169, 176, 171, 0.2);
}

.status-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7d9a82;
    box-shadow: 0 0 8px rgba(125, 154, 130, 0.5);
    animation: softPulse 2.2s ease-in-out infinite;
}

.avatar-ring {
    background: linear-gradient(135deg, #4b5d4c, #3a4737, #6b7f6d);
    padding: 3px;
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.avatar-ring img {
    border-color: rgba(14, 20, 16, 0.9) !important;
}

/* Przyciski — szkło + akcent marki */
.link-btn {
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.link-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.link-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.55s ease;
}

.link-btn:hover::after {
    left: 150%;
}

.link-btn-icon {
    background: rgba(255, 255, 255, 0.12);
}

.link-tiktok {
    background: rgba(10, 10, 10, 0.55);
    color: #f0f0f0;
}

.link-youtube {
    background: rgba(90, 20, 20, 0.45);
    color: #fce8e8;
}

.link-tipply {
    background: rgba(80, 35, 45, 0.48);
    color: #fde8ee;
}

.link-discord {
    background: rgba(45, 50, 110, 0.48);
    color: #e8eaff;
}

.bio-footer {
    color: #7f8782;
}

.bio-footer-credit {
    color: #6b736e;
    font-size: 0.75rem;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(24px);
}

@keyframes slowZoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

@keyframes mistDrift {
    0% { transform: translateX(0) translateY(0); opacity: 0.5; }
    50% { transform: translateX(8vw) translateY(-2vh); opacity: 0.85; }
    100% { transform: translateX(16vw) translateY(1vh); opacity: 0.5; }
}

@keyframes mistPulse {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.15); }
}

@keyframes barPulse {
    from { transform: scaleY(0.35); opacity: 0.45; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatMist {
    to {
        transform: translateY(110vh) translateX(20px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bg-photo,
    .mist-wisp,
    .fade-in-up,
    .loader-mist,
    .loader-bar span,
    .status-pill-dot {
        animation: none;
    }
}
