:root {
  --accent: #dc2626;
  --accent-2: #ff8a3d;
  --bg: #050505;
  --text: #f4f4f5;
  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --radius: 16px;
  --glass-blur: 16px;
  --glass-alpha: 0.55;

  --surface: color-mix(in srgb, var(--bg) 55%, #1b1b21);
  --glass: color-mix(in srgb, var(--surface) calc(var(--glass-alpha) * 100%), transparent);
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 18%, transparent);
  --muted: color-mix(in srgb, var(--text) 64%, transparent);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-float: 0 28px 70px -24px rgb(0 0 0 / 0.75), 0 8px 20px -8px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scrollbar-color: color-mix(in srgb, var(--accent) 50%, transparent) transparent; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

button { font: inherit; color: inherit; cursor: pointer; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { flex: none; display: block; }

.muted { color: var(--muted); }

/* ---------- Enter screen ---------- */
.enter {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 50% at 50% 50%, color-mix(in srgb, var(--accent) 16%, #000), #000 70%);
  cursor: pointer;
  transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.enter.is-leaving { opacity: 0; filter: blur(18px); transform: scale(1.08); pointer-events: none; }

.enter__button {
  display: grid;
  justify-items: center;
  gap: 18px;
  border: 0;
  background: none;
  padding: 2rem;
}

/* The whole screen is the button; the breathing text already shows it is live. */
.enter__button:focus-visible { outline: none; }

.enter__name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 48px color-mix(in srgb, var(--accent) 70%, transparent);
}

.enter__text {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: lowercase;
  color: var(--muted);
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: 0.35; } }

/* ---------- Background ---------- */
.background { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.background canvas,
.background img,
.background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background img,
.background video { filter: blur(var(--bg-blur, 0)); transform: scale(1.06); }

.background.has-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / var(--bg-dim, 0.4));
}

.glow span {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  background: var(--bg-color, var(--accent));
  filter: blur(110px);
  opacity: 0.22;
  animation: drift 22s ease-in-out infinite alternate;
}

.glow span:nth-child(1) { top: -15vmax; left: -10vmax; }
.glow span:nth-child(2) { bottom: -20vmax; right: -10vmax; animation-duration: 28s; }
.glow span:nth-child(3) { top: 30%; left: 40%; width: 25vmax; height: 25vmax; animation-duration: 18s; opacity: 0.12; }

@keyframes drift { to { transform: translate(10vmax, 8vmax) scale(1.15); } }

/* ---------- Cursor ---------- */
html.has-cursor,
html.has-cursor * { cursor: none !important; }

.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; transition: opacity 0.3s; }

.cursor.is-away { opacity: 0; }

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  transform: translate(calc(var(--dot-x) - 50%), calc(var(--dot-y) - 50%));
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  transform: translate(calc(var(--ring-x) - 50%), calc(var(--ring-y) - 50%)) scale(var(--ring-scale, 1));
  transition: background 0.25s, border-color 0.25s;
}

.cursor.is-hovering .cursor__ring { --ring-scale: 1.55; background: color-mix(in srgb, var(--accent) 14%, transparent); }

.cursor.is-pressed .cursor__ring { --ring-scale: 0.8; }

.cursor[data-style='dot'] .cursor__ring,
.cursor[data-style='image'] .cursor__ring,
.cursor[data-style='image'] .cursor__dot { display: none; }

/* Your own cursor picture: its top-left corner is the point that clicks. */
.cursor__image {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cursor-size, 32px);
  height: var(--cursor-size, 32px);
  object-fit: contain;
  transform: translate(var(--dot-x), var(--dot-y)) scale(var(--press-scale, 1));
  transform-origin: top left;
  transition: transform 0.08s;
}

.cursor.is-pressed .cursor__image { --press-scale: 0.88; }

.cursor-trail { position: fixed; inset: 0; z-index: 99; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Layout ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 0 16px 120px; }

.banner {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  /* Your chosen height on wide screens, shorter on phones so the picture stays sharp. */
  height: min(var(--banner-height, 240px), 46vw);
  min-height: 120px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Profile ---------- */
.profile {
  --avatar: clamp(104px, 12vw, 152px);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: calc(var(--avatar) / -2);
  padding-left: clamp(0px, 3vw, 40px);
  position: relative;
}

.avatar {
  position: relative;
  flex: none;
  width: var(--avatar);
  height: var(--avatar);
}

.avatar__img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  background: var(--surface);
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--accent) 55%, transparent);
}

