* { margin: 0; padding: 0; box-sizing: border-box; }
:root { color-scheme: dark; --accent: #ff1837; --accent-rgb: 255, 24, 55; --button-rgb: 89, 89, 102; --text: #f4f4f6; --muted: #a4a4af; }
[hidden] { display: none !important; }
body { font-family: 'Segoe UI', sans-serif; color: var(--text); background: #090a0d; min-height: 100vh; }
.background-container { position: fixed; inset: 0; isolation: isolate; pointer-events: none; background: radial-gradient(ellipse at 25% 15%, rgba(var(--accent-rgb), .16), transparent 55%), #090a0d; }
/* Shift the red artwork toward the accent hue without covering its texture. */
.background-image { position: absolute; inset: 0; background: center / cover no-repeat; background-image: var(--background-desktop, url("background-desktop.png")); filter: hue-rotate(var(--background-hue, 0deg)) saturate(var(--background-saturation, 1)) brightness(1.2); }
.background-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, #07080b08, #07080b30 50%, #07080b08); }
.main-container { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 48px 28px; }
.profile-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 44px 36px; width: 100%; max-width: 1040px; padding: 64px 42px 42px; border: 1px solid #ffffff14; border-radius: 24px; background: linear-gradient(125deg, #101114eb, #08090be8); box-shadow: 0 30px 100px #0009, inset 0 1px #ffffff05; backdrop-filter: blur(18px); animation: enter .65s ease both; }
.light-trails { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; filter: drop-shadow(0 0 7px var(--accent)) drop-shadow(0 0 18px rgba(var(--accent-rgb), .6)); animation: drift 4s ease-in-out infinite alternate; }
.light-trails path { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .85; }
.light-trails path:nth-child(even) { stroke-width: .7; opacity: .35; }
.profile-card > :not(.light-trails) { position: relative; z-index: 1; }
.profile-card:not(.has-activity) .profile-header { grid-column: 1 / -1; justify-content: center; }
.profile-header { display: flex; align-items: center; gap: 22px; min-width: 0; }
.profile-picture { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 50%; padding: 4px; border: 1px solid var(--accent); background: #0a080a; box-shadow: 0 0 24px rgba(var(--accent-rgb), .3), 0 0 0 6px rgba(var(--accent-rgb), .08); }
.profile-picture img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.profile-info { min-width: 0; }
.name-row { display: flex; align-items: center; gap: 10px; }
.username { color: var(--text); font-size: 28px; font-weight: 750; letter-spacing: -.8px; overflow-wrap: anywhere; line-height: 1.2; }
.status-indicator { display: inline-flex; flex: 0 0 auto; }
.status-dot { width: 8px; height: 8px; background: #6b7280; border-radius: 50%; }
.status-message { color: #d1cfd6; font-size: 14px; line-height: 1.65; margin-top: 9px; overflow-wrap: anywhere; }
.status-emoji { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: -.25em; }
.activity-container { min-width: 0; padding: 18px; border: 1px solid #ffffff0c; border-radius: 14px; background: linear-gradient(125deg, #18191ce8, #0e0f12ee); box-shadow: 0 8px 24px #0004; }
.activity-top { display: flex; align-items: center; gap: 12px; }
.activity-art { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 7px; overflow: hidden; background: linear-gradient(145deg, rgba(var(--accent-rgb), .3), #15171f); }
.activity-art { position: relative; display: grid; place-items: center; }
.activity-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.activity-fallback { width: 65%; height: 65%; color: #eee; filter: drop-shadow(0 2px 3px #0008); }
.activity-info { min-width: 0; flex: 1; }
.activity-label { font-size: 8px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
.activity-title { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; line-height: 1.4; }
.activity-details { font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; line-height: 1.4; }
.track-link { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; text-decoration: none; color: #fff; border-radius: 50%; background: #ffffff0b; font-size: 20px; transition: background .2s; }
.track-link:hover { background: #ffffff25; }
.equalizer { display: flex; align-items: end; gap: 3px; height: 25px; }
.equalizer i { display: block; width: 3px; height: 100%; background: var(--accent); transform-origin: bottom; animation: equalize .85s ease-in-out infinite alternate; box-shadow: 0 0 8px rgba(var(--accent-rgb), .3); }
.equalizer i:nth-child(2n) { animation-delay: -.4s; height: 55%; }
.equalizer i:nth-child(3n) { animation-delay: -.7s; height: 80%; }
.track-progress { margin-top: 15px; }
progress { display: block; appearance: none; border: 0; width: 100%; height: 4px; border-radius: 4px; overflow: hidden; background: #ffffff12; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #ffffff12; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.track-times { display: flex; justify-content: space-between; margin-top: 6px; color: #9b99a3; font-size: 9px; font-variant-numeric: tabular-nums; }
.social-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.social-link { min-width: 0; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; padding: 13px 5px; border: 1px solid rgba(var(--button-rgb), .85); background: linear-gradient(145deg, rgba(var(--button-rgb), .7), rgba(var(--button-rgb), .4)); box-shadow: inset 0 1px #ffffff04; color: #fff; font-size: 13px; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.social-link img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 3px 4px #0009); transition: transform .2s; }
.social-link span { text-shadow: 0 2px 3px #000b; }
.social-link[data-platform="x"] img { filter: brightness(0) invert(1) drop-shadow(0 3px 4px #0009); }
.social-link[data-platform="twitch"] img { filter: brightness(1.8) drop-shadow(0 3px 4px #0009); }
@media (hover: hover) and (pointer: fine) {
    .social-link:hover { transform: translateY(-5px); background: linear-gradient(145deg, rgba(var(--button-rgb), .95), rgba(var(--button-rgb), .7)); border-color: rgba(var(--button-rgb), .65); box-shadow: 0 8px 24px rgba(var(--button-rgb), .2); }
    .social-link:hover img { transform: scale(1.12); }
}
a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { from { transform: translateY(-8px) scale(1.02); opacity: .6; } to { transform: translateY(8px) scale(1.06); opacity: 1; } }
@keyframes equalize { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 700px) {
    .background-image { background-image: var(--background-mobile, var(--background-desktop, url("background-mobile.png"))); background-size: 100% 100%; }
    .main-container { padding: 28px 18px; }
    .profile-card { max-width: 380px; grid-template-columns: minmax(0, 1fr); padding: 32px 22px 24px; gap: 24px; border-radius: 22px; background: linear-gradient(165deg, #15171aef, #080a0def); }
    .light-trails { opacity: .75; }
    .profile-header { flex-direction: column; gap: 16px; text-align: center; }
    .profile-picture { width: 84px; height: 84px; flex-basis: 84px; box-shadow: 0 0 24px rgba(var(--accent-rgb), .25); }
    .name-row { justify-content: center; }
    .username { font-size: 24px; }
    .status-message { font-size: 12px; max-width: 260px; margin: 8px auto 0; }
    .activity-container { padding: 12px; border-radius: 10px; }
    .activity-art { width: 38px; height: 38px; flex-basis: 38px; }
    .activity-label { font-size: 7px; letter-spacing: 1px; }
    .equalizer { display: none; }
    .track-link { width: 44px; height: 44px; flex-basis: 44px; }
    .track-progress { margin-top: 10px; }
    .social-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .social-link { flex-direction: row; min-height: 54px; padding: 12px 8px; gap: 10px; border-radius: 9px; font-size: 12px; }
    .social-link:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .social-link img { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
