
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap");

:root {
    --black: #080808;
    --card: rgba(12, 12, 12, 0.84);
    --white: #f5f5f5;
    --silver: #c6c6c6;
    --muted: #858585;
    --line: rgba(255, 255, 255, 0.11);
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-family: Inter, Arial, sans-serif;
    cursor: url("https://www.scoutvr.online/assets/custom_cursor.png"), auto;
}

button, a, input {
    font: inherit;
}

button, a {
    cursor: url("https://www.scoutvr.online/assets/custom_cursor.png"), pointer;
}

/* Background */

#background {
    position: fixed;
    inset: 0;
    z-index: -4;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.35);
    transform: scale(1.025);
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.78)),
        radial-gradient(ellipse at center, transparent 0%, #050505 100%);
}

.background-vignette {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    box-shadow: inset 0 0 180px rgba(0,0,0,.75);
}

.background-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* Page layout */

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

.profile-card {
    position: relative;
    width: min(100%, 465px);
    overflow: hidden;
    padding: 23px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 17px;
    background: var(--card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 30px 100px rgba(0,0,0,.65),
        inset 0 1px rgba(255,255,255,.06);
    animation: card-appear .8s ease both;
}

.profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    opacity: .55;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Top line */

.card-topline {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    color: #ddd;
    font: 700 9px "Space Mono", monospace;
    letter-spacing: 1.3px;
}

.online-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa;
    box-shadow: 0 0 9px #aaa;
}

.topline-right {
    margin-left: auto;
    color: #777;
    font-size: 8px;
    font-weight: 400;
}

/* Profile */

.profile-main {
    padding: 29px 0 24px;
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 105px;
    height: 105px;
    margin: 0 auto 19px;
}

.profile-picture {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 4px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: #111;
    object-fit: cover;
}

.avatar-ring {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    animation: avatar-pulse 3s ease-in-out infinite;
}

@keyframes avatar-pulse {
    50% {
        transform: scale(1.07);
        opacity: .35;
    }
}

.avatar-status {
    position: absolute;
    z-index: 3;
    right: 2px;
    bottom: 5px;
    width: 17px;
    height: 17px;
    border: 3px solid #111;
    border-radius: 50%;
    background: #777;
}

.avatar-status.online {
    background: #43d17b;
    box-shadow: 0 0 10px #43d17b88;
}

.avatar-status.idle {
    background: #e6b84e;
    box-shadow: 0 0 10px #e6b84e66;
}

.avatar-status.dnd {
    background: #ed5b5b;
    box-shadow: 0 0 10px #ed5b5b66;
}

.avatar-status.offline {
    background: #777;
}

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

.name-row h1 {
    color: white;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -1.3px;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-container {
    position: relative;
    display: inline-flex;
}

.badge {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.tooltip {
    position: absolute;
    z-index: 5;
    bottom: calc(100% + 9px);
    left: 50%;
    padding: 6px 9px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #111;
    color: white;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 5px);
    transition: .2s ease;
}

.badge-container:hover .tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.profile-handle {
    margin-top: 5px;
    color: #858585;
    font-size: 11px;
}

#profile-bio {
    margin: 17px auto;
    color: #ccc;
    font-size: 12px;
    line-height: 1.7;
}

/* Discord presence */

.discord-presence {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 18px;
    color: #bdbdbd;
    font: 10px "Space Mono", monospace;
}

.presence-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #777;
}

.presence-dot.online {
    background: #43d17b;
    box-shadow: 0 0 10px #43d17b88;
}

.presence-dot.idle {
    background: #e6b84e;
    box-shadow: 0 0 10px #e6b84e66;
}

.presence-dot.dnd {
    background: #ed5b5b;
    box-shadow: 0 0 10px #ed5b5b66;
}

.presence-dot.offline {
    background: #777;
}

.presence-divider {
    color: #444;
}

#live-clock {
    color: #777;
}

/* Discord activity */

.activity-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 19px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;
    background: rgba(255,255,255,.035);
    text-align: left;
}

.activity-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ddd;
    font-size: 17px;
}

.activity-content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.activity-label {
    color: #777;
    font: 8px "Space Mono", monospace;
    letter-spacing: 1px;
}

