:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: rgba(13, 13, 18, 0.72);
  --panel-strong: rgba(14, 15, 22, 0.94);
  --text: #ffffff;
  --muted: #aaa7b5;
  --soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.15);
  --purple: #d8dde8;
  --cyan: #6aa9ff;
  --pink: #f4f6fb;
  --green: #42ff9e;
  --shadow: rgba(0, 0, 0, 0.62);
}

body.theme-cheap,
body.theme-flat {
  --ui-panel-rgb: 8 8 10;
  --ui-bar-rgb: 17 18 23;
  --ui-tile-rgb: 24 25 31;
}

body.theme-basement {
  --ui-panel-rgb: 11 11 14;
  --ui-bar-rgb: 18 18 22;
  --ui-tile-rgb: 25 25 30;
}

body.theme-blueprint {
  --ui-panel-rgb: 5 10 18;
  --ui-bar-rgb: 10 18 30;
  --ui-tile-rgb: 12 22 37;
}

body.theme-signal {
  --ui-panel-rgb: 12 7 9;
  --ui-bar-rgb: 22 12 15;
  --ui-tile-rgb: 30 15 19;
}

body.theme-terminal {
  --ui-panel-rgb: 4 9 7;
  --ui-bar-rgb: 8 17 13;
  --ui-tile-rgb: 9 23 17;
}

body.theme-static {
  --ui-panel-rgb: 12 13 16;
  --ui-bar-rgb: 19 20 24;
  --ui-tile-rgb: 27 28 34;
}

body.theme-forum {
  --ui-panel-rgb: 13 14 20;
  --ui-bar-rgb: 22 24 33;
  --ui-tile-rgb: 28 31 42;
}

body.theme-amber {
  --ui-panel-rgb: 13 9 5;
  --ui-bar-rgb: 24 16 8;
  --ui-tile-rgb: 31 20 9;
}

body.theme-cold {
  --ui-panel-rgb: 6 6 7;
  --ui-bar-rgb: 20 20 22;
  --ui-tile-rgb: 27 27 30;
}

body.theme-midnight {
  --ui-panel-rgb: 5 8 15;
  --ui-bar-rgb: 10 15 27;
  --ui-tile-rgb: 14 21 36;
}

body.theme-graybar {
  --ui-panel-rgb: 5 5 5;
  --ui-bar-rgb: 241 241 241;
  --ui-tile-rgb: 26 26 26;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Lucida Console", Consolas, "Courier New", monospace;
  letter-spacing: 0;
  color: var(--text);
  background:
    radial-gradient(210px circle at var(--pointer-x) var(--pointer-y), rgba(106, 169, 255, 0.08), transparent 48%),
    linear-gradient(rgba(5, 5, 7, 0.5), rgba(5, 5, 7, 0.9)),
    radial-gradient(circle at 48% 16%, rgba(255, 255, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 18% 76%, rgba(106, 169, 255, 0.11), transparent 22rem),
    radial-gradient(circle at 84% 68%, rgba(255, 255, 255, 0.06), transparent 24rem),
    #050507;
}

a {
  color: inherit;
}

body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: var(--custom-cursor);
}

button,
input,
textarea {
  font: inherit;
}

.profile-page,
.admin-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0.42;
  filter: contrast(1.08) saturate(0.82) brightness(0.72);
  pointer-events: none;
}

.background-video:not([hidden]) ~ .noise {
  opacity: 0.18;
}

.background-video:not([hidden]) ~ .motion-ball {
  opacity: 0.18;
}

.profile-page {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 34px 34px 34px 2vw;
}

.admin-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
  animation: grid-pan 18s linear infinite;
}

.motion-ball {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.24), rgba(106, 169, 255, 0.1) 34%, rgba(0, 0, 0, 0.08) 68%);
  box-shadow:
    inset 0 0 38px rgba(255, 255, 255, 0.04),
    0 0 70px rgba(106, 169, 255, 0.12);
  opacity: 0.7;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.ball-one {
  width: 280px;
  height: 280px;
  right: 5vw;
  top: 3vh;
  animation: orb-drift 5.5s ease-in-out infinite alternate;
}

.ball-two {
  width: 140px;
  height: 140px;
  left: 2vw;
  bottom: 7vh;
  opacity: 0.42;
  animation-duration: 15s;
  animation-delay: -5s;
}

.ball-three {
  width: 360px;
  height: 360px;
  right: -6vw;
  bottom: -9vh;
  opacity: 0.34;
  animation-duration: 10s;
  animation-delay: -3s;
}

.ball-four {
  width: 230px;
  height: 230px;
  left: 34vw;
  top: -9vh;
  opacity: 0.3;
  animation-duration: 13s;
  animation-delay: -7s;
}

.site-layout {
  width: 100%;
  min-height: min(750px, calc(100vh - 68px));
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(430px, 520px) minmax(0, 1fr);
  align-items: stretch;
  gap: 26px;
}

.backdrop-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  animation: float 8s ease-in-out infinite alternate;
}

.ring-a {
  width: 210px;
  height: 210px;
  top: -72px;
  right: -70px;
  box-shadow: 0 0 70px rgba(106, 169, 255, 0.2);
}

.ring-b {
  width: 140px;
  height: 140px;
  bottom: -48px;
  left: -42px;
  border-color: rgba(0, 229, 255, 0.26);
  animation-delay: -2s;
}

.profile-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 22%),
    var(--panel);
  box-shadow: 0 30px 100px var(--shadow);
  backdrop-filter: blur(24px);
}

.profile-card {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 30px;
  text-align: center;
  transition: transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-card:hover,
.content-panel:hover {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.72), 0 0 60px rgba(106, 169, 255, 0.08);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.38), rgba(255,255,255,0.12), rgba(106,169,255,0.24));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.profile-card::after,
.content-panel::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.032), transparent 58%);
  transform: translateX(-35%);
  animation: panel-sheen 10s ease-in-out infinite;
  pointer-events: none;
}

.profile-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0 auto;
  padding-bottom: 26px;
  position: relative;
  text-align: left;
}

.profile-status {
  width: calc(100% + 68px);
  min-height: 58px;
  justify-content: space-between;
  margin: -40px -34px 20px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--theme-border, var(--line));
  background: var(--theme-panel-2, rgba(255, 255, 255, 0.04));
}

.profile-identity > .avatar-wrap,
.profile-identity > .identity-copy {
  transform: translateX(-12px);
}

