:root {
    color-scheme: dark;
    --ink: #f5f5f5;
    --muted: #a2a2a2;
    --accent: #f2f2f2;
    --line: #ffffff24;
    --mono: "DM Mono", monospace;
    --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 32px 18px;
    overflow-x: hidden;
    background: #080808;
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body::before, body::after {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
}

body::before {
    background: url("./pics/background.jpg") center 52% / cover;
    transform: scale(1.02);
}

body::after {
    background: linear-gradient(180deg, #0808088c 0%, #080808b8 48%, #080808e8 100%);
    backdrop-filter: blur(2px);
    transition: backdrop-filter 450ms ease;
}

body.entered::after { backdrop-filter: blur(0); }

#snowfall {
    position: fixed;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.entry-screen {
    position: fixed;
    z-index: 5;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    border: 0;
    background: #08080855;
    color: var(--ink);
    cursor: pointer;
    font: 800 20px var(--sans);
    letter-spacing: 0;
    backdrop-filter: blur(3px);
    transition: opacity 450ms ease, backdrop-filter 450ms ease;
}

.entry-screen[hidden] { display: none; }

.entry-screen:hover { background: #08080848; }
.entry-screen.is-entering { opacity: 0; backdrop-filter: blur(0); pointer-events: none; }
.entry-screen:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; }

a { color: inherit; text-decoration: none; }

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.profile {
    width: min(100%, 420px);
    overflow: hidden;
    border: 1px solid #ffffff20;
    border-radius: 14px;
    background: #111111e8;
    box-shadow: 0 24px 90px #0008;
    backdrop-filter: blur(20px);
    animation: appear 600ms ease-out both;
}

.profile[hidden] { display: none; }

.cover {
    height: 132px;
    background:
        linear-gradient(105deg, #080808cc, #282828aa),
        url("./pics/background.jpg") center 47% / cover;
}

.profile-content { padding: 0 28px 27px; }

.avatar-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-top: -42px;
}

.avatar {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 4px solid #171717;
    border-radius: 50%;
    background: url("./pics/avatar.jpg") center / cover, #303030;
    box-shadow: 0 5px 20px #0006;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #e5e5e5;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px #ffffff88;
    content: "";
}

.identity { margin-top: 16px; text-align: center; }

h1 {
    margin: 0;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0;
}

.handle {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.bio {
    max-width: 300px;
    margin: 14px auto 0;
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.8;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 21px 0 24px;
}

.social-link {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff08;
    color: #e7e7e7;
    font-size: 11px;
    font-weight: 800;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: #ffffff70;
    background: #ffffff18;
    color: var(--accent);
}

.links-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #aaaaaa;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.links-label::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.link-list { display: grid; gap: 9px; }

.link-button {
    min-height: 53px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 13px;
    border: 1px solid #ffffff20;
    border-radius: 9px;
    background: #ffffff09;
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.link-button:hover {
    transform: translateY(-2px);
    border-color: #ffffff70;
    background: #ffffff12;
}

.link-icon {
    width: 32px;
    height: 32px;
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 7px;
    background: #ffffff12;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
}

.link-copy { display: grid; gap: 2px; }
.link-title { font-size: 11px; font-weight: 700; }
.link-subtitle { color: var(--muted); font-size: 9px; }
.link-arrow { margin-left: auto; color: #a9a9a9; font-size: 15px; }

.music-preferences {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 18px;
}

.music-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }

.music-toggle {
    width: 30px;
    height: 30px;
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #ffffff0b;
    color: var(--ink);
    cursor: pointer;
    font-size: 10px;
}

.music-toggle:hover { border-color: #ffffff70; background: #ffffff1a; }

.music-hint {
    color: #d7d7d7;
    font-family: var(--mono);
    font-size: 9px;
}

.music-hint[hidden] { display: none; }

.volume-control { display: flex; align-items: center; gap: 8px; color: #d8d8d8; }
.volume-control input { width: 132px; accent-color: #f2f2f2; cursor: pointer; }
.volume-value { width: 28px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-align: right; }

.profile-footer {
    padding: 13px 20px;
    border-top: 1px solid #ffffff15;
    color: #898989;
    font-family: var(--mono);
    font-size: 9px;
    text-align: center;
}

.profile-footer span { color: var(--accent); }

@keyframes appear {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 420px) {
    body { padding: 20px 14px; }
    .profile-content { padding-inline: 21px; }
    .cover { height: 116px; }
    .volume-control input { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