.activity-content strong {
    color: #eee;
    font-size: 11px;
    overflow-wrap: anywhere;
}

#discord-details {
    color: #858585;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.activity-live {
    display: none;
    color: #aaa;
    font: 8px "Space Mono", monospace;
    letter-spacing: 1px;
}

.activity-live.visible {
    display: block;
}

/* Profile tags */

.profile-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.profile-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    color: #aaa;
    font: 8px "Space Mono", monospace;
    letter-spacing: .8px;
}

/* Dividers and social links */

.card-divider {
    height: 1px;
    background: var(--line);
}

.social-section {
    padding: 21px 0;
}

.section-label {
    color: #858585;
    font: 9px "Space Mono", monospace;
    letter-spacing: 1.2px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 13px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 7px;
    color: #ccc;
    font-size: 10px;
    text-decoration: none;
    transition: .2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: #777;
    background: rgba(255,255,255,.07);
    color: white;
}

.social-links img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    opacity: .8;
    filter: grayscale(1);
    transition: .2s;
}

.social-links a:hover img {
    opacity: 1;
}

.link-arrow {
    margin-left: auto;
    color: #666;
}

/* Visitor counter */

.profile-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.visitor-counter svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #999;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.visitor-counter div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bottom-label {
    color: #858585;
    font: 8px "Space Mono", monospace;
    letter-spacing: 1px;
}

.visitor-counter strong {
    color: #eee;
    font: 700 17px "Space Mono", monospace;
    letter-spacing: 1px;
}

.skills-button {
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: rgba(255,255,255,.055);
    color: #ddd;
    font: 9px "Space Mono", monospace;
    letter-spacing: .7px;
    transition: .2s;
}

.skills-button:hover {
    border-color: #aaa;
    background: rgba(255,255,255,.12);
}

.skills-button span {
    margin-left: 5px;
}

/* Skills panel */

.hidden {
    display: none !important;
}

.results-hint {
    padding: 0 0 13px;
    color: #777;
    font: 9px "Space Mono", monospace;
    text-align: center;
}

.skills-panel {
    padding: 18px 0;
}

.skills-heading h2 {
    margin-top: 9px;
    color: #eee;
    font-size: 19px;
    letter-spacing: -.5px;
}

.skills-heading p {
    margin-top: 6px;
    color: #858585;
    font-size: 11px;
}

.skill {
    margin-top: 21px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    color: #ddd;
    font: 10px "Space Mono", monospace;
}

.skill-track {
    height: 5px;
    overflow: hidden;
    border-radius: 10px;
    background: #292929;
}

.skill-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #777, #eee);
    transition: width 1s ease;
}

.skills-panel:not(.hidden) .skill-bar {
    width: 15%;
}

.back-button {
    margin-top: 22px;
}

/* Footer */

.card-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: #696969;
    font: 8px "Space Mono", monospace;
    letter-spacing: 1px;
}

/* Music player */

.music-control {
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border: 1px solid #333;
    border-radius: 30px;
    background: rgba(10,10,10,.82);
    backdrop-filter: blur(15px);
}

.music-control button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    color: #ddd;
}

.music-control svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.music-control input {
    width: 85px;
    accent-color: #ddd;
}

/* Enter screen */

#start-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    background: #050505;
    cursor: pointer;
    transition: opacity .65s ease, visibility .65s ease;
}

#start-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.start-symbol {
    color: white;
    font-size: 52px;
    animation: symbol-glow 2.5s ease-in-out infinite;
}

@keyframes symbol-glow {
    50% {
        opacity: .5;
        transform: scale(1.1) rotate(15deg);
    }
}

.start-content p {
    color: #ddd;
    font: 10px "Space Mono", monospace;
    letter-spacing: 2px;
}

.start-subtitle {
    color: #666;
    font: 8px "Space Mono", monospace;
    letter-spacing: 2px;
}

/* Mobile */

@media (max-width: 520px) {
    .page {
        padding: 35px 13px 85px;
    }

    .profile-card {
        padding: 18px;
    }

    .name-row h1 {
        font-size: 24px;
    }

    .social-links {
        gap: 5px;
    }

    .social-links a {
        padding: 9px 6px;
        font-size: 9px;
    }

    .music-control {
        right: 12px;
        bottom: 12px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