.profile-identity::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.identity-copy {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.avatar-wrap {
  width: 168px;
  height: 168px;
  margin: 0;
  flex: 0 0 168px;
  position: relative;
  display: grid;
  place-items: center;
}

.avatar {
  width: 168px;
  height: 168px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 50%;
  background: #101018;
  box-shadow: none;
  animation: none;
}

.avatar-decoration {
  width: 126%;
  height: 126%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.profile-status-dot {
  right: 9px;
  bottom: 18px;
  z-index: 4;
  width: 24px;
  height: 24px;
  border-width: 4px;
}

.profile-status-dot[hidden] {
  display: none;
}

.avatar-decoration[hidden],
.discord-avatar-decoration[hidden],
.discord-decoration-preview-overlay[hidden] {
  display: none;
}

h1,
p {
  margin: 0;
}

.profile-card h1 {
  font-size: clamp(34px, 10vw, 52px);
  line-height: 1;
  font-weight: 900;
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  top: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  --name-a: #6f7890;
  --name-b: #ffffff;
  --name-c: #aeb9d2;
  --name-fx-primary: 183 196 223;
  --name-fx-secondary: 255 255 255;
  background: linear-gradient(90deg, var(--name-a), var(--name-b), var(--name-c));
  -webkit-background-clip: text;
  background-clip: text;
  overflow-wrap: anywhere;
}

.profile-card h1::before,
.profile-card h1::after {
  content: "";
  pointer-events: none;
}

.profile-card h1 b,
.profile-card h1 strong,
.profile-card h1 i,
.profile-card h1 em {
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.name-gradient-current {
  background-image: linear-gradient(90deg, #747d92, #ffffff, #b7c4df, #747d92);
  background-size: 300% 100%;
}

.name-gradient-blue {
  background-image: linear-gradient(90deg, #245aaf, #9ec5ff, #ffffff, #245aaf);
  background-size: 300% 100%;
}

.name-gradient-white {
  background-image: linear-gradient(90deg, #8f8f8f, #ffffff, #d7d7d7, #ffffff, #8f8f8f);
  background-size: 300% 100%;
}

.name-gradient-solidWhite {
  background-image: linear-gradient(90deg, #ffffff, #ffffff);
  background-size: 100% 100%;
}

.name-gradient-red {
  background-image: linear-gradient(90deg, #8f2234, #ff6d83, #ffc2cb, #8f2234);
  background-size: 300% 100%;
}

.name-effect-shine {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.42)) drop-shadow(0 0 14px rgba(106, 169, 255, 0.3));
  text-shadow: 3px 0 rgba(106, 169, 255, 0.24), -2px 0 rgba(255, 255, 255, 0.12);
  animation: name-gradient-loop 3.2s linear infinite, name-breathe 1.35s ease-in-out infinite alternate, name-jitter 3.6s steps(1) infinite;
}

.profile-card h1.name-effect-glitch {
  filter: none;
  text-shadow: none;
  animation: name-gradient-loop 3.6s linear infinite, name-glitch-main 1.8s steps(1) infinite;
}

.profile-card h1.name-effect-glitch::before,
.profile-card h1.name-effect-glitch::after {
  content: attr(data-text) !important;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font: inherit;
  line-height: inherit;
  text-align: center;
  background: none;
  text-shadow: none;
  opacity: 0;
  z-index: 2;
  will-change: transform, clip-path, opacity;
}

.profile-card h1.name-effect-glitch::before {
  color: rgba(255, 255, 255, 0.96);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.96);
  transform: translate(0, 0);
  clip-path: inset(16% 0 70% 0);
  animation: name-glitch-top-slice 1.45s steps(1) infinite;
}

.profile-card h1.name-effect-glitch::after {
  color: rgba(142, 190, 255, 0.92);
  -webkit-text-fill-color: rgba(142, 190, 255, 0.92);
  transform: translate(0, 0);
  clip-path: inset(62% 0 24% 0);
  animation: name-glitch-bottom-slice 1.7s steps(1) infinite;
}

.profile-card h1:not(.name-effect-glitch):not(.name-effect-afterimage)::before,
.profile-card h1:not(.name-effect-glitch):not(.name-effect-afterimage)::after {
  content: "" !important;
  animation: none !important;
  clip-path: none !important;
  opacity: 0 !important;
  transform: none !important;
}

.name-effect-pulse {
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.34));
  animation: name-pulse 0.95s ease-in-out infinite alternate;
}

.name-effect-rainbow {
  background-image: linear-gradient(90deg, #ff5c7a, #ffd166, #6affb3, #6aa9ff, #d76aff, #ff5c7a);
  background-size: 360% 100%;
  filter: drop-shadow(0 0 18px rgba(106, 169, 255, 0.36));
  animation: name-gradient-loop 2.4s linear infinite, name-jitter 4s steps(1) infinite;
}

.name-effect-ghost {
  filter: blur(0.15px) drop-shadow(7px 0 rgba(255, 255, 255, 0.18)) drop-shadow(-7px 0 rgba(106, 169, 255, 0.18));
  animation: name-ghost 1.6s ease-in-out infinite alternate, name-gradient-loop 4.2s linear infinite;
}

.name-effect-neon {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px rgba(106, 169, 255, 0.72));
  animation: name-gradient-loop 3.8s linear infinite, name-neon 1.7s ease-in-out infinite alternate;
}

.name-effect-flicker {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.52));
  animation: name-gradient-loop 3.6s linear infinite, name-flicker 3.2s steps(1) infinite;
}

.profile-card h1.name-effect-afterimage {
  isolation: isolate;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.24));
  animation: name-gradient-loop 4s linear infinite;
}

.profile-card h1.name-effect-afterimage::before,
.profile-card h1.name-effect-afterimage::after {
  content: attr(data-text) !important;
  position: absolute;
  inset: 0;
  font: inherit;
  pointer-events: none;
  opacity: 0.28;
  z-index: -1;
}

.profile-card h1.name-effect-afterimage::before {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  animation: name-afterimage-left 1.8s ease-in-out infinite alternate;
}

.profile-card h1.name-effect-afterimage::after {
  color: #6aa9ff;
  -webkit-text-fill-color: #6aa9ff;
  animation: name-afterimage-right 2.1s ease-in-out infinite alternate;
}

.name-effect-float {
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(106, 169, 255, 0.24));
  animation: name-gradient-loop 4.4s linear infinite, name-float 2.4s ease-in-out infinite alternate;
}

.name-effect-none {
  filter: none;
  text-shadow: none;
  animation: none;
}

.profile-card h1.is-bold,
.description.is-bold {
  font-weight: 900;
}

.profile-card h1.is-italic,
.description.is-italic {
  font-style: italic;
}

.username {
  width: fit-content;
  margin: 8px 0 0;
  color: #d8d3ff;
  font-size: 15px;
  position: relative;
  text-align: left;
  top: 0;
  overflow-wrap: anywhere;
}

.description {
  min-height: 54px;
  max-width: 39ch;
  margin: 24px auto 0;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.community-status {
  min-height: 0;
  margin-top: 14px;
}

.bio-divider {
  width: 92%;
  height: 1px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.actual-bio {
  min-height: 0;
  margin-top: 10px;
}

.profile-presence-spacer {
  min-height: 18px;
  flex: 1 0 18px;
}

.bio-divider[hidden],
.actual-bio[hidden] {
  display: none;
}

.view-counter {
  width: fit-content;
  margin: 14px auto 0;
  padding: 4px 7px;
  border: 1px solid rgba(190, 190, 190, 0.28);
  background: #171717;
  color: #aaaab2;
  font-size: 12px;
  line-height: 1;
  text-transform: lowercase;
}

.view-counter strong {
  color: #f2f2f2;
  font-weight: 400;
}

.content-panel > .view-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  margin: 0;
}

.discord-presence {
  position: static;
  flex: 0 0 auto;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(190, 190, 190, 0.34);
  background: #1a1a1a;
  text-align: left;
}

.discord-presence[hidden] {
  display: none;
}

.discord-presence-content {
  display: block;
}

.discord-state-screen {
  min-height: 54px;
  display: none;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.discord-presence[data-state="loading"] .discord-presence-content,
.discord-presence[data-state="unavailable"] .discord-presence-content {
  display: none;
}

.discord-presence[data-state="loading"] .discord-state-screen,
.discord-presence[data-state="unavailable"] .discord-state-screen {
  display: grid;
}

.discord-state-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 190, 190, 0.28);
  background: #090909;
}

.discord-state-icon img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.discord-state-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.discord-state-copy strong {
  color: #f2f2f2;
  font-size: 12px;
  letter-spacing: 0;
}

.discord-state-copy span {
  color: #a9a9b2;
  font-size: 10px;
}

.discord-state-meter {
  height: 26px;
  display: flex;
  align-items: end;
  gap: 3px;
}

.discord-state-meter i {
  width: 3px;
  height: 100%;
  display: block;
  background: #e6e6e6;
  animation: discord-meter 900ms steps(4) infinite alternate;
}

.discord-state-meter i:nth-child(2) { animation-delay: -600ms; }
.discord-state-meter i:nth-child(3) { animation-delay: -300ms; }
.discord-state-meter i:nth-child(4) { animation-delay: -750ms; }

.discord-presence[data-state="unavailable"] .discord-state-icon {
  opacity: 0.56;
}

.discord-presence[data-state="unavailable"] .discord-state-meter {
  display: none;
}

.discord-presence[data-state="unavailable"] .discord-state-copy strong {
  color: #d6d6d6;
}

.discord-presence-avatar {
  width: 48px;
  height: 48px;
  position: relative;
}

.discord-presence-avatar img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: #09090b;
}

.discord-presence-avatar .discord-avatar-decoration {
  width: 126%;
  height: 126%;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  border-radius: 0;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: transparent;
}

.discord-status-dot {
  width: 22px;
  height: 22px;
  position: absolute;
  right: -5px;
  bottom: -5px;
  border: 3px solid #09090b;
  border-radius: 50%;
  background: #747f8d;
  z-index: 3;
}