.avatar__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.avatar__decoration {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}

.avatar__status {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 24%;
  height: 24%;
  border: 5px solid var(--bg);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #80848e;
  flex: none;
}

.status-dot--online { background: #23a55a; }
.status-dot--idle { background: #f0b232; }
.status-dot--dnd { background: #f23f43; }

.identity { flex: 0 1 auto; min-width: 0; padding-bottom: 4px; display: grid; gap: 6px; }

.identity__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }

/* Name and its effects */
.name {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

/* Badges and tooltips */
.badges { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }

.badge {
  --badge: var(--accent);
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--badge);
  background: color-mix(in srgb, var(--badge) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge) 38%, transparent);
  transition: transform 0.3s var(--ease-out);
}

.badge:hover { transform: translateY(-2px); }

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

[data-tip] { position: relative; }

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: #0d0d10;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
  z-index: 10;
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.tagline {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  min-height: 1.55em;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

.live-chip .icon { color: #1db954; }

.live-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, transform 0.35s var(--ease-out);
}

.social:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-3px); }

.views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* ---------- Content ---------- */
.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  margin-top: 44px;
  align-items: start;
}

.about { grid-column: 1; max-width: 540px; animation: rise 0.6s var(--ease-out) both; }

.about__heading { margin: 0; font-size: 1.5rem; }

.about__heading--next { margin-top: 28px; }

.about__toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}

.about__arrow {
  display: inline-block;
  color: var(--accent-visible, var(--accent));
  transition: transform 0.45s var(--ease-out);
}

.about__toggle:hover .about__arrow { transform: translateX(4px); }

/* Open shows the arrow pointing down at the text; folded points it right. */
.about__toggle[aria-expanded='true'] .about__arrow { transform: rotate(90deg); }

.about__toggle[aria-expanded='true']:hover .about__arrow { transform: rotate(90deg) translateX(4px); }

.about__body {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 12px;
  transition: grid-template-rows 0.5s var(--ease-out), opacity 0.35s ease, margin-top 0.5s var(--ease-out);
}

.about__body > .prose { overflow: hidden; min-height: 0; }

.about__body.is-folded { grid-template-rows: 0fr; opacity: 0; margin-top: 0; }

.prose { color: color-mix(in srgb, var(--text) 84%, transparent); max-width: 68ch; }

.prose p { margin: 0 0 0.9em; }

.prose p:last-child { margin-bottom: 0; }

/* **bold** in your texts: full text colour so it stands out from the softer body text. */
.prose strong { color: var(--text); font-weight: 700; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* Stage: panel + link buttons. Pinned right so it stays put while About is closed. */
.stage { grid-column: 2; display: flex; align-items: flex-start; gap: 18px; }

.links { display: flex; flex-direction: column; gap: 12px; width: 300px; }

.is-tilt {
  transform: perspective(700px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.2s var(--ease-out);
}

.link {
  --item-accent: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur));
  text-align: left;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-out);
}

/* Light that follows the pointer across the button. */
.link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--shine-x, 50%) var(--shine-y, 50%), color-mix(in srgb, var(--item-accent) 22%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.link:hover { border-color: color-mix(in srgb, var(--item-accent) 55%, transparent); }

.link:hover::before { opacity: 1; }

.link[aria-expanded='true'] {
  border-color: var(--item-accent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--item-accent) 22%, var(--surface)), var(--glass));
}

.link__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--item-accent) 20%, transparent);
  color: var(--item-accent);
}

.link[aria-expanded='true'] .link__icon { background: var(--item-accent); color: var(--item-ink, #fff); }

.link__text { position: relative; display: grid; min-width: 0; }

.link__label { font-weight: 700; font-size: 1.05rem; }

.link__sub { font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.link__end { position: relative; margin-left: auto; display: flex; color: var(--muted); }

/* Equalizer bars, used on the Spotify button and in the queue. */
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }

.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--item-accent, var(--accent)); }

.is-playing .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; }
.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }

@keyframes eq { from { height: 3px; } to { height: 14px; } }

/* ---------- Panel ---------- */
.panel {
  --item-accent: var(--accent);
  position: relative;
  width: 400px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  box-shadow: var(--shadow-float), inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
  animation: panel-in 0.55s var(--ease-out) both;
}

/* The panel's colour edge along the top. */
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--item-accent), transparent);
  z-index: 2;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateX(28px) scale(0.98); filter: blur(10px); }
}

.panel__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px 18px;
}

