/* Landing do dxrk.bio. Um mundo só, escuro de propósito: o fundo é a noite,
   a cor vem da luz (o "luar") e das imagens. Verde e vermelho só têm função:
   ao vivo / livre e ocupado / erro.
   Tipos: Bricolage Grotesque (títulos), Hanken Grotesk (texto) e JetBrains
   Mono (endereços, números e etiquetas). */

:root {
  --void: #050506;
  --night: #0c0c10;
  --ash: #16151b;
  --line: rgba(243, 239, 232, .09);
  --line-strong: rgba(243, 239, 232, .17);
  --bone: #f3efe8;
  --smoke: #a19eaa;
  --dim: #6d6a77;
  --moon: #d4daff;
  --violet: #8f7bff;
  --live: #62e693;
  --warn: #ff8790;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 44px);
  --wrap: 1200px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(212, 218, 255, .28); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--bone); color: #0a0a0c; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- topo --- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.bar.is-scrolled { background: rgba(5, 5, 6, .74); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.bar-logo img { width: auto; height: 30px; }
.bar-nav { display: flex; align-items: center; gap: 8px; }
.bar-live {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px;
  border-radius: 999px; color: var(--smoke); font: 600 14px/1 var(--body); transition: color .2s, background-color .2s;
}
.bar-live:hover { color: var(--bone); background: rgba(243, 239, 232, .05); }
.bar-live b {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(98, 230, 147, .14); color: var(--live); font: 500 12px/22px var(--mono); text-align: center;
}
.bar-live b[hidden] { display: none; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(98, 230, 147, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(98, 230, 147, 0); } }
.pill {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); font: 600 14px/1 var(--body); white-space: nowrap;
  transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease);
}
.pill:hover { border-color: rgba(243, 239, 232, .34); }
.pill-solid { background: var(--bone); border-color: var(--bone); color: #0b0b0d; }
.pill-solid:hover { background: #fff; border-color: #fff; }

/* Botões das seções. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--bone);
  font: 600 15px/1 var(--body); white-space: nowrap; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.btn:hover { border-color: rgba(243, 239, 232, .36); background: rgba(243, 239, 232, .04); }
.btn:active { transform: scale(.98); }
.btn svg { width: 17px; height: 17px; }
.btn-solid { background: var(--bone); border-color: var(--bone); color: #0b0b0d; }
.btn-solid:hover { background: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- hero --- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(660px, 100svh, 1040px);
  padding: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + clamp(28px, 7vh, 84px)) var(--gutter) clamp(44px, 8vh, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 24%, rgba(143, 123, 255, .10), transparent 70%),
    radial-gradient(80% 50% at 50% 115%, rgba(212, 218, 255, .07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; pointer-events: none;
  background: linear-gradient(transparent, var(--void));
}
#dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-mark { flex: none; width: min(1040px, 100%); height: clamp(96px, 21vw, 262px); }
.hero-fallback { display: none; width: 100%; height: 100%; object-fit: contain; }
.hero h1 {
  margin-top: clamp(22px, 4.2vh, 48px);
  font: 800 clamp(42px, 6.6vw, 96px)/.92 var(--display); letter-spacing: -.042em; word-spacing: .05em; text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
.lede { max-width: 40ch; margin-top: clamp(16px, 2.4vh, 24px); color: var(--smoke); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; text-wrap: pretty; }

/* dxrk.bio/<nome> */
.claim { width: min(580px, 100%); margin-top: clamp(24px, 3.6vh, 36px); }
.claim-field {
  display: flex; align-items: center; padding: 6px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(14, 14, 18, .74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .25s, box-shadow .25s;
}
.claim-field:focus-within { border-color: rgba(212, 218, 255, .5); box-shadow: 0 0 0 5px rgba(212, 218, 255, .07), 0 24px 70px -20px rgba(0, 0, 0, .8); }
.claim-prefix { flex: none; padding-left: 18px; color: var(--smoke); font: 500 16px/1 var(--mono); letter-spacing: -.02em; }
.claim input {
  flex: 1; min-width: 0; height: 48px; padding: 0 10px 0 1px; border: 0; outline: 0; background: transparent;
  color: var(--bone); font: 500 16px/1 var(--mono); letter-spacing: -.02em;
}
.claim input::placeholder { color: var(--dim); }
.claim button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 22px;
  border: 0; border-radius: 999px; background: var(--bone); color: #0b0b0d; font: 700 15px/1 var(--body);
  cursor: pointer; transition: background-color .2s, transform .2s var(--ease);
}
.claim button:hover { background: #fff; }
.claim button:active { transform: scale(.97); }
.claim button svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.claim button:hover svg { transform: translateX(3px); }
.claim-status { min-height: 21px; margin-top: 12px; color: var(--smoke); font: 500 13px/1.6 var(--mono); }
.claim[data-state="ok"] .claim-field { border-color: rgba(98, 230, 147, .5); }
.claim[data-state="ok"] .claim-status { color: var(--live); }
.claim[data-state="bad"] .claim-field { border-color: rgba(255, 135, 144, .5); }
.claim[data-state="bad"] .claim-status { color: var(--warn); }
.claim[data-state="wait"] .claim-status::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 2px; border-radius: 50%;
  background: var(--smoke); vertical-align: middle; animation: wait .9s ease-in-out infinite;
}
@keyframes wait { 50% { opacity: .2; } }
.claim.is-shake .claim-field { animation: shake .42s var(--ease); }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.claim-done { display: grid; justify-items: center; gap: 16px; margin-top: clamp(24px, 3.6vh, 36px); }
.claim-done-link { color: var(--smoke); font: 500 clamp(18px, 2vw, 22px)/1 var(--mono); }
.claim-done-link b { color: var(--bone); font-weight: 500; }
.claim-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Quem está ouvindo agora (landing-presence.js). */
.hero-live { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-top: 14px; color: var(--smoke); font-size: 14px; }
.hero-live-link { display: inline-flex; align-items: center; gap: 4px; color: var(--bone); border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; transition: border-color .2s; }
.hero-live-link:hover { border-color: var(--bone); }
.hero-live-link svg { width: 14px; height: 14px; }
.room-sync[hidden] { display: none; }
.faces { display: flex; flex-shrink: 0; }
.faces[hidden] { display: none; }
.faces b {
  position: relative; display: grid; place-items: center; width: 26px; height: 26px; margin-left: -7px;
  border: 2px solid var(--void); border-radius: 50%; overflow: hidden; color: #0b0b0d; font: 700 11px/1 var(--body);
}
.faces b:first-child { margin-left: 0; }
.faces img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.faces .online-face { position: relative; display: block; flex: 0 0 26px; margin-left: -7px; border-radius: 50%; }
.faces .online-face:first-child { margin-left: 0; }
.faces .online-face b { margin-left: 0; }
.faces .online-face:hover, .faces .online-face:focus-visible { z-index: 1; }
.faces .online-face:hover b, .faces .online-face:focus-visible b { border-color: var(--live); }
.faces .face-more { background: #d9d6cf; }
.faces .face-skeleton { background: #2a2930; animation: wait 1.2s ease-in-out infinite; }
.faces .face-skeleton:nth-child(2) { animation-delay: .15s; }
.faces .face-skeleton:nth-child(3) { animation-delay: .3s; }
.online-preview[hidden] { display: none; }
.online-preview {
  position: fixed; z-index: 50; display: block; width: min(300px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  overflow-y: auto; padding: 16px; border: 1px solid var(--line-strong); border-radius: 18px;
  background: rgba(14, 14, 18, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7); color: var(--bone); text-align: left; overflow-wrap: anywhere;
}
.online-preview-cover { display: block; width: calc(100% + 32px); max-width: none; height: 76px; margin: -16px -16px 14px; object-fit: cover; }
.online-preview-header { display: flex; align-items: center; gap: 12px; }
.online-preview-header b { position: relative; display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; color: #0b0b0d; font-weight: 700; }
.online-preview-header b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.online-preview-header strong { display: block; font-size: 15px; line-height: 1.3; }
.online-preview-header small { display: block; margin-top: 3px; color: var(--live); font: 500 11px/1.3 var(--mono); }
.online-preview-bio { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 12px; color: var(--smoke); font-size: 13px; line-height: 1.5; }
.online-preview-photos { display: flex; gap: 6px; margin-top: 14px; }
.online-preview-photos img { flex: 1; min-width: 0; width: 0; height: 78px; border-radius: 10px; object-fit: cover; }
.online-preview-cta { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--moon); font-size: 13px; font-weight: 600; }

/* ------------------------------------------------------------- seções --- */
.act { position: relative; overflow-x: clip; padding: clamp(80px, 9.5vw, 132px) var(--gutter); }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--smoke);
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }
.eyebrow .live-dot { order: -1; }
.eyebrow:has(.live-dot)::before { display: none; }
.act h2 {
  margin-top: 18px; font: 800 clamp(38px, 5.4vw, 74px)/.96 var(--display); letter-spacing: -.038em; word-spacing: .04em;
  text-wrap: balance; font-variation-settings: "opsz" 96;
}
.lead { max-width: 54ch; margin-top: 22px; color: var(--smoke); font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.65; text-wrap: pretty; }
.act-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.act-head > div { max-width: 720px; }
.act-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--smoke); font-size: 14.5px; font-weight: 600; transition: color .2s; }
.text-link:hover { color: var(--bone); }
.text-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------- perfil (celular) --- */
.profile-demo {
  display: grid; align-items: center; gap: 40px clamp(40px, 7vw, 110px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy phone" "tweaks phone";
}
.profile-copy { grid-area: copy; align-self: end; }
.tweaks { grid-area: tweaks; align-self: start; display: grid; gap: 22px; }
.phone-holder { grid-area: phone; position: relative; display: grid; place-items: center; padding-block: 12px; perspective: 1500px; }
.tweak { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tweak-label { width: 100%; margin-bottom: 2px; color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--smoke);
  font: 600 14px/1 var(--body); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, transform .2s var(--ease);
}
.chip:hover { color: var(--bone); border-color: rgba(243, 239, 232, .34); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: #0b0b0d; }
.chip-glyph { font-size: 15px; line-height: 1; }
.chip-glyph[data-font="neon"] { font-family: Monoton, var(--display); font-size: 13px; }
.chip-glyph[data-font="gotica"] { font-family: UnifrakturMaguntia, serif; font-size: 17px; }
.chip-glyph[data-font="pixel"] { font-family: "Press Start 2P", var(--mono); font-size: 9px; }
.chip-glyph[data-font="graffiti"] { font-family: "Permanent Marker", var(--display); font-size: 15px; }

.phone-holder::before {
  content: ""; position: absolute; z-index: -1; width: min(560px, 110%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(143, 123, 255, .26), rgba(143, 123, 255, .07) 55%, transparent);
  pointer-events: none;
}
.phone {
  --rx: 5deg; --ry: -12deg;
  position: relative; width: min(318px, 84vw); aspect-ratio: 318 / 652; padding: 10px; border-radius: 50px;
  background: linear-gradient(150deg, #34333b 0%, #0d0d10 34%, #16161b 70%, #2b2a31 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 3px #08080a,
    0 60px 120px -30px rgba(0, 0, 0, .9), 0 40px 80px -40px rgba(143, 123, 255, .45);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease);
}
.phone::after {
  content: ""; position: absolute; inset: 10px; z-index: 6; border-radius: 40px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .11) 0%, rgba(255, 255, 255, .02) 32%, transparent 33%);
}
.phone-screen { position: relative; isolation: isolate; height: 100%; overflow: hidden; border-radius: 40px; background: #000; }
.phone-screen::before {
  content: ""; position: absolute; top: 11px; left: 50%; z-index: 7; width: 96px; height: 27px;
  border-radius: 20px; background: #000; transform: translateX(-50%);
}
.phone-screen::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 8, .34) 0%, rgba(5, 5, 8, .62) 30%, rgba(5, 5, 8, .9) 60%, rgba(5, 5, 8, .97) 100%);
}
.phone-bg { position: absolute; inset: 0; z-index: -2; }
.phone-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease; }
.phone-bg img.is-on { opacity: 1; }
.phone-trail { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }
.phone-inner { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 50px 18px 16px; text-align: center; }
.phone-top { position: absolute; top: 52px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.phone-views, .phone-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(243, 239, 232, .82); font: 500 10px/1 var(--mono);
}
.phone-views svg { width: 12px; height: 12px; }
.phone-tag { color: var(--moon); letter-spacing: .08em; text-transform: uppercase; font-size: 9px; }
.phone-avatar {
  width: 92px; height: 92px; margin-top: 34px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #3c2f7a, #15112b 70%);
  box-shadow: 0 0 0 2px rgba(243, 239, 232, .9), 0 0 0 6px rgba(143, 123, 255, .25), 0 0 40px rgba(143, 123, 255, .55);
}
.phone-avatar svg { width: 100%; height: 100%; }
.phone-name { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 12px; line-height: 1; }
.phone-name span { transition: opacity .2s; }
.phone[data-font="neon"] .phone-name span { font: 400 30px/1 Monoton, var(--display); color: #f9e4ff; text-shadow: 0 0 6px rgba(255, 120, 230, .9), 0 0 18px rgba(170, 110, 255, .8); }
.phone[data-font="gotica"] .phone-name span { font: 400 38px/1 UnifrakturMaguntia, serif; color: var(--bone); text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.phone[data-font="pixel"] .phone-name span { font: 400 20px/1 "Press Start 2P", var(--mono); color: #d8ecff; text-shadow: 3px 3px 0 #3b2c8f; }
.phone[data-font="graffiti"] .phone-name span { font: 400 34px/1 "Permanent Marker", var(--display); color: #ffe6a6; text-shadow: 0 0 14px rgba(255, 160, 60, .45); }
.phone-check { width: 17px; height: 17px; color: #8fb6ff; flex: none; }
.phone-bio { margin-top: 4px; color: rgba(243, 239, 232, .74); font-size: 12.5px; line-height: 1.5; }
.phone-bio span { color: var(--smoke); font: 500 11px/1 var(--mono); margin-right: 4px; }
.phone-links { display: flex; gap: 8px; margin-top: 14px; }
.phone-links i {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: var(--bone);
}
.phone-links svg { width: 17px; height: 17px; }
.phone-player {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 16px; padding: 9px 12px 9px 9px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(10, 10, 14, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); text-align: left;
}
.phone-cover { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #8f7bff, #ff6fb5); color: #fff; }
.phone-cover svg { width: 20px; height: 20px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone-track { flex: 1; min-width: 0; display: grid; gap: 2px; }
.phone-track b { font-size: 12.5px; line-height: 1.2; }
.phone-track small { color: var(--smoke); font-size: 10.5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-progress { position: relative; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.phone-progress i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--bone); transform-origin: left; animation: progress 32s linear infinite; }
@keyframes progress { from { transform: scaleX(.04); } to { transform: scaleX(1); } }
.phone-eq, .beat-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.phone-eq i, .beat-eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--live); transform-origin: bottom; transform: scaleY(.3); }
.phone-eq i { animation: eq .9s ease-in-out infinite; }
.phone-eq i:nth-child(2) { animation-delay: -.3s; } .phone-eq i:nth-child(3) { animation-delay: -.6s; } .phone-eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 14px; }
.phone-grid span { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ash); }
.phone-grid img { width: 100%; height: 100%; object-fit: cover; scale: var(--zoom, 1); transform-origin: var(--origin, 50% 50%); }
.phone-url { margin-top: auto; color: var(--dim); font: 500 10px/1 var(--mono); letter-spacing: .04em; }

/* ------------------------------------------------------------- galeria --- */
.act-wall .act-head { margin-bottom: clamp(32px, 4vw, 48px); }
.wall {
  display: grid; gap: clamp(8px, 1vw, 14px);
  grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(120px, 15.5vw, 214px));
}
.wall-tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: clamp(14px, 1.6vw, 20px); background: var(--ash); will-change: transform; }
/* Cada foto é um pedaço ampliado das artes das salas (--zoom a partir de --origin). */
.wall-tile img { width: 100%; height: 100%; object-fit: cover; scale: var(--zoom, 1); transform-origin: var(--origin, 50% 50%); }
.wall-tile.is-video img { animation: drift 16s ease-in-out infinite alternate; }
.wall-tile.is-gif img { animation: neon 5s ease-in-out infinite; }
@keyframes drift { from { translate: 0 0; } to { translate: -4% -3%; } }
@keyframes neon { 0%, 100% { filter: none; } 50% { filter: hue-rotate(42deg) saturate(1.2) brightness(1.06); } }
.wall-size, .wall-kind {
  position: absolute; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px;
  background: rgba(5, 5, 8, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--bone); font: 500 11px/1 var(--mono);
}
.wall-size { left: 10px; bottom: 10px; }
.wall-kind { right: 10px; top: 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.wall-kind svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
/* Arrumação inicial (sem JavaScript também fica de pé). */
.wall-tile:nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
.wall-tile:nth-child(2) { grid-area: 1 / 3 / span 1 / span 1; }
.wall-tile:nth-child(3) { grid-area: 1 / 4 / span 2 / span 1; }
.wall-tile:nth-child(4) { grid-area: 2 / 3 / span 1 / span 1; }
.wall-tile:nth-child(5) { grid-area: 3 / 1 / span 1 / span 1; }
.wall-tile:nth-child(6) { grid-area: 3 / 2 / span 1 / span 2; }
.wall-tile:nth-child(7) { grid-area: 3 / 4 / span 1 / span 1; }

/* -------------------------------------------------------------- dxrk.dj --- */
.stage {
  --scale: 1;
  position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(32px, 4vw, 48px);
  aspect-ratio: 2 / 1; border-radius: clamp(20px, 2.4vw, 30px); background: #08070e;
  box-shadow: 0 0 0 1px var(--line), 0 50px 140px -50px rgba(143, 123, 255, .5);
}
.stage-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 8, .4) 0%, rgba(5, 5, 8, 0) 26%, rgba(5, 5, 8, 0) 52%, rgba(5, 5, 8, .5) 82%, rgba(5, 5, 8, .82) 100%);
}
.stage.is-playing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(40% 55% at 50% 40%, rgba(143, 123, 255, .35), transparent 70%);
  animation: pulse calc(60s / 124) ease-out infinite;
}
@keyframes pulse { 0% { opacity: 1; } 100% { opacity: .2; } }
.floor { position: absolute; inset: 0; }
.stage-tag {
  position: absolute; top: 16px; right: 16px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px;
  background: rgba(5, 5, 8, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--smoke); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.beatbar {
  position: absolute; top: 14px; left: 14px; z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(8, 8, 12, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.beat-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
  background: var(--bone); color: #0b0b0d; font: 700 14px/1 var(--body); cursor: pointer; transition: background-color .2s, transform .2s var(--ease);
}
.beat-btn:hover { background: #fff; }
.beat-btn:active { transform: scale(.97); }
.beat-btn svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.beat-btn .i-pause, .beat-btn[aria-pressed="true"] .i-play { display: none; }
.beat-btn[aria-pressed="true"] .i-pause { display: block; }
.beat-btn[hidden] { display: none; }
.beat-meta { display: grid; gap: 3px; line-height: 1; }
.beat-meta b { font-size: 13px; }
.beat-meta small { color: var(--smoke); font: 500 10.5px/1 var(--mono); }
.beat-eq { height: 18px; }
.beat-eq i { transition: transform .08s linear; }
.stage-note { margin-top: 14px; color: var(--dim); font-size: 13.5px; }

/* Bonecos (dj-avatar.js desenha). Mesmo esqueleto e passos da sala. */
.dj-char {
  --beat: .484s; --phase: 0s;
  position: absolute; bottom: 0; width: calc(var(--w, 7) * var(--scale) * 1%); transform: translateX(-50%);
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
}
.dj-char .dj-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Personagem em pixel art: o quadro tem folga dos lados, então a caixa é mais larga que o boneco. */
.dj-char:has(.dj-sprite) { width: calc(var(--w, 7) * var(--scale) * 1.4%); }
.dj-char[data-row="0"] { filter: brightness(.86); }
.dj-char[data-row="1"] { filter: brightness(.82) saturate(.92); }
.dj-char:hover { filter: none; }
.dj-shadow { fill: rgba(0, 0, 0, .45); }
.dj-char-name {
  position: absolute; left: 50%; bottom: calc(100% - 2px); z-index: 2; max-width: 140px; padding: 3px 9px; border-radius: 999px;
  background: rgba(8, 8, 10, .82); border: 1px solid rgba(255, 255, 255, .14); color: var(--bone);
  font: 600 11px/1.2 var(--body); white-space: nowrap; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dj-char:hover .dj-char-name { opacity: 1; transform: translate(-50%, 0); }
.dj-char.is-dj .dj-char-name { opacity: 1; transform: translate(-50%, 0); background: var(--bone); color: #0b0b0d; border-color: transparent; }
.dj-char.is-dj::before {
  content: ""; position: absolute; left: 50%; bottom: -8px; z-index: -1; width: 170%; height: 26px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212, 200, 255, .9), rgba(143, 123, 255, .35) 55%, transparent);
  animation: spot 2.4s ease-in-out infinite;
}
@keyframes spot { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
.dj-fig, .dj-head, .dj-headback, .dj-arm, .dj-leg, .dj-eyes { transform-box: view-box; }
.dj-fig { transform-origin: 60px 194px; animation: dj-breathe 3.4s ease-in-out infinite var(--phase); }
.dj-head, .dj-headback { transform-origin: 60px 100px; }
.dj-arm.l { transform-origin: 36px 108px; }
.dj-arm.r { transform-origin: 84px 108px; }
.dj-leg.l { transform-origin: 52px 150px; }
.dj-leg.r { transform-origin: 68px 150px; }
.dj-eyes { transform-origin: 60px 64px; animation: dj-blink 4.6s infinite var(--phase); }
.is-playing .dj-char.dance-0 .dj-fig { animation: dj-bounce var(--beat) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-0 :is(.dj-head, .dj-headback) { animation: dj-nod calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-0 .dj-arm.l { animation: dj-swing-l calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-0 .dj-arm.r { animation: dj-swing-r calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-1 .dj-fig { animation: dj-sway calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-1 :is(.dj-head, .dj-headback) { animation: dj-tilt calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-1 .dj-arm.l { animation: dj-out-l calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-1 .dj-arm.r { animation: dj-out-r calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-2 .dj-fig { animation: dj-bounce var(--beat) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-2 :is(.dj-head, .dj-headback) { animation: dj-nod var(--beat) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-2 .dj-arm.r { animation: dj-pump var(--beat) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-2 .dj-arm.l { animation: dj-swing-l calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-3 .dj-fig { animation: dj-sway calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-3 .dj-arm.l { animation: dj-up-l calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-3 .dj-arm.r { animation: dj-up-r calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-3 :is(.dj-head, .dj-headback) { animation: dj-tilt calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-4 .dj-fig { animation: dj-shift calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-4 .dj-leg.l { animation: dj-step calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-4 .dj-leg.r { animation: dj-step calc(var(--beat) * 2) ease-in-out infinite calc(var(--phase) - var(--beat)); }
.is-playing .dj-char.dance-4 .dj-arm.l { animation: dj-swing-l calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-4 .dj-arm.r { animation: dj-swing-r calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.is-playing .dj-char.dance-4 :is(.dj-head, .dj-headback) { animation: dj-nod calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.dj-char.is-dj .dj-fig { animation: dj-bounce var(--beat) ease-in-out infinite var(--phase); }
.dj-char.is-dj :is(.dj-head, .dj-headback) { animation: dj-nod var(--beat) ease-in-out infinite var(--phase); }
.dj-char.is-dj .dj-arm.r { animation: dj-headphone calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.dj-char.is-dj .dj-arm.l { animation: dj-pump-l calc(var(--beat) * 2) ease-in-out infinite var(--phase); }
.stage:not(.is-playing) .dj-char.is-dj .dj-fig { animation: dj-breathe 3.4s ease-in-out infinite var(--phase); }
.stage:not(.is-playing) .dj-char.is-dj .dj-arm.l { animation: none; }
.dj-char.is-hype .dj-fig { animation: dj-jump .9s cubic-bezier(.3, .7, .4, 1) both; }
.dj-char.is-hype .dj-arm.l { animation: dj-cheer-l .9s ease both; }
.dj-char.is-hype .dj-arm.r { animation: dj-cheer-r .9s ease both; }
@keyframes dj-breathe { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(.8px) scaleY(.988); } }
@keyframes dj-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes dj-bounce { 0%, 100% { transform: translateY(0) scaleY(.985); } 45% { transform: translateY(-7px) scaleY(1.012); } }
@keyframes dj-nod { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes dj-tilt { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-6deg); } }
@keyframes dj-swing-l { 0%, 100% { transform: rotate(16deg); } 50% { transform: rotate(-12deg); } }
@keyframes dj-swing-r { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(-16deg); } }
@keyframes dj-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes dj-out-l { 0%, 100% { transform: rotate(28deg); } 50% { transform: rotate(58deg); } }
@keyframes dj-out-r { 0%, 100% { transform: rotate(-58deg); } 50% { transform: rotate(-28deg); } }
@keyframes dj-pump { 0%, 100% { transform: rotate(-170deg); } 50% { transform: rotate(-128deg); } }
@keyframes dj-pump-l { 0%, 100% { transform: rotate(170deg); } 50% { transform: rotate(128deg); } }
@keyframes dj-up-l { 0%, 100% { transform: rotate(150deg); } 50% { transform: rotate(172deg); } }
@keyframes dj-up-r { 0%, 100% { transform: rotate(-172deg); } 50% { transform: rotate(-150deg); } }
@keyframes dj-step { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-7px); } }
@keyframes dj-shift { 0%, 100% { transform: translate(-3px, 0); } 25% { transform: translate(0, -5px); } 50% { transform: translate(3px, 0); } 75% { transform: translate(0, -5px); } }
@keyframes dj-headphone { 0%, 100% { transform: rotate(-150deg); } 50% { transform: rotate(-143deg); } }
@keyframes dj-jump { 0% { transform: translateY(0); } 35% { transform: translateY(-26px); } 62% { transform: translateY(-4px); } 78% { transform: translateY(-9px); } 100% { transform: translateY(0); } }
@keyframes dj-cheer-l { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(160deg); } }
@keyframes dj-cheer-r { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(-160deg); } }

/* Salas ao vivo. */
.rooms { margin-top: clamp(48px, 6vw, 72px); }
.rooms-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.rooms-head h3 { font: 700 clamp(20px, 2vw, 24px)/1.2 var(--display); letter-spacing: -.02em; }
.rooms-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.rooms-list[data-state="empty"] { display: none; }
.room-skeleton { height: 236px; border-radius: 18px; background: linear-gradient(100deg, var(--night) 30%, #15141b 50%, var(--night) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.room-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line); background: var(--night); transition: transform .3s var(--ease), border-color .3s;
}
.room-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.room-card-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #221b3f, #0c0b12); }
.room-card-art img { width: 100%; height: 100%; object-fit: cover; }
.room-card-count {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 999px; background: rgba(5, 5, 8, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--smoke); font: 500 11px/1 var(--mono);
}
.room-card.is-live .room-card-count { color: var(--live); }
.room-card.is-live .room-card-count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: live 2.2s ease-out infinite; }
.room-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.room-card-name { overflow-wrap: anywhere; font: 700 16px/1.25 var(--body); }
.room-card-host { color: var(--smoke); font-size: 13px; overflow-wrap: anywhere; }
.room-card-playing { overflow: hidden; margin-top: 4px; color: var(--moon); font: 500 11.5px/1.4 var(--mono); white-space: nowrap; text-overflow: ellipsis; }
.room-card-playing::before { content: "♪ "; color: var(--dim); }
.rooms-empty {
  display: none; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 22px 24px;
  border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--smoke);
}
.rooms-empty b { color: var(--bone); }
.rooms-list[data-state="empty"] + .rooms-empty { display: flex; }

/* ------------------------------------------------------------ detalhes --- */
.details {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(36px, 4.5vw, 56px);
  overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--line);
}
.details li { display: grid; align-content: start; gap: 10px; padding: 28px 26px 32px; background: var(--void); transition: background-color .3s; }
.details li:hover { background: #0a0a0d; }
.details svg { width: 22px; height: 22px; margin-bottom: 8px; color: var(--moon); stroke-width: 1.7; }
.details h3 { font: 700 17px/1.3 var(--body); }
.details p { color: var(--smoke); font-size: 14.5px; line-height: 1.6; }

/* --------------------------------------------------------------- final --- */
.act-final { overflow: hidden; text-align: center; padding-block: clamp(110px, 14vw, 200px); }
.act-final::before {
  content: ""; position: absolute; left: 50%; bottom: -40%; z-index: -1; width: min(1100px, 140%); aspect-ratio: 1;
  border-radius: 50%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(143, 123, 255, .2), rgba(143, 123, 255, .05) 60%, transparent);
}
.act-final .wrap { display: grid; justify-items: center; }
.act-final h2 { font-size: clamp(40px, 6.6vw, 96px); }
.act-final .lead { margin-inline: auto; }
.act-final .claim, .act-final .claim-done-actions { margin-top: 34px; }
.final-login { margin-top: 6px; color: var(--smoke); font-size: 14.5px; }
.final-login a { color: var(--bone); border-bottom: 1px solid var(--line-strong); transition: border-color .2s; }
.final-login a:hover { border-color: var(--bone); }

/* --------------------------------------------------------------- rodapé --- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line);
  color: var(--dim); font-size: 13.5px;
}
.foot-logo img { width: auto; height: 24px; opacity: .8; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--smoke); transition: color .2s; }
.foot nav a:hover { color: var(--bone); }

/* ----------------------------------------------------------- telas menores --- */
@media (max-width: 1040px) {
  .rooms-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .profile-demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "phone" "tweaks"; }
  .tweaks { justify-items: center; text-align: center; }
  .tweak { justify-content: center; }
  .phone { --rx: 4deg; --ry: -8deg; }
}
@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  .hero { min-height: 0; padding-bottom: 64px; }
  .bar-logo img { height: 26px; }
  .bar-live { padding: 0 8px; }
  .bar-live span { display: none; }
  .pill { height: 36px; padding: 0 13px; font-size: 13.5px; }
  .claim-field { flex-wrap: wrap; border-radius: 24px; padding: 6px 6px 6px 0; }
  .claim-prefix { padding-left: 16px; font-size: 15px; }
  .claim input { height: 46px; font-size: 16px; }
  .claim button { justify-content: center; width: 100%; margin: 4px 0 0 6px; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, 34vw); }
  .wall-tile:nth-child(1) { grid-area: 1 / 1 / span 2 / span 2; }
  .wall-tile:nth-child(2) { grid-area: 3 / 1 / span 1 / span 1; }
  .wall-tile:nth-child(3) { grid-area: 3 / 2 / span 1 / span 1; }
  .wall-tile:nth-child(4) { grid-area: 4 / 1 / span 2 / span 1; }
  .wall-tile:nth-child(5) { grid-area: 4 / 2 / span 1 / span 1; }
  .wall-tile:nth-child(6) { grid-area: 5 / 2 / span 1 / span 1; }
  .wall-tile:nth-child(7) { grid-area: 6 / 1 / span 1 / span 2; }
  .stage { --scale: 1.7; aspect-ratio: 4 / 3.6; }
  .stage-art { object-position: 50% 40%; }
  .dj-char.is-extra { display: none; }
  .beatbar { top: 10px; left: 10px; gap: 10px; padding-right: 12px; }
  .beat-meta small { display: none; }
  .stage-tag { display: none; }
  .rooms-list { grid-template-columns: minmax(0, 1fr); }
  .room-skeleton:nth-child(n+3) { display: none; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .details li { padding: 24px 22px 26px; }
  .foot { justify-content: center; text-align: center; }
}
@media (max-width: 400px) {
  .bar-signup { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .phone { --rx: 0deg; --ry: 0deg; }
}
