:root {
    --bg: #080808;
    --card: rgba(22, 22, 25, .8);
    --surface: rgba(255, 255, 255, .06);
    --surface-hover: rgba(255, 255, 255, .1);
    --border: rgba(255, 255, 255, .12);
    --border-bright: rgba(255, 255, 255, .24);
    --text: #fff;
    --text-2: rgba(255, 255, 255, .8);
    --muted: rgba(255, 255, 255, .6);
    --accent: #d9d9de;
    --accent-gradient: linear-gradient(135deg, #f4f4f5, #a9abb1);
    --green: #30d158;
    --yellow: #ffd60a;
    --red: #ff453a;
    --grey: #6e6e73;
    --radius: 28px;
    --radius-sm: 16px;
    --gap: 18px;
    --page-width: min(1120px, 100% - 28px);
    --shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

[hidden] { display: none !important; }

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        radial-gradient(circle at 50% 20%, rgba(220, 220, 225, .1), transparent 30%),
        var(--bg);
    background-size: 44px 44px, 44px 44px, auto, auto;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: currentColor;
}

.snow {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -10px;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, .5);
    opacity: 0;
    animation: snowfall linear infinite;
    will-change: transform, opacity;
}

@keyframes snowfall {
    0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
    10% { opacity: .7; }
    50% { transform: translate3d(var(--drift-mid), 55vh, 0) scale(1); }
    90% { opacity: .7; }
    100% { transform: translate3d(var(--drift-end), 110vh, 0) scale(.8); opacity: 0; }
}

.topbar {
    position: sticky;
    top: 12px;
    z-index: 50;
    width: var(--page-width);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(16, 16, 18, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.brand {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.brand img {
    width: auto;
    height: 52px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .2));
}

.brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
    mix-blend-mode: screen;
    transform: translateX(-100%);
    animation: shine 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0%, 60% { transform: translateX(-100%); }
    90%, 100% { transform: translateX(100%); }
}

.nav {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.nav a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s, background-color .2s;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface);
}

.nav .nav-accent {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control {
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.lang-switch {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.lang-btn {
    min-width: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    cursor: pointer;
    transition: color .2s, background-color .2s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.is-active {
    color: #0b0b0c;
    background: var(--accent-gradient);
}

.volume {
    width: 130px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: var(--muted);
    transition: opacity .2s;
}

.volume.is-muted { opacity: .5; }

.volume input {
    width: 100%;
    min-width: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.icon-btn {
    width: 44px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.icon-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-bright);
}

.icon-btn.is-active {
    background: rgba(220, 220, 225, .14);
    border-color: rgba(220, 220, 225, .38);
}

.page {
    position: relative;
    z-index: 1;
    width: var(--page-width);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.span-all { grid-column: 1 / -1; }

.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
}

.section {
    padding: 26px 30px;
    scroll-margin-top: 110px;
}

.section-title {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, .5);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: var(--surface-hover);
    border-color: var(--border-bright);
}

.btn-primary {
    color: #0b0b0c;
    border-color: transparent;
    background: var(--accent-gradient);
    box-shadow: 0 12px 30px rgba(220, 220, 225, .12);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(480px, 70vh, 650px);
    display: grid;
    place-items: center;
    padding: 40px 24px;
    border-radius: 38px;
    text-align: center;
    transition: transform .16s ease-out;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 38%, rgba(220, 220, 225, .13), transparent 32%),
        linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .68));
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 610px;
}

.avatar {
    position: relative;
    isolation: isolate;
    width: 168px;
    height: 168px;
    margin: 0 auto 24px;
}