.panel__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--item-accent);
  color: var(--item-ink, #fff);
  flex: none;
}

.panel__heading { min-width: 0; flex: 1; }

.panel__title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }

.panel__subtitle { margin: 0; font-size: 0.82rem; color: var(--muted); }

.panel__body { position: relative; padding: 4px 18px 20px; }

.panel__about {
  padding: 18px 18px 20px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--item-accent) 7%, transparent);
}

.panel__subheading { margin: 0 0 6px; font-size: 0.95rem; font-weight: 700; color: var(--text); }

.panel__about .prose { font-size: 0.93rem; }

.panel__actions { display: flex; gap: 10px; margin-top: 18px; }

.panel__actions .btn { flex: 1; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, transform 0.15s;
}

.icon-btn:hover { color: var(--text); background: var(--line); }

.icon-btn:active { transform: scale(0.9); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--item-accent, var(--accent)); color: var(--item-ink, #fff); }

.btn--primary:hover { filter: brightness(1.1); }

.btn--ghost { background: color-mix(in srgb, var(--text) 6%, transparent); border-color: var(--line); }

.btn--ghost:hover { border-color: var(--line-strong); }

.btn.is-done { border-color: #23a55a; color: #4ade80; }

.note { margin: 0; color: var(--muted); }

/* Discord card */
.dc__banner {
  height: 76px;
  margin: 0 -18px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--item-accent) 90%, #fff 10%), transparent 60%),
    linear-gradient(135deg, var(--item-accent), color-mix(in srgb, var(--item-accent) 35%, #000));
}

.dc__head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -42px; }

.dc__avatar { position: relative; width: 88px; height: 88px; }

.dc__avatar > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--surface) 100%, #000);
  background: var(--surface);
  object-fit: cover;
}

.dc__decoration { position: absolute; inset: -9%; width: 118%; height: 118%; pointer-events: none; }

.dc__avatar .status-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 24px;
  height: 24px;
  border: 5px solid var(--surface);
}

.dc__platforms { display: flex; gap: 6px; color: var(--muted); padding-bottom: 6px; }

.dc__name { margin: 12px 0 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

.dc__user { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

.dc__status { padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--line); color: var(--text); }
.dc__status--online { background: rgb(35 165 90 / 0.18); color: #4ade80; }
.dc__status--idle { background: rgb(240 178 50 / 0.18); color: #fbbf24; }
.dc__status--dnd { background: rgb(242 63 67 / 0.18); color: #f87171; }

.dc__custom {
  position: relative;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: 0.92rem;
}

.dc__section { margin-top: 18px; }

.activities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.activity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.activity__art { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }

.activity__art--empty { display: grid; place-items: center; background: var(--line); color: var(--muted); }

.activity__text { min-width: 0; flex: 1; font-size: 0.86rem; display: grid; gap: 1px; }

.activity__text p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.activity__verb { font-size: 0.75rem; font-weight: 600; color: var(--item-accent); }

.activity__name { font-weight: 700; font-size: 0.98rem; }

.track-bar {
  display: block;
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--text) var(--progress, 0%), var(--line) var(--progress, 0%));
}

.empty { display: grid; justify-items: center; gap: 4px; padding: 18px 8px 4px; text-align: center; }

.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -46px;
  margin-bottom: 8px;
  border-radius: 50%;
  border: 5px solid var(--surface);
  background: var(--item-accent);
  color: var(--item-ink, #fff);
}

.empty__title { margin: 0; font-weight: 700; font-size: 1.05rem; }

.empty .muted { margin: 0; font-size: 0.9rem; max-width: 32ch; }

.skeleton {
  height: 14px;
  margin-top: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--line) 25%, var(--line-strong) 50%, var(--line) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton--avatar { width: 88px; height: 88px; margin-top: -42px; border-radius: 50%; border: 5px solid var(--surface); }

.skeleton--short { width: 55%; }

@keyframes shimmer { to { background-position: -150% 0; } }

/* Music player */
.music { position: relative; display: grid; gap: 16px; }

.music__backdrop {
  position: absolute;
  inset: -80px -18px auto;
  height: 340px;
  background-size: cover;
  background-position: center;
  filter: blur(42px) saturate(1.5);
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  pointer-events: none;
}

.music > :not(.music__backdrop) { position: relative; }

.music__now { display: grid; justify-items: center; gap: 14px; text-align: center; }

.music__cover {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 24px 44px -16px rgb(0 0 0 / 0.75);
  transform: scale(0.92);
  transition: transform 0.6s var(--ease-out);
}

.music.is-playing .music__cover { transform: scale(1); }

.music__meta { min-width: 0; width: 100%; }

.music__meta p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.music__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }

.music__artist { color: var(--muted); font-size: 0.92rem; }

.music__bars { width: 100%; height: 34px; display: block; }

.music__progress {
  display: grid;
  grid-template-columns: 3.2em 1fr 3.2em;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.music__progress span:last-child { text-align: right; }

.range {
  --fill: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}

.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--item-accent) var(--fill), var(--line-strong) var(--fill));
}

