* {
    box-sizing: border-box;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    cursor: url('https://play.vsthemes.org/t-cursors/67099/9c9caa441b225439d2f1dbd3dc5e502d.webp') 8 8, auto;
    overflow: hidden;
}

.page {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.page.is-visible {
    opacity: 1;
}

.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.35s ease;
    pointer-events: auto;
    overflow: hidden;
}

.welcome-overlay__video {
    position: absolute;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: blur(16px) saturate(0.9);
}

.welcome-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.welcome-overlay__content {
    position: relative;
    z-index: 1;
    font-size: clamp(1rem, 2vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    user-select: none;
}

a,
button,
input,
select,
textarea,
label,
[role="button"] {
    cursor: url('https://play.vsthemes.org/t-cursors/67099/9c9caa441b225439d2f1dbd3dc5e502d.webp') 8 8, auto;
}

.page-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}


.page {
    width: 100%;
    max-width: 520px;
    padding: 30px;
}

.bio {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 30px;
    min-height: 150px;
    border: 1px solid #ffffff8f;
    border-radius: 14px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    will-change: transform;
    filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.65));
    transition: filter 0.35s ease, opacity 0.7s ease;
    opacity: 0;
}

.bio.is-visible {
    opacity: 1;
}

.bio:hover {
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.9));
}

.bio * {
    position: relative;
    z-index: 1;
}

.banner-avatar-wrap  {
    position: relative;
    width: calc(100% + 60px);
    margin: -30px -30px 0;
}

.banner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatar {
    position: absolute;
    left: 50%;
    top: 70%;
    transform: translateX(-50%);
    width: 85px;
    height: 85px;
    border: 1px solid #ffffff8f;
    border-radius: 10%;
    background: #000000;
    background-image: url('img/avatar.jpg');
    background-size: cover;
    background-position: center;
    overflow: visible;
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    background: url('img/avatardec.png') center/contain no-repeat;
    pointer-events: none;
    z-index: 2;
}

.background-field {
    width: 100%;
    margin: 16px 0 0;
    padding: 16px;
    border: 1px solid #ffffff8f;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-align: center;
    font-size: 0.95rem;
}

.view-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid #ffffff59;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}

.view-counter i {
    font-size: 0.7rem;
    opacity: 0.9;
}

#view-count {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nickname {
    margin: 70px auto 24px;
    color: #fff;
font-size: 1.5rem;
  font-weight: 500;
    text-align: center;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.3);
}

.banner-box {
    width: 100%;
    min-height: 140px;
    border-bottom: 1px solid #ffffff8f;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    background-size: cover;
    background-position: center;
    background-image: url('img/banner.gif');
    opacity: 0.5;
}


.tower {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
}

.floor {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.floor.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.floor-label {
    align-self: flex-start;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.floor-cards {
    display: flex;
    gap: 18px;
}

.floor-cards .card {
    flex: 1;
    min-width: 0;
}


.floor-1 .card {
    min-height: 8px;
}

.card {
    width: 100%;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1px solid #ffffff8f;
    border-radius: 14px;
    backdrop-filter: blur(5px);
    font-size: 1rem;
}

.steam-card {
    position: relative;
    justify-content: flex-start;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.steam-card .arrow {
    transition: transform 0.2s ease;
}

.steam-card:hover .arrow {
    transform: translate(4px, -50%);
}

.arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.arrow svg {
    fill: #fff;
}

.namemc-card {
    position: relative;
    justify-content: flex-start;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}


.namemc-card .arrow {
    transition: transform 0.2s ease;
}

.namemc-card:hover .arrow {
    transform: translate(4px, -50%);
}

.social-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: #fff;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: fit-content;
    padding: 10px;
    border: 1px solid #ffffff8f;
    border-radius: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    line-height: 0;
}

.discord-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    justify-content: flex-start;
}

.discord-profile-btn {
    margin-left: auto;
    flex-shrink: 0;
    padding: 8px 20px;
    border: 1px solid #ffffff8f;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.discord-profile-btn:hover {
    background: rgba(255, 255, 255, 0.096);
}

.discord-avatar {
    position: relative;
    width: 55px;
    height: 55px;
    flex-shrink: 0;
}

.discord-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ffffff8f;
    background: #111;
}