.avatar::before {
    content: "";
    position: absolute;
    inset: -6px;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(#fff, #7dd3fc 70deg, #c084fc 140deg, #f9a8d4 210deg, #93c5fd 280deg, #fff);
    animation: spin 4.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.avatar img {
    width: 100%;
    height: 100%;
    border: 3px solid #0d0d0f;
    border-radius: 50%;
    object-fit: cover;
    background: #0d0d0f;
    box-shadow: 0 0 30px rgba(147, 197, 253, .25);
}

.status-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 32px;
    height: 32px;
    border: 5px solid #121214;
    border-radius: 50%;
    background: var(--grey);
    transition: background-color .25s, box-shadow .25s;
}

.status-dot[data-status="online"] {
    background: var(--green);
    box-shadow: 0 0 18px rgba(48, 209, 88, .55);
}

.status-dot[data-status="idle"] { background: var(--yellow); }
.status-dot[data-status="dnd"] { background: var(--red); }

.name-wrap {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    cursor: default;
}

.name {
    padding-bottom: .08em;
    font-size: clamp(42px, 9vw, 68px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
    color: transparent;
    background: linear-gradient(90deg, #fff, #bfc1c8 30%, #f5f5f7 50%, #8f929a 75%, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(220, 220, 225, .25));
}

.aka {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 20;
    width: 180px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(20, 20, 22, .94);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    line-height: 1.75;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -5px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.name-wrap:hover .aka,
.name-wrap:focus-within .aka {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.status-text {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
}

.status-text .icon {
    width: 18px;
    height: 18px;
    color: #5865f2;
}

.presence {
    width: min(100%, 420px);
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    background: rgba(0, 0, 0, .25);
    color: var(--muted);
    font-size: 14px;
}

.presence strong { color: var(--text); }

.game-icon {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    object-fit: cover;
}

.hero-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.bio {
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.7;
}

.tags-group { margin-top: 20px; }

.tags-group h3 {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags li {
    padding: 6px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-size: 14px;
}

.pc-list {
    display: grid;
    gap: 12px;
}

.pc-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    line-height: 1.3;
}

.pc-icon {
    grid-row: span 2;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}

.pc-icon .icon {
    width: 18px;
    height: 18px;
}

.pc-type {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
}

.pc-list strong {
    grid-column: 2;
    font-size: 15px;
    font-weight: 650;
}

.player {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    padding: 18px 22px;
}

.player-cover {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--muted);
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-title,
.track-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-title { font-weight: 700; }

.track-meta {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.round-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.round-btn:hover {
    background-color: var(--surface-hover);
    border-color: var(--border-bright);
}

.round-btn--main {
    width: 50px;
    height: 50px;
    color: #0b0b0c;
    border-color: transparent;
    background: var(--accent-gradient);
}

.seek {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.seek input {
    --progress: 0%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--accent) var(--progress), rgba(255, 255, 255, .14) var(--progress));
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.seek input::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f4;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .35);
    appearance: none;
    -webkit-appearance: none;
}

.seek input::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 50%;
    background: #f2f2f4;
    box-shadow: 0 2px 9px rgba(0, 0, 0, .35);
}

.contacts-text {
    margin: -6px 0 18px;
    color: var(--muted);
}

.socials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.social {
    --brand: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    font-weight: 650;
    transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}

.social .icon {
    width: 22px;
    height: 22px;
    color: var(--brand);
}

.social:hover {
    transform: translateY(-2px);
    background-color: var(--surface-hover);
    border-color: color-mix(in srgb, var(--brand) 55%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 18%, transparent);
}

.social--telegram { --brand: #26a5e4; }
.social--steam { --brand: #66c0f4; }
.social--twitch { --brand: #a970ff; }
.social--spotify { --brand: #1ed760; }
.social--instagram { --brand: #ff4f7b; }

.support {
    padding-top: 6px;
    text-align: center;
}

.support-title {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.support-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-donate {
    border-radius: 999px;
    border-color: rgba(255, 140, 45, .58);
    background: linear-gradient(135deg, #f27a18, #c9480e);
    box-shadow: 0 12px 30px rgba(255, 110, 25, .18);
}

.btn-crypto {
    border-radius: 999px;
    border-color: rgba(120, 220, 255, .36);
    background: linear-gradient(135deg, rgba(70, 190, 255, .12), rgba(80, 110, 255, .1));
}

.footer {
    position: relative;
    z-index: 1;
    padding: 28px 0 36px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 26px;
    left: 50%;
    z-index: 100;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: rgba(20, 20, 22, .95);
    font-size: 13px;
    opacity: 0;
    transform: translate(-50%, 20px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
}

.error {
    max-width: 440px;
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 40px 32px;
    text-align: center;
}

.error-code {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.05em;
}

.error p { color: var(--muted); }
.error .btn { margin-top: 8px; }

@media (max-width: 860px) {
    .topbar { grid-template-columns: auto 1fr; }

    .top-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar { display: none; }

    .nav a { padding: 8px 12px; }

    .page { grid-template-columns: 1fr; }

    .section { scroll-margin-top: 140px; }
}

@media (max-width: 560px) {
    :root { --page-width: calc(100% - 16px); }

    .topbar {
        top: 8px;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 20px;
    }

    .brand img {
        height: 40px;
        max-width: 130px;
    }

    .volume { display: none; }

    .hero {
        min-height: 480px;
        padding: 32px 18px;
        border-radius: 30px;
    }

    .avatar {
        width: 136px;
        height: 136px;
    }

    .section { padding: 22px 20px; }

    .player {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 16px;
    }

    .player-controls {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .socials { grid-template-columns: 1fr 1fr; }
    .social:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