.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-strong); }

.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--item-accent); }

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.5);
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}

.range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

.range:hover::-webkit-slider-thumb,
.range:focus-visible::-webkit-slider-thumb { transform: scale(1); }

.music__controls { display: flex; justify-content: center; align-items: center; gap: 10px; }

.music__controls .icon-btn { width: 44px; height: 44px; color: var(--text); }

.icon-btn--toggle { position: relative; color: var(--muted) !important; }

.icon-btn--toggle[aria-pressed='true'] { color: var(--item-accent) !important; }

.icon-btn--toggle[aria-pressed='true']::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.music__controls .icon-btn--play {
  width: 62px;
  height: 62px;
  margin: 0 6px;
  background: var(--item-accent);
  color: var(--item-ink, #000);
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--item-accent) 70%, transparent);
}

.music__controls .icon-btn--play:hover { background: var(--item-accent); filter: brightness(1.1); transform: scale(1.04); }

.music__volume { display: flex; align-items: center; justify-content: center; gap: 6px; }

.music__volume .range { max-width: 170px; }

.music__heading { margin: 6px 0 -6px; font-size: 0.95rem; font-weight: 700; }

.queue { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; max-height: 260px; overflow-y: auto; }

.queue__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  transition: background 0.2s;
}

.queue__item:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

.queue__item[aria-current='true'] { background: color-mix(in srgb, var(--item-accent) 14%, transparent); }

.queue__item[aria-current='true'] strong { color: var(--item-accent); }

.queue__index { display: grid; place-items: center; width: 22px; flex: none; }

.queue__number { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.queue__index .eq { display: none; }

.queue__item.is-playing .queue__number { display: none; }

.queue__item.is-playing .eq { display: flex; }

.queue__item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; }

.queue__text { display: grid; min-width: 0; font-size: 0.88rem; }

.queue__text strong,
.queue__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.queue__text span { color: var(--muted); font-size: 0.8rem; }

.live-track__label { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: #1db954; }

.live-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: rgb(29 185 84 / 0.1);
  border: 1px solid rgb(29 185 84 / 0.3);
}

.live-hero__cover { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.7); }

.live-hero__text { display: grid; gap: 2px; min-width: 0; }

.live-hero__text p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.live-hero__song { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }

.live-hero__progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.live-hero__bar {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1db954 var(--progress, 0%), var(--line-strong) var(--progress, 0%));
}

.btn--spotify { justify-self: start; margin-top: 10px; padding: 8px 14px; background: #1db954; color: #000; font-size: 0.88rem; }

.btn--spotify:hover { filter: brightness(1.1); }

@media (max-width: 420px) {
  .live-hero { grid-template-columns: 1fr; }
  .live-hero__cover { width: 100%; height: auto; aspect-ratio: 1; }
}

.pulse { width: 7px; height: 7px; border-radius: 50%; background: #1db954; animation: pulse 1.6s ease-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(29 185 84 / 0.6); }
  100% { box-shadow: 0 0 0 8px rgb(29 185 84 / 0); }
}

.panel__more { margin-top: 14px; width: 100%; }

/* ---------- Big sections ---------- */
.sections { display: grid; gap: 28px; margin-top: 72px; }

.feature {
  --item-accent: var(--accent);
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--shadow-float), inset 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent);
  scroll-margin-top: 24px;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--item-accent), transparent);
}

/* After Read more: a short glow so the eye lands on the right section. */
.feature.is-flashing { animation: flash 1.4s var(--ease-out); }

@keyframes flash {
  0%, 30% { box-shadow: var(--shadow-float), 0 0 0 2px var(--item-accent); }
}

.feature__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--item-accent);
  color: var(--item-ink, #fff);
  flex: none;
}

.feature__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.feature__subtitle { margin: 2px 0 0; color: var(--muted); }

.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(20px, 4vw, 48px); align-items: start; }