.discord-status-dot[data-status="online"] { background: #23a55a; }
.discord-status-dot[data-status="idle"] { background: #f0b232; }
.discord-status-dot[data-status="dnd"] { background: #f23f43; }

.discord-status-dot[data-status="dnd"]::after {
  content: "";
  width: 11px;
  height: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: #09090b;
  transform: translate(-50%, -50%);
}

.discord-status-dot[data-status="idle"]::after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: #09090b;
}

.discord-status-dot[data-status="offline"] {
  border-color: #09090b;
  background: #747f8d;
  box-shadow: inset 0 0 0 5px #09090b;
}

.discord-activity-copy {
  min-width: 0;
  display: grid;
}

.discord-presence-kicker,
.discord-activity-type {
  color: var(--accent, #8ab8ff);
  font-size: 9px;
  line-height: 1.2;
}

.discord-activity[data-source="spotify"] .discord-activity-type {
  color: #1ed760;
}

.discord-activity[data-source="game"] .discord-activity-type {
  color: #df6670;
}

.discord-activity-name,
.discord-activity-detail,
.discord-status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-activity-name.is-scrolling {
  text-overflow: clip;
}

.discord-status-text,
.discord-activity-detail {
  color: var(--muted);
  font-size: 11px;
}

.discord-activity {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(190, 190, 190, 0.24);
  background: #121212;
}

.discord-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.discord-activity-art {
  width: 44px;
  height: 44px;
}

.discord-activity-art[hidden] {
  display: none;
}

.discord-activity-art img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
  background: #090909;
}

.discord-activity-copy {
  align-self: start;
  align-content: center;
  padding-top: 2px;
}

.discord-activity-name {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.discord-avatar-editor-preview {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.discord-avatar-editor-preview img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #090909;
}

.discord-avatar-editor-preview span {
  color: var(--muted);
  font-size: 12px;
}

.discord-decoration-preview-stage {
  width: 58px;
  height: 58px;
  position: relative;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
}

.discord-avatar-editor-preview .discord-decoration-preview-stage > img:first-child {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #090909;
}

.discord-avatar-editor-preview .discord-decoration-preview-overlay {
  width: 58px;
  height: 58px;
  position: absolute;
  inset: 0;
  border-radius: 0;
  object-fit: contain;
  pointer-events: none;
  background: transparent;
}

body.theme-graybar .discord-presence {
  color: #f2f2f2 !important;
  background: #1a1a1a !important;
  border-color: rgba(190, 190, 190, 0.34) !important;
}

body.theme-graybar .discord-activity-name {
  color: #f2f2f2 !important;
}

body.theme-graybar .discord-status-text,
body.theme-graybar .discord-activity-detail {
  color: #b7b6c0 !important;
}

@keyframes discord-meter {
  0% { transform: scaleY(0.24); }
  35% { transform: scaleY(0.78); }
  70% { transform: scaleY(0.46); }
  100% { transform: scaleY(1); }
}

.links {
  display: none;
  gap: 10px;
  margin-top: 24px;
}

.link-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f6f2ff;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.035);
  transition: transform 90ms ease, border-color 160ms ease, background 160ms ease;
}

.link-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.link-button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.link-copy,
.tile-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.app-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #050507;
  background: linear-gradient(135deg, #ffffff, #d8dde8 58%, #6aa9ff);
}

.app-icon img {
  width: 27px;
  height: 27px;
  display: block;
  object-fit: contain;
  filter: none;
}

.contact-tile .app-icon {
  border: 1px solid #292929;
  background: #050505 !important;
  box-shadow: none;
}

.app-icon img[src*="tiktok"] {
  width: 30px;
  height: 30px;
}

.app-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-description,
.tile-description {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-tile .tile-description {
  font-weight: 400;
}

.arrow {
  color: var(--cyan);
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.content-panel {
  min-height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    rgba(9, 10, 15, 0.66);
  box-shadow: 0 30px 100px var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
  position: relative;
  transition: transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tab-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.tab-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.music-visualizer {
  width: 128px;
  height: 38px;
  flex: 0 0 128px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 3px;
  margin-left: auto;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid var(--theme-border, var(--line));
  background: var(--theme-tab, #14151a);
}

.music-visualizer-bar {
  width: 4px;
  height: 100%;
  flex: 0 0 4px;
  transform: scaleY(var(--idle-scale, 0.08));
  transform-origin: center bottom;
  background: var(--theme-accent, #f2f2f2);
  transition: transform 55ms linear;
}

.topbar-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.profile-card .profile-status {
  width: calc(100% + 68px);
  min-height: 58px;
  justify-content: space-between;
  margin: -40px -34px 20px;
  padding: 8px 12px;
  flex: 0 0 auto;
}

.tab-button {
  min-width: max-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 90ms ease, border-color 160ms ease, background 160ms ease;
}

.tab-button:hover,
.tab-button.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 24px rgba(106, 169, 255, 0.1);
}

.now-playing,
.time-pill {
  min-width: 250px;
  max-width: 360px;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 7px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(106, 169, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.035);
}

.now-playing {
  min-width: 310px;
}

.now-playing .track-meta {
  min-width: 0;
  flex: 1;
}

.now-playing .track-name,
.time-pill .track-name {
  font-weight: 400;
}

.now-playing .track-kicker {
  font-weight: 900;
}

.volume-control {
  width: 68px;
  flex: 0 0 68px;
}

.volume-control input {
  width: 100%;
  height: 18px;
  display: block;
  margin: 0;
  padding: 0;
  accent-color: #f2f2f2;
  cursor: pointer;
}

body[class*="theme-"] .volume-control input[type="range"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.track-meta,
.time-pill {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.time-pill {
  min-width: 78px;
  max-width: none;
  width: 94px;
  display: grid;
  justify-content: start;
  align-content: center;
  padding: 6px 10px 6px 12px;
  text-align: left;
}

.track-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.track-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-name.is-scrolling {
  text-overflow: clip;
}

.track-name-marquee {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: track-name-radio-scroll 9s linear infinite;
}

.track-name-marquee > span {
  flex: none;
  padding-right: 28px;
}

@keyframes track-name-radio-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .track-name-marquee {
    animation: none;
  }
}

.music-toggle {
  width: 34px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(106, 169, 255, 0.32);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  transition: transform 90ms ease, border-color 160ms ease, background 160ms ease;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.music-controls .music-toggle {
  width: 30px;
  min-height: 30px;
  padding: 0 6px;
}

.music-controls .music-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.music-toggle:disabled {
  cursor: default;
  opacity: 0.62;
}

.music-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-toggle.is-playing {
  border-color: rgba(106, 169, 255, 0.48);
  background: rgba(106, 169, 255, 0.14);
}

.page-content {
  min-height: 0;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 34px;
}

.page-heading {
  max-width: 56ch;
}

.page-heading .eyebrow {
  display: none;
}

.page-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1;
  white-space: nowrap;
}

.page-heading p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-tile {
  min-height: 132px;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #f8f6ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(106, 169, 255, 0.08) 52%, transparent),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.025);
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
}

.screenshot-tile {
  min-height: 0;
  width: min(100%, 320px);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.screenshot-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
  transition: transform 220ms ease;
}

.screenshot-tile:hover img {
  transform: scale(1.04);
}

.screenshot-title {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: flex-end;
  padding: 42px 14px 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.project-link-tile {
  align-items: flex-end;
  padding: 14px;
}

.project-link-icon {
  width: 34px;
  height: 34px;
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  color: #111;
  background: #f2f2f2;
}

.project-link-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.linked-project-tile {
  text-decoration: none;
}

.project-link-note {
  position: absolute;
  left: 14px;
  bottom: 42px;
  z-index: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-tile {
  grid-column: 1 / -1;
}

.empty-screenshot-tile {
  grid-column: auto;
  padding: 14px;
}

.logs-layout {
  width: min(100%, 820px);
  display: grid;
  gap: 18px;
}

.countdown-card {
  padding: 13px 18px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.countdown-card[hidden] {
  display: none;
}

.countdown-kicker {
  display: none;
}

.countdown-card h3 {
  margin: 0 0 13px;
  font-size: 20px;
}

.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-units > span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px 8px 9px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  text-align: center;
}

.countdown-units strong {
  overflow: hidden;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1;
  text-overflow: ellipsis;
}

.countdown-units small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.countdown-card.is-expired .countdown-units strong {
  color: #c4cbd8;
}

.log-feed {
  display: grid;
  border-top: 1px solid var(--line);
}

.log-entry {
  min-height: 88px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.log-entry time {
  color: var(--theme-accent, var(--cyan));
  font-size: 10px;
  font-weight: 900;
}

.log-entry h3 {
  margin: 0;
  font-size: 17px;
}

.log-entry p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.empty-log-entry {
  display: flex;
  align-items: center;
  color: var(--muted);
}

.log-editor-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.coming-soon-tile {
  justify-content: space-between;
  background:
    repeating-linear-gradient(-12deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 12px),
    #111 !important;
}

.coming-soon-mark {
  position: absolute;
  top: 18px;
  left: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.warning-mark {
  width: 42px;
  height: 38px;
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  color: #111;
  background: #f2f2f2;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  padding-top: 8px;
  transform: rotate(5deg);
}

.media-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
}

.contact-tile {
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  color: inherit;
  text-decoration: none;
  transition: transform 90ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.contact-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(106, 169, 255, 0.1) 52%, transparent),
    rgba(255, 255, 255, 0.07);
}

.contact-tile.is-static {
  cursor: text;
  user-select: text;
}

.contact-tile.is-static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(106, 169, 255, 0.08) 52%, transparent),
    rgba(255, 255, 255, 0.055);
}

.tile-title {
  font-weight: 800;
}

.media-tile span {
  overflow-wrap: anywhere;
}

.tile-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.admin-card {
  width: min(100%, 980px);
  padding: 22px;
  background: var(--panel-strong);
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-heading h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.mini-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.unlock-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 22px;
}

.editor-actions {
  grid-column: 1 / -1;
  position: sticky;
  top: 10px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 14, 0.96);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.editor-actions .save-message {
  min-width: 150px;
}

.crop-panel,
.fields-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.section-divider {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.format-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-grid {
  display: grid;
  gap: 8px;
}

.toggle-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.toggle-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
}

.format-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.editor-list {
  display: grid;
  gap: 10px;
}

.editor-list-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.editor-list-item img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
}

.editor-list-item span {
  overflow: hidden;
  color: var(--text);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.playlist-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
}

.italic-button {
  font-style: italic;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
.rich-editor {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  resize: vertical;
}

.rich-editor {
  min-height: 44px;
  outline: none;
  overflow-wrap: anywhere;
}

.rich-editor-large {
  min-height: 92px;
}

.rich-editor-page {
  min-height: 70px;
}

.rich-editor:focus {
  border-color: rgba(106, 169, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(106, 169, 255, 0.12);
}

input[type="range"] {
  accent-color: var(--purple);
  padding: 0;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #050507;
  background: linear-gradient(135deg, #ffffff, #d8dde8 58%, #6aa9ff);
  font-weight: 900;
  cursor: pointer;
}

.danger-button {
  min-height: 44px;
  border: 1px solid rgba(255, 95, 95, 0.38);
  color: #fff;
  background: rgba(255, 95, 95, 0.13);
}

button:active,
.link-button:active {
  transform: translateY(1px) scale(0.985);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tiny-note,
.save-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.crop-stage {
  width: min(100%, 340px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08080d;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.crop-stage:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.crop-stage.is-dragging {
  cursor: grabbing;
}

.crop-stage img {
  width: 80%;
  height: 80%;
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: cover;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.crop-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 48%, rgba(0, 0, 0, 0.62) 49%);
}

.crop-mask::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.28);
}

.range-grid {
  display: grid;
  gap: 12px;
}

.ui-style-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.range-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-heading output {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(18px, -12px, 0) rotate(8deg);
  }
}

@keyframes grid-pan {
  to {
    background-position: 44px 44px;
  }
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-80px, 58px, 0) scale(1.1);
  }
}

@keyframes panel-sheen {
  0%, 38% { transform: translateX(-42%); opacity: 0; }
  52% { opacity: 1; }
  72%, 100% { transform: translateX(42%); opacity: 0; }
}

@keyframes avatar-float {
  to {
    transform: translateY(-4px);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 18px rgba(66, 255, 158, 0.62);
  }
  50% {
    box-shadow: 0 0 34px rgba(66, 255, 158, 1), 0 0 12px rgba(66, 255, 158, 0.9);
  }
}

@keyframes name-gradient-loop {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: -300% 0;
  }
}

@keyframes name-breathe {
  to {
    filter: drop-shadow(0 0 28px rgb(var(--name-fx-secondary) / 0.58)) drop-shadow(0 0 24px rgb(var(--name-fx-primary) / 0.42));
  }
}

@keyframes name-jitter {
  0%, 86%, 100% {
    transform: translateX(0);
  }
  88% {
    transform: translateX(-2px) skewX(-3deg);
  }
  90% {
    transform: translateX(2px) skewX(2deg);
  }
  92% {
    transform: translateX(0);
  }
}

@keyframes name-glitch {
  0%, 74%, 100% {
    transform: translate(0, 0);
    text-shadow: 3px 0 rgba(106, 169, 255, 0.34), -3px 0 rgba(255, 90, 120, 0.22);
  }
  78% {
    transform: translate(-4px, 2px) skewX(-4deg);
    text-shadow: 8px 0 rgba(106, 169, 255, 0.78), -7px 0 rgba(255, 90, 120, 0.52);
  }
  82% {
    transform: translate(4px, -2px) skewX(3deg);
    text-shadow: -7px 0 rgba(106, 169, 255, 0.64), 6px 0 rgba(255, 90, 120, 0.44);
  }
  86% {
    transform: translate(0, 0);
  }
}

@keyframes name-glitch-main {
  0%, 76%, 100% {
    transform: translate(0, 0);
    opacity: 1;
  }
  77% {
    transform: translate(-2px, 0);
    opacity: 0.9;
  }
  78% {
    transform: translate(2px, 0);
    opacity: 1;
  }
  79% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes name-glitch-top-slice {
  0%, 58%, 100% {
    transform: translate(0, 0);
    clip-path: inset(16% 0 70% 0);
    opacity: 0;
  }
  59% {
    transform: translate(-17px, -1px);
    clip-path: inset(13% 0 74% 0);
    opacity: 1;
  }
  62% {
    transform: translate(13px, 0);
    clip-path: inset(31% 0 55% 0);
    opacity: 0.95;
  }
  65% {
    transform: translate(-11px, 1px);
    clip-path: inset(44% 0 43% 0);
    opacity: 0.92;
  }
  68% {
    transform: translate(9px, -1px);
    clip-path: inset(20% 0 66% 0);
    opacity: 0.86;
  }
  71% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

@keyframes name-glitch-bottom-slice {
  0%, 66%, 100% {
    transform: translate(0, 0);
    clip-path: inset(62% 0 24% 0);
    opacity: 0;
  }
  67% {
    transform: translate(16px, 1px);
    clip-path: inset(60% 0 27% 0);
    opacity: 1;
  }
  70% {
    transform: translate(-17px, -1px);
    clip-path: inset(73% 0 14% 0);
    opacity: 0.95;
  }
  73% {
    transform: translate(12px, 0);
    clip-path: inset(39% 0 48% 0);
    opacity: 0.9;
  }
  76% {
    transform: translate(-9px, 1px);
    clip-path: inset(80% 0 7% 0);
    opacity: 0.84;
  }
  79% {
    transform: translate(0, 0);
    opacity: 0;
  }
}

@keyframes name-pulse {
  to {
    transform: scale(1.08);
    filter: drop-shadow(0 0 34px rgb(var(--name-fx-secondary) / 0.55)) drop-shadow(0 0 22px rgb(var(--name-fx-primary) / 0.34));
  }
}

@keyframes name-ghost {
  from {
    opacity: 0.46;
    letter-spacing: 0;
  }
  to {
    opacity: 1;
    letter-spacing: 2px;
  }
}

@keyframes name-neon {
  from {
    filter: drop-shadow(0 0 3px rgb(var(--name-fx-secondary) / 0.62)) drop-shadow(0 0 9px rgb(var(--name-fx-primary) / 0.46));
  }
  to {
    filter: drop-shadow(0 0 7px rgb(var(--name-fx-secondary) / 0.92)) drop-shadow(0 0 24px rgb(var(--name-fx-primary) / 0.88));
  }
}

@keyframes name-flicker {
  0%, 8%, 11%, 18%, 72%, 76%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 11px rgb(var(--name-fx-primary) / 0.58));
  }
  9%, 17%, 74% {
    opacity: 0.5;
    filter: drop-shadow(0 0 2px rgb(var(--name-fx-primary) / 0.2));
  }
  10%, 75% {
    opacity: 0.82;
  }
}

@keyframes name-afterimage-left {
  from { transform: translate(-3px, 1px); }
  to { transform: translate(-7px, -1px); }
}

@keyframes name-afterimage-right {
  from { transform: translate(3px, -1px); }
  to { transform: translate(8px, 1px); }
}

@keyframes name-float {
  from { transform: translateY(1px); }
  to { transform: translateY(-6px); }
}

.profile-card,
.admin-card,
.content-panel,
.media-tile,
.contact-tile,
.link-button,
.tab-button,
.now-playing,
.music-toggle,
.mini-link,
.format-button,
.editor-list-item,
input,
textarea,
select,
.rich-editor,
button,
.crop-stage {
  border-radius: 2px;
}

.background-video {
  opacity: 0.34;
  filter: contrast(1.02) saturate(0.7) brightness(0.62);
}

.noise {
  opacity: 0.18;
  mask-image: none;
}

.motion-ball {
  opacity: 0.16;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  animation-duration: 24s;
}

.ball-one,
.ball-two,
.ball-three,
.ball-four {
  animation-duration: 24s;
}

.backdrop-ring {
  display: none;
}

body.theme-cheap {
  background:
    radial-gradient(130px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.03), transparent 54%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #050506;
  background-size: auto, 58px 58px, 58px 58px, auto;
}

body.theme-basement {
  background:
    radial-gradient(160px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.038), transparent 55%),
    radial-gradient(circle at 18% 12%, rgba(132, 142, 158, 0.14), transparent 18rem),
    radial-gradient(circle at 78% 76%, rgba(70, 92, 130, 0.09), transparent 24rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.026) 0 1px, transparent 1px 17px),
    #08080a;
}

body.theme-blueprint {
  background:
    radial-gradient(170px circle at var(--pointer-x) var(--pointer-y), rgba(132, 182, 255, 0.08), transparent 54%),
    linear-gradient(90deg, rgba(102, 154, 229, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(102, 154, 229, 0.055) 1px, transparent 1px),
    linear-gradient(135deg, #02050a, #06101d 54%, #020407);
  background-size: auto, 84px 84px, 84px 84px, auto;
}

body.theme-signal {
  background:
    radial-gradient(150px circle at var(--pointer-x) var(--pointer-y), rgba(255, 143, 154, 0.038), transparent 54%),
    radial-gradient(circle at 80% 18%, rgba(158, 43, 55, 0.11), transparent 20rem),
    linear-gradient(115deg, transparent 0 44%, rgba(255, 107, 120, 0.038) 44% 45%, transparent 45% 100%),
    repeating-linear-gradient(-8deg, rgba(255, 116, 133, 0.032) 0 1px, transparent 1px 54px),
    #080405;
}

body.theme-terminal {
  background:
    radial-gradient(150px circle at var(--pointer-x) var(--pointer-y), rgba(106, 255, 178, 0.052), transparent 54%),
    repeating-linear-gradient(0deg, rgba(108, 255, 180, 0.045) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(108, 255, 180, 0.036) 0 1px, transparent 1px 76px),
    #030604;
}

body.theme-static {
  background:
    radial-gradient(150px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.038), transparent 54%),
    repeating-linear-gradient(37deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(91deg, rgba(106, 169, 255, 0.025) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, #050507, #0e0f14 48%, #020203);
}

body.theme-forum {
  background:
    repeating-linear-gradient(0deg, rgba(108, 132, 162, 0.04) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #111218, #08090d);
}

body.theme-amber {
  background:
    radial-gradient(140px circle at var(--pointer-x) var(--pointer-y), rgba(255, 184, 92, 0.04), transparent 54%),
    repeating-linear-gradient(0deg, rgba(255, 177, 74, 0.035) 0 1px, transparent 1px 6px),
    #080502;
}

body.theme-cold {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    #020203;
  background-size: 64px 64px;
}

body.theme-midnight {
  background:
    radial-gradient(circle at 72% 18%, rgba(32, 47, 78, 0.16), transparent 24rem),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.022), transparent 18rem),
    linear-gradient(145deg, #010205, #040812 56%, #010203);
}

body.theme-graybar {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #030303;
  background-size: 74px 74px;
}

body.theme-flat {
  background:
    radial-gradient(160px circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.04), transparent 52%),
    linear-gradient(180deg, #050505, #09090b 46%, #030303);
}

body.theme-blueprint .motion-ball {
  border-color: rgba(125, 175, 255, 0.18);
  background: radial-gradient(circle at 34% 30%, rgba(188, 211, 255, 0.22), rgba(75, 117, 183, 0.12) 44%, rgba(0, 0, 0, 0.1) 70%);
}

body.theme-signal .motion-ball {
  border-color: rgba(255, 126, 142, 0.11);
  background: radial-gradient(circle at 34% 30%, rgba(255, 198, 205, 0.12), rgba(160, 44, 59, 0.08) 44%, rgba(0, 0, 0, 0.1) 70%);
}

body.theme-basement .motion-ball,
body.theme-static .motion-ball {
  opacity: 0.28;
  filter: saturate(0.55);
}

body.theme-terminal .motion-ball {
  border-color: rgba(106, 255, 178, 0.15);
  background: radial-gradient(circle at 34% 30%, rgba(162, 255, 205, 0.15), rgba(64, 156, 104, 0.1) 44%, rgba(0, 0, 0, 0.12) 70%);
}

body.theme-flat .motion-ball {
  opacity: 0.22;
  filter: grayscale(1);
}

.profile-card,
.content-panel,
.admin-card {
  background: rgba(8, 8, 10, 0.94);
  border-color: rgba(205, 205, 205, 0.22);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.78);
  backdrop-filter: none;
}

body.theme-basement .profile-card,
body.theme-basement .content-panel,
body.theme-basement .admin-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(11, 11, 14, 0.92);
  border-color: rgba(169, 174, 188, 0.24);
}

body.theme-blueprint .profile-card,
body.theme-blueprint .content-panel,
body.theme-blueprint .admin-card {
  background:
    linear-gradient(180deg, rgba(106, 169, 255, 0.07), transparent 20%),
    rgba(5, 10, 18, 0.91);
  border-color: rgba(121, 169, 236, 0.32);
}

body.theme-signal .profile-card,
body.theme-signal .content-panel,
body.theme-signal .admin-card {
  background:
    linear-gradient(180deg, rgba(255, 116, 133, 0.035), transparent 20%),
    rgba(12, 7, 9, 0.92);
  border-color: rgba(255, 145, 158, 0.2);
}

body.theme-terminal .profile-card,
body.theme-terminal .content-panel,
body.theme-terminal .admin-card {
  background:
    linear-gradient(180deg, rgba(106, 255, 178, 0.045), transparent 20%),
    rgba(4, 9, 7, 0.93);
  border-color: rgba(106, 255, 178, 0.22);
}

body.theme-static .profile-card,
body.theme-static .content-panel,
body.theme-static .admin-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 20%),
    rgba(12, 13, 16, 0.91);
  border-color: rgba(232, 236, 245, 0.2);
}

body.theme-forum .profile-card,
body.theme-forum .content-panel,
body.theme-forum .admin-card {
  background: rgba(13, 14, 20, 0.95);
  border-color: rgba(109, 132, 164, 0.3);
}

body.theme-amber .profile-card,
body.theme-amber .content-panel,
body.theme-amber .admin-card {
  background: rgba(13, 9, 5, 0.95);
  border-color: rgba(226, 152, 61, 0.28);
}

body.theme-cold .profile-card,
body.theme-cold .content-panel,
body.theme-cold .admin-card {
  background: rgba(6, 6, 7, 0.96);
  border-color: rgba(238, 238, 238, 0.32);
}

body.theme-midnight .profile-card,
body.theme-midnight .content-panel,
body.theme-midnight .admin-card {
  background: rgba(5, 8, 15, 0.95);
  border-color: rgba(112, 145, 198, 0.28);
}

body[class*="theme-"] .motion-ball {
  opacity: 0.14;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  filter: none;
}

body[class*="theme-"] .profile-card,
body[class*="theme-"] .content-panel,
body[class*="theme-"] .admin-card {
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.78);
}

