:root {
  --bg: #07070a;
  --panel: rgba(16, 16, 22, .72);
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f6;
  --muted: #a1a1ad;
  --dim: #6b6b78;
  --c: #a78bfa;            /* cor do cria selecionado (muda via JS) */
  --c-soft: rgba(167, 139, 250, .18);
  --online: #23a55a;
  --idle: #f0b232;
  --dnd: #f23f43;
  --offline: #5c5e66;
  --display: "Anton", "Impact", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.mono { font-family: var(--mono); }
::selection { background: var(--c); color: #000; }

/* ============ ENTRADA ============ */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #050506;
  cursor: pointer;
  transition: clip-path .9s cubic-bezier(.7, 0, .2, 1);
  clip-path: inset(0 0 0 0);
}
.gate.gone { clip-path: inset(0 0 100% 0); pointer-events: none; }
.gate-inner { text-align: center; padding: 16px; }
.gate-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 14vw, 180px);
  line-height: .9;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  animation: gate-in 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.gate-sub {
  margin: 18px 0 34px;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--muted);
  animation: gate-in 1.1s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.gate-btn {
  padding: 14px 30px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: transparent;
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  animation: gate-in 1.1s .3s cubic-bezier(.2, .8, .2, 1) both, blink 1.6s 1.4s steps(2) infinite;
}
.gate-btn:hover { background: #fff; color: #000; animation: none; }
@keyframes gate-in { from { opacity: 0; transform: translateY(30px); } }
@keyframes blink { 50% { opacity: .35; } }

/* ============ FUNDO ============ */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.ambient-img {
  position: absolute; inset: -10%;
  background: center / cover no-repeat;
  filter: blur(50px) saturate(1.5) brightness(.55);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.1s ease;
}
.ambient-img.on { opacity: .55; }
.ambient-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 75% 40%, var(--c-soft), transparent 70%),
    linear-gradient(180deg, rgba(7, 7, 10, .3) 0%, rgba(7, 7, 10, .85) 70%, var(--bg) 100%);
  transition: background .8s;
}
.scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(3) infinite;
}
@keyframes grain {
  33% { transform: translate(-4%, 3%); }
  66% { transform: translate(3%, -2%); }
}

/* ============ TOPO ============ */
.top {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1280px; margin: 0 auto;
  padding: 22px 28px;
}
.logo {
  font-family: var(--display);
  font-size: 22px; letter-spacing: .04em;
  text-decoration: none;
  display: inline-flex; gap: 6px;
}
.logo span { color: var(--c); transition: color .6s; }
.top-meta { display: flex; gap: 8px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 10, 14, .5);
  font-size: 12px; color: var(--muted);
  backdrop-filter: blur(8px);
}
.meta-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--online); box-shadow: 0 0 8px var(--online); }

