:root {
  --bg:#04050a;
  --card:#0c0f1a;
  --card-alt:#101326;
  --accent:#7c5dff;
  --accent-soft:#a78bfa;
  --text:#f5f5fb;
  --muted:#9aa0b4;
  --pill:#1c2238;
  --border:rgba(255,255,255,0.05);
  --shadow:0 10px 35px rgba(0,0,0,0.45);
}
* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}
[hidden] {
  display:none !important;
}
html {
  overflow-y:scroll;
  scrollbar-width:none;
}
html::-webkit-scrollbar {
  display:none;
}
body {
  font-family:"Space Grotesk",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  overflow-y:scroll;
  scrollbar-width:none;
}
body::-webkit-scrollbar {
  display:none;
}
img {
  max-width:100%;
  display:block;
}
.background-texture {
  position:fixed;
  inset:0;
  background:radial-gradient(circle at 20% 20%,rgba(124,93,255,0.2),transparent 55%),radial-gradient(circle at 80% 0,rgba(0,209,255,0.2),transparent 50%),radial-gradient(circle at 50% 100%,rgba(255,255,255,0.05),transparent 60%);
  filter:blur(40px);
  pointer-events:none;
  z-index:0;
}
.layout {
  position:relative;
  z-index:1;
  width:min(1200px,90vw);
  margin:0 auto;
  padding:60px 0 80px;
  display:flex;
  flex-direction:column;
  gap:32px;
}
.card {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}
.profile {
  padding:0;
  overflow:hidden;
  position:relative;
}
.profile-banner {
  height:140px;
  background:linear-gradient(135deg,#181b2c,#0f101c);
  background-size:cover;
  background-position:center;
}
.profile-body {
  display:flex;
  gap:24px;
  padding:24px;
  align-items:center;
}
.contact-link {
  position:absolute;
  top:16px;
  right:16px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card-alt);
  color:var(--text);
  font-weight:500;
  font-size:0.9rem;
  text-decoration:none;
  transition:transform 0.2s ease,box-shadow 0.2s ease,background 0.2s ease;
}
.contact-link:hover {
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(0,0,0,0.35);
}
.avatar-wrapper {
  width:120px;
  height:120px;
  border-radius:32px;
  background:var(--card-alt);
  padding:6px;
  box-shadow:var(--shadow);
  position:relative;
}
.avatar {
  width:100%;
  height:100%;
  border-radius:24px;
  object-fit:cover;
}
.avatar-wrapper .avatar-presence {
  position:absolute;
  bottom:10px;
  right:10px;
  width:22px;
  height:22px;
  border-radius:50%;
  border:4px solid var(--card);
  box-shadow:0 0 12px rgba(0,0,0,0.5);
}
.profile-meta {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.name-line {
  display:flex;
  align-items:center;
  gap:12px;
}
.name-line h1 {
  font-size:2.2rem;
  font-weight:600;
}
.pill {
  background:var(--pill);
  color:var(--muted);
  border-radius:999px;
  padding:6px 14px;
  font-size:0.85rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
}
.muted {
  color:var(--muted);
}
.small {
  font-size:0.85rem;
}
.bio {
  font-size:1rem;
  line-height:1.5;
}
.profile-stats {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  font-size:0.95rem;
}
.presence-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:12px;
  padding:12px 16px;
  background:var(--card-alt);
  border-radius:18px;
  border:1px solid var(--border);
}
.presence-status {
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:500;
}
.presence-dot {
  width:12px;
  height:12px;
  border-radius:50%;
  background-color:var(--card-alt);
  background-image:url("/media/discord-statusses/offline.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  box-shadow:0 0 10px rgba(0,0,0,0.35);
}
.presence-dot[data-status="online"] {
  background-image:url("/media/discord-statusses/online.png");
}
.presence-dot[data-status="idle"] {
  background-image:url("/media/discord-statusses/idle.png");
}
.presence-dot[data-status="dnd"] {
  background-image:url("/media/discord-statusses/dnd.png");
}
.presence-dot[data-status="offline"],
.presence-dot[data-status="invisible"],
.presence-dot[data-status="unknown"] {
  background-image:url("/media/discord-statusses/offline.png");
}
.presence-activity {
  text-decoration:none;
  color:var(--muted);
  transition:color 0.2s ease;
}
.presence-activity:hover {
  color:var(--text);
}
.presence-activity[aria-disabled="true"] {
  pointer-events:none;
  opacity:0.6;
}
.grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}
.card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.card-header h2 {
  font-size:1.25rem;
  font-weight:600;
}
.icon-button {
  width:42px;
  height:42px;
  border-radius:14px;
  background:var(--card-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  opacity:0.9;
  transition:opacity 0.2s ease,transform 0.2s ease;
}
.icon-button[aria-disabled="true"] {
  pointer-events:none;
  opacity:0.3;
}
.icon-button:hover {
  opacity:1;
  transform:translateY(-2px);
}
.spotify-now {
  display:flex;
  gap:18px;
  align-items:center;
}
.spotify-now img {
  width:96px;
  height:96px;
  border-radius:18px;
  object-fit:cover;
  background:var(--card-alt);
}
.spotify-info {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.spotify-playlist {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:18px;
}
.playlist-toggle {
  align-self:flex-start;
  padding:10px 18px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--card-alt);
  color:var(--text);
  font-weight:500;
  cursor:pointer;
  transition:transform 0.2s ease,box-shadow 0.2s ease,background 0.2s ease;
}
.playlist-toggle:hover {
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,0.35);
}
.playlist-toggle:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.playlist-embed {
  width:100%;
}
.playlist-modal {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(4,5,10,0.85);
  backdrop-filter:blur(10px);
  z-index:1000;
}
.playlist-modal[hidden] {
  display:none;
}
.playlist-modal-content {
  width:min(600px,90vw);
  background:var(--card);
  border-radius:24px;
  border:1px solid var(--border);
  padding:24px 24px 32px;
  box-shadow:0 25px 60px rgba(0,0,0,0.6);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.playlist-close {
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid var(--border);
  background:var(--card-alt);
  color:var(--text);
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform 0.2s ease,box-shadow 0.2s ease;
}
.playlist-close:hover {
  transform:translateY(-1px);
  box-shadow:0 10px 20px rgba(0,0,0,0.35);
}
.playlist-close:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px;
}
.title {
  font-size:1.1rem;
  font-weight:600;
}
.progress {
  width:100%;
  height:5px;
  background:rgba(255,255,255,0.08);
  border-radius:999px;
  margin:18px 0 8px;
  overflow:hidden;
}
.progress-fill {
  height:100%;
  background:linear-gradient(90deg,var(--accent),var(--accent-soft));
  width:0;
  transition:width 0.3s ease;
}
.progress-times {
  display:flex;
  justify-content:space-between;
  font-size:0.85rem;
  color:var(--muted);
}
.list {
  display:flex;
  flex-direction:column;
  gap:14px;
}
#lastfm-card .list {
  max-height:320px;
  min-height:0;
  overflow-y:auto;
  padding-right:8px;
}
#lastfm-card .list::-webkit-scrollbar {
  width:6px;
}
#lastfm-card .list::-webkit-scrollbar-thumb {
  background:rgba(255,255,255,0.12);
  border-radius:999px;
}
.scrobble {
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.04);
}
.scrobble:last-child {
  border-bottom:none;
}
.scrobble-art {
  width:56px;
  height:56px;
  border-radius:14px;
  object-fit:cover;
  background:var(--card-alt);
}
.scrobble-info {
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.scrobble-meta {
  display:flex;
  gap:12px;
  font-size:0.82rem;
  color:var(--muted);
  align-items:center;
}
.badge {
  background:var(--pill);
  color:var(--accent-soft);
  border-radius:999px;
  padding:2px 10px;
  font-size:0.75rem;
}
.weather-main span {
  font-size:2.4rem;
  font-weight:600;
}
.weather-details {
  display:flex;
  gap:24px;
  margin:12px 0 8px;
}
.weather-details p {
  font-size:1rem;
}
.links-card .links-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:16px;
}
.link-tile {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background:var(--card-alt);
  border-radius:18px;
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  transition:transform 0.2s ease,box-shadow 0.2s ease;
}
.link-tile img,
.link-tile svg {
  width:28px;
  height:28px;
  flex-shrink:0;
}
.link-tile.disabled {
  opacity:0.4;
  pointer-events:none;
}
.link-tile:hover {
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(0,0,0,0.35);
}
.status-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 4px;
  color:var(--muted);
  font-size:0.9rem;
}
.footer {
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0 4px 40px;
  color:var(--muted);
  font-size:0.9rem;
}
.footer p {
  margin:0;
}
.pc-firefly-layer {
  position:fixed;
  inset:0;
  pointer-events:none;
  overflow:hidden;
  z-index:500;
}
.pc-firefly {
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  background:hsl(var(--hue),80%,70%);
  box-shadow:0 0 20px rgba(255,255,255,0.4);
  opacity:0.85;
  transform:translate3d(0,0,0) scale(0.5);
  transition:transform 0.9s ease,opacity 0.9s ease;
}
.pc-firefly.active {
  opacity:0;
  transform:translate3d(var(--tx,0),var(--ty,0),0) scale(1.25);
}
@media (max-width:768px) {
  .profile-body {
    flex-direction:column;
    align-items:flex-start;
  }
  .avatar-wrapper {
    width:96px;
    height:96px;
  }
  .contact-link {
    top:12px;
    right:12px;
    padding:8px 14px;
    font-size:0.85rem;
  }
  .grid {
    grid-template-columns:1fr;
  }
  .weather-details {
    flex-direction:column;
  }
}