.profile-card:hover,
.content-panel:hover {
  border-color: rgba(232, 238, 250, 0.28);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.78);
}

.profile-card::before,
.profile-card::after,
.content-panel::after {
  display: none;
}

.profile-card {
  padding-top: 40px;
}

.profile-card h1,
.page-heading h2,
.admin-heading h1 {
  font-family: "Lucida Console", Consolas, "Courier New", monospace;
  font-weight: 900;
  text-transform: none;
}

.profile-card h1 {
  font-size: clamp(30px, 7vw, 44px);
  filter: none;
}

.avatar {
  border: 0;
  box-shadow: none;
  animation: none;
}

.username,
.description,
.page-heading p:last-child,
.link-description,
.tile-description {
  color: #b7b6c0;
}

.tab-bar {
  background: #111217;
}

.tab-group {
  gap: 10px;
}

.tab-button {
  min-height: 36px;
  color: #aeadb8;
  background: #17181d;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.tab-button:hover,
.tab-button.is-active {
  color: #fff;
  background: #242631;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.page-content {
  align-content: start;
  padding-top: clamp(34px, 5vh, 54px);
}

.page-heading h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.media-tile,
.contact-tile,
.link-button {
  background: #18191f;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.media-tile:hover,
.contact-tile:hover,
.link-button:hover {
  transform: none;
  background: #202025;
  border-color: rgba(255, 255, 255, 0.3);
}

.app-icon {
  border-radius: 2px;
  background: #e7eaf1;
}

.now-playing {
  background: #252832;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.track-kicker {
  color: #8ab8ff;
}

.music-toggle,
.format-button,
.mini-link,
button {
  box-shadow: none;
}

input,
textarea,
select,
.rich-editor {
  background: #1b1b21;
  border-color: rgba(255, 255, 255, 0.2);
}

select {
  min-height: 42px;
  padding: 0 10px;
  color: var(--text);
}

button {
  background: #e9edf5;
}

button:active,
.link-button:active,
.tab-button:active,
.contact-tile:active,
.media-tile:active {
  transform: translate(2px, 2px);
}

body.theme-cheap {
  --theme-panel: #08080a;
  --theme-panel-2: #14151a;
  --theme-tile: #1b1c22;
  --theme-tab: #17181d;
  --theme-active: #282a31;
  --theme-border: rgba(220, 220, 220, 0.28);
  --theme-accent: #b8c7df;
  --theme-button: #e9edf5;
  --theme-button-text: #050507;
}

body.theme-basement {
  --theme-panel: #10100e;
  --theme-panel-2: #191815;
  --theme-tile: #222019;
  --theme-tab: #1b1a16;
  --theme-active: #302d24;
  --theme-border: rgba(194, 184, 148, 0.34);
  --theme-accent: #c9bb83;
  --theme-button: #d7c98f;
  --theme-button-text: #11100c;
}

body.theme-blueprint {
  --theme-panel: #07101d;
  --theme-panel-2: #0d1b2e;
  --theme-tile: #10233b;
  --theme-tab: #0c192b;
  --theme-active: #18385f;
  --theme-border: rgba(117, 170, 238, 0.45);
  --theme-accent: #81b8ff;
  --theme-button: #8ebdff;
  --theme-button-text: #030812;
}

body.theme-signal {
  --theme-panel: #14080a;
  --theme-panel-2: #211014;
  --theme-tile: #2a1419;
  --theme-tab: #211014;
  --theme-active: #46202a;
  --theme-border: rgba(255, 124, 143, 0.38);
  --theme-accent: #ff788e;
  --theme-button: #ff9aac;
  --theme-button-text: #19070a;
}

body.theme-terminal {
  --theme-panel: #041008;
  --theme-panel-2: #07190d;
  --theme-tile: #0b2112;
  --theme-tab: #07190d;
  --theme-active: #10391d;
  --theme-border: rgba(111, 255, 169, 0.34);
  --theme-accent: #76ffad;
  --theme-button: #8affbb;
  --theme-button-text: #031007;
}

body.theme-static {
  --theme-panel: #101114;
  --theme-panel-2: #1c1d22;
  --theme-tile: #24262b;
  --theme-tab: #1b1c20;
  --theme-active: #34363c;
  --theme-border: rgba(245, 245, 245, 0.26);
  --theme-accent: #e3e3e3;
  --theme-button: #d8d8d8;
  --theme-button-text: #08080a;
}

body.theme-forum {
  --theme-panel: #111827;
  --theme-panel-2: #182238;
  --theme-tile: #1d2a43;
  --theme-tab: #172037;
  --theme-active: #273d63;
  --theme-border: rgba(120, 157, 210, 0.48);
  --theme-accent: #8eb4ed;
  --theme-button: #9bb8e8;
  --theme-button-text: #08101d;
}

body.theme-amber {
  --theme-panel: #130b03;
  --theme-panel-2: #211306;
  --theme-tile: #2c1a08;
  --theme-tab: #211306;
  --theme-active: #4b2d0e;
  --theme-border: rgba(255, 177, 77, 0.44);
  --theme-accent: #ffba64;
  --theme-button: #ffc06b;
  --theme-button-text: #170c02;
}

body.theme-cold {
  --theme-panel: #070708;
  --theme-panel-2: #f0f0f0;
  --theme-tile: #e8e8e8;
  --theme-tab: #18181a;
  --theme-active: #f1f1f1;
  --theme-border: rgba(255, 255, 255, 0.62);
  --theme-accent: #ffffff;
  --theme-button: #ffffff;
  --theme-button-text: #050505;
}

body.theme-midnight {
  --theme-panel: #03060c;
  --theme-panel-2: #070c16;
  --theme-tile: #0b1220;
  --theme-tab: #080e19;
  --theme-active: #111d31;
  --theme-border: rgba(94, 121, 164, 0.34);
  --theme-accent: #86a9df;
  --theme-button: #9bb2d6;
  --theme-button-text: #03060c;
}

body.theme-graybar {
  --theme-panel: #050505;
  --theme-panel-2: #a9a9a9;
  --theme-tile: #8f8f8f;
  --theme-tab: #111111;
  --theme-active: #252525;
  --theme-border: #050505;
  --theme-accent: #111111;
  --theme-button: #d8d8d8;
  --theme-button-text: #050505;
}

body.theme-flat {
  --theme-panel: #050505;
  --theme-panel-2: #111111;
  --theme-tile: #181818;
  --theme-tab: #121212;
  --theme-active: #252525;
  --theme-border: rgba(255, 255, 255, 0.34);
  --theme-accent: #ffffff;
  --theme-button: #eeeeee;
  --theme-button-text: #050505;
}

body[class*="theme-"] .profile-card,
body[class*="theme-"] .content-panel,
body[class*="theme-"] .admin-card {
  background: var(--theme-panel);
  border-color: var(--theme-border);
}

body[class*="theme-"] .tab-bar,
body[class*="theme-"] .editor-actions {
  background: var(--theme-panel-2);
  border-color: var(--theme-border);
}

body[class*="theme-"] .tab-button,
body[class*="theme-"] .music-toggle,
body[class*="theme-"] .ghost,
body[class*="theme-"] .format-button,
body[class*="theme-"] .mini-link {
  background: var(--theme-tab);
  border-color: var(--theme-border);
}

body[class*="theme-"] .tab-button:hover,
body[class*="theme-"] .tab-button.is-active {
  background: var(--theme-active);
  border-color: var(--theme-accent);
}

body[class*="theme-"] .media-tile,
body[class*="theme-"] .contact-tile,
body[class*="theme-"] .link-button,
body[class*="theme-"] .now-playing,
body[class*="theme-"] .time-pill,
body[class*="theme-"] input,
body[class*="theme-"] textarea,
body[class*="theme-"] select,
body[class*="theme-"] .rich-editor,
body[class*="theme-"] .editor-list-item {
  background: var(--theme-tile);
  border-color: var(--theme-border);
}

body[class*="theme-"] .track-kicker,
body[class*="theme-"] .arrow,
body[class*="theme-"] .eyebrow {
  color: var(--theme-accent);
}

body[class*="theme-"] button:not(.ghost):not(.format-button):not(.music-toggle) {
  background: var(--theme-button);
  color: var(--theme-button-text);
}

body.theme-cold .content-panel,
body.theme-cold .profile-card,
body.theme-cold .admin-card {
  color: #f8f8f8;
}

body.theme-cold .media-tile,
body.theme-cold .contact-tile,
body.theme-cold .link-button,
body.theme-cold .tab-button.is-active,
body.theme-cold input,
body.theme-cold textarea,
body.theme-cold select,
body.theme-cold .rich-editor,
body.theme-cold .editor-list-item,
body.theme-cold .now-playing,
body.theme-cold .time-pill {
  color: #050505;
}

body.theme-cold input::placeholder,
body.theme-cold textarea::placeholder {
  color: #555;
}

body.theme-cold .ghost,
body.theme-cold .format-button,
body.theme-cold .music-toggle,
body.theme-cold .mini-link {
  color: #f7f7f7;
}

body.theme-graybar .tab-bar {
  color: #050505;
}

body.theme-graybar .tab-button,
body.theme-graybar .media-tile,
body.theme-graybar .contact-tile,
body.theme-graybar .link-button {
  color: #050505;
}

body.theme-graybar .tab-button {
  color: #f2f2f2;
  background: #111;
  border-color: #111;
}

body.theme-graybar .tab-button:hover,
body.theme-graybar .tab-button.is-active {
  color: #fff;
  background: #252525;
  border-color: #252525;
}

body.theme-graybar .media-tile,
body.theme-graybar .contact-tile,
body.theme-graybar .link-button,
body.theme-graybar .now-playing,
body.theme-graybar .time-pill {
  background: #8f8f8f;
  border-color: #050505;
  box-shadow: 0 0 0 1px #050505;
}

body.theme-graybar .music-toggle {
  color: #f8f8f8;
  background: #4d4d4d;
}

body.theme-graybar .track-kicker,
body.theme-graybar .arrow {
  color: #333;
}

.profile-card h1.name-gradient-current {
  --name-fx-primary: 183 196 223;
  --name-fx-secondary: 255 255 255;
  background-image: linear-gradient(90deg, #747d92, #ffffff, #b7c4df, #747d92) !important;
}

.profile-card h1.name-gradient-blue {
  --name-fx-primary: 106 169 255;
  --name-fx-secondary: 158 197 255;
  background-image: linear-gradient(90deg, #245aaf, #9ec5ff, #ffffff, #245aaf) !important;
}

.profile-card h1.name-gradient-white {
  --name-fx-primary: 215 215 215;
  --name-fx-secondary: 255 255 255;
  background-image: linear-gradient(90deg, #8f8f8f, #ffffff, #d7d7d7, #ffffff, #8f8f8f) !important;
}

.profile-card h1.name-gradient-solidWhite {
  --name-fx-primary: 255 255 255;
  --name-fx-secondary: 255 255 255;
  background-image: linear-gradient(90deg, #ffffff, #ffffff) !important;
}

.profile-card h1.name-gradient-red {
  --name-fx-primary: 255 109 131;
  --name-fx-secondary: 255 194 203;
  background-image: linear-gradient(90deg, #8f2234, #ff6d83, #ffc2cb, #8f2234) !important;
}

.profile-card h1[class*="name-gradient-"] {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

.profile-card h1[class*="name-gradient-"] b,
.profile-card h1[class*="name-gradient-"] strong,
.profile-card h1[class*="name-gradient-"] i,
.profile-card h1[class*="name-gradient-"] em {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
}

body.theme-graybar .tab-button,
body.theme-graybar .now-playing,
body.theme-graybar .time-pill {
  color: #f2f2f2 !important;
  background: #111 !important;
  border-color: #111 !important;
}

/* The data attribute is the single source of truth for the active name effect. */
#displayName[data-name-effect] {
  animation: none;
  filter: none;
  text-shadow: none;
  isolation: auto;
}

#displayName[data-name-effect]::before,
#displayName[data-name-effect]::after {
  content: none !important;
  display: none !important;
  animation: none;
  clip-path: none;
  opacity: 0;
  transform: none;
}

#displayName[data-name-effect="shine"] {
  filter: drop-shadow(0 0 18px rgb(var(--name-fx-secondary) / 0.42)) drop-shadow(0 0 14px rgb(var(--name-fx-primary) / 0.3));
  text-shadow: 3px 0 rgb(var(--name-fx-primary) / 0.24), -2px 0 rgb(var(--name-fx-secondary) / 0.12);
  animation: name-gradient-loop 3.2s linear infinite, name-breathe 1.35s ease-in-out infinite alternate, name-jitter 3.6s steps(1) infinite;
}

#displayName[data-name-effect="glitch"] {
  animation: name-gradient-loop 3.6s linear infinite, name-glitch-main 1.8s steps(1) infinite;
}

#displayName[data-name-effect="glitch"]::before,
#displayName[data-name-effect="glitch"]::after {
  content: attr(data-text) !important;
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font: inherit;
  line-height: inherit;
  text-align: left;
  background: none;
  text-shadow: none;
  z-index: 2;
  will-change: transform, clip-path, opacity;
}

#displayName[data-name-effect="glitch"]::before {
  color: rgb(var(--name-fx-secondary) / 0.96);
  -webkit-text-fill-color: rgb(var(--name-fx-secondary) / 0.96);
  animation: name-glitch-top-slice 1.45s steps(1) infinite !important;
}

#displayName[data-name-effect="glitch"]::after {
  color: rgb(var(--name-fx-primary) / 0.92);
  -webkit-text-fill-color: rgb(var(--name-fx-primary) / 0.92);
  animation: name-glitch-bottom-slice 1.7s steps(1) infinite !important;
}

#displayName[data-name-effect="pulse"] {
  filter: drop-shadow(0 0 18px rgb(var(--name-fx-primary) / 0.34));
  animation: name-pulse 0.95s ease-in-out infinite alternate;
}