/* ============ HERÓI ============ */
.stage {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 28px 190px;
  min-height: calc(100vh - 80px);
  display: flex; align-items: center;
}
.hero {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.ghost-num {
  position: absolute; left: -12px; top: 50%;
  transform: translateY(-58%);
  font-family: var(--display);
  font-size: clamp(200px, 30vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

/* entrada animada dos blocos */
.in { animation: slide-in .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes slide-in { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } }
.in-right { animation: slide-right .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide-right { from { opacity: 0; transform: translateX(50px) rotate(2deg); } }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--c);
  transition: color .6s;
}
.label::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.name {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(54px, 8.4vw, 128px);
  line-height: .92;
  letter-spacing: -.005em;
  text-transform: uppercase;
  word-break: break-word;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
}
.name.long { font-size: clamp(44px, 6.4vw, 96px); }

.ident {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 18px;
}
.handle { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.clan {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 700;
}
.clan img { width: 16px; height: 16px; }
/* insígnias: igual ao bloco do perfil do Discord */
.badges {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px;
  padding: 3px 5px; border-radius: 8px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
}
.badges:empty { display: none; }
.badge { display: grid; place-items: center; width: 24px; height: 24px; }
.badge img { width: 22px; height: 22px; display: block; }

.custom-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 20px 0 0;
  padding: 8px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 15px; color: #e3e3e8;
}
.emoji { display: inline-block; width: 20px; height: 20px; font-size: 18px; line-height: 20px; text-align: center; object-fit: contain; }

.bio {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: 17px; line-height: 1.55;
  color: #d6d6dd;
  white-space: pre-wrap;
}

/* atividade: mesmo layout do card de atividade do Discord */
.activity {
  display: block;
  margin-top: 12px; max-width: 420px;
  padding: 12px; border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.ident + .activity, .bio + .activity, .custom-status + .activity { margin-top: 22px; }
a.activity:hover { border-color: rgba(255, 255, 255, .18); }
.act-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
  font-size: 12px; font-weight: 700; color: #dbdee1;
}
.act-head svg { width: 16px; height: 16px; }
.act-row { display: flex; gap: 12px; align-items: center; }
.act-art { position: relative; flex: 0 0 auto; width: 64px; height: 64px; }
.act-art > img:first-child, .act-art > svg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; display: block; }
.act-art.no-art { display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.act-art.no-art > svg { width: 38px; height: 38px; }
.act-small {
  position: absolute; right: -4px; bottom: -4px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid #131318; background: #131318;
  object-fit: cover;
}
.act-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.act-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-text .elapsed { color: #23a55a; font-variant-numeric: tabular-nums; }
.sp-progress { margin-top: 12px; }
.sp-bar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; transition: width 1s linear; }
.sp-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.dd-status { display: flex; align-items: center; gap: 7px; }
.st-ico { width: 13px; height: 13px; display: inline-flex; }
.st-ico svg, .status svg, .tile-dot svg { width: 100%; height: 100%; display: block; }
.device { display: inline-flex; width: 16px; height: 16px; color: var(--muted); }
.device svg { width: 100%; height: 100%; }

.stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.stat { padding: 14px 28px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.stat dd { margin: 6px 0 0; font-size: 18px; font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border: 0; border-radius: 10px;
  background: var(--c); color: #0a0a0d;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .6s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--c-soft); }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.link {
  font-family: var(--mono); font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none; color: var(--muted);
}
.link:hover { color: var(--text); border-color: var(--c); }

/* ---- Vitrine (lado direito) ---- */
.showcase { position: relative; padding: 0 0 70px; }
.frame-wrap { position: relative; }
.frame-wrap::before {
  content: "";
  position: absolute; inset: 0;
  transform: translate(16px, 16px);
  background: var(--c);
  opacity: .35;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  transition: background .6s;
}
.frame {
  position: relative;
  aspect-ratio: 16 / 10;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  overflow: hidden;
  background: #111;
}
.frame-img {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  transition: transform 6s ease;
}
.frame:hover .frame-img { transform: scale(1.06); }
.frame.nobanner .frame-img { filter: blur(22px) saturate(1.6) brightness(.8); transform: scale(1.4); }
.frame.nobanner::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 12px);
}
.frame-corner {
  position: absolute; right: 9%; top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  padding: 5px 9px; background: rgba(0, 0, 0, .55); color: #fff;
  z-index: 2;
}

.avatar-wrap {
  position: absolute; left: 6%; bottom: 0;
  width: 168px; height: 168px;
  z-index: 3;
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 7px solid var(--bg);
  background: var(--bg);
}
.deco { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; pointer-events: none; }
/* status: anel da cor do fundo em volta do ícone, igual ao Discord */
.status {
  position: absolute; right: 6px; bottom: 8px;
  width: 38px; height: 38px; padding: 7px;
  border-radius: 50%;
  background: var(--bg);
}

.plate {
  position: absolute; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  width: min(300px, 52%);
  height: 50px;
  padding: 0 14px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 20, 26, .9);
  border: 1px solid var(--line);
  z-index: 2;
}
.plate video, .plate .plate-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  pointer-events: none;
}
.plate img.mini { position: relative; width: 28px; height: 28px; border-radius: 50%; }
.plate > span { position: relative; font-weight: 600; font-size: 15px; text-shadow: 0 1px 6px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tooltip */
[data-tip] { position: relative; }
.status[data-tip] { position: absolute; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 10px; border-radius: 6px;
  background: #000; color: #fff;
  font: 600 12px var(--body);
  z-index: 30; pointer-events: none;
}

/* estado de carregando / erro */
.hero-msg { grid-column: 1 / -1; text-align: center; color: var(--muted); font-family: var(--mono); }
.loader { display: inline-block; width: 40px; height: 2px; background: var(--c); animation: load 1s ease-in-out infinite alternate; }
@keyframes load { from { transform: scaleX(.1); } }

/* ============ FILEIRA ============ */
.roster-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 24px 16px 20px;
  background: linear-gradient(0deg, rgba(7, 7, 10, .96) 30%, transparent);
  pointer-events: none;
}
.roster {
  display: flex; justify-content: center; gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 6px 4px;
  pointer-events: auto;
  scrollbar-width: none;
}
.roster::-webkit-scrollbar { display: none; }

