@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/static/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/static/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/static/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/static/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/static/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
}

:root {
    --bg: #e0e0e0;
    --panel: #c9c9c9;
    --panel-border: #000000;
    --white: #000000;
    --muted: #000000;
    --link-bg: #c9c9c9;
    --link-border: #acacac;
    --link-bg-hover: #a3a3a3;
    --font-main: 'Montserrat';
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

*::-webkit-scrollbar {
    display: none;
}

html,
body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

.title {
    font-size: clamp(13px, 3.6vw, 42px);
    font-weight: 300;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 16px;
    margin-bottom: 24px;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(0, 0, 0, 0.35), 0 0 64px rgba(0, 0, 0, 0.18);
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    padding: 36px 28px 30px;
    text-align: center;
}

.avatar-wrap {
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
    position: relative;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--white);
    display: block;
    box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.6);
}

.nickname {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 40px;
    letter-spacing: 2px;
    color: var(--white);
    line-height: 1;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 0, 0, 0.3);
}

.tagline {
    margin: 5px 0 20px;
    font-size: 17px;
    color: var(--muted);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.links {
    padding: 10px;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, auto);
    grid-auto-columns: 1fr;
    column-gap: 10px;
    row-gap: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    background: var(--link-bg);
    border: 1.5px solid var(--link-border);
    text-decoration: none;
    color: var(--white);
    text-align: left;
    border-radius: 5px;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 14px 1px rgba(0, 0, 0, 0.35);
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.link-item:hover,
.link-item:focus-visible {
    border-color: var(--white);
    background: var(--link-bg-hover);
    box-shadow: 0 0 22px 3px rgba(0, 0, 0, 0.55);
}

.link-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.link-label {
    font-weight: 500;
    flex: 1;
    font-size: 17px;
    letter-spacing: 0.5px;
}

@media (max-width: 420px) {
    .card {
        padding: 28px 18px 24px;
    }

    .nickname {
        font-size: 34px;
    }

    .links {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .link-item {
        transition: none;
    }
}

.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 17px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.counter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.player {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.player-cover {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px;
}

.player-cover img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(1);
    box-shadow: 0 0 0 0 rgba(21, 44, 22, 0);
    transition: filter 0.4s ease, box-shadow 0.4s ease;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
    color: #000000;
    text-shadow: 0 0 12px rgba(21, 44, 22, 0), 0 0 28px rgba(21, 44, 22, 0);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.player-artist {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.player-title {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.player.is-playing .player-cover img {
    filter: grayscale(0);
    box-shadow: 0 0 20px 4px rgba(21, 44, 22, 0.7);
}

.player.is-playing .player-info {
    color: #152c16;
    text-shadow: 0 0 12px rgba(21, 44, 22, 0.65), 0 0 28px rgba(21, 44, 22, 0.35);
}

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

.drop {
    position: absolute;
    top: 0;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
    opacity: 0.25;
    filter: blur(2px);
    transform: translate3d(0, -200px, 0);
    will-change: transform;
    animation: rain-fall linear infinite;
}

.drop.near {
    width: 3px;
    opacity: 0.5;
    filter: blur(1px);
}

@keyframes rain-fall {
    from {
        transform: translate3d(0, -200px, 0);
    }

    to {
        transform: translate3d(0, 110vh, 0);
    }
}

.rain.paused .drop {
    animation-play-state: paused;
}

.link-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-label {
    font-size: 17px;
    letter-spacing: 0.5px;
}

.link-desc {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.65;
}