#displayName[data-name-effect="rainbow"] {
  background-image: linear-gradient(90deg, #ff5c7a, #ffd166, #6affb3, #6aa9ff, #d76aff, #ff5c7a) !important;
  background-size: 360% 100%;
  filter: drop-shadow(0 0 18px rgb(var(--name-fx-primary) / 0.36));
  animation: name-gradient-loop 2.4s linear infinite, name-jitter 4s steps(1) infinite;
}

#displayName[data-name-effect="ghost"] {
  filter: blur(0.15px) drop-shadow(7px 0 rgb(var(--name-fx-secondary) / 0.18)) drop-shadow(-7px 0 rgb(var(--name-fx-primary) / 0.18));
  animation: name-ghost 1.6s ease-in-out infinite alternate, name-gradient-loop 4.2s linear infinite;
}

#displayName[data-name-effect="neon"] {
  filter: drop-shadow(0 0 4px rgb(var(--name-fx-secondary) / 0.8)) drop-shadow(0 0 14px rgb(var(--name-fx-primary) / 0.72));
  animation: name-gradient-loop 3.8s linear infinite, name-neon 1.7s ease-in-out infinite alternate;
}

#displayName[data-name-effect="flicker"] {
  filter: drop-shadow(0 0 10px rgb(var(--name-fx-primary) / 0.52));
  animation: name-gradient-loop 3.6s linear infinite, name-flicker 3.2s steps(1) infinite;
}