.tile {
  --tc: #888;
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  padding: 0;
  border: 0; background: none;
  cursor: pointer;
  text-align: left;
}
.tile-face {
  position: relative;
  height: 92px;
  transform: skewX(-8deg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .1);
  background: #15151b;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .25s;
}
.tile-face img {
  position: absolute; inset: -6px -12px;
  width: calc(100% + 24px); height: calc(100% + 12px);
  object-fit: cover;
  transform: skewX(8deg);
  filter: grayscale(.85) brightness(.6);
  transition: filter .3s;
}
.tile-num {
  position: absolute; left: 8px; top: 4px; z-index: 2;
  font-family: var(--display); font-size: 18px;
  text-shadow: 0 1px 4px #000;
  transform: skewX(8deg);
}
.tile-dot {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  width: 18px; height: 18px; padding: 3px;
  border-radius: 50%;
  background: #0b0b0f;
  transform: skewX(8deg);
}
.tile-name {
  display: block;
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .25s;
}
.tile:hover .tile-face { transform: skewX(-8deg) translateY(-4px); }
.tile:hover img { filter: grayscale(.2) brightness(.85); }
.tile.active .tile-face {
  transform: skewX(-8deg) translateY(-8px);
  border-color: var(--tc);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--tc) 45%, transparent), inset 0 0 0 2px rgba(0, 0, 0, .4);
}
.tile.active img { filter: none; }
.tile.active .tile-name { color: var(--text); }
.tile.active::before {
  content: "▼";
  position: absolute; left: 50%; top: -22px;
  transform: translateX(-50%);
  font-size: 10px; color: var(--tc);
  animation: bob 1s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translate(-50%, -4px); } }

