:root {
  color: #f7f7fa;
  background: #080808;
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  padding: 32px 20px;
  place-items: center;
  overflow-x: hidden;
  background: #080808;
}

body:not(.has-background-video) .profile { background: #101010; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.has-background-video .profile,
body.has-background-video .music-bar,
body.has-background-video .sound-panel { background: rgb(18 18 18 / 6%); }

a { color: inherit; text-decoration: none; }

.page-stack { position: relative; z-index: 2; display: flex; width: 100%; flex-direction: column; align-items: center; gap: 20px; }

.background-video,
.video-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.background-video {
  z-index: 0;
  object-fit: cover;
  background: transparent;
}

body:not(.has-background-video) .background-video,
body:not(.has-background-video) .video-shade { display: none; }

.video-shade {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(5 5 5 / 20%), rgb(5 5 5 / 43%));
}

.site-logo {
  position: fixed;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 50%));
  animation: logo-enter .45s ease-out both;
}

.site-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.profile {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(660px, 100%);
  flex-direction: column;
  align-items: center;
  padding: 50px 48px 83px;
  border: 0;
  border-radius: 28px;
  background: rgb(18 18 18 / 6%);
  box-shadow: 0 24px 70px rgb(0 0 0 / 16%);
  text-align: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.profile[hidden] { display: none !important; }
.page-stack.is-ready .profile:not([hidden]) { animation: profile-arrive .55s cubic-bezier(.2, .75, .25, 1) both; }

.avatar-wrap { position: relative; width: 108px; height: 108px; margin-bottom: 18px; }
.avatar,
.avatar-fallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar { display: none; border: 1px solid rgb(255 255 255 / 22%); }
.avatar-fallback {
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 14%);
  background: #17171b;
  color: #e5e5e8;
  font-size: 40px;
  font-weight: 600;
}

.status-dot {
  position: absolute;
  right: 1px;
  bottom: 2px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 3px solid #111116;
  border-radius: 50%;
  background: #68686d;
}

.status-dot.online,
.status-dot.idle,
.status-dot.dnd { width: 22px; height: 22px; border: 0; background-color: transparent; }
.status-dot.dnd { filter: none; }
.status-dot.online { background-image: url("assets/status-online.webp"); background-position: center; background-size: contain; background-repeat: no-repeat; }
.status-dot.idle { background-image: url("assets/status-idle.webp"); background-position: center; background-size: contain; background-repeat: no-repeat; }
.status-dot.dnd { background: transparent url("assets/dnd-icon.webp") center / contain no-repeat; }