#displayName[data-name-effect="afterimage"] {
  isolation: isolate;
  filter: drop-shadow(0 0 8px rgb(var(--name-fx-primary) / 0.24));
  animation: name-gradient-loop 4s linear infinite;
}

#displayName[data-name-effect="afterimage"]::before,
#displayName[data-name-effect="afterimage"]::after {
  content: attr(data-text) !important;
  position: absolute;
  inset: 0;
  display: block !important;
  font: inherit;
  pointer-events: none;
  opacity: 0.28 !important;
  z-index: -1;
}

#displayName[data-name-effect="afterimage"]::before {
  color: rgb(var(--name-fx-secondary));
  -webkit-text-fill-color: rgb(var(--name-fx-secondary));
  animation: name-afterimage-left 1.8s ease-in-out infinite alternate !important;
}

#displayName[data-name-effect="afterimage"]::after {
  color: rgb(var(--name-fx-primary));
  -webkit-text-fill-color: rgb(var(--name-fx-primary));
  animation: name-afterimage-right 2.1s ease-in-out infinite alternate !important;
}

#displayName[data-name-effect="float"] {
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgb(var(--name-fx-primary) / 0.24));
  animation: name-gradient-loop 4.4s linear infinite, name-float 2.4s ease-in-out infinite alternate;
}