.tile.skeleton .tile-face { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ============ PLAYER ============ */
.player {
  position: absolute; left: 0; top: 0; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.player[hidden], .player.no-track { display: none; }
.player-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--c); color: #0a0a0d; cursor: pointer; display: grid; place-items: center; transition: background .6s; }
.player-btn .play-ico { width: 16px; height: 16px; margin-left: 2px; }
.player-btn .eq { display: none; }
.playing .player-btn .eq { display: flex; }
.playing .player-btn .play-ico { display: none; }
.track-wrap { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.2; }
.track-label { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); transition: color .6s; }
.track { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: #0a0a0d; height: 4px; }
.playing .eq i { animation: eq .8s ease-in-out infinite alternate; }
.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.playing .eq i:nth-child(3) { animation-delay: -.55s; }
@keyframes eq { to { height: 14px; } }
.player input { width: 90px; accent-color: var(--c); }
/* música do Spotify: mostra o player oficial no lugar do nosso */
.sp-wrap { display: none; width: 100%; }
.sp-wrap iframe { display: block; border-radius: 12px; }
.player.sp-mode { padding: 0; border: 0; border-radius: 12px; background: transparent; backdrop-filter: none; }
.player.sp-mode > :not(.sp-wrap) { display: none; }
.player.sp-mode .sp-wrap { display: block; }

/* ============ TOAST ============ */
.toast {
  position: fixed; left: 50%; top: 18px; z-index: 90;
  transform: translate(-50%, -90px);
  padding: 10px 18px; border-radius: 999px;
  background: var(--c); color: #0a0a0d;
  font-weight: 700; font-size: 14px;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.show { transform: translate(-50%, 0); }

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  /* no celular a fileira fica no topo, grudada */
  body { display: flex; flex-direction: column; }
  .top { order: 0; width: 100%; padding: 16px; }
  .roster-wrap {
    order: 1;
    position: sticky; top: 0; bottom: auto;
    padding: 8px 0 18px;
    background: linear-gradient(180deg, rgba(7, 7, 10, .95) 65%, transparent);
  }
  .roster { padding: 22px 16px 4px; }
  .stage { order: 2; width: 100%; min-height: 0; padding: 8px 16px 60px; align-items: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 26px; }
  .showcase { order: -1; width: 100%; max-width: 600px; padding-bottom: 56px; }
  .ghost-num { display: none; }
  .avatar-wrap { width: 112px; height: 112px; }
  .avatar { border-width: 5px; }
  .status { width: 30px; height: 30px; padding: 5px; right: 2px; bottom: 4px; }
  .plate { height: 42px; width: min(220px, 56%); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding-right: 10px; }
  .stat + .stat { padding-left: 12px; }
  .stat dd { font-size: 15px; }
  .roster { justify-content: flex-start; }
  .tile { width: 70px; }
  .tile-face { height: 70px; }
}
@media (max-width: 480px) {
  .logo { font-size: 18px; }
  #clock { display: none; }
  .bio { font-size: 15px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* atualização ao vivo sem repetir as animações de entrada */
.hero.quiet .in, .hero.quiet .in-right { animation: none; }

/* ============ ESTILO DO NOME (Nitro) — portado do CSS do Discord ============ */
.name.styled { text-transform: none; letter-spacing: 0; font-size: clamp(46px, 6.6vw, 104px); line-height: 1.05; }
.name.styled.long { font-size: clamp(38px, 5vw, 80px); }
.dn { position: relative; z-index: 0; display: inline-block; text-shadow: none; }
.dn-solid { color: var(--dn-main, #fff); }
.dn-gradient {
  background: linear-gradient(to bottom right, var(--dn-grad, #fff, #fff));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dn-prism {
  background-image: linear-gradient(90deg, var(--dn-prism, #fff, #fff));
  background-size: max(8ch, 120px) auto; background-repeat: repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dn-neon {
  --r: calc(4px + .12em);
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: calc(1px + .04em) var(--dn-neon, #fff);
  text-shadow: 0 0 var(--r) var(--dn-main, #fff);
}
.dn-toon {
  --sw: calc(1.6px + .04em);
  color: var(--dn-toon, #333);
  paint-order: stroke fill;
  -webkit-text-stroke: var(--sw) var(--dn-toon, #333);
}
.dn-toon::before {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #fff 0, var(--dn-l2) 8%, var(--dn-l1) 15%, var(--dn-main) 25%, var(--dn-l2) 45%, var(--dn-main) 55%, #fff 75%, var(--dn-l2) 83%, var(--dn-l1) 90%, var(--dn-main) 100%);
  background-size: 100% 400%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  white-space: nowrap;
}
.dn-pop {
  --sw: calc(1.2px + .04em); --t: .08em;
  color: #fff;
  paint-order: stroke fill;
  -webkit-text-stroke: var(--sw) var(--dn-d2, #000);
}
.dn-pop::before {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; z-index: -1;
  transform: translate3d(0, var(--t), 0);
  background: linear-gradient(to bottom left, var(--dn-l1) 0, var(--dn-l1) 6%, var(--dn-main) 20%, var(--dn-main) 50%, var(--dn-l1) 56%, var(--dn-main) 70%, var(--dn-main) 100%);
  background-size: 200% 200%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: var(--sw) transparent;
  white-space: nowrap;
}
.dn-gummy { color: var(--dn-main, #fff); font-kerning: none; }
.dn-letter { display: inline-block; white-space: pre; }

/* animações (o Discord toca uma vez ao abrir/passar o mouse) */
.dn-anim.dn-neon { animation: dn-neon 4s cubic-bezier(.24, .31, .36, .93) forwards; }
.dn-anim.dn-toon::before { animation: dn-toon 4s cubic-bezier(.44, .29, .48, 1) forwards; }
.dn-anim.dn-pop { animation: dn-pop 4s cubic-bezier(.44, .29, .48, 1) forwards; }
.dn-anim.dn-pop::before { animation: dn-pop-shadow 4s cubic-bezier(.44, .29, .48, 1) forwards; }
.dn-anim.dn-prism { animation: dn-prism 2s linear forwards; }
.dn-anim .dn-letter { animation: dn-gummy 4s cubic-bezier(.44, .29, .48, 1) forwards; animation-delay: calc(var(--li, 0) * 50ms); }
@keyframes dn-neon {
  0%, 15%, 18%, 20%, 23%, 25%, 50% { color: #fff; }
  16%, 22%, 28% { color: hsl(from var(--dn-main) h calc(min(1, s) * ((s * 1.1) + 10)) 85); }
  51%, to { color: #fff; }
}
@keyframes dn-toon { 0%, 5% { background-position: 50% 0; } 55%, to { background-position: 50% 100%; } }
@keyframes dn-pop {
  0% { transform: translateZ(0); }
  18% { transform: translate3d(0, -.05em, 0); }
  35% { transform: translate3d(0, .08em, 0); }
  50%, to { transform: translateZ(0); }
}
@keyframes dn-pop-shadow {
  0% { background-position: 100% 0; transform: translate3d(0, .08em, 0); }
  18% { transform: translate3d(0, .13em, 0); }
  35% { transform: translateZ(0); }
  50%, to { background-position: 0 100%; transform: translate3d(0, .08em, 0); }
}
@keyframes dn-prism { to { background-position-x: calc(max(8ch, 120px) * -1); } }
@keyframes dn-gummy {
  0%, 35%, to { transform: scaleX(1) scaleY(1); }
  7% { transform: scaleX(1.28) scaleY(.72); }
  14% { transform: scaleX(.82) scaleY(1.18); }
  21% { transform: scaleX(1.1) scaleY(.9); }
  28% { transform: scaleX(.96) scaleY(1.04); }
}
.plate-name { color: var(--dn-main, #fff); }

/* ============ MÚSICA DENTRO DO PERFIL ============ */
.music-slot { margin-top: 26px; max-width: 420px; animation: fade-in .6s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
.slot-label {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim);
}
.slot-space { min-height: 46px; }
.player { opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.player.placed { opacity: 1; pointer-events: auto; }
@keyframes fade-in { from { opacity: 0; } }

/* stats sem quebrar linha */
.stat dt, .stat dd { white-space: nowrap; }
.stat { padding-right: 18px; }
.stat + .stat { padding-left: 16px; }

/* nome numa linha só (o JS ajusta o tamanho pra caber) */
.name { white-space: nowrap; word-break: normal; }
.name > .nm, .name > .dn { display: inline-block; }
.name.styled { line-height: 1.12; padding-bottom: .04em; }
.plate-name .dn { font-size: 15px; }
.plate > span.plate-name { padding: 4px 2px; }

/* ============ LAYOUT SEM ROLAGEM (desktop) ============ */
.side { min-width: 0; }
.acts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px; margin-top: 14px;
}
.acts .activity { margin: 0; max-width: none; }
.stats-row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-top: 26px; border-top: 1px solid var(--line); }
.stats-row .stats { margin-top: 0; border-top: 0; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 8px; }
.music-slot { margin-top: 22px; }

@media (min-width: 901px) {
  .top { padding-top: 16px; padding-bottom: 12px; }
  .stage { min-height: calc(100vh - 66px); padding-top: 0; padding-bottom: 168px; }
  .hero { align-items: center; gap: 48px; }
  .frame { aspect-ratio: 2 / 1; }
  .showcase { padding-bottom: 58px; }
  .avatar-wrap { width: clamp(120px, 17vh, 168px); height: clamp(120px, 17vh, 168px); }
  /* nome acompanha a altura da tela também */
  .name { font-size: clamp(48px, min(8.4vw, 13vh), 128px); }
  .name.styled { font-size: clamp(42px, min(6.6vw, 11vh), 104px); }
  .roster-wrap { padding-top: 14px; padding-bottom: 14px; }
}
@media (max-width: 900px) {
  /* no celular: vitrine, depois as informações, depois as atividades */
  .side { display: contents; }
  .acts { order: 1; margin-top: 0; }
}
.stats-row .stats { flex: 1 1 auto; }

/* sem seleção de texto nem arrastar imagens */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, video { -webkit-user-drag: none; user-drag: none; }
input, textarea { -webkit-user-select: text; user-select: text; }

/* ============ AVATAR COM ESPAÇO PRÓPRIO (não invade as atividades) ============ */
/* --av = tamanho do avatar. A decoração passa 10% pra fora, então o avatar sobe esse tanto
   e a vitrine reserva embaixo metade do avatar + a sobra da decoração. */
.showcase { --av: 168px; padding-bottom: calc(var(--av) * .62); }
.avatar-wrap { width: var(--av); height: var(--av); bottom: calc(var(--av) * .1); }
.plate { bottom: calc(var(--av) * .1 + 8px); }
.acts { margin-top: 18px; }
@media (min-width: 901px) {
  .showcase { --av: clamp(116px, 16vh, 160px); padding-bottom: calc(var(--av) * .62); }
  .avatar-wrap { width: var(--av); height: var(--av); }
}
@media (max-width: 900px) {
  .showcase { --av: 112px; }
}

/* ============ CARROSSEL DAS ATIVIDADES ============ */
.acts { display: block; }
.acts.carousel { overflow: hidden; border-radius: 10px; }
.acts-track { display: flex; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.acts-track > .activity { flex: 0 0 100%; min-width: 0; }
.acts-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.acts-dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .25); cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.acts-dot.on { width: 22px; background: var(--c); }
/* cards de alturas diferentes: o conteúdo fica centralizado no espaço */
.acts-track > .activity { display: flex; flex-direction: column; }
.acts-track > .activity .act-row { flex: 1; }

/* carrossel arrastável */
.acts.carousel { touch-action: pan-y; }
.acts.carousel .activity { cursor: grab; }
.acts.carousel.dragging .activity { cursor: grabbing; }
.acts-dot { cursor: pointer; }