.identity { display: grid; width: 100%; grid-template-columns: 1fr auto 1fr; align-items: center; }
h1 { grid-column: 2; justify-self: center; }
.badges { grid-column: 3; justify-self: start; margin-left: 9px; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); font-weight: 600; letter-spacing: -.045em; }
.badges { display: flex; align-items: center; gap: 4px; }
.badge { display: grid; width: 17px; height: 17px; place-items: center; color: #d7d8df; font-size: 12px; line-height: 1; cursor: default; }
.badge:hover { color: #fff; }

.presence { display: flex; width: 100%; height: 17px; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; color: #e1e0e6; font-size: 12px; }
.presence[hidden] { display: none !important; }
.presence-pulse { width: 7px; height: 7px; border-radius: 50%; background: #777; }
.presence-pulse.online { background: #23a55a; }
.presence-pulse.idle { background: #f0b232; }
.presence-pulse.dnd { background: #f23f43; }

.links { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 36px; }
.link {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 19px;
  background: rgb(255 255 255 / 11%);
  box-shadow: 0 5px 18px rgb(0 0 0 / 12%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.link:hover { transform: translateY(-3px); background: rgb(255 255 255 / 19%); }
.link svg { display: block; width: 25px; height: 25px; fill: #f7f7fa; filter: drop-shadow(0 0 8px rgb(255 255 255 / 28%)); }
.instagram-link svg { width: 29px; height: 29px; filter: drop-shadow(0 0 10px rgb(255 255 255 / 48%)); }
.link .steam-logo-img { display: block; width: 35px; height: 35px; object-fit: contain; filter: drop-shadow(0 0 8px rgb(255 255 255 / 38%)); }
.footer { display: flex; width: 100%; align-items: center; gap: 7px; margin-top: 35px; color: #f3f3f6; font-size: 13px; text-align: left; }
.visitor-icon { display: block; width: 18px; height: 18px; fill: currentColor; }

.music-bar {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(660px, 100%);
  min-height: 88px;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 19px;
  background: rgb(18 18 18 / 6%);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  visibility: hidden;
}
.music-bar[hidden] { display: none !important; }
.page-stack.is-ready .music-bar:not([hidden]) { visibility: visible; animation: music-arrive .55s cubic-bezier(.2, .75, .25, 1) both; }
.music-cover { display: block; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 12px; object-fit: cover; }
.music-details { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 10px; }
.music-title { overflow: hidden; color: #fff; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.music-timeline { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 10px; color: rgb(255 255 255 / 82%); font-size: 12px; font-variant-numeric: tabular-nums; }
.music-track { height: 2px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / 36%); }
.music-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #fff; }

@media (max-width: 560px) {
  body { padding: 20px 16px; }
  .profile { padding: 42px 22px 72px; border-radius: 23px; }
  .avatar-wrap { width: 92px; height: 92px; }
  .links { gap: 11px; margin-top: 30px; }
  .link { width: 51px; height: 51px; border-radius: 17px; }
  .link svg { width: 23px; height: 23px; }
  .instagram-link svg { width: 27px; height: 27px; }
  .link .steam-logo-img { width: 32px; height: 32px; }
  .footer { margin-top: 28px; }
  .page-stack { gap: 20px; }
  .music-bar { width: 100%; min-height: 78px; gap: 11px; padding: 9px; border-radius: 16px; }
  .music-cover { width: 56px; height: 56px; flex-basis: 56px; border-radius: 10px; }
  .music-details { gap: 8px; }
  .music-title { font-size: 13px; }
  .music-timeline { gap: 7px; font-size: 11px; }
}

@keyframes profile-arrive {
  from { opacity: 0; transform: translateY(14px) scale(.975); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes music-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page-stack.is-ready .profile:not([hidden]),
  .page-stack.is-ready .music-bar:not([hidden]) { animation: none; }
  .link { transition: none; }
}
.sound-panel {
  position: fixed;
  z-index: 3;
  top: 20px;
  left: 20px;
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: rgb(18 18 18 / 6%);
  box-shadow: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: width .25s ease, background .25s ease;
}
.sound-panel[hidden] { display: none !important; }
.sound-panel:hover,
.sound-panel:has(:focus-visible) { width: 188px; background: rgb(18 18 18 / 6%); }
.sound-panel:hover { width: 188px; background: rgb(18 18 18 / 6%); }
.sound-toggle {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f7f7fa;
  cursor: pointer;
}
.sound-toggle svg { width: 27px; height: 27px; overflow: visible; }
.speaker-shape { fill: currentColor; }
.sound-waves,
.mute-slash { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-waves { display: none; }
.sound-panel.sound-on .sound-waves { display: block; }
.sound-panel.sound-on .mute-slash { display: none; }
.volume-slider {
  position: absolute;
  top: 28px;
  right: 10px;
  left: 64px;
  width: auto;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background: rgb(255 255 255 / 42%);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .25s;
}
.sound-panel:hover .volume-slider,
.sound-panel:has(:focus-visible) .volume-slider { opacity: 1; visibility: visible; transition-delay: 0s; }
.sound-panel:hover .volume-slider { opacity: 1; visibility: visible; transition-delay: 0s; }
.volume-slider::-webkit-slider-thumb { width: 11px; height: 11px; appearance: none; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgb(255 255 255 / 40%); }
.volume-slider::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgb(255 255 255 / 40%); }
@media(max-width:560px) {
  .sound-panel { top: 14px; left: 14px; width: 56px; height: 56px; border-radius: 16px; }
  .sound-panel:hover, .sound-panel:has(:focus-visible) { width: 174px; }
  .sound-toggle { top: 5px; left: 5px; width: 46px; height: 46px; border-radius: 14px; }
  .sound-toggle svg { width: 25px; height: 25px; }
  .volume-slider { top: 26px; left: 60px; right: 10px; }
}
body.has-background-video .sound-panel:hover,
body.has-background-video .sound-panel:focus-within { background: rgb(18 18 18 / 6%); }



.home-panel { position: fixed; z-index: 3; bottom: max(20px, env(safe-area-inset-bottom)); left: max(20px, env(safe-area-inset-left)); display: grid; width: 60px; height: 60px; place-items: center; padding: 0; border: 0; border-radius: 16px; background: rgb(18 18 18 / 6%); box-shadow: none; color: #f7f7fa; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s ease; }
.home-panel:hover, .home-panel:focus-visible { background: rgb(18 18 18 / 6%); }
.home-panel:focus-visible { outline: 1px solid rgb(255 255 255 / 18%); outline-offset: 2px; }
.home-panel svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .home-panel { bottom: max(14px, env(safe-area-inset-bottom)); left: max(14px, env(safe-area-inset-left)); width: 56px; height: 56px; border-radius: 16px; } .home-panel svg { width: 25px; height: 25px; } }