.discord-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    flex: 1 1 auto;
    min-width: 0;
}

.discord-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.discord-decoration-img {
    position: absolute;
    top: 50%;
    left: 49%;
    width: 113%;
    height: 120%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    display: none;
}

.discord-info .discord-name {
    font-weight: 700;
}

.discord-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.badges {
    display: flex;
    align-items: center;
    gap: 4px;
}

.badges svg {
    width: 15px;
    height: 15px;
    display: block;
}

.discord-status {
    display: none;
}

.status-badge {
    position: absolute;
    right: 2px;
    bottom: 0px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-badge.status-online { background: #23a55a; }
.status-badge.status-idle { background: #f0b232; }
.status-badge.status-dnd { background: #f23f43; }
.status-badge.status-offline { background: #80848e; }

.status-text {
    display: none;
}

.activity-list {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-list:empty {
    margin-top: 0;
}

.activity-item {
    font-size: 0.8rem;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 480px) {
    .discord-avatar { width: 40px; height: 40px; }
    .discord-profile-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

.steam-icon {
    display: block;
    width: 22px;
    height: 22px;
    fill: #fff;
    flex-shrink: 0;
}

.music-player {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding: 10px 10px 10px 15px;
}

.music-volume {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 5;
}

.music-volume-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.music-volume-btn:hover {
    opacity: 1;
}

.music-volume-popup {
    position: absolute;
    top: calc(100% + -20px);
    right: 20px;
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid #ffffff8f;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.253);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transform-origin: top right;
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}

.music-volume-popup.open {
    pointer-events: auto;
    animation: volume-pop-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.music-volume-popup.closing {
    pointer-events: none;
    animation: volume-pop-out 0.22s ease forwards;
}

@keyframes volume-pop-in {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    55% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes volume-pop-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.4);
    }
}

.music-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    cursor: pointer;
}

.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.music-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

.music-volume-slider::-moz-range-progress {
    background: #fff;
    height: 4px;
    border-radius: 2px;
}

.music-cover {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ffffff8f;
    background: #111;
}

.music-cover.cover-pop-in {
    animation: cover-pop-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cover-pop-in {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    55% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.music-right {
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.music-top {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 0;
}

.music-info {
    text-align: left;
    min-width: 0;
    top:6px;
    left:2px;
}

.music-title {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-title.title-slide-in {
    animation: title-slide-in 0.3s ease;
}

@keyframes title-slide-in {
    0% {
        opacity: 0;
        transform: translateX(-16px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.music-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.music-progress-col {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.music-progress-wrap {
    width: 100%;
    display: flex;
    align-items: center;
}

.music-progress {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    cursor: pointer;
    transition: height 0.15s ease;
}

.music-progress:hover,
.music-progress:active {
    height: 6px;
}

.music-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.music-progress:hover::-webkit-slider-thumb,
.music-progress:active::-webkit-slider-thumb {
    opacity: 1;
}

.music-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.music-progress:hover::-moz-range-thumb,
.music-progress:active::-moz-range-thumb {
    opacity: 1;
}

.music-progress::-moz-range-progress {
    background: #fff;
    height: 4px;
    border-radius: 2px;
}

.music-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    opacity: 0.75;
    padding: 0 1.5px;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    flex-shrink: 0;
}

.music-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    cursor: pointer;
    opacity: 0.85;
    top:-10px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.3);
}

.music-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.music-btn svg {
    fill: #fff;
    display: block;
}

.music-play-btn {
    width: 34px;
    height: 34px;
}

@media (max-width: 480px) {
    .music-cover { width: 52px; height: 52px; }
    .music-controls { gap: 4px; }
}

.sttext {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    .floor-cards {
        gap: 12px;
        flex-wrap: wrap;
    }

    .floor-cards .card {
        flex: 1 1 48%;
        min-width: 48%;
    }
    .sttext {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    flex: 1 1 auto;
    text-align: center;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    opacity: 0;
}

    .card {
        padding: 12px;
    }

    .icon-box {
        padding: 8px;
    }

    .arrow {
        right: 12px;
    }

    .steam-card, .namemc-card {
        justify-content: center;
    }
}