.feature__grid--single { grid-template-columns: minmax(0, 520px); }

.feature__bio { font-size: 1.02rem; line-height: 1.7; }

/* Only in the dashboard preview: shows where the bio will go. */
.feature__hint {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

.feature__content { min-width: 0; }

.extra__image { width: 100%; border-radius: 14px; display: block; box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.7); }

/* Discord profile, in Discord's own layout with this site's look */
.dcx {
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 40%, #111214);
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.8);
}

.dcx__banner {
  height: 128px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--item-accent) 85%, #fff 15%), transparent 60%),
    linear-gradient(135deg, var(--item-accent), color-mix(in srgb, var(--item-accent) 30%, #000));
  background-size: cover;
  background-position: center;
}

.dcx__top { position: relative; display: flex; align-items: flex-end; gap: 12px; padding: 0 18px; margin-top: -56px; }

.dcx__avatar { position: relative; width: 112px; height: 112px; flex: none; }

.dcx__avatar > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 7px solid color-mix(in srgb, var(--bg) 40%, #111214);
  background: #111214;
}

.dcx__avatar .status-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  border: 6px solid color-mix(in srgb, var(--bg) 40%, #111214);
}

/* Custom status as a speech bubble next to the picture, like Discord. */
.dcx__bubble {
  position: relative;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 9%, #111214);
  font-size: 0.88rem;
  max-width: 220px;
}

.dcx__bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  bottom: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: inherit;
}

.dcx__body { padding: 12px 18px 18px; }

.dcx__name { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.dcx__platform { display: inline-flex; color: var(--muted); }

.dcx__box {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.28);
}

.dcx__box:empty { display: none; }

.dcx__section { display: grid; gap: 8px; }

.dcx__label { margin: 0; font-size: 0.78rem; font-weight: 700; color: var(--muted); }

.dcx__since { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.92rem; }

.dcx__since .icon { color: var(--item-accent); }

.dcx .muted { margin: 0; font-size: 0.9rem; }

/* GamesFlex store card */
.store__hero { display: flex; align-items: center; gap: 16px; padding-top: 6px; }

.store__logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--item-accent), color-mix(in srgb, var(--item-accent) 40%, #000));
  color: var(--item-ink, #000);
  box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--item-accent) 80%, transparent);
  flex: none;
}

.store__name { margin: 0; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }

.store__domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.store__role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--item-accent) 14%, transparent);
  color: var(--item-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.store__logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.store__hero { flex-wrap: wrap; }

.store__hero .store__role { margin: 0; }

.store--big .store__logo { width: 84px; height: 84px; border-radius: 22px; }

.store--big .store__name { font-size: 2rem; }

.showcase { display: grid; gap: 10px; margin-top: 20px; }

.showcase__main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 20px 44px -20px rgb(0 0 0 / 0.8);
}

.showcase__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }

.showcase__thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: none;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.showcase__thumb:hover { opacity: 1; }

.showcase__thumb[aria-pressed='true'] { opacity: 1; border-color: var(--item-accent); }

.showcase__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Mini player ---------- */
.mini {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 4px;
  width: min(340px, calc(100vw - 40px));
  padding: 8px 8px 8px 8px;
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  box-shadow: var(--shadow-float), inset 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
  animation: rise 0.5s var(--ease-out) both;
}

.mini__open { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; }

.mini__cover { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; animation: spin 8s linear infinite paused; }

.mini.is-playing .mini__cover { animation-play-state: running; }

@keyframes spin { to { transform: rotate(360deg); } }

.mini__text { display: grid; min-width: 0; font-size: 0.85rem; }

.mini__text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini__text span { color: var(--muted); font-size: 0.78rem; }

.mini .icon-btn { color: var(--text); }

.mini__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) var(--progress, 0%), transparent var(--progress, 0%));
}

/* ---------- Small screens: buttons first, the open panel below them ---------- */
@media (max-width: 900px) {
  .content { grid-template-columns: 1fr; gap: 28px; }
  .about, .stage { grid-column: 1; }
  .stage { flex-direction: column; align-items: stretch; }
  .links { order: -1; width: 100%; }
  .panel { width: 100%; }
  .about { max-width: none; }
  .feature__grid,
  .feature__grid--single { grid-template-columns: 1fr; }
  .sections { margin-top: 48px; }
}

@media (max-width: 560px) {
  .profile { padding-left: 12px; }
  .identity { flex-basis: 100%; }
  .mini { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
