:root {
  --bg: #0a0102;
  --red: #e0112b;
  --red-soft: #ff4d63;
  --ink: #f4e9ea;
  --muted: #b79a9d;
  --glass: rgba(14, 3, 5, 0.58);
  --line: rgba(224, 17, 43, 0.32);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.locked {
  overflow: hidden;
  height: 100vh;
}
[hidden] {
  display: none !important;
}

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  z-index: 0;
}
.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}
#fx {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* entrada- */
.enter {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(4, 0, 1, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    opacity 0.9s ease,
    visibility 0.9s ease;
  color: var(--ink);
}
.enter.gone {
  opacity: 0;
  visibility: hidden;
}
.enter-text {
  font-family: Cinzel, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 1.7rem);
  letter-spacing: 0.38em;
  text-transform: lowercase;
  padding-left: 0.38em;
  text-shadow:
    0 0 18px rgba(224, 17, 43, 0.9),
    0 0 42px rgba(224, 17, 43, 0.5);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}
.enter:focus-visible .enter-text {
  outline: 2px solid var(--red-soft);
  outline-offset: 14px;
}

/*  coluna */
.stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 16px 90px;
}
.col {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 1000px) {
  .stage {
    justify-content: flex-end;
    padding-right: clamp(40px, 9vw, 200px);
  }
}

.panel {
  padding: 26px 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 18px 50px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(224, 17, 43, 0.14),
    inset 0 0 36px rgba(224, 17, 43, 0.05);
}

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    translate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  translate: 0 0;
}

.sec-title {
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.sec-title::before {
  content: '';
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}

/*  hero  */
.hero {
  position: relative;
  text-align: center;
  padding-top: 30px;
}
.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
}
.avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  box-shadow:
    0 0 22px rgba(224, 17, 43, 0.65),
    0 0 0 5px rgba(0, 0, 0, 0.45);
}
.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: Cinzel, serif;
  font-weight: 800;
  font-size: 2.8rem;
  background: radial-gradient(circle at 35% 30%, #3a0710, #0c0204);
  color: var(--red-soft);
}
.dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid #0d0305;
  background: #6b6b6b;
  transition: background 0.4s;
}
.dot.online {
  background: #3ba55d;
}
.dot.idle {
  background: #faa61a;
}
.dot.dnd {
  background: #ed4245;
}
.dot.off {
  background: #6b6b6b;
}

.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  border: 1px solid currentColor;
  margin-bottom: 10px;
}
.pill.online {
  color: #3ba55d;
  background: rgba(59, 165, 93, 0.12);
}
.pill.idle {
  color: #faa61a;
  background: rgba(250, 166, 26, 0.12);
}
.pill.dnd {
  color: #ed4245;
  background: rgba(237, 66, 69, 0.12);
}
.pill.off {
  color: #8d8d8d;
  background: rgba(255, 255, 255, 0.04);
}

.name {
  font-family: Cinzel, Georgia, serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  text-shadow: 0 0 22px rgba(224, 17, 43, 0.7);
}
.handle {
  margin-top: 4px;
  color: var(--red-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.location {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
}
.bio {
  margin-top: 14px;
  min-height: 1.5em;
  color: var(--ink);
  opacity: 0.85;
  font-size: 0.98rem;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--red-soft);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.presence {
  margin: 14px auto 0;
  display: inline-block;
  max-width: 100%;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(224, 17, 43, 0.12);
  border: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.tags li {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.tags:empty {
  display: none;
}

/* ---------- links ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.link .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(224, 17, 43, 0.14);
  border: 1px solid var(--line);
  color: var(--red-soft);
}
.link .ic svg {
  width: 20px;
  height: 20px;
}
.link .tx {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.link b {
  display: block;
  font-weight: 600;
  font-size: 0.97rem;
}
.link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link i {
  font-style: normal;
  opacity: 0.4;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  background: rgba(224, 17, 43, 0.16);
  border-color: var(--red);
  box-shadow: 0 6px 24px rgba(224, 17, 43, 0.3);
  outline: none;
}
.link:hover i,
.link:focus-visible i {
  opacity: 1;
  transform: translateX(3px);
}

/*  configs  */
#secConfigs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.stat {
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stat b {
  display: block;
  margin-top: 6px;
  font-family: Cinzel, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 0 14px rgba(224, 17, 43, 0.5);
  overflow-wrap: anywhere;
}

/*  setup  */
.setup {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gear {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.gear .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(224, 17, 43, 0.14);
  border: 1px solid var(--line);
  color: var(--red-soft);
}
.gear .ic svg {
  width: 24px;
  height: 24px;
}
.gear .tx {
  flex: 1;
  min-width: 0;
}
.gear small {
  display: block;
  color: var(--red-soft);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.gear b {
  display: block;
  margin: 3px 0 1px;
  font-weight: 600;
  font-size: 0.97rem;
  overflow-wrap: anywhere;
}
.gear span {
  color: var(--muted);
  font-size: 0.8rem;
}
.gear i {
  font-style: normal;
  opacity: 0.5;
}
a.gear:hover,
a.gear:focus-visible {
  transform: translateY(-2px);
  background: rgba(224, 17, 43, 0.16);
  border-color: var(--red);
  outline: none;
}

/*  rodapé  */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.views {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(224, 17, 43, 0.14);
  border: 1px solid var(--line);
}
.views svg {
  color: var(--red-soft);
}

/*  música  */
.music {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.music button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}
.music button:hover {
  background: rgba(224, 17, 43, 0.25);
}
#vol {
  width: 80px;
  accent-color: var(--red);
}

@media (max-width: 480px) {
  .panel {
    padding: 22px 16px;
  }
  .bg {
    object-position: 28% center;
  }
  #vol {
    width: 64px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .enter-text,
  .caret {
    animation: none;
  }
  .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