body.theme-graybar .tab-button:hover,
body.theme-graybar .tab-button.is-active {
  color: #fff !important;
  background: #252525 !important;
  border-color: #252525 !important;
}

body.theme-graybar .track-kicker,
body.theme-graybar .track-name {
  color: #f2f2f2 !important;
}

body.theme-graybar .music-toggle {
  color: #f8f8f8 !important;
  background: #555 !important;
  border-color: #555 !important;
}

body.theme-graybar input,
body.theme-graybar textarea,
body.theme-graybar select,
body.theme-graybar .rich-editor,
body.theme-graybar .editor-list-item,
body.theme-graybar .media-tile,
body.theme-graybar .contact-tile,
body.theme-graybar .link-button {
  color: #050505 !important;
  background: #8f8f8f !important;
  border-color: #050505 !important;
}

body.theme-graybar input::placeholder,
body.theme-graybar textarea::placeholder {
  color: #303030 !important;
}

body.theme-graybar .tile-description,
body.theme-graybar .link-description,
body.theme-graybar .description,
body.theme-graybar .page-heading p:last-child {
  color: #202020 !important;
}

body.theme-graybar .format-button,
body.theme-graybar .ghost,
body.theme-graybar .mini-link {
  color: #f2f2f2 !important;
  background: #111 !important;
  border-color: #111 !important;
}

body.theme-graybar .editor-actions {
  color: #050505 !important;
  background: #a9a9a9 !important;
  border-color: #050505 !important;
}

body.theme-graybar button:not(.ghost):not(.format-button):not(.music-toggle) {
  color: #050505 !important;
  background: #d8d8d8 !important;
  border: 1px solid #050505;
}

body.theme-graybar {
  --theme-panel-2: #f1f1f1;
  --theme-tile: #1a1a1a;
  --theme-button: #f4f4f4;
}

body.theme-graybar .tab-bar,
body.theme-graybar .editor-actions {
  color: #050505 !important;
  background: #f1f1f1 !important;
  border-color: #050505 !important;
}

body.theme-graybar .tab-button {
  color: #f4f4f4 !important;
  background: #101010 !important;
  border-color: #101010 !important;
}

body.theme-graybar .tab-button:hover,
body.theme-graybar .tab-button.is-active {
  color: #ffffff !important;
  background: #252525 !important;
  border-color: #252525 !important;
}

body.theme-graybar .now-playing {
  color: #f4f4f4 !important;
  background: #101010 !important;
  border-color: #101010 !important;
}

body.theme-graybar .time-pill {
  color: #f4f4f4 !important;
  background: #101010 !important;
  border-color: #101010 !important;
}

body.theme-graybar .media-tile,
body.theme-graybar .contact-tile,
body.theme-graybar .link-button {
  color: #f2f2f2 !important;
  background: #1a1a1a !important;
  border: 1px solid rgba(190, 190, 190, 0.34) !important;
  box-shadow: none !important;
}

body.theme-graybar input,
body.theme-graybar textarea,
body.theme-graybar select,
body.theme-graybar .rich-editor,
body.theme-graybar .editor-list-item {
  color: #050505 !important;
  background: #adadad !important;
  border-color: #050505 !important;
}

body.theme-graybar .description,
body.theme-graybar .page-heading p:last-child,
body.theme-graybar .link-description,
body.theme-graybar .tile-description {
  color: #b7b6c0 !important;
}

body.theme-graybar .media-tile .tile-description,
body.theme-graybar .contact-tile .tile-description,
body.theme-graybar .link-button .link-description {
  color: #c8c8c8 !important;
}

body.theme-graybar .profile-card,
body.theme-graybar .content-panel,
body.theme-graybar .admin-card {
  border: 1px solid #f2f2f2 !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.85) !important;
}

body.theme-graybar .tab-bar,
body.theme-graybar .now-playing,
body.theme-graybar .time-pill,
body.theme-graybar .tab-button,
body.theme-graybar .media-tile,
body.theme-graybar .contact-tile,
body.theme-graybar .link-button,
body.theme-graybar input,
body.theme-graybar textarea,
body.theme-graybar select,
body.theme-graybar .rich-editor,
body.theme-graybar button,
body.theme-graybar .editor-list-item,
body.theme-graybar .editor-actions {
  border-radius: 0 !important;
}

body.theme-graybar .content-panel {
  overflow: hidden;
}

body.theme-graybar button.tab-button {
  color: #f4f4f4 !important;
  background: #101010 !important;
  background-color: #101010 !important;
  background-image: none !important;
  border-color: #101010 !important;
}

body.theme-graybar button.tab-button:hover,
body.theme-graybar button.tab-button.is-active {
  color: #ffffff !important;
  background: #202020 !important;
  background-color: #202020 !important;
  background-image: none !important;
  border-color: #202020 !important;
}

body.theme-graybar .content-panel .tab-bar .tab-group > button.tab-button {
  color: #f4f4f4 !important;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  background-image: none !important;
  border: 1px solid #000 !important;
}

body.theme-graybar .content-panel .tab-bar .tab-group > button.tab-button:hover,
body.theme-graybar .content-panel .tab-bar .tab-group > button.tab-button.is-active {
  color: #ffffff !important;
  background: #242424 !important;
  background-color: #242424 !important;
  background-image: none !important;
  border-color: #000 !important;
}

body.theme-graybar .music-visualizer {
  background: #1a1a1a !important;
  border-color: #000 !important;
}

body.theme-graybar .music-visualizer-bar {
  background: #f2f2f2 !important;
}

body.theme-graybar .editor-actions {
  gap: 12px;
  padding: 10px;
  color: #050505 !important;
  background: #f1f1f1 !important;
  border: 1px solid #050505 !important;
}

body.theme-graybar .crop-panel,
body.theme-graybar .fields-panel {
  gap: 16px;
}

body.theme-graybar label {
  color: #e5e5e5;
}

body.theme-graybar input,
body.theme-graybar textarea,
body.theme-graybar select,
body.theme-graybar .rich-editor,
body.theme-graybar .editor-list-item {
  color: #f2f2f2 !important;
  background: #1a1a1a !important;
  border: 1px solid #050505 !important;
}

body.theme-graybar input[type="file"] {
  background: #1a1a1a !important;
  color: #f2f2f2 !important;
}

body.theme-graybar input[type="file"]::file-selector-button {
  color: #f2f2f2;
  background: #1a1a1a;
  border: 1px solid #050505;
  padding: 5px 9px;
  font: inherit;
}

body.theme-graybar .format-button,
body.theme-graybar .ghost,
body.theme-graybar .mini-link {
  color: #f2f2f2 !important;
  background: #151515 !important;
  border: 1px solid #2a2a2a !important;
}

body.theme-graybar .format-button:hover,
body.theme-graybar .ghost:hover {
  background: #222 !important;
}

body.theme-graybar button:not(.ghost):not(.format-button):not(.music-toggle) {
  color: #050505 !important;
  background: #f1f1f1 !important;
  border: 1px solid #050505 !important;
}

body.theme-graybar .danger-button {
  color: #fff !important;
  background: #2a1010 !important;
  border-color: #743333 !important;
}

body.theme-graybar .crop-stage {
  border-color: #f2f2f2 !important;
  background: #050505 !important;
}

@media (max-width: 760px) {
  .profile-page,
  .admin-page {
    padding: 16px;
  }

  .site-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card {
    min-height: auto;
    padding: 28px 18px 22px;
  }

  .profile-status {
    width: calc(100% + 36px);
    margin: -28px -18px 20px;
    padding: 8px 12px;
  }

  .profile-card .profile-status {
    width: calc(100% + 36px);
    margin: -28px -18px 20px;
  }

  .profile-identity {
    gap: 16px;
  }

  .discord-presence {
    position: static;
    max-width: 100%;
    margin: 20px auto 0;
  }

  .profile-presence-spacer {
    display: none;
  }

  .discord-activity-grid {
    grid-template-columns: 1fr;
  }

  .discord-activity {
    min-height: 56px;
    padding: 6px 8px;
  }

  .avatar-wrap,
  .avatar {
    width: 140px;
    height: 140px;
  }

  .avatar-wrap {
    flex-basis: 140px;
  }

  .profile-status-dot {
    right: 5px;
    bottom: 14px;
  }

  .content-panel,
  .page-content {
    min-height: auto;
  }

  .content-panel > .view-counter {
    position: static;
    justify-self: end;
    margin: 0 16px 16px;
  }

  .tab-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .tab-group {
    overflow-x: auto;
  }

  .music-visualizer {
    width: 128px;
    height: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    align-self: flex-end;
  }

  .topbar-status {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .now-playing {
    width: 100%;
    max-width: none;
  }

  .time-pill {
    width: 100%;
  }

  .tile-grid {
    grid-template-columns: 1fr;
  }

  .countdown-units {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-actions {
    position: static;
    grid-template-columns: 1fr;
  }

  .editor-actions .save-message {
    min-width: 0;
  }

  .button-row {
    grid-template-columns: 1fr;
  }
}

body.has-ui-glass .profile-card,
body.has-ui-glass .content-panel,
body.has-ui-glass .admin-card {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.has-ui-glass .profile-card::before,
body.has-ui-glass .content-panel::before,
body.has-ui-glass .admin-card::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 0;
  border-radius: inherit;
  background: rgb(var(--ui-panel-rgb, 8 8 10) / var(--ui-panel-opacity, 1));
  -webkit-backdrop-filter: blur(var(--ui-backdrop-blur, 0px));
  backdrop-filter: blur(var(--ui-backdrop-blur, 0px));
  mask: none;
  pointer-events: none;
}

body.has-ui-glass .profile-status,
body.has-ui-glass .tab-bar {
  background: rgb(var(--ui-bar-rgb, 17 18 23) / var(--ui-bar-opacity, 1)) !important;
  -webkit-backdrop-filter: blur(var(--ui-backdrop-blur, 0px));
  backdrop-filter: blur(var(--ui-backdrop-blur, 0px));
}

body.theme-graybar.has-ui-glass .profile-status,
body.theme-graybar.has-ui-glass .tab-bar {
  background: #f1f1f1 !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.has-ui-glass .media-tile,
body.has-ui-glass .contact-tile,
body.has-ui-glass .link-button,
body.has-ui-glass .discord-presence,
body.has-ui-glass .discord-activity,
body.has-ui-glass .countdown-card,
body.has-ui-glass .log-entry {
  background: rgb(var(--ui-tile-rgb, 24 25 31) / var(--ui-tile-opacity, 1)) !important;
}

@media (max-width: 760px) {
  .ui-style-controls {
    grid-template-columns: 1fr;
  }
}
